@lssm/lib.accessibility 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060804
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.
- package/dist/AccessibilityPanel.d.ts +10 -0
- package/dist/AccessibilityProvider.d.ts +13 -0
- package/dist/index.d.ts +11 -0
- package/dist/nativewind-env.d.ts +1 -0
- package/dist/next-route-announcer.d.ts +6 -0
- package/dist/preferences.d.ts +35 -0
- package/package.json +11 -11
- package/dist/nativewind-env.d.js +0 -0
|
@@ -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 };
|
package/dist/index.d.ts
ADDED
|
@@ -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,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 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_runtime0.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-
|
|
3
|
+
"version": "0.0.0-canary-20251217060804",
|
|
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-
|
|
18
|
-
"@lssm/lib.ui-kit": "0.0.0-canary-
|
|
19
|
-
"@lssm/lib.ui-kit-web": "0.0.0-canary-
|
|
17
|
+
"@lssm/lib.design-system": "0.0.0-canary-20251217060804",
|
|
18
|
+
"@lssm/lib.ui-kit": "0.0.0-canary-20251217060804",
|
|
19
|
+
"@lssm/lib.ui-kit-web": "0.0.0-canary-20251217060804"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
23
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
22
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217060804",
|
|
23
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217060804",
|
|
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
|
-
".": "./
|
|
41
|
-
"./AccessibilityPanel": "./
|
|
42
|
-
"./AccessibilityProvider": "./
|
|
43
|
-
"./next-route-announcer": "./
|
|
44
|
-
"./preferences": "./
|
|
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": [
|
package/dist/nativewind-env.d.js
DELETED
|
File without changes
|