@postal-music/icons 0.1.4 → 0.1.7
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 +77 -0
- package/dist/index.js +658 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +629 -5
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +73 -104
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +45 -77
- package/dist/index.native.mjs.map +1 -1
- package/dist/types/icons/_icon-props.d.ts +7 -0
- package/dist/types/icons/actions/CheckIcon.d.ts +8 -0
- package/dist/types/icons/actions/Copy02Icon.d.ts +6 -0
- package/dist/types/icons/actions/Copy06Icon.d.ts +7 -0
- package/dist/types/icons/actions/CopyIcon.d.ts +9 -0
- package/dist/types/icons/actions/Expand01Icon.d.ts +8 -0
- package/dist/types/icons/actions/LogoutIcon.d.ts +8 -0
- package/dist/types/icons/actions/MinCircleIcon.d.ts +9 -0
- package/dist/types/icons/actions/MinimiseIcon.d.ts +8 -0
- package/dist/types/icons/actions/MinusIcon.d.ts +7 -0
- package/dist/types/icons/actions/MoreOptionsIcon.d.ts +9 -0
- package/dist/types/icons/actions/MoveIcon.d.ts +9 -0
- package/dist/types/icons/actions/PencilIcon.d.ts +9 -0
- package/dist/types/icons/actions/PlusCircleIcon.d.ts +8 -0
- package/dist/types/icons/actions/PlusIcon.d.ts +8 -0
- package/dist/types/icons/actions/RefreshIcon.d.ts +5 -0
- package/dist/types/icons/actions/ResetIcon.d.ts +11 -0
- package/dist/types/icons/actions/SettingsIcon.d.ts +7 -0
- package/dist/types/icons/actions/SlidersIcon.d.ts +7 -0
- package/dist/types/icons/actions/SmallMagnifyIcon.d.ts +9 -0
- package/dist/types/icons/actions/Trash02Icon.d.ts +7 -0
- package/dist/types/icons/actions/TrashIcon.d.ts +7 -0
- package/dist/types/icons/actions/XIcon.d.ts +8 -0
- package/dist/types/icons/actions/index.d.ts +22 -0
- package/dist/types/icons/alerts/AlertTriangleIcon.d.ts +9 -0
- package/dist/types/icons/alerts/BellIcon.d.ts +6 -0
- package/dist/types/icons/alerts/CheckCircleIcon.d.ts +8 -0
- package/dist/types/icons/alerts/InfoCircleIcon.d.ts +9 -0
- package/dist/types/icons/alerts/InfoIcon.d.ts +8 -0
- package/dist/types/icons/alerts/InfoSquareIcon.d.ts +7 -0
- package/dist/types/icons/alerts/SlashCircleIcon.d.ts +9 -0
- package/dist/types/icons/alerts/XCircleIcon.d.ts +8 -0
- package/dist/types/icons/alerts/index.d.ts +8 -0
- package/dist/types/icons/arrows/ArrowDownIcon.d.ts +7 -0
- package/dist/types/icons/arrows/ArrowLeftIcon.d.ts +8 -0
- package/dist/types/icons/arrows/ArrowRightIcon.d.ts +7 -0
- package/dist/types/icons/arrows/ArrowUp01Icon.d.ts +10 -0
- package/dist/types/icons/arrows/ArrowUpIcon.d.ts +5 -0
- package/dist/types/icons/arrows/ChevronLeftIcon.d.ts +8 -0
- package/dist/types/icons/arrows/ChevronSelectorIcon.d.ts +8 -0
- package/dist/types/icons/arrows/NarrowUpRightIcon.d.ts +6 -0
- package/dist/types/icons/arrows/SwitchHorizontal02Icon.d.ts +16 -0
- package/dist/types/icons/arrows/UTurnIcon.d.ts +7 -0
- package/dist/types/icons/arrows/index.d.ts +10 -0
- package/dist/types/icons/brand/InstagramWhiteIcon.d.ts +12 -0
- package/dist/types/icons/brand/PostalIcon.d.ts +6 -0
- package/dist/types/icons/brand/index.d.ts +2 -0
- package/dist/types/icons/charts/BarChart01Icon.d.ts +8 -0
- package/dist/types/icons/charts/BarChart10Icon.d.ts +6 -0
- package/dist/types/icons/charts/LineChart03UpIcon.d.ts +6 -0
- package/dist/types/icons/charts/index.d.ts +3 -0
- package/dist/types/icons/communication/AnnotationInfoIcon.d.ts +7 -0
- package/dist/types/icons/communication/ChatBubbleDotIcon.d.ts +2 -0
- package/dist/types/icons/communication/ChatBubbleIcon.d.ts +6 -0
- package/dist/types/icons/communication/MailIcon.d.ts +8 -0
- package/dist/types/icons/communication/MessageSquareTextIcon.d.ts +17 -0
- package/dist/types/icons/communication/MessageTextCircle01Icon.d.ts +8 -0
- package/dist/types/icons/communication/NotificationTextIcon.d.ts +4 -0
- package/dist/types/icons/communication/SendIcon.d.ts +7 -0
- package/dist/types/icons/communication/index.d.ts +8 -0
- package/dist/types/icons/files/CameraIcon.d.ts +2 -0
- package/dist/types/icons/files/Download02Icon.d.ts +7 -0
- package/dist/types/icons/files/Download03Icon.d.ts +8 -0
- package/dist/types/icons/files/Download04Icon.d.ts +14 -0
- package/dist/types/icons/files/DownloadCircleIcon.d.ts +16 -0
- package/dist/types/icons/files/DownloadIcon.d.ts +9 -0
- package/dist/types/icons/files/File02Icon.d.ts +7 -0
- package/dist/types/icons/files/FileDownload02Icon.d.ts +7 -0
- package/dist/types/icons/files/FolderGradientIcon.d.ts +6 -0
- package/dist/types/icons/files/FolderIcon.d.ts +8 -0
- package/dist/types/icons/files/FolderPlusIcon.d.ts +13 -0
- package/dist/types/icons/files/Upload01Icon.d.ts +13 -0
- package/dist/types/icons/files/UploadCloudIcon.d.ts +6 -0
- package/dist/types/icons/files/UploadIcon.d.ts +9 -0
- package/dist/types/icons/files/index.d.ts +14 -0
- package/dist/types/icons/finance/BankNote03Icon.d.ts +9 -0
- package/dist/types/icons/finance/CoinsStacked03Icon.d.ts +11 -0
- package/dist/types/icons/finance/CreditCardIcon.d.ts +7 -0
- package/dist/types/icons/finance/Wallet01Icon.d.ts +7 -0
- package/dist/types/icons/finance/index.d.ts +4 -0
- package/dist/types/icons/general/ActivityIcon.d.ts +16 -0
- package/dist/types/icons/general/BookIcon.d.ts +7 -0
- package/dist/types/icons/general/BookmarkIcon.d.ts +9 -0
- package/dist/types/icons/general/CollaborativeIcon.d.ts +8 -0
- package/dist/types/icons/general/DataIcon.d.ts +7 -0
- package/dist/types/icons/general/Dataflow03Icon.d.ts +16 -0
- package/dist/types/icons/general/Datapoints01Icon.d.ts +7 -0
- package/dist/types/icons/general/DropBoxIcon.d.ts +7 -0
- package/dist/types/icons/general/FaceSmileIcon.d.ts +13 -0
- package/dist/types/icons/general/Flag01Icon.d.ts +8 -0
- package/dist/types/icons/general/Gift01Icon.d.ts +8 -0
- package/dist/types/icons/general/Globe02Icon.d.ts +7 -0
- package/dist/types/icons/general/Globe05Icon.d.ts +11 -0
- package/dist/types/icons/general/GlobeIcon.d.ts +8 -0
- package/dist/types/icons/general/Hash02Icon.d.ts +6 -0
- package/dist/types/icons/general/HeartIcon.d.ts +10 -0
- package/dist/types/icons/general/HelpIcon.d.ts +6 -0
- package/dist/types/icons/general/Image01Icon.d.ts +4 -0
- package/dist/types/icons/general/Image03Icon.d.ts +9 -0
- package/dist/types/icons/general/ImageIcon.d.ts +8 -0
- package/dist/types/icons/general/LandingCollaborativeIcon.d.ts +7 -0
- package/dist/types/icons/general/LandingControlsIcon.d.ts +7 -0
- package/dist/types/icons/general/LandingMusicIcon.d.ts +8 -0
- package/dist/types/icons/general/LandingShareIcon.d.ts +7 -0
- package/dist/types/icons/general/LandingUploadIcon.d.ts +7 -0
- package/dist/types/icons/general/LayersThree01Icon.d.ts +6 -0
- package/dist/types/icons/general/LyricsIcon.d.ts +8 -0
- package/dist/types/icons/general/MoonIcon.d.ts +7 -0
- package/dist/types/icons/general/MusicNoteIcon.d.ts +6 -0
- package/dist/types/icons/general/PinIcon.d.ts +7 -0
- package/dist/types/icons/general/QuestionCircleIcon.d.ts +7 -0
- package/dist/types/icons/general/Recordering01.d.ts +7 -0
- package/dist/types/icons/general/Recording02.d.ts +7 -0
- package/dist/types/icons/general/Share01Icon.d.ts +8 -0
- package/dist/types/icons/general/ShareIcon.d.ts +7 -0
- package/dist/types/icons/general/StarIcon.d.ts +2 -0
- package/dist/types/icons/general/Stars01Icon.d.ts +10 -0
- package/dist/types/icons/general/Stars02Icon.d.ts +13 -0
- package/dist/types/icons/general/Stars04Icon.d.ts +8 -0
- package/dist/types/icons/general/Stars06Icon.d.ts +7 -0
- package/dist/types/icons/general/TagsIcon.d.ts +7 -0
- package/dist/types/icons/general/Target05Icon.d.ts +7 -0
- package/dist/types/icons/general/ThumbsDownIcon.d.ts +6 -0
- package/dist/types/icons/general/Type01Icon.d.ts +6 -0
- package/dist/types/icons/general/index.d.ts +44 -0
- package/dist/types/icons/index.d.ts +15 -0
- package/dist/types/icons/media/10SecondsBackIcon.d.ts +7 -0
- package/dist/types/icons/media/EqualizerIcon.d.ts +4 -0
- package/dist/types/icons/media/HeadPhonesIcon.d.ts +6 -0
- package/dist/types/icons/media/MediaUploadIcon.d.ts +8 -0
- package/dist/types/icons/media/NextTrackIcon.d.ts +8 -0
- package/dist/types/icons/media/PauseIcon.d.ts +7 -0
- package/dist/types/icons/media/PlayIcon.d.ts +7 -0
- package/dist/types/icons/media/PlaySquareIcon.d.ts +6 -0
- package/dist/types/icons/media/PreviousTrackIcon.d.ts +8 -0
- package/dist/types/icons/media/Repeat01Icon.d.ts +8 -0
- package/dist/types/icons/media/Repeat02Icon.d.ts +9 -0
- package/dist/types/icons/media/Repeat03Icon.d.ts +8 -0
- package/dist/types/icons/media/Shuffle01Icon.d.ts +8 -0
- package/dist/types/icons/media/TenSecondsForwardIcon.d.ts +7 -0
- package/dist/types/icons/media/VideoRecorderIcon.d.ts +7 -0
- package/dist/types/icons/media/VolumeIcon.d.ts +6 -0
- package/dist/types/icons/media/VolumeMaxIcon.d.ts +7 -0
- package/dist/types/icons/media/index.d.ts +17 -0
- package/dist/types/icons/navigation/AlignLeftIcon.d.ts +6 -0
- package/dist/types/icons/navigation/DotgridIcon.d.ts +9 -0
- package/dist/types/icons/navigation/FilterIcon.d.ts +7 -0
- package/dist/types/icons/navigation/Grid01Icon.d.ts +6 -0
- package/dist/types/icons/navigation/GridIcon.d.ts +10 -0
- package/dist/types/icons/navigation/HomeIcon.d.ts +10 -0
- package/dist/types/icons/navigation/ListIcon.d.ts +7 -0
- package/dist/types/icons/navigation/MenuIcon.d.ts +5 -0
- package/dist/types/icons/navigation/Rows01Icon.d.ts +6 -0
- package/dist/types/icons/navigation/Rows03Icon.d.ts +8 -0
- package/dist/types/icons/navigation/SearchIcon.d.ts +8 -0
- package/dist/types/icons/navigation/SidebarMenuIcon.d.ts +7 -0
- package/dist/types/icons/navigation/SortIcon.d.ts +7 -0
- package/dist/types/icons/navigation/index.d.ts +13 -0
- package/dist/types/icons/security/EyeIcon.d.ts +8 -0
- package/dist/types/icons/security/Lock03FilledIcon.d.ts +7 -0
- package/dist/types/icons/security/Lock03Icon.d.ts +7 -0
- package/dist/types/icons/security/LockIcon.d.ts +7 -0
- package/dist/types/icons/security/LockUnlocked03Icon.d.ts +7 -0
- package/dist/types/icons/security/PasswordInputIcon.d.ts +6 -0
- package/dist/types/icons/security/index.d.ts +6 -0
- package/dist/types/icons/social/AppleMusicIcon.d.ts +7 -0
- package/dist/types/icons/social/AudiomackIcon.d.ts +9 -0
- package/dist/types/icons/social/InstagramShortsIcon.d.ts +9 -0
- package/dist/types/icons/social/ShazamIcon.d.ts +9 -0
- package/dist/types/icons/social/SoundCloudIcon.d.ts +9 -0
- package/dist/types/icons/social/SpotifyIcon.d.ts +11 -0
- package/dist/types/icons/social/TiktokIcon.d.ts +9 -0
- package/dist/types/icons/social/YoutubeIcon.d.ts +9 -0
- package/dist/types/icons/social/YoutubeReelsIcon.d.ts +9 -0
- package/dist/types/icons/social/index.d.ts +9 -0
- package/dist/types/icons/time/CalendarIcon.d.ts +11 -0
- package/dist/types/icons/time/ClockIcon.d.ts +8 -0
- package/dist/types/icons/time/index.d.ts +2 -0
- package/dist/types/icons/users/AccountIcon.d.ts +6 -0
- package/dist/types/icons/users/UserApproveIcon.d.ts +7 -0
- package/dist/types/icons/users/UserIcon.d.ts +10 -0
- package/dist/types/icons/users/UserPlusIcon.d.ts +10 -0
- package/dist/types/icons/users/UserUp01Icon.d.ts +10 -0
- package/dist/types/icons/users/UserXIcon.d.ts +7 -0
- package/dist/types/icons/users/Users03Icon.d.ts +6 -0
- package/dist/types/icons/users/UsersIcon.d.ts +8 -0
- package/dist/types/icons/users/UsersPlusIcon.d.ts +4 -0
- package/dist/types/icons/users/index.d.ts +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/tokens/colors.d.ts +48 -0
- package/dist/types/tokens/index.d.ts +4 -0
- package/dist/types/tokens/radius.d.ts +14 -0
- package/dist/types/tokens/spacing.d.ts +23 -0
- package/dist/types/tokens/typography.d.ts +38 -0
- package/dist/types/utils/cn.d.ts +1 -0
- package/package.json +5 -5
- package/src/icons/arrows/index.ts +6 -6
- package/src/icons/communication/index.ts +3 -3
- package/src/icons/files/index.ts +6 -6
- package/src/icons/general/Recording02.native.tsx +28 -0
- package/src/icons/general/Recording02.web.tsx +39 -0
- package/src/icons/general/TagsIcon.web.tsx +1 -2
- package/src/icons/general/Target05Icon.native.tsx +28 -0
- package/src/icons/general/Target05Icon.web.tsx +39 -0
- package/src/icons/general/index.ts +9 -7
- package/src/icons/media/index.ts +3 -3
- package/src/icons/users/index.ts +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# @postal-music/icons
|
|
2
|
+
|
|
3
|
+
Shared icon library for Postal — React (web) and React Native, from one source.
|
|
4
|
+
|
|
5
|
+
Each icon lives as a pair: `FooIcon.web.tsx` and `FooIcon.native.tsx`. At build time `tsup` resolves the platform extension and emits two bundles (`dist/index.*` for web, `dist/index.native.*` for native). Consumers import from a single specifier; bundlers/Metro pick the right entry via the `exports` map in `package.json`.
|
|
6
|
+
|
|
7
|
+
## Publishing
|
|
8
|
+
|
|
9
|
+
Published to npm as a public scoped package under the `@postal-music` org.
|
|
10
|
+
|
|
11
|
+
### Prerequisites
|
|
12
|
+
|
|
13
|
+
- npm login with publish rights on the `@postal-music` org:
|
|
14
|
+
```sh
|
|
15
|
+
npm whoami # should print your npm username
|
|
16
|
+
npm access list packages @postal-music # should list @postal-music/icons
|
|
17
|
+
```
|
|
18
|
+
If not logged in: `npm login`.
|
|
19
|
+
- Clean working tree in this package (`packages/postal-icons`). `package.json` has `"files": ["dist", "src"]`, so only those are shipped — but a dirty `src/` will still go out.
|
|
20
|
+
|
|
21
|
+
### Release workflow
|
|
22
|
+
|
|
23
|
+
Run all commands from `packages/postal-icons`.
|
|
24
|
+
|
|
25
|
+
1. **Make sure the build is current.**
|
|
26
|
+
```sh
|
|
27
|
+
npm run build
|
|
28
|
+
```
|
|
29
|
+
This runs `tsup` (web + native bundles), `tsc -p tsconfig.build.json` (types into `dist/types`), then `scripts/strip-web-suffix.mjs` (renames `*.web.d.ts` → `*.d.ts` so the declarations match the exports map).
|
|
30
|
+
|
|
31
|
+
2. **Bump the version.** Pick one:
|
|
32
|
+
```sh
|
|
33
|
+
npm version patch # 0.1.7 → 0.1.8 (icon added, bug fix)
|
|
34
|
+
npm version minor # 0.1.7 → 0.2.0 (new category, API addition)
|
|
35
|
+
npm version major # 0.1.7 → 1.0.0 (breaking rename/removal)
|
|
36
|
+
```
|
|
37
|
+
This rewrites `package.json` and creates a git commit + tag in this sub-repo (`postal-icons` is its own git repo — see the monorepo `CLAUDE.md`).
|
|
38
|
+
|
|
39
|
+
3. **Publish.**
|
|
40
|
+
```sh
|
|
41
|
+
npm publish
|
|
42
|
+
```
|
|
43
|
+
`publishConfig.access` is already `public`, so no `--access public` flag needed.
|
|
44
|
+
|
|
45
|
+
4. **Push the version commit and tag.**
|
|
46
|
+
```sh
|
|
47
|
+
git push && git push --tags
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
5. **Verify.**
|
|
51
|
+
```sh
|
|
52
|
+
npm view @postal-music/icons version
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Dry run
|
|
56
|
+
|
|
57
|
+
Before publishing, inspect exactly what will be shipped:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
npm pack --dry-run
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
This lists every file that would land in the tarball without touching the registry. Make sure `dist/` looks complete and nothing sensitive snuck in.
|
|
64
|
+
|
|
65
|
+
### Bumping consumers
|
|
66
|
+
|
|
67
|
+
After publish, update the `@postal-music/icons` dependency in any consuming package (`postal-ac-frontend`, `postal-admin`, `postal-mobile`, `postal-desktop`, …) and run their respective install.
|
|
68
|
+
|
|
69
|
+
## Adding an icon
|
|
70
|
+
|
|
71
|
+
1. Drop the SVG into the right category under `src/icons/<category>/`:
|
|
72
|
+
- `FooIcon.web.tsx` — uses `<svg>` / `<path>`, stroke `currentColor`.
|
|
73
|
+
- `FooIcon.native.tsx` — uses `react-native-svg`'s `<Svg>` / `<Path>`, same path data.
|
|
74
|
+
2. Export it from that category's `index.ts` in alphabetical position.
|
|
75
|
+
3. Run `npm run build` to confirm both bundles compile.
|
|
76
|
+
|
|
77
|
+
Use `currentColor` for strokes/fills so consumers can theme via CSS / `color` prop. Keep the source `viewBox` (usually `0 0 18 18` or `0 0 24 24`); don't rescale paths.
|