@lssm/lib.accessibility 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+
3
+ //#region src/AccessibilityPanel.d.ts
4
+ declare function AccessibilityPanel({
5
+ className
6
+ }: {
7
+ className?: string;
8
+ }): react_jsx_runtime1.JSX.Element;
9
+ //#endregion
10
+ export { AccessibilityPanel };
@@ -0,0 +1,13 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/AccessibilityProvider.d.ts
5
+ declare function AccessibilityProvider({
6
+ children,
7
+ skipTargetId
8
+ }: {
9
+ children: React$1.ReactNode;
10
+ skipTargetId?: string;
11
+ }): react_jsx_runtime0.JSX.Element;
12
+ //#endregion
13
+ export { AccessibilityProvider };
@@ -0,0 +1,11 @@
1
+ import { AccessibilityPanel } from "./AccessibilityPanel.js";
2
+ import { AccessibilityProvider } from "./AccessibilityProvider.js";
3
+ import { A11YPreferencesProvider, AccessibilityPreferences, useA11YPreferences } from "./preferences.js";
4
+ import { NextRouteAnnouncer } from "./next-route-announcer.js";
5
+ import { SRLiveRegionProvider, useSRLiveRegion } from "@lssm/lib.ui-kit-web/ui/live-region";
6
+ import { SkipLink } from "@lssm/lib.ui-kit-web/ui/skip-link";
7
+ import { VisuallyHidden } from "@lssm/lib.ui-kit-web/ui/visually-hidden";
8
+ import { RouteAnnouncer } from "@lssm/lib.ui-kit-web/ui/route-announcer";
9
+ import { FocusOnRouteChange } from "@lssm/lib.ui-kit-web/ui/focus-on-route-change";
10
+ import { useReducedMotion } from "@lssm/lib.ui-kit-web/ui/use-reduced-motion";
11
+ export { A11YPreferencesProvider, AccessibilityPanel, type AccessibilityPreferences, AccessibilityProvider, FocusOnRouteChange, NextRouteAnnouncer, RouteAnnouncer, SRLiveRegionProvider, SkipLink, VisuallyHidden, useA11YPreferences, useReducedMotion, useSRLiveRegion };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/next-route-announcer.d.ts
4
+ declare function NextRouteAnnouncer(): react_jsx_runtime0.JSX.Element;
5
+ //#endregion
6
+ export { NextRouteAnnouncer };
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
+
4
+ //#region src/preferences.d.ts
5
+ type TextSize = 's' | 'm' | 'l' | 'xl';
6
+ type TextSpacing = 'normal' | 'increased';
7
+ type LineHeight = 'normal' | 'increased';
8
+ type UnderlineLinks = boolean;
9
+ type FocusRing = 'normal' | 'thick';
10
+ type ReduceMotion = 'system' | 'reduce' | 'no-preference';
11
+ type HighContrast = boolean;
12
+ type DyslexiaFont = boolean;
13
+ interface AccessibilityPreferences {
14
+ textSize: TextSize;
15
+ textSpacing: TextSpacing;
16
+ lineHeight: LineHeight;
17
+ underlineLinks: UnderlineLinks;
18
+ focusRing: FocusRing;
19
+ reduceMotion: ReduceMotion;
20
+ highContrast: HighContrast;
21
+ dyslexiaFont: DyslexiaFont;
22
+ }
23
+ interface PreferencesContextValue {
24
+ preferences: AccessibilityPreferences;
25
+ setPreferences: (updater: Partial<AccessibilityPreferences> | ((p: AccessibilityPreferences) => AccessibilityPreferences)) => void;
26
+ }
27
+ declare function useA11YPreferences(): PreferencesContextValue;
28
+ declare function A11YPreferencesProvider({
29
+ children
30
+ }: {
31
+ children: React.ReactNode;
32
+ }): react_jsx_runtime2.JSX.Element;
33
+ declare function a11yRootClassName(): string;
34
+ //#endregion
35
+ export { A11YPreferencesProvider, AccessibilityPreferences, DyslexiaFont, FocusRing, HighContrast, LineHeight, ReduceMotion, TextSize, TextSpacing, UnderlineLinks, a11yRootClassName, useA11YPreferences };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.accessibility",
3
- "version": "0.0.0-canary-20251217052941",
3
+ "version": "0.0.0-canary-20251217060433",
4
4
  "scripts": {
5
5
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
6
6
  "publish:pkg:canary": "bun publish:pkg --tag canary",
@@ -14,13 +14,13 @@
14
14
  "lint:check": "eslint src"
15
15
  },
16
16
  "dependencies": {
17
- "@lssm/lib.design-system": "0.0.0-canary-20251217052941",
18
- "@lssm/lib.ui-kit": "0.0.0-canary-20251217052941",
19
- "@lssm/lib.ui-kit-web": "0.0.0-canary-20251217052941"
17
+ "@lssm/lib.design-system": "0.0.0-canary-20251217060433",
18
+ "@lssm/lib.ui-kit": "0.0.0-canary-20251217060433",
19
+ "@lssm/lib.ui-kit-web": "0.0.0-canary-20251217060433"
20
20
  },
21
21
  "devDependencies": {
22
- "@lssm/tool.tsdown": "0.0.0-canary-20251217052941",
23
- "@lssm/tool.typescript": "0.0.0-canary-20251217052941",
22
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
23
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060433",
24
24
  "tsdown": "^0.17.4",
25
25
  "typescript": "^5.9.3"
26
26
  },
@@ -37,11 +37,11 @@
37
37
  "./dist/*.css"
38
38
  ],
39
39
  "exports": {
40
- ".": "./src/index.ts",
41
- "./AccessibilityPanel": "./src/AccessibilityPanel.tsx",
42
- "./AccessibilityProvider": "./src/AccessibilityProvider.tsx",
43
- "./next-route-announcer": "./src/next-route-announcer.tsx",
44
- "./preferences": "./src/preferences.tsx",
40
+ ".": "./dist/index.js",
41
+ "./AccessibilityPanel": "./dist/AccessibilityPanel.js",
42
+ "./AccessibilityProvider": "./dist/AccessibilityProvider.js",
43
+ "./next-route-announcer": "./dist/next-route-announcer.js",
44
+ "./preferences": "./dist/preferences.js",
45
45
  "./*": "./*"
46
46
  },
47
47
  "files": [
File without changes