@kolkrabbi/kol-component 0.4.0 → 0.4.1
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/README.md +1 -1
- package/package.json +2 -2
- package/src/atoms/Badge.jsx +1 -1
- package/src/atoms/Button.jsx +1 -1
- package/src/atoms/Input.jsx +1 -1
- package/src/atoms/SearchInput.jsx +1 -1
- package/src/atoms/SectionLabel.jsx +1 -1
- package/src/atoms/Stepper.jsx +1 -1
- package/src/atoms/Tag.jsx +1 -1
- package/src/atoms/Textarea.jsx +1 -1
- package/src/atoms/ViewToggle.jsx +1 -1
- package/src/graphics/Graphic.jsx +1 -1
- package/src/graphics/graphicData.js +1 -1
- package/src/index.js +2 -2
- package/src/molecules/CardFeatureItem.jsx +2 -2
- package/src/molecules/ColorInputRow.jsx +1 -1
- package/src/molecules/Dropdown.jsx +1 -1
- package/src/molecules/MediaCard.jsx +2 -2
- package/src/molecules/MenuItem.jsx +1 -1
- package/src/molecules/ShapeDropdown.jsx +1 -1
- package/src/molecules/ShellDrawer.jsx +2 -2
- package/src/molecules/SwatchControls.jsx +1 -1
- package/src/molecules/TabsRow.jsx +2 -2
- package/src/molecules/foundry/SpecimenSectionHeader.jsx +2 -2
- package/src/organisms/ContentFilters.jsx +1 -1
- package/src/organisms/MediaViewer.jsx +1 -1
- package/src/organisms/WorkViewToggle.jsx +2 -2
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Requires a **Vite + Tailwind v4** app and the theme CSS imported (see the theme
|
|
|
15
15
|
|
|
16
16
|
```jsx
|
|
17
17
|
import { Button, Tag, Badge, Slider, Dropdown, Table } from '@kolkrabbi/kol-component'
|
|
18
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
18
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
19
19
|
|
|
20
20
|
<Button variant="primary" iconLeft="plus">New</Button>
|
|
21
21
|
<Badge variant="success">Active</Badge>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@floating-ui/react": "^0.27.19",
|
|
26
26
|
"embla-carousel-react": "^8.6.0",
|
|
27
|
-
"@kolkrabbi/kol-
|
|
27
|
+
"@kolkrabbi/kol-icons": "0.4.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^18.3.0 || ^19.0.0",
|
package/src/atoms/Badge.jsx
CHANGED
package/src/atoms/Button.jsx
CHANGED
package/src/atoms/Input.jsx
CHANGED
package/src/atoms/Stepper.jsx
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* stroke icons in the kol curated set. For a plain number input without
|
|
9
9
|
* bump affordance, use `<Input type="number" />`.
|
|
10
10
|
*/
|
|
11
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
11
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
12
12
|
|
|
13
13
|
const SIZE_TYPE = { sm: 'kol-mono-12', md: 'kol-mono-14', lg: 'kol-mono-16' }
|
|
14
14
|
const CHEVRON_SIZE = { sm: 8, md: 10, lg: 12 }
|
package/src/atoms/Tag.jsx
CHANGED
package/src/atoms/Textarea.jsx
CHANGED
package/src/atoms/ViewToggle.jsx
CHANGED
package/src/graphics/Graphic.jsx
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* The raw SVG strings (~4.8 MB) live in ./graphicData.js behind a single
|
|
8
8
|
* dynamic import — their chunk streams in parallel with boot instead of
|
|
9
|
-
* bloating the consumer's entry chunk (same pattern as kol-
|
|
9
|
+
* bloating the consumer's entry chunk (same pattern as kol-icons's Icon).
|
|
10
10
|
* Until the chunk lands, renders a sized empty box (no layout shift); a
|
|
11
11
|
* genuinely missing asset renders an AssetPlaceholder so it's visible rather
|
|
12
12
|
* than silently empty.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ~4.8 MB of illustration SVGs (some wrap embedded raster images) eager-inline
|
|
5
5
|
* here, but this module is only reached via the dynamic `import()` in
|
|
6
6
|
* Graphic.jsx — the bundler splits it into its own async chunk instead of
|
|
7
|
-
* folding it into the consumer's entry chunk. Same pattern as kol-
|
|
7
|
+
* folding it into the consumer's entry chunk. Same pattern as kol-icons's
|
|
8
8
|
* iconData.js (kol-labs-single 2026-06-19 entry-chunk fix).
|
|
9
9
|
*/
|
|
10
10
|
const svgModules = import.meta.glob('./svg/**/*.svg', { eager: true, query: '?raw', import: 'default' })
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Placement follows the taxonomy rules in
|
|
9
9
|
* docs/documentation/02-components/02-placement.md:
|
|
10
|
-
* atom — nests no KOL component (kol-
|
|
10
|
+
* atom — nests no KOL component (kol-icons Icon/Graphic are
|
|
11
11
|
* infrastructure, they don't count)
|
|
12
12
|
* molecule — nests at least one KOL component
|
|
13
13
|
* organism — a self-contained composed UI region
|
|
@@ -124,7 +124,7 @@ export { default as SpectrumGrid } from './organisms/SpectrumGrid.jsx'
|
|
|
124
124
|
export { default as Table } from './organisms/Table.jsx'
|
|
125
125
|
|
|
126
126
|
// loaders (re-export — infrastructure, documented on /docs/loaders)
|
|
127
|
-
export { Icon } from '@kolkrabbi/kol-
|
|
127
|
+
export { Icon } from '@kolkrabbi/kol-icons'
|
|
128
128
|
|
|
129
129
|
// graphics (SVG illustration loader — globs its own ./graphics/svg/**)
|
|
130
130
|
export { default as Graphic, GRAPHICS } from './graphics/Graphic.jsx'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
1
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
2
2
|
|
|
3
|
-
/* taxonomy-ok: nests only kol-
|
|
3
|
+
/* taxonomy-ok: nests only kol-icons's Icon (a package import the
|
|
4
4
|
* relative-import check can't see). */
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
1
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
2
2
|
|
|
3
|
-
/* taxonomy-ok: nests kol-
|
|
3
|
+
/* taxonomy-ok: nests kol-icons's Icon (a package import the relative-import
|
|
4
4
|
* check can't see) plus the same-file SelectIndicator. */
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
2
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
3
3
|
import Button from '../atoms/Button.jsx'
|
|
4
4
|
import { PopoverPanel, usePopover } from '../atoms/Popover.jsx'
|
|
5
5
|
import { MenuDropdownItem } from './MenuItem.jsx'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { createPortal } from 'react-dom'
|
|
3
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
3
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
4
4
|
import usePrefersReducedMotion from '../hooks/usePrefersReducedMotion.js'
|
|
5
5
|
|
|
6
|
-
/* taxonomy-ok: nests kol-
|
|
6
|
+
/* taxonomy-ok: nests kol-icons's Icon (a package import the relative-import
|
|
7
7
|
* check can't see). */
|
|
8
8
|
|
|
9
9
|
const FOCUSABLE =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef } from 'react'
|
|
2
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
2
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
3
3
|
|
|
4
|
-
/* taxonomy-ok: nests kol-
|
|
4
|
+
/* taxonomy-ok: nests kol-icons's Icon */
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TabsRow — labeled underline tab strip: text tabs where the active tab gets
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
1
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
2
2
|
import Dropdown from '../Dropdown.jsx'
|
|
3
3
|
import Divider from '../../atoms/Divider.jsx'
|
|
4
4
|
|
|
5
|
-
/* taxonomy-ok: nests DS Dropdown + Divider (relative imports) plus kol-
|
|
5
|
+
/* taxonomy-ok: nests DS Dropdown + Divider (relative imports) plus kol-icons's
|
|
6
6
|
* Icon (a package import the relative-import check can't see). */
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useMemo, useRef, useEffect } from 'react'
|
|
2
2
|
import Tag from '../atoms/Tag.jsx'
|
|
3
3
|
import Divider from '../atoms/Divider.jsx'
|
|
4
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
4
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
5
5
|
import ViewToggle from '../atoms/ViewToggle'
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react'
|
|
2
|
-
import { Icon } from '@kolkrabbi/kol-
|
|
2
|
+
import { Icon } from '@kolkrabbi/kol-icons'
|
|
3
3
|
|
|
4
4
|
/* taxonomy-ok: composites a segmented toggle + an inline search into one
|
|
5
|
-
* space-trading control (organism); nests kol-
|
|
5
|
+
* space-trading control (organism); nests kol-icons's Icon (infrastructure). */
|
|
6
6
|
|
|
7
7
|
const CUBIC_EASE = 'cubic-bezier(0.16, 1, 0.3, 1)'
|
|
8
8
|
/* The pill uses a springier overshoot ease, distinct from CUBIC_EASE. */
|