aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/icon.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-20 16:35:46 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-20 16:35:55 +0200
commitbe50f1442148c21cabf039abdcae5fe20bc690e8 (patch)
tree28a7cb040d9a34dd242c05013179c1829048050e /packages/meshbay-hub/src/meshbay_hub/static/icon.js
parent2203618c8202bd95302215d7220f2de05fe12e48 (diff)
downloadmeshbay-be50f1442148c21cabf039abdcae5fe20bc690e8.tar.gz
feat(hub): reveal button in the sign-in and registration passphrase fields
One PasswordInput for all three fields, with an eye toggle inside the box. Out of the tab order, type="button" so a click cannot submit the form. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/icon.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/icon.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/icon.js b/packages/meshbay-hub/src/meshbay_hub/static/icon.js
index 94a82fb..c80258c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/icon.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/icon.js
@@ -29,6 +29,12 @@ const ICON_PATHS = {
play: ['M8 5.5v13l11-6.5z'],
eye: ['M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12',
'M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'],
+ // The same eye under a stroke. Drawn as `eye` plus the slash rather than as
+ // a broken lid, so the two states of a reveal button are the same glyph and
+ // the toggle reads as one control.
+ eyeoff: ['M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12',
+ 'M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5',
+ 'M4 4l16 16'],
trash: ['M4 7h16', 'M10 11v6M14 11v6',
'M6 7l1 12.5A1.5 1.5 0 0 0 8.5 21h7a1.5 1.5 0 0 0 1.5-1.5L18 7',
'M9.5 7V5a1.5 1.5 0 0 1 1.5-1.5h2A1.5 1.5 0 0 1 14.5 5v2'],