@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.
Files changed (216) hide show
  1. package/README.md +77 -0
  2. package/dist/index.js +658 -4
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +629 -5
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/index.native.js +73 -104
  7. package/dist/index.native.js.map +1 -1
  8. package/dist/index.native.mjs +45 -77
  9. package/dist/index.native.mjs.map +1 -1
  10. package/dist/types/icons/_icon-props.d.ts +7 -0
  11. package/dist/types/icons/actions/CheckIcon.d.ts +8 -0
  12. package/dist/types/icons/actions/Copy02Icon.d.ts +6 -0
  13. package/dist/types/icons/actions/Copy06Icon.d.ts +7 -0
  14. package/dist/types/icons/actions/CopyIcon.d.ts +9 -0
  15. package/dist/types/icons/actions/Expand01Icon.d.ts +8 -0
  16. package/dist/types/icons/actions/LogoutIcon.d.ts +8 -0
  17. package/dist/types/icons/actions/MinCircleIcon.d.ts +9 -0
  18. package/dist/types/icons/actions/MinimiseIcon.d.ts +8 -0
  19. package/dist/types/icons/actions/MinusIcon.d.ts +7 -0
  20. package/dist/types/icons/actions/MoreOptionsIcon.d.ts +9 -0
  21. package/dist/types/icons/actions/MoveIcon.d.ts +9 -0
  22. package/dist/types/icons/actions/PencilIcon.d.ts +9 -0
  23. package/dist/types/icons/actions/PlusCircleIcon.d.ts +8 -0
  24. package/dist/types/icons/actions/PlusIcon.d.ts +8 -0
  25. package/dist/types/icons/actions/RefreshIcon.d.ts +5 -0
  26. package/dist/types/icons/actions/ResetIcon.d.ts +11 -0
  27. package/dist/types/icons/actions/SettingsIcon.d.ts +7 -0
  28. package/dist/types/icons/actions/SlidersIcon.d.ts +7 -0
  29. package/dist/types/icons/actions/SmallMagnifyIcon.d.ts +9 -0
  30. package/dist/types/icons/actions/Trash02Icon.d.ts +7 -0
  31. package/dist/types/icons/actions/TrashIcon.d.ts +7 -0
  32. package/dist/types/icons/actions/XIcon.d.ts +8 -0
  33. package/dist/types/icons/actions/index.d.ts +22 -0
  34. package/dist/types/icons/alerts/AlertTriangleIcon.d.ts +9 -0
  35. package/dist/types/icons/alerts/BellIcon.d.ts +6 -0
  36. package/dist/types/icons/alerts/CheckCircleIcon.d.ts +8 -0
  37. package/dist/types/icons/alerts/InfoCircleIcon.d.ts +9 -0
  38. package/dist/types/icons/alerts/InfoIcon.d.ts +8 -0
  39. package/dist/types/icons/alerts/InfoSquareIcon.d.ts +7 -0
  40. package/dist/types/icons/alerts/SlashCircleIcon.d.ts +9 -0
  41. package/dist/types/icons/alerts/XCircleIcon.d.ts +8 -0
  42. package/dist/types/icons/alerts/index.d.ts +8 -0
  43. package/dist/types/icons/arrows/ArrowDownIcon.d.ts +7 -0
  44. package/dist/types/icons/arrows/ArrowLeftIcon.d.ts +8 -0
  45. package/dist/types/icons/arrows/ArrowRightIcon.d.ts +7 -0
  46. package/dist/types/icons/arrows/ArrowUp01Icon.d.ts +10 -0
  47. package/dist/types/icons/arrows/ArrowUpIcon.d.ts +5 -0
  48. package/dist/types/icons/arrows/ChevronLeftIcon.d.ts +8 -0
  49. package/dist/types/icons/arrows/ChevronSelectorIcon.d.ts +8 -0
  50. package/dist/types/icons/arrows/NarrowUpRightIcon.d.ts +6 -0
  51. package/dist/types/icons/arrows/SwitchHorizontal02Icon.d.ts +16 -0
  52. package/dist/types/icons/arrows/UTurnIcon.d.ts +7 -0
  53. package/dist/types/icons/arrows/index.d.ts +10 -0
  54. package/dist/types/icons/brand/InstagramWhiteIcon.d.ts +12 -0
  55. package/dist/types/icons/brand/PostalIcon.d.ts +6 -0
  56. package/dist/types/icons/brand/index.d.ts +2 -0
  57. package/dist/types/icons/charts/BarChart01Icon.d.ts +8 -0
  58. package/dist/types/icons/charts/BarChart10Icon.d.ts +6 -0
  59. package/dist/types/icons/charts/LineChart03UpIcon.d.ts +6 -0
  60. package/dist/types/icons/charts/index.d.ts +3 -0
  61. package/dist/types/icons/communication/AnnotationInfoIcon.d.ts +7 -0
  62. package/dist/types/icons/communication/ChatBubbleDotIcon.d.ts +2 -0
  63. package/dist/types/icons/communication/ChatBubbleIcon.d.ts +6 -0
  64. package/dist/types/icons/communication/MailIcon.d.ts +8 -0
  65. package/dist/types/icons/communication/MessageSquareTextIcon.d.ts +17 -0
  66. package/dist/types/icons/communication/MessageTextCircle01Icon.d.ts +8 -0
  67. package/dist/types/icons/communication/NotificationTextIcon.d.ts +4 -0
  68. package/dist/types/icons/communication/SendIcon.d.ts +7 -0
  69. package/dist/types/icons/communication/index.d.ts +8 -0
  70. package/dist/types/icons/files/CameraIcon.d.ts +2 -0
  71. package/dist/types/icons/files/Download02Icon.d.ts +7 -0
  72. package/dist/types/icons/files/Download03Icon.d.ts +8 -0
  73. package/dist/types/icons/files/Download04Icon.d.ts +14 -0
  74. package/dist/types/icons/files/DownloadCircleIcon.d.ts +16 -0
  75. package/dist/types/icons/files/DownloadIcon.d.ts +9 -0
  76. package/dist/types/icons/files/File02Icon.d.ts +7 -0
  77. package/dist/types/icons/files/FileDownload02Icon.d.ts +7 -0
  78. package/dist/types/icons/files/FolderGradientIcon.d.ts +6 -0
  79. package/dist/types/icons/files/FolderIcon.d.ts +8 -0
  80. package/dist/types/icons/files/FolderPlusIcon.d.ts +13 -0
  81. package/dist/types/icons/files/Upload01Icon.d.ts +13 -0
  82. package/dist/types/icons/files/UploadCloudIcon.d.ts +6 -0
  83. package/dist/types/icons/files/UploadIcon.d.ts +9 -0
  84. package/dist/types/icons/files/index.d.ts +14 -0
  85. package/dist/types/icons/finance/BankNote03Icon.d.ts +9 -0
  86. package/dist/types/icons/finance/CoinsStacked03Icon.d.ts +11 -0
  87. package/dist/types/icons/finance/CreditCardIcon.d.ts +7 -0
  88. package/dist/types/icons/finance/Wallet01Icon.d.ts +7 -0
  89. package/dist/types/icons/finance/index.d.ts +4 -0
  90. package/dist/types/icons/general/ActivityIcon.d.ts +16 -0
  91. package/dist/types/icons/general/BookIcon.d.ts +7 -0
  92. package/dist/types/icons/general/BookmarkIcon.d.ts +9 -0
  93. package/dist/types/icons/general/CollaborativeIcon.d.ts +8 -0
  94. package/dist/types/icons/general/DataIcon.d.ts +7 -0
  95. package/dist/types/icons/general/Dataflow03Icon.d.ts +16 -0
  96. package/dist/types/icons/general/Datapoints01Icon.d.ts +7 -0
  97. package/dist/types/icons/general/DropBoxIcon.d.ts +7 -0
  98. package/dist/types/icons/general/FaceSmileIcon.d.ts +13 -0
  99. package/dist/types/icons/general/Flag01Icon.d.ts +8 -0
  100. package/dist/types/icons/general/Gift01Icon.d.ts +8 -0
  101. package/dist/types/icons/general/Globe02Icon.d.ts +7 -0
  102. package/dist/types/icons/general/Globe05Icon.d.ts +11 -0
  103. package/dist/types/icons/general/GlobeIcon.d.ts +8 -0
  104. package/dist/types/icons/general/Hash02Icon.d.ts +6 -0
  105. package/dist/types/icons/general/HeartIcon.d.ts +10 -0
  106. package/dist/types/icons/general/HelpIcon.d.ts +6 -0
  107. package/dist/types/icons/general/Image01Icon.d.ts +4 -0
  108. package/dist/types/icons/general/Image03Icon.d.ts +9 -0
  109. package/dist/types/icons/general/ImageIcon.d.ts +8 -0
  110. package/dist/types/icons/general/LandingCollaborativeIcon.d.ts +7 -0
  111. package/dist/types/icons/general/LandingControlsIcon.d.ts +7 -0
  112. package/dist/types/icons/general/LandingMusicIcon.d.ts +8 -0
  113. package/dist/types/icons/general/LandingShareIcon.d.ts +7 -0
  114. package/dist/types/icons/general/LandingUploadIcon.d.ts +7 -0
  115. package/dist/types/icons/general/LayersThree01Icon.d.ts +6 -0
  116. package/dist/types/icons/general/LyricsIcon.d.ts +8 -0
  117. package/dist/types/icons/general/MoonIcon.d.ts +7 -0
  118. package/dist/types/icons/general/MusicNoteIcon.d.ts +6 -0
  119. package/dist/types/icons/general/PinIcon.d.ts +7 -0
  120. package/dist/types/icons/general/QuestionCircleIcon.d.ts +7 -0
  121. package/dist/types/icons/general/Recordering01.d.ts +7 -0
  122. package/dist/types/icons/general/Recording02.d.ts +7 -0
  123. package/dist/types/icons/general/Share01Icon.d.ts +8 -0
  124. package/dist/types/icons/general/ShareIcon.d.ts +7 -0
  125. package/dist/types/icons/general/StarIcon.d.ts +2 -0
  126. package/dist/types/icons/general/Stars01Icon.d.ts +10 -0
  127. package/dist/types/icons/general/Stars02Icon.d.ts +13 -0
  128. package/dist/types/icons/general/Stars04Icon.d.ts +8 -0
  129. package/dist/types/icons/general/Stars06Icon.d.ts +7 -0
  130. package/dist/types/icons/general/TagsIcon.d.ts +7 -0
  131. package/dist/types/icons/general/Target05Icon.d.ts +7 -0
  132. package/dist/types/icons/general/ThumbsDownIcon.d.ts +6 -0
  133. package/dist/types/icons/general/Type01Icon.d.ts +6 -0
  134. package/dist/types/icons/general/index.d.ts +44 -0
  135. package/dist/types/icons/index.d.ts +15 -0
  136. package/dist/types/icons/media/10SecondsBackIcon.d.ts +7 -0
  137. package/dist/types/icons/media/EqualizerIcon.d.ts +4 -0
  138. package/dist/types/icons/media/HeadPhonesIcon.d.ts +6 -0
  139. package/dist/types/icons/media/MediaUploadIcon.d.ts +8 -0
  140. package/dist/types/icons/media/NextTrackIcon.d.ts +8 -0
  141. package/dist/types/icons/media/PauseIcon.d.ts +7 -0
  142. package/dist/types/icons/media/PlayIcon.d.ts +7 -0
  143. package/dist/types/icons/media/PlaySquareIcon.d.ts +6 -0
  144. package/dist/types/icons/media/PreviousTrackIcon.d.ts +8 -0
  145. package/dist/types/icons/media/Repeat01Icon.d.ts +8 -0
  146. package/dist/types/icons/media/Repeat02Icon.d.ts +9 -0
  147. package/dist/types/icons/media/Repeat03Icon.d.ts +8 -0
  148. package/dist/types/icons/media/Shuffle01Icon.d.ts +8 -0
  149. package/dist/types/icons/media/TenSecondsForwardIcon.d.ts +7 -0
  150. package/dist/types/icons/media/VideoRecorderIcon.d.ts +7 -0
  151. package/dist/types/icons/media/VolumeIcon.d.ts +6 -0
  152. package/dist/types/icons/media/VolumeMaxIcon.d.ts +7 -0
  153. package/dist/types/icons/media/index.d.ts +17 -0
  154. package/dist/types/icons/navigation/AlignLeftIcon.d.ts +6 -0
  155. package/dist/types/icons/navigation/DotgridIcon.d.ts +9 -0
  156. package/dist/types/icons/navigation/FilterIcon.d.ts +7 -0
  157. package/dist/types/icons/navigation/Grid01Icon.d.ts +6 -0
  158. package/dist/types/icons/navigation/GridIcon.d.ts +10 -0
  159. package/dist/types/icons/navigation/HomeIcon.d.ts +10 -0
  160. package/dist/types/icons/navigation/ListIcon.d.ts +7 -0
  161. package/dist/types/icons/navigation/MenuIcon.d.ts +5 -0
  162. package/dist/types/icons/navigation/Rows01Icon.d.ts +6 -0
  163. package/dist/types/icons/navigation/Rows03Icon.d.ts +8 -0
  164. package/dist/types/icons/navigation/SearchIcon.d.ts +8 -0
  165. package/dist/types/icons/navigation/SidebarMenuIcon.d.ts +7 -0
  166. package/dist/types/icons/navigation/SortIcon.d.ts +7 -0
  167. package/dist/types/icons/navigation/index.d.ts +13 -0
  168. package/dist/types/icons/security/EyeIcon.d.ts +8 -0
  169. package/dist/types/icons/security/Lock03FilledIcon.d.ts +7 -0
  170. package/dist/types/icons/security/Lock03Icon.d.ts +7 -0
  171. package/dist/types/icons/security/LockIcon.d.ts +7 -0
  172. package/dist/types/icons/security/LockUnlocked03Icon.d.ts +7 -0
  173. package/dist/types/icons/security/PasswordInputIcon.d.ts +6 -0
  174. package/dist/types/icons/security/index.d.ts +6 -0
  175. package/dist/types/icons/social/AppleMusicIcon.d.ts +7 -0
  176. package/dist/types/icons/social/AudiomackIcon.d.ts +9 -0
  177. package/dist/types/icons/social/InstagramShortsIcon.d.ts +9 -0
  178. package/dist/types/icons/social/ShazamIcon.d.ts +9 -0
  179. package/dist/types/icons/social/SoundCloudIcon.d.ts +9 -0
  180. package/dist/types/icons/social/SpotifyIcon.d.ts +11 -0
  181. package/dist/types/icons/social/TiktokIcon.d.ts +9 -0
  182. package/dist/types/icons/social/YoutubeIcon.d.ts +9 -0
  183. package/dist/types/icons/social/YoutubeReelsIcon.d.ts +9 -0
  184. package/dist/types/icons/social/index.d.ts +9 -0
  185. package/dist/types/icons/time/CalendarIcon.d.ts +11 -0
  186. package/dist/types/icons/time/ClockIcon.d.ts +8 -0
  187. package/dist/types/icons/time/index.d.ts +2 -0
  188. package/dist/types/icons/users/AccountIcon.d.ts +6 -0
  189. package/dist/types/icons/users/UserApproveIcon.d.ts +7 -0
  190. package/dist/types/icons/users/UserIcon.d.ts +10 -0
  191. package/dist/types/icons/users/UserPlusIcon.d.ts +10 -0
  192. package/dist/types/icons/users/UserUp01Icon.d.ts +10 -0
  193. package/dist/types/icons/users/UserXIcon.d.ts +7 -0
  194. package/dist/types/icons/users/Users03Icon.d.ts +6 -0
  195. package/dist/types/icons/users/UsersIcon.d.ts +8 -0
  196. package/dist/types/icons/users/UsersPlusIcon.d.ts +4 -0
  197. package/dist/types/icons/users/index.d.ts +9 -0
  198. package/dist/types/index.d.ts +2 -0
  199. package/dist/types/tokens/colors.d.ts +48 -0
  200. package/dist/types/tokens/index.d.ts +4 -0
  201. package/dist/types/tokens/radius.d.ts +14 -0
  202. package/dist/types/tokens/spacing.d.ts +23 -0
  203. package/dist/types/tokens/typography.d.ts +38 -0
  204. package/dist/types/utils/cn.d.ts +1 -0
  205. package/package.json +5 -5
  206. package/src/icons/arrows/index.ts +6 -6
  207. package/src/icons/communication/index.ts +3 -3
  208. package/src/icons/files/index.ts +6 -6
  209. package/src/icons/general/Recording02.native.tsx +28 -0
  210. package/src/icons/general/Recording02.web.tsx +39 -0
  211. package/src/icons/general/TagsIcon.web.tsx +1 -2
  212. package/src/icons/general/Target05Icon.native.tsx +28 -0
  213. package/src/icons/general/Target05Icon.web.tsx +39 -0
  214. package/src/icons/general/index.ts +9 -7
  215. package/src/icons/media/index.ts +3 -3
  216. 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.