@kolkrabbi/kol-styleguide 0.18.2 → 0.18.3

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-styleguide",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "private": false,
5
5
  "description": "Brand guide components and the brand tool",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "react-dom": "^18.3.0 || ^19.0.0"
23
23
  },
24
24
  "devDependencies": {
25
+ "@kolkrabbi/kol-component": "^0.317.3",
26
+ "@kolkrabbi/kol-icons": "^0.53.3",
25
27
  "@kolkrabbi/kol-print": "^0.1.1",
26
- "@kolkrabbi/kol-theme": "^0.200.2",
27
28
  "@kolkrabbi/kol-framework": "^0.65.0",
28
- "@kolkrabbi/kol-component": "^0.317.2",
29
- "@kolkrabbi/kol-icons": "^0.53.2"
29
+ "@kolkrabbi/kol-theme": "^0.200.3"
30
30
  },
31
31
  "files": [
32
32
  "src",
package/src/ColorLab.jsx CHANGED
@@ -313,7 +313,7 @@ export default function ColorLab({ value: valueProp, onChange, samples = [], lib
313
313
  * and linked beside them */
314
314
  <div className="flex flex-col gap-3">
315
315
  <div className="flex items-baseline justify-between gap-3">
316
- <span className="kol-sans-body-02 text-emphasis">Don’t have an image? Try one of ours:</span>
316
+ <span className="min-w-0 truncate kol-sans-body-02 text-emphasis">Don’t have an image? Try one of ours:</span>
317
317
  {library && <a href={library.href} target="_blank" rel="noreferrer" className="group inline-flex shrink-0 items-center gap-1 kol-sans-body-02 text-meta hover:text-emphasis">{library.label}<Icon name="external-link" size={12} className="text-oq-48 group-hover:text-oq-96" /></a>}
318
318
  </div>
319
319
  <div className="grid grid-cols-4 gap-2">
@@ -338,9 +338,10 @@ export default function ColorLab({ value: valueProp, onChange, samples = [], lib
338
338
  <div className="flex h-8 w-60 overflow-hidden rounded" aria-label="Palette">
339
339
  {c.swatches.map((s) => <span key={s.index} className="flex-1" style={{ background: s.hex }} title={s.hex} />)}
340
340
  </div>
341
- {/* RANDOMISE (review 6, Adobe's shuffle): the nav rung, like the header's controls; Copy CSS is in the header, where
342
- * every lab keeps it */}
343
- {view === 'palette' && <Button variant="nav" size="sm" iconLeft="shuffle" className="ml-auto" onClick={roll}>Randomise</Button>}
341
+ {/* RANDOMISE (review 6, Adobe's shuffle; review 8 — *"WRONG FUCKING BUTTON TONE"*): an explicit tone, so no wrapper's
342
+ * ground repaints it — the inverted button this window already wears on Upload your image. Copy CSS is in the header,
343
+ * where every lab keeps it. His review decides the rung. */}
344
+ {view === 'palette' && <Button tone="inverted" size="sm" iconLeft="shuffle" className="ml-auto" onClick={roll}>Randomise</Button>}
344
345
  </div>
345
346
  )
346
347
  const paletteStage = (
@@ -65,7 +65,7 @@ export default function LabWindow({ title, actions, tabs = [], tab: tabProp, onT
65
65
  <div {...grabProps} className="kol-rail-grab kol-rail-grab--left hidden md:block" />
66
66
  {/* THE TABSROW AT THE TOP OF EVERY WINDOW (review 6 — *"why dont we make it a rule at top of each window?"*):
67
67
  * one section or many, the rail opens on its tabs */}
68
- {tabs.length > 0 && <TabsRow size="md" tabs={tabs.map(({ id, label, icon }) => ({ id, label, icon }))} value={open?.id} onChange={setTab} ariaLabel={`${title} sections`} />}
68
+ {tabs.length > 0 && <TabsRow type="sans" tabs={tabs.map(({ id, label, icon }) => ({ id, label, icon }))} value={open?.id} onChange={setTab} ariaLabel={`${title} sections`} />}
69
69
  <div className="flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto">{open?.content}</div>
70
70
  {foot && <div className="flex flex-wrap items-center gap-1">{foot}</div>}
71
71
  </aside>