@techsio/storybook-better-a11y 0.0.1
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/AGENTS.MD +12 -0
- package/README.md +40 -0
- package/dist/100.js +122 -0
- package/dist/212.js +1965 -0
- package/dist/212.js.LICENSE.txt +19 -0
- package/dist/699.js +529 -0
- package/dist/AccessibilityRuleMaps.d.ts +9 -0
- package/dist/AccessibilityRuleMaps.d.ts.map +1 -0
- package/dist/a11yRunner.d.ts +4 -0
- package/dist/a11yRunner.d.ts.map +1 -0
- package/dist/a11yRunnerUtils.d.ts +4 -0
- package/dist/a11yRunnerUtils.d.ts.map +1 -0
- package/dist/apcaChecker.d.ts +13 -0
- package/dist/apcaChecker.d.ts.map +1 -0
- package/dist/axeRuleMappingHelper.d.ts +4 -0
- package/dist/axeRuleMappingHelper.d.ts.map +1 -0
- package/dist/components/A11YPanel.d.ts +3 -0
- package/dist/components/A11YPanel.d.ts.map +1 -0
- package/dist/components/A11yContext.d.ts +31 -0
- package/dist/components/A11yContext.d.ts.map +1 -0
- package/dist/components/Report/Details.d.ts +11 -0
- package/dist/components/Report/Details.d.ts.map +1 -0
- package/dist/components/Report/Report.d.ts +13 -0
- package/dist/components/Report/Report.d.ts.map +1 -0
- package/dist/components/Tabs.d.ts +14 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/TestDiscrepancyMessage.d.ts +7 -0
- package/dist/components/TestDiscrepancyMessage.d.ts.map +1 -0
- package/dist/components/VisionSimulator.d.ts +2 -0
- package/dist/components/VisionSimulator.d.ts.map +1 -0
- package/dist/constants.d.ts +19 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/manager.d.ts +2 -0
- package/dist/manager.d.ts.map +1 -0
- package/dist/manager.js +1550 -0
- package/dist/params.d.ts +48 -0
- package/dist/params.d.ts.map +1 -0
- package/dist/postinstall.d.ts +9 -0
- package/dist/postinstall.d.ts.map +1 -0
- package/dist/postinstall.js +21 -0
- package/dist/preview.d.ts +14 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +1 -0
- package/dist/results.mock.d.ts +2 -0
- package/dist/results.mock.d.ts.map +1 -0
- package/dist/rslib-runtime.js +37 -0
- package/dist/types.d.ts +52 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/visionSimulatorFilters.d.ts +7 -0
- package/dist/visionSimulatorFilters.d.ts.map +1 -0
- package/dist/withVisionSimulator.d.ts +3 -0
- package/dist/withVisionSimulator.d.ts.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type EnhancedResult, RuleType } from '../../types';
|
|
4
|
+
export interface ReportProps {
|
|
5
|
+
items: EnhancedResult[];
|
|
6
|
+
empty: string;
|
|
7
|
+
type: RuleType;
|
|
8
|
+
handleSelectionChange: (key: string) => void;
|
|
9
|
+
selectedItems: Map<EnhancedResult['id'], string>;
|
|
10
|
+
toggleOpen: (event: React.SyntheticEvent<Element>, type: RuleType, item: EnhancedResult) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Report: FC<ReportProps>;
|
|
13
|
+
//# sourceMappingURL=Report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/components/Report/Report.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,KAAK,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA2E5D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,aAAa,EAAE,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;IACjD,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAClG;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAyDlC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Result } from 'axe-core';
|
|
3
|
+
import type { RuleType } from '../types';
|
|
4
|
+
interface TabsProps {
|
|
5
|
+
tabs: {
|
|
6
|
+
label: React.ReactElement;
|
|
7
|
+
panel: React.ReactElement;
|
|
8
|
+
items: Result[];
|
|
9
|
+
type: RuleType;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/components/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAkBzC,UAAU,SAAS;IACjB,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;QAC1B,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;QAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,IAAI,EAAE,QAAQ,CAAC;KAChB,EAAE,CAAC;CACL;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+DpC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TestDiscrepancy = 'browserPassedCliFailed' | 'cliPassedBrowserFailed' | 'cliFailedButModeManual' | null;
|
|
2
|
+
interface TestDiscrepancyMessageProps {
|
|
3
|
+
discrepancy: TestDiscrepancy;
|
|
4
|
+
}
|
|
5
|
+
export declare const TestDiscrepancyMessage: ({ discrepancy }: TestDiscrepancyMessageProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=TestDiscrepancyMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestDiscrepancyMessage.d.ts","sourceRoot":"","sources":["../../src/components/TestDiscrepancyMessage.tsx"],"names":[],"mappings":"AA+BA,MAAM,MAAM,eAAe,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,IAAI,CAAC;AAET,UAAU,2BAA2B;IACnC,WAAW,EAAE,eAAe,CAAC;CAC9B;AACD,eAAO,MAAM,sBAAsB,GAAI,iBAAiB,2BAA2B,mDAiClF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisionSimulator.d.ts","sourceRoot":"","sources":["../../src/components/VisionSimulator.tsx"],"names":[],"mappings":"AAqCA,eAAO,MAAM,eAAe,+CAyB3B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const ADDON_ID = "storybook/a11y";
|
|
2
|
+
export declare const PANEL_ID = "storybook/a11y/panel";
|
|
3
|
+
export declare const PARAM_KEY = "a11y";
|
|
4
|
+
export declare const VISION_GLOBAL_KEY = "vision";
|
|
5
|
+
export declare const UI_STATE_ID = "storybook/a11y/ui";
|
|
6
|
+
export declare const DOCUMENTATION_LINK = "writing-tests/accessibility-testing";
|
|
7
|
+
export declare const DOCUMENTATION_DISCREPANCY_LINK = "writing-tests/accessibility-testing#why-are-my-tests-failing-in-different-environments";
|
|
8
|
+
export declare const TEST_PROVIDER_ID = "storybook/addon-a11y/test-provider";
|
|
9
|
+
export declare const EVENTS: {
|
|
10
|
+
RESULT: string;
|
|
11
|
+
REQUEST: string;
|
|
12
|
+
RUNNING: string;
|
|
13
|
+
ERROR: string;
|
|
14
|
+
MANUAL: string;
|
|
15
|
+
SELECT: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const STATUS_TYPE_ID_COMPONENT_TEST = "storybook/component-test";
|
|
18
|
+
export declare const STATUS_TYPE_ID_A11Y = "storybook/a11y";
|
|
19
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mBAAmB,CAAC;AACzC,eAAO,MAAM,QAAQ,yBAAsB,CAAC;AAC5C,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,WAAW,sBAAmB,CAAC;AAQ5C,eAAO,MAAM,kBAAkB,wCAAwC,CAAC;AACxE,eAAO,MAAM,8BAA8B,2FAA6E,CAAC;AAEzH,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,MAAM;;;;;;;CAAsD,CAAC;AAE1E,eAAO,MAAM,6BAA6B,6BAA6B,CAAC;AACxE,eAAO,MAAM,mBAAmB,mBAAmB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { A11yTypes } from './types';
|
|
2
|
+
export { PARAM_KEY } from './constants';
|
|
3
|
+
export * from './params';
|
|
4
|
+
export type { A11yGlobals, A11yTypes } from './types';
|
|
5
|
+
declare const _default: () => import("storybook/internal/csf").PreviewAddon<A11yTypes>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;AAEtD,wBAAqE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { definePreviewAddon } from "storybook/internal/csf";
|
|
2
|
+
import { preview_namespaceObject } from "./699.js";
|
|
3
|
+
import "./100.js";
|
|
4
|
+
const src = ()=>definePreviewAddon(preview_namespaceObject);
|
|
5
|
+
var src_PARAM_KEY = "a11y";
|
|
6
|
+
export default src;
|
|
7
|
+
export { src_PARAM_KEY as PARAM_KEY };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../src/manager.tsx"],"names":[],"mappings":""}
|