@lovett/ui 0.2.0 → 0.2.4
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-RBYWGBQ2.js → chunk-GP7BKVZC.js} +8 -5
- package/dist/chunk-GP7BKVZC.js.map +1 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/{rich-composer-impl-5NO443A6.js → rich-composer-impl-F5PQVFZT.js} +3 -3
- package/dist/{rich-composer-impl-5NO443A6.js.map → rich-composer-impl-F5PQVFZT.js.map} +1 -1
- package/dist/styles.css +53 -1
- package/dist/theme-v2.css +26 -0
- package/dist/tokens.css +13 -0
- package/package.json +2 -2
- package/src/__tests__/clip-reserve.test.ts +431 -0
- package/src/detail/__tests__/activity-pane.test.tsx +34 -0
- package/src/detail/activity-pane.tsx +10 -0
- package/src/styles.css +53 -1
- package/src/theme-v2.css +26 -0
- package/src/thread/__tests__/thread.test.tsx +188 -0
- package/src/thread/attachments.tsx +1 -1
- package/src/thread/comment.tsx +48 -2
- package/src/thread/composer.tsx +4 -1
- package/src/thread/reactions.tsx +2 -1
- package/src/thread/types.ts +95 -0
- package/src/tokens.css +13 -0
- package/dist/chunk-RBYWGBQ2.js.map +0 -1
|
@@ -1550,7 +1550,10 @@ function ThreadComposer({
|
|
|
1550
1550
|
"min-w-0 flex-1 overflow-hidden border",
|
|
1551
1551
|
"transition-[border-color,box-shadow] duration-[var(--dur-fast)] ease-[var(--ease-out)]",
|
|
1552
1552
|
"motion-reduce:transition-none",
|
|
1553
|
-
|
|
1553
|
+
// INSET, because this composer is mounted inside the `overflow-hidden` that
|
|
1554
|
+
// `comment.tsx`'s grid-rows reply reveal requires. An outset ring is
|
|
1555
|
+
// clipped there on three sides and the indicator vanishes.
|
|
1556
|
+
"focus-within:border-[rgb(var(--accent))] focus-within:[box-shadow:var(--ring-focus-inset)]"
|
|
1554
1557
|
),
|
|
1555
1558
|
style: {
|
|
1556
1559
|
// Concentric: the host panel declares --thread-inner-radius as its
|
|
@@ -2319,7 +2322,7 @@ function GifPicker({ search, onPick, className }) {
|
|
|
2319
2322
|
onClick: () => {
|
|
2320
2323
|
onPick(gif);
|
|
2321
2324
|
},
|
|
2322
|
-
className: "block overflow-hidden border transition-[border-color] duration-[var(--dur-fast)] ease-[var(--ease-out)] hover:border-[rgb(var(--border-strong))] focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus)] motion-reduce:transition-none",
|
|
2325
|
+
className: "block overflow-hidden border transition-[border-color] duration-[var(--dur-fast)] ease-[var(--ease-out)] hover:border-[rgb(var(--border-strong))] focus-visible:outline-none focus-visible:[box-shadow:var(--ring-focus-inset)] motion-reduce:transition-none",
|
|
2323
2326
|
style: {
|
|
2324
2327
|
borderRadius: "var(--radius-sm)",
|
|
2325
2328
|
borderColor: "rgb(var(--border))",
|
|
@@ -2669,7 +2672,7 @@ function AttachmentLightbox({ attachment, onClose, resolveUrl }) {
|
|
|
2669
2672
|
);
|
|
2670
2673
|
}
|
|
2671
2674
|
var ATTACHMENT_ACCEPT = ".png,.jpg,.jpeg,.webp,.gif,.pdf,.txt,.md,.csv,.json";
|
|
2672
|
-
var RichThreadComposerImpl = lazy(() => import('./rich-composer-impl-
|
|
2675
|
+
var RichThreadComposerImpl = lazy(() => import('./rich-composer-impl-F5PQVFZT.js'));
|
|
2673
2676
|
var RICH_FALLBACK_NOTICE = "Rich editor unavailable, plain editor loaded";
|
|
2674
2677
|
function ComposerNotice({ children }) {
|
|
2675
2678
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2748,5 +2751,5 @@ function RichThreadComposer({
|
|
|
2748
2751
|
}
|
|
2749
2752
|
|
|
2750
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 };
|
|
2751
|
-
//# sourceMappingURL=chunk-
|
|
2752
|
-
//# sourceMappingURL=chunk-
|
|
2754
|
+
//# sourceMappingURL=chunk-GP7BKVZC.js.map
|
|
2755
|
+
//# sourceMappingURL=chunk-GP7BKVZC.js.map
|