@honeyicons/react 0.0.1 → 0.0.3

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 (180) hide show
  1. package/MIGRATION.md +42 -42
  2. package/README.md +36 -5
  3. package/dist/catalog.js +272 -169
  4. package/dist/index.js +230 -169
  5. package/dist/types/catalog.d.ts +5 -5
  6. package/dist/types/create-icon.d.ts +2 -2
  7. package/dist/types/icon.d.ts +1 -1
  8. package/dist/types/icons/add.d.ts +1 -1
  9. package/dist/types/icons/alert-triangle.d.ts +2 -2
  10. package/dist/types/icons/align-center.d.ts +1 -1
  11. package/dist/types/icons/align-left.d.ts +1 -1
  12. package/dist/types/icons/align-right.d.ts +1 -1
  13. package/dist/types/icons/anthropic.d.ts +1 -1
  14. package/dist/types/icons/antigravity.d.ts +1 -1
  15. package/dist/types/icons/archive.d.ts +2 -2
  16. package/dist/types/icons/arrow-down-left.d.ts +1 -1
  17. package/dist/types/icons/arrow-down-right.d.ts +1 -1
  18. package/dist/types/icons/arrow-down.d.ts +2 -2
  19. package/dist/types/icons/arrow-left.d.ts +2 -2
  20. package/dist/types/icons/arrow-right.d.ts +2 -2
  21. package/dist/types/icons/arrow-up-left.d.ts +1 -1
  22. package/dist/types/icons/arrow-up-right.d.ts +1 -1
  23. package/dist/types/icons/arrow-up.d.ts +2 -2
  24. package/dist/types/icons/bell.d.ts +1 -1
  25. package/dist/types/icons/bookmark.d.ts +1 -1
  26. package/dist/types/icons/brain.d.ts +1 -1
  27. package/dist/types/icons/bun.d.ts +1 -1
  28. package/dist/types/icons/calendar.d.ts +2 -2
  29. package/dist/types/icons/card.d.ts +1 -0
  30. package/dist/types/icons/cart.d.ts +1 -1
  31. package/dist/types/icons/check-double.d.ts +2 -2
  32. package/dist/types/icons/check.d.ts +1 -1
  33. package/dist/types/icons/chevron-down.d.ts +1 -1
  34. package/dist/types/icons/chevron-left.d.ts +1 -1
  35. package/dist/types/icons/chevron-right.d.ts +1 -1
  36. package/dist/types/icons/chevron-up.d.ts +1 -1
  37. package/dist/types/icons/chevrons-down.d.ts +2 -2
  38. package/dist/types/icons/chevrons-left.d.ts +2 -2
  39. package/dist/types/icons/chevrons-right.d.ts +2 -2
  40. package/dist/types/icons/chevrons-up.d.ts +2 -2
  41. package/dist/types/icons/chrome.d.ts +1 -1
  42. package/dist/types/icons/clapperboard.d.ts +1 -1
  43. package/dist/types/icons/claude-ai.d.ts +1 -1
  44. package/dist/types/icons/claude-code.d.ts +1 -1
  45. package/dist/types/icons/clock.d.ts +1 -0
  46. package/dist/types/icons/close.d.ts +1 -1
  47. package/dist/types/icons/cloud.d.ts +1 -1
  48. package/dist/types/icons/code.d.ts +1 -1
  49. package/dist/types/icons/codex.d.ts +1 -1
  50. package/dist/types/icons/command.d.ts +1 -1
  51. package/dist/types/icons/computer.d.ts +1 -1
  52. package/dist/types/icons/copy.d.ts +1 -1
  53. package/dist/types/icons/cursor.d.ts +1 -1
  54. package/dist/types/icons/deepseek.d.ts +1 -1
  55. package/dist/types/icons/devin.d.ts +1 -1
  56. package/dist/types/icons/discord.d.ts +1 -1
  57. package/dist/types/icons/dislike.d.ts +1 -1
  58. package/dist/types/icons/door-open.d.ts +2 -2
  59. package/dist/types/icons/edit-off.d.ts +1 -1
  60. package/dist/types/icons/edit.d.ts +2 -2
  61. package/dist/types/icons/email.d.ts +1 -1
  62. package/dist/types/icons/facebook.d.ts +1 -1
  63. package/dist/types/icons/file-add.d.ts +1 -0
  64. package/dist/types/icons/file-check.d.ts +2 -2
  65. package/dist/types/icons/file-code.d.ts +1 -1
  66. package/dist/types/icons/file-remove.d.ts +1 -1
  67. package/dist/types/icons/file.d.ts +1 -1
  68. package/dist/types/icons/folder-add.d.ts +1 -1
  69. package/dist/types/icons/folder-open.d.ts +1 -1
  70. package/dist/types/icons/folder.d.ts +2 -2
  71. package/dist/types/icons/gemini.d.ts +1 -1
  72. package/dist/types/icons/git-branch.d.ts +2 -2
  73. package/dist/types/icons/git-merge-conflict.d.ts +2 -2
  74. package/dist/types/icons/git-pull-request.d.ts +1 -1
  75. package/dist/types/icons/git.d.ts +1 -1
  76. package/dist/types/icons/github-copilot.d.ts +1 -1
  77. package/dist/types/icons/github.d.ts +1 -1
  78. package/dist/types/icons/google.d.ts +1 -1
  79. package/dist/types/icons/grok.d.ts +1 -1
  80. package/dist/types/icons/hammer.d.ts +2 -2
  81. package/dist/types/icons/hashtag.d.ts +1 -1
  82. package/dist/types/icons/headphones.d.ts +2 -2
  83. package/dist/types/icons/home.d.ts +1 -1
  84. package/dist/types/icons/image-add.d.ts +2 -2
  85. package/dist/types/icons/image.d.ts +2 -2
  86. package/dist/types/icons/index.d.ts +170 -164
  87. package/dist/types/icons/instagram.d.ts +2 -2
  88. package/dist/types/icons/integration.d.ts +1 -1
  89. package/dist/types/icons/key.d.ts +1 -0
  90. package/dist/types/icons/kimi.d.ts +1 -1
  91. package/dist/types/icons/layers.d.ts +1 -1
  92. package/dist/types/icons/lightning.d.ts +1 -1
  93. package/dist/types/icons/like.d.ts +1 -1
  94. package/dist/types/icons/linkedin.d.ts +1 -1
  95. package/dist/types/icons/list-down.d.ts +1 -1
  96. package/dist/types/icons/list-up.d.ts +1 -1
  97. package/dist/types/icons/lock-open.d.ts +2 -2
  98. package/dist/types/icons/lock.d.ts +1 -1
  99. package/dist/types/icons/logout.d.ts +1 -1
  100. package/dist/types/icons/maximize.d.ts +1 -1
  101. package/dist/types/icons/menu.d.ts +2 -2
  102. package/dist/types/icons/meta-ai.d.ts +1 -1
  103. package/dist/types/icons/microphone.d.ts +1 -1
  104. package/dist/types/icons/microsoft-copilot.d.ts +2 -2
  105. package/dist/types/icons/minimize.d.ts +1 -1
  106. package/dist/types/icons/minus.d.ts +1 -1
  107. package/dist/types/icons/mistral.d.ts +1 -1
  108. package/dist/types/icons/moon.d.ts +1 -1
  109. package/dist/types/icons/more-horizontal.d.ts +1 -1
  110. package/dist/types/icons/more-vertical.d.ts +1 -1
  111. package/dist/types/icons/npm.d.ts +1 -1
  112. package/dist/types/icons/nvidia.d.ts +1 -1
  113. package/dist/types/icons/openai.d.ts +1 -1
  114. package/dist/types/icons/openclaw.d.ts +1 -1
  115. package/dist/types/icons/opencode.d.ts +1 -1
  116. package/dist/types/icons/paper-plane.d.ts +1 -1
  117. package/dist/types/icons/paperclip.d.ts +1 -1
  118. package/dist/types/icons/pen.d.ts +1 -1
  119. package/dist/types/icons/perplexity.d.ts +1 -1
  120. package/dist/types/icons/pin.d.ts +1 -1
  121. package/dist/types/icons/pinterest.d.ts +1 -1
  122. package/dist/types/icons/play.d.ts +1 -1
  123. package/dist/types/icons/qwen.d.ts +1 -1
  124. package/dist/types/icons/react.d.ts +1 -1
  125. package/dist/types/icons/reddit.d.ts +1 -1
  126. package/dist/types/icons/redo.d.ts +1 -1
  127. package/dist/types/icons/reorder.d.ts +1 -1
  128. package/dist/types/icons/repeat.d.ts +1 -1
  129. package/dist/types/icons/search.d.ts +1 -1
  130. package/dist/types/icons/settings.d.ts +1 -1
  131. package/dist/types/icons/share.d.ts +1 -1
  132. package/dist/types/icons/sidebar-left.d.ts +1 -1
  133. package/dist/types/icons/sidebar-right.d.ts +1 -1
  134. package/dist/types/icons/slack.d.ts +1 -1
  135. package/dist/types/icons/smartphone.d.ts +1 -1
  136. package/dist/types/icons/snapchat.d.ts +1 -1
  137. package/dist/types/icons/soundwave.d.ts +1 -1
  138. package/dist/types/icons/spinner-arc.d.ts +2 -2
  139. package/dist/types/icons/spinner-orbit.d.ts +1 -1
  140. package/dist/types/icons/spinner-pulse.d.ts +1 -1
  141. package/dist/types/icons/spinner-wave.d.ts +2 -2
  142. package/dist/types/icons/spinner.d.ts +1 -1
  143. package/dist/types/icons/square-pen.d.ts +2 -2
  144. package/dist/types/icons/star.d.ts +1 -1
  145. package/dist/types/icons/sticker.d.ts +1 -1
  146. package/dist/types/icons/stop.d.ts +1 -1
  147. package/dist/types/icons/sun.d.ts +1 -1
  148. package/dist/types/icons/supabase.d.ts +1 -1
  149. package/dist/types/icons/tablet.d.ts +1 -1
  150. package/dist/types/icons/telegram.d.ts +1 -1
  151. package/dist/types/icons/terminal.d.ts +1 -1
  152. package/dist/types/icons/threads.d.ts +1 -1
  153. package/dist/types/icons/tiktok.d.ts +1 -1
  154. package/dist/types/icons/trash.d.ts +1 -1
  155. package/dist/types/icons/twitter.d.ts +1 -1
  156. package/dist/types/icons/typescript.d.ts +2 -2
  157. package/dist/types/icons/undo.d.ts +1 -1
  158. package/dist/types/icons/unfold-less.d.ts +1 -1
  159. package/dist/types/icons/unfold-more.d.ts +1 -1
  160. package/dist/types/icons/user-add.d.ts +1 -0
  161. package/dist/types/icons/user-group.d.ts +1 -1
  162. package/dist/types/icons/user.d.ts +1 -1
  163. package/dist/types/icons/vercel.d.ts +1 -1
  164. package/dist/types/icons/verified-check.d.ts +1 -1
  165. package/dist/types/icons/video-camera.d.ts +2 -2
  166. package/dist/types/icons/volume-high.d.ts +2 -2
  167. package/dist/types/icons/volume-low.d.ts +2 -2
  168. package/dist/types/icons/volume-off.d.ts +2 -2
  169. package/dist/types/icons/wallet.d.ts +1 -0
  170. package/dist/types/icons/widget-add.d.ts +1 -1
  171. package/dist/types/icons/widget.d.ts +1 -1
  172. package/dist/types/icons/windsurf.d.ts +1 -1
  173. package/dist/types/icons/x.d.ts +1 -1
  174. package/dist/types/icons/xai.d.ts +1 -1
  175. package/dist/types/icons/youtube.d.ts +1 -1
  176. package/dist/types/icons/zai.d.ts +1 -1
  177. package/dist/types/icons/zoom-in.d.ts +2 -2
  178. package/dist/types/icons/zoom-out.d.ts +2 -2
  179. package/dist/types/index.d.ts +6 -6
  180. package/package.json +9 -9
package/MIGRATION.md CHANGED
@@ -10,47 +10,47 @@ All other renamed exports remain available as deprecated aliases. The catalog li
10
10
 
11
11
  ## Renamed exports
12
12
 
13
- | Previous export | Canonical export |
14
- | --- | --- |
15
- | `ArrowDown` | `ChevronDown` |
16
- | `ArrowDown02` | `ArrowDown` |
17
- | `ArrowDownDouble` | `ChevronsDown` |
18
- | `ArrowLeft` | `ChevronLeft` |
19
- | `ArrowLeft02` | `ArrowLeft` |
20
- | `ArrowLeftDouble` | `ChevronsLeft` |
21
- | `ArrowRight` | `ChevronRight` |
22
- | `ArrowRight02` | `ArrowRight` |
23
- | `ArrowRightDouble` | `ChevronsRight` |
24
- | `ArrowUp` | `ChevronUp` |
25
- | `ArrowUp02` | `ArrowUp` |
26
- | `ArrowUpDouble` | `ChevronsUp` |
27
- | `Branch` | `GitBranch` |
28
- | `Calendar03` | `Calendar` |
29
- | `CheckCheck` | `CheckDouble` |
30
- | `Danger` | `AlertTriangle` |
31
- | `Edit01` | `Edit` |
32
- | `Exit` | `DoorOpen` |
33
- | `FileRead` | `FileCheck` |
34
- | `Folder01` | `Folder` |
35
- | `Hamburger` | `Menu` |
36
- | `Headphone` | `Headphones` |
37
- | `Images` | `Image` |
38
- | `ImagesAdd` | `ImageAdd` |
39
- | `Insta` | `Instagram` |
40
- | `LockUnlock` | `LockOpen` |
41
- | `MergeConflict` | `GitMergeConflict` |
42
- | `MsCopilot` | `MicrosoftCopilot` |
43
- | `Muted` | `VolumeOff` |
44
- | `Pallet` | `Archive` |
45
- | `SearchMinus` | `ZoomOut` |
46
- | `SearchPlus` | `ZoomIn` |
47
- | `SendMessage` | `SquarePen` |
48
- | `SpinnerLarge` | `SpinnerArc` |
49
- | `SpinnerTinker` | `SpinnerWave` |
50
- | `Tool` | `Hammer` |
51
- | `Ts` | `Typescript` |
52
- | `Videocamera` | `VideoCamera` |
53
- | `Volume` | `VolumeLow` |
54
- | `VolumeLoud` | `VolumeHigh` |
13
+ | Previous export | Canonical export |
14
+ | ------------------ | ------------------ |
15
+ | `ArrowDown` | `ChevronDown` |
16
+ | `ArrowDown02` | `ArrowDown` |
17
+ | `ArrowDownDouble` | `ChevronsDown` |
18
+ | `ArrowLeft` | `ChevronLeft` |
19
+ | `ArrowLeft02` | `ArrowLeft` |
20
+ | `ArrowLeftDouble` | `ChevronsLeft` |
21
+ | `ArrowRight` | `ChevronRight` |
22
+ | `ArrowRight02` | `ArrowRight` |
23
+ | `ArrowRightDouble` | `ChevronsRight` |
24
+ | `ArrowUp` | `ChevronUp` |
25
+ | `ArrowUp02` | `ArrowUp` |
26
+ | `ArrowUpDouble` | `ChevronsUp` |
27
+ | `Branch` | `GitBranch` |
28
+ | `Calendar03` | `Calendar` |
29
+ | `CheckCheck` | `CheckDouble` |
30
+ | `Danger` | `AlertTriangle` |
31
+ | `Edit01` | `Edit` |
32
+ | `Exit` | `DoorOpen` |
33
+ | `FileRead` | `FileCheck` |
34
+ | `Folder01` | `Folder` |
35
+ | `Hamburger` | `Menu` |
36
+ | `Headphone` | `Headphones` |
37
+ | `Images` | `Image` |
38
+ | `ImagesAdd` | `ImageAdd` |
39
+ | `Insta` | `Instagram` |
40
+ | `LockUnlock` | `LockOpen` |
41
+ | `MergeConflict` | `GitMergeConflict` |
42
+ | `MsCopilot` | `MicrosoftCopilot` |
43
+ | `Muted` | `VolumeOff` |
44
+ | `Pallet` | `Archive` |
45
+ | `SearchMinus` | `ZoomOut` |
46
+ | `SearchPlus` | `ZoomIn` |
47
+ | `SendMessage` | `SquarePen` |
48
+ | `SpinnerLarge` | `SpinnerArc` |
49
+ | `SpinnerTinker` | `SpinnerWave` |
50
+ | `Tool` | `Hammer` |
51
+ | `Ts` | `Typescript` |
52
+ | `Videocamera` | `VideoCamera` |
53
+ | `Volume` | `VolumeLow` |
54
+ | `VolumeLoud` | `VolumeHigh` |
55
55
 
56
56
  SVG filenames follow the same mapping in kebab-case, for example `send-message.svg` becomes `square-pen.svg`.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  SVG icons for React with TypeScript support, a 24-unit grid, and theme-aware colors.
4
4
 
5
5
  ```sh
6
- npm install @honeyicons/react
6
+ pnpm add @honeyicons/react
7
7
  ```
8
8
 
9
9
  ```tsx
@@ -20,15 +20,46 @@ export function Toolbar() {
20
20
  ```
21
21
 
22
22
  Requires React 18 or later. Icons accept SVG props, `size` (default `24`),
23
- `color` (default `currentColor`), and `strokeWidth` (default `1.5`).
24
- Use `title` to give an icon an accessible name. Icons without a title are
25
- decorative by default.
23
+ `color` (default `currentColor`), and `strokeWidth` (default `1.8`).
24
+ Use `title`, `aria-label`, or `aria-labelledby` to give an icon an accessible
25
+ name. Icons without a name are decorative by default. Explicit `role` and
26
+ `aria-hidden` props override these defaults.
27
+
28
+ For an icon-only button, put the accessible name on the button:
29
+
30
+ ```tsx
31
+ import { Bell } from "@honeyicons/react";
32
+
33
+ export function NotificationsButton() {
34
+ return (
35
+ <button type="button" aria-label="Notifications">
36
+ <Bell size={20} />
37
+ </button>
38
+ );
39
+ }
40
+ ```
41
+
42
+ Use `className` and `style` for styling, and `size` for both dimensions (numbers
43
+ or CSS lengths such as `"1em"`). Icons inherit the surrounding text color and
44
+ forward `ref` to the SVG element. Standard SVG props, event handlers, and
45
+ children such as `<desc>` are supported.
26
46
 
27
47
  Linear is the default variant. Selected icons also support other variants;
28
48
  check the component's `variants` property before choosing one. Stroke width
29
49
  affects stroked geometry; filled outlines retain their original geometry.
50
+ Unsupported variants fall back to linear.
51
+
52
+ Catalog data is available as the named `catalog` export from
53
+ `@honeyicons/react/catalog`. For reusable components, import the `HoneyIcon`
54
+ and `HoneyIconProps` types from `@honeyicons/react`.
55
+
56
+ The published package contains ESM JavaScript and TypeScript declarations.
57
+ Named icon imports support tree shaking; importing the catalog includes the
58
+ full collection.
30
59
 
31
- Catalog data is available from `@honeyicons/react/catalog`.
60
+ To build or package from this repository, run `bun run build` or `bun pm pack`
61
+ inside `packages/react`. Packing builds the package automatically. The web app
62
+ and shared UI resolve the source through TypeScript paths during development.
32
63
 
33
64
  See [NOTICE.md](./NOTICE.md) for third-party icon licenses and attribution,
34
65
  and [MIGRATION.md](./MIGRATION.md) for renamed exports.