@lglab/compose-ui 0.35.0 → 0.37.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-dialog.d.ts.map +1 -1
- package/dist/alert.d.ts +8 -8
- package/dist/alert.d.ts.map +1 -1
- 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/badge.d.ts.map +1 -1
- package/dist/breadcrumb.d.ts +6 -6
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/calendar.d.ts +2 -2
- package/dist/card.d.ts +8 -8
- package/dist/card.d.ts.map +1 -1
- package/dist/checkbox-group.d.ts +2 -2
- package/dist/checkbox-group.d.ts.map +1 -1
- package/dist/checkbox.d.ts +3 -3
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/collapsible.d.ts +4 -4
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/combobox.d.ts +25 -25
- package/dist/components/chart/context.d.ts +2 -2
- package/dist/components/chart/legend.d.ts +2 -2
- package/dist/components/chart/tooltip.d.ts +2 -2
- package/dist/components/table/primitives.d.ts +11 -11
- package/dist/components/table/primitives.d.ts.map +1 -1
- package/dist/components/table/primitives.js +3 -3
- package/dist/components/table/primitives.js.map +1 -1
- package/dist/context-menu.d.ts +20 -20
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/dialog.d.ts +11 -11
- package/dist/dialog.d.ts.map +1 -1
- package/dist/drawer.d.ts +12 -12
- package/dist/empty.d.ts +70 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.js +77 -0
- package/dist/empty.js.map +1 -0
- package/dist/field.d.ts +8 -8
- package/dist/fieldset.d.ts +3 -3
- 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/index.d.ts +3 -1
- package/dist/index.js +3 -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/menu.d.ts.map +1 -1
- 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/number-field.d.ts +8 -8
- package/dist/pagination.d.ts +10 -10
- package/dist/popover.d.ts +12 -12
- package/dist/preview-card.d.ts +8 -8
- package/dist/preview-card.d.ts.map +1 -1
- package/dist/progress.d.ts +6 -6
- package/dist/progress.d.ts.map +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio.d.ts +3 -3
- package/dist/scroll-area.d.ts +7 -7
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/select.d.ts +19 -19
- 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/tabs.d.ts +6 -6
- package/dist/textarea.d.ts +2 -2
- package/dist/timeline.d.ts +81 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +165 -0
- package/dist/timeline.js.map +1 -0
- 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 +9 -1
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_runtime176 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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.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_runtime176.JSX.Element;
|
|
142
142
|
displayName: string;
|
|
143
143
|
};
|
|
144
144
|
//#endregion
|
package/dist/separator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime194 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_runtime194.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_runtime195 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_runtime195.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_runtime196 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_runtime196.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_runtime196.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_runtime196.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_runtime196.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_runtime196.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_runtime196.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_runtime202 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_runtime202.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_runtime202.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
package/dist/tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime211 from "react/jsx-runtime";
|
|
3
3
|
import { Tabs } from "@base-ui/react/tabs";
|
|
4
4
|
|
|
5
5
|
//#region src/components/tabs.d.ts
|
|
@@ -8,7 +8,7 @@ declare const TabsRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: TabsRootProps):
|
|
11
|
+
}: TabsRootProps): react_jsx_runtime211.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type TabsListProps = React.ComponentProps<typeof Tabs.List> & {
|
|
@@ -20,7 +20,7 @@ declare const TabsList: {
|
|
|
20
20
|
className,
|
|
21
21
|
orientation,
|
|
22
22
|
...props
|
|
23
|
-
}: TabsListProps):
|
|
23
|
+
}: TabsListProps): react_jsx_runtime211.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
type TabsTabProps = React.ComponentProps<typeof Tabs.Tab> & {
|
|
@@ -32,7 +32,7 @@ declare const TabsTab: {
|
|
|
32
32
|
className,
|
|
33
33
|
size,
|
|
34
34
|
...props
|
|
35
|
-
}: TabsTabProps):
|
|
35
|
+
}: TabsTabProps): react_jsx_runtime211.JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
type TabsIndicatorProps = React.ComponentProps<typeof Tabs.Indicator> & {
|
|
@@ -44,7 +44,7 @@ declare const TabsIndicator: {
|
|
|
44
44
|
className,
|
|
45
45
|
orientation,
|
|
46
46
|
...props
|
|
47
|
-
}: TabsIndicatorProps):
|
|
47
|
+
}: TabsIndicatorProps): react_jsx_runtime211.JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
};
|
|
50
50
|
type TabsPanelProps = React.ComponentProps<typeof Tabs.Panel>;
|
|
@@ -52,7 +52,7 @@ declare const TabsPanel: {
|
|
|
52
52
|
({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: TabsPanelProps):
|
|
55
|
+
}: TabsPanelProps): react_jsx_runtime211.JSX.Element;
|
|
56
56
|
displayName: string;
|
|
57
57
|
};
|
|
58
58
|
//#endregion
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime216 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/textarea.d.ts
|
|
5
5
|
type TextareaProps = React.ComponentProps<'textarea'>;
|
|
@@ -7,7 +7,7 @@ declare const Textarea: {
|
|
|
7
7
|
({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: TextareaProps):
|
|
10
|
+
}: TextareaProps): react_jsx_runtime216.JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime224 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/timeline.d.ts
|
|
7
|
+
declare const timelineVariants: (props?: ({
|
|
8
|
+
position?: "center" | "right" | "left" | "alternate" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
|
+
interface TimelineRootProps extends React.ComponentProps<'ol'>, VariantProps<typeof timelineVariants> {}
|
|
11
|
+
declare const TimelineRoot: {
|
|
12
|
+
({
|
|
13
|
+
className,
|
|
14
|
+
position,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}: TimelineRootProps): react_jsx_runtime224.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const TimelineItem: {
|
|
21
|
+
({
|
|
22
|
+
className,
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<"li">): react_jsx_runtime224.JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
declare const timelineMarkerVariants: (props?: ({
|
|
29
|
+
variant?: "default" | "primary" | "destructive" | "success" | "warning" | null | undefined;
|
|
30
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
31
|
+
interface TimelineMarkerProps extends React.ComponentProps<'div'>, VariantProps<typeof timelineMarkerVariants> {
|
|
32
|
+
icon?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
declare const TimelineMarker: {
|
|
35
|
+
({
|
|
36
|
+
className,
|
|
37
|
+
variant,
|
|
38
|
+
icon,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
}: TimelineMarkerProps): react_jsx_runtime224.JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
declare const TimelineContent: {
|
|
45
|
+
({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}: React.ComponentProps<"div">): react_jsx_runtime224.JSX.Element;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
declare const TimelineSpacer: {
|
|
52
|
+
({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}: React.ComponentProps<"div">): react_jsx_runtime224.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
declare const TimelineTitle: {
|
|
59
|
+
({
|
|
60
|
+
className,
|
|
61
|
+
...props
|
|
62
|
+
}: React.ComponentProps<"p">): react_jsx_runtime224.JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
declare const TimelineDescription: {
|
|
66
|
+
({
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}: React.ComponentProps<"p">): react_jsx_runtime224.JSX.Element;
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
declare const TimelineTime: {
|
|
73
|
+
({
|
|
74
|
+
className,
|
|
75
|
+
...props
|
|
76
|
+
}: React.ComponentProps<"time">): react_jsx_runtime224.JSX.Element;
|
|
77
|
+
displayName: string;
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
80
|
+
export { TimelineContent, TimelineDescription, TimelineItem, TimelineMarker, type TimelineMarkerProps, TimelineRoot, type TimelineRootProps, TimelineSpacer, TimelineTime, TimelineTitle };
|
|
81
|
+
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.d.ts","names":[],"sources":["../src/components/timeline.tsx"],"sourcesContent":[],"mappings":";;;;;;cAqBM;;IAYJ,+BAAA,CAAA;UAEQ,iBAAA,SACA,KAAA,CAAM,sBAAsB,oBAAoB,mBAjC5B;cAmCxB,YAFJ,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EAEiE,iBAFjE,CAAA,EAEkF,oBAAA,CAAA,GAAA,CAAA,OAFlF;aAAwD,EAAA,MAAA;;cAqCpD,YArCgC,EAAA;EAAY,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EAqCO,KAAA,CAAM,cArCb,CAAA,IAAA,CAAA,CAAA,EAqCiC,oBAAA,CAAA,GAAA,CAAA,OArCjC;EAE5C,WAAA,EAAA,MA6BL;CAAA;cAmDK;;IAgBL,+BAAA,CAA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cn } from "./lib/utils.js";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/timeline.tsx
|
|
9
|
+
const TimelineContext = React.createContext({ position: "left" });
|
|
10
|
+
const TimelineItemContext = React.createContext({ index: 0 });
|
|
11
|
+
const timelineVariants = cva("flex flex-col list-none m-0 p-0", {
|
|
12
|
+
variants: { position: {
|
|
13
|
+
left: "gap-6",
|
|
14
|
+
right: "gap-6",
|
|
15
|
+
alternate: "gap-0",
|
|
16
|
+
center: "gap-0"
|
|
17
|
+
} },
|
|
18
|
+
defaultVariants: { position: "left" }
|
|
19
|
+
});
|
|
20
|
+
const TimelineRoot = ({ className, position, children, ...props }) => {
|
|
21
|
+
const timelinePosition = position ?? "left";
|
|
22
|
+
const childrenWithIndex = React.Children.map(children, (child, index) => {
|
|
23
|
+
if (React.isValidElement(child)) return /* @__PURE__ */ jsx(TimelineItemContext.Provider, {
|
|
24
|
+
value: { index },
|
|
25
|
+
children: child
|
|
26
|
+
});
|
|
27
|
+
return child;
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ jsx(TimelineContext.Provider, {
|
|
30
|
+
value: { position: timelinePosition },
|
|
31
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
32
|
+
role: "list",
|
|
33
|
+
"data-slot": "timeline",
|
|
34
|
+
"data-position": timelinePosition,
|
|
35
|
+
className: cn(timelineVariants({ position: timelinePosition }), className),
|
|
36
|
+
...props,
|
|
37
|
+
children: childrenWithIndex
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
TimelineRoot.displayName = "TimelineRoot";
|
|
42
|
+
const TimelineItem = ({ className, children, ...props }) => {
|
|
43
|
+
const { position } = React.useContext(TimelineContext);
|
|
44
|
+
const { index } = React.useContext(TimelineItemContext);
|
|
45
|
+
const isRight = position === "right" || position === "alternate" && index % 2 === 1;
|
|
46
|
+
if (position === "center") {
|
|
47
|
+
const isEven = index % 2 === 0;
|
|
48
|
+
return /* @__PURE__ */ jsx("li", {
|
|
49
|
+
role: "listitem",
|
|
50
|
+
"data-slot": "timeline-item",
|
|
51
|
+
"data-position": isEven ? "left" : "right",
|
|
52
|
+
className: cn("relative m-0 grid grid-cols-[1fr_auto_1fr] gap-4 p-0", className),
|
|
53
|
+
...props,
|
|
54
|
+
children
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return /* @__PURE__ */ jsx("li", {
|
|
58
|
+
role: "listitem",
|
|
59
|
+
"data-slot": "timeline-item",
|
|
60
|
+
"data-position": isRight ? "right" : "left",
|
|
61
|
+
className: cn("relative m-0 flex gap-4 p-0", position === "alternate" && "justify-center", isRight && "flex-row-reverse", className),
|
|
62
|
+
...props,
|
|
63
|
+
children
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
TimelineItem.displayName = "TimelineItem";
|
|
67
|
+
const timelineMarkerVariants = cva("relative z-10 flex size-6 shrink-0 items-center justify-center rounded-full", {
|
|
68
|
+
variants: { variant: {
|
|
69
|
+
default: "border border-border bg-background",
|
|
70
|
+
primary: "bg-primary text-white",
|
|
71
|
+
success: "bg-success text-white",
|
|
72
|
+
warning: "bg-warning text-white",
|
|
73
|
+
destructive: "bg-destructive text-white"
|
|
74
|
+
} },
|
|
75
|
+
defaultVariants: { variant: "default" }
|
|
76
|
+
});
|
|
77
|
+
const variantLabels = {
|
|
78
|
+
default: "Event",
|
|
79
|
+
primary: "Important",
|
|
80
|
+
success: "Completed",
|
|
81
|
+
warning: "Warning",
|
|
82
|
+
destructive: "Error"
|
|
83
|
+
};
|
|
84
|
+
const TimelineMarker = ({ className, variant, icon, children, ...props }) => {
|
|
85
|
+
const { position } = React.useContext(TimelineContext);
|
|
86
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
87
|
+
className: cn("relative flex flex-col items-center", position === "center" && "justify-start"),
|
|
88
|
+
children: [children ? /* @__PURE__ */ jsx("div", {
|
|
89
|
+
"data-slot": "timeline-marker",
|
|
90
|
+
className: cn("relative z-10 flex shrink-0 items-center justify-center", className),
|
|
91
|
+
...props,
|
|
92
|
+
children
|
|
93
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
94
|
+
"data-slot": "timeline-marker",
|
|
95
|
+
className: cn(timelineMarkerVariants({ variant }), className),
|
|
96
|
+
"aria-label": variantLabels[variant ?? "default"],
|
|
97
|
+
role: "status",
|
|
98
|
+
...props,
|
|
99
|
+
children: icon ? /* @__PURE__ */ jsx("div", {
|
|
100
|
+
className: "flex size-3 items-center justify-center text-current",
|
|
101
|
+
children: icon
|
|
102
|
+
}) : /* @__PURE__ */ jsx("div", { className: cn("size-2 rounded-full bg-current") })
|
|
103
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
104
|
+
className: "border-l border-border absolute -top-4 -bottom-4 left-1/2 -translate-x-1/2 [li:first-child_&]:top-6 [li:last-child_&]:bottom-auto [li:last-child_&]:h-full",
|
|
105
|
+
"data-slot": "timeline-line",
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
TimelineMarker.displayName = "TimelineMarker";
|
|
111
|
+
const TimelineContent = ({ className, ...props }) => {
|
|
112
|
+
const { position } = React.useContext(TimelineContext);
|
|
113
|
+
const { index } = React.useContext(TimelineItemContext);
|
|
114
|
+
const isRight = position === "right" || position === "alternate" && index % 2 === 1;
|
|
115
|
+
if (position === "center") {
|
|
116
|
+
const isEven = index % 2 === 0;
|
|
117
|
+
return /* @__PURE__ */ jsx("div", {
|
|
118
|
+
"data-slot": "timeline-content",
|
|
119
|
+
className: cn("flex flex-col gap-1 pb-6", isEven ? "text-right" : "text-left", className),
|
|
120
|
+
...props
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return /* @__PURE__ */ jsx("div", {
|
|
124
|
+
"data-slot": "timeline-content",
|
|
125
|
+
className: cn("flex flex-1 flex-col gap-1 pb-4", position === "alternate" && "w-1/2 pb-8", position === "alternate" && (isRight ? "text-right" : "text-left"), className),
|
|
126
|
+
...props
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
TimelineContent.displayName = "TimelineContent";
|
|
130
|
+
const TimelineSpacer = ({ className, ...props }) => {
|
|
131
|
+
return /* @__PURE__ */ jsx("div", {
|
|
132
|
+
"data-slot": "timeline-spacer",
|
|
133
|
+
className: cn("min-w-0 flex-1", className),
|
|
134
|
+
...props
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
TimelineSpacer.displayName = "TimelineSpacer";
|
|
138
|
+
const TimelineTitle = ({ className, ...props }) => {
|
|
139
|
+
return /* @__PURE__ */ jsx("p", {
|
|
140
|
+
"data-slot": "timeline-title",
|
|
141
|
+
className: cn("leading-none font-medium", className),
|
|
142
|
+
...props
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
TimelineTitle.displayName = "TimelineTitle";
|
|
146
|
+
const TimelineDescription = ({ className, ...props }) => {
|
|
147
|
+
return /* @__PURE__ */ jsx("p", {
|
|
148
|
+
"data-slot": "timeline-description",
|
|
149
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
150
|
+
...props
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
TimelineDescription.displayName = "TimelineDescription";
|
|
154
|
+
const TimelineTime = ({ className, ...props }) => {
|
|
155
|
+
return /* @__PURE__ */ jsx("time", {
|
|
156
|
+
"data-slot": "timeline-time",
|
|
157
|
+
className: cn("text-muted-foreground text-xs", className),
|
|
158
|
+
...props
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
TimelineTime.displayName = "TimelineTime";
|
|
162
|
+
|
|
163
|
+
//#endregion
|
|
164
|
+
export { TimelineContent, TimelineDescription, TimelineItem, TimelineMarker, TimelineRoot, TimelineSpacer, TimelineTime, TimelineTitle };
|
|
165
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","names":[],"sources":["../src/components/timeline.tsx"],"sourcesContent":["'use client'\n\nimport { type VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../lib/utils'\n\n// ============================================\n// Context for position and index\n// ============================================\nconst TimelineContext = React.createContext<{\n position: 'left' | 'right' | 'alternate' | 'center'\n}>({\n position: 'left',\n})\n\nconst TimelineItemContext = React.createContext<{ index: number }>({ index: 0 })\n\n// ============================================\n// 1. TimelineRoot\n// ============================================\nconst timelineVariants = cva('flex flex-col list-none m-0 p-0', {\n variants: {\n position: {\n left: 'gap-6',\n right: 'gap-6',\n alternate: 'gap-0',\n center: 'gap-0',\n },\n },\n defaultVariants: {\n position: 'left',\n },\n})\n\ninterface TimelineRootProps\n extends React.ComponentProps<'ol'>, VariantProps<typeof timelineVariants> {}\n\nconst TimelineRoot = ({ className, position, children, ...props }: TimelineRootProps) => {\n const timelinePosition = position ?? 'left'\n\n // Wrap children to inject index for each TimelineItem\n // Non-element children (null, strings, etc.) are passed through unchanged\n const childrenWithIndex = React.Children.map(children, (child, index) => {\n if (React.isValidElement(child)) {\n return (\n <TimelineItemContext.Provider value={{ index }}>\n {child}\n </TimelineItemContext.Provider>\n )\n }\n return child\n })\n\n return (\n <TimelineContext.Provider value={{ position: timelinePosition }}>\n <ol\n role='list'\n data-slot='timeline'\n data-position={timelinePosition}\n className={cn(timelineVariants({ position: timelinePosition }), className)}\n {...props}\n >\n {childrenWithIndex}\n </ol>\n </TimelineContext.Provider>\n )\n}\nTimelineRoot.displayName = 'TimelineRoot'\n\n// ============================================\n// 2. TimelineItem\n// ============================================\nconst TimelineItem = ({ className, children, ...props }: React.ComponentProps<'li'>) => {\n const { position } = React.useContext(TimelineContext)\n const { index } = React.useContext(TimelineItemContext)\n\n // Determine if this item should be on the right side\n const isRight = position === 'right' || (position === 'alternate' && index % 2 === 1)\n\n // Center mode - special layout with line in the middle\n if (position === 'center') {\n const isEven = index % 2 === 0\n return (\n <li\n role='listitem'\n data-slot='timeline-item'\n data-position={isEven ? 'left' : 'right'}\n className={cn('relative m-0 grid grid-cols-[1fr_auto_1fr] gap-4 p-0', className)}\n {...props}\n >\n {children}\n </li>\n )\n }\n\n return (\n <li\n role='listitem'\n data-slot='timeline-item'\n data-position={isRight ? 'right' : 'left'}\n className={cn(\n 'relative m-0 flex gap-4 p-0',\n position === 'alternate' && 'justify-center',\n isRight && 'flex-row-reverse',\n className,\n )}\n {...props}\n >\n {children}\n </li>\n )\n}\nTimelineItem.displayName = 'TimelineItem'\n\n// ============================================\n// 3. TimelineMarker\n// ============================================\nconst timelineMarkerVariants = cva(\n 'relative z-10 flex size-6 shrink-0 items-center justify-center rounded-full',\n {\n variants: {\n variant: {\n default: 'border border-border bg-background',\n primary: 'bg-primary text-white',\n success: 'bg-success text-white',\n warning: 'bg-warning text-white',\n destructive: 'bg-destructive text-white',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n)\n\nconst variantLabels = {\n default: 'Event',\n primary: 'Important',\n success: 'Completed',\n warning: 'Warning',\n destructive: 'Error',\n}\n\ninterface TimelineMarkerProps\n extends React.ComponentProps<'div'>, VariantProps<typeof timelineMarkerVariants> {\n icon?: React.ReactNode\n}\n\nconst TimelineMarker = ({\n className,\n variant,\n icon,\n children,\n ...props\n}: TimelineMarkerProps) => {\n const { position } = React.useContext(TimelineContext)\n\n return (\n <div\n className={cn(\n 'relative flex flex-col items-center',\n position === 'center' && 'justify-start',\n )}\n >\n {children ? (\n <div\n data-slot='timeline-marker'\n className={cn(\n 'relative z-10 flex shrink-0 items-center justify-center',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n ) : (\n <div\n data-slot='timeline-marker'\n className={cn(timelineMarkerVariants({ variant }), className)}\n aria-label={variantLabels[variant ?? 'default']}\n role='status'\n {...props}\n >\n {icon ? (\n <div className='flex size-3 items-center justify-center text-current'>\n {icon}\n </div>\n ) : (\n <div className={cn('size-2 rounded-full bg-current')} />\n )}\n </div>\n )}\n {/* Line */}\n <div\n className='border-l border-border absolute -top-4 -bottom-4 left-1/2 -translate-x-1/2 [li:first-child_&]:top-6 [li:last-child_&]:bottom-auto [li:last-child_&]:h-full'\n data-slot='timeline-line'\n aria-hidden='true'\n />\n </div>\n )\n}\nTimelineMarker.displayName = 'TimelineMarker'\n\n// ============================================\n// 4. TimelineContent\n// ============================================\nconst TimelineContent = ({ className, ...props }: React.ComponentProps<'div'>) => {\n const { position } = React.useContext(TimelineContext)\n const { index } = React.useContext(TimelineItemContext)\n\n const isRight = position === 'right' || (position === 'alternate' && index % 2 === 1)\n\n // Center mode uses grid layout\n if (position === 'center') {\n const isEven = index % 2 === 0\n return (\n <div\n data-slot='timeline-content'\n className={cn(\n 'flex flex-col gap-1 pb-6',\n isEven ? 'text-right' : 'text-left',\n className,\n )}\n {...props}\n />\n )\n }\n\n return (\n <div\n data-slot='timeline-content'\n className={cn(\n 'flex flex-1 flex-col gap-1 pb-4',\n position === 'alternate' && 'w-1/2 pb-8',\n position === 'alternate' && (isRight ? 'text-right' : 'text-left'),\n className,\n )}\n {...props}\n />\n )\n}\nTimelineContent.displayName = 'TimelineContent'\n\n// ============================================\n// 5. TimelineSpacer\n// ============================================\nconst TimelineSpacer = ({ className, ...props }: React.ComponentProps<'div'>) => {\n return (\n <div\n data-slot='timeline-spacer'\n className={cn('min-w-0 flex-1', className)}\n {...props}\n />\n )\n}\nTimelineSpacer.displayName = 'TimelineSpacer'\n\n// ============================================\n// 6. TimelineTitle\n// ============================================\nconst TimelineTitle = ({ className, ...props }: React.ComponentProps<'p'>) => {\n return (\n <p\n data-slot='timeline-title'\n className={cn('leading-none font-medium', className)}\n {...props}\n />\n )\n}\nTimelineTitle.displayName = 'TimelineTitle'\n\n// ============================================\n// 7. TimelineDescription\n// ============================================\nconst TimelineDescription = ({ className, ...props }: React.ComponentProps<'p'>) => {\n return (\n <p\n data-slot='timeline-description'\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n )\n}\nTimelineDescription.displayName = 'TimelineDescription'\n\n// ============================================\n// 8. TimelineTime\n// ============================================\nconst TimelineTime = ({ className, ...props }: React.ComponentProps<'time'>) => {\n return (\n <time\n data-slot='timeline-time'\n className={cn('text-muted-foreground text-xs', className)}\n {...props}\n />\n )\n}\nTimelineTime.displayName = 'TimelineTime'\n\n// ============================================\n// Export\n// ============================================\nexport {\n TimelineRoot,\n TimelineItem,\n TimelineMarker,\n TimelineContent,\n TimelineSpacer,\n TimelineTitle,\n TimelineDescription,\n TimelineTime,\n}\n\nexport type { TimelineRootProps, TimelineMarkerProps }\n"],"mappings":";;;;;;;;AAUA,MAAM,kBAAkB,MAAM,cAE3B,EACD,UAAU,QACX,CAAC;AAEF,MAAM,sBAAsB,MAAM,cAAiC,EAAE,OAAO,GAAG,CAAC;AAKhF,MAAM,mBAAmB,IAAI,mCAAmC;CAC9D,UAAU,EACR,UAAU;EACR,MAAM;EACN,OAAO;EACP,WAAW;EACX,QAAQ;EACT,EACF;CACD,iBAAiB,EACf,UAAU,QACX;CACF,CAAC;AAKF,MAAM,gBAAgB,EAAE,WAAW,UAAU,UAAU,GAAG,YAA+B;CACvF,MAAM,mBAAmB,YAAY;CAIrC,MAAM,oBAAoB,MAAM,SAAS,IAAI,WAAW,OAAO,UAAU;AACvE,MAAI,MAAM,eAAe,MAAM,CAC7B,QACE,oBAAC,oBAAoB;GAAS,OAAO,EAAE,OAAO;aAC3C;IAC4B;AAGnC,SAAO;GACP;AAEF,QACE,oBAAC,gBAAgB;EAAS,OAAO,EAAE,UAAU,kBAAkB;YAC7D,oBAAC;GACC,MAAK;GACL,aAAU;GACV,iBAAe;GACf,WAAW,GAAG,iBAAiB,EAAE,UAAU,kBAAkB,CAAC,EAAE,UAAU;GAC1E,GAAI;aAEH;IACE;GACoB;;AAG/B,aAAa,cAAc;AAK3B,MAAM,gBAAgB,EAAE,WAAW,UAAU,GAAG,YAAwC;CACtF,MAAM,EAAE,aAAa,MAAM,WAAW,gBAAgB;CACtD,MAAM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