@kolkrabbi/kol-component 0.142.0 → 0.144.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.0",
|
|
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/index.js
CHANGED
|
@@ -134,7 +134,7 @@ export { default as SectionFaq } from './organisms/SectionFaq.jsx'
|
|
|
134
134
|
export { default as LoaderOverlay } from './utilities/LoaderOverlay.jsx'
|
|
135
135
|
/* dev chrome: name an element, agree on a cell, emit one sync line */
|
|
136
136
|
export { default as QuadrantSync } from './utilities/QuadrantSync.jsx'
|
|
137
|
-
export { default as MediaLibrary, MediaLibraryProvider, useMediaLibrary, MediaPicker
|
|
137
|
+
export { default as MediaLibrary, MediaLibraryProvider, useMediaLibrary, MediaPicker } from './organisms/MediaLibrary.jsx'
|
|
138
138
|
export { default as MediaTileGallery } from './organisms/MediaTileGallery.jsx'
|
|
139
139
|
export { default as MediaViewer } from './organisms/MediaViewer.jsx'
|
|
140
140
|
export { default as SettingsPanel, LabeledControlSection, SettingsRow, SettingsSwitch, SettingsChoice, SettingsMulti, SettingsChipRow, SettingsFooter } from './organisms/SettingsPanel.jsx'
|
|
@@ -58,9 +58,19 @@ const BOX = {
|
|
|
58
58
|
/* typeface's card is a FIXED 500px tall specimen board, not a ratio — the
|
|
59
59
|
* shipped item is `h-[500px]`, and a ratio re-crops the glyph at every
|
|
60
60
|
* column width, which is the one thing a specimen must not do. */
|
|
61
|
-
/* REST COLOURS ONLY (
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
/* REST COLOURS ONLY, TAKEN FROM THE ROW (TypefaceCardRestSkinFix, kol-website
|
|
62
|
+
* 2026-08-30). Filled surface, no outline — `ContentRow`'s showcase pair.
|
|
63
|
+
*
|
|
64
|
+
* 0.140.0 copied `BOX.showcase` from THIS map instead, because it is the
|
|
65
|
+
* entry sitting next to this one. That was wrong: `showcase`'s CARD is a
|
|
66
|
+
* `drawer` — outlined and unfilled — and the ask was to match the ROW, which
|
|
67
|
+
* is filled with no outline. Every /foundry grid card shipped as an outlined
|
|
68
|
+
* empty box, the opposite of the rows beside it.
|
|
69
|
+
*
|
|
70
|
+
* "Make the card look like the row" means READ THE ROW'S BOX. The two maps
|
|
71
|
+
* share variant names and not treatments.
|
|
72
|
+
*
|
|
73
|
+
* `layout`, `pad`, `height`, the RATIO, REVEAL_BG, MEDIA and every
|
|
64
74
|
* hover treatment are untouched and deliberately different.
|
|
65
75
|
*
|
|
66
76
|
* NOT derived with a spread. The row's version of this ask was resolved that
|
|
@@ -68,7 +78,7 @@ const BOX = {
|
|
|
68
78
|
* it is keyed by variant NAME — a second ticket to undo. `RATIO`, `REVEAL_BG`
|
|
69
79
|
* and `MEDIA` here are separate name-keyed maps too; a spread cannot reach
|
|
70
80
|
* them either. Two values, set by hand. */
|
|
71
|
-
showcaseCanvas: { layout: 'canvas', border: 'var(--kol-
|
|
81
|
+
showcaseCanvas: { layout: 'canvas', border: 'transparent', bg: 'var(--kol-surface-secondary)', pad: 'var(--kol-pad-card-lg)', height: 500 },
|
|
72
82
|
}
|
|
73
83
|
|
|
74
84
|
/* HOVER is a bg STEP on the opaque tier, per 05-control-chrome.md's state model
|
|
@@ -1019,9 +1019,3 @@ export function MediaPicker({ open, client, accept = 'all', onClose, onPick }) {
|
|
|
1019
1019
|
/>
|
|
1020
1020
|
)
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1023
|
-
/** @deprecated 2026-08-01 — alias of `MediaLibrary variant="page"`. Drops when
|
|
1024
|
-
* nobody imports it (04-retirements.md). */
|
|
1025
|
-
export function MediaBrowser({ client, accept = 'all', onSelect = null, ...rest }) {
|
|
1026
|
-
return <MediaLibrary variant="page" client={client} accept={accept} onSelect={onSelect} {...rest} />
|
|
1027
|
-
}
|