@instructure/ui-a11y-content 8.9.1-snapshot.2 → 8.9.2-snapshot.13
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/CHANGELOG.md +4 -0
- package/README.md +0 -1
- package/package.json +12 -12
- package/src/ScreenReaderContent/props.ts +5 -3
- package/src/ScreenReaderContent/styles.ts +3 -1
- package/types/ScreenReaderContent/props.d.ts +4 -3
- package/types/ScreenReaderContent/props.d.ts.map +1 -1
- package/types/ScreenReaderContent/styles.d.ts +2 -15
- package/types/ScreenReaderContent/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-a11y-content
|
|
9
|
+
|
|
6
10
|
# [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
|
|
7
11
|
|
|
8
12
|
### Bug Fixes
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-a11y-content",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.2-snapshot.13+6a2a77037",
|
|
4
4
|
"description": "Utility components that enhance the user experience of those that navigate the web with a screen reader or keyboard.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.9.
|
|
29
|
-
"@instructure/emotion": "8.9.
|
|
30
|
-
"@instructure/shared-types": "8.9.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.9.
|
|
32
|
-
"@instructure/ui-prop-types": "8.9.
|
|
33
|
-
"@instructure/ui-react-utils": "8.9.
|
|
34
|
-
"@instructure/ui-utils": "8.9.
|
|
35
|
-
"@instructure/uid": "8.9.
|
|
28
|
+
"@instructure/console": "8.9.2-snapshot.13+6a2a77037",
|
|
29
|
+
"@instructure/emotion": "8.9.2-snapshot.13+6a2a77037",
|
|
30
|
+
"@instructure/shared-types": "8.9.2-snapshot.13+6a2a77037",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.9.2-snapshot.13+6a2a77037",
|
|
32
|
+
"@instructure/ui-prop-types": "8.9.2-snapshot.13+6a2a77037",
|
|
33
|
+
"@instructure/ui-react-utils": "8.9.2-snapshot.13+6a2a77037",
|
|
34
|
+
"@instructure/ui-utils": "8.9.2-snapshot.13+6a2a77037",
|
|
35
|
+
"@instructure/uid": "8.9.2-snapshot.13+6a2a77037",
|
|
36
36
|
"keycode": "^2",
|
|
37
37
|
"prop-types": "^15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.9.
|
|
41
|
-
"@instructure/ui-test-utils": "8.9.
|
|
40
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.13+6a2a77037",
|
|
41
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.13+6a2a77037"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8 <=17"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "6a2a7703791c742cbc3ea00dc66ccec21f2810d6"
|
|
51
51
|
}
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
OtherHTMLAttributes,
|
|
31
31
|
PropValidators
|
|
32
32
|
} from '@instructure/shared-types'
|
|
33
|
-
import type { WithStyleProps } from '@instructure/emotion'
|
|
33
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
34
34
|
|
|
35
35
|
type ScreenReaderContentOwnProps = {
|
|
36
36
|
/**
|
|
@@ -50,7 +50,9 @@ type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
|
50
50
|
|
|
51
51
|
type ScreenReaderContentProps = ScreenReaderContentOwnProps &
|
|
52
52
|
OtherHTMLAttributes<ScreenReaderContentOwnProps> &
|
|
53
|
-
WithStyleProps
|
|
53
|
+
WithStyleProps<null, ScreenReaderContentStyle>
|
|
54
|
+
|
|
55
|
+
type ScreenReaderContentStyle = ComponentStyle<'screenReaderContent'>
|
|
54
56
|
|
|
55
57
|
const propTypes: PropValidators<PropKeys> = {
|
|
56
58
|
as: PropTypes.elementType,
|
|
@@ -59,5 +61,5 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
59
61
|
|
|
60
62
|
const allowedProps: AllowedPropKeys = ['as', 'children']
|
|
61
63
|
|
|
62
|
-
export type { ScreenReaderContentProps }
|
|
64
|
+
export type { ScreenReaderContentProps, ScreenReaderContentStyle }
|
|
63
65
|
export { propTypes, allowedProps }
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import type { ScreenReaderContentStyle } from './props'
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* ---
|
|
27
29
|
* private: true
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
* @param {Object} state the state of the component, the style is applied to
|
|
33
35
|
* @return {Object} The final style object, which will be used in the component
|
|
34
36
|
*/
|
|
35
|
-
const generateStyle = () => {
|
|
37
|
+
const generateStyle = (): ScreenReaderContentStyle => {
|
|
36
38
|
return {
|
|
37
39
|
screenReaderContent: {
|
|
38
40
|
label: 'screenReaderContent',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { AsElementType, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
|
-
import type { WithStyleProps } from '@instructure/emotion';
|
|
3
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type ScreenReaderContentOwnProps = {
|
|
5
5
|
/**
|
|
6
6
|
* the element type to render as
|
|
@@ -13,9 +13,10 @@ declare type ScreenReaderContentOwnProps = {
|
|
|
13
13
|
};
|
|
14
14
|
declare type PropKeys = keyof ScreenReaderContentOwnProps;
|
|
15
15
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
|
-
declare type ScreenReaderContentProps = ScreenReaderContentOwnProps & OtherHTMLAttributes<ScreenReaderContentOwnProps> & WithStyleProps
|
|
16
|
+
declare type ScreenReaderContentProps = ScreenReaderContentOwnProps & OtherHTMLAttributes<ScreenReaderContentOwnProps> & WithStyleProps<null, ScreenReaderContentStyle>;
|
|
17
|
+
declare type ScreenReaderContentStyle = ComponentStyle<'screenReaderContent'>;
|
|
17
18
|
declare const propTypes: PropValidators<PropKeys>;
|
|
18
19
|
declare const allowedProps: AllowedPropKeys;
|
|
19
|
-
export type { ScreenReaderContentProps };
|
|
20
|
+
export type { ScreenReaderContentProps, ScreenReaderContentStyle };
|
|
20
21
|
export { propTypes, allowedProps };
|
|
21
22
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ScreenReaderContent/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ScreenReaderContent/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,2BAA2B,GAAG;IACjC;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,2BAA2B,CAAA;AAEjD,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,wBAAwB,GAAG,2BAA2B,GACzD,mBAAmB,CAAC,2BAA2B,CAAC,GAChD,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAA;AAEhD,aAAK,wBAAwB,GAAG,cAAc,CAAC,qBAAqB,CAAC,CAAA;AAErE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAGvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAoC,CAAA;AAExD,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ScreenReaderContentStyle } from './props';
|
|
1
2
|
/**
|
|
2
3
|
* ---
|
|
3
4
|
* private: true
|
|
@@ -8,20 +9,6 @@
|
|
|
8
9
|
* @param {Object} state the state of the component, the style is applied to
|
|
9
10
|
* @return {Object} The final style object, which will be used in the component
|
|
10
11
|
*/
|
|
11
|
-
declare const generateStyle: () =>
|
|
12
|
-
screenReaderContent: {
|
|
13
|
-
label: string;
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
margin: string;
|
|
17
|
-
padding: number;
|
|
18
|
-
position: string;
|
|
19
|
-
top: number;
|
|
20
|
-
insetInlineStart: number;
|
|
21
|
-
overflow: string;
|
|
22
|
-
clip: string;
|
|
23
|
-
border: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
12
|
+
declare const generateStyle: () => ScreenReaderContentStyle;
|
|
26
13
|
export default generateStyle;
|
|
27
14
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ScreenReaderContent/styles.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ScreenReaderContent/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAEvD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,QAAO,wBAgBzB,CAAA;AAED,eAAe,aAAa,CAAA"}
|