@uncinc/uncinc-react-kitchen-sink 2.20.8 → 2.20.9
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.
|
@@ -11,12 +11,15 @@ declare namespace Picture {
|
|
|
11
11
|
namespace propTypes {
|
|
12
12
|
let onLoad: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
13
|
let alt: PropTypes.Requireable<string>;
|
|
14
|
+
let role: PropTypes.Requireable<string>;
|
|
14
15
|
}
|
|
15
16
|
namespace defaultProps {
|
|
16
17
|
export function onLoad_1(): void;
|
|
17
18
|
export { onLoad_1 as onLoad };
|
|
18
19
|
let alt_1: null;
|
|
19
20
|
export { alt_1 as alt };
|
|
21
|
+
let role_1: undefined;
|
|
22
|
+
export { role_1 as role };
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
import React from 'react';
|
|
@@ -119,10 +119,12 @@ var Picture = function Picture(_ref) {
|
|
|
119
119
|
};
|
|
120
120
|
Picture.propTypes = {
|
|
121
121
|
onLoad: PropTypes.func,
|
|
122
|
-
alt: PropTypes.string
|
|
122
|
+
alt: PropTypes.string,
|
|
123
|
+
role: PropTypes.oneOf(['presentation', 'none'])
|
|
123
124
|
};
|
|
124
125
|
Picture.defaultProps = {
|
|
125
126
|
onLoad: function onLoad() {},
|
|
126
|
-
alt: null
|
|
127
|
+
alt: null,
|
|
128
|
+
role: undefined
|
|
127
129
|
};
|
|
128
130
|
export default Picture;
|
|
@@ -4,6 +4,7 @@ declare namespace Image {
|
|
|
4
4
|
let propTypes: {
|
|
5
5
|
onLoad: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
6
|
alt: PropTypes.Requireable<string>;
|
|
7
|
+
role: PropTypes.Requireable<string>;
|
|
7
8
|
src: PropTypes.Validator<{}>;
|
|
8
9
|
lazyload: PropTypes.Requireable<boolean>;
|
|
9
10
|
aspectRatio: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|