@kolkrabbi/kol-component 0.102.0 → 0.102.2
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.102.
|
|
3
|
+
"version": "0.102.2",
|
|
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/Tag.jsx
CHANGED
|
@@ -34,7 +34,7 @@ const ICON_SIZES = { sm: 10, md: 12, lg: 14 }
|
|
|
34
34
|
*
|
|
35
35
|
* @param {ReactNode} children label content
|
|
36
36
|
* @param {string} text content fallback when no children (brand SwatchControls)
|
|
37
|
-
* @param {string} variant 'primary' | 'secondary' | 'inverse'
|
|
37
|
+
* @param {string} variant 'primary' | 'secondary' | 'inverse' · `tertiary` = secondary's fill, no outline, mono at fg-80 (2026-08-27)
|
|
38
38
|
* @param {string} size 'sm' | 'md' | 'lg' — `sm` is the default and
|
|
39
39
|
* should stay the answer; `lg` needs a reason
|
|
40
40
|
* @param {boolean} active selected state (filter chips)
|
|
@@ -67,6 +67,8 @@ export default function Tag({
|
|
|
67
67
|
primary: 'kol-tag--primary',
|
|
68
68
|
secondary: 'kol-tag--secondary',
|
|
69
69
|
inverse: 'kol-tag--inverse',
|
|
70
|
+
/* secondary's fill, no outline, the mono voice at fg-80 (TagTertiary, 2026-08-27) */
|
|
71
|
+
tertiary: 'kol-tag--tertiary',
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
/* TYPE COMES FROM THE HELPER RAMP (user ruling 2026-08-01). The size classes
|
|
@@ -107,7 +107,10 @@ export default function ContentCollection({
|
|
|
107
107
|
gridTemplateColumns: colsCls
|
|
108
108
|
? undefined
|
|
109
109
|
: form === 'list'
|
|
110
|
-
|
|
110
|
+
/* minmax(0, 1fr), never a bare 1fr (= minmax(auto, 1fr)): a truncated
|
|
111
|
+
* nowrap line handed its min-content width to the track and a /work row
|
|
112
|
+
* measured 3586px in a 1232px wall (CollectionItemMinWidth, 2026-08-27) */
|
|
113
|
+
? (listMin ? `repeat(auto-fill, minmax(${listMin}, 1fr))` : 'minmax(0, 1fr)')
|
|
111
114
|
: `repeat(auto-fill, minmax(${min}, 1fr))`,
|
|
112
115
|
gap: g,
|
|
113
116
|
}}
|
|
@@ -116,7 +119,10 @@ export default function ContentCollection({
|
|
|
116
119
|
child == null ? null : (
|
|
117
120
|
<li
|
|
118
121
|
key={child.key ?? i}
|
|
119
|
-
|
|
122
|
+
/* min-w-0 on every item: a grid item's min-width is auto by default,
|
|
123
|
+
* and auto = min-content, which is exactly what a truncated line must
|
|
124
|
+
* not get to claim */
|
|
125
|
+
className={`min-w-0 ${animate ? 'kol-collection-item' : ''}`.trim()}
|
|
120
126
|
style={animate ? { animationDelay: `${i * 40}ms` } : undefined}
|
|
121
127
|
>
|
|
122
128
|
{child}
|