@pithyjs/pidl-catalog 0.1.0-beta.2 → 0.1.0-beta.3

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.
@@ -167,7 +167,7 @@
167
167
  "toggle.outline.bg-pressed": "a11y.state-background(selected)",
168
168
  "toggle.ghost.bg-pressed": "a11y.state-background(selected)",
169
169
  "radius": "--radius-{shape} (via data-shape attribute, mapped from radius.$radius-sizes)",
170
- "focus": "--focus-ring-* (via u-focus-ring)",
170
+ "focus": "--focus-ring-*, colored by --ring-color (via a11y.focus-outline on :focus-visible and in always-visible focus mode)",
171
171
  "disabled.opacity": "--state-disabled-opacity",
172
172
  "spinner.border": "--border-width-thin",
173
173
  "spinner.animation": "--motion-animation-spin",
@@ -190,11 +190,11 @@
190
190
  "Provides role='button' and accessible name from slot content",
191
191
  "When as='a' without href, adds role='button' with full keyboard emulation (Space + Enter)",
192
192
  "When as='a' with href, keeps native link semantics (screen reader announces 'link')",
193
- "Focus ring via u-focus-ring utility — meets 3:1 contrast with surrounding",
193
+ "Focus ring is an outline in --ring-color (defaults to the button's own color) at --focus-ring-offset, so it cannot collide with a variant's box-shadow. When --_btn-color is repointed at a low-contrast tone, set --ring-color too, or the ring loses its 3:1 contrast",
194
194
  "Loading state: sets aria-busy='true', announces loadingText via aria-live region",
195
195
  "Disabled state: uses aria-disabled (not native disabled) — element stays in tab order",
196
196
  "Toggle / disclosure: aria-pressed='true' (toggles) or aria-expanded='true' (disclosures) renders a persistent on-state distinct from transient :active",
197
- "Forced-colors: visible border for all variants, Highlight border when aria-pressed/expanded, GrayText for disabled"
197
+ "Forced-colors: visible border for all variants, Highlight border when aria-pressed/expanded, GrayText for disabled, Highlight focus ring"
198
198
  ],
199
199
  "ai": {
200
200
  "synonyms": [
@@ -208,7 +208,7 @@
208
208
  "div as button — use <Button> component",
209
209
  "anchor without role when not a link — use as='a' without href",
210
210
  "hardcoded colors — use color prop with semantic values",
211
- "outline: none on focus — focus ring is handled by u-focus-ring"
211
+ "outline: none on focus — the focus ring IS the outline"
212
212
  ],
213
213
  "patterns": [
214
214
  "Primary solid button for main CTA: <Button color=\"'primary'\">Save</Button>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pithyjs/pidl-catalog",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "Machine-readable component contracts for PithyJS — props, types, defaults, slots and a11y guarantees as JSON.",
5
5
  "type": "module",
6
6
  "files": [