@honeyicons/react 0.0.1 → 0.0.2
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/MIGRATION.md +42 -42
- package/README.md +34 -3
- package/dist/catalog.js +271 -168
- package/dist/index.js +229 -168
- package/dist/types/catalog.d.ts +5 -5
- package/dist/types/create-icon.d.ts +2 -2
- package/dist/types/icon.d.ts +1 -1
- package/dist/types/icons/add.d.ts +1 -1
- package/dist/types/icons/alert-triangle.d.ts +2 -2
- package/dist/types/icons/align-center.d.ts +1 -1
- package/dist/types/icons/align-left.d.ts +1 -1
- package/dist/types/icons/align-right.d.ts +1 -1
- package/dist/types/icons/anthropic.d.ts +1 -1
- package/dist/types/icons/antigravity.d.ts +1 -1
- package/dist/types/icons/archive.d.ts +2 -2
- package/dist/types/icons/arrow-down-left.d.ts +1 -1
- package/dist/types/icons/arrow-down-right.d.ts +1 -1
- package/dist/types/icons/arrow-down.d.ts +2 -2
- package/dist/types/icons/arrow-left.d.ts +2 -2
- package/dist/types/icons/arrow-right.d.ts +2 -2
- package/dist/types/icons/arrow-up-left.d.ts +1 -1
- package/dist/types/icons/arrow-up-right.d.ts +1 -1
- package/dist/types/icons/arrow-up.d.ts +2 -2
- package/dist/types/icons/bell.d.ts +1 -1
- package/dist/types/icons/bookmark.d.ts +1 -1
- package/dist/types/icons/brain.d.ts +1 -1
- package/dist/types/icons/bun.d.ts +1 -1
- package/dist/types/icons/calendar.d.ts +2 -2
- package/dist/types/icons/card.d.ts +1 -0
- package/dist/types/icons/cart.d.ts +1 -1
- package/dist/types/icons/check-double.d.ts +2 -2
- package/dist/types/icons/check.d.ts +1 -1
- package/dist/types/icons/chevron-down.d.ts +1 -1
- package/dist/types/icons/chevron-left.d.ts +1 -1
- package/dist/types/icons/chevron-right.d.ts +1 -1
- package/dist/types/icons/chevron-up.d.ts +1 -1
- package/dist/types/icons/chevrons-down.d.ts +2 -2
- package/dist/types/icons/chevrons-left.d.ts +2 -2
- package/dist/types/icons/chevrons-right.d.ts +2 -2
- package/dist/types/icons/chevrons-up.d.ts +2 -2
- package/dist/types/icons/chrome.d.ts +1 -1
- package/dist/types/icons/clapperboard.d.ts +1 -1
- package/dist/types/icons/claude-ai.d.ts +1 -1
- package/dist/types/icons/claude-code.d.ts +1 -1
- package/dist/types/icons/clock.d.ts +1 -0
- package/dist/types/icons/close.d.ts +1 -1
- package/dist/types/icons/cloud.d.ts +1 -1
- package/dist/types/icons/code.d.ts +1 -1
- package/dist/types/icons/codex.d.ts +1 -1
- package/dist/types/icons/command.d.ts +1 -1
- package/dist/types/icons/computer.d.ts +1 -1
- package/dist/types/icons/copy.d.ts +1 -1
- package/dist/types/icons/cursor.d.ts +1 -1
- package/dist/types/icons/deepseek.d.ts +1 -1
- package/dist/types/icons/devin.d.ts +1 -1
- package/dist/types/icons/discord.d.ts +1 -1
- package/dist/types/icons/dislike.d.ts +1 -1
- package/dist/types/icons/door-open.d.ts +2 -2
- package/dist/types/icons/edit-off.d.ts +1 -1
- package/dist/types/icons/edit.d.ts +2 -2
- package/dist/types/icons/email.d.ts +1 -1
- package/dist/types/icons/facebook.d.ts +1 -1
- package/dist/types/icons/file-add.d.ts +1 -0
- package/dist/types/icons/file-check.d.ts +2 -2
- package/dist/types/icons/file-code.d.ts +1 -1
- package/dist/types/icons/file-remove.d.ts +1 -1
- package/dist/types/icons/file.d.ts +1 -1
- package/dist/types/icons/folder-add.d.ts +1 -1
- package/dist/types/icons/folder-open.d.ts +1 -1
- package/dist/types/icons/folder.d.ts +2 -2
- package/dist/types/icons/gemini.d.ts +1 -1
- package/dist/types/icons/git-branch.d.ts +2 -2
- package/dist/types/icons/git-merge-conflict.d.ts +2 -2
- package/dist/types/icons/git-pull-request.d.ts +1 -1
- package/dist/types/icons/git.d.ts +1 -1
- package/dist/types/icons/github-copilot.d.ts +1 -1
- package/dist/types/icons/github.d.ts +1 -1
- package/dist/types/icons/google.d.ts +1 -1
- package/dist/types/icons/grok.d.ts +1 -1
- package/dist/types/icons/hammer.d.ts +2 -2
- package/dist/types/icons/hashtag.d.ts +1 -1
- package/dist/types/icons/headphones.d.ts +2 -2
- package/dist/types/icons/home.d.ts +1 -1
- package/dist/types/icons/image-add.d.ts +2 -2
- package/dist/types/icons/image.d.ts +2 -2
- package/dist/types/icons/index.d.ts +170 -164
- package/dist/types/icons/instagram.d.ts +2 -2
- package/dist/types/icons/integration.d.ts +1 -1
- package/dist/types/icons/key.d.ts +1 -0
- package/dist/types/icons/kimi.d.ts +1 -1
- package/dist/types/icons/layers.d.ts +1 -1
- package/dist/types/icons/lightning.d.ts +1 -1
- package/dist/types/icons/like.d.ts +1 -1
- package/dist/types/icons/linkedin.d.ts +1 -1
- package/dist/types/icons/list-down.d.ts +1 -1
- package/dist/types/icons/list-up.d.ts +1 -1
- package/dist/types/icons/lock-open.d.ts +2 -2
- package/dist/types/icons/lock.d.ts +1 -1
- package/dist/types/icons/logout.d.ts +1 -1
- package/dist/types/icons/maximize.d.ts +1 -1
- package/dist/types/icons/menu.d.ts +2 -2
- package/dist/types/icons/meta-ai.d.ts +1 -1
- package/dist/types/icons/microphone.d.ts +1 -1
- package/dist/types/icons/microsoft-copilot.d.ts +2 -2
- package/dist/types/icons/minimize.d.ts +1 -1
- package/dist/types/icons/minus.d.ts +1 -1
- package/dist/types/icons/mistral.d.ts +1 -1
- package/dist/types/icons/moon.d.ts +1 -1
- package/dist/types/icons/more-horizontal.d.ts +1 -1
- package/dist/types/icons/more-vertical.d.ts +1 -1
- package/dist/types/icons/npm.d.ts +1 -1
- package/dist/types/icons/nvidia.d.ts +1 -1
- package/dist/types/icons/openai.d.ts +1 -1
- package/dist/types/icons/openclaw.d.ts +1 -1
- package/dist/types/icons/opencode.d.ts +1 -1
- package/dist/types/icons/paper-plane.d.ts +1 -1
- package/dist/types/icons/paperclip.d.ts +1 -1
- package/dist/types/icons/pen.d.ts +1 -1
- package/dist/types/icons/perplexity.d.ts +1 -1
- package/dist/types/icons/pin.d.ts +1 -1
- package/dist/types/icons/pinterest.d.ts +1 -1
- package/dist/types/icons/play.d.ts +1 -1
- package/dist/types/icons/qwen.d.ts +1 -1
- package/dist/types/icons/react.d.ts +1 -1
- package/dist/types/icons/reddit.d.ts +1 -1
- package/dist/types/icons/redo.d.ts +1 -1
- package/dist/types/icons/reorder.d.ts +1 -1
- package/dist/types/icons/repeat.d.ts +1 -1
- package/dist/types/icons/search.d.ts +1 -1
- package/dist/types/icons/settings.d.ts +1 -1
- package/dist/types/icons/share.d.ts +1 -1
- package/dist/types/icons/sidebar-left.d.ts +1 -1
- package/dist/types/icons/sidebar-right.d.ts +1 -1
- package/dist/types/icons/slack.d.ts +1 -1
- package/dist/types/icons/smartphone.d.ts +1 -1
- package/dist/types/icons/snapchat.d.ts +1 -1
- package/dist/types/icons/soundwave.d.ts +1 -1
- package/dist/types/icons/spinner-arc.d.ts +2 -2
- package/dist/types/icons/spinner-orbit.d.ts +1 -1
- package/dist/types/icons/spinner-pulse.d.ts +1 -1
- package/dist/types/icons/spinner-wave.d.ts +2 -2
- package/dist/types/icons/spinner.d.ts +1 -1
- package/dist/types/icons/square-pen.d.ts +2 -2
- package/dist/types/icons/star.d.ts +1 -1
- package/dist/types/icons/sticker.d.ts +1 -1
- package/dist/types/icons/stop.d.ts +1 -1
- package/dist/types/icons/sun.d.ts +1 -1
- package/dist/types/icons/supabase.d.ts +1 -1
- package/dist/types/icons/tablet.d.ts +1 -1
- package/dist/types/icons/telegram.d.ts +1 -1
- package/dist/types/icons/terminal.d.ts +1 -1
- package/dist/types/icons/threads.d.ts +1 -1
- package/dist/types/icons/tiktok.d.ts +1 -1
- package/dist/types/icons/trash.d.ts +1 -1
- package/dist/types/icons/twitter.d.ts +1 -1
- package/dist/types/icons/typescript.d.ts +2 -2
- package/dist/types/icons/undo.d.ts +1 -1
- package/dist/types/icons/unfold-less.d.ts +1 -1
- package/dist/types/icons/unfold-more.d.ts +1 -1
- package/dist/types/icons/user-add.d.ts +1 -0
- package/dist/types/icons/user-group.d.ts +1 -1
- package/dist/types/icons/user.d.ts +1 -1
- package/dist/types/icons/vercel.d.ts +1 -1
- package/dist/types/icons/verified-check.d.ts +1 -1
- package/dist/types/icons/video-camera.d.ts +2 -2
- package/dist/types/icons/volume-high.d.ts +2 -2
- package/dist/types/icons/volume-low.d.ts +2 -2
- package/dist/types/icons/volume-off.d.ts +2 -2
- package/dist/types/icons/wallet.d.ts +1 -0
- package/dist/types/icons/widget-add.d.ts +1 -1
- package/dist/types/icons/widget.d.ts +1 -1
- package/dist/types/icons/windsurf.d.ts +1 -1
- package/dist/types/icons/x.d.ts +1 -1
- package/dist/types/icons/xai.d.ts +1 -1
- package/dist/types/icons/youtube.d.ts +1 -1
- package/dist/types/icons/zai.d.ts +1 -1
- package/dist/types/icons/zoom-in.d.ts +2 -2
- package/dist/types/icons/zoom-out.d.ts +2 -2
- package/dist/types/index.d.ts +6 -6
- 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
|
|
14
|
-
|
|
|
15
|
-
| `ArrowDown`
|
|
16
|
-
| `ArrowDown02`
|
|
17
|
-
| `ArrowDownDouble`
|
|
18
|
-
| `ArrowLeft`
|
|
19
|
-
| `ArrowLeft02`
|
|
20
|
-
| `ArrowLeftDouble`
|
|
21
|
-
| `ArrowRight`
|
|
22
|
-
| `ArrowRight02`
|
|
23
|
-
| `ArrowRightDouble` | `ChevronsRight`
|
|
24
|
-
| `ArrowUp`
|
|
25
|
-
| `ArrowUp02`
|
|
26
|
-
| `ArrowUpDouble`
|
|
27
|
-
| `Branch`
|
|
28
|
-
| `Calendar03`
|
|
29
|
-
| `CheckCheck`
|
|
30
|
-
| `Danger`
|
|
31
|
-
| `Edit01`
|
|
32
|
-
| `Exit`
|
|
33
|
-
| `FileRead`
|
|
34
|
-
| `Folder01`
|
|
35
|
-
| `Hamburger`
|
|
36
|
-
| `Headphone`
|
|
37
|
-
| `Images`
|
|
38
|
-
| `ImagesAdd`
|
|
39
|
-
| `Insta`
|
|
40
|
-
| `LockUnlock`
|
|
41
|
-
| `MergeConflict`
|
|
42
|
-
| `MsCopilot`
|
|
43
|
-
| `Muted`
|
|
44
|
-
| `Pallet`
|
|
45
|
-
| `SearchMinus`
|
|
46
|
-
| `SearchPlus`
|
|
47
|
-
| `SendMessage`
|
|
48
|
-
| `SpinnerLarge`
|
|
49
|
-
| `SpinnerTinker`
|
|
50
|
-
| `Tool`
|
|
51
|
-
| `Ts`
|
|
52
|
-
| `Videocamera`
|
|
53
|
-
| `Volume`
|
|
54
|
-
| `VolumeLoud`
|
|
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
|
@@ -21,14 +21,45 @@ export function Toolbar() {
|
|
|
21
21
|
|
|
22
22
|
Requires React 18 or later. Icons accept SVG props, `size` (default `24`),
|
|
23
23
|
`color` (default `currentColor`), and `strokeWidth` (default `1.5`).
|
|
24
|
-
Use `title` to give an icon an accessible
|
|
25
|
-
decorative by default.
|
|
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
|
-
|
|
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.
|