@groooh/icons 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +145 -12
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,24 +1,157 @@
1
1
  # @groooh/icons
2
2
 
3
- Cross-platform SVG icon library for React Native (iOS & Android via `react-native-svg`) and React Web / Next.js (native `<svg>`).
3
+ > **23,035+ Cross-Platform SVG Icons** for React Native (iOS & Android) and React Web / Next.js — crafted by **[Groooh](https://groooh.com)**.
4
4
 
5
- Contains **4,607 unique icons** across **5 styles** (`regular`, `filled`, `light`, `duotone`, `duotone-line`) — **23,035 icon components** total.
5
+ [![npm](https://img.shields.io/npm/v/@groooh/icons.svg)](https://www.npmjs.com/package/@groooh/icons)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
7
 
7
- ## Build & Package
8
+ `@groooh/icons` is a universal icon system built from a single SVG source to run natively on **iOS & Android** (`react-native-svg`) and **Web** (pure HTML5 `<svg>` with zero `react-native-svg` runtime overhead) using conditional `package.json` exports.
8
9
 
9
- ```bash
10
- # Regenerate TSX + Web icon modules from svg/
11
- npm run generate
10
+ Explore the full Groooh ecosystem at **[groooh.com](https://groooh.com)**.
11
+
12
+ ---
13
+
14
+ ## Why @groooh/icons?
15
+
16
+ - **4,607 Unique Icons × 5 Styles = 23,035 Components** — consistent visual language across your entire app.
17
+ - **29 Curated Categories** — from UI basics, arrows, and e-commerce to finance, coding, security, AI, and devices.
18
+ - **True Cross-Platform Resolution** — automatically resolves to `react-native-svg` on Metro/React Native and native DOM `<svg>` on Next.js, Vite, and Webpack.
19
+ - **Duotone Ready** — built-in `secondaryColor` and `secondaryOpacity` props on `duotone` and `duotone-line` styles.
20
+ - **Tree-Shakable & Typed** — granular style/category subpath imports (`@groooh/icons/regular/ui-basics`), ESM (`.mjs`) + CJS (`.js`), and full `.d.ts` TypeScript definitions.
21
+ - **Tokenized Sizing** — supports pixel numbers or semantic size tokens (`"2xs"` through `"3xl"`).
22
+
23
+ ---
24
+
25
+ ## Icon Specifications
26
+
27
+ | Specification | Details |
28
+ | :--- | :--- |
29
+ | **Total Components** | **23,035** (`4,607` unique icons × `5` styles) |
30
+ | **Styles** | `regular`, `filled`, `light`, `duotone`, `duotone-line` |
31
+ | **Categories** | **29** categories (see list below) |
32
+ | **ViewBox** | Standard `0 0 24 24` grid |
33
+ | **Size Tokens** | `"2xs"` (12px), `"xs"` (14px), `"sm"` (16px), `"md"` (20px), `"lg"` (24px), `"xl"` (28px), `"2xl"` (32px), `"3xl"` (40px) |
34
+ | **Platforms** | iOS, Android, React Web, Next.js, Vite |
35
+ | **Formats** | TypeScript (`.d.ts`), CommonJS (`.js`), ES Modules (`.mjs` for web), plus `dist/catalog.json` |
36
+
37
+ ### 29 Categories Included
38
+
39
+ - `arrows`
40
+ - `buildings`
41
+ - `business-and-finance`
42
+ - `charts-and-diagrams`
43
+ - `chatting`
44
+ - `coding`
45
+ - `commenting`
46
+ - `communication`
47
+ - `connectivity`
48
+ - `currencies`
49
+ - `date-and-time`
50
+ - `design-and-editing`
51
+ - `devices-and-hardware`
52
+ - `documents`
53
+ - `e-commerce-and-shopping`
54
+ - `education`
55
+ - `files`
56
+ - `location-and-map`
57
+ - `menu-and-grids`
58
+ - `messaging`
59
+ - `multimedia`
60
+ - `payment-and-money`
61
+ - `security`
62
+ - `sign-and-indices`
63
+ - `support-and-reviews`
64
+ - `text-formatting`
65
+ - `ui-basics`
66
+ - `users-and-people`
67
+ - `weather`
12
68
 
13
- # Compile TypeScript -> dist/
14
- npm run build
69
+ ---
15
70
 
16
- # Create a distributable .tgz
17
- npm pack
71
+ ## Installation
72
+
73
+ ### React Web / Next.js / Vite
74
+
75
+ ```bash
76
+ npm install @groooh/icons
18
77
  ```
19
78
 
20
- ## Publish (Public)
79
+ ### React Native / Expo (iOS & Android)
80
+
81
+ Install `@groooh/icons` alongside `react-native-svg`:
21
82
 
22
83
  ```bash
23
- npm publish --access public
84
+ npm install @groooh/icons react-native-svg
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Usage
90
+
91
+ ### Basic Usage (Default `regular` style)
92
+
93
+ ```tsx
94
+ import { SearchIcon, HeartIcon, BasketShoppingIcon } from "@groooh/icons";
95
+
96
+ export function HeaderActions() {
97
+ return (
98
+ <>
99
+ <SearchIcon size="md" color="#111827" />
100
+ <HeartIcon size={24} color="#ef4444" />
101
+ <BasketShoppingIcon size="lg" color="#2563eb" />
102
+ </>
103
+ );
104
+ }
24
105
  ```
106
+
107
+ ### Granular Category Imports (Recommended for Tree-Shaking)
108
+
109
+ ```tsx
110
+ import { HouseDoorIcon } from "@groooh/icons/regular/buildings";
111
+ import { StarFilledIcon } from "@groooh/icons/filled/support-and-reviews";
112
+ import { ShieldCheckIcon } from "@groooh/icons/light/security";
113
+ ```
114
+
115
+ ### Multi-Style & Duotone Icons
116
+
117
+ ```tsx
118
+ import { BellIcon as BellRegular } from "@groooh/icons/regular/ui-basics";
119
+ import { BellIcon as BellFilled } from "@groooh/icons/filled/ui-basics";
120
+ import { BellIcon as BellDuotone } from "@groooh/icons/duotone/ui-basics";
121
+ import { BellIcon as BellDuotoneLine } from "@groooh/icons/duotone-line/ui-basics";
122
+
123
+ <BellDuotone
124
+ size={28}
125
+ color="#4f46e5"
126
+ secondaryColor="#a5b4fc"
127
+ secondaryOpacity={0.35}
128
+ />
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Props (`IconProps`)
134
+
135
+ | Prop | Type | Default | Description |
136
+ | :--- | :--- | :--- | :--- |
137
+ | `size` | `number \| IconSizeToken` | `24` | Pixel number or size token (`"2xs"`–`"3xl"`) |
138
+ | `color` | `string` | `"currentColor"` | Primary stroke/fill color |
139
+ | `secondaryColor` | `string` | `color` | Secondary layer color (`duotone` & `duotone-line`) |
140
+ | `secondaryOpacity` | `number` | `0.4` | Secondary layer opacity (`duotone` & `duotone-line`) |
141
+ | `style` | `ViewStyle \| CSSProperties` | — | Optional container style overrides |
142
+ | `accessibilityLabel` | `string` | — | Screen reader label |
143
+
144
+ ---
145
+
146
+ ## Built by Groooh
147
+
148
+ `@groooh/icons` is part of the **Groooh** cross-platform design & engineering ecosystem:
149
+
150
+ - **Website:** [groooh.com](https://groooh.com)
151
+ - **UI & Compiler Framework:** [`@groooh/react-native-webify`](https://www.npmjs.com/package/@groooh/react-native-webify) — write React Native once and compile to semantic HTML5/React Web with zero runtime overhead.
152
+
153
+ ---
154
+
155
+ ## License
156
+
157
+ MIT © [Groooh](https://groooh.com)
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@groooh/icons",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Cross-platform SVG icon library for React Native (iOS & Android) and React Web / Next.js",
5
+ "homepage": "https://groooh.com",
5
6
  "publishConfig": {
6
7
  "access": "public"
7
8
  },