@locusgraph/components 0.2.1 → 0.2.2
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/action/button-group.js +33 -136
- package/dist/action/button.js +15 -62
- package/dist/display/badge.js +13 -54
- package/dist/display/chat/attachment/attachment-parts.js +52 -218
- package/dist/display/chat/attachment/attachment.js +46 -186
- package/dist/display/chat/bubble.js +47 -192
- package/dist/display/chat/marker.js +32 -131
- package/dist/display/chat/message.js +56 -236
- package/dist/display/content/item.js +101 -415
- package/dist/display/content/kbd.js +18 -77
- package/dist/display/rule-grid/rule-grid.js +69 -292
- package/dist/display/skeletons/layouts/skeleton-rule-grid.js +25 -74
- package/dist/display/skeletons/layouts/skeleton-table.js +38 -158
- package/dist/display/skeletons/shapes/skeleton-avatar.js +19 -83
- package/dist/display/skeletons/shapes/skeleton-button.js +19 -83
- package/dist/display/skeletons/shapes/skeleton-text.js +18 -71
- package/dist/display/skeletons/skeleton-parts.js +17 -58
- package/dist/display/status/alert.js +30 -122
- package/dist/display/status/empty.js +57 -238
- package/dist/display/status/skeleton.js +9 -39
- package/dist/display/status/spinner.js +10 -40
- package/dist/display/table.js +75 -308
- package/dist/form/field/field-error.js +24 -107
- package/dist/form/field/field-separator.js +14 -65
- package/dist/form/field/field-set.js +20 -84
- package/dist/form/field/field-text.js +27 -115
- package/dist/form/field/field.js +31 -125
- package/dist/form/input.js +11 -45
- package/dist/form/native-select.js +31 -139
- package/dist/form/textarea.js +9 -39
- package/dist/layout/use-mobile.js +7 -20
- package/dist/navigation/breadcrumb.js +75 -294
- package/dist/navigation/navigation-menu.js +83 -359
- package/dist/navigation/pagination.js +78 -315
- package/dist/shell/app-header.js +21 -73
- package/dist/shell/app-shell.js +17 -56
- package/dist/shell/breadcrumbs.js +39 -97
- package/dist/shell/docs/docs-shell.js +35 -99
- package/dist/shell/docs/docs-sidebar.js +39 -86
- package/dist/shell/docs/use-active-section.js +31 -75
- package/dist/shell/navigation/app-sidebar.js +52 -174
- package/dist/shell/navigation/nav-group.js +40 -149
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { c as _c } from "react/compiler-runtime";
|
|
2
1
|
import { cva } from "class-variance-authority";
|
|
3
2
|
import { cn } from "cn";
|
|
4
3
|
import * as React from "react";
|
|
@@ -16,109 +15,34 @@ const attachmentVariants = cva("group/attachment relative flex w-fit max-w-full
|
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
|
-
function Attachment(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
...props
|
|
33
|
-
} = t0);
|
|
34
|
-
$[0] = t0;
|
|
35
|
-
$[1] = className;
|
|
36
|
-
$[2] = props;
|
|
37
|
-
$[3] = t1;
|
|
38
|
-
$[4] = t2;
|
|
39
|
-
$[5] = t3;
|
|
40
|
-
} else {
|
|
41
|
-
className = $[1];
|
|
42
|
-
props = $[2];
|
|
43
|
-
t1 = $[3];
|
|
44
|
-
t2 = $[4];
|
|
45
|
-
t3 = $[5];
|
|
46
|
-
}
|
|
47
|
-
const state = t1 === undefined ? "done" : t1;
|
|
48
|
-
const size = t2 === undefined ? "default" : t2;
|
|
49
|
-
const orientation = t3 === undefined ? "horizontal" : t3;
|
|
50
|
-
let t4;
|
|
51
|
-
if ($[6] !== className || $[7] !== orientation || $[8] !== size) {
|
|
52
|
-
t4 = cn(attachmentVariants({
|
|
18
|
+
function Attachment({
|
|
19
|
+
className,
|
|
20
|
+
state = "done",
|
|
21
|
+
size = "default",
|
|
22
|
+
orientation = "horizontal",
|
|
23
|
+
...props
|
|
24
|
+
}) {
|
|
25
|
+
return /*#__PURE__*/_jsx("div", {
|
|
26
|
+
"data-slot": "attachment",
|
|
27
|
+
"data-state": state,
|
|
28
|
+
"data-size": size,
|
|
29
|
+
"data-orientation": orientation,
|
|
30
|
+
className: cn(attachmentVariants({
|
|
53
31
|
size,
|
|
54
32
|
orientation
|
|
55
|
-
}), className)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$[8] = size;
|
|
59
|
-
$[9] = t4;
|
|
60
|
-
} else {
|
|
61
|
-
t4 = $[9];
|
|
62
|
-
}
|
|
63
|
-
let t5;
|
|
64
|
-
if ($[10] !== orientation || $[11] !== props || $[12] !== size || $[13] !== state || $[14] !== t4) {
|
|
65
|
-
t5 = /*#__PURE__*/_jsx("div", {
|
|
66
|
-
"data-slot": "attachment",
|
|
67
|
-
"data-state": state,
|
|
68
|
-
"data-size": size,
|
|
69
|
-
"data-orientation": orientation,
|
|
70
|
-
className: t4,
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
$[10] = orientation;
|
|
74
|
-
$[11] = props;
|
|
75
|
-
$[12] = size;
|
|
76
|
-
$[13] = state;
|
|
77
|
-
$[14] = t4;
|
|
78
|
-
$[15] = t5;
|
|
79
|
-
} else {
|
|
80
|
-
t5 = $[15];
|
|
81
|
-
}
|
|
82
|
-
return t5;
|
|
33
|
+
}), className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
83
36
|
}
|
|
84
|
-
function AttachmentGroup(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
$[0] = t0;
|
|
94
|
-
$[1] = className;
|
|
95
|
-
$[2] = props;
|
|
96
|
-
} else {
|
|
97
|
-
className = $[1];
|
|
98
|
-
props = $[2];
|
|
99
|
-
}
|
|
100
|
-
let t1;
|
|
101
|
-
if ($[3] !== className) {
|
|
102
|
-
t1 = cn("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className);
|
|
103
|
-
$[3] = className;
|
|
104
|
-
$[4] = t1;
|
|
105
|
-
} else {
|
|
106
|
-
t1 = $[4];
|
|
107
|
-
}
|
|
108
|
-
let t2;
|
|
109
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
110
|
-
t2 = /*#__PURE__*/_jsx("div", {
|
|
111
|
-
"data-slot": "attachment-group",
|
|
112
|
-
className: t1,
|
|
113
|
-
...props
|
|
114
|
-
});
|
|
115
|
-
$[5] = props;
|
|
116
|
-
$[6] = t1;
|
|
117
|
-
$[7] = t2;
|
|
118
|
-
} else {
|
|
119
|
-
t2 = $[7];
|
|
120
|
-
}
|
|
121
|
-
return t2;
|
|
37
|
+
function AttachmentGroup({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}) {
|
|
41
|
+
return /*#__PURE__*/_jsx("div", {
|
|
42
|
+
"data-slot": "attachment-group",
|
|
43
|
+
className: cn("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
122
46
|
}
|
|
123
47
|
const attachmentMediaVariants = cva("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", {
|
|
124
48
|
variants: {
|
|
@@ -131,92 +55,28 @@ const attachmentMediaVariants = cva("relative flex aspect-square w-10 shrink-0 i
|
|
|
131
55
|
variant: "icon"
|
|
132
56
|
}
|
|
133
57
|
});
|
|
134
|
-
function AttachmentMedia(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
...props
|
|
144
|
-
} = t0);
|
|
145
|
-
$[0] = t0;
|
|
146
|
-
$[1] = className;
|
|
147
|
-
$[2] = props;
|
|
148
|
-
$[3] = t1;
|
|
149
|
-
} else {
|
|
150
|
-
className = $[1];
|
|
151
|
-
props = $[2];
|
|
152
|
-
t1 = $[3];
|
|
153
|
-
}
|
|
154
|
-
const variant = t1 === undefined ? "icon" : t1;
|
|
155
|
-
let t2;
|
|
156
|
-
if ($[4] !== className || $[5] !== variant) {
|
|
157
|
-
t2 = cn(attachmentMediaVariants({
|
|
58
|
+
function AttachmentMedia({
|
|
59
|
+
className,
|
|
60
|
+
variant = "icon",
|
|
61
|
+
...props
|
|
62
|
+
}) {
|
|
63
|
+
return /*#__PURE__*/_jsx("div", {
|
|
64
|
+
"data-slot": "attachment-media",
|
|
65
|
+
"data-variant": variant,
|
|
66
|
+
className: cn(attachmentMediaVariants({
|
|
158
67
|
variant
|
|
159
|
-
}), className)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
$[6] = t2;
|
|
163
|
-
} else {
|
|
164
|
-
t2 = $[6];
|
|
165
|
-
}
|
|
166
|
-
let t3;
|
|
167
|
-
if ($[7] !== props || $[8] !== t2 || $[9] !== variant) {
|
|
168
|
-
t3 = /*#__PURE__*/_jsx("div", {
|
|
169
|
-
"data-slot": "attachment-media",
|
|
170
|
-
"data-variant": variant,
|
|
171
|
-
className: t2,
|
|
172
|
-
...props
|
|
173
|
-
});
|
|
174
|
-
$[7] = props;
|
|
175
|
-
$[8] = t2;
|
|
176
|
-
$[9] = variant;
|
|
177
|
-
$[10] = t3;
|
|
178
|
-
} else {
|
|
179
|
-
t3 = $[10];
|
|
180
|
-
}
|
|
181
|
-
return t3;
|
|
68
|
+
}), className),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
182
71
|
}
|
|
183
|
-
function AttachmentContent(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
$[0] = t0;
|
|
193
|
-
$[1] = className;
|
|
194
|
-
$[2] = props;
|
|
195
|
-
} else {
|
|
196
|
-
className = $[1];
|
|
197
|
-
props = $[2];
|
|
198
|
-
}
|
|
199
|
-
let t1;
|
|
200
|
-
if ($[3] !== className) {
|
|
201
|
-
t1 = cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className);
|
|
202
|
-
$[3] = className;
|
|
203
|
-
$[4] = t1;
|
|
204
|
-
} else {
|
|
205
|
-
t1 = $[4];
|
|
206
|
-
}
|
|
207
|
-
let t2;
|
|
208
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
209
|
-
t2 = /*#__PURE__*/_jsx("div", {
|
|
210
|
-
"data-slot": "attachment-content",
|
|
211
|
-
className: t1,
|
|
212
|
-
...props
|
|
213
|
-
});
|
|
214
|
-
$[5] = props;
|
|
215
|
-
$[6] = t1;
|
|
216
|
-
$[7] = t2;
|
|
217
|
-
} else {
|
|
218
|
-
t2 = $[7];
|
|
219
|
-
}
|
|
220
|
-
return t2;
|
|
72
|
+
function AttachmentContent({
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}) {
|
|
76
|
+
return /*#__PURE__*/_jsx("div", {
|
|
77
|
+
"data-slot": "attachment-content",
|
|
78
|
+
className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
221
81
|
}
|
|
222
82
|
export { Attachment, AttachmentContent, AttachmentGroup, AttachmentMedia };
|
|
@@ -1,47 +1,17 @@
|
|
|
1
|
-
import { c as _c } from "react/compiler-runtime";
|
|
2
1
|
import { cva } from "class-variance-authority";
|
|
3
2
|
import { cn } from "cn";
|
|
4
3
|
import * as Slot from "radix-ui/slot";
|
|
5
4
|
import * as React from "react";
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
function BubbleGroup(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
$[0] = t0;
|
|
17
|
-
$[1] = className;
|
|
18
|
-
$[2] = props;
|
|
19
|
-
} else {
|
|
20
|
-
className = $[1];
|
|
21
|
-
props = $[2];
|
|
22
|
-
}
|
|
23
|
-
let t1;
|
|
24
|
-
if ($[3] !== className) {
|
|
25
|
-
t1 = cn("flex min-w-0 flex-col gap-2", className);
|
|
26
|
-
$[3] = className;
|
|
27
|
-
$[4] = t1;
|
|
28
|
-
} else {
|
|
29
|
-
t1 = $[4];
|
|
30
|
-
}
|
|
31
|
-
let t2;
|
|
32
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
33
|
-
t2 = /*#__PURE__*/_jsx("div", {
|
|
34
|
-
"data-slot": "bubble-group",
|
|
35
|
-
className: t1,
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
$[5] = props;
|
|
39
|
-
$[6] = t1;
|
|
40
|
-
$[7] = t2;
|
|
41
|
-
} else {
|
|
42
|
-
t2 = $[7];
|
|
43
|
-
}
|
|
44
|
-
return t2;
|
|
6
|
+
function BubbleGroup({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /*#__PURE__*/_jsx("div", {
|
|
11
|
+
"data-slot": "bubble-group",
|
|
12
|
+
className: cn("flex min-w-0 flex-col gap-2", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
45
15
|
}
|
|
46
16
|
const bubbleVariants = cva("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
|
|
47
17
|
variants: {
|
|
@@ -59,107 +29,33 @@ const bubbleVariants = cva("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
59
29
|
variant: "default"
|
|
60
30
|
}
|
|
61
31
|
});
|
|
62
|
-
function Bubble(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
...props
|
|
74
|
-
} = t0);
|
|
75
|
-
$[0] = t0;
|
|
76
|
-
$[1] = className;
|
|
77
|
-
$[2] = props;
|
|
78
|
-
$[3] = t1;
|
|
79
|
-
$[4] = t2;
|
|
80
|
-
} else {
|
|
81
|
-
className = $[1];
|
|
82
|
-
props = $[2];
|
|
83
|
-
t1 = $[3];
|
|
84
|
-
t2 = $[4];
|
|
85
|
-
}
|
|
86
|
-
const variant = t1 === undefined ? "default" : t1;
|
|
87
|
-
const align = t2 === undefined ? "start" : t2;
|
|
88
|
-
let t3;
|
|
89
|
-
if ($[5] !== className || $[6] !== variant) {
|
|
90
|
-
t3 = cn(bubbleVariants({
|
|
32
|
+
function Bubble({
|
|
33
|
+
variant = "default",
|
|
34
|
+
align = "start",
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}) {
|
|
38
|
+
return /*#__PURE__*/_jsx("div", {
|
|
39
|
+
"data-slot": "bubble",
|
|
40
|
+
"data-variant": variant,
|
|
41
|
+
"data-align": align,
|
|
42
|
+
className: cn(bubbleVariants({
|
|
91
43
|
variant
|
|
92
|
-
}), className)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
$[7] = t3;
|
|
96
|
-
} else {
|
|
97
|
-
t3 = $[7];
|
|
98
|
-
}
|
|
99
|
-
let t4;
|
|
100
|
-
if ($[8] !== align || $[9] !== props || $[10] !== t3 || $[11] !== variant) {
|
|
101
|
-
t4 = /*#__PURE__*/_jsx("div", {
|
|
102
|
-
"data-slot": "bubble",
|
|
103
|
-
"data-variant": variant,
|
|
104
|
-
"data-align": align,
|
|
105
|
-
className: t3,
|
|
106
|
-
...props
|
|
107
|
-
});
|
|
108
|
-
$[8] = align;
|
|
109
|
-
$[9] = props;
|
|
110
|
-
$[10] = t3;
|
|
111
|
-
$[11] = variant;
|
|
112
|
-
$[12] = t4;
|
|
113
|
-
} else {
|
|
114
|
-
t4 = $[12];
|
|
115
|
-
}
|
|
116
|
-
return t4;
|
|
44
|
+
}), className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
117
47
|
}
|
|
118
|
-
function BubbleContent(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if ($[0] !== t0) {
|
|
124
|
-
({
|
|
125
|
-
asChild: t1,
|
|
126
|
-
className,
|
|
127
|
-
...props
|
|
128
|
-
} = t0);
|
|
129
|
-
$[0] = t0;
|
|
130
|
-
$[1] = className;
|
|
131
|
-
$[2] = props;
|
|
132
|
-
$[3] = t1;
|
|
133
|
-
} else {
|
|
134
|
-
className = $[1];
|
|
135
|
-
props = $[2];
|
|
136
|
-
t1 = $[3];
|
|
137
|
-
}
|
|
138
|
-
const asChild = t1 === undefined ? false : t1;
|
|
48
|
+
function BubbleContent({
|
|
49
|
+
asChild = false,
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}) {
|
|
139
53
|
const Comp = asChild ? Slot.Root : "div";
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
} else {
|
|
146
|
-
t2 = $[5];
|
|
147
|
-
}
|
|
148
|
-
let t3;
|
|
149
|
-
if ($[6] !== Comp || $[7] !== props || $[8] !== t2) {
|
|
150
|
-
t3 = /*#__PURE__*/_jsx(Comp, {
|
|
151
|
-
"data-slot": "bubble-content",
|
|
152
|
-
className: t2,
|
|
153
|
-
...props
|
|
154
|
-
});
|
|
155
|
-
$[6] = Comp;
|
|
156
|
-
$[7] = props;
|
|
157
|
-
$[8] = t2;
|
|
158
|
-
$[9] = t3;
|
|
159
|
-
} else {
|
|
160
|
-
t3 = $[9];
|
|
161
|
-
}
|
|
162
|
-
return t3;
|
|
54
|
+
return /*#__PURE__*/_jsx(Comp, {
|
|
55
|
+
"data-slot": "bubble-content",
|
|
56
|
+
className: cn("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50", className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
163
59
|
}
|
|
164
60
|
const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0", {
|
|
165
61
|
variants: {
|
|
@@ -177,62 +73,21 @@ const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-cen
|
|
|
177
73
|
align: "end"
|
|
178
74
|
}
|
|
179
75
|
});
|
|
180
|
-
function BubbleReactions(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
...props
|
|
192
|
-
} = t0);
|
|
193
|
-
$[0] = t0;
|
|
194
|
-
$[1] = className;
|
|
195
|
-
$[2] = props;
|
|
196
|
-
$[3] = t1;
|
|
197
|
-
$[4] = t2;
|
|
198
|
-
} else {
|
|
199
|
-
className = $[1];
|
|
200
|
-
props = $[2];
|
|
201
|
-
t1 = $[3];
|
|
202
|
-
t2 = $[4];
|
|
203
|
-
}
|
|
204
|
-
const side = t1 === undefined ? "bottom" : t1;
|
|
205
|
-
const align = t2 === undefined ? "end" : t2;
|
|
206
|
-
let t3;
|
|
207
|
-
if ($[5] !== align || $[6] !== className || $[7] !== side) {
|
|
208
|
-
t3 = cn(bubbleReactionsVariants({
|
|
76
|
+
function BubbleReactions({
|
|
77
|
+
side = "bottom",
|
|
78
|
+
align = "end",
|
|
79
|
+
className,
|
|
80
|
+
...props
|
|
81
|
+
}) {
|
|
82
|
+
return /*#__PURE__*/_jsx("div", {
|
|
83
|
+
"data-slot": "bubble-reactions",
|
|
84
|
+
"data-align": align,
|
|
85
|
+
"data-side": side,
|
|
86
|
+
className: cn(bubbleReactionsVariants({
|
|
209
87
|
side,
|
|
210
88
|
align
|
|
211
|
-
}), className)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
$[7] = side;
|
|
215
|
-
$[8] = t3;
|
|
216
|
-
} else {
|
|
217
|
-
t3 = $[8];
|
|
218
|
-
}
|
|
219
|
-
let t4;
|
|
220
|
-
if ($[9] !== align || $[10] !== props || $[11] !== side || $[12] !== t3) {
|
|
221
|
-
t4 = /*#__PURE__*/_jsx("div", {
|
|
222
|
-
"data-slot": "bubble-reactions",
|
|
223
|
-
"data-align": align,
|
|
224
|
-
"data-side": side,
|
|
225
|
-
className: t3,
|
|
226
|
-
...props
|
|
227
|
-
});
|
|
228
|
-
$[9] = align;
|
|
229
|
-
$[10] = props;
|
|
230
|
-
$[11] = side;
|
|
231
|
-
$[12] = t3;
|
|
232
|
-
$[13] = t4;
|
|
233
|
-
} else {
|
|
234
|
-
t4 = $[13];
|
|
235
|
-
}
|
|
236
|
-
return t4;
|
|
89
|
+
}), className),
|
|
90
|
+
...props
|
|
91
|
+
});
|
|
237
92
|
}
|
|
238
93
|
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { c as _c } from "react/compiler-runtime";
|
|
2
1
|
import { cva } from "class-variance-authority";
|
|
3
2
|
import { cn } from "cn";
|
|
4
3
|
import * as Slot from "radix-ui/slot";
|
|
@@ -13,140 +12,42 @@ const markerVariants = cva("group/marker relative flex min-h-4 w-full items-cent
|
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
});
|
|
16
|
-
function Marker(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if ($[0] !== t0) {
|
|
23
|
-
({
|
|
24
|
-
className,
|
|
25
|
-
variant: t1,
|
|
26
|
-
asChild: t2,
|
|
27
|
-
...props
|
|
28
|
-
} = t0);
|
|
29
|
-
$[0] = t0;
|
|
30
|
-
$[1] = className;
|
|
31
|
-
$[2] = props;
|
|
32
|
-
$[3] = t1;
|
|
33
|
-
$[4] = t2;
|
|
34
|
-
} else {
|
|
35
|
-
className = $[1];
|
|
36
|
-
props = $[2];
|
|
37
|
-
t1 = $[3];
|
|
38
|
-
t2 = $[4];
|
|
39
|
-
}
|
|
40
|
-
const variant = t1 === undefined ? "default" : t1;
|
|
41
|
-
const asChild = t2 === undefined ? false : t2;
|
|
15
|
+
function Marker({
|
|
16
|
+
className,
|
|
17
|
+
variant = "default",
|
|
18
|
+
asChild = false,
|
|
19
|
+
...props
|
|
20
|
+
}) {
|
|
42
21
|
const Comp = asChild ? Slot.Root : "div";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
22
|
+
return /*#__PURE__*/_jsx(Comp, {
|
|
23
|
+
"data-slot": "marker",
|
|
24
|
+
"data-variant": variant,
|
|
25
|
+
className: cn(markerVariants({
|
|
46
26
|
variant,
|
|
47
27
|
className
|
|
48
|
-
}))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
$[7] = t3;
|
|
52
|
-
} else {
|
|
53
|
-
t3 = $[7];
|
|
54
|
-
}
|
|
55
|
-
let t4;
|
|
56
|
-
if ($[8] !== Comp || $[9] !== props || $[10] !== t3 || $[11] !== variant) {
|
|
57
|
-
t4 = /*#__PURE__*/_jsx(Comp, {
|
|
58
|
-
"data-slot": "marker",
|
|
59
|
-
"data-variant": variant,
|
|
60
|
-
className: t3,
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
$[8] = Comp;
|
|
64
|
-
$[9] = props;
|
|
65
|
-
$[10] = t3;
|
|
66
|
-
$[11] = variant;
|
|
67
|
-
$[12] = t4;
|
|
68
|
-
} else {
|
|
69
|
-
t4 = $[12];
|
|
70
|
-
}
|
|
71
|
-
return t4;
|
|
28
|
+
})),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
72
31
|
}
|
|
73
|
-
function MarkerIcon(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$[1] = className;
|
|
84
|
-
$[2] = props;
|
|
85
|
-
} else {
|
|
86
|
-
className = $[1];
|
|
87
|
-
props = $[2];
|
|
88
|
-
}
|
|
89
|
-
let t1;
|
|
90
|
-
if ($[3] !== className) {
|
|
91
|
-
t1 = cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className);
|
|
92
|
-
$[3] = className;
|
|
93
|
-
$[4] = t1;
|
|
94
|
-
} else {
|
|
95
|
-
t1 = $[4];
|
|
96
|
-
}
|
|
97
|
-
let t2;
|
|
98
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
99
|
-
t2 = /*#__PURE__*/_jsx("span", {
|
|
100
|
-
"data-slot": "marker-icon",
|
|
101
|
-
"aria-hidden": "true",
|
|
102
|
-
className: t1,
|
|
103
|
-
...props
|
|
104
|
-
});
|
|
105
|
-
$[5] = props;
|
|
106
|
-
$[6] = t1;
|
|
107
|
-
$[7] = t2;
|
|
108
|
-
} else {
|
|
109
|
-
t2 = $[7];
|
|
110
|
-
}
|
|
111
|
-
return t2;
|
|
32
|
+
function MarkerIcon({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}) {
|
|
36
|
+
return /*#__PURE__*/_jsx("span", {
|
|
37
|
+
"data-slot": "marker-icon",
|
|
38
|
+
"aria-hidden": "true",
|
|
39
|
+
className: cn("size-4 shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
112
42
|
}
|
|
113
|
-
function MarkerContent(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
$[0] = t0;
|
|
123
|
-
$[1] = className;
|
|
124
|
-
$[2] = props;
|
|
125
|
-
} else {
|
|
126
|
-
className = $[1];
|
|
127
|
-
props = $[2];
|
|
128
|
-
}
|
|
129
|
-
let t1;
|
|
130
|
-
if ($[3] !== className) {
|
|
131
|
-
t1 = cn("min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className);
|
|
132
|
-
$[3] = className;
|
|
133
|
-
$[4] = t1;
|
|
134
|
-
} else {
|
|
135
|
-
t1 = $[4];
|
|
136
|
-
}
|
|
137
|
-
let t2;
|
|
138
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
139
|
-
t2 = /*#__PURE__*/_jsx("span", {
|
|
140
|
-
"data-slot": "marker-content",
|
|
141
|
-
className: t1,
|
|
142
|
-
...props
|
|
143
|
-
});
|
|
144
|
-
$[5] = props;
|
|
145
|
-
$[6] = t1;
|
|
146
|
-
$[7] = t2;
|
|
147
|
-
} else {
|
|
148
|
-
t2 = $[7];
|
|
149
|
-
}
|
|
150
|
-
return t2;
|
|
43
|
+
function MarkerContent({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}) {
|
|
47
|
+
return /*#__PURE__*/_jsx("span", {
|
|
48
|
+
"data-slot": "marker-content",
|
|
49
|
+
className: cn("min-w-0 wrap-break-word group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
151
52
|
}
|
|
152
53
|
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|