@reactloom/icons 0.0.0-stage → 1.0.0

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 CHANGED
@@ -1,3 +1,28 @@
1
- # Temporary Holding Version
1
+ # @reactloom/icons
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 100 line icons for React, drawn on one 24-unit grid with 2-unit round strokes.
4
+
5
+ ```bash
6
+ pnpm add @reactloom/icons
7
+ ```
8
+
9
+ ```tsx
10
+ import { ArrowRightIcon, CheckCircleIcon, TrashIcon } from '@reactloom/icons';
11
+
12
+ <button><TrashIcon /> Delete</button> // decorative: aria-hidden
13
+ <CheckCircleIcon label="Synced" /> // meaningful on its own: role="img"
14
+ <a href="/next">Next <ArrowRightIcon /></a> // directional: flips when dir="rtl"
15
+ ```
16
+
17
+ - **Size and colour follow the text:** `1em` and `currentColor` by default; `size`, `className`,
18
+ `style`, `ref` and SVG props pass through.
19
+ - **Right-to-left:** directional icons (arrows, chevrons, undo/redo, send…) flip using the
20
+ `--pl-dir` variable from `@reactloom/theme`. Override with `mirrored={false}` or `mirrored`.
21
+ - **Server Components:** icons use no hooks and need no `'use client'`.
22
+ - **Tree-shakable:** one icon is about 0.4 kB, the whole set about 4 kB (brotli), checked in CI.
23
+ - **Your own icons:** `createIcon('RocketIcon', <path d="…" />, { directional?: boolean })`.
24
+ - **Picker data:** `iconCatalog` lists every icon's name, category and whether it is directional.
25
+
26
+ Documentation and the searchable gallery: <https://reactloom.dev/docs/icons>
27
+
28
+ MIT licensed. The drawings are original to ReactLoom.
package/dist/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ReactLoom UI contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ /** Names, categories and search keywords of every icon (for icon pickers and the docs gallery). */
2
+ export interface IconCatalogEntry {
3
+ name: string;
4
+ category: string;
5
+ /** Flips in right-to-left layouts by default. */
6
+ directional: boolean;
7
+ }
8
+ export declare const iconCatalog: readonly IconCatalogEntry[];
9
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,EAAE,SAAS,gBAAgB,EA6IlD,CAAC"}