@kolkrabbi/kol-component 0.12.5 → 0.12.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/package.json +1 -1
- package/src/atoms/Figure.jsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/atoms/Figure.jsx
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
export default function Figure({ label, caption, aspect = '5/3', className = '', children }) {
|
|
15
15
|
return (
|
|
16
16
|
<figure className={`kol-prose-figure ${className}`.trim()}>
|
|
17
|
-
{label && <div className="kol-
|
|
17
|
+
{label && <div className="kol-doc-eyebrow mb-2">{label}</div>}
|
|
18
18
|
<div
|
|
19
19
|
className="border border-fg-08 rounded overflow-hidden"
|
|
20
20
|
style={aspect ? { aspectRatio: aspect } : undefined}
|
|
21
21
|
>
|
|
22
22
|
{children}
|
|
23
23
|
</div>
|
|
24
|
-
{caption && <figcaption className="kol-caption-
|
|
24
|
+
{caption && <figcaption className="kol-doc-caption mt-3">{caption}</figcaption>}
|
|
25
25
|
</figure>
|
|
26
26
|
)
|
|
27
27
|
}
|