@clicktap/ui 2.4.3 → 2.4.4

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 +1 @@
1
- "use client";import{jsxs as o,jsx as e}from"react/jsx-runtime";import{cn as n}from"../../utils/cn.js";function c({className:t,size:r=16}){return o("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("text-ffl-gray-500 flex-shrink-0",t),stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}export{c as UserIcon,c as default};
1
+ "use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{cn as n}from"../../utils/cn.js";function c({className:o,size:r=16}){return t("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("flex-shrink-0",o),stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e("circle",{cx:"12",cy:"7",r:"4"})]})}export{c as UserIcon,c as default};
@@ -13,7 +13,7 @@ import { ModalOverlayProps } from './ModalOverlay.types';
13
13
  * @clicktap/ui copies installed (ordinary pnpm version skew) the trigger wrote `visible` into one
14
14
  * copy while the overlay read the other's `unmounted` default — `animate="unmounted"` names no
15
15
  * variant, framer-motion holds `initial: "hidden"`, and every trigger-driven modal sat mounted at
16
- * `opacity: 0` with zero errors (CTAP-1210, noco). react-aria's context is the safe dependency:
16
+ * `opacity: 0` with zero errors (CTAP-1210, found by a consumer). react-aria's context is the safe dependency:
17
17
  * if react-aria-components itself is duplicated, everything breaks loudly.
18
18
  *
19
19
  * Exported for unit tests only.
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Date:** 2026-06-17
4
4
  **Package:** `@clicktap/ui`
5
- **Affects:** Any app consuming `@clicktap/ui`'s `Select` / `DropdownSelect` (Crispi, FFL, and any fork that renders pickers, sort controls, country/region selects, or configurable-product options).
5
+ **Affects:** Any app consuming `@clicktap/ui`'s `Select` / `DropdownSelect` (downstream projects and any fork that renders pickers, sort controls, country/region selects, or configurable-product options).
6
6
  **Classification:** FEATURE + BREAKING
7
7
  **Breaking:** Yes — (1) `DropdownSelect` removed, (2) the bare `<Select>` is now a **button picker**, not a combobox, (3) `DropdownSelect`'s `classNames.trigger` is now `classNames.input`, (4) the root is `w-full` by default, (5) `<Option>` is react-stately's `Item` — keyed by `key` (no `id`) and **cannot be wrapped**.
8
8
  **Formerly named:** `2026-06-17-select-standardization.md` — renamed 2026-08-10 (CTAP-1214) for global filename uniqueness; library guides carry their package slug so they can never collide with an app-level guide in a consumer's aggregated working set. **If you carry a `-applied` sibling under the old name, rename it to match — do NOT re-apply.**
@@ -1,7 +1,7 @@
1
1
  # `@clicktap/ui` resolves its deep subpaths under `moduleResolution: bundler` (CTAP-1060)
2
2
 
3
3
  **Date:** 2026-07-31
4
- **Revised:** 2026-08-08 — the test-runner half (CTAP-1195): every runtime subpath entry gains a `default` condition, so CJS resolvers (Jest) stop falling through to the `.d.ts`. See "Test runners (Jest)" below; reported by noco.
4
+ **Revised:** 2026-08-08 — the test-runner half (CTAP-1195): every runtime subpath entry gains a `default` condition, so CJS resolvers (Jest) stop falling through to the `.d.ts`. See "Test runners (Jest)" below; reported by a consumer.
5
5
  **Package:** `@clicktap/ui`
6
6
  **Breaking:** No — additive to the `exports` map. Existing `moduleResolution: node` / `node10`
7
7
  consumers are unaffected (that resolver ignores `exports`); this only *adds* working resolution under
@@ -50,7 +50,7 @@ emits only `.d.ts` for it).
50
50
  The original map declared only `types` + `import` conditions. That covers bundlers — but **Node CJS
51
51
  resolution** (what Jest uses without ESM flags) matches neither, so it fell through to the `.d.ts`
52
52
  and died on `export interface`. Any consumer whose Jest suite touches `useCooldown` (i.e. anyone
53
- adopting the CTAP-1114 `useResendCode` pattern *with* its tests) hit this; noco worked around it with
53
+ adopting the CTAP-1114 `useResendCode` pattern *with* its tests) hit this; one consumer worked around it with
54
54
  a `moduleNameMapper` straight to the `.js` files.
55
55
 
56
56
  Since this revision every runtime subpath entry carries a **`default` condition (last)** pointing at
@@ -12,7 +12,7 @@
12
12
  CTAP-1158 validated every publishable lib manifest against its real imports. For `@clicktap/ui`
13
13
  that audit changed the peer contract and corrected a wrong dependency pin, but no guide shipped
14
14
  with it — consumers would meet the changes as unexplained manifest churn on the next release
15
- (reported by family-rpg, 2026-08-07). This is that guide.
15
+ (reported by a consumer, 2026-08-07). This is that guide.
16
16
 
17
17
  ## What changed
18
18
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Date:** 2026-08-11
4
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.
5
+ gesture (for example a `HoldToRevealButton`), not only to swap its handlers.
6
6
  **Package:** `@clicktap/ui`
7
7
  **Affects:** `@clicktap/ui` — `Input` with `type="password"`.
8
8
  **Classification:** IMPROVEMENT (UX / accessibility)
@@ -69,7 +69,7 @@ Shipped in `@clicktap/ui` **0.43.6**.
69
69
  and add `aria-pressed` + the state-dependent `aria-label` while you are in there. The reference
70
70
  frontend also updated its one bespoke reveal (`UpdateEmailForm`) to match.
71
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
72
+ when you applied CTAP-1128 — one consumer had `HoldToRevealButton` (2026-08-11) — the name now
73
73
  documents behaviour the code no longer implements, in the one place nobody re-reads. Rename it
74
74
  (`PasswordRevealButton`, `ShowPasswordToggle`) in the same change as the handler swap, and grep
75
75
  for the old name in tests and stories.
@@ -57,7 +57,7 @@ rather than as an error.
57
57
  ### When the duplicate is transitive — nothing of yours to pin
58
58
 
59
59
  The paragraph above assumes the second copy comes from a declaration you own. Often it does not:
60
- crispi resolves `react-stately` 3.49.0 cleanly across every workspace member and still carries a
60
+ one consumer resolves `react-stately` 3.49.0 cleanly across every workspace member and still carries a
61
61
  second copy at 3.46.0, arriving via `@adobe/react-spectrum` → `react-aria-components`. No manifest of
62
62
  theirs names it, so there is no pin to correct.
63
63
 
@@ -4,7 +4,7 @@
4
4
  **Package:** `@clicktap/ui`
5
5
  **Affects:** every controlled or default-expanded `Accordion` — checkout payment method selection, checkout's `defaultExpandedKeys={['cart']}`, totals/discount panel, PDP mobile overview, filter groups.
6
6
  **Classification:** BUGFIX
7
- **Breaking:** No — unless you shipped a workaround that pre-prefixes keys (see crispi note).
7
+ **Breaking:** No — unless you shipped a workaround that pre-prefixes keys (see the shim note below).
8
8
  **Ticket:** CTAP-1404
9
9
 
10
10
  ## The defect (2.0.x regression from the CTAP-1383 react-aria rewrite)
@@ -17,11 +17,11 @@ were only `String()`ed, so:
17
17
  1. `selectedKeys` / `defaultSelectedKeys` / `defaultExpandedKeys` never matched
18
18
  any item — nothing opened, nothing highlighted. The checkout payment step's
19
19
  method selection "not working" was this.
20
- 2. `onSelectionChange` handed the PREFIXED id back out — crispi's checkout
20
+ 2. `onSelectionChange` handed the PREFIXED id back out — a consumer's checkout
21
21
  dispatched `".$CYBERSOURCE"` as a payment method code to the backend.
22
22
 
23
23
  The heroui accordion this replaced handled keys correctly. Diagnosed by the
24
- crispi session against the installed 2.0.6 bundle.
24
+ consumer's session against the installed 2.0.6 bundle.
25
25
 
26
26
  ## The fix
27
27
 
@@ -36,13 +36,13 @@ round-trips with no output translation. `"all"` and unkeyed children (positional
36
36
 
37
37
  1. Take the release; no call-site changes needed — controlled accordions start
38
38
  working as written.
39
- 2. **Delete compensating shims.** crispi: `libs/crispi-ui/.../Accordion.tsx`
40
- wrapper (crispi-monorepo `7a44704f0`) must be REMOVED when taking this
39
+ 2. **Delete compensating shims.** A consumer-side `.../Accordion.tsx`
40
+ wrapper that pre-prefixes keys must be REMOVED when taking this
41
41
  release — it translates keys into the prefixed space, which no longer
42
42
  exists, so keeping it reintroduces the bug in the other direction. Check the
43
43
  shim's own escape handling is not needed elsewhere (this fix also covers
44
44
  escaped keys, which a bare `.$`-strip shim does not).
45
- 3. If any code path stored or transmitted a prefixed id (`.$…`) — crispi saw
45
+ 3. If any code path stored or transmitted a prefixed id (`.$…`) — one consumer saw
46
46
  them reach the backend as payment codes — check persisted data for the
47
47
  `.$` prefix.
48
48
 
@@ -28,7 +28,7 @@ observed:
28
28
  keyframe resolvers synchronously on the detached element.
29
29
 
30
30
  🚨 Thrown inside framer-motion's frame loop, so nothing reaches server logs and no React error
31
- boundary catches it. noco hit it in the warranty admin: a controlled drawer (route 1) containing a
31
+ boundary catches it. A consumer hit it in its warranty admin: a controlled drawer (route 1) containing a
32
32
  never-opened trigger-driven Page Builder overlay threw **13 errors on every close**, and in
33
33
  production that broke the frame loop — the close animation and the success toast were both lost.
34
34
  Every other trigger-driven overlay in that app (delete confirms, edit modals) carried the same
@@ -49,8 +49,8 @@ already gets from `AnimatePresence` is now the same on both paths:
49
49
 
50
50
  ## Consumer impact
51
51
 
52
- - **Nothing to change.** Take the release. If you gated the overlay yourself in a wrapper (noco
53
- tried it in `@noco/ui`), **remove that gate**: mounting only once already open, with the hook
52
+ - **Nothing to change.** Take the release. If you gated the overlay yourself in a wrapper (one
53
+ consumer tried it in its own UI library), **remove that gate**: mounting only once already open, with the hook
54
54
  initialized to `visible`, gives framer-motion no transition to play and leaves the backdrop stuck
55
55
  at `opacity: 0`. The fix has to live where the animation state is derived.
56
56
  - ⚠️ Do not read the mount as a signal. Nothing should depend on a closed trigger-driven overlay
@@ -5,11 +5,11 @@
5
5
  **Affects:** `src/components/PinInput/PinInput.tsx`, `PinInput.types.ts`. Every consumer of `<PinInput>` (signup, forgot-password and email/password-change verification on the storefront).
6
6
  **Classification:** BUGFIX (three) + IMPROVEMENT (`value`/`name` honored)
7
7
  **Breaking:** No API change. **Behavioral:** passing `value` now controls the boxes (it was silently ignored); `maxLength` is no longer rendered; `autoComplete="one-time-code"` is on the first box only.
8
- **Ticket:** CTAP-1749 (from NOCOE-2944)
8
+ **Ticket:** CTAP-1749
9
9
 
10
10
  ## What was wrong
11
11
 
12
- Four things, all in this component (a consumer wrapper such as noco's `libs/noco-ui` only restyles it):
12
+ Four things, all in this component (a consumer wrapper in a consumer's UI library only restyles it):
13
13
 
14
14
  1. **Android autofill and Gboard's clipboard chip lost five of six digits.** The paste handler split
15
15
  digits across the boxes correctly, but autofill and the keyboard chip insert text as an *input*
@@ -0,0 +1,25 @@
1
+ # `UserIcon` no longer carries a project's color class
2
+
3
+ **Date:** 2026-10-02
4
+ **Package:** `@clicktap/ui`
5
+ **Affects:** `components/Icon/UserIcon`
6
+ **Classification:** IMPROVEMENT
7
+ **Breaking:** No for any app that does not define the removed color token. One that does loses that color on the icon until it passes the class itself.
8
+ **Ticket:** CTAP-2094
9
+
10
+ ## What changed
11
+
12
+ `UserIcon` hard-coded a `text-*-gray-500` class for a color token one consuming project defines in its
13
+ own theme. The platform defines no such token, so the class did nothing here, and it named a project in
14
+ the shared library. The icon now carries only `flex-shrink-0` and inherits its color like the other
15
+ icons, so a consumer sets the color it wants through `className`.
16
+
17
+ ## Migrate
18
+
19
+ If your theme defined that token (or any color you relied on for this icon), pass it:
20
+
21
+ ```tsx
22
+ <UserIcon className="text-brand-gray-500" />
23
+ ```
24
+
25
+ Nothing else.
@@ -1,4 +1,14 @@
1
1
  [
2
+ {
3
+ "path": "2026/10/ui-2026-10-02-user-icon-drops-project-color-class.md",
4
+ "module": "libs/frontend-modules/ui",
5
+ "package": "@clicktap/ui",
6
+ "date": "2026-10-02",
7
+ "title": "`UserIcon` no longer carries a project's color class",
8
+ "classification": "IMPROVEMENT",
9
+ "breaking": "No for any app that does not define the removed color token. One that does loses that color on the icon until it passes the class itself.",
10
+ "affects": "`components/Icon/UserIcon`"
11
+ },
2
12
  {
3
13
  "path": "2026/09/ui-2026-09-30-modal-fade-no-final-frame-blink.md",
4
14
  "module": "libs/frontend-modules/ui",
@@ -156,7 +166,7 @@
156
166
  "date": "2026-08-24",
157
167
  "title": "Accordion controlled selection matches authored keys again",
158
168
  "classification": "BUGFIX",
159
- "breaking": "No — unless you shipped a workaround that pre-prefixes keys (see crispi note).",
169
+ "breaking": "No — unless you shipped a workaround that pre-prefixes keys (see the shim note below).",
160
170
  "affects": "every controlled or default-expanded `Accordion` — checkout payment method selection, checkout's `defaultExpandedKeys={['cart']}`, totals/discount panel, PDP mobile overview, filter groups."
161
171
  },
162
172
  {
@@ -393,7 +403,7 @@
393
403
  "breaking": "No — additive to the `exports` map. Existing `moduleResolution: node` / `node10`",
394
404
  "affects": "",
395
405
  "revised": "2026-08-08",
396
- "revised_note": "2026-08-08 — the test-runner half (CTAP-1195): every runtime subpath entry gains a `default` condition, so CJS resolvers (Jest) stop falling through to the `.d.ts`. See \"Test runners (Jest)\" below; reported by noco."
406
+ "revised_note": "2026-08-08 — the test-runner half (CTAP-1195): every runtime subpath entry gains a `default` condition, so CJS resolvers (Jest) stop falling through to the `.d.ts`. See \"Test runners (Jest)\" below; reported by a consumer."
397
407
  },
398
408
  {
399
409
  "path": "2026/06/ui-2026-06-18-select-hiddenselect-setvalue-crash.md",
@@ -413,7 +423,7 @@
413
423
  "title": "Select standardization — one `<Select searchable>`, `DropdownSelect` removed",
414
424
  "classification": "FEATURE + BREAKING",
415
425
  "breaking": "Yes — (1) `DropdownSelect` removed, (2) the bare `<Select>` is now a **button picker**, not a combobox, (3) `DropdownSelect`'s `classNames.trigger` is now `classNames.input`, (4) the root is `w-full` by default, (5) `<Option>` is react-stately's `Item` — keyed by `key` (no `id`) and **cannot be wrapped**.",
416
- "affects": "Any app consuming `@clicktap/ui`'s `Select` / `DropdownSelect` (Crispi, FFL, and any fork that renders pickers, sort controls, country/region selects, or configurable-product options)."
426
+ "affects": "Any app consuming `@clicktap/ui`'s `Select` / `DropdownSelect` (downstream projects and any fork that renders pickers, sort controls, country/region selects, or configurable-product options)."
417
427
  },
418
428
  {
419
429
  "path": "2026/05/ui-2026-05-29-password-check-requirements-variant.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clicktap/ui",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "private": false,
5
5
  "author": "Clicktap",
6
6
  "description": "A library of React UI components and low-level hooks.",