@cruk/cruk-react-components 2.0.1 → 3.1.0
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/lib/components/AddressLookup/AddressLookUp.test.cypress.d.ts +1 -1
- package/lib/components/AddressLookup/AddressLookup.stories.d.ts +37 -7
- package/lib/components/AddressLookup/index.d.ts +65 -61
- package/lib/components/AddressLookup/styles.d.ts +14 -14
- package/lib/components/Avatar/Avatar.stories.d.ts +33 -20
- package/lib/components/Avatar/Avatar.test.cypress.d.ts +1 -1
- package/lib/components/Avatar/index.d.ts +15 -15
- package/lib/components/Avatar/styles.d.ts +7 -7
- package/lib/components/Badge/Badge.stories.d.ts +27 -16
- package/lib/components/Badge/Badge.test.cypress.d.ts +1 -1
- package/lib/components/Badge/index.d.ts +28 -28
- package/lib/components/Badge/styles.d.ts +11 -11
- package/lib/components/Box/Box.stories.d.ts +20 -13
- package/lib/components/Box/Box.test.cypress.d.ts +1 -1
- package/lib/components/Box/index.d.ts +17 -17
- package/lib/components/Box/styles.d.ts +8 -8
- package/lib/components/Button/Button.stories.d.ts +39 -15
- package/lib/components/Button/Button.test.cypress.d.ts +1 -1
- package/lib/components/Button/index.d.ts +46 -46
- package/lib/components/Button/styles.d.ts +15 -13
- package/lib/components/Carousel/Carousel.stories.d.ts +15 -7
- package/lib/components/Carousel/Carousel.test.cypress.d.ts +1 -1
- package/lib/components/Carousel/Dots.d.ts +12 -12
- package/lib/components/Carousel/index.d.ts +20 -20
- package/lib/components/Carousel/styles.d.ts +33 -33
- package/lib/components/Checkbox/CheckBox.test.cypress.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.stories.d.ts +26 -8
- package/lib/components/Checkbox/index.d.ts +23 -23
- package/lib/components/Checkbox/styles.d.ts +16 -13
- package/lib/components/Collapse/Collapse.stories.d.ts +24 -13
- package/lib/components/Collapse/Collapse.test.cypress.d.ts +1 -1
- package/lib/components/Collapse/index.d.ts +29 -29
- package/lib/components/Collapse/styles.d.ts +26 -26
- package/lib/components/DateField/DateField.stories.d.ts +30 -10
- package/lib/components/DateField/DateField.test.cypress.d.ts +1 -1
- package/lib/components/DateField/index.d.ts +32 -32
- package/lib/components/DateField/styles.d.ts +9 -4
- package/lib/components/Divider.d.ts +6 -6
- package/lib/components/ErrorText/ErrorText.stories.d.ts +16 -7
- package/lib/components/ErrorText/ErrorText.test.cypress.d.ts +1 -1
- package/lib/components/ErrorText/index.d.ts +13 -13
- package/lib/components/ErrorText/styles.d.ts +7 -3
- package/lib/components/Flex.d.ts +3 -3
- package/lib/components/Fontface.d.ts +2 -2
- package/lib/components/Footer/Footer.stories.d.ts +14 -7
- package/lib/components/Footer/Footer.test.cypress.d.ts +1 -1
- package/lib/components/Footer/index.d.ts +11 -11
- package/lib/components/Footer/styles.d.ts +16 -11
- package/lib/components/GlobalStyle.d.ts +9 -9
- package/lib/components/GlobalStyleNoFontFace.d.ts +9 -9
- package/lib/components/Header/Header.stories.d.ts +21 -7
- package/lib/components/Header/Header.test.cypress.d.ts +1 -1
- package/lib/components/Header/index.d.ts +37 -37
- package/lib/components/Header/styles.d.ts +37 -31
- package/lib/components/Heading/Heading.stories.d.ts +32 -25
- package/lib/components/Heading/Heading.test.cypress.d.ts +1 -1
- package/lib/components/Heading/index.d.ts +32 -32
- package/lib/components/Heading/styles.d.ts +50 -50
- package/lib/components/Icon/Icon.stories.d.ts +16 -6
- package/lib/components/Icon/Icon.test.cypress.d.ts +1 -1
- package/lib/components/Icon/iconList.d.ts +268 -268
- package/lib/components/Icon/index.d.ts +23 -23
- package/lib/components/Icon/styles.d.ts +5 -5
- package/lib/components/IconFa/IconFa.stories.d.ts +17 -7
- package/lib/components/IconFa/IconFa.test.cypress.d.ts +1 -1
- package/lib/components/IconFa/index.d.ts +17 -17
- package/lib/components/IconFa/styles.d.ts +5 -5
- package/lib/components/InfoBox/InfoBox.stories.d.ts +22 -9
- package/lib/components/InfoBox/InfoBox.test.cypress.d.ts +1 -1
- package/lib/components/InfoBox/index.d.ts +27 -27
- package/lib/components/InfoBox/styles.d.ts +14 -14
- package/lib/components/LabelWrapper/index.d.ts +19 -19
- package/lib/components/LabelWrapper/styles.d.ts +6 -6
- package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +22 -11
- package/lib/components/LegendWrapper/LegendWrapper.test.cypress.d.ts +1 -1
- package/lib/components/LegendWrapper/index.d.ts +22 -22
- package/lib/components/LegendWrapper/styles.d.ts +12 -12
- package/lib/components/Link/Link.stories.d.ts +33 -14
- package/lib/components/Link/Link.test.cypress.d.ts +1 -1
- package/lib/components/Link/index.d.ts +37 -37
- package/lib/components/Link/styles.d.ts +22 -18
- package/lib/components/Loader/Loader.stories.d.ts +14 -6
- package/lib/components/Loader/Loader.test.cypress.d.ts +1 -1
- package/lib/components/Loader/index.d.ts +7 -7
- package/lib/components/Loader/styles.d.ts +7 -2
- package/lib/components/Modal/Modal.stories.d.ts +14 -7
- package/lib/components/Modal/Modal.test.cypress.d.ts +1 -1
- package/lib/components/Modal/index.d.ts +32 -32
- package/lib/components/Modal/styles.d.ts +27 -24
- package/lib/components/Pagination/Pagination.stories.d.ts +21 -8
- package/lib/components/Pagination/Pagination.test.cypress.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +24 -24
- package/lib/components/Pagination/styles.d.ts +14 -10
- package/lib/components/PopOver/PopOver.test.cypress.d.ts +1 -1
- package/lib/components/PopOver/Popover.stories.d.ts +19 -7
- package/lib/components/PopOver/index.d.ts +26 -24
- package/lib/components/PopOver/styles.d.ts +11 -10
- package/lib/components/ProgressBar/ProgressBar.stories.d.ts +20 -10
- package/lib/components/ProgressBar/ProgressBar.test.cypress.d.ts +1 -1
- package/lib/components/ProgressBar/index.d.ts +24 -24
- package/lib/components/ProgressBar/styles.d.ts +30 -30
- package/lib/components/Radio/Radio.stories.d.ts +28 -8
- package/lib/components/Radio/Radio.test.cypress.d.ts +1 -1
- package/lib/components/Radio/index.d.ts +23 -23
- package/lib/components/Radio/styles.d.ts +21 -19
- package/lib/components/RadioConsent/Radio.stories.d.ts +21 -7
- package/lib/components/RadioConsent/RadioConsent.test.cypress.d.ts +1 -1
- package/lib/components/RadioConsent/index.d.ts +24 -24
- package/lib/components/RadioConsent/styles.d.ts +16 -16
- package/lib/components/Select/Select.test.cypress.d.ts +1 -1
- package/lib/components/Select/Selelct.stories.d.ts +24 -10
- package/lib/components/Select/index.d.ts +21 -21
- package/lib/components/Select/styles.d.ts +9 -9
- package/lib/components/Spacing/index.d.ts +19 -19
- package/lib/components/Step/Step.stories.d.ts +17 -7
- package/lib/components/Step/Step.test.cypress.d.ts +1 -1
- package/lib/components/Step/index.d.ts +15 -15
- package/lib/components/Step/styles.d.ts +17 -13
- package/lib/components/TestWrapper.d.ts +12 -12
- package/lib/components/Text/Text.stories.d.ts +17 -7
- package/lib/components/Text/Text.test.cypress.d.ts +1 -1
- package/lib/components/Text/index.d.ts +26 -26
- package/lib/components/Text/styles.d.ts +22 -22
- package/lib/components/TextAreaField/TextAreaField.stories.d.ts +29 -10
- package/lib/components/TextAreaField/TextAreaField.test.cypress.d.ts +1 -1
- package/lib/components/TextAreaField/index.d.ts +22 -22
- package/lib/components/TextAreaField/styles.d.ts +10 -10
- package/lib/components/TextField/TextField.stories.d.ts +27 -12
- package/lib/components/TextField/TextField.test.cypress.d.ts +1 -1
- package/lib/components/TextField/index.d.ts +34 -34
- package/lib/components/TextField/styles.d.ts +18 -18
- package/lib/components/ThemeCheatSheet.d.ts +7 -7
- package/lib/components/Totaliser/Totaliser.stories.d.ts +28 -19
- package/lib/components/Totaliser/Totaliser.test.cypress.d.ts +1 -1
- package/lib/components/Totaliser/index.d.ts +22 -22
- package/lib/components/Totaliser/styles.d.ts +20 -16
- package/lib/components/UserBlock/UserBlock.stories.d.ts +24 -16
- package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +1 -1
- package/lib/components/UserBlock/index.d.ts +18 -18
- package/lib/components/UserBlock/styles.d.ts +9 -4
- package/lib/components/index.d.ts +73 -73
- package/lib/docs/Docs.d.ts +3 -2
- package/lib/docs/index.d.ts +1 -1
- package/lib/es/{node_modules/tslib/tslib.es6.js → _virtual/_tslib.js} +1 -1
- package/lib/es/_virtual/_tslib.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +1 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -1
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/lib/es/src/components/AddressLookup/README.md.js +1 -1
- package/lib/es/src/components/AddressLookup/README.md.js.map +1 -1
- package/lib/es/src/components/AddressLookup/index.js +1 -1
- package/lib/es/src/components/AddressLookup/styles.js +1 -1
- package/lib/es/src/components/Avatar/index.js +1 -1
- package/lib/es/src/components/Avatar/styles.js +1 -1
- package/lib/es/src/components/Badge/index.js +1 -1
- package/lib/es/src/components/Badge/styles.js +1 -1
- package/lib/es/src/components/Box/index.js +1 -1
- package/lib/es/src/components/Box/styles.js +1 -1
- package/lib/es/src/components/Button/index.js +1 -1
- package/lib/es/src/components/Button/styles.js +1 -1
- package/lib/es/src/components/Carousel/Dots.js +1 -1
- package/lib/es/src/components/Carousel/styles.js +1 -1
- package/lib/es/src/components/Checkbox/index.js +1 -1
- package/lib/es/src/components/Checkbox/styles.js +1 -1
- package/lib/es/src/components/Collapse/index.js +1 -1
- package/lib/es/src/components/Collapse/styles.js +1 -1
- package/lib/es/src/components/DateField/styles.js +1 -1
- package/lib/es/src/components/Divider.js +1 -1
- package/lib/es/src/components/ErrorText/index.js +1 -1
- package/lib/es/src/components/ErrorText/styles.js +1 -1
- package/lib/es/src/components/Flex.js +1 -1
- package/lib/es/src/components/Footer/index.js +1 -1
- package/lib/es/src/components/Footer/styles.js +1 -1
- package/lib/es/src/components/GlobalStyle.js +1 -1
- package/lib/es/src/components/GlobalStyleNoFontFace.js +1 -1
- package/lib/es/src/components/Header/index.js +1 -1
- package/lib/es/src/components/Header/styles.js +1 -1
- package/lib/es/src/components/Heading/index.js +1 -1
- package/lib/es/src/components/Heading/styles.js +1 -1
- package/lib/es/src/components/Icon/index.js +1 -1
- package/lib/es/src/components/Icon/styles.js +1 -1
- package/lib/es/src/components/IconFa/index.js +1 -1
- package/lib/es/src/components/IconFa/styles.js +1 -1
- package/lib/es/src/components/InfoBox/index.js +1 -1
- package/lib/es/src/components/InfoBox/styles.js +1 -1
- package/lib/es/src/components/LabelWrapper/index.js +1 -1
- package/lib/es/src/components/LabelWrapper/styles.js +1 -1
- package/lib/es/src/components/LegendWrapper/index.js +1 -1
- package/lib/es/src/components/LegendWrapper/styles.js +1 -1
- package/lib/es/src/components/Link/index.js +1 -1
- package/lib/es/src/components/Link/styles.js +1 -1
- package/lib/es/src/components/Loader/index.js +1 -1
- package/lib/es/src/components/Loader/styles.js +1 -1
- package/lib/es/src/components/Modal/index.js +1 -1
- package/lib/es/src/components/Modal/styles.js +1 -1
- package/lib/es/src/components/Pagination/index.js +1 -1
- package/lib/es/src/components/Pagination/styles.js +1 -1
- package/lib/es/src/components/PopOver/README.md.js +1 -1
- package/lib/es/src/components/PopOver/README.md.js.map +1 -1
- package/lib/es/src/components/PopOver/index.js +1 -1
- package/lib/es/src/components/PopOver/styles.js +1 -1
- package/lib/es/src/components/ProgressBar/index.js +1 -1
- package/lib/es/src/components/ProgressBar/styles.js +1 -1
- package/lib/es/src/components/Radio/index.js +1 -1
- package/lib/es/src/components/Radio/styles.js +1 -1
- package/lib/es/src/components/RadioConsent/index.js +1 -1
- package/lib/es/src/components/RadioConsent/styles.js +1 -1
- package/lib/es/src/components/Select/index.js +1 -1
- package/lib/es/src/components/Select/styles.js +1 -1
- package/lib/es/src/components/Step/index.js +1 -1
- package/lib/es/src/components/Step/styles.js +1 -1
- package/lib/es/src/components/Text/index.js +1 -1
- package/lib/es/src/components/Text/styles.js +1 -1
- package/lib/es/src/components/TextAreaField/index.js +1 -1
- package/lib/es/src/components/TextAreaField/styles.js +1 -1
- package/lib/es/src/components/TextField/index.js +1 -1
- package/lib/es/src/components/TextField/styles.js +1 -1
- package/lib/es/src/components/Totaliser/index.js +1 -1
- package/lib/es/src/components/Totaliser/styles.js +1 -1
- package/lib/es/src/components/UserBlock/index.js +1 -1
- package/lib/es/src/components/UserBlock/styles.js +1 -1
- package/lib/es/src/themes/bowelbabe.js +1 -1
- package/lib/es/src/themes/su2c.js +1 -1
- package/lib/es/src/utils/Helper.js +1 -1
- package/lib/hocs/MdxProvider.d.ts +7 -6
- package/lib/hooks/useEffectBrowser.d.ts +3 -3
- package/lib/hooks/useKey.d.ts +6 -6
- package/lib/hooks/useLayoutEffectBrowser.d.ts +4 -4
- package/lib/hooks/useScrollPosition.d.ts +13 -13
- package/lib/themes/bowelbabe.d.ts +13 -13
- package/lib/themes/cruk.d.ts +13 -13
- package/lib/themes/su2c.d.ts +13 -13
- package/lib/types.d.ts +232 -232
- package/lib/utils/Helper.d.ts +7 -6
- package/lib/utils/__tests__/testHelpers.jest.d.ts +1 -1
- package/lib/utils/debounce.d.ts +2 -2
- package/package.json +22 -16
- package/lib/es/node_modules/detect-node-es/esm/node.js +0 -2
- package/lib/es/node_modules/detect-node-es/esm/node.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/AutoFocusInside.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FreeFocusInside.js.map +0 -1
- package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js +0 -2
- package/lib/es/node_modules/react-focus-lock/dist/es2015/MoveFocusInside.js.map +0 -1
- package/lib/es/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
export { default as AddressLookup } from "./AddressLookup";
|
|
2
|
-
export { default as Avatar } from "./Avatar";
|
|
3
|
-
export { default as Badge } from "./Badge";
|
|
4
|
-
export { default as Box } from "./Box";
|
|
5
|
-
export { default as Button } from "./Button";
|
|
6
|
-
export { default as Carousel } from "./Carousel";
|
|
7
|
-
export { default as Checkbox } from "./Checkbox";
|
|
8
|
-
export { default as Collapse } from "./Collapse";
|
|
9
|
-
export { default as DateField } from "./DateField";
|
|
10
|
-
export { default as Divider } from "./Divider";
|
|
11
|
-
export { default as ErrorText } from "./ErrorText";
|
|
12
|
-
export { default as Flex } from "./Flex";
|
|
13
|
-
export { default as Fontface } from "./Fontface";
|
|
14
|
-
export { default as Footer } from "./Footer";
|
|
15
|
-
export { default as GlobalStyle } from "./GlobalStyle";
|
|
16
|
-
export { default as GlobalStyleNoFontFace } from "./GlobalStyleNoFontFace";
|
|
17
|
-
export { default as Header } from "./Header";
|
|
18
|
-
export { default as Heading } from "./Heading";
|
|
19
|
-
export { default as Icon } from "./Icon";
|
|
20
|
-
export { default as IconFa } from "./IconFa";
|
|
21
|
-
export { default as LabelWrapper } from "./LabelWrapper";
|
|
22
|
-
export { default as LegendWrapper } from "./LegendWrapper";
|
|
23
|
-
export { default as Link } from "./Link";
|
|
24
|
-
export { default as Loader } from "./Loader";
|
|
25
|
-
export { default as Modal } from "./Modal";
|
|
26
|
-
export { default as Pagination } from "./Pagination";
|
|
27
|
-
export { default as PopOver } from "./PopOver";
|
|
28
|
-
export { default as ProgressBar } from "./ProgressBar";
|
|
29
|
-
export { default as Radio } from "./Radio";
|
|
30
|
-
export { default as RadioConsent } from "./RadioConsent";
|
|
31
|
-
export { default as Select } from "./Select";
|
|
32
|
-
export { default as Step } from "./Step";
|
|
33
|
-
export { default as Text } from "./Text";
|
|
34
|
-
export { default as TextAreaField } from "./TextAreaField";
|
|
35
|
-
export { default as TextField } from "./TextField";
|
|
36
|
-
export { default as Totaliser } from "./Totaliser";
|
|
37
|
-
export { default as UserBlock } from "./UserBlock";
|
|
38
|
-
export { default as InfoBox } from "./InfoBox";
|
|
39
|
-
export { default as bowelbabeTheme } from "../themes/bowelbabe";
|
|
40
|
-
export { default as crukTheme } from "../themes/cruk";
|
|
41
|
-
export { default as su2cTheme } from "../themes/su2c";
|
|
42
|
-
export { default as AddressLookupReadme } from "./AddressLookup/README.md";
|
|
43
|
-
export { default as AvatarReadme } from "./Avatar/README.md";
|
|
44
|
-
export { default as BadgeReadme } from "./Badge/README.md";
|
|
45
|
-
export { default as BoxReadme } from "./Box/README.md";
|
|
46
|
-
export { default as ButtonReadme } from "./Button/README.md";
|
|
47
|
-
export { default as CheckboxReadme } from "./Checkbox/README.md";
|
|
48
|
-
export { default as CollapseReadme } from "./Collapse/README.md";
|
|
49
|
-
export { default as DateFieldReadme } from "./DateField/README.md";
|
|
50
|
-
export { default as ErrorTextReadme } from "./ErrorText/README.md";
|
|
51
|
-
export { default as FooterReadme } from "./Footer/README.md";
|
|
52
|
-
export { default as HeadingReadme } from "./Heading/README.md";
|
|
53
|
-
export { default as HeaderReadme } from "./Header/README.md";
|
|
54
|
-
export { default as IconReadme } from "./Icon/README.md";
|
|
55
|
-
export { default as IconFaReadme } from "./IconFa/README.md";
|
|
56
|
-
export { default as InfoBoxReadme } from "./InfoBox/README.md";
|
|
57
|
-
export { default as LinkReadme } from "./Link/README.md";
|
|
58
|
-
export { default as LegendWrapperReadme } from "./LegendWrapper/README.md";
|
|
59
|
-
export { default as LoaderReadme } from "./Loader/README.md";
|
|
60
|
-
export { default as ModalReadme } from "./Modal/README.md";
|
|
61
|
-
export { default as PaginationReadme } from "./Pagination/README.md";
|
|
62
|
-
export { default as PopOverReadme } from "./PopOver/README.md";
|
|
63
|
-
export { default as ProgressBarReadme } from "./ProgressBar/README.md";
|
|
64
|
-
export { default as RadioReadme } from "./Radio/README.md";
|
|
65
|
-
export { default as RadioConsentReadme } from "./RadioConsent/README.md";
|
|
66
|
-
export { default as SelectReadme } from "./Select/README.md";
|
|
67
|
-
export { default as StepReadme } from "./Step/README.md";
|
|
68
|
-
export { default as TextReadme } from "./Text/README.md";
|
|
69
|
-
export { default as TextAreaFieldReadme } from "./TextAreaField/README.md";
|
|
70
|
-
export { default as TextFieldReadme } from "./TextField/README.md";
|
|
71
|
-
export { default as TotaliserReadme } from "./Totaliser/README.md";
|
|
72
|
-
export { default as UserBlockReadme } from "./UserBlock/README.md";
|
|
73
|
-
export * from "../types";
|
|
1
|
+
export { default as AddressLookup } from "./AddressLookup";
|
|
2
|
+
export { default as Avatar } from "./Avatar";
|
|
3
|
+
export { default as Badge } from "./Badge";
|
|
4
|
+
export { default as Box } from "./Box";
|
|
5
|
+
export { default as Button } from "./Button";
|
|
6
|
+
export { default as Carousel } from "./Carousel";
|
|
7
|
+
export { default as Checkbox } from "./Checkbox";
|
|
8
|
+
export { default as Collapse } from "./Collapse";
|
|
9
|
+
export { default as DateField } from "./DateField";
|
|
10
|
+
export { default as Divider } from "./Divider";
|
|
11
|
+
export { default as ErrorText } from "./ErrorText";
|
|
12
|
+
export { default as Flex } from "./Flex";
|
|
13
|
+
export { default as Fontface } from "./Fontface";
|
|
14
|
+
export { default as Footer } from "./Footer";
|
|
15
|
+
export { default as GlobalStyle } from "./GlobalStyle";
|
|
16
|
+
export { default as GlobalStyleNoFontFace } from "./GlobalStyleNoFontFace";
|
|
17
|
+
export { default as Header } from "./Header";
|
|
18
|
+
export { default as Heading } from "./Heading";
|
|
19
|
+
export { default as Icon } from "./Icon";
|
|
20
|
+
export { default as IconFa } from "./IconFa";
|
|
21
|
+
export { default as LabelWrapper } from "./LabelWrapper";
|
|
22
|
+
export { default as LegendWrapper } from "./LegendWrapper";
|
|
23
|
+
export { default as Link } from "./Link";
|
|
24
|
+
export { default as Loader } from "./Loader";
|
|
25
|
+
export { default as Modal } from "./Modal";
|
|
26
|
+
export { default as Pagination } from "./Pagination";
|
|
27
|
+
export { default as PopOver } from "./PopOver";
|
|
28
|
+
export { default as ProgressBar } from "./ProgressBar";
|
|
29
|
+
export { default as Radio } from "./Radio";
|
|
30
|
+
export { default as RadioConsent } from "./RadioConsent";
|
|
31
|
+
export { default as Select } from "./Select";
|
|
32
|
+
export { default as Step } from "./Step";
|
|
33
|
+
export { default as Text } from "./Text";
|
|
34
|
+
export { default as TextAreaField } from "./TextAreaField";
|
|
35
|
+
export { default as TextField } from "./TextField";
|
|
36
|
+
export { default as Totaliser } from "./Totaliser";
|
|
37
|
+
export { default as UserBlock } from "./UserBlock";
|
|
38
|
+
export { default as InfoBox } from "./InfoBox";
|
|
39
|
+
export { default as bowelbabeTheme } from "../themes/bowelbabe";
|
|
40
|
+
export { default as crukTheme } from "../themes/cruk";
|
|
41
|
+
export { default as su2cTheme } from "../themes/su2c";
|
|
42
|
+
export { default as AddressLookupReadme } from "./AddressLookup/README.md";
|
|
43
|
+
export { default as AvatarReadme } from "./Avatar/README.md";
|
|
44
|
+
export { default as BadgeReadme } from "./Badge/README.md";
|
|
45
|
+
export { default as BoxReadme } from "./Box/README.md";
|
|
46
|
+
export { default as ButtonReadme } from "./Button/README.md";
|
|
47
|
+
export { default as CheckboxReadme } from "./Checkbox/README.md";
|
|
48
|
+
export { default as CollapseReadme } from "./Collapse/README.md";
|
|
49
|
+
export { default as DateFieldReadme } from "./DateField/README.md";
|
|
50
|
+
export { default as ErrorTextReadme } from "./ErrorText/README.md";
|
|
51
|
+
export { default as FooterReadme } from "./Footer/README.md";
|
|
52
|
+
export { default as HeadingReadme } from "./Heading/README.md";
|
|
53
|
+
export { default as HeaderReadme } from "./Header/README.md";
|
|
54
|
+
export { default as IconReadme } from "./Icon/README.md";
|
|
55
|
+
export { default as IconFaReadme } from "./IconFa/README.md";
|
|
56
|
+
export { default as InfoBoxReadme } from "./InfoBox/README.md";
|
|
57
|
+
export { default as LinkReadme } from "./Link/README.md";
|
|
58
|
+
export { default as LegendWrapperReadme } from "./LegendWrapper/README.md";
|
|
59
|
+
export { default as LoaderReadme } from "./Loader/README.md";
|
|
60
|
+
export { default as ModalReadme } from "./Modal/README.md";
|
|
61
|
+
export { default as PaginationReadme } from "./Pagination/README.md";
|
|
62
|
+
export { default as PopOverReadme } from "./PopOver/README.md";
|
|
63
|
+
export { default as ProgressBarReadme } from "./ProgressBar/README.md";
|
|
64
|
+
export { default as RadioReadme } from "./Radio/README.md";
|
|
65
|
+
export { default as RadioConsentReadme } from "./RadioConsent/README.md";
|
|
66
|
+
export { default as SelectReadme } from "./Select/README.md";
|
|
67
|
+
export { default as StepReadme } from "./Step/README.md";
|
|
68
|
+
export { default as TextReadme } from "./Text/README.md";
|
|
69
|
+
export { default as TextAreaFieldReadme } from "./TextAreaField/README.md";
|
|
70
|
+
export { default as TextFieldReadme } from "./TextField/README.md";
|
|
71
|
+
export { default as TotaliserReadme } from "./Totaliser/README.md";
|
|
72
|
+
export { default as UserBlockReadme } from "./UserBlock/README.md";
|
|
73
|
+
export * from "../types";
|
package/lib/docs/Docs.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Docs: () => JSX.Element;
|
|
3
|
+
export default Docs;
|
package/lib/docs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var r=function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},r.apply(this,arguments)};function e(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t}function t(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}export{r as __assign,t as __makeTemplateObject,e as __rest};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=_tslib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_tslib.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{setFocus as
|
|
1
|
+
import{setFocus as o}from"./setFocus.js";var r=o;export{r as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/index.js"],"sourcesContent":["import * as constants from './constants';\nimport { focusInside } from './focusInside';\nimport { focusIsHidden } from './focusIsHidden';\nimport { getFocusMerge as focusMerge } from './focusMerge';\nimport { getFocusabledIn, getFocusableIn } from './focusables';\nimport { setFocus } from './setFocus';\nimport { focusNextElement, focusPrevElement } from './sibling';\nimport tabHook from './tabHook';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getActiveElement } from './utils/getActiveElement';\nexport { tabHook, focusInside, focusIsHidden, focusMerge, getFocusableIn, getFocusabledIn, constants, getAllAffectedNodes, focusNextElement, focusPrevElement, getActiveElement, };\nexport default setFocus;\n//\n"],"names":["moveFocusInside","setFocus"],"mappings":"yCAWA,IAAAA,EAAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safe.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/safe.js"],"sourcesContent":["export var safeProbe = function (cb) {\n try {\n return cb();\n }\n catch (e) {\n return undefined;\n }\n};\n"],"names":["safeProbe","cb","e"],"mappings":"AAAU,IAACA,EAAY,SAAUC,GAC7B,IACI,OAAOA,
|
|
1
|
+
{"version":3,"file":"safe.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/safe.js"],"sourcesContent":["export var safeProbe = function (cb) {\n try {\n return cb();\n }\n catch (e) {\n return undefined;\n }\n};\n"],"names":["safeProbe","cb","e"],"mappings":"AAAU,IAACA,EAAY,SAAUC,GAC7B,IACI,OAAOA,GACV,CACD,MAAOC,GACH,MACH,CACL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import s from"./Lock.js";import t from"./Trap.js";var p=o.forwardRef((function(r,p){return o.createElement(s,e({sideCar:t,ref:p},r))})),
|
|
1
|
+
import r from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import s from"./Lock.js";import t from"./Trap.js";var p=o.forwardRef((function(r,p){return o.createElement(s,e({sideCar:t,ref:p},r))})),a=s.propTypes||{};a.sideCar;var m=r(a,["sideCar"]);p.propTypes="production"!==process.env.NODE_ENV?m:{};var i=p;export{i as default};
|
|
2
2
|
//# sourceMappingURL=Combination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combination.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Combination.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport FocusLockUI from './Lock';\nimport FocusTrap from './Trap';\n/* that would be a BREAKING CHANGE!\n// delaying sidecar execution till the first usage\nconst RequireSideCar = (props) => {\n // eslint-disable-next-line global-require\n const SideCar = require('./Trap').default;\n return <SideCar {...props} />;\n};\n*/\n\nvar FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {\n return /*#__PURE__*/React.createElement(FocusLockUI, _extends({\n sideCar: FocusTrap,\n ref: ref\n }, props));\n});\n\nvar _ref = FocusLockUI.propTypes || {},\n sideCar = _ref.sideCar,\n propTypes = _objectWithoutPropertiesLoose(_ref, [\"sideCar\"]);\n\nFocusLockCombination.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nexport default FocusLockCombination;"],"names":["FocusLockCombination","React","forwardRef","props","ref","createElement","FocusLockUI","_extends","sideCar","FocusTrap","_ref","propTypes","_objectWithoutPropertiesLoose","process","env","NODE_ENV"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Combination.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Combination.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport FocusLockUI from './Lock';\nimport FocusTrap from './Trap';\n/* that would be a BREAKING CHANGE!\n// delaying sidecar execution till the first usage\nconst RequireSideCar = (props) => {\n // eslint-disable-next-line global-require\n const SideCar = require('./Trap').default;\n return <SideCar {...props} />;\n};\n*/\n\nvar FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {\n return /*#__PURE__*/React.createElement(FocusLockUI, _extends({\n sideCar: FocusTrap,\n ref: ref\n }, props));\n});\n\nvar _ref = FocusLockUI.propTypes || {},\n sideCar = _ref.sideCar,\n propTypes = _objectWithoutPropertiesLoose(_ref, [\"sideCar\"]);\n\nFocusLockCombination.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nexport default FocusLockCombination;"],"names":["FocusLockCombination","React","forwardRef","props","ref","createElement","FocusLockUI","_extends","sideCar","FocusTrap","_ref","propTypes","_objectWithoutPropertiesLoose","process","env","NODE_ENV","FocusLock"],"mappings":"2NAcA,IAAIA,EAAoCC,EAAMC,YAAW,SAAgCC,EAAOC,GAC9F,OAAoBH,EAAMI,cAAcC,EAAaC,EAAS,CAC5DC,QAASC,EACTL,IAAKA,GACJD,GACL,IAEIO,EAAOJ,EAAYK,WAAa,GACtBD,EAAKF,QACf,IAAAG,EAAYC,EAA8BF,EAAM,CAAC,YAErDV,EAAqBW,UAAqC,eAAzBE,QAAQC,IAAIC,SAA4BJ,EAAY,GACrF,IAAAK,EAAehB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import{useEffect as t}from"react";import{node as s,bool as r,oneOfType as n,object as a,func as c,string as i,arrayOf as u,any as d}from"prop-types";import{FOCUS_DISABLED as l,FOCUS_GROUP as f}from"../../../focus-lock/dist/es2015/constants.js";import{
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import{useEffect as t}from"react";import{node as s,bool as r,oneOfType as n,object as a,func as c,string as i,arrayOf as u,any as d}from"prop-types";import{FOCUS_DISABLED as l,FOCUS_GROUP as f}from"../../../focus-lock/dist/es2015/constants.js";import{hiddenGuard as v}from"./FocusGuard.js";import{mediumFocus as m,mediumBlur as p,mediumSidecar as F}from"./medium.js";import{useMergeRefs as b}from"../../../use-callback-ref/dist/es2015/useMergeRef.js";var h=[],k=o.forwardRef((function(s,r){var n,a=o.useState(),c=a[0],i=a[1],u=o.useRef(),d=o.useRef(!1),k=o.useRef(null),E=s.children,g=s.disabled,y=s.noFocusGuards,w=s.persistentFocus,x=s.crossFrame,C=s.autoFocus,N=s.allowTextSelection,P=s.group,R=s.className,j=s.whiteList,D=s.hasPositiveIndices,I=s.shards,L=void 0===I?h:I,O=s.as,S=void 0===O?"div":O,T=s.lockProps,A=void 0===T?{}:T,G=s.sideCar,M=s.returnFocus,V=s.focusOptions,_=s.onActivation,q=s.onDeactivation,B=o.useState({})[0],z=o.useCallback((function(){k.current=k.current||document&&document.activeElement,u.current&&_&&_(u.current),d.current=!0}),[_]),H=o.useCallback((function(){d.current=!1,q&&q(u.current)}),[q]);t((function(){g||(k.current=null)}),[]);var J=o.useCallback((function(e){var o=k.current;if(o&&o.focus){var t="function"==typeof M?M(o):M;if(t){var s="object"==typeof t?t:void 0;k.current=null,e?Promise.resolve().then((function(){return o.focus(s)})):o.focus(s)}}}),[M]),K=o.useCallback((function(e){d.current&&m.useMedium(e)}),[]),Q=p.useMedium,U=o.useCallback((function(e){u.current!==e&&(u.current=e,i(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==N&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),o.useEffect((function(){u.current||"string"==typeof S||console.error("FocusLock: could not obtain ref to internal node")}),[]));var W=e(((n={})[l]=g&&"disabled",n[f]=P,n),A),X=!0!==y,Y=X&&"tail"!==y,Z=b([r,U]);return o.createElement(o.Fragment,null,X&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:v}),D?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:v}):null],!g&&o.createElement(G,{id:B,sideCar:F,observed:c,disabled:g,persistentFocus:w,crossFrame:x,autoFocus:C,whiteList:j,shards:L,onActivation:z,onDeactivation:H,returnFocus:J,focusOptions:V}),o.createElement(S,e({ref:Z},W,{className:R,onBlur:Q,onFocus:K}),E),Y&&o.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:v}))}));k.propTypes="production"!==process.env.NODE_ENV?{children:s,disabled:r,returnFocus:n([r,a,c]),focusOptions:a,noFocusGuards:r,hasPositiveIndices:r,allowTextSelection:r,autoFocus:r,persistentFocus:r,crossFrame:r,group:i,className:i,whiteList:c,shards:u(d),as:n([i,c,a]),lockProps:a,onActivation:c,onDeactivation:c,sideCar:d.isRequired}:{},k.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var E=k;export{E as default};
|
|
2
2
|
//# sourceMappingURL=Lock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lock.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Lock.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { useEffect } from 'react';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var children = props.children,\n disabled = props.disabled,\n noFocusGuards = props.noFocusGuards,\n persistentFocus = props.persistentFocus,\n crossFrame = props.crossFrame,\n autoFocus = props.autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n shouldReturnFocus = props.returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n\n var _React$useState2 = React.useState({}),\n id = _React$useState2[0]; // SIDE EFFECT CALLBACKS\n\n\n var onActivation = React.useCallback(function () {\n originalFocusedElement.current = originalFocusedElement.current || document && document.activeElement;\n\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n\n isActive.current = true;\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n }, [onDeactivationCallback]);\n useEffect(function () {\n if (!disabled) {\n // cleanup return focus on trap deactivation\n // sideEffect/returnFocus should happen by this time\n originalFocusedElement.current = null;\n }\n }, []);\n var returnFocus = React.useCallback(function (allowDefer) {\n var returnFocusTo = originalFocusedElement.current;\n\n if (returnFocusTo && returnFocusTo.focus) {\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n\n if (allowDefer) {\n // React might return focus after update\n // it's safer to defer the action\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]); // MEDIUM CALLBACKS\n\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium; // REF PROPAGATION\n // not using real refs due to race conditions\n\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n\n React.useEffect(function () {\n // report incorrect integration - https://github.com/theKashey/react-focus-lock/issues/123\n if (!observed.current && typeof Container !== 'string') {\n // eslint-disable-next-line no-console\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), // first tabbed element guard\n hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), children), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nFocusLock.defaultProps = {\n children: undefined,\n disabled: false,\n returnFocus: false,\n focusOptions: undefined,\n noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\n hasPositiveIndices: undefined,\n allowTextSelection: undefined,\n group: undefined,\n className: undefined,\n whiteList: undefined,\n shards: undefined,\n as: 'div',\n lockProps: {},\n onActivation: undefined,\n onDeactivation: undefined\n};\nexport default FocusLock;"],"names":["emptyArray","FocusLock","React","forwardRef","props","parentRef","_extends2","_React$useState","useState","realObserved","setObserved","observed","useRef","isActive","originalFocusedElement","children","disabled","noFocusGuards","persistentFocus","crossFrame","autoFocus","allowTextSelection","group","className","whiteList","hasPositiveIndices","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","returnFocusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","error","_extends","constants.FOCUS_DISABLED","constants.FOCUS_GROUP","hasLeadingGuards","hasTailingGuards","mergedRef","useMergeRefs","createElement","Fragment","key","tabIndex","style","hiddenGuard","mediumSidecar","ref","propTypes","node","bool","oneOfType","object","func","string","arrayOf","any","isRequired","defaultProps"],"mappings":"yhBAQA,IAAIA,EAAa,GACbC,EAAyBC,EAAMC,YAAW,SAAqBC,EAAOC,GACxE,IAAIC,EAEAC,EAAkBL,EAAMM,WACxBC,EAAeF,EAAgB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,OAAQA,EACRa,aAAcA,EACdE,eAAgBA,EAChBL,YAAaA,EACbC,aAAcA,IACCpC,EAAM6E,cAAcjD,EAAW0C,EAAS,CACvDc,IAAKT,GACJ7C,EAAW,CACZT,UAAWA,EACXuC,OAAQA,EACRJ,QAASA,IACP3C,GAAW6D,GAAiC1E,EAAM6E,cAAc,MAAO,CACzE,oBAAoB,EACpBG,SAAUlE,GAAY,EAAI,EAC1BmE,MAAOC,IAEX,IACAnF,EAAUsF,UAAqC,eAAzBrB,QAAQC,IAAIC,SAA4B,CAC5DrD,SAAUyE,EACVxE,SAAUyE,EACVpD,YAAaqD,EAAU,CAACD,EAAME,EAAQC,IACtCtD,aAAcqD,EACd1E,cAAewE,EACfhE,mBAAoBgE,EACpBpE,mBAAoBoE,EACpBrE,UAAWqE,EACXvE,gBAAiBuE,EACjBtE,WAAYsE,EACZnE,MAAOuE,EACPtE,UAAWsE,EACXrE,UAAWoE,EACXjE,OAAQmE,EAAQC,GAChBlE,GAAI6D,EAAU,CAACG,EAAQD,EAAMD,IAC7B3D,UAAW2D,EACXnD,aAAcoD,EACdlD,eAAgBkD,EAChBzD,QAAS4D,EAAIC,YACX,GACJ/F,EAAUgG,aAAe,CACvBlF,cAAUuC,EACVtC,UAAU,EACVqB,aAAa,EACbC,kBAAcgB,EACdrC,eAAe,EACfG,WAAW,EACXF,iBAAiB,EACjBC,YAAY,EACZM,wBAAoB6B,EACpBjC,wBAAoBiC,EACpBhC,WAAOgC,EACP/B,eAAW+B,EACX9B,eAAW8B,EACX3B,YAAQ2B,EACRzB,GAAI,MACJG,UAAW,CAAE,EACbQ,kBAAcc,EACdZ,oBAAgBY"}
|
|
1
|
+
{"version":3,"file":"Lock.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Lock.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { useEffect } from 'react';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var children = props.children,\n disabled = props.disabled,\n noFocusGuards = props.noFocusGuards,\n persistentFocus = props.persistentFocus,\n crossFrame = props.crossFrame,\n autoFocus = props.autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n shouldReturnFocus = props.returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n\n var _React$useState2 = React.useState({}),\n id = _React$useState2[0]; // SIDE EFFECT CALLBACKS\n\n\n var onActivation = React.useCallback(function () {\n originalFocusedElement.current = originalFocusedElement.current || document && document.activeElement;\n\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n\n isActive.current = true;\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n }, [onDeactivationCallback]);\n useEffect(function () {\n if (!disabled) {\n // cleanup return focus on trap deactivation\n // sideEffect/returnFocus should happen by this time\n originalFocusedElement.current = null;\n }\n }, []);\n var returnFocus = React.useCallback(function (allowDefer) {\n var returnFocusTo = originalFocusedElement.current;\n\n if (returnFocusTo && returnFocusTo.focus) {\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n\n if (allowDefer) {\n // React might return focus after update\n // it's safer to defer the action\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]); // MEDIUM CALLBACKS\n\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium; // REF PROPAGATION\n // not using real refs due to race conditions\n\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n\n React.useEffect(function () {\n // report incorrect integration - https://github.com/theKashey/react-focus-lock/issues/123\n if (!observed.current && typeof Container !== 'string') {\n // eslint-disable-next-line no-console\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), // first tabbed element guard\n hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), children), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nFocusLock.defaultProps = {\n children: undefined,\n disabled: false,\n returnFocus: false,\n focusOptions: undefined,\n noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\n hasPositiveIndices: undefined,\n allowTextSelection: undefined,\n group: undefined,\n className: undefined,\n whiteList: undefined,\n shards: undefined,\n as: 'div',\n lockProps: {},\n onActivation: undefined,\n onDeactivation: undefined\n};\nexport default FocusLock;"],"names":["emptyArray","FocusLock","React","forwardRef","props","parentRef","_extends2","_React$useState","useState","realObserved","setObserved","observed","useRef","isActive","originalFocusedElement","children","disabled","noFocusGuards","persistentFocus","crossFrame","autoFocus","allowTextSelection","group","className","whiteList","hasPositiveIndices","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","returnFocusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","error","_extends","constants.FOCUS_DISABLED","constants.FOCUS_GROUP","hasLeadingGuards","hasTailingGuards","mergedRef","useMergeRefs","createElement","Fragment","key","tabIndex","style","hiddenGuard","mediumSidecar","ref","propTypes","node","bool","oneOfType","object","func","string","arrayOf","any","isRequired","defaultProps","FocusLockUI"],"mappings":"yhBAQA,IAAIA,EAAa,GACbC,EAAyBC,EAAMC,YAAW,SAAqBC,EAAOC,GACxE,IAAIC,EAEAC,EAAkBL,EAAMM,WACxBC,EAAeF,EAAgB,GAC/BG,EAAcH,EAAgB,GAE9BI,EAAWT,EAAMU,SACjBC,EAAWX,EAAMU,QAAO,GACxBE,EAAyBZ,EAAMU,OAAO,MACtCG,EAAWX,EAAMW,SACjBC,EAAWZ,EAAMY,SACjBC,EAAgBb,EAAMa,cACtBC,EAAkBd,EAAMc,gBACxBC,EAAaf,EAAMe,WACnBC,EAAYhB,EAAMgB,UAClBC,EAAqBjB,EAAMiB,mBAC3BC,EAAQlB,EAAMkB,MACdC,EAAYnB,EAAMmB,UAClBC,EAAYpB,EAAMoB,UAClBC,EAAqBrB,EAAMqB,mBAC3BC,EAAgBtB,EAAMuB,OACtBA,OAA2B,IAAlBD,EAA2B1B,EAAa0B,EACjDE,EAAYxB,EAAMyB,GAClBC,OAA0B,IAAdF,EAAuB,MAAQA,EAC3CG,EAAmB3B,EAAM4B,UACzBC,OAAsC,IAArBF,EAA8B,CAAE,EAAGA,EACpDG,EAAU9B,EAAM+B,QAChBC,EAAoBh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GAChBlE,GAAI6D,EAAU,CAACG,EAAQD,EAAMD,IAC7B3D,UAAW2D,EACXnD,aAAcoD,EACdlD,eAAgBkD,EAChBzD,QAAS4D,EAAIC,YACX,GACJ/F,EAAUgG,aAAe,CACvBlF,cAAUuC,EACVtC,UAAU,EACVqB,aAAa,EACbC,kBAAcgB,EACdrC,eAAe,EACfG,WAAW,EACXF,iBAAiB,EACjBC,YAAY,EACZM,wBAAoB6B,EACpBjC,wBAAoBiC,EACpBhC,WAAOgC,EACP/B,eAAW+B,EACX9B,eAAW8B,EACX3B,YAAQ2B,EACRzB,GAAI,MACJG,UAAW,CAAE,EACbQ,kBAAcc,EACdZ,oBAAgBY,GAElB,IAAA4C,EAAejG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"react";import e from"prop-types";import n from"../../../react-clientside-effect/lib/index.es.js";import
|
|
1
|
+
import"react";import e from"prop-types";import n from"../../../react-clientside-effect/lib/index.es.js";import t from"../../../focus-lock/dist/es2015/index.js";import{deferAction as o}from"./util.js";import{mediumFocus as r,mediumBlur as u,mediumEffect as i}from"./medium.js";import{focusInside as c}from"../../../focus-lock/dist/es2015/focusInside.js";import{getFocusabledIn as s}from"../../../focus-lock/dist/es2015/focusables.js";import{focusIsHidden as d}from"../../../focus-lock/dist/es2015/focusIsHidden.js";var a=function(){return document&&document.activeElement===document.body||d()},f=null,m=null,l=null,v=!1,p=function(){return!0};function E(e,n,t,o){var r=null,u=e;do{var i=o[u];if(i.guard)i.node.dataset.focusAutoGuard&&(r=i);else{if(!i.lockItem)break;if(u!==e)return;r=null}}while((u+=t)!==n);r&&(r.node.tabIndex=0)}var b=function(e){return e&&"current"in e?e.current:e},g=function e(n,t,o){return t&&(t.host===n&&(!t.activeElement||o.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,o))},h=function(){var e,n=!1;if(f){var o=f,r=o.observed,u=o.persistentFocus,i=o.autoFocus,d=o.shards,h=o.crossFrame,j=o.focusOptions,w=r||l&&l.portaledElement,I=document&&document.activeElement;if(w){var L=[w].concat(d.map(b).filter(Boolean));if(I&&!function(e){return(f.whiteList||p)(e)}(I)||(u||(h?Boolean(v):"meanwhile"===v)||!a()||!m&&i)&&(w&&!(c(L)||I&&function(e,n){return n.some((function(n){return g(e,n,n)}))}(I,L)||(e=I,l&&l.portaledElement===e))&&(document&&!m&&I&&!i?(I.blur&&I.blur(),document.body.focus()):(n=t(L,m,{focusOptions:j}),l={})),v=!1,m=document&&document.activeElement),document){var k=document&&document.activeElement,x=s(L),F=x.map((function(e){return e.node})).indexOf(k);F>-1&&(x.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),E(F,x.length,1,x),E(F,-1,-1,x))}}}return n},j=function(e){h()&&e&&(e.stopPropagation(),e.preventDefault())},w=function(){return o(h)};"production"===process.env.NODE_ENV||e.node.isRequired;var I=function(){v="just",setTimeout((function(){v="meanwhile"}),0)};r.assignSyncMedium((function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(l={observerNode:t,portaledElement:n})})),u.assignMedium(w),i.assignMedium((function(e){return e({moveFocusInside:t,focusInside:c})}));var L=n((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!f&&(document.addEventListener("focusin",j),document.addEventListener("focusout",w),window.addEventListener("blur",I));var t=f,r=t&&n&&n.id===t.id;f=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(m=null,r&&t.observed===n.observed||n.onActivation(),h(),o(h)):(document.removeEventListener("focusin",j),document.removeEventListener("focusout",w),window.removeEventListener("blur",I),m=null)}))((function(){return null}));export{L as default};
|
|
2
2
|
//# sourceMappingURL=Trap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trap.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Trap.js"],"sourcesContent":["/* eslint-disable no-mixed-operators */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-clientside-effect';\nimport moveFocusInside, { focusInside, focusIsHidden, getFocusabledIn } from 'focus-lock';\nimport { deferAction } from './util';\nimport { mediumFocus, mediumBlur, mediumEffect } from './medium';\n\nvar focusOnBody = function focusOnBody() {\n return document && document.activeElement === document.body;\n};\n\nvar isFreeFocus = function isFreeFocus() {\n return focusOnBody() || focusIsHidden();\n};\n\nvar lastActiveTrap = null;\nvar lastActiveFocus = null;\nvar lastPortaledElement = null;\nvar focusWasOutsideWindow = false;\n\nvar defaultWhitelist = function defaultWhitelist() {\n return true;\n};\n\nvar focusWhitelisted = function focusWhitelisted(activeElement) {\n return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);\n};\n\nvar recordPortal = function recordPortal(observerNode, portaledElement) {\n lastPortaledElement = {\n observerNode: observerNode,\n portaledElement: portaledElement\n };\n};\n\nvar focusIsPortaledPair = function focusIsPortaledPair(element) {\n return lastPortaledElement && lastPortaledElement.portaledElement === element;\n};\n\nfunction autoGuard(startIndex, end, step, allNodes) {\n var lastGuard = null;\n var i = startIndex;\n\n do {\n var item = allNodes[i];\n\n if (item.guard) {\n if (item.node.dataset.focusAutoGuard) {\n lastGuard = item;\n }\n } else if (item.lockItem) {\n if (i !== startIndex) {\n // we will tab to the next element\n return;\n }\n\n lastGuard = null;\n } else {\n break;\n }\n } while ((i += step) !== end);\n\n if (lastGuard) {\n lastGuard.node.tabIndex = 0;\n }\n}\n\nvar extractRef = function extractRef(ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\n\nvar focusWasOutside = function focusWasOutside(crossFrameOption) {\n if (crossFrameOption) {\n // with cross frame return true for any value\n return Boolean(focusWasOutsideWindow);\n } // in other case return only of focus went a while aho\n\n\n return focusWasOutsideWindow === 'meanwhile';\n};\n\nvar checkInHost = function checkInHost(check, el, boundary) {\n return el && ( // find host equal to active element and check nested active element\n el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) // dive up\n || el.parentNode && checkInHost(check, el.parentNode, boundary));\n};\n\nvar withinHost = function withinHost(activeElement, workingArea) {\n return workingArea.some(function (area) {\n return checkInHost(activeElement, area, area);\n });\n};\n\nvar activateTrap = function activateTrap() {\n var result = false;\n\n if (lastActiveTrap) {\n var _lastActiveTrap = lastActiveTrap,\n observed = _lastActiveTrap.observed,\n persistentFocus = _lastActiveTrap.persistentFocus,\n autoFocus = _lastActiveTrap.autoFocus,\n shards = _lastActiveTrap.shards,\n crossFrame = _lastActiveTrap.crossFrame,\n focusOptions = _lastActiveTrap.focusOptions;\n var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;\n var activeElement = document && document.activeElement;\n\n if (workingNode) {\n var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));\n\n if (!activeElement || focusWhitelisted(activeElement)) {\n if (persistentFocus || focusWasOutside(crossFrame) || !isFreeFocus() || !lastActiveFocus && autoFocus) {\n if (workingNode && !( // active element is \"inside\" working area\n focusInside(workingArea) || // check for shadow-dom contained elements\n activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement, workingNode))) {\n if (document && !lastActiveFocus && activeElement && !autoFocus) {\n // Check if blur() exists, which is missing on certain elements on IE\n if (activeElement.blur) {\n activeElement.blur();\n }\n\n document.body.focus();\n } else {\n result = moveFocusInside(workingArea, lastActiveFocus, {\n focusOptions: focusOptions\n });\n lastPortaledElement = {};\n }\n }\n\n focusWasOutsideWindow = false;\n lastActiveFocus = document && document.activeElement;\n }\n }\n\n if (document) {\n var newActiveElement = document && document.activeElement;\n var allNodes = getFocusabledIn(workingArea);\n var focusedIndex = allNodes.map(function (_ref) {\n var node = _ref.node;\n return node;\n }).indexOf(newActiveElement);\n\n if (focusedIndex > -1) {\n // remove old focus\n allNodes.filter(function (_ref2) {\n var guard = _ref2.guard,\n node = _ref2.node;\n return guard && node.dataset.focusAutoGuard;\n }).forEach(function (_ref3) {\n var node = _ref3.node;\n return node.removeAttribute('tabIndex');\n });\n autoGuard(focusedIndex, allNodes.length, +1, allNodes);\n autoGuard(focusedIndex, -1, -1, allNodes);\n }\n }\n }\n }\n\n return result;\n};\n\nvar onTrap = function onTrap(event) {\n if (activateTrap() && event) {\n // prevent scroll jump\n event.stopPropagation();\n event.preventDefault();\n }\n};\n\nvar onBlur = function onBlur() {\n return deferAction(activateTrap);\n};\n\nvar onFocus = function onFocus(event) {\n // detect portal\n var source = event.target;\n var currentNode = event.currentTarget;\n\n if (!currentNode.contains(source)) {\n recordPortal(currentNode, source);\n }\n};\n\nvar FocusWatcher = function FocusWatcher() {\n return null;\n};\n\nvar FocusTrap = function FocusTrap(_ref4) {\n var children = _ref4.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: onBlur,\n onFocus: onFocus\n }, children);\n};\n\nFocusTrap.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node.isRequired\n} : {};\n\nvar onWindowBlur = function onWindowBlur() {\n focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction\n\n setTimeout(function () {\n focusWasOutsideWindow = 'meanwhile';\n }, 0);\n};\n\nvar attachHandler = function attachHandler() {\n document.addEventListener('focusin', onTrap);\n document.addEventListener('focusout', onBlur);\n window.addEventListener('blur', onWindowBlur);\n};\n\nvar detachHandler = function detachHandler() {\n document.removeEventListener('focusin', onTrap);\n document.removeEventListener('focusout', onBlur);\n window.removeEventListener('blur', onWindowBlur);\n};\n\nfunction reducePropsToState(propsList) {\n return propsList.filter(function (_ref5) {\n var disabled = _ref5.disabled;\n return !disabled;\n });\n}\n\nfunction handleStateChangeOnClient(traps) {\n var trap = traps.slice(-1)[0];\n\n if (trap && !lastActiveTrap) {\n attachHandler();\n }\n\n var lastTrap = lastActiveTrap;\n var sameTrap = lastTrap && trap && trap.id === lastTrap.id;\n lastActiveTrap = trap;\n\n if (lastTrap && !sameTrap) {\n lastTrap.onDeactivation(); // return focus only of last trap was removed\n\n if (!traps.filter(function (_ref6) {\n var id = _ref6.id;\n return id === lastTrap.id;\n }).length) {\n // allow defer is no other trap is awaiting restore\n lastTrap.returnFocus(!trap);\n }\n }\n\n if (trap) {\n lastActiveFocus = null;\n\n if (!sameTrap || lastTrap.observed !== trap.observed) {\n trap.onActivation();\n }\n\n activateTrap(true);\n deferAction(activateTrap);\n } else {\n detachHandler();\n lastActiveFocus = null;\n }\n} // bind medium\n\n\nmediumFocus.assignSyncMedium(onFocus);\nmediumBlur.assignMedium(onBlur);\nmediumEffect.assignMedium(function (cb) {\n return cb({\n moveFocusInside: moveFocusInside,\n focusInside: focusInside\n });\n});\nexport default withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);"],"names":["isFreeFocus","document","activeElement","body","focusIsHidden","lastActiveTrap","lastActiveFocus","lastPortaledElement","focusWasOutsideWindow","defaultWhitelist","autoGuard","startIndex","end","step","allNodes","lastGuard","i","item","guard","node","dataset","focusAutoGuard","lockItem","tabIndex","extractRef","ref","current","checkInHost","check","el","boundary","host","contains","parentNode","activateTrap","element","result","_lastActiveTrap","observed","persistentFocus","autoFocus","shards","crossFrame","focusOptions","workingNode","portaledElement","workingArea","concat","map","filter","Boolean","whiteList","focusWhitelisted","focusInside","some","area","withinHost","blur","focus","moveFocusInside","newActiveElement","getFocusabledIn","focusedIndex","_ref","indexOf","_ref2","forEach","_ref3","removeAttribute","length","onTrap","event","stopPropagation","preventDefault","onBlur","deferAction","process","env","NODE_ENV","PropTypes","isRequired","onWindowBlur","setTimeout","mediumFocus","assignSyncMedium","source","target","currentNode","currentTarget","observerNode","mediumBlur","assignMedium","mediumEffect","cb","FocusTrap","withSideEffect","propsList","_ref5","disabled","traps","trap","slice","addEventListener","window","lastTrap","sameTrap","id","onDeactivation","_ref6","returnFocus","onActivation","removeEventListener"],"mappings":"ihBAQA,IAIIA,EAAc,WAChB,OAJOC,UAAYA,SAASC,gBAAkBD,SAASE,MAI/BC,GAC1B,EAEIC,EAAiB,KACjBC,EAAkB,KAClBC,EAAsB,KACtBC,GAAwB,EAExBC,EAAm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EAAsB,CACpBkF,aAuJaF,EAtJb1C,gBAsJ0BwC,GAE9B,IAqFAK,EAAWC,aAAajB,GACxBkB,EAAaD,cAAa,SAAUE,GAClC,OAAOA,EAAG,CACRlC,gBAAiBA,EACjBN,YAAaA,GAEjB,IACA,IAAeyC,EAAAC,GAtDf,SAA4BC,GAC1B,OAAOA,EAAU/C,QAAO,SAAUgD,GAEhC,OADeA,EAAMC,QAEzB,GACA,IAEA,SAAmCC,GACjC,IAAIC,EAAOD,EAAME,OAAO,GAAG,GAEvBD,IAAS/F,IArBbJ,SAASqG,iBAAiB,UAAWhC,GACrCrE,SAASqG,iBAAiB,WAAY5B,GACtC6B,OAAOD,iBAAiB,OAAQrB,IAuBhC,IAAIuB,EAAWnG,EACXoG,EAAWD,GAAYJ,GAAQA,EAAKM,KAAOF,EAASE,GACxDrG,EAAiB+F,EAEbI,IAAaC,IACfD,EAASG,iBAEJR,EAAMlD,QAAO,SAAU2D,GAE1B,OADSA,EAAMF,KACDF,EAASE,EACxB,IAAErC,QAEDmC,EAASK,aAAaT,IAItBA,GACF9F,EAAkB,KAEbmG,GAAYD,EAASlE,WAAa8D,EAAK9D,UAC1C8D,EAAKU,eAGP5E,IACAyC,EAAYzC,KA3CdjC,SAAS8G,oBAAoB,UAAWzC,GACxCrE,SAAS8G,oBAAoB,WAAYrC,GACzC6B,OAAOQ,oBAAoB,OAAQ9B,GA4CjC3E,EAAkB,KAEtB,GAWeyF,EA1FI,WACjB,OAAO,IACT"}
|
|
1
|
+
{"version":3,"file":"Trap.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Trap.js"],"sourcesContent":["/* eslint-disable no-mixed-operators */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-clientside-effect';\nimport moveFocusInside, { focusInside, focusIsHidden, getFocusabledIn } from 'focus-lock';\nimport { deferAction } from './util';\nimport { mediumFocus, mediumBlur, mediumEffect } from './medium';\n\nvar focusOnBody = function focusOnBody() {\n return document && document.activeElement === document.body;\n};\n\nvar isFreeFocus = function isFreeFocus() {\n return focusOnBody() || focusIsHidden();\n};\n\nvar lastActiveTrap = null;\nvar lastActiveFocus = null;\nvar lastPortaledElement = null;\nvar focusWasOutsideWindow = false;\n\nvar defaultWhitelist = function defaultWhitelist() {\n return true;\n};\n\nvar focusWhitelisted = function focusWhitelisted(activeElement) {\n return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);\n};\n\nvar recordPortal = function recordPortal(observerNode, portaledElement) {\n lastPortaledElement = {\n observerNode: observerNode,\n portaledElement: portaledElement\n };\n};\n\nvar focusIsPortaledPair = function focusIsPortaledPair(element) {\n return lastPortaledElement && lastPortaledElement.portaledElement === element;\n};\n\nfunction autoGuard(startIndex, end, step, allNodes) {\n var lastGuard = null;\n var i = startIndex;\n\n do {\n var item = allNodes[i];\n\n if (item.guard) {\n if (item.node.dataset.focusAutoGuard) {\n lastGuard = item;\n }\n } else if (item.lockItem) {\n if (i !== startIndex) {\n // we will tab to the next element\n return;\n }\n\n lastGuard = null;\n } else {\n break;\n }\n } while ((i += step) !== end);\n\n if (lastGuard) {\n lastGuard.node.tabIndex = 0;\n }\n}\n\nvar extractRef = function extractRef(ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\n\nvar focusWasOutside = function focusWasOutside(crossFrameOption) {\n if (crossFrameOption) {\n // with cross frame return true for any value\n return Boolean(focusWasOutsideWindow);\n } // in other case return only of focus went a while aho\n\n\n return focusWasOutsideWindow === 'meanwhile';\n};\n\nvar checkInHost = function checkInHost(check, el, boundary) {\n return el && ( // find host equal to active element and check nested active element\n el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) // dive up\n || el.parentNode && checkInHost(check, el.parentNode, boundary));\n};\n\nvar withinHost = function withinHost(activeElement, workingArea) {\n return workingArea.some(function (area) {\n return checkInHost(activeElement, area, area);\n });\n};\n\nvar activateTrap = function activateTrap() {\n var result = false;\n\n if (lastActiveTrap) {\n var _lastActiveTrap = lastActiveTrap,\n observed = _lastActiveTrap.observed,\n persistentFocus = _lastActiveTrap.persistentFocus,\n autoFocus = _lastActiveTrap.autoFocus,\n shards = _lastActiveTrap.shards,\n crossFrame = _lastActiveTrap.crossFrame,\n focusOptions = _lastActiveTrap.focusOptions;\n var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;\n var activeElement = document && document.activeElement;\n\n if (workingNode) {\n var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));\n\n if (!activeElement || focusWhitelisted(activeElement)) {\n if (persistentFocus || focusWasOutside(crossFrame) || !isFreeFocus() || !lastActiveFocus && autoFocus) {\n if (workingNode && !( // active element is \"inside\" working area\n focusInside(workingArea) || // check for shadow-dom contained elements\n activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement, workingNode))) {\n if (document && !lastActiveFocus && activeElement && !autoFocus) {\n // Check if blur() exists, which is missing on certain elements on IE\n if (activeElement.blur) {\n activeElement.blur();\n }\n\n document.body.focus();\n } else {\n result = moveFocusInside(workingArea, lastActiveFocus, {\n focusOptions: focusOptions\n });\n lastPortaledElement = {};\n }\n }\n\n focusWasOutsideWindow = false;\n lastActiveFocus = document && document.activeElement;\n }\n }\n\n if (document) {\n var newActiveElement = document && document.activeElement;\n var allNodes = getFocusabledIn(workingArea);\n var focusedIndex = allNodes.map(function (_ref) {\n var node = _ref.node;\n return node;\n }).indexOf(newActiveElement);\n\n if (focusedIndex > -1) {\n // remove old focus\n allNodes.filter(function (_ref2) {\n var guard = _ref2.guard,\n node = _ref2.node;\n return guard && node.dataset.focusAutoGuard;\n }).forEach(function (_ref3) {\n var node = _ref3.node;\n return node.removeAttribute('tabIndex');\n });\n autoGuard(focusedIndex, allNodes.length, +1, allNodes);\n autoGuard(focusedIndex, -1, -1, allNodes);\n }\n }\n }\n }\n\n return result;\n};\n\nvar onTrap = function onTrap(event) {\n if (activateTrap() && event) {\n // prevent scroll jump\n event.stopPropagation();\n event.preventDefault();\n }\n};\n\nvar onBlur = function onBlur() {\n return deferAction(activateTrap);\n};\n\nvar onFocus = function onFocus(event) {\n // detect portal\n var source = event.target;\n var currentNode = event.currentTarget;\n\n if (!currentNode.contains(source)) {\n recordPortal(currentNode, source);\n }\n};\n\nvar FocusWatcher = function FocusWatcher() {\n return null;\n};\n\nvar FocusTrap = function FocusTrap(_ref4) {\n var children = _ref4.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: onBlur,\n onFocus: onFocus\n }, children);\n};\n\nFocusTrap.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node.isRequired\n} : {};\n\nvar onWindowBlur = function onWindowBlur() {\n focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction\n\n setTimeout(function () {\n focusWasOutsideWindow = 'meanwhile';\n }, 0);\n};\n\nvar attachHandler = function attachHandler() {\n document.addEventListener('focusin', onTrap);\n document.addEventListener('focusout', onBlur);\n window.addEventListener('blur', onWindowBlur);\n};\n\nvar detachHandler = function detachHandler() {\n document.removeEventListener('focusin', onTrap);\n document.removeEventListener('focusout', onBlur);\n window.removeEventListener('blur', onWindowBlur);\n};\n\nfunction reducePropsToState(propsList) {\n return propsList.filter(function (_ref5) {\n var disabled = _ref5.disabled;\n return !disabled;\n });\n}\n\nfunction handleStateChangeOnClient(traps) {\n var trap = traps.slice(-1)[0];\n\n if (trap && !lastActiveTrap) {\n attachHandler();\n }\n\n var lastTrap = lastActiveTrap;\n var sameTrap = lastTrap && trap && trap.id === lastTrap.id;\n lastActiveTrap = trap;\n\n if (lastTrap && !sameTrap) {\n lastTrap.onDeactivation(); // return focus only of last trap was removed\n\n if (!traps.filter(function (_ref6) {\n var id = _ref6.id;\n return id === lastTrap.id;\n }).length) {\n // allow defer is no other trap is awaiting restore\n lastTrap.returnFocus(!trap);\n }\n }\n\n if (trap) {\n lastActiveFocus = null;\n\n if (!sameTrap || lastTrap.observed !== trap.observed) {\n trap.onActivation();\n }\n\n activateTrap(true);\n deferAction(activateTrap);\n } else {\n detachHandler();\n lastActiveFocus = null;\n }\n} // bind medium\n\n\nmediumFocus.assignSyncMedium(onFocus);\nmediumBlur.assignMedium(onBlur);\nmediumEffect.assignMedium(function (cb) {\n return cb({\n moveFocusInside: moveFocusInside,\n focusInside: focusInside\n });\n});\nexport default withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);"],"names":["isFreeFocus","document","activeElement","body","focusIsHidden","lastActiveTrap","lastActiveFocus","lastPortaledElement","focusWasOutsideWindow","defaultWhitelist","autoGuard","startIndex","end","step","allNodes","lastGuard","i","item","guard","node","dataset","focusAutoGuard","lockItem","tabIndex","extractRef","ref","current","checkInHost","check","el","boundary","host","contains","parentNode","activateTrap","element","result","_lastActiveTrap","observed","persistentFocus","autoFocus","shards","crossFrame","focusOptions","workingNode","portaledElement","workingArea","concat","map","filter","Boolean","whiteList","focusWhitelisted","focusInside","some","area","withinHost","blur","focus","moveFocusInside","newActiveElement","getFocusabledIn","focusedIndex","_ref","indexOf","_ref2","forEach","_ref3","removeAttribute","length","onTrap","event","stopPropagation","preventDefault","onBlur","deferAction","process","env","NODE_ENV","PropTypes","isRequired","onWindowBlur","setTimeout","mediumFocus","assignSyncMedium","source","target","currentNode","currentTarget","observerNode","mediumBlur","assignMedium","mediumEffect","cb","FocusTrap","withSideEffect","propsList","_ref5","disabled","traps","trap","slice","addEventListener","window","lastTrap","sameTrap","id","onDeactivation","_ref6","returnFocus","onActivation","removeEventListener"],"mappings":"kgBAQA,IAIIA,EAAc,WAChB,OAJOC,UAAYA,SAASC,gBAAkBD,SAASE,MAI/BC,GAC1B,EAEIC,EAAiB,KACjBC,EAAkB,KAClBC,EAAsB,KACtBC,GAAwB,EAExBC,EAAmB,WACrB,OAAO,CACT,EAiBA,SAASC,EAAUC,EAAYC,EAAKC,EAAMC,GACxC,IAAIC,EAAY,KACZC,EAAIL,EAER,EAAG,CACD,IAAIM,EAAOH,EAASE,GAEpB,GAAIC,EAAKC,MACHD,EAAKE,KAAKC,QAAQC,iBACpBN,EAAYE,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4BC,GAC1B,OAAOA,EAAU/C,QAAO,SAAUgD,GAEhC,OADeA,EAAMC,QAEzB,GACA,IAEA,SAAmCC,GACjC,IAAIC,EAAOD,EAAME,OAAO,GAAG,GAEvBD,IAAS/F,IArBbJ,SAASqG,iBAAiB,UAAWhC,GACrCrE,SAASqG,iBAAiB,WAAY5B,GACtC6B,OAAOD,iBAAiB,OAAQrB,IAuBhC,IAAIuB,EAAWnG,EACXoG,EAAWD,GAAYJ,GAAQA,EAAKM,KAAOF,EAASE,GACxDrG,EAAiB+F,EAEbI,IAAaC,IACfD,EAASG,iBAEJR,EAAMlD,QAAO,SAAU2D,GAE1B,OADSA,EAAMF,KACDF,EAASE,EACxB,IAAErC,QAEDmC,EAASK,aAAaT,IAItBA,GACF9F,EAAkB,KAEbmG,GAAYD,EAASlE,WAAa8D,EAAK9D,UAC1C8D,EAAKU,eAGP5E,IACAyC,EAAYzC,KA3CdjC,SAAS8G,oBAAoB,UAAWzC,GACxCrE,SAAS8G,oBAAoB,WAAYrC,GACzC6B,OAAOQ,oBAAoB,OAAQ9B,GA4CjC3E,EAAkB,KAEtB,GAWeyF,EA1FI,WACjB,OAAO,IACT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"./Combination.js";export{default}from"./Combination.js";
|
|
1
|
+
import o from"./Combination.js";export{default}from"./Combination.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{createMedium as r,createSidecarMedium as t}from"../../../use-sidecar/dist/es2015/medium.js";var e=r({},(function(r){return{target:r.target,currentTarget:r.currentTarget}})),a=r(),n=r(),s=t({async:!0});export{a as mediumBlur,n as mediumEffect,e as mediumFocus,s as mediumSidecar};
|
|
2
2
|
//# sourceMappingURL=medium.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medium.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/medium.js"],"sourcesContent":["import { createMedium, createSidecarMedium } from 'use-sidecar';\nexport var mediumFocus = createMedium({}, function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n return {\n target: target,\n currentTarget: currentTarget\n };\n});\nexport var mediumBlur = createMedium();\nexport var mediumEffect = createMedium();\nexport var mediumSidecar = createSidecarMedium({\n async: true // focus-lock sidecar is not required on the server\n // however, it might be required for JSDOM tests\n // ssr: true,\n\n});"],"names":["mediumFocus","createMedium","_ref","target","currentTarget","mediumBlur","mediumEffect","mediumSidecar","createSidecarMedium","async"],"mappings":"
|
|
1
|
+
{"version":3,"file":"medium.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/medium.js"],"sourcesContent":["import { createMedium, createSidecarMedium } from 'use-sidecar';\nexport var mediumFocus = createMedium({}, function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n return {\n target: target,\n currentTarget: currentTarget\n };\n});\nexport var mediumBlur = createMedium();\nexport var mediumEffect = createMedium();\nexport var mediumSidecar = createSidecarMedium({\n async: true // focus-lock sidecar is not required on the server\n // however, it might be required for JSDOM tests\n // ssr: true,\n\n});"],"names":["mediumFocus","createMedium","_ref","target","currentTarget","mediumBlur","mediumEffect","mediumSidecar","createSidecarMedium","async"],"mappings":"mGACU,IAACA,EAAcC,EAAa,IAAI,SAAUC,GAGlD,MAAO,CACLC,OAHWD,EAAKC,OAIhBC,cAHkBF,EAAKE,cAK3B,IACWC,EAAaJ,IACbK,EAAeL,IACfM,EAAgBC,EAAoB,CAC7CC,OAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as n}from"
|
|
1
|
+
import{__assign as n}from"../../../../_virtual/_tslib.js";function r(n){return n}function t(n,t){void 0===t&&(t=r);var u=[],i=!1;return{read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return u.length?u[u.length-1]:n},useMedium:function(n){var r=t(n,i);return u.push(r),function(){u=u.filter((function(n){return n!==r}))}},assignSyncMedium:function(n){for(i=!0;u.length;){var r=u;u=[],r.forEach(n)}u={push:function(r){return n(r)},filter:function(){return u}}},assignMedium:function(n){i=!0;var r=[];if(u.length){var t=u;u=[],t.forEach(n),r=u}var e=function(){var t=r;r=[],t.forEach(n)},o=function(){return Promise.resolve().then(e)};o(),u={push:function(n){r.push(n),o()},filter:function(n){return r=r.filter(n),u}}}}}function u(n,u){return void 0===u&&(u=r),t(n,u)}function i(r){void 0===r&&(r={});var u=t(null);return u.options=n({async:!0,ssr:!1},r),u}export{u as createMedium,i as createSidecarMedium};
|
|
2
2
|
//# sourceMappingURL=medium.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medium.js","sources":["../../../../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","read","Error","length","useMedium","data","item","push","filter","x","assignSyncMedium","cb","cbs","forEach","assignMedium","pendingQueue","executeQueue","cycle","Promise","resolve","then","createMedium","createSidecarMedium","options","medium","__assign","async","ssr"],"mappings":"
|
|
1
|
+
{"version":3,"file":"medium.js","sources":["../../../../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","read","Error","length","useMedium","data","item","push","filter","x","assignSyncMedium","cb","cbs","forEach","assignMedium","pendingQueue","executeQueue","cycle","Promise","resolve","then","createMedium","createSidecarMedium","options","medium","__assign","async","ssr"],"mappings":"0DACA,SAASA,EAAKC,GACV,OAAOA,CACX,CACA,SAASC,EAAkBC,EAAUC,QACd,IAAfA,IAAyBA,EAAaJ,GAC1C,IAAIK,EAAS,GACTC,GAAW,EA0Df,MAzDa,CACTC,KAAM,WACF,GAAID,EACA,MAAM,IAAIE,MAAM,oGAEpB,OAAIH,EAAOI,OACAJ,EAAOA,EAAOI,OAAS,GAE3BN,CACV,EACDO,UAAW,SAAUC,GACjB,IAAIC,EAAOR,EAAWO,EAAML,GAE5B,OADAD,EAAOQ,KAAKD,GACL,WACHP,EAASA,EAAOS,QAAO,SAAUC,GAAK,OAAOA,IAAMH,CAAK,GACxE,CACS,EACDI,iBAAkB,SAAUC,GAExB,IADAX,GAAW,EACJD,EAAOI,QAAQ,CAClB,IAAIS,EAAMb,EACVA,EAAS,GACTa,EAAIC,QAAQF,EACf,CACDZ,EAAS,CACLQ,KAAM,SAAUE,GAAK,OAAOE,EAAGF,EAAK,EACpCD,OAAQ,WAAc,OAAOT,CAAS,EAE7C,EACDe,aAAc,SAAUH,GACpBX,GAAW,EACX,IAAIe,EAAe,GACnB,GAAIhB,EAAOI,OAAQ,CAC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GFuPC9vcHRpb24+CiAgICAgICAgICAgIDxvcHRpb24gdmFsdWU9IkFMQiI+QWxiYW5pYTwvb3B0aW9uPgogICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSJEWkEiPkFsZ2VyaWE8L29wdGlvbj4KICAgICAgICAgICAgey8qIC4uLiAqL30KICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iR0dZIj5HdWVybnNleTwvb3B0aW9uPgogICAgICAgICAgPC9TZWxlY3Q+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPEJveD4KICAgICAgICAgIHtbIkdCUiIsICJHR1kiLCAiSU1OIiwgIkpFWSJdLmluY2x1ZGVzKGNvdW50cnkpID8gKAogICAgICAgICAgICA8QWRkcmVzc0xvb2t1cAogICAgICAgICAgICAgIGFwaUtleT0iTUcxNy1aRDkzLUZGMzMtS0YxMyIKICAgICAgICAgICAgICBjb3VudHJpZXM9e1tjb3VudHJ5XX0KICAgICAgICAgICAgICBvbkFkZHJlc3NTZWxlY3RlZD17aGFuZGxlQWRkcmVzc1NlbGVjdGVkfQogICAgICAgICAgICAgIG9uQ2hhbmdlPXsoZSkgPT4gewogICAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICAgIHNldExpbmUxKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKSA6ICgKICAgICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IHsKICAgICAgICAgICAgICAgIHNldFZhbGlkYXRlZChmYWxzZSk7CiAgICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgICAgfX0KICAgICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgICAgIGxhYmVsPSJIb21lIGFkZHJlc3MiCiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKX0KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMiIKICAgICAgICAgICAgdmFsdWU9e2xpbmUyfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMyhlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMyIKICAgICAgICAgICAgdmFsdWU9e2xpbmUzfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRDaXR5KGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IkNpdHkiCiAgICAgICAgICAgIHZhbHVlPXtjaXR5fQogICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgLz4KICAgICAgICA8Qm94PgogICAgICAgIDwvQm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRQb3N0YWxDb2RlKGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IlBvc3Rjb2RlIgogICAgICAgICAgICB2YWx1ZT17cG9zdGFsQ29kZX0KICAgICAgICAgICAgcmVxdWlyZWQKICAgICAgICAgIC8+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPHByZT57SlNPTi5zdHJpbmdpZnkoe3ZhbGlkYXRlZH0sIG51bGwsIDIpfTwvcHJlPgogICAgICA8L2ZpZWxkc2V0PgogICAgPC8+CiAgKTsKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgICAgICAgICAgIHwgVHlwZSAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVmYXVsdCAgICAgICAgICAgICAgICAgICB8IERlc2NyaXB0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCA6LS0tLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tOiB8IDotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgYXBpS2V5ICAgICAgICAgICAgfCBTdHJpbmcgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTG9xYXRlIEFQSSBrZXkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNvdW50cmllcyAgICAgICAgIHwgU3RyaW5nW10gfCBBIGNvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIElTTyAyIG9yIDMgY2hhcmFjdGVyIGNvdW50cnkgY29kZXMgdG8gbGltaXQgdGhlIHNlYXJjaCB3aXRoaW4uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICB8IFNlZSBodHRwczovL3d3dy5sb3FhdGUuY29tL3Jlc291cmNlcy9zdXBwb3J0L2FwaXMvQ2FwdHVyZS9JbnRlcmFjdGl2ZS9GaW5kLzEuMS8gLSBDUlVLIHR5cGljYWxseSB1c2VzICJHQlIiLCAiR0dZIiwgIklNTiIsICJKRVkiIHwKfCBlcnJvciAgICAgICAgICAgICB8IFN0cmluZyAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBFcnJvciBtZXNzYWdlIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgaGFzRXJyb3IgICAgICAgICAgfCBCb29sZWFuICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBmYWxzZSAgICAgICAgICAgICAgICAgICAgIHwgSWYgdHJ1ZSwgdXNlIGVycm9yIHN0eWxpbmcgZm9yIHRoZSBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWQgICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJ1ZSAgICAgICAgICAgICAgICAgICAgICB8IHVzZWQgd2l0aCBpc1ZhbGlkVmlzaWJsZSB0byBzaG93IHZhbGlkIGluZGljYXRvciAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBpc1ZhbGlkVmlzaWJsZSAgICB8IEJvb2xlYW4gIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgICAgICAgICAgICAgICAgICAgfCBzaG93IHZhbGlkIGluZGljYXRvciB3aGVuIGlzVmFsaWQgaXMgdHJ1ZSBvciBubyBlcnJvciBleGlzdHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbGFiZWwgICAgICAgICAgICAgfCBTdHJpbmcgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSG9tZSBhZGRyZXNzIiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTGFiZWwgdGV4dCBmb3IgZmllbGQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc0Vycm9yICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZXJyID0+IGNvbnNvbGUuZXJyb3IoZXJyKSB8IEhhbmRsZXIgZm9yIGlmIHRoZXJlIGlzIGFuIGVycm9yIHRocm93biBiYWNrIGJ5IExvcWF0ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBvbkFkZHJlc3NTZWxlY3RlZCB8IEZ1bmN0aW9uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBSZXR1cm5zIGFkZHJlc3Mgb2JqZWN0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DaGFuZ2UgICAgICAgICAgfCBGdW5jdGlvbiB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgQ2FsbGJhY2sgZnVuY3Rpb24gY2FsbGVkIG9uIGlucHV0IGNoYW5nZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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2x1ZGVzKGNvdW50cnkpID8gKAogICAgICAgICAgICA8QWRkcmVzc0xvb2t1cAogICAgICAgICAgICAgIGFwaUtleT0iTUcxNy1aRDkzLUZGMzMtS0YxMyIKICAgICAgICAgICAgICBjb3VudHJpZXM9e1tjb3VudHJ5XX0KICAgICAgICAgICAgICBvbkFkZHJlc3NTZWxlY3RlZD17aGFuZGxlQWRkcmVzc1NlbGVjdGVkfQogICAgICAgICAgICAgIG9uQ2hhbmdlPXsoZSkgPT4gewogICAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICAgIHNldExpbmUxKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKSA6ICgKICAgICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IHsKICAgICAgICAgICAgICAgIHNldFZhbGlkYXRlZChmYWxzZSk7CiAgICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgICAgfX0KICAgICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgICAgIGxhYmVsPSJIb21lIGFkZHJlc3MiCiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKX0KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMiIKICAgICAgICAgICAgdmFsdWU9e2xpbmUyfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMyhlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMyIKICAgICAgICAgICAgdmFsdWU9e2xpbmUzfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRDaXR5KGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IkNpdHkiCiAgICAgICAgICAgIHZhbHVlPXtjaXR5fQogICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgLz4KICAgICAgICA8Qm94PgogICAgICAgIDwvQm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRQb3N0YWxDb2RlKGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IlBvc3Rjb2RlIgogICAgICAgICAgICB2YWx1ZT17cG9zdGFsQ29kZX0KICAgICAgICAgICAgcmVxdWlyZWQKICAgICAgICAgIC8+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPHByZT57SlNPTi5zdHJpbmdpZnkoe3ZhbGlkYXRlZH0sIG51bGwsIDIpfTwvcHJlPgogICAgICA8L2ZpZWxkc2V0PgogICAgPC8+CiAgKTsKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgICAgICAgICAgIHwgVHlwZSAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVmYXVsdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IDotLS0tLS0tLS0tLS0tLS0tIHwgOi0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS06IHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGFwaUtleSAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTG9xYXRlIEFQSSBrZXkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNvdW50cmllcyAgICAgICAgIHwgU3RyaW5nW10gfCBBIGNvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIElTTyAyIG9yIDMgY2hhcmFjdGVyIGNvdW50cnkgY29kZXMgdG8gbGltaXQgdGhlIHNlYXJjaCB3aXRoaW4uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgU2VlIGh0dHBzOi8vd3d3LmxvcWF0ZS5jb20vcmVzb3VyY2VzL3N1cHBvcnQvYXBpcy9DYXB0dXJlL0ludGVyYWN0aXZlL0ZpbmQvMS4xLyAtIENSVUsgdHlwaWNhbGx5IHVzZXMgIkdCUiIsICJHR1kiLCAiSU1OIiwgIkpFWSIgfAp8IGVycm9yICAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRXJyb3IgbWVzc2FnZSB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGhhc0Vycm9yICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgSWYgdHJ1ZSwgdXNlIGVycm9yIHN0eWxpbmcgZm9yIHRoZSBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWQgICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJ1ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdXNlZCB3aXRoIGlzVmFsaWRWaXNpYmxlIHRvIHNob3cgdmFsaWQgaW5kaWNhdG9yICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWRWaXNpYmxlICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgc2hvdyB2YWxpZCBpbmRpY2F0b3Igd2hlbiBpc1ZhbGlkIGlzIHRydWUgb3Igbm8gZXJyb3IgZXhpc3RzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGxhYmVsICAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgIkhvbWUgYWRkcmVzcyIgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTGFiZWwgdGV4dCBmb3IgZmllbGQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGhpbnRUZXh0ICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgIlN0YXJ0IHR5cGluZyB5b3VyIGFkZHJlc3Mgb3IgcG9zdGNvZGUiIHwgSGludCB0ZXh0IGZvciBmaWVsZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc0Vycm9yICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZXJyID0+IGNvbnNvbGUuZXJyb3IoZXJyKSAgICAgICAgICAgICAgIHwgSGFuZGxlciBmb3IgaWYgdGhlcmUgaXMgYW4gZXJyb3IgdGhyb3duIGJhY2sgYnkgTG9xYXRlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc1NlbGVjdGVkIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgUmV0dXJucyBhZGRyZXNzIG9iamVjdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQ2hhbmdlICAgICAgICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgQ2FsbGJhY2sgZnVuY3Rpb24gY2FsbGVkIG9uIGlucHV0IGNoYW5nZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAoKIyMgQWNjZXNzaWJpbGl0eQoKLSBSZXNwb25kcyB0byBrZXlib2FyZCBldmVudHMKLSBJbmZvcm1zIHNjcmVlbiByZWFkZXIgdXNlcnMgb2YgdGhlIHByZXNlbmNlIG9mIHJlc3VsdHMgcmV0dXJuZWQgZnJvbSBzZWFyY2gK";export{g as default};
|
|
2
2
|
//# sourceMappingURL=README.md.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/AddressLookup/README.md"],"sourcesContent":["export default \"IyBBZGRyZXNzIGxvb2t1cAoKVGhpcyBjb21wb25lbnQgY3JlYXRlcyBhIGNvbWJvYm94IGZvciBhIHVzZXIgdG8gdHlwZSBpbiBhIHBvc3QgY29kZSBvciBwYXJ0aWFsIGFkZHJlc3MgYW5kIGJlIHByZXNlbnRlZCB3aXRoIGEgb2YgdmVyaWZpZWQgYWRkcmVzc2VzLgoKV2UgdXNlIExvcWF0ZSAoZm9ybWVybHkgQWRkcmVzc3kgYW5kIFBvc3Rjb2RlIEFueXdoZXJlKSBBUEkgdjMsIHdlIGhhdmUgbG9va2VkIGF0IHY0IGJ1dCBpdCBpcyBtb3JlIGV4cGVuc2l2ZSB3aXRob3V0IG1hbnkgYmVuZWZpdHMgZm9yIG91ciB1c2UgY2FzZS4KCllvdSB3aWxsIG5lZWQgYSBMb3FhdGUgYXBpIGtleSwgdGhlIGV4YW1wbGVzIGJlbG93IHVzZSAiTUcxNy1aRDkzLUZGMzMtS0YxMyIgb3VyIGRldmVsb3BtZW50IGtleS4KClRoaXMgY29tcG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QWxiYW5pYTwvb3B0aW9uPgogICAgICAgICAgICA8b3B0aW9uIHZhbHVlPSJEWkEiPkFsZ2VyaWE8L29wdGlvbj4KICAgICAgICAgICAgey8qIC4uLiAqL30KICAgICAgICAgICAgPG9wdGlvbiB2YWx1ZT0iR0dZIj5HdWVybnNleTwvb3B0aW9uPgogICAgICAgICAgPC9TZWxlY3Q+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPEJveD4KICAgICAgICAgIHtbIkdCUiIsICJHR1kiLCAiSU1OIiwgIkpFWSJdLmluY2x1ZGVzKGNvdW50cnkpID8gKAogICAgICAgICAgICA8QWRkcmVzc0xvb2t1cAogICAgICAgICAgICAgIGFwaUtleT0iTUcxNy1aRDkzLUZGMzMtS0YxMyIKICAgICAgICAgICAgICBjb3VudHJpZXM9e1tjb3VudHJ5XX0KICAgICAgICAgICAgICBvbkFkZHJlc3NTZWxlY3RlZD17aGFuZGxlQWRkcmVzc1NlbGVjdGVkfQogICAgICAgICAgICAgIG9uQ2hhbmdlPXsoZSkgPT4gewogICAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICAgIHNldExpbmUxKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKSA6ICgKICAgICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IHsKICAgICAgICAgICAgICAgIHNldFZhbGlkYXRlZChmYWxzZSk7CiAgICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgICAgfX0KICAgICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgICAgIGxhYmVsPSJIb21lIGFkZHJlc3MiCiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKX0KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMiIKICAgICAgICAgICAgdmFsdWU9e2xpbmUyfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMyhlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMyIKICAgICAgICAgICAgdmFsdWU9e2xpbmUzfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRDaXR5KGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IkNpdHkiCiAgICAgICAgICAgIHZhbHVlPXtjaXR5fQogICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgLz4KICAgICAgICA8Qm94PgogICAgICAgIDwvQm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRQb3N0YWxDb2RlKGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IlBvc3Rjb2RlIgogICAgICAgICAgICB2YWx1ZT17cG9zdGFsQ29kZX0KICAgICAgICAgICAgcmVxdWlyZWQKICAgICAgICAgIC8+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPHByZT57SlNPTi5zdHJpbmdpZnkoe3ZhbGlkYXRlZH0sIG51bGwsIDIpfTwvcHJlPgogICAgICA8L2ZpZWxkc2V0PgogICAgPC8+CiAgKTsKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgICAgICAgICAgIHwgVHlwZSAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVmYXVsdCAgICAgICAgICAgICAgICAgICB8IERlc2NyaXB0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCA6LS0tLS0tLS0tLS0tLS0tLSB8IDotLS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tOiB8IDotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgYXBpS2V5ICAgICAgICAgICAgfCBTdHJpbmcgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTG9xYXRlIEFQSSBrZXkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNvdW50cmllcyAgICAgICAgIHwgU3RyaW5nW10gfCBBIGNvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIElTTyAyIG9yIDMgY2hhcmFjdGVyIGNvdW50cnkgY29kZXMgdG8gbGltaXQgdGhlIHNlYXJjaCB3aXRoaW4uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICB8IFNlZSBodHRwczovL3d3dy5sb3FhdGUuY29tL3Jlc291cmNlcy9zdXBwb3J0L2FwaXMvQ2FwdHVyZS9JbnRlcmFjdGl2ZS9GaW5kLzEuMS8gLSBDUlVLIHR5cGljYWxseSB1c2VzICJHQlIiLCAiR0dZIiwgIklNTiIsICJKRVkiIHwKfCBlcnJvciAgICAgICAgICAgICB8IFN0cmluZyAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBFcnJvciBtZXNzYWdlIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgaGFzRXJyb3IgICAgICAgICAgfCBCb29sZWFuICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBmYWxzZSAgICAgICAgICAgICAgICAgICAgIHwgSWYgdHJ1ZSwgdXNlIGVycm9yIHN0eWxpbmcgZm9yIHRoZSBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWQgICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJ1ZSAgICAgICAgICAgICAgICAgICAgICB8IHVzZWQgd2l0aCBpc1ZhbGlkVmlzaWJsZSB0byBzaG93IHZhbGlkIGluZGljYXRvciAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBpc1ZhbGlkVmlzaWJsZSAgICB8IEJvb2xlYW4gIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgICAgICAgICAgICAgICAgICAgfCBzaG93IHZhbGlkIGluZGljYXRvciB3aGVuIGlzVmFsaWQgaXMgdHJ1ZSBvciBubyBlcnJvciBleGlzdHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgbGFiZWwgICAgICAgICAgICAgfCBTdHJpbmcgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSG9tZSBhZGRyZXNzIiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTGFiZWwgdGV4dCBmb3IgZmllbGQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc0Vycm9yICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZXJyID0+IGNvbnNvbGUuZXJyb3IoZXJyKSB8IEhhbmRsZXIgZm9yIGlmIHRoZXJlIGlzIGFuIGVycm9yIHRocm93biBiYWNrIGJ5IExvcWF0ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBvbkFkZHJlc3NTZWxlY3RlZCB8IEZ1bmN0aW9uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBSZXR1cm5zIGFkZHJlc3Mgb2JqZWN0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DaGFuZ2UgICAgICAgICAgfCBGdW5jdGlvbiB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgQ2FsbGJhY2sgZnVuY3Rpb24gY2FsbGVkIG9uIGlucHV0IGNoYW5nZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAoKIyMgQWNjZXNzaWJpbGl0eQoKLSBSZXNwb25kcyB0byBrZXlib2FyZCBldmVudHMKLSBJbmZvcm1zIHNjcmVlbiByZWFkZXIgdXNlcnMgb2YgdGhlIHByZXNlbmNlIG9mIHJlc3VsdHMgcmV0dXJuZWQgZnJvbSBzZWFyY2gK\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
|
|
1
|
+
{"version":3,"file":"README.md.js","sources":["../../../../../src/components/AddressLookup/README.md"],"sourcesContent":["export default \"IyBBZGRyZXNzIGxvb2t1cAoKVGhpcyBjb21wb25lbnQgY3JlYXRlcyBhIGNvbWJvYm94IGZvciBhIHVzZXIgdG8gdHlwZSBpbiBhIHBvc3QgY29kZSBvciBwYXJ0aWFsIGFkZHJlc3MgYW5kIGJlIHByZXNlbnRlZCB3aXRoIGEgb2YgdmVyaWZpZWQgYWRkcmVzc2VzLgoKV2UgdXNlIExvcWF0ZSAoZm9ybWVybHkgQWRkcmVzc3kgYW5kIFBvc3Rjb2RlIEFueXdoZXJlKSBBUEkgdjMsIHdlIGhhdmUgbG9va2VkIGF0IHY0IGJ1dCBpdCBpcyBtb3JlIGV4cGVuc2l2ZSB3aXRob3V0IG1hbnkgYmVuZWZpdHMgZm9yIG91ciB1c2UgY2FzZS4KCllvdSB3aWxsIG5lZWQgYSBMb3FhdGUgYXBpIGtleSwgdGhlIGV4YW1wbGVzIGJlbG93IHVzZSAiTUcxNy1aRDkzLUZGMzMtS0YxMyIgb3VyIGRldmVsb3BtZW50IGtleS4KClRoaXMgY29tcG9uZW50IGlzIGdlbmVyYWxseSBvbmx5IHVzZWQgZm9yIGNvdW50cnkgY29kZXMgaW5jbHVkaW5nICJHQlIiLCAiR0dZIiwgIklNTiIsICJKRVkiLiBBbiBleGFtcGxlIG9mIHRoaXMgYmVoYXZpb3IgaXMgaW5jbHVkZWQgYmVsbG93LgoKIyMjIFRyeSBpdCBvdXQKCmBgYC5qc3gKZnVuY3Rpb24gKCkgewogIGNvbnN0IFt2YWxpZGF0ZWQsIHNldFZhbGlkYXR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CAiSU1OIiwgIkpFWSJdLmluY2x1ZGVzKGNvdW50cnkpID8gKAogICAgICAgICAgICA8QWRkcmVzc0xvb2t1cAogICAgICAgICAgICAgIGFwaUtleT0iTUcxNy1aRDkzLUZGMzMtS0YxMyIKICAgICAgICAgICAgICBjb3VudHJpZXM9e1tjb3VudHJ5XX0KICAgICAgICAgICAgICBvbkFkZHJlc3NTZWxlY3RlZD17aGFuZGxlQWRkcmVzc1NlbGVjdGVkfQogICAgICAgICAgICAgIG9uQ2hhbmdlPXsoZSkgPT4gewogICAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICAgIHNldExpbmUxKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKSA6ICgKICAgICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IHsKICAgICAgICAgICAgICAgIHNldFZhbGlkYXRlZChmYWxzZSk7CiAgICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgICAgfX0KICAgICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgICAgIGxhYmVsPSJIb21lIGFkZHJlc3MiCiAgICAgICAgICAgICAgdmFsdWU9e2xpbmUxfQogICAgICAgICAgICAvPgogICAgICAgICAgKX0KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMihlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMiIKICAgICAgICAgICAgdmFsdWU9e2xpbmUyfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRMaW5lMyhlLnRhcmdldC52YWx1ZSk7CiAgICAgICAgICAgIH19CiAgICAgICAgICAgIGxhYmVsPSJBZGRyZXNzIGxpbmUgMyIKICAgICAgICAgICAgdmFsdWU9e2xpbmUzfQogICAgICAgICAgLz4KICAgICAgICA8L0JveD4KICAgICAgICA8Qm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRDaXR5KGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IkNpdHkiCiAgICAgICAgICAgIHZhbHVlPXtjaXR5fQogICAgICAgICAgICByZXF1aXJlZAogICAgICAgICAgLz4KICAgICAgICA8Qm94PgogICAgICAgIDwvQm94PgogICAgICAgICAgPFRleHRGaWVsZAogICAgICAgICAgICBvbkNoYW5nZT17ZSA9PiB7CiAgICAgICAgICAgICAgc2V0VmFsaWRhdGVkKGZhbHNlKTsKICAgICAgICAgICAgICBzZXRQb3N0YWxDb2RlKGUudGFyZ2V0LnZhbHVlKTsKICAgICAgICAgICAgfX0KICAgICAgICAgICAgbGFiZWw9IlBvc3Rjb2RlIgogICAgICAgICAgICB2YWx1ZT17cG9zdGFsQ29kZX0KICAgICAgICAgICAgcmVxdWlyZWQKICAgICAgICAgIC8+CiAgICAgICAgPC9Cb3g+CiAgICAgICAgPHByZT57SlNPTi5zdHJpbmdpZnkoe3ZhbGlkYXRlZH0sIG51bGwsIDIpfTwvcHJlPgogICAgICA8L2ZpZWxkc2V0PgogICAgPC8+CiAgKTsKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgICAgICAgICAgIHwgVHlwZSAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVmYXVsdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IDotLS0tLS0tLS0tLS0tLS0tIHwgOi0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS06IHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tIHwgOi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGFwaUtleSAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTG9xYXRlIEFQSSBrZXkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNvdW50cmllcyAgICAgICAgIHwgU3RyaW5nW10gfCBBIGNvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIElTTyAyIG9yIDMgY2hhcmFjdGVyIGNvdW50cnkgY29kZXMgdG8gbGltaXQgdGhlIHNlYXJjaCB3aXRoaW4uIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgU2VlIGh0dHBzOi8vd3d3LmxvcWF0ZS5jb20vcmVzb3VyY2VzL3N1cHBvcnQvYXBpcy9DYXB0dXJlL0ludGVyYWN0aXZlL0ZpbmQvMS4xLyAtIENSVUsgdHlwaWNhbGx5IHVzZXMgIkdCUiIsICJHR1kiLCAiSU1OIiwgIkpFWSIgfAp8IGVycm9yICAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgRXJyb3IgbWVzc2FnZSB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGhhc0Vycm9yICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgSWYgdHJ1ZSwgdXNlIGVycm9yIHN0eWxpbmcgZm9yIHRoZSBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWQgICAgICAgICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJ1ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdXNlZCB3aXRoIGlzVmFsaWRWaXNpYmxlIHRvIHNob3cgdmFsaWQgaW5kaWNhdG9yICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGlzVmFsaWRWaXNpYmxlICAgIHwgQm9vbGVhbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgc2hvdyB2YWxpZCBpbmRpY2F0b3Igd2hlbiBpc1ZhbGlkIGlzIHRydWUgb3Igbm8gZXJyb3IgZXhpc3RzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGxhYmVsICAgICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgIkhvbWUgYWRkcmVzcyIgICAgICAgICAgICAgICAgICAgICAgICAgIHwgTGFiZWwgdGV4dCBmb3IgZmllbGQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGhpbnRUZXh0ICAgICAgICAgIHwgU3RyaW5nICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgIlN0YXJ0IHR5cGluZyB5b3VyIGFkZHJlc3Mgb3IgcG9zdGNvZGUiIHwgSGludCB0ZXh0IGZvciBmaWVsZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc0Vycm9yICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZXJyID0+IGNvbnNvbGUuZXJyb3IoZXJyKSAgICAgICAgICAgICAgIHwgSGFuZGxlciBmb3IgaWYgdGhlcmUgaXMgYW4gZXJyb3IgdGhyb3duIGJhY2sgYnkgTG9xYXRlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQWRkcmVzc1NlbGVjdGVkIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgUmV0dXJucyBhZGRyZXNzIG9iamVjdCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IG9uQ2hhbmdlICAgICAgICAgIHwgRnVuY3Rpb24gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgQ2FsbGJhY2sgZnVuY3Rpb24gY2FsbGVkIG9uIGlucHV0IGNoYW5nZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAoKIyMgQWNjZXNzaWJpbGl0eQoKLSBSZXNwb25kcyB0byBrZXlib2FyZCBldmVudHMKLSBJbmZvcm1zIHNjcmVlbiByZWFkZXIgdXNlcnMgb2YgdGhlIHByZXNlbmNlIG9mIHJlc3VsdHMgcmV0dXJuZWQgZnJvbSBzZWFyY2gK\""],"names":["README"],"mappings":"AAAA,IAAeA,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"../../../
|
|
1
|
+
import{__rest as e,__assign as t}from"../../../_virtual/_tslib.js";import n,{forwardRef as r,useState as o,useRef as s,useCallback as a,useEffect as i}from"react";import{useTheme as l}from"styled-components";import{faChevronRight as c}from"../../../node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js";import{useKey as d}from"../../hooks/useKey.js";import u from"../../utils/debounce.js";import{removeCommasFromObjectStringValues as m}from"../../utils/Helper.js";import{Text as f}from"../Text/index.js";import p from"../TextField/index.js";import h from"../IconFa/index.js";import g from"../../themes/cruk.js";import{ScreenReaderOnly as v,ListWrapper as y,List as E,ListItem as w}from"./styles.js";var b=r((function(r,b){var j=r.apiKey,x=r.countries,I=r.errorMessage,T=r.hasError,V=r.isValid,k=r.isValidVisible,A=r.isInvalidVisible,C=r.label,K=r.hintText,D=r.onAddressError,F=void 0===D?function(e){}:D,S=r.onAddressSelected,_=r.onChange,M=r.onBlur,B=e(r,["apiKey","countries","errorMessage","hasError","isValid","isValidVisible","isInvalidVisible","label","hintText","onAddressError","onAddressSelected","onChange","onBlur"]),H=o([]),L=H[0],O=H[1],U=o(-1),q=U[0],R=U[1],W=s(null),z=l(),G=t(t({},g),z),J=function(){R(-1),O([])},N=a(u(500,(function(e){return P(e)})),[]),P=function(e,t){if(void 0===t&&(t=""),0===e.length)return O([]);var n="".concat("https://api.addressy.com/Capture/Interactive/Find/v1.1/json3.ws","?Key=").concat(j,"&Text=").concat(e,"&Container=").concat(t);return void 0!==x&&(n="".concat(n,"&Countries=").concat(x.join(","))),fetch(n).then((function(e){if(!e.ok)throw new Error("Something went wrong please try again");return e.json()})).then((function(e){if(e.Items[0].Error)throw new Error("Something went wrong please try again");return O(e.Items||[]),null})).catch((function(e){return F(e)})),null},Q=function(e){fetch("".concat("https://api.addressy.com/Capture/Interactive/Retrieve/v1/json3.ws","?Key=").concat(j,"&Id=").concat(e)).then((function(e){if(!e.ok)throw new Error("Something went wrong please try again");return e.json()})).then((function(e){J();var t=e.Items[0],n=m(t);return S(n),null})).catch((function(e){return F(e)}))},X=function(e){return"Address"===e.Type?Q(e.Id):(P(e.Text,e.Id),null)},Y=function(e){W.current&&e.target instanceof HTMLElement&&!W.current.contains(e.target)&&J()};return i((function(){return document.addEventListener("mousedown",Y),function(){document.removeEventListener("mousedown",Y)}})),d((function(){J()}),{detectKeys:["Escape","Tab"]},[]),n.createElement(n.Fragment,null,n.createElement(p,t({"aria-activedescendant":L.length?"addressOptions-".concat(q):"","aria-owns":"found_addresses","aria-autocomplete":"both","aria-expanded":L.length?"true":"false",autoComplete:"off",hasError:T||!!I,errorMessage:I,hintText:null!=K?K:"Start typing your address or postcode",isValid:V,isValidVisible:k,isInvalidVisible:A,label:null!=C?C:"Home address",ref:b,required:!0,role:"combobox",type:"search"},B,{onKeyDown:function(e){"Enter"===e.key&&L[q]?(e.preventDefault(),"Address"===L[q].Type&&Q(L[q].Id),P(L[q].Text,L[q].Id),R(-1)):"ArrowUp"===e.key?(e.preventDefault(),q<=-1&&R(L.length-1),R(q-1)):"ArrowDown"===e.key?(e.preventDefault(),q+1>=L.length&&R(0),R(q+1)):R(-1)},onChange:function(e){N(e.target.value),_&&_(e)},onBlur:function(e){var t=!!L.length;M&&!t&&M(e)}})),!!L.length&&n.createElement(n.Fragment,null,n.createElement(v,{role:"status","aria-live":"assertive"},!!L.length&&"We have found ".concat(L.length," result").concat(1!==L.length?"s":""," matching your search. Use up and down arrow keys to navigate")),n.createElement(y,{ref:W},n.createElement(E,{"aria-label":"found addresses",id:"found_addresses",role:"listbox",theme:G},L.map((function(e,t){return n.createElement(w,{tabIndex:0,id:"addressOptions-".concat(t),isActive:t===q,key:e.Id,onClick:function(){X(e)},onKeyDown:function(t){"Enter"===t.key&&X(e)},role:"option","data-hj-suppress":!0,theme:G},n.createElement(f,{as:"span","data-hj-suppress":!0},e.Text," ",e.Description),"Address"!==e.Type&&n.createElement(n.Fragment,null,n.createElement(v,null,"press enter for these addresses"),n.createElement(h,{faIcon:c})))}))))))}));export{b as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|