@dust-tt/sparkle 0.2.188 → 0.2.189
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/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/Citation.tsx +30 -29
package/package.json
CHANGED
|
@@ -126,16 +126,15 @@ export function Citation({
|
|
|
126
126
|
</div>
|
|
127
127
|
)}
|
|
128
128
|
</div>
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
</Tooltip>
|
|
129
|
+
<div
|
|
130
|
+
className={classNames(
|
|
131
|
+
"s-line-clamp-1 s-text-sm s-text-element-800",
|
|
132
|
+
size === "sm" ? "s-font-bold" : "s-font-semibold"
|
|
133
|
+
)}
|
|
134
|
+
>
|
|
135
|
+
{title}
|
|
136
|
+
</div>
|
|
137
|
+
|
|
139
138
|
{description && (
|
|
140
139
|
<div className="s-line-clamp-2 s-text-xs s-font-normal s-text-element-700">
|
|
141
140
|
{description}
|
|
@@ -145,24 +144,26 @@ export function Citation({
|
|
|
145
144
|
);
|
|
146
145
|
|
|
147
146
|
return (
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
147
|
+
<Tooltip label={title} position="above">
|
|
148
|
+
<CardButton
|
|
149
|
+
variant="secondary"
|
|
150
|
+
size="sm"
|
|
151
|
+
className={classNames(
|
|
152
|
+
"s-relative s-flex s-w-48 s-flex-none s-flex-col s-gap-1",
|
|
153
|
+
sizing === "fluid" ? typeSizing[sizing] : typeSizing[sizing][size],
|
|
154
|
+
size === "sm" ? "sm:s-w-64" : "",
|
|
155
|
+
isBlinking ? "s-animate-[bgblink_500ms_3]" : "",
|
|
156
|
+
type === "image" ? "s-min-h-20" : ""
|
|
157
|
+
)}
|
|
158
|
+
{...(href && { href, target: "_blank", rel: "noopener noreferrer" })}
|
|
159
|
+
>
|
|
160
|
+
{isLoading && (
|
|
161
|
+
<div className="s-absolute s-inset-0 s-flex s-items-center s-justify-center">
|
|
162
|
+
<Spinner size="xs" variant="color" />
|
|
163
|
+
</div>
|
|
164
|
+
)}
|
|
165
|
+
<div className={isLoading ? "s-opacity-50" : ""}>{cardContent}</div>
|
|
166
|
+
</CardButton>
|
|
167
|
+
</Tooltip>
|
|
167
168
|
);
|
|
168
169
|
}
|