@kolkrabbi/kol-component 0.302.0 → 0.303.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.303.0",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@kolkrabbi/kol-icons": "^0.
|
|
41
|
+
"@kolkrabbi/kol-icons": "^0.46.0"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"src",
|
|
@@ -129,13 +129,18 @@ import useDragResize from '../hooks/useDragResize.js'
|
|
|
129
129
|
*/
|
|
130
130
|
|
|
131
131
|
const pageBase =
|
|
132
|
-
'kol-sidenav-link kol-helper-10 block relative py-[4px]
|
|
132
|
+
'kol-sidenav-link kol-helper-10 block relative py-[4px] pr-6 no-underline transition-colors duration-150'
|
|
133
133
|
|
|
134
134
|
/* The active-dot pseudo-element is positioned by `--kol-sidenav-dot-left`
|
|
135
135
|
* (kol-components-atoms.css). The page row indents one step past the chrome inset
|
|
136
136
|
* (`--kol-pad-chrome-x` + the icon column + the gap, 2026-10-24 — it was a literal
|
|
137
137
|
* 3.5rem); the dot sits 0.875rem inside that, in the gutter the icon column leaves. */
|
|
138
|
-
|
|
138
|
+
/* ON THE TITLE COLUMN (user 2026-10-27: "that line doesnt align with the page titles"): a section's own pages start where
|
|
139
|
+
* its title starts, the rail's gutter + the icon column + the gap (52), and 2px in, as a group's pages sit (user: "I would
|
|
140
|
+
* have left it at 2px to the right") — they sat on --kol-pad-chrome-x, 4 right of the title.
|
|
141
|
+
* A group's pages keep their step under the group label (below), as ruled 2026-10-24. */
|
|
142
|
+
/* inline, as the group's pages are: a new arbitrary utility in package source is never generated in a consumer */
|
|
143
|
+
const pageStyle = { paddingLeft: 'calc(var(--kol-sidenav-pad-x) + 2rem + 2px)', '--kol-sidenav-dot-left': 'calc(var(--kol-sidenav-pad-x) + 1.125rem + 2px)' }
|
|
139
144
|
/* Category and page must not share a stop: category `emphasis`, page `strong`
|
|
140
145
|
* — two rungs of one ladder, so the tree reads as hierarchy (elder ruling). */
|
|
141
146
|
const pageCls = `${pageBase} text-strong hover:text-emphasis`
|