@botiverse/raft-ui 0.18.0 → 0.20.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/CHANGELOG.md +129 -3
- package/codemods/token-names.mjs +16 -0
- package/dist/cn.mjs +15 -1
- package/dist/components/combobox-select/combobox-select.css +58 -40
- package/dist/components/float-button/float-button.css +21 -12
- package/dist/foundation.css +53 -39
- package/dist/{index-DsVVBZ5T.d.mts → index-RFu5pOr7.d.mts} +4 -1
- package/dist/index.d.mts +40 -7
- package/dist/index.mjs +360 -126
- package/dist/style.css +73 -58
- package/dist/styles.css +61 -24
- package/dist/tokens.json +66 -55
- package/dist/{touch-drag-CbWqiMlZ.mjs → touch-drag-BA_Fxs2Z.mjs} +61 -37
- package/dist/wip.d.mts +1 -1
- package/dist/wip.mjs +3 -3
- package/package.json +1 -1
|
@@ -15,6 +15,14 @@ import { Menu } from "@base-ui/react/menu";
|
|
|
15
15
|
import { Toggle } from "@base-ui/react/toggle";
|
|
16
16
|
import { Toolbar } from "@base-ui/react/toolbar";
|
|
17
17
|
import { PointerSensor, TouchSensor, useSensor } from "@dnd-kit/core";
|
|
18
|
+
//#region src/lib/decision-width.ts
|
|
19
|
+
/**
|
|
20
|
+
* The width of every decision dialog (dialog.md#variants): AlertDialog and a
|
|
21
|
+
* `size="sm"` Dialog are both 400px, so every confirmation in a product is one
|
|
22
|
+
* width whichever of the two it is built on.
|
|
23
|
+
*/
|
|
24
|
+
const decisionWidth = "max-w-100";
|
|
25
|
+
//#endregion
|
|
18
26
|
//#region src/lib/head-edges.ts
|
|
19
27
|
/**
|
|
20
28
|
* The ends of a header (design/foundations/alignment.md#the-ends-of-a-header).
|
|
@@ -247,8 +255,8 @@ function Spinner({ size = "sm", variant = "default", className, render, ...props
|
|
|
247
255
|
}
|
|
248
256
|
//#endregion
|
|
249
257
|
//#region src/components/button/button.tsx
|
|
250
|
-
const sticker = (fill) => [`border-sticker-ink ${fill} text-sticker-ink ring-[1.5px] ring-sticker-edge`, "hover:
|
|
251
|
-
const outline = (ink) => [`border-line-strong bg-layer-card ${ink}`, "hover:
|
|
258
|
+
const sticker = (fill) => [`border-sticker-ink ${fill} text-sticker-ink ring-[1.5px] ring-sticker-edge`, "hover:overlay-sticker-medium active:overlay-sticker-medium"];
|
|
259
|
+
const outline = (ink) => [`border-line-strong bg-layer-card ${ink}`, "hover:overlay-medium active:overlay-medium"];
|
|
252
260
|
const textMd = [
|
|
253
261
|
"h-8 gap-2 rounded-control px-3 py-0 text-control",
|
|
254
262
|
"has-data-[icon=inline-start]:pl-2.5 has-data-[icon=inline-end]:pr-2.5",
|
|
@@ -291,11 +299,11 @@ const buttonVariants = tv$1({
|
|
|
291
299
|
success: { root: outline("text-foreground") },
|
|
292
300
|
"danger-secondary": { root: outline("text-danger-strong") },
|
|
293
301
|
"danger-outline": { root: outline("text-danger-strong") },
|
|
294
|
-
ghost: { root: ["border-transparent bg-transparent text-foreground", "hover:bg-fill-
|
|
302
|
+
ghost: { root: ["border-transparent bg-transparent text-foreground", "hover:bg-fill-medium active:bg-fill-medium"] },
|
|
295
303
|
"on-frame": { root: [
|
|
296
304
|
"border-transparent bg-transparent text-foreground-on-frame",
|
|
297
|
-
"hover:bg-fill-frame-
|
|
298
|
-
"aria-expanded:bg-fill-frame-
|
|
305
|
+
"hover:bg-fill-frame-medium active:bg-fill-frame-medium",
|
|
306
|
+
"aria-expanded:bg-fill-frame-medium data-popup-open:bg-fill-frame-medium",
|
|
299
307
|
"disabled:border-transparent disabled:bg-transparent",
|
|
300
308
|
"aria-disabled:border-transparent aria-disabled:bg-transparent"
|
|
301
309
|
] }
|
|
@@ -427,9 +435,9 @@ const dialog = tv$1({
|
|
|
427
435
|
},
|
|
428
436
|
variants: {
|
|
429
437
|
size: {
|
|
430
|
-
sm: { content: [
|
|
438
|
+
sm: { content: [decisionWidth] },
|
|
431
439
|
md: { content: ["max-w-md"] },
|
|
432
|
-
lg: { content: ["max-w-
|
|
440
|
+
lg: { content: ["max-w-160"] },
|
|
433
441
|
wide: { content: ["max-w-4xl h-[min(760px,calc(100dvh-2rem))]"] }
|
|
434
442
|
},
|
|
435
443
|
bar: {
|
|
@@ -625,13 +633,13 @@ const badge = tv$1({
|
|
|
625
633
|
"font-bold tabular-nums",
|
|
626
634
|
"text-sticker-ink inset-ring-[1.5px] inset-ring-sticker-ink ring-[1.5px] ring-sticker-edge",
|
|
627
635
|
"[&_svg]:size-[13px]",
|
|
628
|
-
"enabled:hover:
|
|
636
|
+
"enabled:hover:overlay-sticker-medium enabled:active:overlay-sticker-medium"
|
|
629
637
|
] },
|
|
630
|
-
soft: { root: ["text-foreground", "enabled:hover:
|
|
638
|
+
soft: { root: ["text-foreground", "enabled:hover:overlay-medium enabled:active:overlay-medium"] },
|
|
631
639
|
outline: { root: [
|
|
632
640
|
"font-mono text-mono-meta font-normal",
|
|
633
641
|
"bg-transparent text-foreground-muted inset-ring inset-ring-line-hairline",
|
|
634
|
-
"enabled:hover:bg-fill-
|
|
642
|
+
"enabled:hover:bg-fill-medium enabled:active:bg-fill-medium"
|
|
635
643
|
] }
|
|
636
644
|
},
|
|
637
645
|
variant: {
|
|
@@ -1307,13 +1315,13 @@ const dropdownMenu = tv$1({ slots: {
|
|
|
1307
1315
|
content: [
|
|
1308
1316
|
"max-h-(--available-height) overflow-hidden",
|
|
1309
1317
|
"outline-none",
|
|
1310
|
-
"flex min-w-60 flex-col gap-0 rounded-container bg-layer-popover p-1
|
|
1318
|
+
"flex min-w-60 flex-col gap-0 rounded-container bg-layer-popover p-1 text-foreground",
|
|
1311
1319
|
"shadow-float ring-1 ring-line-seam"
|
|
1312
1320
|
],
|
|
1313
1321
|
item: [
|
|
1314
1322
|
"flex w-full cursor-default select-none items-center",
|
|
1315
1323
|
"text-left outline-none transition-colors",
|
|
1316
|
-
"min-h-option gap-2.5 rounded-
|
|
1324
|
+
"min-h-option gap-2.5 rounded-chip px-2.5 py-option-inset",
|
|
1317
1325
|
"font-sans text-callout font-medium text-foreground",
|
|
1318
1326
|
"hover:bg-brand-soft data-highlighted:bg-brand-soft",
|
|
1319
1327
|
"data-checked:font-bold data-[selected]:font-bold data-[emphasis=strong]:font-bold",
|
|
@@ -1324,7 +1332,7 @@ const dropdownMenu = tv$1({ slots: {
|
|
|
1324
1332
|
radioItem: [
|
|
1325
1333
|
"flex w-full cursor-default select-none items-center",
|
|
1326
1334
|
"text-left outline-none transition-colors",
|
|
1327
|
-
"min-h-option gap-2.5 rounded-
|
|
1335
|
+
"min-h-option gap-2.5 rounded-chip px-2.5 py-option-inset",
|
|
1328
1336
|
"font-sans text-callout font-medium text-foreground",
|
|
1329
1337
|
"hover:bg-brand-soft data-highlighted:bg-brand-soft",
|
|
1330
1338
|
"data-checked:font-bold",
|
|
@@ -1335,7 +1343,7 @@ const dropdownMenu = tv$1({ slots: {
|
|
|
1335
1343
|
submenuTrigger: [
|
|
1336
1344
|
"flex w-full cursor-default select-none items-center",
|
|
1337
1345
|
"text-left outline-none transition-colors",
|
|
1338
|
-
"min-h-option gap-2.5 rounded-
|
|
1346
|
+
"min-h-option gap-2.5 rounded-chip px-2.5 py-option-inset",
|
|
1339
1347
|
"font-sans text-callout font-medium text-foreground",
|
|
1340
1348
|
"hover:bg-brand-soft data-highlighted:bg-brand-soft data-popup-open:bg-brand-soft",
|
|
1341
1349
|
"data-disabled:pointer-events-none data-disabled:text-foreground-disabled",
|
|
@@ -1351,7 +1359,7 @@ const dropdownMenu = tv$1({ slots: {
|
|
|
1351
1359
|
"font-mono text-mono-meta font-normal text-foreground-hint"
|
|
1352
1360
|
],
|
|
1353
1361
|
itemCount: ["ml-auto inline-flex min-w-5 justify-center gap-0 px-1 tabular-nums"],
|
|
1354
|
-
separator: ["-mx-1
|
|
1362
|
+
separator: ["-mx-1 my-1 h-px border-0 bg-line-hairline"],
|
|
1355
1363
|
indicator: ["pointer-events-none ml-auto flex shrink-0 items-center justify-center", "size-4 text-foreground [&_svg]:size-4"],
|
|
1356
1364
|
radioLabel: ["min-w-0 flex-1 truncate"]
|
|
1357
1365
|
} });
|
|
@@ -1931,8 +1939,8 @@ const messageItem = tv$1({
|
|
|
1931
1939
|
"min-h-0 px-2 py-1 border-t-8 border-transparent bg-clip-padding",
|
|
1932
1940
|
"hover:[--mi-ct-color:var(--foreground-hint)] has-data-popup-open:[--mi-ct-color:var(--foreground-hint)]",
|
|
1933
1941
|
"bg-(--mi-row-fill) [--mi-row-fill:initial]",
|
|
1934
|
-
"hover:[--mi-row-fill:var(--fill-
|
|
1935
|
-
"data-popup-open:[--mi-row-fill:var(--fill-
|
|
1942
|
+
"hover:[--mi-row-fill:var(--fill-subtle)]",
|
|
1943
|
+
"data-popup-open:[--mi-row-fill:var(--fill-subtle)] has-data-popup-open:[--mi-row-fill:var(--fill-subtle)]",
|
|
1936
1944
|
"has-data-[slot=message-item-search-match]:[--mi-row-fill:var(--info-soft)] has-data-[slot=message-item-search-match]:hover:[--mi-row-fill:var(--info-soft)]",
|
|
1937
1945
|
"has-[[data-slot=message-multi-select-checkbox][data-checked]]:[--mi-row-fill:var(--info-soft)]",
|
|
1938
1946
|
"has-[[data-slot=message-multi-select-checkbox][data-checked]]:hover:[--mi-row-fill:var(--info-soft)]"
|
|
@@ -1952,7 +1960,7 @@ const messageItem = tv$1({
|
|
|
1952
1960
|
content: ["min-w-0 flex-1", "text-body text-foreground"],
|
|
1953
1961
|
header: [
|
|
1954
1962
|
"mb-px flex min-w-0 items-baseline gap-1.5 overflow-hidden",
|
|
1955
|
-
"pointer-fine:pe-(--mi-toolbar-reserve,
|
|
1963
|
+
"pointer-fine:pe-(--mi-toolbar-reserve,7rem)",
|
|
1956
1964
|
"has-data-[slot=message-item-delegated-by]:[--mi-owner-basis:3rem] has-data-[slot=message-item-delegated-by]:[--mi-owner-flex:1_0]"
|
|
1957
1965
|
],
|
|
1958
1966
|
senderGroup: [
|
|
@@ -2007,15 +2015,15 @@ const messageItem = tv$1({
|
|
|
2007
2015
|
"absolute z-20 flex items-center",
|
|
2008
2016
|
"opacity-(--mi-toolbar-opacity,0)",
|
|
2009
2017
|
"[pointer-events:var(--mi-toolbar-pe,none)]",
|
|
2010
|
-
"top-[-
|
|
2018
|
+
"top-[-18px] right-3 gap-1 overflow-visible rounded-container p-1",
|
|
2011
2019
|
"bg-layer-popover ring-1 ring-line-seam ring-inset shadow-float"
|
|
2012
2020
|
],
|
|
2013
2021
|
toolbarButton: [
|
|
2014
2022
|
"inline-flex shrink-0 items-center justify-center",
|
|
2015
2023
|
"[&_svg]:shrink-0",
|
|
2016
|
-
"size-7 rounded-
|
|
2017
|
-
"text-foreground-muted hover:bg-fill-
|
|
2018
|
-
"data-popup-open:bg-fill-
|
|
2024
|
+
"size-7 rounded-chip border-0 bg-transparent p-0",
|
|
2025
|
+
"text-foreground-muted hover:bg-fill-medium active:bg-fill-medium",
|
|
2026
|
+
"data-popup-open:bg-fill-medium data-active:text-foreground",
|
|
2019
2027
|
"outline-none focus-visible:shadow-focus",
|
|
2020
2028
|
"[&_svg]:size-4"
|
|
2021
2029
|
]
|
|
@@ -2344,7 +2352,7 @@ const messageFooter = tv$1({
|
|
|
2344
2352
|
"[&_svg]:shrink-0",
|
|
2345
2353
|
"h-[22px] rounded-chip px-1.5",
|
|
2346
2354
|
"text-caption font-semibold text-foreground-muted",
|
|
2347
|
-
"bg-fill-muted hover:
|
|
2355
|
+
"bg-fill-muted hover:overlay-medium active:overlay-medium",
|
|
2348
2356
|
"outline-none focus-visible:shadow-focus",
|
|
2349
2357
|
"[&_svg]:size-3.5 [&_svg]:text-foreground"
|
|
2350
2358
|
],
|
|
@@ -2358,7 +2366,7 @@ const messageFooter = tv$1({
|
|
|
2358
2366
|
"transition-colors [&_svg]:shrink-0",
|
|
2359
2367
|
"h-6 gap-1 rounded-chip border-0 px-2 shadow-none",
|
|
2360
2368
|
"text-footnote font-bold text-foreground-muted",
|
|
2361
|
-
"bg-fill-muted hover:
|
|
2369
|
+
"bg-fill-muted hover:overlay-medium active:overlay-medium",
|
|
2362
2370
|
"[&_svg]:size-3.5"
|
|
2363
2371
|
],
|
|
2364
2372
|
badgeSeparator: ["text-foreground/45"]
|
|
@@ -2455,7 +2463,7 @@ const messageReaction = tv$1({ slots: {
|
|
|
2455
2463
|
"inline-flex min-w-0 max-w-full items-center overflow-hidden whitespace-nowrap",
|
|
2456
2464
|
"transition-colors",
|
|
2457
2465
|
"h-6 gap-1 rounded-chip pr-2 pl-1.5 text-callout text-foreground",
|
|
2458
|
-
"bg-fill-muted hover:
|
|
2466
|
+
"bg-fill-muted hover:overlay-medium active:overlay-medium",
|
|
2459
2467
|
"data-pressed:bg-attention-soft",
|
|
2460
2468
|
"has-data-[slot=message-reaction-error-indicator]:bg-warning-soft",
|
|
2461
2469
|
"outline-none focus-visible:shadow-focus",
|
|
@@ -2469,18 +2477,18 @@ const messageReaction = tv$1({ slots: {
|
|
|
2469
2477
|
"transition-colors",
|
|
2470
2478
|
"[&_svg]:shrink-0",
|
|
2471
2479
|
"h-6 rounded-chip px-1.5 [&_svg]:size-4",
|
|
2472
|
-
"bg-fill-muted text-foreground-muted hover:
|
|
2480
|
+
"bg-fill-muted text-foreground-muted hover:overlay-medium active:overlay-medium",
|
|
2473
2481
|
"outline-none focus-visible:shadow-focus"
|
|
2474
2482
|
],
|
|
2475
2483
|
quickRow: [
|
|
2476
2484
|
"flex shrink-0 items-center",
|
|
2477
|
-
"justify-between gap-0.5 bg-layer-popover
|
|
2485
|
+
"justify-between gap-0.5 bg-layer-popover p-0",
|
|
2478
2486
|
"[&>[role=menuitem]]:size-9 [&>[role=menuitem]]:p-0 *:[[role=menuitem]]:justify-center"
|
|
2479
2487
|
],
|
|
2480
2488
|
quickButton: [
|
|
2481
2489
|
"flex items-center justify-center",
|
|
2482
2490
|
"bg-transparent transition-colors",
|
|
2483
|
-
"size-9 rounded-
|
|
2491
|
+
"size-9 rounded-chip p-0 text-xl leading-none text-foreground-muted",
|
|
2484
2492
|
"hover:bg-brand-soft data-highlighted:bg-brand-soft active:bg-brand-soft",
|
|
2485
2493
|
"outline-none focus-visible:shadow-focus"
|
|
2486
2494
|
],
|
|
@@ -2688,7 +2696,7 @@ const chip = (fill) => [
|
|
|
2688
2696
|
"[&_svg]:size-3.5 [&_svg]:text-foreground-muted",
|
|
2689
2697
|
fill
|
|
2690
2698
|
];
|
|
2691
|
-
const linkChip = (fill) => [...chip(fill), "text-foreground cursor-pointer hover:
|
|
2699
|
+
const linkChip = (fill) => [...chip(fill), "text-foreground cursor-pointer hover:overlay-medium active:overlay-medium"];
|
|
2692
2700
|
const messageReference = tv$1({
|
|
2693
2701
|
slots: {
|
|
2694
2702
|
root: [
|
|
@@ -2710,7 +2718,7 @@ const messageReference = tv$1({
|
|
|
2710
2718
|
"inline-flex cursor-pointer rounded-sticker px-[3px]",
|
|
2711
2719
|
"font-semibold text-sticker-ink no-underline",
|
|
2712
2720
|
"bg-brand inset-ring-[1.5px] inset-ring-sticker-ink ring-[1.5px] ring-sticker-edge",
|
|
2713
|
-
"hover:
|
|
2721
|
+
"hover:overlay-sticker-medium active:overlay-sticker-medium"
|
|
2714
2722
|
] },
|
|
2715
2723
|
secondary: { root: ["inline cursor-pointer font-bold text-foreground", "decoration-foreground decoration-[1.5px] underline-offset-[3px] hover:underline"] },
|
|
2716
2724
|
accent: { root: linkChip("bg-attention-soft") },
|
|
@@ -2780,9 +2788,14 @@ const messageMultiSelect = tv$1({ slots: {
|
|
|
2780
2788
|
],
|
|
2781
2789
|
toolbar: [
|
|
2782
2790
|
"flex items-center",
|
|
2783
|
-
"gap-2 rounded-container
|
|
2791
|
+
"gap-2 rounded-container py-1 pr-1 pl-2.5",
|
|
2792
|
+
"**:data-[slot=button]:h-7 **:data-[slot=button]:w-auto **:data-[slot=button]:min-w-7",
|
|
2793
|
+
"**:data-[slot=button]:rounded-chip",
|
|
2794
|
+
"**:data-[slot=button]:after:inset-x-[-3px] **:data-[slot=button]:first:after:left-[-9.5px] **:data-[slot=button]:last:after:right-[-9.5px]",
|
|
2795
|
+
"pointer-coarse:**:data-[slot=button]:after:inset-y-[-9.5px]",
|
|
2784
2796
|
"bg-layer-popover ring-1 ring-line-seam shadow-float"
|
|
2785
|
-
]
|
|
2797
|
+
],
|
|
2798
|
+
toolbarActions: ["flex min-w-0 flex-1 flex-wrap items-center justify-end", "gap-1"]
|
|
2786
2799
|
} });
|
|
2787
2800
|
//#endregion
|
|
2788
2801
|
//#region src/components/message-item/message-multi-select.tsx
|
|
@@ -2807,6 +2820,17 @@ function MessageMultiSelectToolbar({ className, render, ...props }) {
|
|
|
2807
2820
|
state: { slot: "message-multi-select-toolbar" }
|
|
2808
2821
|
});
|
|
2809
2822
|
}
|
|
2823
|
+
/** The toolbar's actions, at its end, 4px apart like every floating toolbar's buttons. */
|
|
2824
|
+
function MessageMultiSelectToolbarActions({ className, render, ...props }) {
|
|
2825
|
+
const { toolbarActions } = messageMultiSelect();
|
|
2826
|
+
const defaultProps = { className: toolbarActions({ className }) };
|
|
2827
|
+
return useRender({
|
|
2828
|
+
defaultTagName: "div",
|
|
2829
|
+
render,
|
|
2830
|
+
props: mergeProps(defaultProps, props),
|
|
2831
|
+
state: { slot: "message-multi-select-toolbar-actions" }
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2810
2834
|
function MessageMultiSelectCheckbox({ className, ...props }) {
|
|
2811
2835
|
const { checkbox } = messageMultiSelect();
|
|
2812
2836
|
return /* @__PURE__ */ jsx(Checkbox$1, {
|
|
@@ -2821,17 +2845,17 @@ function MessageMultiSelectCheckbox({ className, ...props }) {
|
|
|
2821
2845
|
const messageTextSelectionToolbar = tv$1({ slots: {
|
|
2822
2846
|
toolbar: [
|
|
2823
2847
|
"flex min-w-0 items-center select-none",
|
|
2824
|
-
"gap-
|
|
2848
|
+
"gap-1 overflow-visible rounded-container p-1 text-control font-bold",
|
|
2825
2849
|
"bg-layer-popover ring-1 ring-line-seam ring-inset shadow-float"
|
|
2826
2850
|
],
|
|
2827
2851
|
button: [
|
|
2828
2852
|
"flex shrink-0 items-center gap-1.5 outline-none transition-colors",
|
|
2829
|
-
"h-7 rounded-
|
|
2830
|
-
"hover:bg-fill-
|
|
2853
|
+
"h-7 rounded-chip px-2.5 whitespace-nowrap text-foreground",
|
|
2854
|
+
"hover:bg-fill-medium active:bg-fill-medium",
|
|
2831
2855
|
"focus-visible:shadow-focus",
|
|
2832
2856
|
"[&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-foreground-muted"
|
|
2833
2857
|
],
|
|
2834
|
-
separator: ["w-px shrink-0", "
|
|
2858
|
+
separator: ["w-px shrink-0", "h-5 bg-line-hairline"]
|
|
2835
2859
|
} });
|
|
2836
2860
|
//#endregion
|
|
2837
2861
|
//#region src/components/message-item/message-text-selection-toolbar.tsx
|
|
@@ -3383,4 +3407,4 @@ function useMouseOnlyPointerSensor(distance) {
|
|
|
3383
3407
|
return useSensor(MouseOnlyPointerSensor, options);
|
|
3384
3408
|
}
|
|
3385
3409
|
//#endregion
|
|
3386
|
-
export {
|
|
3410
|
+
export { MessageReactionTooltipContent as $, useTheme as $n, DropdownMenuRadioGroup as $t, messageEmbed as A, TooltipTrigger as An, MessageItemAvatarSlot as At, MessageReferenceLabel as B, DialogOverlay as Bn, AvatarImage as Bt, MessageQuotedPreviewThread as C, Checkbox$1 as Cn, MessageItemAttachments as Ct, MessageEmbedContent as D, TooltipContent as Dn, MessageItemEmbedded as Dt, MessageEmbed as E, Tooltip$1 as En, MessageItemEdited as Et, MessageMultiSelectCheckbox as F, DialogContent as Fn, Avatar$1 as Ft, MessageReactionChip as G, Button$1 as Gn, DropdownMenuContent as Gt, MessageReferenceText as H, DialogSurface as Hn, DropdownMenu as Ht, MessageMultiSelectToolbar as I, DialogDescription as In, AvatarBadge as It, MessageReactionGlyph as J, defaultNativeButton as Jn, DropdownMenuItemCount as Jt, MessageReactionCount as K, buttonVariants as Kn, DropdownMenuFooter as Kt, MessageMultiSelectToolbarActions as L, DialogFooter as Ln, AvatarFallback as Lt, MessageTextSelectionToolbarButton as M, Dialog$1 as Mn, MessageItemGutter as Mt, MessageTextSelectionToolbarSeparator as N, DialogBody as Nn, MessageItem as Nt, MessageEmbedFooter as O, TooltipPortal as On, MessageItemFooter as Ot, MessageMultiSelect as P, DialogClose as Pn, searchHit as Pt, MessageReactionQuickRow as Q, useThemeScopeProps as Qn, DropdownMenuPortal as Qt, MessageReferenceChip as R, DialogHeader as Rn, AvatarGroup as Rt, MessageQuotedPreviewText as S, useMobileViewport as Sn, MessageItemTime as St, MessageQuotedPreviewUnavailable as T, PRESENCE_COLOR as Tn, MessageItemContent as Tt, MessageReferenceUnavailable as U, DialogTitle as Un, DropdownMenuCheckboxItem as Ut, MessageReferencePending as V, DialogPortal as Vn, useOverflowTitle as Vt, MessageReactionAddButton as W, DialogTrigger as Wn, DropdownMenuCheckboxItemIndicator as Wt, MessageReactionPickerStatic as X, withOverlayLayer as Xn, DropdownMenuLabel as Xt, MessageReactionPickerContent as Y, useParentOverlayKind as Yn, DropdownMenuItemLabel as Yt, MessageReactionQuickButton as Z, resolveThemeScopeProps as Zn, DropdownMenuPopup as Zt, MessageQuotedPreviewAuthorName as _, ScrollAreaContent as _n, MessageItemMeta as _t, MessageListJumpPillDismiss as a, DropdownMenuSubmenuTrigger as an, decisionWidth as ar, MessageItemBadge as at, MessageQuotedPreviewHeader as b, ScrollAreaThumb as bn, MessageItemSenderButton as bt, MessageListHistoryLimited as c, KbdGroup as cn, MessageItemSavedIndicator as ct, MessageQuotedPreview as d, PanelFooter as dn, MessageItemDelegatedAvatar as dt, DropdownMenuRadioItem as en, ThemeStateContext as er, MessageReactionTooltipMeta as et, MessageQuotedPreviewAttachment as f, PanelHeaderRoot as fn, MessageItemDelegatedBy as ft, MessageQuotedPreviewAuthorMeta as g, ScrollArea$1 as gn, MessageItemInlineStatus as gt, MessageQuotedPreviewAuthorDelegatedBy as h, PanelSection as hn, MessageItemHeader as ht, MessageListJumpPill as i, DropdownMenuSubmenu as in, headEdges as ir, MessageReactionTooltipSeparator as it, MessageTextSelectionToolbar as j, Badge as jn, MessageItemContinuationTime as jt, MessageEmbedHeader as k, TooltipProvider as kn, MessageItemSearchMatch as kt, MessageListNotice as l, Panel as ln, MessageItemToolbar as lt, MessageQuotedPreviewAuthor as m, PanelScrollViewport as mn, MessageItemDelegatedByName as mt, useMouseOnlyPointerSensor as n, DropdownMenuSeparator as nn, controlIconInset as nr, MessageReactionTooltipNameText as nt, MessageListJumpPillGroup as o, DropdownMenuTrigger as on, MessageItemBadgeSeparator as ot, MessageQuotedPreviewAttachments as p, PanelScrollContent as pn, MessageItemDelegatedByButton as pt, MessageReactionErrorIndicator as q, Spinner as qn, DropdownMenuItem as qt, MessageListJumpControls as r, DropdownMenuShortcut as rn, headEdgePull as rr, MessageReactionTooltipNames as rt, MessageListDateDivider as s, Kbd as sn, MessageItemReadReceipt as st, useHoldThenMoveTouchSensor as t, DropdownMenuRadioItemIndicator as tn, tv$1 as tr, MessageReactionTooltipName as tt, MessageList as u, PanelBody as un, MessageItemToolbarButton as ut, MessageQuotedPreviewChannel as v, ScrollAreaCorner as vn, MessageItemSender as vt, MessageQuotedPreviewTimestamp as w, CheckboxIndicator as wn, MessageItemBody as wt, MessageQuotedPreviewLoading as x, ScrollAreaViewport as xn, MessageItemSenderGroup as xt, MessageQuotedPreviewContent as y, ScrollAreaScrollbar as yn, MessageItemSenderBadges as yt, MessageReferenceIndicator as z, DialogNav as zn, AvatarGroupCount as zt };
|
package/dist/wip.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as MessageQuotedPreviewAuthorDelegatedBy,
|
|
1
|
+
import { C as MessageQuotedPreviewAuthorDelegatedBy, Di as DialogContentProps, Gi as DialogTrigger, Ji as ButtonProps, Qi as StyledProps, Wi as DialogTitleProps, Zi as DataAttributes, _n as MessageItemDelegatedByProps, a as MessageListJumpPillDismissProps, c as MessageListJumpPillProps, dn as MessageItemDelegatedAvatarProps, fn as MessageItemDelegatedBy, gn as MessageItemDelegatedByNameProps, hn as MessageItemDelegatedByName, i as MessageListJumpPillDismiss, mn as MessageItemDelegatedByButtonProps, n as MessageListJumpControlsProps, o as MessageListJumpPillGroup, pn as MessageItemDelegatedByButton, r as MessageListJumpPill, s as MessageListJumpPillGroupProps, t as MessageListJumpControls, un as MessageItemDelegatedAvatar, w as MessageQuotedPreviewAuthorDelegatedByProps, wi as DialogClose, xi as Dialog } from "./index-RFu5pOr7.mjs";
|
|
2
2
|
import { CSSProperties, ComponentPropsWithRef, PointerEvent, ReactNode } from "react";
|
|
3
3
|
import { Button } from "@base-ui/react/button";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
package/dist/wip.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as useTheme, Fn as DialogContent, Gn as Button$1, Jn as defaultNativeButton, Mn as Dialog, Pn as DialogClose, Qn as useThemeScopeProps, Un as DialogTitle, Vt as useOverflowTitle, Wn as DialogTrigger, a as MessageListJumpPillDismiss, dt as MessageItemDelegatedAvatar, ft as MessageItemDelegatedBy, h as MessageQuotedPreviewAuthorDelegatedBy, i as MessageListJumpPill, mt as MessageItemDelegatedByName, o as MessageListJumpPillGroup, pt as MessageItemDelegatedByButton, r as MessageListJumpControls, t as useHoldThenMoveTouchSensor, tr as tv } from "./touch-drag-BA_Fxs2Z.mjs";
|
|
2
2
|
import { Check, ChevronDown, LoaderCircle, Plus, X } from "lucide-react";
|
|
3
3
|
import { createContext, use, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -651,7 +651,7 @@ const comment = tv({
|
|
|
651
651
|
cardTrigger: [
|
|
652
652
|
"absolute -inset-px z-10 cursor-pointer",
|
|
653
653
|
"rounded-container border-0 bg-transparent p-0",
|
|
654
|
-
"hover:bg-fill-
|
|
654
|
+
"hover:bg-fill-subtle active:bg-fill-medium",
|
|
655
655
|
"outline-none focus-visible:shadow-focus"
|
|
656
656
|
],
|
|
657
657
|
cardQuote: ["sr-only"],
|
|
@@ -674,7 +674,7 @@ const comment = tv({
|
|
|
674
674
|
"rounded-chip border border-line-hairline py-0 ps-[3px] pe-1.5",
|
|
675
675
|
"font-mono text-mono-meta font-bold tabular-nums text-foreground",
|
|
676
676
|
"bg-layer-card [--avatar-group-surface:var(--layer-card)]",
|
|
677
|
-
"cursor-pointer hover:
|
|
677
|
+
"cursor-pointer hover:overlay-medium active:overlay-medium",
|
|
678
678
|
"data-active:border-[1.5px] data-active:border-line-strong data-active:bg-brand-soft data-active:ps-[2.5px] data-active:pe-[5.5px]",
|
|
679
679
|
"data-popup-open:border-[1.5px] data-popup-open:border-line-strong data-popup-open:bg-brand-soft data-popup-open:ps-[2.5px] data-popup-open:pe-[5.5px]",
|
|
680
680
|
"data-active:[--avatar-group-surface:var(--brand-soft)] data-popup-open:[--avatar-group-surface:var(--brand-soft)]",
|