@lovett/ui 0.2.4 → 0.2.6
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/{chunk-GP7BKVZC.js → chunk-6XT32ETQ.js} +7 -7
- package/dist/{chunk-GP7BKVZC.js.map → chunk-6XT32ETQ.js.map} +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/{rich-composer-impl-F5PQVFZT.js → rich-composer-impl-EJC4CQKI.js} +4 -4
- package/dist/{rich-composer-impl-F5PQVFZT.js.map → rich-composer-impl-EJC4CQKI.js.map} +1 -1
- package/package.json +1 -1
- package/src/thread/actions.tsx +1 -1
- package/src/thread/attachments.tsx +3 -3
- package/src/thread/comment-body.tsx +1 -1
- package/src/thread/comment.tsx +2 -2
- package/src/thread/link-preview.tsx +2 -2
- package/src/thread/rail.tsx +2 -2
- package/src/thread/reactions.tsx +1 -1
- package/src/thread/rich-composer-impl.tsx +1 -1
- package/src/thread/thread.tsx +1 -1
- package/src/thread/types.ts +19 -0
|
@@ -1271,7 +1271,7 @@ function CommentBody({ bodyMd, onSelectMention, className }) {
|
|
|
1271
1271
|
"transition-[background-color,border-color] duration-[var(--dur-fast)] ease-[var(--ease-out)]",
|
|
1272
1272
|
"motion-reduce:transition-none",
|
|
1273
1273
|
"border border-[rgb(var(--border))] bg-[rgb(var(--surface-inset))] text-[rgb(var(--accent-ink))]",
|
|
1274
|
-
interactive && "hover:border-[rgb(var(--accent))] hover:bg-[rgb(var(--surface-hover))] focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus)]"
|
|
1274
|
+
interactive && "hover:border-[rgb(var(--accent))] hover:bg-[rgb(var(--surface-hover))] focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus-inset)]"
|
|
1275
1275
|
),
|
|
1276
1276
|
style: {
|
|
1277
1277
|
borderRadius: "var(--radius-sm)",
|
|
@@ -1968,7 +1968,7 @@ var QUIET_ICON = cn(
|
|
|
1968
1968
|
"transition-[background-color,color] duration-[var(--dur-fast)] ease-[var(--ease-out)]",
|
|
1969
1969
|
"motion-reduce:transition-none",
|
|
1970
1970
|
"hover:bg-[rgb(var(--surface-overlay))] hover:text-[rgb(var(--foreground))]",
|
|
1971
|
-
"focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus)]",
|
|
1971
|
+
"focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus-inset)]",
|
|
1972
1972
|
"disabled:cursor-default disabled:opacity-60"
|
|
1973
1973
|
);
|
|
1974
1974
|
var QUIET_ICON_BOX = {
|
|
@@ -2420,7 +2420,7 @@ function AttachmentGif({ attachment, resolveUrl, className }) {
|
|
|
2420
2420
|
setPlaying(true);
|
|
2421
2421
|
void videoRef.current?.play();
|
|
2422
2422
|
},
|
|
2423
|
-
className: "absolute inset-0 flex items-center justify-center focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus)]",
|
|
2423
|
+
className: "absolute inset-0 flex items-center justify-center focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus-inset)]",
|
|
2424
2424
|
style: { background: "rgb(var(--media-scrim-mid))", color: "rgb(var(--media-on-scrim))" },
|
|
2425
2425
|
children: /* @__PURE__ */ jsx(Play, { size: 20, strokeWidth: 1.75, "aria-hidden": "true" })
|
|
2426
2426
|
}
|
|
@@ -2537,7 +2537,7 @@ function AttachmentImage({
|
|
|
2537
2537
|
"relative block overflow-hidden border",
|
|
2538
2538
|
"transition-[border-color] duration-[var(--dur-fast)] ease-[var(--ease-out)] motion-reduce:transition-none",
|
|
2539
2539
|
interactive && !showStill && "hover:border-[rgb(var(--border-strong))]",
|
|
2540
|
-
(interactive || showStill) && "focus-within:outline-none focus-within:[box-shadow:var(--ring-focus)]",
|
|
2540
|
+
(interactive || showStill) && "focus-within:outline-none focus-within:[box-shadow:var(--ring-focus-inset)]",
|
|
2541
2541
|
className
|
|
2542
2542
|
),
|
|
2543
2543
|
style: {
|
|
@@ -2672,7 +2672,7 @@ function AttachmentLightbox({ attachment, onClose, resolveUrl }) {
|
|
|
2672
2672
|
);
|
|
2673
2673
|
}
|
|
2674
2674
|
var ATTACHMENT_ACCEPT = ".png,.jpg,.jpeg,.webp,.gif,.pdf,.txt,.md,.csv,.json";
|
|
2675
|
-
var RichThreadComposerImpl = lazy(() => import('./rich-composer-impl-
|
|
2675
|
+
var RichThreadComposerImpl = lazy(() => import('./rich-composer-impl-EJC4CQKI.js'));
|
|
2676
2676
|
var RICH_FALLBACK_NOTICE = "Rich editor unavailable, plain editor loaded";
|
|
2677
2677
|
function ComposerNotice({ children }) {
|
|
2678
2678
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2751,5 +2751,5 @@ function RichThreadComposer({
|
|
|
2751
2751
|
}
|
|
2752
2752
|
|
|
2753
2753
|
export { ATTACHMENT_ACCEPT, ATTACHMENT_LIMITS, AttachmentButton, AttachmentDropZone, AttachmentGif, AttachmentImage, AttachmentLightbox, AttachmentPlaceholder, AttachmentTray, Button, CodeBlock, CommentBody, ComposerFooter, ComposerNotice, GIF_SEARCH_DEBOUNCE_MS, GifPicker, Input, Kbd, MarkdownCode, MarkdownRenderer, PASTE_ATTACHMENT_THRESHOLD, POPOVER_SURFACE_STYLE, Popover, QUIET_ICON, QUIET_ICON_BOX, RichThreadComposer, ThreadComposer, __export, applyMarkdownFormat, cn, composeRefs, computeAnchoredPosition, formatAttachmentSize, handleTabTrap, parseMentionHref, pastedTextFilename, shouldAttachPaste, tabbablesWithin, useAnchoredPosition, useAttachmentUrl, useAttachments, useEscapeKey, useLayer, useOutsideClick, usePrefersReducedMotion };
|
|
2754
|
-
//# sourceMappingURL=chunk-
|
|
2755
|
-
//# sourceMappingURL=chunk-
|
|
2754
|
+
//# sourceMappingURL=chunk-6XT32ETQ.js.map
|
|
2755
|
+
//# sourceMappingURL=chunk-6XT32ETQ.js.map
|