@lessonkit/accessibility 0.9.3 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +20 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,13 +1,10 @@
1
- # `@lessonkit/accessibility`
1
+ # @lessonkit/accessibility
2
2
 
3
- [![CI](https://github.com/eddiethedean/lessonkit/actions/workflows/ci.yml/badge.svg)](https://github.com/eddiethedean/lessonkit/actions/workflows/ci.yml)
4
- [![Documentation](https://readthedocs.org/projects/lessonkit/badge/?version=latest)](https://lessonkit.readthedocs.io/en/latest/)
5
3
  [![npm](https://img.shields.io/npm/v/@lessonkit/accessibility.svg)](https://www.npmjs.com/package/@lessonkit/accessibility)
4
+ [![Documentation](https://readthedocs.org/projects/lessonkit/badge/?version=latest)](https://lessonkit.readthedocs.io/en/latest/reference/accessibility.html)
6
5
  [![License](https://img.shields.io/github/license/eddiethedean/lessonkit)](https://github.com/eddiethedean/lessonkit/blob/main/LICENSE)
7
6
 
8
- Small accessibility utilities used by LessonKit packages and apps.
9
-
10
- **Docs:** [Accessibility reference](https://lessonkit.readthedocs.io/en/latest/reference/accessibility.html) · [Theming & accessibility guide](https://lessonkit.readthedocs.io/en/latest/guides/react-developers/theming-and-accessibility.html)
7
+ Focus management, reduced-motion helpers, and screen-reader utilities for LessonKit apps.
11
8
 
12
9
  ## Install
13
10
 
@@ -15,17 +12,23 @@ Small accessibility utilities used by LessonKit packages and apps.
15
12
  npm install @lessonkit/accessibility
16
13
  ```
17
14
 
18
- ## Included (0.6.0)
15
+ ## API
16
+
17
+ | Export | Purpose |
18
+ | --- | --- |
19
+ | `prefersReducedMotion()` | Media-query check |
20
+ | `shouldAnimate({ default })` | Respect user preference |
21
+ | `focusFirst`, `getFocusableElements` | Focus discovery |
22
+ | `trapFocus(container, opts)` | Focus trap for modals |
23
+ | `createRovingTabIndex(opts)` | Roving tabindex groups |
24
+ | `visuallyHiddenStyle` | Screen-reader-only content |
25
+
26
+ Used internally by `@lessonkit/react` (e.g. `Quiz` labels).
27
+
28
+ ## Docs
19
29
 
20
- - `prefersReducedMotion()`
21
- - `getReducedMotionPreference()`
22
- - `shouldAnimate({ default })`
23
- - `focusFirst(container)`
24
- - `getFocusableElements(container)`
25
- - `trapFocus(container, opts)`
26
- - `createRovingTabIndex(opts)`
27
- - `visuallyHiddenStyle` — inline styles for screen-reader-only content (used by `@lessonkit/react` `Quiz`)
30
+ [Accessibility reference](https://lessonkit.readthedocs.io/en/latest/reference/accessibility.html) · [Theming & accessibility guide](https://lessonkit.readthedocs.io/en/latest/guides/react-developers/theming-and-accessibility.html)
28
31
 
29
- ## Guidance
32
+ ## License
30
33
 
31
- See the [accessibility reference](https://lessonkit.readthedocs.io/en/latest/reference/accessibility.html) for keyboard and screen-reader guidance.
34
+ Apache-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessonkit/accessibility",
3
- "version": "0.9.3",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "description": "Accessibility utilities for LessonKit packages and apps.",
6
6
  "license": "Apache-2.0",