@skyscanner/backpack-web 23.0.0 → 23.1.0-beta.2
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const POLITENESS_SETTINGS: {
|
|
4
|
+
readonly off: 'off';
|
|
5
|
+
readonly polite: 'polite';
|
|
6
|
+
readonly assertive: 'assertive';
|
|
7
|
+
};
|
|
8
|
+
export type PolitenessSetting =
|
|
9
|
+
typeof POLITENESS_SETTINGS[keyof typeof POLITENESS_SETTINGS];
|
|
10
|
+
export type Props = {
|
|
11
|
+
children: ReactElement | string;
|
|
12
|
+
politenessSetting?: PolitenessSetting;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
className?: string | null;
|
|
15
|
+
[rest: string]: any;
|
|
16
|
+
};
|
|
17
|
+
declare const BpkAriaLive: ({
|
|
18
|
+
className,
|
|
19
|
+
politenessSetting,
|
|
20
|
+
visible,
|
|
21
|
+
...rest
|
|
22
|
+
}: Props) => JSX.Element;
|
|
23
|
+
export default BpkAriaLive;
|
|
@@ -39,11 +39,7 @@ const POLITENESS_SETTINGS = {
|
|
|
39
39
|
off: 'off',
|
|
40
40
|
polite: 'polite',
|
|
41
41
|
assertive: 'assertive'
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// Temp disabling TS types due to non TS projects compatibility.
|
|
45
|
-
// export type PolitenessSetting =
|
|
46
|
-
// typeof POLITENESS_SETTINGS[keyof typeof POLITENESS_SETTINGS];
|
|
42
|
+
};
|
|
47
43
|
exports.POLITENESS_SETTINGS = POLITENESS_SETTINGS;
|
|
48
44
|
const BpkAriaLive = _ref => {
|
|
49
45
|
let {
|
|
@@ -58,10 +54,5 @@ const BpkAriaLive = _ref => {
|
|
|
58
54
|
className: classNames
|
|
59
55
|
}, rest));
|
|
60
56
|
};
|
|
61
|
-
BpkAriaLive.defaultProps = {
|
|
62
|
-
className: null,
|
|
63
|
-
politenessSetting: POLITENESS_SETTINGS.polite,
|
|
64
|
-
visible: false
|
|
65
|
-
};
|
|
66
57
|
var _default = BpkAriaLive;
|
|
67
58
|
exports.default = _default;
|