@kolkrabbi/kol-component 0.277.0 → 0.278.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.278.0",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"embla-carousel-react": "^8.6.0",
|
|
27
27
|
"pdfjs-dist": "^6.3.289",
|
|
28
28
|
"react-syntax-highlighter": "^16.1.1",
|
|
29
|
-
"@kolkrabbi/kol-
|
|
30
|
-
"@kolkrabbi/kol-
|
|
29
|
+
"@kolkrabbi/kol-markdown": "^0.1.3",
|
|
30
|
+
"@kolkrabbi/kol-search": "^0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@kolkrabbi/kol-icons": ">=0.22.0",
|
|
@@ -29,8 +29,8 @@ import SectionText from './SectionText.jsx'
|
|
|
29
29
|
* @param {ReactNode} title
|
|
30
30
|
* @param {ReactNode} subtitle the lede under the title (`description` is its other name)
|
|
31
31
|
* @param {'page'|'app'|'section'} level ONE HEADER (Round 11, approved 2026-10-18): page = h1
|
|
32
|
-
* display-01 over `.kol-header-lede` (22/28 Light) — the hero; app = h1
|
|
33
|
-
*
|
|
32
|
+
* display-01 over `.kol-header-lede` (22/28 Light) — the hero; app = h1 display-02
|
|
33
|
+
* over `.kol-header-lede-app` (19/26 Light) — the app tier's pages; section = h2
|
|
34
34
|
* display-03 over `.kol-header-lede-section` (16/24 Light +0.5px). Default `page`.
|
|
35
35
|
* Classes per level: `PAGE_HEADER_ROLES`.
|
|
36
36
|
* @param {ReactNode} media a mark above the eyebrow (a logo, an SVG) — shown only when passed
|
|
@@ -55,12 +55,14 @@ import SectionText from './SectionText.jsx'
|
|
|
55
55
|
* `size` · `voice` · `register` · `masthead` are accepted and ignored, so every caller (and every
|
|
56
56
|
* Shell's masthead) renders the one header with no edit. `titleClass` stays the seam. */
|
|
57
57
|
/* THREE LEVELS since 0.277.0 (PageHeaderAppLevel, kol-monitor — user: *"that display is fine for Section
|
|
58
|
-
* Hero like in brand but not for EVERYTHING ELSE that uses the mono"*). `app`
|
|
59
|
-
* (
|
|
60
|
-
*
|
|
58
|
+
* Hero like in brand but not for EVERYTHING ELSE that uses the mono"*). `app` sits BETWEEN page and section,
|
|
59
|
+
* in their family (0.278.0 — user: *"did I ask for mono?!?! … MAKE THE TEXT SMALLER … SO THAT IT IS BETWEEN
|
|
60
|
+
* SECTION AND PAGE"*; 0.277.0 had made it mono): display-02 over a 19/26 light lede. The app tier's Home ·
|
|
61
|
+
* Library · Settings · Dev pages, which kol-shell defaults to it. Exported so a page drawing its own title
|
|
62
|
+
* (monitor's Create inputs) matches the level. */
|
|
61
63
|
export const PAGE_HEADER_ROLES = {
|
|
62
64
|
page: { title: 'kol-sans-display-01', lede: 'kol-header-lede' },
|
|
63
|
-
app: { title: 'kol-
|
|
65
|
+
app: { title: 'kol-sans-display-02', lede: 'kol-header-lede-app' },
|
|
64
66
|
section: { title: 'kol-sans-display-03', lede: 'kol-header-lede-section' },
|
|
65
67
|
}
|
|
66
68
|
|