@kolkrabbi/kol-icons 0.6.1 → 0.7.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 +17 -0
- package/package.json +1 -1
- package/src/kol-icon-set-v1/arrow/arrow-downright.svg +3 -0
- package/src/kol-icon-set-v1/files/library.svg +1 -0
- package/src/kol-icon-set-v1/layout/panel-right.svg +4 -0
- package/src/kol-icon-set-v1/misc/foundation.svg +3 -0
- package/src/kol-icon-set-v1/singletons/cut.svg +3 -0
- package/src/kol-icon-set-v1/tools/frequency.svg +3 -0
- package/src/kol-icon-set-v1/tools/pointer.svg +1 -0
- package/src/kol-icon-set-v1/tools/type.svg +3 -0
- /package/src/{stroke/system → kol-icon-set-v1/files}/database.svg +0 -0
- /package/src/{stroke/shapes → kol-icon-set-v1/shape-primitives}/cone.svg +0 -0
package/README.md
CHANGED
|
@@ -47,3 +47,20 @@ Registered icons are keyed by filename (basename), win over the packaged set (ad
|
|
|
47
47
|
```css
|
|
48
48
|
@source "../node_modules/@kolkrabbi/kol-icons/src";
|
|
49
49
|
```
|
|
50
|
+
|
|
51
|
+
(Or import `@kolkrabbi/kol-theme/kol-sources.css` once — it carries the `@source` line for every raw-JSX KOL package.)
|
|
52
|
+
|
|
53
|
+
## Vite consumers: exclude from prebundling
|
|
54
|
+
|
|
55
|
+
The icon maps are built with `import.meta.glob`, which esbuild's dependency
|
|
56
|
+
prebundling doesn't execute — a prebundled copy ships **empty maps**, and every
|
|
57
|
+
icon resolves to "not found" in dev. Exclude the package:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
// vite.config.js
|
|
61
|
+
export default defineConfig({
|
|
62
|
+
optimizeDeps: { exclude: ['@kolkrabbi/kol-icons'] },
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Production builds are unaffected (Rollup handles the glob natively).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-icons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "KOL icons — <Icon/>, the curated kol-icon-set-v1 + registerIcons (bring-your-own), and the legacy inventory. Vite-only (import.meta.glob).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="4.5" y="4.5" width="2.5" height="15" /><rect x="8.5" y="6.5" width="2.5" height="13" /><rect x="12.5" y="3.5" width="2.5" height="16" /><rect x="16.5" y="5.5" width="2.5" height="14" /></svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5 4H19A2 2 0 0 1 21 6V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V6A2 2 0 0 1 5 4Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M15 4V20" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M20.895 7.553L18.895 3.553C18.8118 3.38684 18.6841 3.24711 18.526 3.14944C18.3679 3.05177 18.1858 3.00003 18 3H13C12.621 3 12.275 3.214 12.105 3.553L10.382 7H5.99998C5.62098 7 5.27498 7.214 5.10498 7.553L3.10498 11.553C3.03546 11.6919 2.99927 11.8451 2.99927 12.0005C2.99927 12.1559 3.03546 12.3091 3.10498 12.448L5.10498 16.448C5.27498 16.786 5.62098 17 5.99998 17H10.382L12.106 20.447C12.1888 20.6132 12.3163 20.7531 12.4743 20.8507C12.6322 20.9484 12.8143 21.0001 13 21H18C18.379 21 18.725 20.786 18.895 20.447L20.895 16.447C20.9645 16.3081 21.0007 16.1549 21.0007 15.9995C21.0007 15.8441 20.9645 15.6909 20.895 15.552L19.118 12L20.894 8.447C20.9635 8.30828 20.9998 8.15528 20.9999 8.00012C21.0001 7.84495 20.9642 7.69188 20.895 7.553ZM13.618 5H17.382L18.882 8L17.382 11H13.618L12.118 8L13.618 5ZM5.11798 12L6.61798 9H10.382L11.882 12L10.382 15H6.61798L5.11798 12ZM17.382 19H13.618L12.118 16L13.618 13H17.382L18.882 16L17.382 19Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6 9A3 3 0 1 0 6 3A3 3 0 1 0 6 9Z M6 21A3 3 0 1 0 6 15A3 3 0 1 0 6 21Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M8.5 7.5L20 19M8.5 16.5L20 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.49911 4C7.87772 4.00011 8.18482 4.30707 8.18482 4.68571V18.6286H10.4705V4.68571C10.4705 4.307 10.7775 4 11.1563 4H15.3759C15.7546 4.00004 16.0616 4.30703 16.0616 4.68571V14.9714H18.6286V12.6464H20V15.6571C20 15.839 19.9277 16.0134 19.7991 16.142C19.6705 16.2706 19.4961 16.3429 19.3143 16.3429H15.3759C14.9972 16.3429 14.6902 16.0359 14.6902 15.6571V5.37143H11.842V19.3143C11.842 19.6929 11.5349 19.9999 11.1563 20H7.49911C7.1204 20 6.81339 19.693 6.81339 19.3143V5.37143H5.37143V10.433H4V4.68571C4 4.307 4.307 4 4.68571 4H7.49911Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5.5 3.5 L5.5 18 L9 14.5 L11.5 20 L13.5 19.2 L11 13.5 L17 13.5 Z" /></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.37207 4.96875L12.8838 17.002L16.2725 9.01953C16.4105 8.69543 16.7297 8.48438 17.082 8.48438H17.9609C18.1335 8.48442 18.3024 8.53558 18.4463 8.63086C18.5901 8.7262 18.7032 8.8616 18.7705 9.02051L23 19.0322H21.0918L19.9775 16.3955H15.0518L13.9336 19.0322C13.8283 19.0322 13.7271 19.0175 13.6309 18.9941L13.6455 19.0322H11.7666L10.1191 14.6367H4.52637L2.87793 19.0322H1L6.27344 4.96875H8.37207ZM15.7988 14.6367H19.2354L17.5205 10.5801L15.7988 14.6367ZM5.18457 12.8789H9.45996L7.32227 7.17969L5.18457 12.8789Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
File without changes
|
|
File without changes
|