@aphexcms/ui 0.8.3 → 0.8.5
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/components/ui/attachment/attachment-action.svelte +7 -0
- package/dist/components/ui/attachment/attachment-action.svelte.d.ts +4 -0
- package/dist/components/ui/attachment/attachment-actions.svelte +19 -0
- package/dist/components/ui/attachment/attachment-actions.svelte.d.ts +5 -0
- package/dist/components/ui/attachment/attachment-content.svelte +19 -0
- package/dist/components/ui/attachment/attachment-content.svelte.d.ts +5 -0
- package/dist/components/ui/attachment/attachment-context.svelte.d.ts +10 -0
- package/dist/components/ui/attachment/attachment-context.svelte.js +13 -0
- package/dist/components/ui/attachment/attachment-description.svelte +19 -0
- package/dist/components/ui/attachment/attachment-description.svelte.d.ts +5 -0
- package/dist/components/ui/attachment/attachment-group.svelte +22 -0
- package/dist/components/ui/attachment/attachment-group.svelte.d.ts +5 -0
- package/dist/components/ui/attachment/attachment-media.svelte +26 -0
- package/dist/components/ui/attachment/attachment-media.svelte.d.ts +8 -0
- package/dist/components/ui/attachment/attachment-title.svelte +25 -0
- package/dist/components/ui/attachment/attachment-title.svelte.d.ts +5 -0
- package/dist/components/ui/attachment/attachment-trigger.svelte +34 -0
- package/dist/components/ui/attachment/attachment-trigger.svelte.d.ts +6 -0
- package/dist/components/ui/attachment/attachment.svelte +56 -0
- package/dist/components/ui/attachment/attachment.svelte.d.ts +11 -0
- package/dist/components/ui/attachment/index.d.ts +10 -0
- package/dist/components/ui/attachment/index.js +9 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte +4 -1
- package/dist/components/ui/avatar/avatar-image.svelte +1 -1
- package/dist/components/ui/avatar/avatar.svelte +9 -2
- package/dist/components/ui/avatar/avatar.svelte.d.ts +4 -1
- package/dist/components/ui/bubble/bubble-content.svelte +22 -0
- package/dist/components/ui/bubble/bubble-content.svelte.d.ts +5 -0
- package/dist/components/ui/bubble/bubble-group.svelte +19 -0
- package/dist/components/ui/bubble/bubble-group.svelte.d.ts +5 -0
- package/dist/components/ui/bubble/bubble-reactions.svelte +32 -0
- package/dist/components/ui/bubble/bubble-reactions.svelte.d.ts +9 -0
- package/dist/components/ui/bubble/bubble.svelte +48 -0
- package/dist/components/ui/bubble/bubble.svelte.d.ts +43 -0
- package/dist/components/ui/bubble/index.d.ts +5 -0
- package/dist/components/ui/bubble/index.js +5 -0
- package/dist/components/ui/input-otp/index.d.ts +5 -0
- package/dist/components/ui/input-otp/index.js +7 -0
- package/dist/components/ui/input-otp/input-otp-group.svelte +23 -0
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +5 -0
- package/dist/components/ui/input-otp/input-otp-separator.svelte +26 -0
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +5 -0
- package/dist/components/ui/input-otp/input-otp-slot.svelte +47 -0
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +4 -0
- package/dist/components/ui/input-otp/input-otp.svelte +23 -0
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +4 -0
- package/dist/components/ui/marker/index.d.ts +4 -0
- package/dist/components/ui/marker/index.js +4 -0
- package/dist/components/ui/marker/marker-content.svelte +17 -0
- package/dist/components/ui/marker/marker-content.svelte.d.ts +5 -0
- package/dist/components/ui/marker/marker-icon.svelte +18 -0
- package/dist/components/ui/marker/marker-icon.svelte.d.ts +5 -0
- package/dist/components/ui/marker/marker.svelte +38 -0
- package/dist/components/ui/marker/marker.svelte.d.ts +29 -0
- package/dist/components/ui/message/index.d.ts +7 -0
- package/dist/components/ui/message/index.js +6 -0
- package/dist/components/ui/message/message-avatar.svelte +22 -0
- package/dist/components/ui/message/message-avatar.svelte.d.ts +5 -0
- package/dist/components/ui/message/message-content.svelte +19 -0
- package/dist/components/ui/message/message-content.svelte.d.ts +5 -0
- package/dist/components/ui/message/message-context.d.ts +3 -0
- package/dist/components/ui/message/message-context.js +8 -0
- package/dist/components/ui/message/message-footer.svelte +22 -0
- package/dist/components/ui/message/message-footer.svelte.d.ts +5 -0
- package/dist/components/ui/message/message-group.svelte +19 -0
- package/dist/components/ui/message/message-group.svelte.d.ts +5 -0
- package/dist/components/ui/message/message-header.svelte +19 -0
- package/dist/components/ui/message/message-header.svelte.d.ts +5 -0
- package/dist/components/ui/message/message.svelte +27 -0
- package/dist/components/ui/message/message.svelte.d.ts +9 -0
- package/dist/components/ui/message-scroller/index.d.ts +7 -0
- package/dist/components/ui/message-scroller/index.js +7 -0
- package/dist/components/ui/message-scroller/message-scroller-button.svelte +51 -0
- package/dist/components/ui/message-scroller/message-scroller-button.svelte.d.ts +11 -0
- package/dist/components/ui/message-scroller/message-scroller-content.svelte +35 -0
- package/dist/components/ui/message-scroller/message-scroller-content.svelte.d.ts +5 -0
- package/dist/components/ui/message-scroller/message-scroller-context.svelte.d.ts +39 -0
- package/dist/components/ui/message-scroller/message-scroller-context.svelte.js +161 -0
- package/dist/components/ui/message-scroller/message-scroller-item.svelte +51 -0
- package/dist/components/ui/message-scroller/message-scroller-item.svelte.d.ts +9 -0
- package/dist/components/ui/message-scroller/message-scroller-provider.svelte +40 -0
- package/dist/components/ui/message-scroller/message-scroller-provider.svelte.d.ts +12 -0
- package/dist/components/ui/message-scroller/message-scroller-viewport.svelte +46 -0
- package/dist/components/ui/message-scroller/message-scroller-viewport.svelte.d.ts +5 -0
- package/dist/components/ui/message-scroller/message-scroller.svelte +27 -0
- package/dist/components/ui/message-scroller/message-scroller.svelte.d.ts +5 -0
- package/dist/components/ui/tooltip/index.d.ts +7 -0
- package/dist/components/ui/tooltip/index.js +7 -0
- package/package.json +36 -6
- package/src/app.css +400 -18
package/src/app.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--card-foreground: oklch(0.2809 0 0);
|
|
22
22
|
--popover: oklch(1 0 0);
|
|
23
23
|
--popover-foreground: oklch(0.2809 0 0);
|
|
24
|
-
--primary: oklch(0.
|
|
24
|
+
--primary: oklch(0.7446 0.1716 50.67);
|
|
25
25
|
--primary-foreground: oklch(1 0 0);
|
|
26
26
|
--secondary: oklch(0.9394 0.0046 258.3251);
|
|
27
27
|
--secondary-foreground: oklch(0.4489 0.02 251.0512);
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
--destructive: oklch(0.6509 0.2199 25.0358);
|
|
33
33
|
--destructive-foreground: oklch(1 0 0);
|
|
34
34
|
--border: oklch(0.9209 0.0035 247.8607);
|
|
35
|
-
--input: oklch(0.
|
|
36
|
-
--ring: oklch(0.
|
|
35
|
+
--input: oklch(0.8901 0.0045 247.8607);
|
|
36
|
+
--ring: oklch(0.7446 0.1716 50.67);
|
|
37
37
|
--chart-1: oklch(0.7011 0.1193 239.6974);
|
|
38
38
|
--chart-2: oklch(0.7449 0.1558 32.2982);
|
|
39
39
|
--chart-3: oklch(0.765 0.177 163.223);
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
--chart-5: oklch(0.785 0.115 274.713);
|
|
42
42
|
--sidebar: oklch(0.9757 0.0017 247.8391);
|
|
43
43
|
--sidebar-foreground: oklch(0.3211 0 0);
|
|
44
|
-
--sidebar-primary: oklch(0.
|
|
44
|
+
--sidebar-primary: oklch(0.7446 0.1716 50.67);
|
|
45
45
|
--sidebar-primary-foreground: oklch(1 0 0);
|
|
46
46
|
--sidebar-accent: oklch(0.9204 0.0203 238.6791);
|
|
47
47
|
--sidebar-accent-foreground: oklch(0.3808 0.1001 259.7551);
|
|
48
48
|
--sidebar-border: oklch(0.9106 0.006 239.8262);
|
|
49
|
-
--sidebar-ring: oklch(0.
|
|
49
|
+
--sidebar-ring: oklch(0.7446 0.1716 50.67);
|
|
50
50
|
--font-sans: Inter, sans-serif;
|
|
51
51
|
--font-serif: Source Serif 4, serif;
|
|
52
52
|
--font-mono: JetBrains Mono, monospace;
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
--shadow-y: 1px;
|
|
56
56
|
--shadow-blur: 3px;
|
|
57
57
|
--shadow-spread: 0px;
|
|
58
|
-
--shadow-opacity: 0.
|
|
58
|
+
--shadow-opacity: 0.16;
|
|
59
59
|
--shadow-color: #29303d;
|
|
60
|
-
--shadow-2xs: 0px 1px
|
|
61
|
-
--shadow-xs: 0px 1px
|
|
60
|
+
--shadow-2xs: 0px 1px 2px 0px hsl(219 19.6078% 20% / 0.09);
|
|
61
|
+
--shadow-xs: 0px 1px 2px 0px hsl(219 19.6078% 20% / 0.09);
|
|
62
62
|
--shadow-sm:
|
|
63
|
-
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.
|
|
63
|
+
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.16), 0px 1px 2px -1px hsl(219 19.6078% 20% / 0.12);
|
|
64
64
|
--shadow:
|
|
65
|
-
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.
|
|
65
|
+
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.16), 0px 1px 2px -1px hsl(219 19.6078% 20% / 0.12);
|
|
66
66
|
--shadow-md:
|
|
67
|
-
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.
|
|
67
|
+
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.16), 0px 2px 4px -1px hsl(219 19.6078% 20% / 0.13);
|
|
68
68
|
--shadow-lg:
|
|
69
|
-
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.
|
|
69
|
+
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.16), 0px 4px 6px -1px hsl(219 19.6078% 20% / 0.14);
|
|
70
70
|
--shadow-xl:
|
|
71
|
-
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.
|
|
72
|
-
--shadow-2xl: 0px
|
|
71
|
+
0px 1px 3px 0px hsl(219 19.6078% 20% / 0.16), 0px 8px 10px -1px hsl(219 19.6078% 20% / 0.15);
|
|
72
|
+
--shadow-2xl: 0px 2px 6px 0px hsl(219 19.6078% 20% / 0.3);
|
|
73
73
|
--tracking-normal: 0em;
|
|
74
74
|
--spacing: 0.25rem;
|
|
75
75
|
}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
--card-foreground: oklch(0.9189 0 0);
|
|
82
82
|
--popover: oklch(0.2617 0.0197 254.8441);
|
|
83
83
|
--popover-foreground: oklch(0.9189 0 0);
|
|
84
|
-
--primary: oklch(0.
|
|
84
|
+
--primary: oklch(0.7446 0.1716 50.67);
|
|
85
85
|
--primary-foreground: oklch(1 0 0);
|
|
86
86
|
--secondary: oklch(0.2988 0.0207 257.2741);
|
|
87
87
|
--secondary-foreground: oklch(0.9006 0 0);
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
--destructive-foreground: oklch(1 0 0);
|
|
94
94
|
--border: oklch(0.3408 0.0192 251.4559);
|
|
95
95
|
--input: oklch(0.3408 0.0192 251.4559);
|
|
96
|
-
--ring: oklch(0.
|
|
96
|
+
--ring: oklch(0.7446 0.1716 50.67);
|
|
97
97
|
--chart-1: oklch(0.7011 0.1193 239.6974);
|
|
98
98
|
--chart-2: oklch(0.7449 0.1558 32.2982);
|
|
99
99
|
--chart-3: oklch(0.765 0.177 163.223);
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
--chart-5: oklch(0.785 0.115 274.713);
|
|
102
102
|
--sidebar: oklch(0.2492 0.02 254.8597);
|
|
103
103
|
--sidebar-foreground: oklch(0.9189 0 0);
|
|
104
|
-
--sidebar-primary: oklch(0.
|
|
104
|
+
--sidebar-primary: oklch(0.7446 0.1716 50.67);
|
|
105
105
|
--sidebar-primary-foreground: oklch(1 0 0);
|
|
106
106
|
--sidebar-accent: oklch(0.3206 0.0396 254.678);
|
|
107
107
|
--sidebar-accent-foreground: oklch(0.8996 0.0504 251.1357);
|
|
108
108
|
--sidebar-border: oklch(0.3408 0.0192 251.4559);
|
|
109
|
-
--sidebar-ring: oklch(0.
|
|
109
|
+
--sidebar-ring: oklch(0.7446 0.1716 50.67);
|
|
110
110
|
--font-sans: Inter, sans-serif;
|
|
111
111
|
--font-serif: Source Serif 4, serif;
|
|
112
112
|
--font-mono: JetBrains Mono, monospace;
|
|
@@ -191,4 +191,386 @@
|
|
|
191
191
|
body {
|
|
192
192
|
@apply bg-background text-foreground;
|
|
193
193
|
}
|
|
194
|
+
|
|
195
|
+
/* Tailwind v4 dropped preflight's `button { cursor: pointer }` — buttons now
|
|
196
|
+
inherit the browser default arrow. Restored here once rather than adding
|
|
197
|
+
`cursor-pointer` at every call site: the admin has hundreds of buttons and
|
|
198
|
+
they had drifted badly (MediaBrowser 0/21 had it, ArrayField 4/17), so
|
|
199
|
+
whether a control looked clickable depended on which file it lived in.
|
|
200
|
+
Disabled controls keep the default cursor, which is the correct signal. */
|
|
201
|
+
button:not(:disabled),
|
|
202
|
+
[role='button']:not([aria-disabled='true']) {
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@layer components {
|
|
208
|
+
.cn-avatar {
|
|
209
|
+
@apply size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.cn-avatar-fallback {
|
|
213
|
+
@apply bg-muted text-muted-foreground rounded-full;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.cn-avatar-image {
|
|
217
|
+
@apply rounded-full;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.cn-bubble {
|
|
221
|
+
@apply max-w-[80%] gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.cn-bubble-content {
|
|
225
|
+
@apply [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-ring/30 rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed group-data-[align=end]/bubble:self-end [button,a]:outline-none [button,a]:focus-visible:ring-3;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.cn-bubble-variant-default {
|
|
229
|
+
@apply *:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cn-bubble-variant-secondary {
|
|
233
|
+
@apply *:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.cn-bubble-variant-muted {
|
|
237
|
+
@apply *:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.cn-bubble-variant-tinted {
|
|
241
|
+
@apply *:data-[slot=bubble-content]:text-foreground *:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)];
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.cn-bubble-variant-outline {
|
|
245
|
+
@apply *:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.cn-bubble-variant-ghost {
|
|
249
|
+
@apply [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cn-bubble-variant-destructive {
|
|
253
|
+
@apply *:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cn-bubble-reactions {
|
|
257
|
+
@apply bg-muted ring-card shrink-0 gap-1 rounded-full px-1.5 py-0.5 text-sm ring-3 has-[button]:p-0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.cn-bubble-reactions-side-top {
|
|
261
|
+
@apply top-0 -translate-y-3/4;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.cn-bubble-reactions-side-bottom {
|
|
265
|
+
@apply bottom-0 translate-y-3/4;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.cn-bubble-reactions-align-start {
|
|
269
|
+
@apply left-3;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.cn-bubble-reactions-align-end {
|
|
273
|
+
@apply right-3;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.cn-bubble-group {
|
|
277
|
+
@apply gap-2;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.cn-attachment {
|
|
281
|
+
@apply focus-within:ring-ring/30 w-fit rounded-2xl focus-within:ring-1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.cn-attachment-orientation-horizontal {
|
|
285
|
+
@apply min-w-40;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.cn-attachment-orientation-vertical {
|
|
289
|
+
@apply w-24 has-data-[slot=attachment-content]:w-30;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.cn-attachment-size-default {
|
|
293
|
+
@apply gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.cn-attachment-size-sm {
|
|
297
|
+
@apply gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.cn-attachment-size-xs {
|
|
301
|
+
@apply gap-1.5 rounded-xl text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.cn-attachment-media {
|
|
305
|
+
@apply bg-muted text-foreground w-10 rounded-lg 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-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_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;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.cn-attachment-media-variant-image {
|
|
309
|
+
@apply opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.cn-attachment-content {
|
|
313
|
+
@apply leading-tight group-data-[orientation=vertical]/attachment:px-1;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.cn-attachment-title {
|
|
317
|
+
@apply font-medium;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.cn-attachment-description {
|
|
321
|
+
@apply mt-0.5 text-xs;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.cn-attachment-actions {
|
|
325
|
+
@apply relative z-20 group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.cn-attachment-group {
|
|
329
|
+
@apply scroll-px-1 gap-3 py-1;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.cn-attachment-trigger {
|
|
333
|
+
@apply absolute inset-0 z-10 outline-none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.cn-marker {
|
|
337
|
+
@apply text-muted-foreground [a]:hover:text-foreground min-h-4 gap-2 text-left text-sm [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.cn-marker-variant-separator {
|
|
341
|
+
@apply before:bg-border after:bg-border before:mr-1 before:h-px before:min-w-0 before:flex-1 after:ml-1 after:h-px after:min-w-0 after:flex-1;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.cn-marker-variant-border {
|
|
345
|
+
@apply border-border border-b pb-2;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.cn-marker-icon {
|
|
349
|
+
@apply size-4 [&_svg:not([class*='size-'])]:size-4;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.cn-marker-content {
|
|
353
|
+
@apply *:[a]:hover:text-foreground group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center *:[a]:underline *:[a]:underline-offset-3;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.cn-message-scroller-content {
|
|
357
|
+
@apply gap-8;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.cn-message {
|
|
361
|
+
@apply gap-2 text-sm;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.cn-message-avatar {
|
|
365
|
+
@apply min-w-8 group-has-data-[slot=message-footer]/message:-translate-y-8;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.cn-message-content {
|
|
369
|
+
@apply gap-2.5 group-data-[align=end]/message:*:data-slot:self-end;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.cn-message-header {
|
|
373
|
+
@apply text-muted-foreground px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.cn-message-footer {
|
|
377
|
+
@apply text-muted-foreground px-3 text-xs font-medium group-has-data-[variant=ghost]/message:px-0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.cn-message-group {
|
|
381
|
+
@apply gap-2;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@property --scroll-fade-b {
|
|
386
|
+
syntax: '<length-percentage>';
|
|
387
|
+
inherits: false;
|
|
388
|
+
initial-value: 0px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@property --scroll-fade-mask {
|
|
392
|
+
syntax: '*';
|
|
393
|
+
inherits: false;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@theme inline {
|
|
397
|
+
@keyframes scroll-fade-reveal-b {
|
|
398
|
+
from {
|
|
399
|
+
--scroll-fade-b: var(
|
|
400
|
+
--_scroll-fade-size-b,
|
|
401
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
to {
|
|
405
|
+
--scroll-fade-b: 0px;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@utility scroll-fade-b {
|
|
411
|
+
--_scroll-fade-size-b: var(
|
|
412
|
+
--scroll-fade-b-size,
|
|
413
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
414
|
+
);
|
|
415
|
+
--scroll-fade-mask: linear-gradient(
|
|
416
|
+
to bottom,
|
|
417
|
+
#000 0,
|
|
418
|
+
#000 calc(100% - var(--scroll-fade-b, 0px)),
|
|
419
|
+
transparent 100%
|
|
420
|
+
);
|
|
421
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
422
|
+
mask-image: var(--scroll-fade-mask);
|
|
423
|
+
-webkit-mask-composite: source-in;
|
|
424
|
+
mask-composite: intersect;
|
|
425
|
+
-webkit-mask-repeat: no-repeat;
|
|
426
|
+
mask-repeat: no-repeat;
|
|
427
|
+
|
|
428
|
+
@supports (animation-timeline: scroll()) {
|
|
429
|
+
animation: scroll-fade-reveal-b 1ms ease-in-out;
|
|
430
|
+
animation-timeline: scroll(self y);
|
|
431
|
+
animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
432
|
+
animation-fill-mode: both;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
@supports not (animation-timeline: scroll()) {
|
|
436
|
+
--scroll-fade-b: var(--_scroll-fade-size-b);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
@utility scroll-fade {
|
|
441
|
+
--scroll-fade-size: 2rem;
|
|
442
|
+
mask-image: linear-gradient(
|
|
443
|
+
to bottom,
|
|
444
|
+
transparent,
|
|
445
|
+
black var(--scroll-fade-size),
|
|
446
|
+
black calc(100% - var(--scroll-fade-size)),
|
|
447
|
+
transparent
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* Shimmer */
|
|
452
|
+
@property --shimmer-angle {
|
|
453
|
+
syntax: '<angle>';
|
|
454
|
+
inherits: true;
|
|
455
|
+
initial-value: 20deg;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
@property --shimmer-image {
|
|
459
|
+
syntax: '*';
|
|
460
|
+
inherits: false;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@property --shimmer-text-fill {
|
|
464
|
+
syntax: '*';
|
|
465
|
+
inherits: false;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
@theme inline {
|
|
469
|
+
@keyframes tw-shimmer {
|
|
470
|
+
from {
|
|
471
|
+
background-position: 100% 0;
|
|
472
|
+
}
|
|
473
|
+
to {
|
|
474
|
+
background-position: 0 0;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* The blinking caret in `input-otp`'s slots. shadcn's component reaches for
|
|
480
|
+
`animate-caret-blink` but the animation itself isn't part of any preset — in
|
|
481
|
+
Tailwind v4 an undefined `animate-*` is simply dropped, so without this the
|
|
482
|
+
caret renders as a static bar and the field looks frozen. */
|
|
483
|
+
@theme inline {
|
|
484
|
+
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
|
|
485
|
+
|
|
486
|
+
@keyframes caret-blink {
|
|
487
|
+
0%,
|
|
488
|
+
70%,
|
|
489
|
+
100% {
|
|
490
|
+
opacity: 1;
|
|
491
|
+
}
|
|
492
|
+
20%,
|
|
493
|
+
50% {
|
|
494
|
+
opacity: 0;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
@utility shimmer {
|
|
500
|
+
--_spread: var(--shimmer-spread, calc(3ch + 40px));
|
|
501
|
+
--_base: currentColor;
|
|
502
|
+
--_highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha* 0.2)));
|
|
503
|
+
|
|
504
|
+
background-image: var(
|
|
505
|
+
--shimmer-image,
|
|
506
|
+
linear-gradient(
|
|
507
|
+
calc(90deg + var(--shimmer-angle)),
|
|
508
|
+
var(--_base) calc(50% - var(--_spread)),
|
|
509
|
+
color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% - var(--_spread) * 0.5),
|
|
510
|
+
var(--_highlight) 50%,
|
|
511
|
+
color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% + var(--_spread) * 0.5),
|
|
512
|
+
var(--_base) calc(50% + var(--_spread))
|
|
513
|
+
)
|
|
514
|
+
);
|
|
515
|
+
background-repeat: no-repeat;
|
|
516
|
+
background-size: calc(200% + var(--_spread) * 2) 100%;
|
|
517
|
+
background-position: 0 0;
|
|
518
|
+
background-clip: text;
|
|
519
|
+
-webkit-background-clip: text;
|
|
520
|
+
-webkit-text-fill-color: var(--shimmer-text-fill, transparent);
|
|
521
|
+
animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
|
|
522
|
+
|
|
523
|
+
@variant dark {
|
|
524
|
+
--_highlight: var(
|
|
525
|
+
--shimmer-color,
|
|
526
|
+
oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
|
|
527
|
+
);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
&:where([dir='rtl'], [dir='rtl'] *) {
|
|
531
|
+
animation-direction: reverse;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@utility shimmer-once {
|
|
536
|
+
animation-iteration-count: 1;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
@utility shimmer-reverse {
|
|
540
|
+
animation-direction: reverse;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@utility shimmer-none {
|
|
544
|
+
--shimmer-image: none;
|
|
545
|
+
--shimmer-text-fill: currentColor;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
@utility shimmer-color-* {
|
|
549
|
+
--shimmer-color: --value(--color, [color]);
|
|
550
|
+
--shimmer-color: color-mix(
|
|
551
|
+
in oklch,
|
|
552
|
+
--value(--color, [color]) calc(--modifier(integer) * 1%),
|
|
553
|
+
transparent
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
@utility shimmer-duration-* {
|
|
558
|
+
--shimmer-duration: calc(--value(integer) * 1ms);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
@utility shimmer-spread-* {
|
|
562
|
+
--shimmer-spread: calc(var(--spacing) * --value(integer));
|
|
563
|
+
--shimmer-spread: --value([length], [percentage]);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
@utility shimmer-angle-* {
|
|
567
|
+
--shimmer-angle: calc(--value(integer) * 1deg);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
@media (prefers-reduced-motion: reduce) {
|
|
571
|
+
.shimmer {
|
|
572
|
+
animation: none;
|
|
573
|
+
background-image: none;
|
|
574
|
+
-webkit-text-fill-color: currentColor;
|
|
575
|
+
}
|
|
194
576
|
}
|