@entur/a11y 0.2.100 → 0.2.101
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/SkipToContent.d.ts +10 -0
- package/dist/VisuallyHidden.d.ts +11 -0
- package/dist/index.d.ts +2 -26
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type SkipToContentProps = {
|
|
3
|
+
/** Lenketeksten */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** IDen til hovedinnholdsområdet
|
|
6
|
+
* @default "main-content"
|
|
7
|
+
*/
|
|
8
|
+
mainId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const SkipToContent: React.FC<SkipToContentProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type VisuallyHiddenProps = {
|
|
3
|
+
/** HTML-elementet eller React-komponenten som lager elementet
|
|
4
|
+
* @default "span"
|
|
5
|
+
*/
|
|
6
|
+
as?: string | React.ElementType;
|
|
7
|
+
/** Innhold for skjermlesere */
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const VisuallyHidden: React.FC<VisuallyHiddenProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const SkipToContent: default_2.FC<SkipToContentProps>;
|
|
4
|
-
|
|
5
|
-
export declare type SkipToContentProps = {
|
|
6
|
-
/** Lenketeksten */
|
|
7
|
-
children: default_2.ReactNode;
|
|
8
|
-
/** IDen til hovedinnholdsområdet
|
|
9
|
-
* @default "main-content"
|
|
10
|
-
*/
|
|
11
|
-
mainId?: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export declare const VisuallyHidden: default_2.FC<VisuallyHiddenProps>;
|
|
15
|
-
|
|
16
|
-
export declare type VisuallyHiddenProps = {
|
|
17
|
-
/** HTML-elementet eller React-komponenten som lager elementet
|
|
18
|
-
* @default "span"
|
|
19
|
-
*/
|
|
20
|
-
as?: string | default_2.ElementType;
|
|
21
|
-
/** Innhold for skjermlesere */
|
|
22
|
-
children: default_2.ReactNode;
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { }
|
|
1
|
+
export * from './SkipToContent';
|
|
2
|
+
export * from './VisuallyHidden';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/a11y",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/a11y.cjs.js",
|
|
6
6
|
"module": "dist/a11y.esm.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/tokens": "^3.19.
|
|
31
|
-
"@entur/utils": "^0.12.
|
|
30
|
+
"@entur/tokens": "^3.19.3",
|
|
31
|
+
"@entur/utils": "^0.12.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@testing-library/jest-dom": "^5.17.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"vite": "^7.1.3",
|
|
44
44
|
"vite-plugin-dts": "^4.5.4"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "5dd9d318f1d79f6f522f978de27b551fda1e91cc"
|
|
47
47
|
}
|