@blushblink/icons-mobile 0.0.0-stage → 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.
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,266 @@
1
- # Temporary Holding Version
1
+ # @blushblink/icons-mobile
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
+ Shared SVG icons for the Blush & Blink customer and professional React Native applications.
4
+
5
+ ## Installation
6
+
7
+ This is a private npm package. Your npm account must have read access.
8
+
9
+ ```bash
10
+ npm login
11
+ npm install @blushblink/icons-mobile
12
+ ```
13
+
14
+ React, React Native and react-native-svg are peer dependencies.
15
+
16
+ ### Expo applications
17
+
18
+ Install the SVG version appropriate for your Expo project:
19
+
20
+ ```bash
21
+ npx expo install react-native-svg
22
+ ```
23
+
24
+ ### Other React Native applications
25
+
26
+ Install a react-native-svg version compatible with your React Native version:
27
+
28
+ ```bash
29
+ npm install react-native-svg
30
+ ```
31
+
32
+ Complete any native installation steps required by your project and rebuild the native application after adding the dependency.
33
+
34
+ ## Usage
35
+
36
+ ```jsx
37
+ import { View } from "react-native";
38
+ import { HomeIcon, CalendarIcon } from "@blushblink/icons-mobile";
39
+
40
+ export default function Example() {
41
+ return (
42
+ <View style={{ flexDirection: "row", gap: 16 }}>
43
+ <HomeIcon width={24} height={24} color="#8F304F" accessible={false} />
44
+
45
+ <CalendarIcon width={24} height={24} color="#30252A" accessible={false} />
46
+ </View>
47
+ );
48
+ }
49
+ ```
50
+
51
+ ## Available icons
52
+
53
+ | Export | Source SVG |
54
+ | --------------- | ------------------- |
55
+ | `HomeIcon` | `house.svg` |
56
+ | `CalendarIcon` | `calendar-days.svg` |
57
+ | `ProfileIcon` | `user-round.svg` |
58
+ | `SearchIcon` | `search.svg` |
59
+ | `ArrowLeftIcon` | `arrow-left.svg` |
60
+
61
+ Export names match `@blushblink/icons-web`.
62
+
63
+ Update this list when adding or removing public exports.
64
+
65
+ ## Properties
66
+
67
+ Icons pass their properties to the root react-native-svg component.
68
+
69
+ | Property | Purpose | Example |
70
+ | -------------------- | -------------------------------------------- | -------------------- |
71
+ | `width` | Icon width | `24` |
72
+ | `height` | Icon height | `24` |
73
+ | `color` | Colour used by `currentColor` | `"#8F304F"` |
74
+ | `strokeWidth` | Outline thickness | `2` |
75
+ | `style` | Supported native styling | `{ marginRight: 8 }` |
76
+ | `accessible` | Whether the icon is an accessibility element | `false` |
77
+ | `accessibilityLabel` | Accessible name when exposed | `"Calendar"` |
78
+ | `testID` | Identifier for UI tests | `"calendar-icon"` |
79
+
80
+ There is no custom `size` property. Set both `width` and `height`.
81
+
82
+ Source icons use a 24 × 24 view box. Keep width and height equal to preserve their proportions.
83
+
84
+ Use the `color` property to set the icon colour. Prefer shared design-token values rather than hardcoded colours in application code.
85
+
86
+ ## Accessibility and interaction
87
+
88
+ ### Icon-only button
89
+
90
+ Use a Pressable for the interaction. Put the accessible label on the Pressable and hide the decorative icon.
91
+
92
+ ```jsx
93
+ import { Pressable } from "react-native";
94
+ import { ArrowLeftIcon } from "@blushblink/icons-mobile";
95
+
96
+ export function BackButton({ onPress }) {
97
+ return (
98
+ <Pressable
99
+ onPress={onPress}
100
+ accessibilityRole="button"
101
+ accessibilityLabel="Go back"
102
+ style={{
103
+ width: 48,
104
+ height: 48,
105
+ alignItems: "center",
106
+ justifyContent: "center",
107
+ }}
108
+ >
109
+ <ArrowLeftIcon
110
+ width={24}
111
+ height={24}
112
+ color="#8F304F"
113
+ accessible={false}
114
+ />
115
+ </Pressable>
116
+ );
117
+ }
118
+ ```
119
+
120
+ The button's touch target is larger than the visible icon.
121
+
122
+ ### Button with visible text
123
+
124
+ ```jsx
125
+ import { Pressable, Text } from "react-native";
126
+ import { SearchIcon } from "@blushblink/icons-mobile";
127
+
128
+ export function SearchButton({ onPress }) {
129
+ return (
130
+ <Pressable
131
+ onPress={onPress}
132
+ accessibilityRole="button"
133
+ accessibilityLabel="Search services"
134
+ style={{
135
+ minHeight: 48,
136
+ flexDirection: "row",
137
+ alignItems: "center",
138
+ paddingHorizontal: 16,
139
+ }}
140
+ >
141
+ <SearchIcon width={20} height={20} color="#8F304F" accessible={false} />
142
+
143
+ <Text style={{ marginLeft: 8 }}>Search services</Text>
144
+ </Pressable>
145
+ );
146
+ }
147
+ ```
148
+
149
+ ### Meaningful standalone icon
150
+
151
+ ```jsx
152
+ <CalendarIcon
153
+ width={24}
154
+ height={24}
155
+ color="#8F304F"
156
+ accessible={true}
157
+ accessibilityRole="image"
158
+ accessibilityLabel="Appointment calendar"
159
+ />
160
+ ```
161
+
162
+ Verify accessibility behaviour using VoiceOver on iOS and TalkBack on Android.
163
+
164
+ ## Package format
165
+
166
+ - JavaScript, with no TypeScript requirement.
167
+ - ESM exports.
168
+ - Compiled JavaScript is published in `dist/`.
169
+ - Uses react-native-svg rather than browser SVG elements.
170
+ - React, React Native and react-native-svg remain external.
171
+
172
+ Supported dependency versions are declared in `peerDependencies` in `package.json`.
173
+
174
+ ## Development
175
+
176
+ Run commands from the design-system repository root.
177
+
178
+ Generate mobile components:
179
+
180
+ ```bash
181
+ npx svgr --native --no-svgo --no-index --ext jsx \
182
+ --out-dir packages/icons-mobile/src/generated \
183
+ assets/icons
184
+ ```
185
+
186
+ Build:
187
+
188
+ ```bash
189
+ npm run build --workspace=@blushblink/icons-mobile
190
+ ```
191
+
192
+ Inspect package contents:
193
+
194
+ ```bash
195
+ npm pack --workspace=@blushblink/icons-mobile --dry-run
196
+ ```
197
+
198
+ Create a package archive:
199
+
200
+ ```bash
201
+ npm pack --workspace=@blushblink/icons-mobile
202
+ ```
203
+
204
+ ## Adding an icon
205
+
206
+ 1. Add its SVG to `assets/icons/`.
207
+ 2. Preserve the shared view box, stroke style and `currentColor`.
208
+ 3. Generate both mobile and web components.
209
+ 4. Add matching public exports to both packages.
210
+ 5. Update both README icon lists.
211
+ 6. Test on Android and iOS.
212
+ 7. Build and test the package archives before publishing.
213
+
214
+ Edit the original SVG rather than generated component files.
215
+
216
+ When removing or renaming an icon, remove stale generated files and exports too.
217
+
218
+ ## Troubleshooting
219
+
220
+ ### react-native-svg cannot be resolved
221
+
222
+ Install it in the consuming application and check the installed dependency versions.
223
+
224
+ ### A native SVG component is missing
225
+
226
+ Confirm native installation is complete and rebuild the application. Restarting JavaScript alone does not add native dependencies to an existing binary.
227
+
228
+ ### An icon cannot be imported
229
+
230
+ Check its export name in `src/index.js`, then rebuild the package.
231
+
232
+ ### Changing the colour has no effect
233
+
234
+ Check whether the source SVG contains a fixed stroke or fill colour instead of `currentColor`.
235
+
236
+ ### The application renders browser SVG elements
237
+
238
+ Confirm you imported from `@blushblink/icons-mobile`, not `@blushblink/icons-web`, and generated the components using `--native`.
239
+
240
+ ### A private package cannot be installed
241
+
242
+ Check the configured registry, npm authentication and package read permissions.
243
+
244
+ ## Licence and attribution
245
+
246
+ See `LICENSE-Lucide.txt` for the licence and attribution covering included Lucide icons.
247
+
248
+ Private package access does not remove third-party licence obligations.
249
+
250
+ ## Rose Atelier beauty illustrations
251
+
252
+ The following filled-contour icons are traced from the approved Home preview, preserving its artwork instead of substituting generic utility icons:
253
+
254
+ - `MakeupKitIcon`, `HairBeautyIcon`, `FacialCareIcon`
255
+ - `WaxingBowlIcon`, `NailPolishIcon`, `SpaStonesIcon`
256
+ - `LocationSolidIcon`, `HomeSolidIcon`
257
+
258
+ ```jsx
259
+ import { MakeupKitIcon } from "@blushblink/icons-mobile";
260
+
261
+ <MakeupKitIcon width={52} height={52} color="#8F304F" />
262
+ ```
263
+
264
+ `width` and `height` default to 24; `color` defaults to currentColor. Other SVG props pass through to the root. These are filled silhouettes with preserved cutouts, so strokeWidth does not control their line thickness. Category illustrations are intended for 48–56 logical units; use simpler utility icons at small sizes. Add accessible text to the enclosing button or supply platform-appropriate accessibility props for standalone meaningful icons.
265
+
266
+ The blush circle is a separate UI surface, not baked into the icon. Source SVGs are in assets/icons; the reference is assets/references/customer-home-approved.png. The original Lucide icons remain unchanged and retain their existing license. These additional assets are project-specific artwork derived from the project's generated preview.