diff --git a/README.md b/README.md index 8e98e65..269a896 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ import '@fishies/ui/kit.css' // the components import { Button, Panel, configureIcons } from '@fishies/ui' // The icons ship in this package under icons/. Serve that folder, or point at a CDN copy: -configureIcons({ url: icon => `https://cdn.jsdelivr.net/npm/@fishies/ui@0.8.1/icons/${icon.name}.png` }) +configureIcons({ url: icon => `https://cdn.jsdelivr.net/npm/@fishies/ui@0.8.2/icons/${icon.name}.png` }) export function Shop() { return @@ -57,4 +57,4 @@ stylesheet that does, and every component animates with them; leave them out and | `icons/` | the painted icon set, one PNG per name, each twice its largest display size | | `handbook/` | the Fishies Handbook as Markdown | -Version 0.8.1: the minor version follows the Fishies release it was taken from; a patch is a fix to the kit itself. +Version 0.8.2: the minor version follows the Fishies release it was taken from; a patch is a fix to the kit itself. diff --git a/icons/add.png b/icons/add.png new file mode 100644 index 0000000..e4985ef Binary files /dev/null and b/icons/add.png differ diff --git a/icons/block.png b/icons/block.png new file mode 100644 index 0000000..c9288a5 Binary files /dev/null and b/icons/block.png differ diff --git a/icons/check.png b/icons/check.png new file mode 100644 index 0000000..bab20d2 Binary files /dev/null and b/icons/check.png differ diff --git a/icons/clock.png b/icons/clock.png new file mode 100644 index 0000000..413a0a7 Binary files /dev/null and b/icons/clock.png differ diff --git a/icons/download.png b/icons/download.png new file mode 100644 index 0000000..bb23bca Binary files /dev/null and b/icons/download.png differ diff --git a/icons/drop.png b/icons/drop.png new file mode 100644 index 0000000..9d58463 Binary files /dev/null and b/icons/drop.png differ diff --git a/icons/exit.png b/icons/exit.png new file mode 100644 index 0000000..b90a180 Binary files /dev/null and b/icons/exit.png differ diff --git a/icons/external.png b/icons/external.png new file mode 100644 index 0000000..40960b2 Binary files /dev/null and b/icons/external.png differ diff --git a/icons/gem.png b/icons/gem.png new file mode 100644 index 0000000..e0b6926 Binary files /dev/null and b/icons/gem.png differ diff --git a/icons/gift.png b/icons/gift.png new file mode 100644 index 0000000..ec9cfde Binary files /dev/null and b/icons/gift.png differ diff --git a/icons/globe.png b/icons/globe.png new file mode 100644 index 0000000..d8809aa Binary files /dev/null and b/icons/globe.png differ diff --git a/icons/keeper.png b/icons/keeper.png new file mode 100644 index 0000000..1e942a0 Binary files /dev/null and b/icons/keeper.png differ diff --git a/icons/keyboard.png b/icons/keyboard.png new file mode 100644 index 0000000..f1fcbe5 Binary files /dev/null and b/icons/keyboard.png differ diff --git a/icons/level.png b/icons/level.png new file mode 100644 index 0000000..b5d7814 Binary files /dev/null and b/icons/level.png differ diff --git a/icons/link.png b/icons/link.png new file mode 100644 index 0000000..42af605 Binary files /dev/null and b/icons/link.png differ diff --git a/icons/mail.png b/icons/mail.png new file mode 100644 index 0000000..4a0943a Binary files /dev/null and b/icons/mail.png differ diff --git a/icons/quest.png b/icons/quest.png new file mode 100644 index 0000000..ebef7e3 Binary files /dev/null and b/icons/quest.png differ diff --git a/icons/quote.png b/icons/quote.png new file mode 100644 index 0000000..b2b9686 Binary files /dev/null and b/icons/quote.png differ diff --git a/icons/reply.png b/icons/reply.png new file mode 100644 index 0000000..64187f6 Binary files /dev/null and b/icons/reply.png differ diff --git a/icons/search.png b/icons/search.png new file mode 100644 index 0000000..5d89abe Binary files /dev/null and b/icons/search.png differ diff --git a/icons/sell.png b/icons/sell.png new file mode 100644 index 0000000..0ddc55f Binary files /dev/null and b/icons/sell.png differ diff --git a/icons/send.png b/icons/send.png new file mode 100644 index 0000000..cbf256f Binary files /dev/null and b/icons/send.png differ diff --git a/icons/showcase.png b/icons/showcase.png new file mode 100644 index 0000000..bdc1dab Binary files /dev/null and b/icons/showcase.png differ diff --git a/icons/smile.png b/icons/smile.png new file mode 100644 index 0000000..6d1e8a3 Binary files /dev/null and b/icons/smile.png differ diff --git a/icons/tank.png b/icons/tank.png new file mode 100644 index 0000000..5f00b05 Binary files /dev/null and b/icons/tank.png differ diff --git a/icons/thermometer.png b/icons/thermometer.png new file mode 100644 index 0000000..a3b760d Binary files /dev/null and b/icons/thermometer.png differ diff --git a/icons/trash.png b/icons/trash.png new file mode 100644 index 0000000..7104276 Binary files /dev/null and b/icons/trash.png differ diff --git a/icons/trophy.png b/icons/trophy.png new file mode 100644 index 0000000..5a46f6a Binary files /dev/null and b/icons/trophy.png differ diff --git a/icons/warning.png b/icons/warning.png new file mode 100644 index 0000000..97c18f3 Binary files /dev/null and b/icons/warning.png differ diff --git a/icons/wave.png b/icons/wave.png new file mode 100644 index 0000000..68bca91 Binary files /dev/null and b/icons/wave.png differ diff --git a/icons/whisper.png b/icons/whisper.png new file mode 100644 index 0000000..8b9295b Binary files /dev/null and b/icons/whisper.png differ diff --git a/package.json b/package.json index e95c10e..16a3009 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fishies/ui", - "version": "0.8.1", + "version": "0.8.2", "description": "The Fishies UI kit: reef-toy components, design tokens and the painted system icon set from the social aquarium game Fishies.", "keywords": [ "fishies", diff --git a/src/Select.tsx b/src/Select.tsx index 1106017..c230aa9 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -1,5 +1,6 @@ 'use client' +import { SystemIcon } from './kit' import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react' import { createPortal } from 'react-dom' import { placePopup, selectedIndex, selectKey } from './select-state' @@ -115,7 +116,7 @@ export default function Select({ value, onChange, options, disabled, name, class onClick={() => { if (option.disabled) return; close(true); choose(option.value) }}> {option.icon && } {option.label} - {option.value === value && } + {option.value === value && } )} , document.body)} diff --git a/src/icons.generated.ts b/src/icons.generated.ts index 34341c3..e222f43 100644 --- a/src/icons.generated.ts +++ b/src/icons.generated.ts @@ -56,7 +56,8 @@ export const ICON_FACTS: Readonly ({ n export const SYSTEM_ICONS = [ ui('feed', 'Feed', 'care', 'give fish food'), ui('net', 'Net', 'care', 'catch a fish to sell or move'), ui('clean', 'Clean', 'care', 'wipe the glass'), ui('decorate', 'Decorate', 'care', 'place a new decoration'), ui('arrange', 'Arrange', 'care', 'move what is already placed'), - ui('remedy', 'Remedy', 'care', 'heal a sick fish'), ui('inspect', 'Inspect', 'care', 'look closer, search'), + ui('remedy', 'Remedy', 'care', 'heal a sick fish'), ui('inspect', 'Inspect', 'care', 'look closer at a fish'), ui('home', 'Home', 'places', 'your own aquarium'), ui('explore', 'Explore', 'places', 'find other keepers'), ui('map', 'Map', 'places', 'the ocean map and its places'), ui('shop', 'Shop', 'places', 'buy fish, decor and care'), ui('cart', 'Cart', 'places', 'open the basket'), ui('cart-add', 'Add to cart', 'places', 'put something in the basket'), ui('inventory', 'Stash', 'places', 'what you own but have not placed'), ui('book', 'Book', 'places', 'the Reef Journal and guides'), @@ -50,6 +50,22 @@ export const SYSTEM_ICONS = [ ui('chat', 'Chat', 'places', 'a conversation, replies, general talk'), ui('announce', 'Announcements', 'places', 'news from the team'), ui('updates', 'Updates', 'places', 'patch notes and what changed'), ui('bug', 'Bugs', 'places', 'something broken'), ui('idea', 'Ideas', 'places', 'a suggestion'), + // Wave 2, painted 2 October 2026 (tools/ui_icons.py; meanings from the 1 October icon audit). + ui('reply', 'Reply', 'system', 'answer this'), ui('quote', 'Quote', 'system', "repeat someone's words in yours"), + ui('clock', 'Time', 'system', 'when, how long, last activity, away'), ui('showcase', 'Showcase', 'places', 'show what you made'), + ui('tank', 'Aquarium', 'things', 'an aquarium you own or buy'), ui('block', 'Block', 'system', 'block a keeper, ban'), + ui('trash', 'Remove', 'system', 'remove, delete'), ui('link', 'Link', 'system', 'copy or open a link'), + ui('smile', 'Emoji', 'system', 'pick an emoji'), ui('send', 'Send', 'system', 'send a message or post'), + ui('whisper', 'Whisper', 'places', 'a private message'), ui('wave', 'Open water', 'places', 'open water, the reef lane'), + ui('thermometer', 'Temperature', 'care', 'water temperature, the heater'), ui('drop', 'Water', 'care', 'water quality'), + ui('warning', 'Warning', 'system', 'warning, danger'), ui('gift', 'Gift', 'things', 'gifts, something given'), + ui('gem', 'Grade', 'things', 'quality tier, grade'), ui('trophy', 'Trophy', 'things', 'achievements, badges'), + ui('level', 'Level', 'things', 'level, XP, level-up'), ui('quest', 'Quest', 'things', 'a quest, a goal'), + ui('check', 'Done', 'system', 'done, selected, met'), ui('keeper', 'Keeper', 'places', 'an account, a person'), + ui('exit', 'Leave', 'system', 'sign out, quit, leave'), ui('globe', 'Language', 'system', 'language, all languages'), + ui('search', 'Search', 'system', 'search'), ui('sell', 'Sell', 'care', 'sell, a price'), + ui('keyboard', 'Keys', 'system', 'shortcuts and keys'), ui('external', 'Opens elsewhere', 'system', 'opens in a new tab'), + ui('add', 'New', 'system', 'new, create'), ui('download', 'Download', 'system', 'download'), ui('mail', 'Mail', 'system', 'email, the newsletter'), emote('hello', 'Hello', 'wave hello'), emote('heart', 'Love', 'send love'), emote('question', 'Question', 'wonder aloud'), emote('surprise', 'Surprise', 'be surprised'), emote('food', 'Food', 'ask for food'), emote('sleep', 'Sleepy', 'feel sleepy'), emote('music', 'Music', 'enjoy the music'), emote('sparkle', 'Sparkle', 'something wonderful'), ] as const satisfies readonly SystemIcon[]