iconplease 0.0.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 ADDED
@@ -0,0 +1,83 @@
1
+ # iconplease
2
+
3
+ Icons you can draw yourself.
4
+
5
+ The free catalogue ships inside this package, so it renders with no network
6
+ request, no account and no key. A key unlocks the private sets you draw in the
7
+ [iconplease designer](https://iconplease.com/designer).
8
+
9
+ > **0.0.1 is an early placeholder.** The component, the bundled catalogue and
10
+ > the SVG renderer work today. Resolving private sets over the network is not
11
+ > built yet — `init()` validates and stores your key, nothing more.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install iconplease
17
+ ```
18
+
19
+ ## React
20
+
21
+ ```tsx
22
+ import { Iconplease } from "iconplease/react";
23
+ import "iconplease/styles.css"; // only if you use motion
24
+
25
+ <Iconplease icon="rocket" />
26
+ <Iconplease icon="heart" size={32} color="#f59ab5" motion="pop" />
27
+ ```
28
+
29
+ ## Anywhere else
30
+
31
+ ```ts
32
+ import { renderSVG, getIcon } from "iconplease";
33
+
34
+ const heart = getIcon("heart");
35
+ if (heart) element.innerHTML = renderSVG(heart, { size: 32, motion: "pop" });
36
+ ```
37
+
38
+ ## Props
39
+
40
+ | Prop | Type | Default |
41
+ | --- | --- | --- |
42
+ | `icon` | icon name | required |
43
+ | `size` | number, px | `24` |
44
+ | `color` | any CSS colour | inherits `currentColor` |
45
+ | `strokeScale` | number | `1` |
46
+ | `motion` | `none` `wiggle` `pop` `bounce` `draw` | none |
47
+ | `label` | string | none — the icon is hidden from screen readers |
48
+
49
+ An icon carries the stroke widths, caps and colours it was drawn with, so
50
+ props **override** rather than supply defaults:
51
+
52
+ - `color` replaces only the parts drawn to inherit (`currentColor`). A shape
53
+ painted a specific colour keeps it, so multi-colour icons survive.
54
+ - `strokeScale` multiplies every stroke width, keeping the ratios between
55
+ shapes. There is no absolute stroke override — one value across shapes drawn
56
+ at different widths would destroy the drawing.
57
+
58
+ ## Accessibility
59
+
60
+ Icons are hidden from screen readers by default. Pass `label` when the icon
61
+ carries meaning on its own, such as an icon-only button.
62
+
63
+ Motion presets are wrapped in `prefers-reduced-motion: no-preference`, so they
64
+ switch off for visitors who ask for less.
65
+
66
+ ## Keys
67
+
68
+ ```ts
69
+ import { init } from "iconplease";
70
+
71
+ init({ apiKey: "ip_pk_…" });
72
+ ```
73
+
74
+ Use the **publishable** key (`ip_pk_…`). It ships in your bundle where anyone
75
+ can read it, so it is read-only and locked to your domains. Secret keys
76
+ (`ip_sk_…`) are for servers and CI, and `init()` refuses them.
77
+
78
+ ## Known limits in 0.0.1
79
+
80
+ - Private sets do not resolve yet — bundled catalogue only.
81
+ - The catalogue is resolved by name at runtime, so all 32 icons are included
82
+ whether or not you use them.
83
+ - Licensing is not settled; this release is published `UNLICENSED`.
@@ -0,0 +1,3 @@
1
+ import type { Config } from "./types.js";
2
+ export declare const init: (next?: Config) => Config;
3
+ export declare const getConfig: () => Config;
package/dist/config.js ADDED
@@ -0,0 +1,13 @@
1
+ const DEFAULTS = {
2
+ baseUrl: "https://api.iconplease.com",
3
+ revalidate: 3600,
4
+ };
5
+ let config = { ...DEFAULTS };
6
+ export const init = (next = {}) => {
7
+ if (next.apiKey && next.apiKey.startsWith("ip_sk_")) {
8
+ throw new Error("iconplease: that is a secret key. init() runs in the browser, where the key is readable by anyone — use the publishable key (ip_pk_…).");
9
+ }
10
+ config = { ...DEFAULTS, ...next };
11
+ return config;
12
+ };
13
+ export const getConfig = () => config;
@@ -0,0 +1,3 @@
1
+ import type { IconDefinition } from "./types.js";
2
+ export declare const icons: Record<string, IconDefinition>;
3
+ export declare const iconNames: string[];
package/dist/icons.js ADDED
@@ -0,0 +1,163 @@
1
+ export const icons = {
2
+ "home": {
3
+ name: "Home",
4
+ viewBox: 24,
5
+ shapes: [{ d: "M3 11 12 3l9 8M5 9.5V21h5v-6h4v6h5V9.5", strokeWidth: 1.75 }],
6
+ },
7
+ "search": {
8
+ name: "Search",
9
+ viewBox: 24,
10
+ shapes: [{ d: "M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M21 21l-5-5", strokeWidth: 1.75 }],
11
+ },
12
+ "bell": {
13
+ name: "Bell",
14
+ viewBox: 24,
15
+ shapes: [{ d: "M6 16v-5a6 6 0 0 1 12 0v5l2 2H4zM10 21h4", strokeWidth: 1.75 }],
16
+ },
17
+ "user": {
18
+ name: "User",
19
+ viewBox: 24,
20
+ shapes: [{ d: "M12 4a4 4 0 1 0 0 8a4 4 0 1 0 0-8M4 21a8 8 0 0 1 16 0", strokeWidth: 1.75 }],
21
+ },
22
+ "settings": {
23
+ name: "Settings",
24
+ viewBox: 24,
25
+ shapes: [{ d: "M12 9a3 3 0 1 0 0 6a3 3 0 1 0 0-6M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1", strokeWidth: 1.75 }],
26
+ },
27
+ "lock": {
28
+ name: "Lock",
29
+ viewBox: 24,
30
+ shapes: [{ d: "M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4", strokeWidth: 1.75 }],
31
+ },
32
+ "trash": {
33
+ name: "Trash",
34
+ viewBox: 24,
35
+ shapes: [{ d: "M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6", strokeWidth: 1.75 }],
36
+ },
37
+ "pencil": {
38
+ name: "Pencil",
39
+ viewBox: 24,
40
+ shapes: [{ d: "M4 20l1-4L16 5l3 3L8 19zM14 7l3 3", strokeWidth: 1.75 }],
41
+ },
42
+ "download": {
43
+ name: "Download",
44
+ viewBox: 24,
45
+ shapes: [{ d: "M12 4v11M7 10l5 5 5-5M4 20h16", strokeWidth: 1.75 }],
46
+ },
47
+ "upload": {
48
+ name: "Upload",
49
+ viewBox: 24,
50
+ shapes: [{ d: "M12 20V9M7 14l5-5 5 5M4 4h16", strokeWidth: 1.75 }],
51
+ },
52
+ "bookmark": {
53
+ name: "Bookmark",
54
+ viewBox: 24,
55
+ shapes: [{ d: "M6 3h12v18l-6-4-6 4z", strokeWidth: 1.75 }],
56
+ },
57
+ "calendar": {
58
+ name: "Calendar",
59
+ viewBox: 24,
60
+ shapes: [{ d: "M4 6h16v14H4zM4 10h16M8 3v5M16 3v5", strokeWidth: 1.75 }],
61
+ },
62
+ "code": {
63
+ name: "Code",
64
+ viewBox: 24,
65
+ shapes: [{ d: "M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16", strokeWidth: 1.75 }],
66
+ },
67
+ "pin": {
68
+ name: "Map pin",
69
+ viewBox: 24,
70
+ shapes: [{ d: "M12 21s-7-6.5-7-12a7 7 0 0 1 14 0c0 5.5-7 12-7 12zM12 6.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 1 0 0-5", strokeWidth: 1.75 }],
71
+ },
72
+ "camera": {
73
+ name: "Camera",
74
+ viewBox: 24,
75
+ shapes: [{ d: "M4 8h3l2-3h6l2 3h3v11H4zM12 10a3.5 3.5 0 1 0 0 7a3.5 3.5 0 1 0 0-7", strokeWidth: 1.75 }],
76
+ },
77
+ "play": {
78
+ name: "Play",
79
+ viewBox: 24,
80
+ shapes: [{ d: "M7 4l13 8-13 8z", strokeWidth: 1.75 }],
81
+ },
82
+ "music": {
83
+ name: "Music",
84
+ viewBox: 24,
85
+ shapes: [{ d: "M9 18V5l11-2v13M9 18a3 3 0 1 1-6 0a3 3 0 1 1 6 0M20 16a3 3 0 1 1-6 0a3 3 0 1 1 6 0", strokeWidth: 1.75 }],
86
+ },
87
+ "chat": {
88
+ name: "Chat",
89
+ viewBox: 24,
90
+ shapes: [{ d: "M4 5h16v11H9l-5 4z", strokeWidth: 1.75 }],
91
+ },
92
+ "mail": {
93
+ name: "Mail",
94
+ viewBox: 24,
95
+ shapes: [{ d: "M3 6h18v12H3zM3 7l9 6 9-6", strokeWidth: 1.75 }],
96
+ },
97
+ "cart": {
98
+ name: "Cart",
99
+ viewBox: 24,
100
+ shapes: [{ d: "M3 4h2l2.5 11h11L21 8H6.5M9 19.5a1 1 0 1 0 0 .1M18 19.5a1 1 0 1 0 0 .1", strokeWidth: 1.75 }],
101
+ },
102
+ "gift": {
103
+ name: "Gift",
104
+ viewBox: 24,
105
+ shapes: [{ d: "M3 9h18v4H3zM5 13h14v8H5zM12 9v12M12 9c-2-4-6-4-6-1s6 1 6 1s6 2 6-1s-4-3-6 1", strokeWidth: 1.75 }],
106
+ },
107
+ "flag": {
108
+ name: "Flag",
109
+ viewBox: 24,
110
+ shapes: [{ d: "M5 21V4M5 4h12l-2 4 2 4H5", strokeWidth: 1.75 }],
111
+ },
112
+ "sun": {
113
+ name: "Sun",
114
+ viewBox: 24,
115
+ shapes: [{ d: "M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M5 19l1.5-1.5M17.5 6.5 19 5", strokeWidth: 1.75 }],
116
+ },
117
+ "moon": {
118
+ name: "Moon",
119
+ viewBox: 24,
120
+ shapes: [{ d: "M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z", strokeWidth: 1.75 }],
121
+ },
122
+ "cloud": {
123
+ name: "Cloud",
124
+ viewBox: 24,
125
+ shapes: [{ d: "M7 18a4 4 0 0 1-.5-8A6 6 0 0 1 18 9a4.5 4.5 0 0 1-.5 9z", strokeWidth: 1.75 }],
126
+ },
127
+ "leaf": {
128
+ name: "Leaf",
129
+ viewBox: 24,
130
+ shapes: [{ d: "M5 19C5 10 11 5 20 4c-1 9-6 15-15 15zM5 19l8-8", strokeWidth: 1.75 }],
131
+ },
132
+ "bolt": {
133
+ name: "Bolt",
134
+ viewBox: 24,
135
+ shapes: [{ d: "M13 2 4 14h7l-1 8 9-12h-7z", strokeWidth: 1.75 }],
136
+ },
137
+ "heart": {
138
+ name: "Heart",
139
+ viewBox: 24,
140
+ shapes: [{ d: "M12 20s-7-4.35-9-9a4.5 4.5 0 0 1 9-3a4.5 4.5 0 0 1 9 3c-2 4.65-9 9-9 9z", strokeWidth: 1.75 }],
141
+ },
142
+ "star": {
143
+ name: "Star",
144
+ viewBox: 24,
145
+ shapes: [{ d: "M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z", strokeWidth: 1.75 }],
146
+ },
147
+ "smile": {
148
+ name: "Smile",
149
+ viewBox: 24,
150
+ shapes: [{ d: "M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18M8.5 14a4 4 0 0 0 7 0M9 9.5v.5M15 9.5v.5", strokeWidth: 1.75 }],
151
+ },
152
+ "rocket": {
153
+ name: "Rocket",
154
+ viewBox: 24,
155
+ shapes: [{ d: "M12 15l-3-3c1.5-4.5 4.5-8 10-9-1 5.5-4.5 8.5-9 10zM9 12H5l3-4h4M12 15v4l4-3v-4M6 16c-2 1-2 4-2 4s3 0 4-2", strokeWidth: 1.75 }],
156
+ },
157
+ "coffee": {
158
+ name: "Coffee",
159
+ viewBox: 24,
160
+ shapes: [{ d: "M4 8h13v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zM17 10h1.5a2.5 2.5 0 0 1 0 5H17M8 2v3M12 2v3", strokeWidth: 1.75 }],
161
+ },
162
+ };
163
+ export const iconNames = Object.keys(icons);
@@ -0,0 +1,8 @@
1
+ import { icons, iconNames } from "./icons.js";
2
+ import type { IconDefinition } from "./types.js";
3
+ export { icons, iconNames };
4
+ export { init, getConfig } from "./config.js";
5
+ export { renderSVG, resolveShape } from "./render.js";
6
+ export type { Config, IconDefinition, IconMotion, IconShape, StrokeLinecap, StrokeLinejoin, } from "./types.js";
7
+ export type { RenderOptions, ResolvedShape } from "./render.js";
8
+ export declare const getIcon: (name: string) => IconDefinition | undefined;
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import { icons, iconNames } from "./icons.js";
2
+ export { icons, iconNames };
3
+ export { init, getConfig } from "./config.js";
4
+ export { renderSVG, resolveShape } from "./render.js";
5
+ const account = {};
6
+ const warned = new Set();
7
+ export const getIcon = (name) => {
8
+ const found = account[name] ?? icons[name];
9
+ if (!found && !warned.has(name)) {
10
+ warned.add(name);
11
+ console.warn(`iconplease: no icon named "${name}".`);
12
+ }
13
+ return found;
14
+ };
@@ -0,0 +1,12 @@
1
+ import type { IconMotion } from "./types.js";
2
+ export type IconpleaseProps = {
3
+ icon: string;
4
+ size?: number;
5
+ color?: string;
6
+ strokeScale?: number;
7
+ motion?: IconMotion;
8
+ label?: string;
9
+ className?: string;
10
+ };
11
+ export declare const Iconplease: ({ icon, size, color, strokeScale, motion, label, className, }: IconpleaseProps) => import("react").JSX.Element | null;
12
+ export default Iconplease;
package/dist/react.js ADDED
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getIcon } from "./index.js";
3
+ import { resolveShape } from "./render.js";
4
+ export const Iconplease = ({ icon, size = 24, color, strokeScale, motion, label, className, }) => {
5
+ const found = getIcon(icon);
6
+ if (!found)
7
+ return null;
8
+ return (_jsx("svg", { width: size, height: size, viewBox: `0 0 ${found.viewBox} ${found.viewBox}`, "data-motion": motion === "none" ? undefined : motion, role: label ? "img" : undefined, "aria-label": label, "aria-hidden": label ? undefined : true, className: className, children: found.shapes.map((shape, index) => {
9
+ const s = resolveShape(shape, { color, strokeScale });
10
+ return (_jsx("path", { d: s.d, pathLength: "100", fill: s.fill, stroke: s.stroke, strokeWidth: s.strokeWidth, strokeLinecap: s.strokeLinecap, strokeLinejoin: s.strokeLinejoin, opacity: s.opacity }, index));
11
+ }) }));
12
+ };
13
+ export default Iconplease;
@@ -0,0 +1,19 @@
1
+ import type { IconDefinition, IconShape } from "./types.js";
2
+ export type RenderOptions = {
3
+ size?: number;
4
+ color?: string;
5
+ strokeScale?: number;
6
+ motion?: string;
7
+ label?: string;
8
+ };
9
+ export type ResolvedShape = {
10
+ d: string;
11
+ fill: string;
12
+ stroke: string;
13
+ strokeWidth: number;
14
+ strokeLinecap: string;
15
+ strokeLinejoin: string;
16
+ opacity: number;
17
+ };
18
+ export declare const resolveShape: (shape: IconShape, { color, strokeScale }?: RenderOptions) => ResolvedShape;
19
+ export declare const renderSVG: (icon: IconDefinition, options?: RenderOptions) => string;
package/dist/render.js ADDED
@@ -0,0 +1,46 @@
1
+ // A prop overrides only what the icon left inheriting. A shape the author
2
+ // painted keeps its own colour, or every multi-colour icon flattens.
3
+ const paint = (value, color) => value === "currentColor" && color ? color : value;
4
+ export const resolveShape = (shape, { color, strokeScale = 1 } = {}) => ({
5
+ d: shape.d,
6
+ fill: paint(shape.fill ?? "none", color),
7
+ stroke: paint(shape.stroke ?? "currentColor", color),
8
+ strokeWidth: shape.strokeWidth * strokeScale,
9
+ strokeLinecap: shape.strokeLinecap ?? "round",
10
+ strokeLinejoin: shape.strokeLinejoin ?? "round",
11
+ opacity: shape.opacity ?? 1,
12
+ });
13
+ const num = (value) => String(Number(value.toFixed(3)));
14
+ export const renderSVG = (icon, options = {}) => {
15
+ const { size = 24, motion, label } = options;
16
+ const box = icon.viewBox;
17
+ const shapes = icon.shapes
18
+ .map((shape) => {
19
+ const s = resolveShape(shape, options);
20
+ return [
21
+ `<path d="${s.d}"`,
22
+ `pathLength="100"`,
23
+ `fill="${s.fill}"`,
24
+ `stroke="${s.stroke}"`,
25
+ `stroke-width="${num(s.strokeWidth)}"`,
26
+ `stroke-linecap="${s.strokeLinecap}"`,
27
+ `stroke-linejoin="${s.strokeLinejoin}"`,
28
+ s.opacity === 1 ? "" : `opacity="${num(s.opacity)}"`,
29
+ "/>",
30
+ ]
31
+ .filter(Boolean)
32
+ .join(" ");
33
+ })
34
+ .join("");
35
+ const attributes = [
36
+ `xmlns="http://www.w3.org/2000/svg"`,
37
+ `width="${size}"`,
38
+ `height="${size}"`,
39
+ `viewBox="0 0 ${box} ${box}"`,
40
+ motion && motion !== "none" ? `data-motion="${motion}"` : "",
41
+ label ? `role="img" aria-label="${label}"` : `aria-hidden="true"`,
42
+ ]
43
+ .filter(Boolean)
44
+ .join(" ");
45
+ return `<svg ${attributes}>${shapes}</svg>`;
46
+ };
@@ -0,0 +1,85 @@
1
+ /* Motion presets. Every preset sits inside prefers-reduced-motion:
2
+ no-preference — the docs promise motion switches off for visitors who ask
3
+ for less, so any new preset goes inside that guard too. "none" deliberately
4
+ matches no rule, and "draw" needs pathLength="100" on the path, which the
5
+ renderer always sets. */
6
+
7
+ [data-motion] {
8
+ transform-origin: center;
9
+ }
10
+
11
+ @media (prefers-reduced-motion: no-preference) {
12
+ [data-motion="wiggle"] {
13
+ animation: iconplease-wiggle 1.8s ease-in-out infinite;
14
+ }
15
+
16
+ [data-motion="pop"] {
17
+ animation: iconplease-pop 1.6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
18
+ }
19
+
20
+ [data-motion="bounce"] {
21
+ animation: iconplease-bounce 1.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
22
+ }
23
+
24
+ [data-motion="draw"] path {
25
+ stroke-dasharray: 100;
26
+ animation: iconplease-draw 2.6s ease-in-out infinite;
27
+ }
28
+ }
29
+
30
+ @keyframes iconplease-wiggle {
31
+ 0%,
32
+ 100% {
33
+ transform: rotate(0);
34
+ }
35
+ 25% {
36
+ transform: rotate(-10deg);
37
+ }
38
+ 60% {
39
+ transform: rotate(8deg);
40
+ }
41
+ }
42
+
43
+ @keyframes iconplease-pop {
44
+ 0%,
45
+ 55%,
46
+ 100% {
47
+ transform: scale(1);
48
+ }
49
+ 20% {
50
+ transform: scale(1.16);
51
+ }
52
+ 35% {
53
+ transform: scale(0.95);
54
+ }
55
+ }
56
+
57
+ @keyframes iconplease-bounce {
58
+ 0%,
59
+ 60%,
60
+ 100% {
61
+ transform: translateY(0);
62
+ }
63
+ 20% {
64
+ transform: translateY(-12%);
65
+ }
66
+ 40% {
67
+ transform: translateY(0);
68
+ }
69
+ 50% {
70
+ transform: translateY(-4%);
71
+ }
72
+ }
73
+
74
+ @keyframes iconplease-draw {
75
+ 0% {
76
+ stroke-dashoffset: 100;
77
+ }
78
+ 45%,
79
+ 70% {
80
+ stroke-dashoffset: 0;
81
+ }
82
+ 100% {
83
+ stroke-dashoffset: -100;
84
+ }
85
+ }
@@ -0,0 +1,22 @@
1
+ export type StrokeLinecap = "butt" | "round" | "square";
2
+ export type StrokeLinejoin = "miter" | "round" | "bevel";
3
+ export type IconMotion = "none" | "wiggle" | "pop" | "bounce" | "draw";
4
+ export type IconShape = {
5
+ d: string;
6
+ strokeWidth: number;
7
+ fill?: string;
8
+ stroke?: string;
9
+ strokeLinecap?: StrokeLinecap;
10
+ strokeLinejoin?: StrokeLinejoin;
11
+ opacity?: number;
12
+ };
13
+ export type IconDefinition = {
14
+ name: string;
15
+ viewBox: number;
16
+ shapes: IconShape[];
17
+ };
18
+ export type Config = {
19
+ apiKey?: string;
20
+ baseUrl?: string;
21
+ revalidate?: number;
22
+ };
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "iconplease",
3
+ "version": "0.0.1",
4
+ "description": "Icons you can draw yourself. The free catalogue ships in the package; private sets resolve live.",
5
+ "keywords": [
6
+ "icons",
7
+ "icon",
8
+ "svg",
9
+ "react",
10
+ "icon-library"
11
+ ],
12
+ "homepage": "https://iconplease.com",
13
+ "license": "UNLICENSED",
14
+ "type": "module",
15
+ "sideEffects": [
16
+ "*.css"
17
+ ],
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./react": {
26
+ "types": "./dist/react.d.ts",
27
+ "import": "./dist/react.js"
28
+ },
29
+ "./styles.css": "./dist/styles.css",
30
+ "./package.json": "./package.json"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "README.md"
35
+ ],
36
+ "engines": {
37
+ "node": ">=18"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc && cp src/styles.css dist/styles.css",
41
+ "dev": "tsc --watch",
42
+ "typecheck": "tsc --noEmit",
43
+ "prepublishOnly": "npm run build",
44
+ "smoke": "npm run build && node scripts/smoke.mjs"
45
+ },
46
+ "peerDependencies": {
47
+ "react": ">=18"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "react": {
51
+ "optional": true
52
+ }
53
+ },
54
+ "devDependencies": {
55
+ "@types/react": "^19.2.14",
56
+ "@types/react-dom": "^19.3.0",
57
+ "react": "^19.3.0",
58
+ "react-dom": "^19.3.0",
59
+ "typescript": "^5.8.3"
60
+ }
61
+ }