@pigmilcom/a11y 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.
Potentially problematic release.
This version of @pigmilcom/a11y might be problematic. Click here for more details.
- package/README.md +181 -0
- package/dist/index.css +626 -0
- package/dist/index.js +319 -0
- package/dist/index.mjs +294 -0
- package/package.json +61 -0
- package/types/index.d.ts +12 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pigmilcom/a11y",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "WCAG 2.1 accessibility widget for React — text size, contrast, dyslexia font, motion reduction, and more.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"accessibility",
|
|
7
|
+
"wcag",
|
|
8
|
+
"wcag21",
|
|
9
|
+
"a11y",
|
|
10
|
+
"react",
|
|
11
|
+
"widget",
|
|
12
|
+
"aria"
|
|
13
|
+
],
|
|
14
|
+
"author": "pigmilcom",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/pigmilcom/a11y.git"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/pigmilcom/a11y#readme",
|
|
21
|
+
"main": "./dist/index.js",
|
|
22
|
+
"module": "./dist/index.mjs",
|
|
23
|
+
"types": "./types/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./types/index.d.ts",
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
|
+
"require": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./styles": "./dist/index.css"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"types",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build:js": "tsup",
|
|
40
|
+
"build:css": "tailwindcss -i src/a11y.css -o dist/index.css",
|
|
41
|
+
"build": "npm run build:js && npm run build:css",
|
|
42
|
+
"dev": "tsup --watch",
|
|
43
|
+
"prepublishOnly": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=17.0.0",
|
|
47
|
+
"react-dom": ">=17.0.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"autoprefixer": "^10.4.20",
|
|
51
|
+
"postcss": "^8.4.47",
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"react-dom": "^18.3.1",
|
|
54
|
+
"tailwindcss": "^3.4.14",
|
|
55
|
+
"tsup": "^8.3.0",
|
|
56
|
+
"typescript": "^5.7.3"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
}
|
|
61
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface A11yWidgetProps {
|
|
4
|
+
/** Extra classes applied to the trigger button (e.g. positioning utilities). */
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export declare function A11yWidget(
|
|
9
|
+
props: A11yWidgetProps
|
|
10
|
+
): React.ReactElement | null;
|
|
11
|
+
|
|
12
|
+
export default A11yWidget;
|