@clicktap/ui 1.0.0 → 1.0.1
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Password reveal is a toggle again, not press-and-hold
|
|
2
2
|
|
|
3
3
|
**Date:** 2026-08-11
|
|
4
|
+
**Revised:** 2026-08-11 — consumer action now says to rename a component named for the press-and-hold
|
|
5
|
+
gesture (family-rpg's `HoldToRevealButton`), not only to swap its handlers.
|
|
4
6
|
**Package:** `@clicktap/ui`
|
|
5
7
|
**Affects:** `@clicktap/ui` — `Input` with `type="password"`.
|
|
6
8
|
**Classification:** IMPROVEMENT (UX / accessibility)
|
|
@@ -66,6 +68,11 @@ Shipped in `@clicktap/ui` **0.43.6**.
|
|
|
66
68
|
- **Rolled your own password reveal:** swap the pointer handlers back for the `onClick` toggle above,
|
|
67
69
|
and add `aria-pressed` + the state-dependent `aria-label` while you are in there. The reference
|
|
68
70
|
frontend also updated its one bespoke reveal (`UpdateEmailForm`) to match.
|
|
71
|
+
- **Rename the component if its name describes the gesture.** If you named it for press-and-hold
|
|
72
|
+
when you applied CTAP-1128 — family-rpg had `HoldToRevealButton` (2026-08-11) — the name now
|
|
73
|
+
documents behaviour the code no longer implements, in the one place nobody re-reads. Rename it
|
|
74
|
+
(`PasswordRevealButton`, `ShowPasswordToggle`) in the same change as the handler swap, and grep
|
|
75
|
+
for the old name in tests and stories.
|
|
69
76
|
- **Applied the CTAP-1128 guide:** this reverses it. Nothing to un-install beyond the handler swap.
|
|
70
77
|
|
|
71
78
|
## Verify
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clicktap/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Clicktap",
|
|
6
6
|
"description": "A library of React UI components and low-level hooks.",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
"graphql-request": "^6.1.0",
|
|
121
121
|
"next": "14.2.35",
|
|
122
122
|
"react": "18.3.1",
|
|
123
|
-
"react-aria": "
|
|
124
|
-
"react-aria-components": "
|
|
123
|
+
"react-aria": "3.46.0",
|
|
124
|
+
"react-aria-components": "1.15.1",
|
|
125
125
|
"react-hook-form": "^7.71.1",
|
|
126
126
|
"react-international-phone": "^4.7.0",
|
|
127
127
|
"react-stately": "3.44.0",
|