@vvedantb/ui 0.78.0 → 0.79.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.
|
@@ -337,7 +337,7 @@ export const ConversationScrollButton = t0 => {
|
|
|
337
337
|
scrollToBottom
|
|
338
338
|
} = useStickToBottomContext();
|
|
339
339
|
const [visible, hide] = useDelayedShow(!isAtBottom, showDelay ?? defaults?.showDelay ?? 0, resetKey);
|
|
340
|
-
const label = labelProp ?? defaults?.label;
|
|
340
|
+
const label = labelProp ?? defaults?.label ?? "Scroll to end";
|
|
341
341
|
const icon = iconProp ?? defaults?.icon;
|
|
342
342
|
let t1;
|
|
343
343
|
if ($[8] !== hide || $[9] !== scrollToBottom) {
|
|
@@ -371,9 +371,9 @@ export const ConversationScrollButton = t0 => {
|
|
|
371
371
|
},
|
|
372
372
|
transition: defaults?.transition ?? fastTransition,
|
|
373
373
|
children: /*#__PURE__*/_jsxs(Button, {
|
|
374
|
-
className: merge(classes?.scrollButton ??
|
|
374
|
+
className: merge(classes?.scrollButton ?? "rounded-full border border-border bg-card shadow-sm", "pointer-events-auto", className),
|
|
375
375
|
onClick: handleScrollToBottom,
|
|
376
|
-
size: size ?? defaults?.size ?? "
|
|
376
|
+
size: size ?? defaults?.size ?? "sm",
|
|
377
377
|
type: "button",
|
|
378
378
|
variant: "outline",
|
|
379
379
|
...(label ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
|
|
6
6
|
"type": "module",
|
|
@@ -162,7 +162,7 @@ export const ConversationScrollButton = ({
|
|
|
162
162
|
showDelay ?? defaults?.showDelay ?? 0,
|
|
163
163
|
resetKey,
|
|
164
164
|
);
|
|
165
|
-
const label = labelProp ?? defaults?.label;
|
|
165
|
+
const label = labelProp ?? defaults?.label ?? "Scroll to end";
|
|
166
166
|
const icon = iconProp ?? defaults?.icon;
|
|
167
167
|
const handleScrollToBottom = () => {
|
|
168
168
|
hide();
|
|
@@ -184,12 +184,12 @@ export const ConversationScrollButton = ({
|
|
|
184
184
|
>
|
|
185
185
|
<Button
|
|
186
186
|
className={merge(
|
|
187
|
-
classes?.scrollButton ??
|
|
187
|
+
classes?.scrollButton ?? "rounded-full border border-border bg-card shadow-sm",
|
|
188
188
|
"pointer-events-auto",
|
|
189
189
|
className,
|
|
190
190
|
)}
|
|
191
191
|
onClick={handleScrollToBottom}
|
|
192
|
-
size={size ?? defaults?.size ?? "
|
|
192
|
+
size={size ?? defaults?.size ?? "sm"}
|
|
193
193
|
type="button"
|
|
194
194
|
variant="outline"
|
|
195
195
|
{...(label ? { "aria-label": label, title: label } : { "aria-label": "Scroll to bottom" })}
|