@cruk/cruk-react-components 0.1.5 → 1.0.1

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.
Files changed (269) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/README.md +8 -1
  3. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
  4. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  5. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
  6. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  7. package/lib/cjs/src/components/AddressLookup/index.js +1 -1
  8. package/lib/cjs/src/components/Avatar/README.md.js +1 -1
  9. package/lib/cjs/src/components/Avatar/README.md.js.map +1 -1
  10. package/lib/cjs/src/components/Avatar/index.js +1 -1
  11. package/lib/cjs/src/components/Avatar/styles.js +1 -1
  12. package/lib/cjs/src/components/Badge/styles.js +1 -1
  13. package/lib/cjs/src/components/Box/styles.js +1 -1
  14. package/lib/cjs/src/components/Button/README.md.js +1 -1
  15. package/lib/cjs/src/components/Button/README.md.js.map +1 -1
  16. package/lib/cjs/src/components/Button/index.js +1 -1
  17. package/lib/cjs/src/components/Button/styles.js +1 -1
  18. package/lib/cjs/src/components/Checkbox/README.md.js +1 -1
  19. package/lib/cjs/src/components/Checkbox/README.md.js.map +1 -1
  20. package/lib/cjs/src/components/Checkbox/index.js +1 -1
  21. package/lib/cjs/src/components/Checkbox/styles.js +1 -1
  22. package/lib/cjs/src/components/Collapse/index.js +1 -1
  23. package/lib/cjs/src/components/Collapse/styles.js +1 -1
  24. package/lib/cjs/src/components/Divider.js +1 -1
  25. package/lib/cjs/src/components/ErrorText/index.js +1 -1
  26. package/lib/cjs/src/components/ErrorText/styles.js +1 -1
  27. package/lib/cjs/src/components/Flex.js +1 -1
  28. package/lib/cjs/src/components/Footer/index.js +1 -1
  29. package/lib/cjs/src/components/GlobalStyle.js +1 -1
  30. package/lib/cjs/src/components/Header/index.js +1 -1
  31. package/lib/cjs/src/components/Header/styles.js +1 -1
  32. package/lib/cjs/src/components/Heading/styles.js +1 -1
  33. package/lib/cjs/src/components/Icon/index.js +1 -1
  34. package/lib/cjs/src/components/Icon/styles.js +1 -1
  35. package/lib/cjs/src/components/Link/styles.js +1 -1
  36. package/lib/cjs/src/components/Modal/index.js +1 -1
  37. package/lib/cjs/src/components/Modal/styles.js +1 -1
  38. package/lib/cjs/src/components/Pagination/index.js +1 -1
  39. package/lib/cjs/src/components/Pagination/styles.js +1 -1
  40. package/lib/cjs/src/components/PopOver/README.md.js +1 -1
  41. package/lib/cjs/src/components/PopOver/README.md.js.map +1 -1
  42. package/lib/cjs/src/components/PopOver/index.js +1 -1
  43. package/lib/cjs/src/components/PopOver/styles.js +1 -1
  44. package/lib/cjs/src/components/ProgressBar/index.js +1 -1
  45. package/lib/cjs/src/components/ProgressBar/styles.js +1 -1
  46. package/lib/cjs/src/components/Radio/README.md.js +1 -1
  47. package/lib/cjs/src/components/Radio/README.md.js.map +1 -1
  48. package/lib/cjs/src/components/Radio/index.js +1 -1
  49. package/lib/cjs/src/components/Radio/styles.js +1 -1
  50. package/lib/cjs/src/components/RadioConsent/README.md.js +2 -0
  51. package/lib/cjs/src/components/RadioConsent/README.md.js.map +1 -0
  52. package/lib/cjs/src/components/{RadioGroup → RadioConsent}/index.js +0 -0
  53. package/lib/cjs/src/components/{RadioGroup → RadioConsent}/index.js.map +0 -0
  54. package/lib/cjs/src/components/RadioConsent/styles.js +2 -0
  55. package/lib/cjs/src/components/{RadioGroup → RadioConsent}/styles.js.map +0 -0
  56. package/lib/cjs/src/components/Select/index.js +1 -1
  57. package/lib/cjs/src/components/Select/styles.js +1 -1
  58. package/lib/cjs/src/components/Spacing/index.js +1 -1
  59. package/lib/cjs/src/components/Step/index.js +1 -1
  60. package/lib/cjs/src/components/Step/styles.js +1 -1
  61. package/lib/cjs/src/components/Text/styles.js +1 -1
  62. package/lib/cjs/src/components/TextAreaField/README.md.js +1 -1
  63. package/lib/cjs/src/components/TextAreaField/README.md.js.map +1 -1
  64. package/lib/cjs/src/components/TextAreaField/index.js +1 -1
  65. package/lib/cjs/src/components/TextAreaField/styles.js +1 -1
  66. package/lib/cjs/src/components/TextField/README.md.js +1 -1
  67. package/lib/cjs/src/components/TextField/README.md.js.map +1 -1
  68. package/lib/cjs/src/components/TextField/index.js +1 -1
  69. package/lib/cjs/src/components/TextField/styles.js +1 -1
  70. package/lib/cjs/src/components/Totaliser/README.md.js +1 -1
  71. package/lib/cjs/src/components/Totaliser/README.md.js.map +1 -1
  72. package/lib/cjs/src/components/Totaliser/index.js +1 -1
  73. package/lib/cjs/src/components/Totaliser/styles.js +1 -1
  74. package/lib/cjs/src/components/UserBlock/index.js +1 -1
  75. package/lib/cjs/src/components/index.js +1 -1
  76. package/lib/cjs/src/hooks/useLayoutEffectBrowser.js +1 -1
  77. package/lib/cjs/src/hooks/useScrollPosition.js +1 -1
  78. package/lib/cjs/src/themes/cruk.js +1 -1
  79. package/lib/cjs/src/themes/su2c.js +1 -1
  80. package/lib/cjs/src/utils/Helper.js +1 -1
  81. package/lib/components/AddressLookup/AddressLookup.stories.d.ts +2 -2
  82. package/lib/components/AddressLookup/index.d.ts +3 -3
  83. package/lib/components/AddressLookup/styles.d.ts +2 -2
  84. package/lib/components/Avatar/Avatar.stories.d.ts +2 -2
  85. package/lib/components/Avatar/index.d.ts +3 -3
  86. package/lib/components/Avatar/styles.d.ts +3 -1
  87. package/lib/components/Badge/Badge.stories.d.ts +2 -2
  88. package/lib/components/Badge/index.d.ts +2 -2
  89. package/lib/components/Badge/styles.d.ts +2 -2
  90. package/lib/components/Box/Box.stories.d.ts +2 -2
  91. package/lib/components/Box/index.d.ts +3 -3
  92. package/lib/components/Box/styles.d.ts +8 -7
  93. package/lib/components/Button/Button.stories.d.ts +2 -2
  94. package/lib/components/Button/index.d.ts +5 -3
  95. package/lib/components/Button/styles.d.ts +3 -3
  96. package/lib/components/Checkbox/Checkbox.stories.d.ts +2 -2
  97. package/lib/components/Checkbox/index.d.ts +1 -1
  98. package/lib/components/Checkbox/styles.d.ts +2 -0
  99. package/lib/components/Collapse/Collapse.stories.d.ts +2 -2
  100. package/lib/components/Collapse/index.d.ts +2 -2
  101. package/lib/components/Collapse/styles.d.ts +2 -1
  102. package/lib/components/DateField/DateField.stories.d.ts +2 -2
  103. package/lib/components/DateField/index.d.ts +2 -2
  104. package/lib/components/Divider.d.ts +1 -1
  105. package/lib/components/ErrorText/ErrorText.stories.d.ts +2 -2
  106. package/lib/components/ErrorText/index.d.ts +4 -4
  107. package/lib/components/ErrorText/styles.d.ts +1 -0
  108. package/lib/components/Flex.d.ts +2 -5
  109. package/lib/components/Footer/Footer.stories.d.ts +2 -2
  110. package/lib/components/Footer/index.d.ts +1 -1
  111. package/lib/components/GlobalStyle.d.ts +4 -4
  112. package/lib/components/Header/Header.stories.d.ts +2 -2
  113. package/lib/components/Header/index.d.ts +2 -2
  114. package/lib/components/Heading/Heading.stories.d.ts +2 -2
  115. package/lib/components/Heading/index.d.ts +4 -4
  116. package/lib/components/Heading/styles.d.ts +43 -15
  117. package/lib/components/Icon/Icon.stories.d.ts +2 -2
  118. package/lib/components/Icon/index.d.ts +2 -2
  119. package/lib/components/Icon/styles.d.ts +1 -0
  120. package/lib/components/LabelWrapper/index.d.ts +1 -1
  121. package/lib/components/LabelWrapper/styles.d.ts +1 -1
  122. package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +2 -2
  123. package/lib/components/LegendWrapper/index.d.ts +1 -1
  124. package/lib/components/LegendWrapper/styles.d.ts +3 -3
  125. package/lib/components/Link/Link.stories.d.ts +2 -2
  126. package/lib/components/Link/index.d.ts +4 -4
  127. package/lib/components/Link/styles.d.ts +15 -9
  128. package/lib/components/Loader/Loader.stories.d.ts +1 -1
  129. package/lib/components/Loader/index.d.ts +2 -2
  130. package/lib/components/Modal/Modal.stories.d.ts +2 -2
  131. package/lib/components/Modal/index.d.ts +3 -3
  132. package/lib/components/Pagination/Pagination.stories.d.ts +2 -2
  133. package/lib/components/Pagination/index.d.ts +4 -4
  134. package/lib/components/PopOver/Popover.stories.d.ts +2 -2
  135. package/lib/components/PopOver/index.d.ts +2 -2
  136. package/lib/components/PopOver/styles.d.ts +1 -1
  137. package/lib/components/ProgressBar/ProgressBar.stories.d.ts +2 -2
  138. package/lib/components/ProgressBar/index.d.ts +1 -1
  139. package/lib/components/ProgressBar/styles.d.ts +2 -2
  140. package/lib/components/Radio/Radio.stories.d.ts +2 -2
  141. package/lib/components/Radio/index.d.ts +1 -1
  142. package/lib/components/Radio/styles.d.ts +10 -3
  143. package/lib/components/RadioConsent/Radio.stories.d.ts +6 -0
  144. package/lib/components/RadioConsent/index.d.ts +24 -0
  145. package/lib/components/{RadioGroup → RadioConsent}/styles.d.ts +6 -3
  146. package/lib/components/{RadioGroup → RadioConsent}/test.cypress.d.ts +0 -0
  147. package/lib/components/Select/Selelct.stories.d.ts +2 -2
  148. package/lib/components/Select/index.d.ts +4 -1
  149. package/lib/components/Select/styles.d.ts +4 -3
  150. package/lib/components/Spacing/index.d.ts +1 -1
  151. package/lib/components/Step/Step.stories.d.ts +2 -2
  152. package/lib/components/Step/index.d.ts +1 -1
  153. package/lib/components/TestWrapper.d.ts +2 -2
  154. package/lib/components/Text/Text.stories.d.ts +2 -2
  155. package/lib/components/Text/index.d.ts +4 -4
  156. package/lib/components/Text/styles.d.ts +13 -5
  157. package/lib/components/TextAreaField/TextAreaField.stories.d.ts +2 -2
  158. package/lib/components/TextAreaField/index.d.ts +3 -3
  159. package/lib/components/TextAreaField/styles.d.ts +5 -4
  160. package/lib/components/TextField/TextField.stories.d.ts +2 -2
  161. package/lib/components/TextField/index.d.ts +1 -1
  162. package/lib/components/TextField/styles.d.ts +1 -1
  163. package/lib/components/ThemeCheatSheet.d.ts +4 -6
  164. package/lib/components/Totaliser/Totaliser.stories.d.ts +2 -2
  165. package/lib/components/Totaliser/index.d.ts +1 -1
  166. package/lib/components/Totaliser/styles.d.ts +6 -8
  167. package/lib/components/UserBlock/UserBlock.stories.d.ts +2 -2
  168. package/lib/components/UserBlock/index.d.ts +2 -2
  169. package/lib/components/index.d.ts +65 -65
  170. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
  171. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  172. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
  173. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  174. package/lib/es/src/components/AddressLookup/index.js +1 -1
  175. package/lib/es/src/components/Avatar/README.md.js +1 -1
  176. package/lib/es/src/components/Avatar/README.md.js.map +1 -1
  177. package/lib/es/src/components/Avatar/index.js +1 -1
  178. package/lib/es/src/components/Avatar/styles.js +1 -1
  179. package/lib/es/src/components/Badge/styles.js +1 -1
  180. package/lib/es/src/components/Box/styles.js +1 -1
  181. package/lib/es/src/components/Button/README.md.js +1 -1
  182. package/lib/es/src/components/Button/README.md.js.map +1 -1
  183. package/lib/es/src/components/Button/index.js +1 -1
  184. package/lib/es/src/components/Button/styles.js +1 -1
  185. package/lib/es/src/components/Checkbox/README.md.js +1 -1
  186. package/lib/es/src/components/Checkbox/README.md.js.map +1 -1
  187. package/lib/es/src/components/Checkbox/index.js +1 -1
  188. package/lib/es/src/components/Checkbox/styles.js +1 -1
  189. package/lib/es/src/components/Collapse/index.js +1 -1
  190. package/lib/es/src/components/Collapse/styles.js +1 -1
  191. package/lib/es/src/components/Divider.js +1 -1
  192. package/lib/es/src/components/ErrorText/index.js +1 -1
  193. package/lib/es/src/components/ErrorText/styles.js +1 -1
  194. package/lib/es/src/components/Flex.js +1 -1
  195. package/lib/es/src/components/Footer/index.js +1 -1
  196. package/lib/es/src/components/GlobalStyle.js +1 -1
  197. package/lib/es/src/components/Header/index.js +1 -1
  198. package/lib/es/src/components/Header/styles.js +1 -1
  199. package/lib/es/src/components/Heading/styles.js +1 -1
  200. package/lib/es/src/components/Icon/index.js +1 -1
  201. package/lib/es/src/components/Icon/styles.js +1 -1
  202. package/lib/es/src/components/Link/styles.js +1 -1
  203. package/lib/es/src/components/Modal/index.js +1 -1
  204. package/lib/es/src/components/Modal/styles.js +1 -1
  205. package/lib/es/src/components/Pagination/index.js +1 -1
  206. package/lib/es/src/components/Pagination/styles.js +1 -1
  207. package/lib/es/src/components/PopOver/README.md.js +1 -1
  208. package/lib/es/src/components/PopOver/README.md.js.map +1 -1
  209. package/lib/es/src/components/PopOver/index.js +1 -1
  210. package/lib/es/src/components/PopOver/styles.js +1 -1
  211. package/lib/es/src/components/ProgressBar/index.js +1 -1
  212. package/lib/es/src/components/ProgressBar/styles.js +1 -1
  213. package/lib/es/src/components/Radio/README.md.js +1 -1
  214. package/lib/es/src/components/Radio/README.md.js.map +1 -1
  215. package/lib/es/src/components/Radio/index.js +1 -1
  216. package/lib/es/src/components/Radio/styles.js +1 -1
  217. package/lib/es/src/components/RadioConsent/README.md.js +2 -0
  218. package/lib/es/src/components/RadioConsent/README.md.js.map +1 -0
  219. package/lib/es/src/components/{RadioGroup → RadioConsent}/index.js +0 -0
  220. package/lib/es/src/components/{RadioGroup → RadioConsent}/index.js.map +0 -0
  221. package/lib/es/src/components/RadioConsent/styles.js +2 -0
  222. package/lib/es/src/components/{RadioGroup → RadioConsent}/styles.js.map +0 -0
  223. package/lib/es/src/components/Select/index.js +1 -1
  224. package/lib/es/src/components/Select/styles.js +1 -1
  225. package/lib/es/src/components/Spacing/index.js +1 -1
  226. package/lib/es/src/components/Step/index.js +1 -1
  227. package/lib/es/src/components/Step/styles.js +1 -1
  228. package/lib/es/src/components/Text/styles.js +1 -1
  229. package/lib/es/src/components/TextAreaField/README.md.js +1 -1
  230. package/lib/es/src/components/TextAreaField/README.md.js.map +1 -1
  231. package/lib/es/src/components/TextAreaField/index.js +1 -1
  232. package/lib/es/src/components/TextAreaField/styles.js +1 -1
  233. package/lib/es/src/components/TextField/README.md.js +1 -1
  234. package/lib/es/src/components/TextField/README.md.js.map +1 -1
  235. package/lib/es/src/components/TextField/index.js +1 -1
  236. package/lib/es/src/components/TextField/styles.js +1 -1
  237. package/lib/es/src/components/Totaliser/README.md.js +1 -1
  238. package/lib/es/src/components/Totaliser/README.md.js.map +1 -1
  239. package/lib/es/src/components/Totaliser/index.js +1 -1
  240. package/lib/es/src/components/Totaliser/styles.js +1 -1
  241. package/lib/es/src/components/UserBlock/index.js +1 -1
  242. package/lib/es/src/components/index.js +1 -1
  243. package/lib/es/src/hooks/useLayoutEffectBrowser.js +1 -1
  244. package/lib/es/src/hooks/useScrollPosition.js +1 -1
  245. package/lib/es/src/themes/cruk.js +1 -1
  246. package/lib/es/src/themes/su2c.js +1 -1
  247. package/lib/es/src/utils/Helper.js +1 -1
  248. package/lib/hocs/MdxProvider.d.ts +1 -1
  249. package/lib/hooks/useEffectBrowser.d.ts +1 -1
  250. package/lib/hooks/useKey.d.ts +2 -2
  251. package/lib/hooks/useLayoutEffectBrowser.d.ts +3 -2
  252. package/lib/hooks/useScrollPosition.d.ts +13 -2
  253. package/lib/themes/cruk.d.ts +1 -1
  254. package/lib/themes/su2c.d.ts +1 -1
  255. package/lib/types.d.ts +14 -14
  256. package/package.json +56 -37
  257. package/lib/cjs/src/components/RadioGroup/README.md.js +0 -2
  258. package/lib/cjs/src/components/RadioGroup/README.md.js.map +0 -1
  259. package/lib/cjs/src/components/RadioGroup/styles.js +0 -2
  260. package/lib/components/RadioGroup/Radio.stories.d.ts +0 -6
  261. package/lib/components/RadioGroup/index.d.ts +0 -24
  262. package/lib/es/src/components/RadioGroup/README.md.js +0 -2
  263. package/lib/es/src/components/RadioGroup/README.md.js.map +0 -1
  264. package/lib/es/src/components/RadioGroup/styles.js +0 -2
  265. package/lib/stories/Button.d.ts +0 -28
  266. package/lib/stories/Header.d.ts +0 -9
  267. package/lib/stories/Header.stories.d.ts +0 -6
  268. package/lib/stories/Page.d.ts +0 -9
  269. package/lib/stories/Page.stories.d.ts +0 -6
@@ -1,65 +1,65 @@
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 Checkbox } from './Checkbox';
7
- export { default as Collapse } from './Collapse';
8
- export { default as DateField } from './DateField';
9
- export { default as Divider } from './Divider';
10
- export { default as ErrorText } from './ErrorText';
11
- export { default as Flex } from './Flex';
12
- export { default as Footer } from './Footer';
13
- export { default as GlobalStyle } from './GlobalStyle';
14
- export { default as Header } from './Header';
15
- export { default as Heading } from './Heading';
16
- export { default as Icon } from './Icon';
17
- export { default as LabelWrapper } from './LabelWrapper';
18
- export { default as LegendWrapper } from './LegendWrapper';
19
- export { default as Link } from './Link';
20
- export { default as Loader } from './Loader';
21
- export { default as Modal } from './Modal';
22
- export { default as Pagination } from './Pagination';
23
- export { default as PopOver } from './PopOver';
24
- export { default as ProgressBar } from './ProgressBar';
25
- export { default as Radio } from './Radio';
26
- export { default as RadioGroup } from './RadioGroup';
27
- export { default as Select } from './Select';
28
- export { default as Step } from './Step';
29
- export { default as Text } from './Text';
30
- export { default as TextAreaField } from './TextAreaField';
31
- export { default as TextField } from './TextField';
32
- export { default as Totaliser } from './Totaliser';
33
- export { default as UserBlock } from './UserBlock';
34
- export { default as crukTheme } from '../themes/cruk';
35
- export { default as su2cTheme } from '../themes/su2c';
36
- export { default as AddressLookupReadme } from './AddressLookup/README.md';
37
- export { default as AvatarReadme } from './Avatar/README.md';
38
- export { default as BadgeReadme } from './Badge/README.md';
39
- export { default as BoxReadme } from './Box/README.md';
40
- export { default as ButtonReadme } from './Button/README.md';
41
- export { default as CheckboxReadme } from './Checkbox/README.md';
42
- export { default as CollapseReadme } from './Collapse/README.md';
43
- export { default as DateFieldReadme } from './DateField/README.md';
44
- export { default as ErrorTextReadme } from './ErrorText/README.md';
45
- export { default as FooterReadme } from './Footer/README.md';
46
- export { default as HeadingReadme } from './Heading/README.md';
47
- export { default as HeaderReadme } from './Header/README.md';
48
- export { default as IconReadme } from './Icon/README.md';
49
- export { default as LinkReadme } from './Link/README.md';
50
- export { default as LegendWrapperReadme } from './LegendWrapper/README.md';
51
- export { default as LoaderReadme } from './Loader/README.md';
52
- export { default as ModalReadme } from './Modal/README.md';
53
- export { default as PaginationReadme } from './Pagination/README.md';
54
- export { default as PopOverReadme } from './PopOver/README.md';
55
- export { default as ProgressBarReadme } from './ProgressBar/README.md';
56
- export { default as RadioReadme } from './Radio/README.md';
57
- export { default as RadioGroupReadme } from './RadioGroup/README.md';
58
- export { default as SelectReadme } from './Select/README.md';
59
- export { default as StepReadme } from './Step/README.md';
60
- export { default as TextReadme } from './Text/README.md';
61
- export { default as TextAreaFieldReadme } from './TextAreaField/README.md';
62
- export { default as TextFieldReadme } from './TextField/README.md';
63
- export { default as TotaliserReadme } from './Totaliser/README.md';
64
- export { default as UserBlockReadme } from './UserBlock/README.md';
65
- 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 Checkbox } from "./Checkbox";
7
+ export { default as Collapse } from "./Collapse";
8
+ export { default as DateField } from "./DateField";
9
+ export { default as Divider } from "./Divider";
10
+ export { default as ErrorText } from "./ErrorText";
11
+ export { default as Flex } from "./Flex";
12
+ export { default as Footer } from "./Footer";
13
+ export { default as GlobalStyle } from "./GlobalStyle";
14
+ export { default as Header } from "./Header";
15
+ export { default as Heading } from "./Heading";
16
+ export { default as Icon } from "./Icon";
17
+ export { default as LabelWrapper } from "./LabelWrapper";
18
+ export { default as LegendWrapper } from "./LegendWrapper";
19
+ export { default as Link } from "./Link";
20
+ export { default as Loader } from "./Loader";
21
+ export { default as Modal } from "./Modal";
22
+ export { default as Pagination } from "./Pagination";
23
+ export { default as PopOver } from "./PopOver";
24
+ export { default as ProgressBar } from "./ProgressBar";
25
+ export { default as Radio } from "./Radio";
26
+ export { default as RadioConsent } from "./RadioConsent";
27
+ export { default as Select } from "./Select";
28
+ export { default as Step } from "./Step";
29
+ export { default as Text } from "./Text";
30
+ export { default as TextAreaField } from "./TextAreaField";
31
+ export { default as TextField } from "./TextField";
32
+ export { default as Totaliser } from "./Totaliser";
33
+ export { default as UserBlock } from "./UserBlock";
34
+ export { default as crukTheme } from "../themes/cruk";
35
+ export { default as su2cTheme } from "../themes/su2c";
36
+ export { default as AddressLookupReadme } from "./AddressLookup/README.md";
37
+ export { default as AvatarReadme } from "./Avatar/README.md";
38
+ export { default as BadgeReadme } from "./Badge/README.md";
39
+ export { default as BoxReadme } from "./Box/README.md";
40
+ export { default as ButtonReadme } from "./Button/README.md";
41
+ export { default as CheckboxReadme } from "./Checkbox/README.md";
42
+ export { default as CollapseReadme } from "./Collapse/README.md";
43
+ export { default as DateFieldReadme } from "./DateField/README.md";
44
+ export { default as ErrorTextReadme } from "./ErrorText/README.md";
45
+ export { default as FooterReadme } from "./Footer/README.md";
46
+ export { default as HeadingReadme } from "./Heading/README.md";
47
+ export { default as HeaderReadme } from "./Header/README.md";
48
+ export { default as IconReadme } from "./Icon/README.md";
49
+ export { default as LinkReadme } from "./Link/README.md";
50
+ export { default as LegendWrapperReadme } from "./LegendWrapper/README.md";
51
+ export { default as LoaderReadme } from "./Loader/README.md";
52
+ export { default as ModalReadme } from "./Modal/README.md";
53
+ export { default as PaginationReadme } from "./Pagination/README.md";
54
+ export { default as PopOverReadme } from "./PopOver/README.md";
55
+ export { default as ProgressBarReadme } from "./ProgressBar/README.md";
56
+ export { default as RadioReadme } from "./Radio/README.md";
57
+ export { default as RadioConsentReadme } from "./RadioConsent/README.md";
58
+ export { default as SelectReadme } from "./Select/README.md";
59
+ export { default as StepReadme } from "./Step/README.md";
60
+ export { default as TextReadme } from "./Text/README.md";
61
+ export { default as TextAreaFieldReadme } from "./TextAreaField/README.md";
62
+ export { default as TextFieldReadme } from "./TextField/README.md";
63
+ export { default as TotaliserReadme } from "./Totaliser/README.md";
64
+ export { default as UserBlockReadme } from "./UserBlock/README.md";
65
+ export * from "../types";
@@ -1,2 +1,2 @@
1
- import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import{node as t,bool as r,oneOfType as s,object as a,string as c,func as n,arrayOf as u,any as i}from"prop-types";import{FOCUS_DISABLED as d,FOCUS_GROUP as l}from"../../../focus-lock/dist/es2015/constants.js";import{hiddenGuard as f}from"./FocusGuard.js";import{mediumFocus as m,mediumBlur as v,mediumSidecar as p}from"./medium.js";import{useMergeRefs as F}from"../../../use-callback-ref/dist/es2015/useMergeRef.js";var b=[],k=o.forwardRef((function(t,r){var s,a=o.useState(),c=a[0],n=a[1],u=o.useRef(),i=o.useRef(!1),k=o.useRef(null),h=t.children,E=t.disabled,g=t.noFocusGuards,w=t.persistentFocus,x=t.crossFrame,y=t.autoFocus,C=t.allowTextSelection,N=t.group,R=t.className,j=t.whiteList,D=t.shards,L=void 0===D?b:D,S=t.as,P=void 0===S?"div":S,T=t.lockProps,A=void 0===T?{}:T,G=t.sideCar,I=t.returnFocus,M=t.onActivation,B=t.onDeactivation,O=o.useState({})[0],V=o.useCallback((function(){k.current=k.current||document&&document.activeElement,u.current&&M&&M(u.current),i.current=!0}),[M]),_=o.useCallback((function(){i.current=!1,B&&B(u.current)}),[B]),q=o.useCallback((function(e){var o=k.current;if(Boolean(I)&&o&&o.focus){var t="object"==typeof I?I:void 0;k.current=null,e?Promise.resolve().then((function(){return o.focus(t)})):o.focus(t)}}),[I]),z=o.useCallback((function(e){i.current&&m.useMedium(e)}),[]),H=v.useMedium,J=o.useCallback((function(e){u.current!==e&&(u.current=e,n(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==C&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),o.useEffect((function(){u.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var K=e(((s={})[d]=E&&"disabled",s[l]=N,s),A),Q=!0!==g,U=Q&&"tail"!==g,W=F([r,J]);return o.createElement(o.Fragment,null,Q&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:E?-1:0,style:f}),o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:E?-1:1,style:f})],!E&&o.createElement(G,{id:O,sideCar:p,observed:c,disabled:E,persistentFocus:w,crossFrame:x,autoFocus:y,whiteList:j,shards:L,onActivation:V,onDeactivation:_,returnFocus:q}),o.createElement(P,e({ref:W},K,{className:R,onBlur:H,onFocus:z}),h),U&&o.createElement("div",{"data-focus-guard":!0,tabIndex:E?-1:0,style:f}))}));k.propTypes="production"!==process.env.NODE_ENV?{children:t,disabled:r,returnFocus:s([r,a]),noFocusGuards:r,allowTextSelection:r,autoFocus:r,persistentFocus:r,crossFrame:r,group:c,className:c,whiteList:n,shards:u(i),as:s([c,n,a]),lockProps:a,onActivation:n,onDeactivation:n,sideCar:i.isRequired}:{},k.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!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 h=k;export{h as default};
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import{useEffect as t}from"react";import{node as r,bool as s,oneOfType as a,object as n,string as c,func as u,arrayOf as i,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 m}from"./FocusGuard.js";import{mediumFocus as v,mediumBlur as p,mediumSidecar as F}from"./medium.js";import{useMergeRefs as b}from"../../../use-callback-ref/dist/es2015/useMergeRef.js";var k=[],h=o.forwardRef((function(r,s){var a,n=o.useState(),c=n[0],u=n[1],i=o.useRef(),d=o.useRef(!1),h=o.useRef(null),E=r.children,g=r.disabled,w=r.noFocusGuards,y=r.persistentFocus,x=r.crossFrame,C=r.autoFocus,N=r.allowTextSelection,R=r.group,j=r.className,D=r.whiteList,L=r.shards,S=void 0===L?k:L,P=r.as,T=void 0===P?"div":P,A=r.lockProps,G=void 0===A?{}:A,I=r.sideCar,M=r.returnFocus,B=r.onActivation,O=r.onDeactivation,V=o.useState({})[0],_=o.useCallback((function(){h.current=h.current||document&&document.activeElement,i.current&&B&&B(i.current),d.current=!0}),[B]),q=o.useCallback((function(){d.current=!1,O&&O(i.current)}),[O]);t((function(){g||(h.current=null)}),[]);var z=o.useCallback((function(e){var o=h.current;if(o&&o.focus){var t="function"==typeof M?M(o):M;if(Boolean(t)){var r="object"==typeof t?t:void 0;h.current=null,e?Promise.resolve().then((function(){return o.focus(r)})):o.focus(r)}}}),[M]),H=o.useCallback((function(e){d.current&&v.useMedium(e)}),[]),J=p.useMedium,K=o.useCallback((function(e){i.current!==e&&(i.current=e,u(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==N&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),o.useEffect((function(){i.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var Q=e(((a={})[l]=g&&"disabled",a[f]=R,a),G),U=!0!==w,W=U&&"tail"!==w,X=b([s,K]);return o.createElement(o.Fragment,null,U&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:m}),o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:m})],!g&&o.createElement(I,{id:V,sideCar:F,observed:c,disabled:g,persistentFocus:y,crossFrame:x,autoFocus:C,whiteList:D,shards:S,onActivation:_,onDeactivation:q,returnFocus:z}),o.createElement(T,e({ref:X},Q,{className:j,onBlur:J,onFocus:H}),E),W&&o.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:m}))}));h.propTypes="production"!==process.env.NODE_ENV?{children:r,disabled:s,returnFocus:a([s,n]),noFocusGuards:s,allowTextSelection:s,autoFocus:s,persistentFocus:s,crossFrame:s,group:c,className:c,whiteList:u,shards:i(d),as:a([c,u,n]),lockProps:n,onActivation:u,onDeactivation:u,sideCar:d.isRequired}:{},h.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!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=h;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 { 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 _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 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 var returnFocus = React.useCallback(function (allowDefer) {\n var current = originalFocusedElement.current;\n\n if (Boolean(shouldReturnFocus) && current && current.focus) {\n var focusOptions = typeof shouldReturnFocus === 'object' ? shouldReturnFocus : 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 current.focus(focusOptions);\n });\n } else {\n current.focus(focusOptions);\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 if (!observed.current) {\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 && [/*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }),\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) // first tabbed element guard\n ], !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 }), /*#__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]),\n noFocusGuards: 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 noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\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","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","allowDefer","Boolean","focus","focusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","useEffect","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","string","func","arrayOf","any","isRequired","defaultProps"],"mappings":"ufAOA,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,EAAgBrB,EAAMsB,OACtBA,OAA2B,IAAlBD,EAA2BzB,EAAayB,EACjDE,EAAYvB,EAAMwB,GAClBC,OAA0B,IAAdF,EAAuB,MAAQA,EAC3CG,EAAmB1B,EAAM2B,UACzBC,OAAsC,IAArBF,EAA8B,GAAKA,EACpDG,EAAU7B,EAAM8B,QAChBC,EAAoB/B,EAAMgC,YAC1BC,EAAuBjC,EAAMkC,aAC7BC,EAA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AAW,GACXO,kBAAcY,EACdV,oBAAgBU,GAElB,MAAejD"}
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 { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nimport { useEffect } from \"react\";\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 _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 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 (Boolean(howToReturnFocus)) {\n var focusOptions = 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(focusOptions);\n });\n } else {\n returnFocusTo.focus(focusOptions);\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 if (!observed.current) {\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 && [/*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }),\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) // first tabbed element guard\n ], !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 }), /*#__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]),\n noFocusGuards: 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 noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\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","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","Boolean","focusOptions","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","string","func","arrayOf","any","isRequired","defaultProps"],"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,EAAgBrB,EAAMsB,OACtBA,OAA2B,IAAlBD,EAA2BzB,EAAayB,EACjDE,EAAYvB,EAAMwB,GAClBC,OAA0B,IAAdF,EAAuB,MAAQA,EAC3CG,EAAmB1B,EAAM2B,UACzBC,OAAsC,IAArBF,EAA8B,GAAKA,EACpDG,EAAU7B,EAAM8B,QAChBC,EAAoB/B,EAAMgC,YAC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ACVoB,aAAa,EACbnB,eAAe,EACfG,WAAW,EACXF,iBAAiB,EACjBC,YAAY,EACZE,wBAAoBgC,EACpB/B,WAAO+B,EACP9B,eAAW8B,EACX7B,eAAW6B,EACX3B,YAAQ2B,EACRzB,GAAI,MACJG,UAAW,GACXO,kBAAce,EACdb,oBAAgBa,GAElB,MAAepD"}
@@ -1,2 +1,2 @@
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{focusIsHidden as s}from"../../../focus-lock/dist/es2015/focusIsHidden.js";import{getFocusabledIn as d}from"../../../focus-lock/dist/es2015/focusables.js";var a=function(){return document&&document.activeElement===document.body||s()},f=null,m=null,l=null,v=!1,p=function(){return!0};function b(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 E=function(e){return e&&"current"in e?e.current:e},g=function(){var e,n=!1;if(f){var o=f,r=o.observed,u=o.persistentFocus,i=o.autoFocus,s=o.shards,g=o.crossFrame,h=r||l&&l.portaledElement,j=document&&document.activeElement;if(h){var w=[h].concat(s.map(E).filter(Boolean));if(j&&!function(e){return(f.whiteList||p)(e)}(j)||(u||(g?Boolean(v):"meanwhile"===v)||!a()||!m&&i)&&(!h||c(w)||(e=j,l&&l.portaledElement===e)||(document&&!m&&j&&!i?(j.blur&&j.blur(),document.body.focus()):(n=t(w,m),l={})),v=!1,m=document&&document.activeElement),document){var I=document&&document.activeElement,L=d(w),k=L.map((function(e){return e.node})).indexOf(I);k>-1&&(L.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),b(k,L.length,1,L),b(k,-1,-1,L))}}}return n},h=function(e){g()&&e&&(e.stopPropagation(),e.preventDefault())},j=function(){return o(g)};"production"===process.env.NODE_ENV||e.node.isRequired;var w=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(j),i.assignMedium((function(e){return e({moveFocusInside:t,focusInside:c})}));var I=n((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!f&&(document.addEventListener("focusin",h,!0),document.addEventListener("focusout",j),window.addEventListener("blur",w));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(),g(),o(g)):(document.removeEventListener("focusin",h,!0),document.removeEventListener("focusout",j),window.removeEventListener("blur",w),m=null)}))((function(){return null}));export{I as default};
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{focusIsHidden as s}from"../../../focus-lock/dist/es2015/focusIsHidden.js";import{getFocusabledIn as d}from"../../../focus-lock/dist/es2015/focusables.js";var a=function(){return document&&document.activeElement===document.body||s()},f=null,m=null,l=null,v=!1,p=function(){return!0};function b(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 E=function(e){return e&&"current"in e?e.current:e},g=function(){var e,n=!1;if(f){var o=f,r=o.observed,u=o.persistentFocus,i=o.autoFocus,s=o.shards,g=o.crossFrame,h=r||l&&l.portaledElement,j=document&&document.activeElement;if(h){var w=[h].concat(s.map(E).filter(Boolean));if(j&&!function(e){return(f.whiteList||p)(e)}(j)||(u||(g?Boolean(v):"meanwhile"===v)||!a()||!m&&i)&&(!h||c(w)||(e=j,l&&l.portaledElement===e)||(document&&!m&&j&&!i?(j.blur&&j.blur(),document.body.focus()):(n=t(w,m),l={})),v=!1,m=document&&document.activeElement),document){var I=document&&document.activeElement,L=d(w),k=L.map((function(e){return e.node})).indexOf(I);k>-1&&(L.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),b(k,L.length,1,L),b(k,-1,-1,L))}}}return n},h=function(e){g()&&e&&(e.stopPropagation(),e.preventDefault())},j=function(){return o(g)};"production"===process.env.NODE_ENV||e.node.isRequired;var w=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(j),i.assignMedium((function(e){return e({moveFocusInside:t,focusInside:c})}));var I=n((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!f&&(document.addEventListener("focusin",h),document.addEventListener("focusout",j),window.addEventListener("blur",w));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(),g(),o(g)):(document.removeEventListener("focusin",h),document.removeEventListener("focusout",j),window.removeEventListener("blur",w),m=null)}))((function(){return null}));export{I 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":["import * 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 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 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 && !(focusInside(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 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, true);\n document.addEventListener('focusout', onBlur);\n window.addEventListener('blur', onWindowBlur);\n};\n\nvar detachHandler = function detachHandler() {\n document.removeEventListener('focusin', onTrap, true);\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","activateTrap","element","result","_lastActiveTrap","observed","persistentFocus","autoFocus","shards","crossFrame","workingNode","portaledElement","workingArea","concat","map","filter","Boolean","whiteList","focusWhitelisted","focusInside","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","contains","observerNode","mediumBlur","assignMedium","mediumEffect","cb","withSideEffect","propsList","_ref5","disabled","traps","trap","slice","addEventListener","window","lastTrap","sameTrap","id","onDeactivation","_ref6","returnFocus","onActivation","removeEventListener"],"mappings":"kgBAOA,IAIIA,EAAc,WAChB,OAJOC,UAAYA,SAASC,gBAAkBD,SAASE,MAI/BC,KAGtBC,EAAiB,KACjBC,EAAkB,KAClBC,EAAsB,KACtBC,GAAwB,EAExBC,EAAmB,WACrB,OAAO,GAkBT,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,OAET,CAAA,IAAIA,EAAKK,SAQd,MAPA,GAAIN,IAAML,EAER,OAGFI,EAAY,aAINC,GAAKH,KAAUD,GAErBG,IACFA,EAAUI,KAAKI,SAAW,GAI9B,IAAIC,EAAa,SAAoBC,GACnC,OAAOA,GAAO,YAAaA,EAAMA,EAAIC,QAAUD,GAa7CE,EAAe,WACjB,IA/CqDC,EA+CjDC,GAAS,EAEb,GAAIxB,EAAgB,CAClB,IAAIyB,EAAkBzB,EAClB0B,EAAWD,EAAgBC,SAC3B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,EAAYrC,IAyB0B,eAAzBsC,QAAQC,IAAIC,UACtBC,EAAUjD,KAAKkD,WAG3B,IAAIC,EAAe,WACjB9D,EAAwB,OAExB+D,YAAW,WACT/D,EAAwB,cACvB,IA6DLgE,EAAYC,kBA5FE,SAAiBb,GAE7B,IAAIc,EAASd,EAAMe,OACfC,EAAchB,EAAMiB,cAEnBD,EAAYE,SAASJ,KAtI1BnE,EAAsB,CACpBwE,aAsIaH,EArIbvC,gBAqI0BqC,OAuF9BM,EAAWC,aAAalB,GACxBmB,EAAaD,cAAa,SAAUE,GAClC,OAAOA,EAAG,CACRnC,gBAAiBA,EACjBH,YAAaA,OAGjB,MAAeuC,GAtDf,SAA4BC,GAC1B,OAAOA,EAAU5C,QAAO,SAAU6C,GAEhC,OADeA,EAAMC,eAKzB,SAAmCC,GACjC,IAAIC,EAAOD,EAAME,OAAO,GAAG,GAEvBD,IAASpF,IArBbJ,SAAS0F,iBAAiB,UAAWhC,GAAQ,GAC7C1D,SAAS0F,iBAAiB,WAAY5B,GACtC6B,OAAOD,iBAAiB,OAAQrB,IAuBhC,IAAIuB,EAAWxF,EACXyF,EAAWD,GAAYJ,GAAQA,EAAKM,KAAOF,EAASE,GACxD1F,EAAiBoF,EAEbI,IAAaC,IACfD,EAASG,iBAEJR,EAAM/C,QAAO,SAAUwD,GAE1B,OADSA,EAAMF,KACDF,EAASE,MACtBrC,QAEDmC,EAASK,aAAaT,IAItBA,GACFnF,EAAkB,KAEbwF,GAAYD,EAAS9D,WAAa0D,EAAK1D,UAC1C0D,EAAKU,eAGPxE,IACAqC,EAAYrC,KA3Cd1B,SAASmG,oBAAoB,UAAWzC,GAAQ,GAChD1D,SAASmG,oBAAoB,WAAYrC,GACzC6B,OAAOQ,oBAAoB,OAAQ9B,GA4CjChE,EAAkB,QAaP8E,EA1FI,WACjB,OAAO"}
1
+ {"version":3,"file":"Trap.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Trap.js"],"sourcesContent":["import * 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 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 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 && !(focusInside(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 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","activateTrap","element","result","_lastActiveTrap","observed","persistentFocus","autoFocus","shards","crossFrame","workingNode","portaledElement","workingArea","concat","map","filter","Boolean","whiteList","focusWhitelisted","focusInside","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","contains","observerNode","mediumBlur","assignMedium","mediumEffect","cb","withSideEffect","propsList","_ref5","disabled","traps","trap","slice","addEventListener","window","lastTrap","sameTrap","id","onDeactivation","_ref6","returnFocus","onActivation","removeEventListener"],"mappings":"kgBAOA,IAIIA,EAAc,WAChB,OAJOC,UAAYA,SAASC,gBAAkBD,SAASE,MAI/BC,KAGtBC,EAAiB,KACjBC,EAAkB,KAClBC,EAAsB,KACtBC,GAAwB,EAExBC,EAAmB,WACrB,OAAO,GAkBT,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,OAET,CAAA,IAAIA,EAAKK,SAQd,MAPA,GAAIN,IAAML,EAER,OAGFI,EAAY,aAINC,GAAKH,KAAUD,GAErBG,IACFA,EAAUI,KAAKI,SAAW,GAI9B,IAAIC,EAAa,SAAoBC,GACnC,OAAOA,GAAO,YAAaA,EAAMA,EAAIC,QAAUD,GAa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ACjB,OAAO"}
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import n,{forwardRef as r,useState as o,useRef as s,useCallback as i,useEffect as a}from"react";import{useTheme as l}from"styled-components";import d from"../../themes/cruk.js";import u from"../Icon/index.js";import c from"../TextField/index.js";import{Text as f}from"../Text/index.js";import m from"../../utils/debounce.js";import{useKey as p}from"../../hooks/useKey.js";import{ScreenReaderOnly as h,ListWrapper as g,List as v,ListItem as y}from"./styles.js";var E=r((function(r,E){var w=r.apiKey,b=r.countries,I=r.errorMessage,x=r.hasError,j=r.isValid,T=r.isValidVisible,V=r.isInvalidVisible,k=r.label,A=r.onAddressError,C=void 0===A?function(e){}:A,K=r.onAddressSelected,D=r.onChange,S=r.onBlur,F=e(r,["apiKey","countries","errorMessage","hasError","isValid","isValidVisible","isInvalidVisible","label","onAddressError","onAddressSelected","onChange","onBlur"]),M=o([]),B=M[0],L=M[1],_=o(-1),H=_[0],O=_[1],R=s(null),U=l(),q=t(t({},d),U),W=function(){O(-1),L([])},z=i(m(500,(function(e){return G(e)})),[]),G=function(e,t){if(void 0===t&&(t=""),0===e.length)return L([]);var n="https://api.addressy.com/Capture/Interactive/Find/v1.1/json3.ws?Key="+w+"&Text="+e+"&Container="+t;b&&(n=n+"&Countries="+b),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");L(e.Items||[])})).catch((function(e){return C(e)}))},J=function(e){fetch("https://api.addressy.com/Capture/Interactive/Retrieve/v1/json3.ws?Key="+w+"&Id="+e).then((function(e){if(!e.ok)throw new Error("Something went wrong please try again");return e.json()})).then((function(e){W(),K(e.Items[0])})).catch((function(e){return C(e)}))},N=function(e){if("Address"===e.Type)return J(e.Id);G(e.Text,e.Id)},P=function(e){R.current&&e.target instanceof HTMLElement&&!R.current.contains(e.target)&&W()};return a((function(){return document.addEventListener("mousedown",P),function(){document.removeEventListener("mousedown",P)}})),p((function(){W()}),{detectKeys:["Escape","Tab"]},[]),n.createElement(n.Fragment,null,n.createElement(c,t({"aria-activedescendant":B.length?"addressOptions-"+H:"","aria-owns":"found_addresses","aria-autocomplete":"both","aria-expanded":B.length?"true":"false",autoComplete:"off",hasError:x||!!I,errorMessage:I,hintText:"Start typing your address or postcode",isValid:j,isValidVisible:T,isInvalidVisible:V,label:null!=k?k:"Home address",ref:E,required:!0,role:"combobox",type:"search"},F,{onKeyDown:function(e){if("Enter"===e.key&&B[H]){if(e.preventDefault(),"Address"===B[H].Type)return J(B[H].Id);G(B[H].Text,B[H].Id),O(-1)}else if("ArrowUp"===e.key){if(e.preventDefault(),H<=-1)return O(B.length-1);O(H-1)}else if("ArrowDown"===e.key){if(e.preventDefault(),H+1>=B.length)return O(0);O(H+1)}else O(-1)},onChange:function(e){z(e.target.value),D&&D(e)},onBlur:function(e){var t=!!B.length;S&&!t&&S(e)}})),!!B.length&&n.createElement(n.Fragment,null,n.createElement(h,{role:"status","aria-live":"assertive"},!!B.length&&"We have found "+B.length+" result"+(1!==B.length&&"s")+" matching your search. Use up and down arrow keys to navigate"),n.createElement(g,{ref:R},n.createElement(v,{"aria-label":"found addresses",id:"found_addresses",role:"listbox",theme:q},B.map((function(e,t){return n.createElement(y,{tabIndex:0,id:"addressOptions-"+t,isActive:t===H,key:e.Id,onClick:function(){N(e)},onKeyDown:function(t){"Enter"===t.key&&N(e)},role:"option","data-hj-suppress":!0,theme:q},n.createElement(f,{as:"span","data-hj-suppress":!0},e.Text," ",e.Description),"Address"!==e.Type&&n.createElement(n.Fragment,null,n.createElement(h,null,"press enter for these addresses"),n.createElement(u,{name:"chevronRight"})))}))))))}));export{E as default};
1
+ import{__rest as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import n,{forwardRef as r,useState as o,useRef as s,useCallback as a,useEffect as i}from"react";import{useTheme as c}from"styled-components";import{useKey as l}from"../../hooks/useKey.js";import d from"../../utils/debounce.js";import{Text as u}from"../Text/index.js";import m from"../TextField/index.js";import f from"../Icon/index.js";import p from"../../themes/cruk.js";import{ScreenReaderOnly as h,ListWrapper as g,List as v,ListItem as y}from"./styles.js";var E=r((function(r,E){var w=r.apiKey,b=r.countries,I=r.errorMessage,j=r.hasError,x=r.isValid,T=r.isValidVisible,V=r.isInvalidVisible,k=r.label,A=r.onAddressError,C=void 0===A?function(e){}:A,K=r.onAddressSelected,D=r.onChange,S=r.onBlur,F=e(r,["apiKey","countries","errorMessage","hasError","isValid","isValidVisible","isInvalidVisible","label","onAddressError","onAddressSelected","onChange","onBlur"]),M=o([]),B=M[0],L=M[1],_=o(-1),H=_[0],O=_[1],R=s(null),U=c(),q=t(t({},p),U),W=function(){O(-1),L([])},z=a(d(500,(function(e){return G(e)})),[]),G=function(e,t){if(void 0===t&&(t=""),0===e.length)return L([]);var n="".concat("https://api.addressy.com/Capture/Interactive/Find/v1.1/json3.ws","?Key=").concat(w,"&Text=").concat(e,"&Container=").concat(t);return void 0!==b&&(n="".concat(n,"&Countries=").concat(b.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 L(e.Items||[]),null})).catch((function(e){return C(e)})),null},J=function(e){fetch("".concat("https://api.addressy.com/Capture/Interactive/Retrieve/v1/json3.ws","?Key=").concat(w,"&Id=").concat(e)).then((function(e){if(!e.ok)throw new Error("Something went wrong please try again");return e.json()})).then((function(e){return W(),K(e.Items[0]),null})).catch((function(e){return C(e)}))},N=function(e){return"Address"===e.Type?J(e.Id):(G(e.Text,e.Id),null)},P=function(e){R.current&&e.target instanceof HTMLElement&&!R.current.contains(e.target)&&W()};return i((function(){return document.addEventListener("mousedown",P),function(){document.removeEventListener("mousedown",P)}})),l((function(){W()}),{detectKeys:["Escape","Tab"]},[]),n.createElement(n.Fragment,null,n.createElement(m,t({"aria-activedescendant":B.length?"addressOptions-".concat(H):"","aria-owns":"found_addresses","aria-autocomplete":"both","aria-expanded":B.length?"true":"false",autoComplete:"off",hasError:j||!!I,errorMessage:I,hintText:"Start typing your address or postcode",isValid:x,isValidVisible:T,isInvalidVisible:V,label:null!=k?k:"Home address",ref:E,required:!0,role:"combobox",type:"search"},F,{onKeyDown:function(e){"Enter"===e.key&&B[H]?(e.preventDefault(),"Address"===B[H].Type&&J(B[H].Id),G(B[H].Text,B[H].Id),O(-1)):"ArrowUp"===e.key?(e.preventDefault(),H<=-1&&O(B.length-1),O(H-1)):"ArrowDown"===e.key?(e.preventDefault(),H+1>=B.length&&O(0),O(H+1)):O(-1)},onChange:function(e){z(e.target.value),D&&D(e)},onBlur:function(e){var t=!!B.length;S&&!t&&S(e)}})),!!B.length&&n.createElement(n.Fragment,null,n.createElement(h,{role:"status","aria-live":"assertive"},!!B.length&&"We have found ".concat(B.length," result").concat(1!==B.length?"s":""," matching your search. Use up and down arrow keys to navigate")),n.createElement(g,{ref:R},n.createElement(v,{"aria-label":"found addresses",id:"found_addresses",role:"listbox",theme:q},B.map((function(e,t){return n.createElement(y,{tabIndex:0,id:"addressOptions-".concat(t),isActive:t===H,key:e.Id,onClick:function(){N(e)},onKeyDown:function(t){"Enter"===t.key&&N(e)},role:"option","data-hj-suppress":!0,theme:q},n.createElement(u,{as:"span","data-hj-suppress":!0},e.Text," ",e.Description),"Address"!==e.Type&&n.createElement(n.Fragment,null,n.createElement(h,null,"press enter for these addresses"),n.createElement(f,{name:"chevronRight"})))}))))))}));export{E as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- var I="IyBBdmF0YXIKCiMjIyBEaXNwbGF5IGFuIGF2YXRhcgoKWW91IGNhbiB1c2UgYW4gYXZhdGFyIHRvIGRpc3BsYXkgb3duZXJzaGlwIG9mIGFuIGl0ZW0gb2YgY29udGVudC4gSWYgeW91IHBhc3MgYSBVUkwgb2YgYW4gaW1hZ2UgdGhhdCB3aWxsIGJlIGRpc3BsYXllZCBvdGhlcndpc2UgdGhlIGZpcn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RleHQ9YXZhdGFyIgogIC8+CjwvPgpgYGAKCiMjIFByb3BzCgp8IE5hbWUgfCBUeXBlICAgfCAgICAgT3B0aW9ucyAgICAgIHwgRGVmYXVsdCAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLSB8IDotLS0tLSB8IDotLS0tLS0tLS0tLS0tLTogfCA6LS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tIHwKfCBuYW1lIHwgU3RyaW5nIHwgICAgICAgICAgICAgICAgICB8IEFub255bW91cyB8IFRpdGxlIHRvIGJlIGRpc3BsYXllZCBhcyBwcmltYXJ5IHRleHQgfAp8IHNpemUgfCBTdHJpbmcgfCAicyIgIm0iICJsIiAieGwiIHwgIm0iICAgICAgIHwgRGVmaW5lIHRoZSBzaXplIG9mIHRoZSBhdmF0YXIgICAgICAgICB8CnwgdXJsICB8IFN0cmluZyB8ICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgfCBVUkwgb2YgaW1hZ2UgZm9yIGF2YXRhciAgICAgICAgICAgICAgIHwK";export{I as default};
2
2
  //# sourceMappingURL=README.md.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Avatar/README.md"],"sourcesContent":["export default \"IyBBdmF0YXIKCiMjIyBEaXNwbGF5IGFuIGF2YXRhcgoKWW91IGNhbiB1c2UgYW4gYXZhdGFyIHRvIGRpc3BsYXkgb3duZXJzaGlwIG9mIGFuIGl0ZW0gb2YgY29udGVudC4gSWYgeW91IHBhc3MgYSBVUkwgb2YgYW4gaW1hZ2UgdGhhdCB3aWxsIGJlIGRpc3BsYXllZCBvdGhlcndpc2UgdGhlIGZpcnN0IGxldHRlciBvZiB0aGUgbmFtZSB3aWxsIGJlIHVzZWQgdG8gZGlzcGxheSBhIGJyYW5kZWQgYXZhdGFyLgoKIyMjIFRyeSBpdCBvdXQKCmBgYC50c3gKPD4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ICAgICAgfCAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgIHwgVVJMIG9mIGltYWdlIGZvciBhdmF0YXIgICAgICAgICAgICAgICB8Cg==\""],"names":[],"mappings":"AAAA,MAAe"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Avatar/README.md"],"sourcesContent":["export default \"IyBBdmF0YXIKCiMjIyBEaXNwbGF5IGFuIGF2YXRhcgoKWW91IGNhbiB1c2UgYW4gYXZhdGFyIHRvIGRpc3BsYXkgb3duZXJzaGlwIG9mIGFuIGl0ZW0gb2YgY29udGVudC4gSWYgeW91IHBhc3MgYSBVUkwgb2YgYW4gaW1hZ2UgdGhhdCB3aWxsIGJlIGRpc3BsYXllZCBvdGhlcndpc2UgdGhlIGZpcnN0IGxldHRlciBvZiB0aGUgbmFtZSB3aWxsIGJlIHVzZWQgdG8gZGlzcGxheSBhIGJyYW5kZWQgYXZhdGFyLgoKIyMjIFRyeSBpdCBvdXQKCmBgYC50c3gKPD4KICA8QXZhdGFyIC8+CiAgPEF2YXRhciBuYW1lPSJTYW0iIHNpemU9InMiIGFyaWEtbGFiZWw9InNhbSdzIHByb2ZpbGUiLz4KICA8QXZhdGFyIG5hbWU9IlNhbSIgc2l6ZT0ibSIgYXJpYS1sYWJlbD0ic2FtJ3MgcHJvZmlsZSIvPgogIDxBdmF0YXIgbmFtZT0iU2FtIiBzaXplPSJsIiBhcmlhLWxhYmVsPSJzYW0ncyBwcm9maWxlIi8+CiAgPEF2YXRhciBuYW1lPSJTYW0iIHNpemU9InhsIiBhcmlhLWxhYmVsPSJzYW0ncyBwcm9maWxlIi8+CiAgPEF2YXRhcgogICAgbmFtZT0iU2FtIgogICAgYXJpYS1sYWJlbD0ic2FtJ3MgcHJvZmlsZSIKICAgIHVybD0iaHR0cHM6Ly92aWEucGxhY2Vob2xkZXIuY29tLzMwMC8yZTAwOGIvZDkzMThhP3RleHQ9YXZhdGFyIgogIC8+CjwvPgpgYGAKCiMjIFByb3BzCgp8IE5hbWUgfCBUeXBlICAgfCAgICAgT3B0aW9ucyAgICAgIHwgRGVmYXVsdCAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLSB8IDotLS0tLSB8IDotLS0tLS0tLS0tLS0tLTogfCA6LS0tLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tIHwKfCBuYW1lIHwgU3RyaW5nIHwgICAgICAgICAgICAgICAgICB8IEFub255bW91cyB8IFRpdGxlIHRvIGJlIGRpc3BsYXllZCBhcyBwcmltYXJ5IHRleHQgfAp8IHNpemUgfCBTdHJpbmcgfCAicyIgIm0iICJsIiAieGwiIHwgIm0iICAgICAgIHwgRGVmaW5lIHRoZSBzaXplIG9mIHRoZSBhdmF0YXIgICAgICAgICB8CnwgdXJsICB8IFN0cmluZyB8ICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgfCBVUkwgb2YgaW1hZ2UgZm9yIGF2YXRhciAgICAgICAgICAgICAgIHwK\""],"names":[],"mappings":"AAAA,MAAe"}
@@ -1,2 +1,2 @@
1
- import{__rest as t,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import a from"react";import{useTheme as e}from"styled-components";import o from"../../themes/cruk.js";import{StyledAvatar as m}from"./styles.js";var s=function(s){var n=s.url,i=s.name,p=s.size,l=s.alt,u=void 0===l?"":l,f=t(s,["url","name","size","alt"]),c=e(),v=r(r({},o),c);return a.createElement(m,r({},f,{size:v.avatar[p||"m"],src:function(){if(n)return n;var t="icon-avatar-Anonymous.png";return i&&"string"==typeof i&&"Anonymous"!==i&&i[0].trim().match(/[a-z]/i)&&(t="icon-avatar-"+i[0].trim().toUpperCase()+".png"),v.avatar.path+t}(),alt:u}))};s.defaultProps={size:"m"};export{s as default};
1
+ import{__rest as t,__assign as r}from"../../../node_modules/tslib/tslib.es6.js";import a from"react";import{useTheme as e}from"styled-components";import o from"../../themes/cruk.js";import{StyledAvatar as n}from"./styles.js";var m=function(m){var i=m.url,s=m.name,p=m.size,c=void 0===p?"m":p,l=m.alt,u=void 0===l?"":l,f=t(m,["url","name","size","alt"]),v=e(),d=r(r({},o),v);return a.createElement(n,r({},f,{size:d.avatar[c||"m"],src:function(){if(i)return i;var t=s&&"string"==typeof s&&"Anonymous"!==s&&/[a-z]/i.exec(s[0].trim())?"icon-avatar-".concat(s[0].trim().toUpperCase(),".png"):"icon-avatar-Anonymous.png";return d.avatar.path+t}(),alt:u}))};export{m as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import t from"styled-components";var e,r=t.img(e||(e=n(["\n border-radius: 50%;\n height: ",";\n object-fit: cover;\n width: ",";\n"],["\n border-radius: 50%;\n height: ",";\n object-fit: cover;\n width: ",";\n"])),(function(n){return n.size}),(function(n){return n.size}));export{r as StyledAvatar};
1
+ import{__makeTemplateObject as t}from"../../../node_modules/tslib/tslib.es6.js";import e from"styled-components";var n,r=e.img(n||(n=t(["\n border-radius: 50%;\n height: ",";\n object-fit: cover;\n width: ",";\n"],["\n border-radius: 50%;\n height: ",";\n object-fit: cover;\n width: ",";\n"])),(function(t){return t.size}),(function(t){return t.size}));export{r as StyledAvatar,r as default};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import r,{css as e}from"styled-components";var i,o,t=r.span(o||(o=n(["\n border-width: 1px;\n border-style: solid;\n background-color: ",";\n color: ",";\n border-color: ",";\n text-align: center;\n border-radius: 1.5rem;\n font-size: ",";\n line-height: 1rem;\n padding: ",";\n display: inline-block;\n min-width: ",";\n\n ","\n"],["\n border-width: 1px;\n border-style: solid;\n background-color: ",";\n color: ",";\n border-color: ",";\n text-align: center;\n border-radius: 1.5rem;\n font-size: ",";\n line-height: 1rem;\n padding: ",";\n display: inline-block;\n min-width: ",";\n\n ","\n"])),(function(n){var r=n.theme.colors,e=n.backgroundColor;return e&&void 0!==r[e]?r[e]:e||r.primary}),(function(n){var r=n.theme.colors,e=n.textColor;return e&&void 0!==r[e]?r[e]:e||r.textLight}),(function(n){var r=n.theme.colors,e=n.borderColor,i=n.backgroundColor;return e&&void 0!==r[e]?r[e]:e||(i&&void 0!==r[i]?r[i]:i||r.primary)}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.spacing.xxs}),(function(n){var r=n.size,e=n.theme,i=e.spacing,o=e.spacing.xs;return"calc("+i[r]+" + "+o+")"}),(function(r){return!r.isText&&e(i||(i=n(["\n padding: 0;\n border-radius: 50%;\n display: block;\n height: ",";\n width: ",";\n line-height: ",";\n svg {\n height: ",";\n }\n "],["\n padding: 0;\n border-radius: 50%;\n display: block;\n height: ",";\n width: ",";\n line-height: ",";\n svg {\n height: ",";\n }\n "])),(function(n){var r=n.size,e=n.theme,i=e.spacing,o=e.spacing.xs;return"calc("+i[r]+" + "+o+")"}),(function(n){var r=n.size,e=n.theme,i=e.spacing,o=e.spacing.xs;return"calc("+i[r]+" + "+o+")"}),(function(n){var r=n.size,e=n.theme,i=e.spacing,o=e.spacing.xs;return"calc("+i[r]+" + "+o+")"}),(function(n){var r=n.size;return n.theme.spacing[r]}))}));export{t as StyledBadge};
1
+ import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import r,{css as e}from"styled-components";var o,i,t=r.span(i||(i=n(["\n border-width: 1px;\n border-style: solid;\n background-color: ",";\n color: ",";\n border-color: ",";\n text-align: center;\n border-radius: 1.5rem;\n font-size: ",";\n line-height: 1rem;\n padding: ",";\n display: inline-block;\n min-width: ",";\n\n ","\n"],["\n border-width: 1px;\n border-style: solid;\n background-color: ",";\n color: ",";\n border-color: ",";\n text-align: center;\n border-radius: 1.5rem;\n font-size: ",";\n line-height: 1rem;\n padding: ",";\n display: inline-block;\n min-width: ",";\n\n ","\n"])),(function(n){var r=n.theme.colors,e=n.backgroundColor;return e&&void 0!==r[e]?r[e]:e||r.primary}),(function(n){var r=n.theme.colors,e=n.textColor;return e&&void 0!==r[e]?r[e]:e||r.textOnPrimary}),(function(n){var r=n.theme.colors,e=n.borderColor,o=n.backgroundColor;return e&&void 0!==r[e]?r[e]:e||(o&&void 0!==r[o]?r[o]:o||r.primary)}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.spacing.xxs}),(function(n){var r=n.size,e=n.theme,o=e.spacing,i=e.spacing.xs;return"calc(".concat(o[r]," + ").concat(i,")")}),(function(r){return!r.isText&&e(o||(o=n(["\n padding: 0;\n border-radius: 50%;\n display: block;\n height: ",";\n width: ",";\n line-height: ",";\n svg {\n height: ",";\n }\n "],["\n padding: 0;\n border-radius: 50%;\n display: block;\n height: ",";\n width: ",";\n line-height: ",";\n svg {\n height: ",";\n }\n "])),(function(n){var r=n.size,e=n.theme,o=e.spacing,i=e.spacing.xs;return"calc(".concat(o[r]," + ").concat(i,")")}),(function(n){var r=n.size,e=n.theme,o=e.spacing,i=e.spacing.xs;return"calc(".concat(o[r]," + ").concat(i,")")}),(function(n){var r=n.size,e=n.theme,o=e.spacing,i=e.spacing.xs;return"calc(".concat(o[r]," + ").concat(i,")")}),(function(n){var r=n.size;return n.theme.spacing[r]}))}));export{t as StyledBadge,t as default};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";import{Spacing as t}from"../Spacing/index.js";var c,i=o.div(c||(c=n(["\n background-color: ",";\n padding: ",";\n margin: 0 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n background-color: ",";\n\n ","\n ","\n"],["\n background-color: ",";\n padding: ",";\n margin: 0 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n background-color: ",";\n\n ","\n ","\n"])),(function(n){return n.theme.colors.backgroundLight}),(function(n){var o=n.theme;return n.backgroundColor?o.spacing.s:0}),(function(n){return n.theme.spacing.m}),(function(n){var o=n.theme.colors,r=n.backgroundColor;return r&&void 0!==o[r]?o[r]:r||"transparent"}),(function(n){return r([n.css])}),(function(n){return t(n,n.theme)}));export{i as StyledBox};
1
+ import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";import{Spacing as t}from"../Spacing/index.js";var c,i,a=o.div(i||(i=n(["\n background-color: ",";\n padding: ",";\n margin: 0 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n background-color: ",";\n\n ","\n ","\n"],["\n background-color: ",";\n padding: ",";\n margin: 0 0 "," 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n background-color: ",";\n\n ","\n ","\n"])),(function(n){return n.theme.colors.backgroundLight}),(function(n){var o=n.theme;return n.backgroundColor?o.spacing.s:0}),(function(n){return n.theme.spacing.m}),(function(n){var o=n.theme.colors,r=n.backgroundColor;return r&&void 0!==o[r]?o[r]:r||"transparent"}),(function(o){return o.css&&r(c||(c=n(["\n ","\n "],["\n ","\n "])),o.css)}),(function(n){return t(n,n.theme)}));export{a as StyledBox,a as default};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- var I="IyBCdXR0b24KCkN1c3RvbSBidXR0b24gc3R5bGVzIGZvciBhY3Rpb25zIGluIGZvcm1zLCBkaWFsb2dzLCBhbmQgbW9yZSB3aXRoIHN1cHBvcnQKZm9yIG11bHRpcGxlIHNpemVzLCBzdGF0ZXMsIGFuZCBtb3JlLgoKIyMgVHJ5IHRoZW0gb3V0CgojIyMgUHJpbWFyeSBCdXR0b24KCmBgYC5qc3gKPD4KICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiPlByaW1hcnk8L0J1dHRvbj4KICA8QnV0dG9uICBhcHBlYXJhbmNlPSJwcmltYXJ5IiBkaXNhYmxlZCBhcHBlYXJhbmNlPSJwcmltYXJ5Ij4KICAgIERpc2FibGVkIHByaW1hcnkKICA8L0J1dHRvbj4KICA8Qn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gICA8SWNvbiBuYW1lPSJ2aWV3IiAvPgogIDwvQnV0dG9uPgogIDxCdXR0b24gaHJlZj0iaHR0cHM6Ly93d3cuc3R5bGVkLWNvbXBvbmVudHMuY29tLyI+TGluayBhcyBCdXR0b248L0J1dHRvbj4KICA8QnV0dG9uIGFwcGVhcmFuY2U9InRleHQiPlRleHQgc3R5bGUgYnV0dG9uPC9CdXR0b24+CiAgPEJ1dHRvbiBhcmlhLWxhYmVsPSJVcGxvYWQgYSBwaG90byI+CiAgICA8SWNvbiBuYW1lPSJ1cGxvYWRQaG90byIgLz4KICA8L0J1dHRvbj4KICA8QnV0dG9uIGNzcz0iYmFja2dyb3VuZC1jb2xvcjogIzQyNjdiMjtib3JkZXItY29sb3I6ICM0MjY3YjI7IGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50OyA6aG92ZXIge2JhY2tncm91bmQtY29sb3I6ICMzNjU4OTk7IGJvcmRlci1jb2xvcjogICMzNjU4OTk7IGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O30iPgogICAgPEljb24gbmFtZT0iZmFjZWJvb2tTcXVhcmUiIHNpemU9IjE4cHgiIC8+CiAgICBDb250aW51ZSB3aXRoIGZhY2Vib29rCiAgPC9CdXR0b24+CiAgPEJ1dHRvbiBmdWxsPkZ1bGwgd2lkdGggQnV0dG9uPC9CdXR0b24+CjwvPgpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgICAgfCBUeXBlICAgIHwgICAgICAgICAgIE9wdGlvbnMgICAgICAgICAgICB8IERlZmF1bHQgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCA6LS0tLS0tLS0tIHwgOi0tLS0tLSB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5IG9mIGEgYnV0dG9uIGFkZCBhbiBhcmlhIGxhYmVsIGlmIHRoZSBidXR0b24gY29udGFpbnMgbm8gdGV4dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY3NzICAgICAgICB8IFN0cmluZyAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IE92ZXJyaWRlIHRoZSBzdHlsaW5nIG9mIHRoZSBidXR0b24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGRpc2FibGVkICAgfCBCb29sZWFuIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgfCBNYWtlIGJ1dHRvbnMgbG9vayBpbmFjdGl2ZSBieSBhZGRpbmcgdGhlIGRpc2FibGVkIHByb3AgdG8uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBocmVmICAgICAgIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBudWxsICAgIHwgTGluayBidXR0b25zIHdpbGwgY2F1c2UgdGhlIGJ1dHRvbiB0byBiZSBzdHlsZWQgc2ltaWxhcmx5IHRvIGEgaHlwZXJsaW5rLCBhbmQgYXJlIHByaW1hcmlseSB1c2VkIHdoZW4gdGhlIGJ1dHRvbiBpcyBlbWJlZGRlZCBpbiBhbm90aGVyIGNvbXBvbmVudCAoZm9yIGV4YW1wbGUsIGEgZm9ybSBmaWVsZCkuICAgICAgICAgICAgICB8CnwgZnVsbCAgICAgICB8IGJvb2xlbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICB8IEJ1dHRvbiB3aWR0aCBpcyAxMDAlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAo=";export{I as default};
1
+ var I="IyBCdXR0b24KCkN1c3RvbSBidXR0b24gc3R5bGVzIGZvciBhY3Rpb25zIGluIGZvcm1zLCBkaWFsb2dzLCBhbmQgbW9yZSB3aXRoIHN1cHBvcnQKZm9yIG11bHRpcGxlIHNpemVzLCBzdGF0ZXMsIGFuZCBtb3JlLgoKIyMgVHJ5IHRoZW0gb3V0CgojIyMgUHJpbWFyeSBCdXR0b24KCmBgYC5qc3gKPD4KICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiPlByaW1hcnk8L0J1dHRvbj4KICA8QnV0dG9uICBhcHBlYXJhbmNlPSJwcmltYXJ5IiBkaXNhYmxlZCBhcHBlYXJhbmNlPSJwcmltYXJ5Ij4KICAgIERpc2FibGVkIHByaW1hcnkKICA8L0J1dHRvbj4KICA8QnV0dG9uIHNpemU9ImwiPkxhcmdlIHByaW1hcnkgYnV0dG9uPC9CdXR0b24+CjwvPgpgYGAKCiMjIyBTZWNvbmRhcnkgQnV0dG9uCgpgYGAuanN4Cjw+CiAgPEJ1dHRvbiBhcHBlYXJhbmNlPSJzZWNvbmRhcnkiPlNlY29uZGFyeTwvQnV0dG9uPgogIDxCdXR0b24gZGlzYWJsZWQgYXBwZWFyYW5jZT0ic2Vjb25kYXJ5Ij4KICAgIERpc2FibGVkIHNlY29uZGFyeQogIDwvQnV0dG9uPgogIDxCdXR0b24gYX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iICJzZWNvbmRhcnkiICJ0ZXJ0aWFyeSIgfCBvdXRsaW5lIHwgVGhlIGBhcHBlYXJhbmNlYCBwcm9wIGRlZmluZXMgdGhlIG92ZXJhbGwgdmlzdWFsIHN0eWxlIG9mIHRoZSBCdXR0b24uIFlvdSBjYW4gdXNlIHRoaXMgcHJvcCB0byBpbmRpY2F0ZSB0byB0aGUgdXNlciB0aGUgcHVycG9zZSBvciBpbXBvcnRhbmNlIG9mIHRoZSBidXR0b24sIG9yIGNhbGwgdGhlaXIgYXR0ZW50aW9uIHRvIGl0LiB8Cnwgc2l6ZSAgICAgICB8IFN0cmluZyAgfCAgICAgICAgICAgICAgICJsIiAgICAgICAgICAgICAgICB8IHVuc2V0ICAgfCBEZWZpbmUgdGhlIHNpemUgb2YgdGhlIGJ1dHRvbi4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBhcmlhLWxhYmVsIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IFRvIGltcHJvdmUgYWNjZXNzaWJpbGl0eSBvZiBhIGJ1dHRvbiBhZGQgYW4gYXJpYSBsYWJlbCBpZiB0aGUgYnV0dG9uIGNvbnRhaW5zIG5vIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNzcyAgICAgICAgfCBTdHJpbmcgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBudWxsICAgIHwgT3ZlcnJpZGUgdGhlIHN0eWxpbmcgb2YgdGhlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgZGlzYWJsZWQgICB8IEJvb2xlYW4gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgfCBNYWtlIGJ1dHRvbnMgbG9vayBpbmFjdGl2ZSBieSBhZGRpbmcgdGhlIGRpc2FibGVkIHByb3AgdG8uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBocmVmICAgICAgIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IExpbmsgYnV0dG9ucyB3aWxsIGNhdXNlIHRoZSBidXR0b24gdG8gYmUgc3R5bGVkIHNpbWlsYXJseSB0byBhIGh5cGVybGluaywgYW5kIGFyZSBwcmltYXJpbHkgdXNlZCB3aGVuIHRoZSBidXR0b24gaXMgZW1iZWRkZWQgaW4gYW5vdGhlciBjb21wb25lbnQgKGZvciBleGFtcGxlLCBhIGZvcm0gZmllbGQpLiAgICAgICAgICAgICAgfAp8IGZ1bGwgICAgICAgfCBib29sZW4gIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBmYWxzZSAgIHwgQnV0dG9uIHdpZHRoIGlzIDEwMCUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==";export{I as default};
2
2
  //# sourceMappingURL=README.md.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Button/README.md"],"sourcesContent":["export default \"IyBCdXR0b24KCkN1c3RvbSBidXR0b24gc3R5bGVzIGZvciBhY3Rpb25zIGluIGZvcm1zLCBkaWFsb2dzLCBhbmQgbW9yZSB3aXRoIHN1cHBvcnQKZm9yIG11bHRpcGxlIHNpemVzLCBzdGF0ZXMsIGFuZCBtb3JlLgoKIyMgVHJ5IHRoZW0gb3V0CgojIyMgUHJpbWFyeSBCdXR0b24KCmBgYC5qc3gKPD4KICA8QnV0dG9uIGFwcGVhcmFuY2U9InByaW1hcnkiPlByaW1hcnk8L0J1dHRvbj4KICA8QnV0dG9uICBhcHBlYXJhbmNlPSJwcmltYXJ5IiBkaXNhYmxlZCBhcHBlYXJhbmNlPSJwcmltYXJ5Ij4KICAgIERpc2FibGVkIHByaW1hcnkKICA8L0J1dHRvbj4KICA8QnV0dG9uIHNpemU9ImwiPkxhcmdlIHByaW1hcnkgYnV0dG9uPC9CdXR0b24+CjwvPgpgYGAKCiMjIyBTZWNvbmRhcnkgQnV0dG9uCgpgYGAuanN4Cjw+CiAgPEJ1dHRvbiBhcHBlYXJhbmNlPSJzZWNvbmRhcnkiPlNlY29uZGFyeTwvQnV0dG9uPgogIDxCdXR0b24gZGlzYWJsZWQgYXBwZWFyYW5jZT0ic2Vjb25kYXJ5Ij4KICAgIERpc2FibGVkIHNlY29uZGFyeQogIDwvQnV0dG9uPgogIDxCdXR0b24gYXBwZWFyYW5jZT0ic2Vjb25kYXJ5IiBzaXplPSJsIj5MYXJnZSBzZWNvbmRhcnkgYnV0dG9uPC9CdXR0b24+CjwvPgpgYGAKCiMjIyBUZXJ0aWFyeSBCdXR0b24KCmBgYC5qc3gKPD4KICA8QnV0dG9uIGFwcGVhcmFuY2U9InRlcnRpYXJ5Ij5UZXJ0aWFyeTwvQnV0dG9uPgogIDxCdXR0b24gZGlzYWJsZWQgYXBwZ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dG8gdGhlIHVzZXIgdGhlIHB1cnBvc2Ugb3IgaW1wb3J0YW5jZSBvZiB0aGUgYnV0dG9uLCBvciBjYWxsIHRoZWlyIGF0dGVudGlvbiB0byBpdC4gfAp8IHNpemUgICAgICAgfCBTdHJpbmcgIHwgICAgICAgICAgICAgImwiICAgICAgICAgICAgICB8IHVuc2V0ICAgfCBEZWZpbmUgdGhlIHNpemUgb2YgdGhlIGJ1dHRvbi4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBhcmlhLWxhYmVsIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBudWxsICAgIHwgVG8gaW1wcm92ZSBhY2Nlc3NpYmlsaXR5IG9mIGEgYnV0dG9uIGFkZCBhbiBhcmlhIGxhYmVsIGlmIHRoZSBidXR0b24gY29udGFpbnMgbm8gdGV4dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgY3NzICAgICAgICB8IFN0cmluZyAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IE92ZXJyaWRlIHRoZSBzdHlsaW5nIG9mIHRoZSBidXR0b24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGRpc2FibGVkICAgfCBCb29sZWFuIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgfCBNYWtlIGJ1dHRvbnMgbG9vayBpbmFjdGl2ZSBieSBhZGRpbmcgdGhlIGRpc2FibGVkIHByb3AgdG8uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBocmVmICAgICAgIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBudWxsICAgIHwgTGluayBidXR0b25zIHdpbGwgY2F1c2UgdGhlIGJ1dHRvbiB0byBiZSBzdHlsZWQgc2ltaWxhcmx5IHRvIGEgaHlwZXJsaW5rLCBhbmQgYXJlIHByaW1hcmlseSB1c2VkIHdoZW4gdGhlIGJ1dHRvbiBpcyBlbWJlZGRlZCBpbiBhbm90aGVyIGNvbXBvbmVudCAoZm9yIGV4YW1wbGUsIGEgZm9ybSBmaWVsZCkuICAgICAgICAgICAgICB8CnwgZnVsbCAgICAgICB8IGJvb2xlbiAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZmFsc2UgICB8IEJ1dHRvbiB3aWR0aCBpcyAxMDAlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAo=\""],"names":[],"mappings":"AAAA,MAAe"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Button/README.md"],"sourcesContent":["export default \"IyBCdXR0b24KCkN1c3RvbSBidXR0b24gc3R5bGVzIGZvciBhY3Rpb25zIGluIGZvcm1zLCBkaWFsb2dzLCBhbmQgbW9yZSB3aXRoIHN1cHBvcnQKZm9yIG11bHRpcGxlIHNpemVzLCBzdGF0ZX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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBhcmlhLWxhYmVsIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IFRvIGltcHJvdmUgYWNjZXNzaWJpbGl0eSBvZiBhIGJ1dHRvbiBhZGQgYW4gYXJpYSBsYWJlbCBpZiB0aGUgYnV0dG9uIGNvbnRhaW5zIG5vIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGNzcyAgICAgICAgfCBTdHJpbmcgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBudWxsICAgIHwgT3ZlcnJpZGUgdGhlIHN0eWxpbmcgb2YgdGhlIGJ1dHRvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgZGlzYWJsZWQgICB8IEJvb2xlYW4gfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IGZhbHNlICAgfCBNYWtlIGJ1dHRvbnMgbG9vayBpbmFjdGl2ZSBieSBhZGRpbmcgdGhlIGRpc2FibGVkIHByb3AgdG8uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBocmVmICAgICAgIHwgU3RyaW5nICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgbnVsbCAgICB8IExpbmsgYnV0dG9ucyB3aWxsIGNhdXNlIHRoZSBidXR0b24gdG8gYmUgc3R5bGVkIHNpbWlsYXJseSB0byBhIGh5cGVybGluaywgYW5kIGFyZSBwcmltYXJpbHkgdXNlZCB3aGVuIHRoZSBidXR0b24gaXMgZW1iZWRkZWQgaW4gYW5vdGhlciBjb21wb25lbnQgKGZvciBleGFtcGxlLCBhIGZvcm0gZmllbGQpLiAgICAgICAgICAgICAgfAp8IGZ1bGwgICAgICAgfCBib29sZW4gIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBmYWxzZSAgIHwgQnV0dG9uIHdpZHRoIGlzIDEwMCUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cg==\""],"names":[],"mappings":"AAAA,MAAe"}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import r,{forwardRef as t}from"react";import{useTheme as n}from"styled-components";import o from"../../themes/cruk.js";import a from"../Icon/index.js";import{StyledButton as m,Spacer as i}from"./styles.js";var l=t((function(t,l){var p=n(),s=e(e({},o),p),c=t.appearance,d=void 0===c?"primary":c,f=r.Children.toArray(t.children),h=!(!t.children||1!==f.length||!f[0]||f[0].type!==a);return r.createElement(m,e({as:t.href?"a":"button"},t,{appearance:d,isIconButton:h,theme:s,ref:l}),t.children&&f.length?r.Children.map(t.children,(function(e,t){return r.createElement(i,{theme:s,key:t},e)})):null)}));l.defaultProps={appearance:"primary",full:!1,size:"m"};export{l as Button,l as default};
1
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import r,{forwardRef as t}from"react";import{useTheme as n}from"styled-components";import o from"../../themes/cruk.js";import i from"../Icon/index.js";import{StyledButton as a,Spacer as m}from"./styles.js";var l=t((function(t,l){var p=n(),s=e(e({},o),p),c=t.appearance,d=void 0===c?"primary":c,f=t.isIconButton,u=void 0!==f&&f,h=r.Children.toArray(t.children),y="string"==typeof h[0],v=h[0],j=!(!u&&(1===h.length&&!y&&(null==v?void 0:v.type))!==i);return r.createElement(a,e({as:t.href?"a":"button"},t,{appearance:d,isIconButton:j,theme:s,ref:l}),t.children&&h.length?r.Children.map(t.children,(function(e,t){return r.createElement(m,{theme:s,key:t},e)})):null)}));l.defaultProps={appearance:"primary",full:!1,size:"m"};export{l as Button,l as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var t,e,c,a,i,l,d,u,s=o.span(t||(t=n(["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"],["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"])),(function(n){return n.theme.spacing.xxs})),b=o.button(u||(u=n(["\n box-sizing: border-box;\n min-height: ",";\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n \n ","\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"],["\n box-sizing: border-box;\n min-height: ",";\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n \n ","\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"])),"3rem",(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (3rem - ( "+o.button.buttonBorderThickness+" * 2) - "+o.typography.lineHeight+" ) / 2) "+o.spacing.m}),(function(n){return n.isIconButton?"3rem":"auto"}),(function(n){return n.isIconButton?"3rem":"auto"}),(function(n){return n.theme.button.borderRadius}),(function(n){return n.theme.button.buttonBorderThickness}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){return n.theme.button.textTransform}),(function(n){return n.theme.button.textDecoration}),(function(o){return"primary"===o.appearance&&r(e||(e=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonPrimaryBackground,o.theme.colors.buttonPrimaryBorder,o.theme.colors.buttonPrimaryText,o.theme.colors.buttonPrimaryBackgroundHover,o.theme.colors.buttonPrimaryBorderHover,o.theme.colors.buttonPrimaryTextHover,o.theme.colors.buttonPrimaryDisabledBackground,o.theme.colors.buttonPrimaryDisabledText,o.theme.colors.buttonPrimaryDisabledBorder)}),(function(o){return"secondary"===o.appearance&&r(c||(c=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonSecondaryBackground,o.theme.colors.buttonSecondaryBorder,o.theme.colors.buttonSecondaryText,o.theme.colors.buttonSecondaryBackgroundHover,o.theme.colors.buttonSecondaryBorderHover,o.theme.colors.buttonSecondaryTextHover,o.theme.colors.buttonSecondaryDisabledBackground,o.theme.colors.buttonSecondaryDisabledText,o.theme.colors.buttonSecondaryDisabledBorder)}),(function(o){return"tertiary"===o.appearance&&r(a||(a=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonTertiaryBackground,o.theme.colors.buttonTertiaryBorder,o.theme.colors.buttonTertiaryText,o.theme.colors.buttonTertiaryBackgroundHover,o.theme.colors.buttonTertiaryBorderHover,o.theme.colors.buttonTertiaryTextHover,o.theme.colors.buttonTertiaryDisabledBackground,o.theme.colors.buttonTertiaryDisabledText,o.theme.colors.buttonTertiaryDisabledBorder)}),(function(o){return"text"===o.appearance&&r(i||(i=n(["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "],["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "])),o.theme.colors.buttonTertiaryText,o.theme.colors.linkColorHover,o.theme.colors.buttonTertiaryDisabledText)}),(function(o){return"l"===o.size&&r(l||(l=n(["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "],["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "])),"4rem",(function(n){return n.theme.button.borderRadiusLarge}),(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (4rem - ( "+o.button.buttonBorderThickness+" * 2) - "+o.typography.lineHeight+" ) / 2) "+o.spacing.m}),(function(n){return n.isIconButton?"4rem":"auto"}),(function(n){return n.isIconButton?"4rem":"auto"}))}),(function(o){return o.full&&r(d||(d=n(["\n width: 100%;\n "],["\n width: 100%;\n "])))}),(function(n){return r([n.css])}));export{s as Spacer,b as StyledButton};
1
+ import{__makeTemplateObject as n}from"../../../node_modules/tslib/tslib.es6.js";import o,{css as r}from"styled-components";var t,e,c,a,i,l,d,u,s=o.span(t||(t=n(["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"],["\n margin-left: ",";\n &:first-of-type {\n margin-left: 0;\n }\n"])),(function(n){return n.theme.spacing.xxs})),b=o.button(u||(u=n(["\n box-sizing: border-box;\n min-height: ",";\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"],["\n box-sizing: border-box;\n min-height: ",";\n display: inline-block;\n vertical-align: middle;\n padding: ",";\n width: ",";\n min-width: ",";\n\n border-radius: ",";\n border-style: solid;\n border-width: ",";\n\n transition: color 0.2s ease, background-color 0.2s ease,\n border-color 0.2s ease;\n\n cursor: pointer;\n font-size: ",";\n font-family: ",";\n font-weight: ",";\n text-align: center;\n text-transform: ",";\n text-decoration: ",";\n\n ","\n\n ","\n\n ","\n \n ","\n\n ","\n\n ","\n"])),"3rem",(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("3rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.isIconButton?"".concat("3rem"):"auto"}),(function(n){return n.theme.button.borderRadius}),(function(n){return n.theme.button.buttonBorderThickness}),(function(n){return n.theme.fontSizes.m}),(function(n){return n.theme.typography.fontFamilyHeadings}),(function(n){return n.theme.typography.fontWeightMedium}),(function(n){return n.theme.button.textTransform}),(function(n){return n.theme.button.textDecoration}),(function(o){return"primary"===o.appearance&&r(e||(e=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonPrimaryBackground,o.theme.colors.buttonPrimaryBorder,o.theme.colors.buttonPrimaryText,o.theme.colors.buttonPrimaryBackgroundHover,o.theme.colors.buttonPrimaryBorderHover,o.theme.colors.buttonPrimaryTextHover,o.theme.colors.buttonPrimaryDisabledBackground,o.theme.colors.buttonPrimaryDisabledText,o.theme.colors.buttonPrimaryDisabledBorder)}),(function(o){return"secondary"===o.appearance&&r(c||(c=n(["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "],["\n background-color: ",";\n border-color: ",";\n color: "," !important;\n :focus,\n :hover {\n background-color: ",";\n border-color: ",";\n color: "," !important;\n }\n :disabled {\n cursor: not-allowed;\n background-color: ",";\n color: "," !important;\n border-color: ",";\n }\n "])),o.theme.colors.buttonSecondaryBackground,o.theme.colors.buttonSecondaryBorder,o.theme.colors.buttonSecondaryText,o.theme.colors.buttonSecondaryBackgroundHover,o.theme.colors.buttonSecondaryBorderHover,o.theme.colors.buttonSecondaryTextHover,o.theme.colors.buttonSecondaryDisabledBackground,o.theme.colors.buttonSecondaryDisabledText,o.theme.colors.buttonSecondaryDisabledBorder)}),(function(o){return"tertiary"===o.appearance&&r(a||(a=n(["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "],["\n display: inline-block;\n padding: 0;\n border: 0px;\n background-color: rgba(255, 255, 255, 0);\n transition: color 0.2s ease;\n color: ",";\n :focus,\n :hover {\n color: ",";\n }\n :disabled {\n cursor: not-allowed;\n background-color: transparent;\n color: "," !important;\n border-color: transparent;\n }\n "])),o.theme.colors.buttonTertiaryText,o.theme.colors.buttonTertiaryTextHover,o.theme.colors.buttonTertiaryDisabledText)}),(function(o){return"l"===o.size&&r(i||(i=n(["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "],["\n min-height: ",";\n border-radius: ",";\n padding: ",";\n min-width: ",";\n height: ",";\n "])),"4rem",(function(n){return n.theme.button.borderRadiusLarge}),(function(n){var o=n.theme;return n.isIconButton?"0":"calc( (".concat("4rem"," - ( ").concat(o.button.buttonBorderThickness," * 2) - ").concat(o.typography.lineHeight," ) / 2) ").concat(o.spacing.m)}),(function(n){return n.isIconButton?"".concat("4rem"):"auto"}),(function(n){return n.isIconButton?"".concat("4rem"):"auto"}))}),(function(o){return o.full&&r(l||(l=n(["\n width: 100%;\n "],["\n width: 100%;\n "])))}),(function(o){return o.css&&r(d||(d=n(["\n ","\n "],["\n ","\n "])),o.css)}));export{s as Spacer,b as StyledButton};
2
2
  //# sourceMappingURL=styles.js.map
@@ -1,2 +1,2 @@
1
- var g="IyBDaGVja2JveAoKQ2hlY2tib3hlcyBhbGxvdyB0aGUgdXNlciB0byBzZWxlY3Qgb25lIG9yIG1vcmUgaXRlbXMuCgojIyMgVHJ5IGl0IG91dAoKYGBgLmpzeApmdW5jdGlvbiAoKSB7CiAgY29uc3QgW3NlbGVjdGVkLCBzZXRTZWxlY3RlZF0gPSBSZWFjdC51c2VTdGF0ZShbXSk7CiAgY29uc3QgaGFuZGxlQ2hhbmdlID0gKHZhbHVlKSA9PiB7CiAgICBpZiAoc2VsZWN0ZWQuaW5kZXhPZih2YWx1ZSkgPT09IC0xKSB7CiAgICAgIHNldFNlbGVjdGVkKFsuLi5zZWxlY3RlZCwgdmFsdWVdKQogICAgfSBlbHNlIHsKICAgICAgc2V0U2VsZWN0ZWQoc2VsZWN0ZWQuZmlsdGVyKGl0ZW0gPT4gaXRlbSAhPT0gdmFsdWUpKQogICAgfQogIH0KCiAgcmV0dXJuICgKICAgIDw+CiAgICAgIDxCb3g+CiAgICAgICAgPENoZWNrYm94CiAgICAgICAgICBuYW1lPSJleGFtcGxlIgogICAgICAgICAgb25DaGFuZ2U9e2UgPT4gaGFuZGxlQ2hhbmdlKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgIHZhbHVlPSJvbmUiCiAgICAgICAgICBjaGVja2VkPXtzZWxlY3RlZC5pbmRleE9mKCdvbmUnKSA+PSAwfQogICAgICAgID4KICAgICAgICAgIE9wdGlvbiBvbmUKICAgICAgICA8L0NoZWNrYm94PgogICAgICA8L0JveD4KICAgICAgPEJveD4KICAgICAgICA8Q2hlY2tib3gKICAgICAgICAgIG5hbWU9ImV4YW1wbGUiCiAgICAgICAgICBvbkNoYW5nZT17ZSA9PiBoYW5kbGVDaGFuZ2UoZS50YXJnZXQudmFsdWUpfQogICAgICAgICAgdmFsdWU9InR3byIKICAgICAgICAgIGNoZWNrZWQ9e3NlbGVjdGVkLmluZGV4T2YoJ3R3bycpID49IDB9CiAgICAgICAgPgogICAgICAgICAgT3B0aW9uIHR3bwogICAgICAgIDwvQ2hlY2tib3g+CiAgICAgIDwvQm94PgoKICAgICAgPEhlYWRpbmcgaDI+U2VsZWN0ZWQgdmFsdWVzPC9IZWFkaW5nPgogICAgICA8dWw+CiAgICAgICAge3NlbGVjdGVkLm1hcCh2YWx1ZSA9PiA8bGkga2V5PXt2YWx1ZX0+e3ZhbHVlfTwvbGk+KX0KICAgICAgPC91bD4KCiAgICA8Lz4KICApCn0KYGBgCgojIyBQcm9wcwoKfCBOYW1lICAgICB8IFR5cGUgICAgICAgfCBPcHRpb25zIHwgRGVmYXVsdCB8IERlc2NyaXB0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0gfCA6LS0tLS0tLS0tIHwgOi0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNoaWxkcmVuIHwgU3RyaW5nICAgICB8ICAgICAgICAgfCAgICAgICAgIHwgVXNlZCBhcyBsYWJlbCB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBkaXNhYmxlZCB8IGJvb2xlYW4gICAgfCAgICAgICAgIHwgZmFsc2UgICB8IEFwcGxpZXMgZGlzYWJsZWQgYXR0cmlidXRlIHRvIEhUTUwgaW5wdXQgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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nNlbGVjdGVkLCB2YWx1ZV0pCiAgICB9IGVsc2UgewogICAgICBzZXRTZWxlY3RlZChzZWxlY3RlZC5maWx0ZXIoaXRlbSA9PiBpdGVtICE9PSB2YWx1ZSkpCiAgICB9CiAgfQoKICByZXR1cm4gKAogICAgPD4KICAgICAgPEJveD4KICAgICAgICA8Q2hlY2tib3gKICAgICAgICAgIG5hbWU9ImV4YW1wbGUiCiAgICAgICAgICBvbkNoYW5nZT17ZSA9PiBoYW5kbGVDaGFuZ2UoZS50YXJnZXQudmFsdWUpfQogICAgICAgICAgdmFsdWU9Im9uZSIKICAgICAgICAgIGNoZWNrZWQ9e3NlbGVjdGVkLmluZGV4T2YoJ29uZScpID49IDB9CiAgICAgICAgPgogICAgICAgICAgT3B0aW9uIG9uZQogICAgICAgIDwvQ2hlY2tib3g+CiAgICAgIDwvQm94PgogICAgICA8Qm94PgogICAgICAgIDxDaGVja2JveAogICAgICAgICAgbmFtZT0iZXhhbXBsZSIKICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IGhhbmRsZUNoYW5nZShlLnRhcmdldC52YWx1ZSl9CiAgICAgICAgICB2YWx1ZT0idHdvIgogICAgICAgICAgY2hlY2tlZD17c2VsZWN0ZWQuaW5kZXhPZigndHdvJykgPj0gMH0KICAgICAgICA+CiAgICAgICAgICBPcHRpb24gdHdvCiAgICAgICAgPC9DaGVja2JveD4KICAgICAgPC9Cb3g+CgogICAgICA8SGVhZGluZyBoMj5TZWxlY3RlZCB2YWx1ZXM8L0hlYWRpbmc+CiAgICAgIDx1bD4KICAgICAgICB7c2VsZWN0ZWQubWFwKHZhbHVlID0+IDxsaSBrZXk9e3ZhbHVlfT57dmFsdWV9PC9saT4pfQogICAgICA8L3VsPgoKICAgIDwvPgogICkKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgIHwgVHlwZSAgICAgICB8IE9wdGlvbnMgfCBEZWZhdWx0IHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCA6LS0tLS0tLSB8IDotLS0tLS0tLS0gfCA6LS0tLS06IHwgOi0tLS0tLSB8IDotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2hpbGRyZW4gfCBTdHJpbmcgICAgIHwgICAgICAgICB8ICAgICAgICAgfCBVc2VkIGFzIGxhYmVsIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGRpc2FibGVkIHwgYm9vbGVhbiAgICB8ICAgICAgICAgfCBmYWxzZSAgIHwgQXBwbGllcyBkaXNhYmxlZCBhdHRyaWJ1dGUgdG8gSFRNTCBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBvbkNoYW5nZSB8IEZ1bmN0aW9uICAgfCAgICAgICAgIHwgICAgICAgICB8IENhbGxiYWNrIGZ1bmN0aW9uIGNhbGxlZCBvbiBpbnB1dCBjaGFuZ2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdmFsdWUgICAgfCBTdHJpbmcgICAgIHwgICAgICAgICB8ICAgICAgICAgfCBWYWx1ZSB0byBiZSByZXR1cm5lZCBhbmQgdXNlZCBhcyBsYWJlbCBpZiBsYWJlbCBwcm9wIGlzIG5vdCBzdXBwbGllZCAgICAgICAgfAp8IGNoaWxkcmVuIHwgUmVhY3RDaGlsZCB8ICAgICAgICAgfCAgICAgICAgIHwgUmVhY3Qgbm9kZSBvciB0ZXh0IHRvIGJlIHVzZWQgYXMgYSBsYWJlbCwgdGhlIHZhbHVlIGlzIGRpc3BsYXllZCBhcyBkZWZhdWx0IHwK";export{I as default};
2
2
  //# sourceMappingURL=README.md.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Checkbox/README.md"],"sourcesContent":["export default \"IyBDaGVja2JveAoKQ2hlY2tib3hlcyBhbGxvdyB0aGUgdXNlciB0byBzZWxlY3Qgb25lIG9yIG1vcmUgaXRlbXMuCgojIyMgVHJ5IGl0IG91dAoKYGBgLmpzeApmdW5jdGlvbiAoKSB7CiAgY29uc3QgW3NlbGVjdGVkLCBzZXRTZWxlY3RlZF0gPSBSZWFjdC51c2VTdGF0ZShbXSk7CiAgY29uc3QgaGFuZGxlQ2hhbmdlID0gKHZhbHVlKSA9PiB7CiAgICBpZiAoc2VsZWN0ZWQuaW5kZXhPZih2YWx1ZSkgPT09IC0xKSB7CiAgICAgIHNldFNlbGVjdGVkKFsuLi5zZWxlY3RlZCwgdmFsdWVdKQogICAgfSBlbHNlIHsKICAgICAgc2V0U2VsZWN0ZWQoc2VsZWN0ZWQuZmlsdGVyKGl0ZW0gPT4gaXRlbSAhPT0gdmFsdWUpKQogICAgfQogIH0KCiAgcmV0dXJuICgKICAgIDw+CiAgICAgIDxCb3g+CiAgICAgICAgPENoZWNrYm94CiAgICAgICAgICBuYW1lPSJleGFtcGxlIgogICAgICAgICAgb25DaGFuZ2U9e2UgPT4gaGFuZGxlQ2hhbmdlKGUudGFyZ2V0LnZhbHVlKX0KICAgICAgICAgIHZhbHVlPSJvbmUiCiAgICAgICAgICBjaGVja2VkPXtzZWxlY3RlZC5pbmRleE9mKCdvbmUnKSA+PSAwfQogICAgICAgID4KICAgICAgICAgIE9wdGlvbiBvbmUKICAgICAgICA8L0NoZWNrYm94PgogICAgICA8L0JveD4KICAgICAgPEJveD4KICAgICAgICA8Q2hlY2tib3gKICAgICAgICAgIG5hbWU9ImV4YW1wbGUiCiAgICAgICAgICBvbkNoYW5nZT17ZSA9PiBoYW5kbGVDaGFuZ2UoZS50YXJnZXQudmFsdWUpfQogICAgICAgICAgdmFsdWU9InR3byIKICAgICAgICAgIGNoZWNrZWQ9e3NlbGVjdGVkLmluZGV4T2YoJ3R3bycpID49IDB9CiAgICAgICAgPgogICAgICAgICAgT3B0aW9uIHR3bwogICAgICAgIDwvQ2hlY2tib3g+CiAgICAgIDwvQm94PgoKICAgICAgPEhlYWRpbmcgaDI+U2VsZWN0ZWQgdmFsdWVzPC9IZWFkaW5nPgogICAgICA8dWw+CiAgICAgICAge3NlbGVjdGVkLm1hcCh2YWx1ZSA9PiA8bGkga2V5PXt2YWx1ZX0+e3ZhbHVlfTwvbGk+KX0KICAgICAgPC91bD4KCiAgICA8Lz4KICApCn0KYGBgCgojIyBQcm9wcwoKfCBOYW1lICAgICB8IFR5cGUgICAgICAgfCBPcHRpb25zIHwgRGVmYXVsdCB8IERlc2NyaXB0aW9uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgOi0tLS0tLS0gfCA6LS0tLS0tLS0tIHwgOi0tLS0tOiB8IDotLS0tLS0gfCA6LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gfAp8IGNoaWxkcmVuIHwgU3RyaW5nICAgICB8ICAgICAgICAgfCAgICAgICAgIHwgVXNlZCBhcyBsYWJlbCB0ZXh0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBkaXNhYmxlZCB8IGJvb2xlYW4gICAgfCAgICAgICAgIHwgZmFsc2UgICB8IEFwcGxpZXMgZGlzYWJsZWQgYXR0cmlidXRlIHRvIEhUTUwgaW5wdXQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8Cnwgb25DaGFuZ2UgfCBGdW5jdGlvbiAgIHwgICAgICAgICB8ICAgICAgICAgfCBDYWxsYmFjayBmdW5jdGlvbiBjYWxsZWQgb24gaW5wdXQgY2hhbmdlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IHZhbHVlICAgIHwgU3RyaW5nICAgICB8ICAgICAgICAgfCAgICAgICAgIHwgVmFsdWUgdG8gYmUgcmV0dXJuZWQgYW5kIHVzZWQgYXMgbGFiZWwgaWYgbGFiZWwgcHJvcCBpcyBub3Qgc3VwcGxpZWQgICAgICAgIHwKfCBjaGlsZHJlbiB8IFJlYWN0Q2hpbGQgfCAgICAgICAgIHwgICAgICAgICB8IFJlYWN0IG5vZGUgb3IgdGV4dCB0byBiZSB1c2VkIGFzIGEgbGFiZWwsIHRoZSB2YWx1ZSBpcyBkaXNwbGF5ZWQgYXMgZGVmYXVsdCB8Cg==\""],"names":[],"mappings":"AAAA,MAAe"}
1
+ {"version":3,"file":"README.md.js","sources":["../../../../../src/components/Checkbox/README.md"],"sourcesContent":["export default \"IyBDaGVja2JveAoKQ2hlY2tib3hlcyBhbGxvdyB0aGUgdXNlciB0byBzZWxlY3Qgb25lIG9yIG1vcmUgaXRlbXMuCgpJZiB0aGUgQ2hlY2tib3ggY29tcG9uZW50IGlzIHBhc3NlZCBhbiBpZCwgdGhpcyBpcyB1c2VkIHRvIGdlbmVyYXRlIGFuIGlkIGZvciB0aGUgZXJyb3IgY29udGFpbmVyIGFuZCByZWxhdGlvbnNoaXAgd2l0aCB0aGUgaW5wdXQgdXNpbmcgYXJpYS1kZXNjcmliZWRieS4KCiMjIyBUcnkgaXQgb3V0CgpgYGAuanN4CmZ1bmN0aW9uICgpIHsKICBjb25zdCBbc2VsZWN0ZWQsIHNldFNlbGVjdGVkXSA9IFJlYWN0LnVzZVN0YXRlKFtdKTsKICBjb25zdCBoYW5kbGVDaGFuZ2UgPSAodmFsdWUpID0+IHsKICAgIGlmIChzZWxlY3RlZC5pbmRleE9mKHZhbHVlKSA9PT0gLTEpIHsKICAgICAgc2V0U2VsZWN0ZWQoWy4uLnNlbGVjdGVkLCB2YWx1ZV0pCiAgICB9IGVsc2UgewogICAgICBzZXRTZWxlY3RlZChzZWxlY3RlZC5maWx0ZXIoaXRlbSA9PiBpdGVtICE9PSB2YWx1ZSkpCiAgICB9CiAgfQoKICByZXR1cm4gKAogICAgPD4KICAgICAgPEJveD4KICAgICAgICA8Q2hlY2tib3gKICAgICAgICAgIG5hbWU9ImV4YW1wbGUiCiAgICAgICAgICBvbkNoYW5nZT17ZSA9PiBoYW5kbGVDaGFuZ2UoZS50YXJnZXQudmFsdWUpfQogICAgICAgICAgdmFsdWU9Im9uZSIKICAgICAgICAgIGNoZWNrZWQ9e3NlbGVjdGVkLmluZGV4T2YoJ29uZScpID49IDB9CiAgICAgICAgPgogICAgICAgICAgT3B0aW9uIG9uZQogICAgICAgIDwvQ2hlY2tib3g+CiAgICAgIDwvQm94PgogICAgICA8Qm94PgogICAgICAgIDxDaGVja2JveAogICAgICAgICAgbmFtZT0iZXhhbXBsZSIKICAgICAgICAgIG9uQ2hhbmdlPXtlID0+IGhhbmRsZUNoYW5nZShlLnRhcmdldC52YWx1ZSl9CiAgICAgICAgICB2YWx1ZT0idHdvIgogICAgICAgICAgY2hlY2tlZD17c2VsZWN0ZWQuaW5kZXhPZigndHdvJykgPj0gMH0KICAgICAgICA+CiAgICAgICAgICBPcHRpb24gdHdvCiAgICAgICAgPC9DaGVja2JveD4KICAgICAgPC9Cb3g+CgogICAgICA8SGVhZGluZyBoMj5TZWxlY3RlZCB2YWx1ZXM8L0hlYWRpbmc+CiAgICAgIDx1bD4KICAgICAgICB7c2VsZWN0ZWQubWFwKHZhbHVlID0+IDxsaSBrZXk9e3ZhbHVlfT57dmFsdWV9PC9saT4pfQogICAgICA8L3VsPgoKICAgIDwvPgogICkKfQpgYGAKCiMjIFByb3BzCgp8IE5hbWUgICAgIHwgVHlwZSAgICAgICB8IE9wdGlvbnMgfCBEZWZhdWx0IHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCA6LS0tLS0tLSB8IDotLS0tLS0tLS0gfCA6LS0tLS06IHwgOi0tLS0tLSB8IDotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSB8CnwgY2hpbGRyZW4gfCBTdHJpbmcgICAgIHwgICAgICAgICB8ICAgICAgICAgfCBVc2VkIGFzIGxhYmVsIHRleHQgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGRpc2FibGVkIHwgYm9vbGVhbiAgICB8ICAgICAgICAgfCBmYWxzZSAgIHwgQXBwbGllcyBkaXNhYmxlZCBhdHRyaWJ1dGUgdG8gSFRNTCBpbnB1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKfCBvbkNoYW5nZSB8IEZ1bmN0aW9uICAgfCAgICAgICAgIHwgICAgICAgICB8IENhbGxiYWNrIGZ1bmN0aW9uIGNhbGxlZCBvbiBpbnB1dCBjaGFuZ2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8CnwgdmFsdWUgICAgfCBTdHJpbmcgICAgIHwgICAgICAgICB8ICAgICAgICAgfCBWYWx1ZSB0byBiZSByZXR1cm5lZCBhbmQgdXNlZCBhcyBsYWJlbCBpZiBsYWJlbCBwcm9wIGlzIG5vdCBzdXBwbGllZCAgICAgICAgfAp8IGNoaWxkcmVuIHwgUmVhY3RDaGlsZCB8ICAgICAgICAgfCAgICAgICAgIHwgUmVhY3Qgbm9kZSBvciB0ZXh0IHRvIGJlIHVzZWQgYXMgYSBsYWJlbCwgdGhlIHZhbHVlIGlzIGRpc3BsYXllZCBhcyBkZWZhdWx0IHwK\""],"names":[],"mappings":"AAAA,MAAe"}
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as r}from"../../../node_modules/tslib/tslib.es6.js";import t,{forwardRef as l}from"react";import{useTheme as o,ThemeProvider as s}from"styled-components";import m from"../../themes/cruk.js";import a from"../ErrorText/index.js";import{StyledLabel as n,StyledInput as c,SelectedBorder as i,CheckWrapper as d,Check as u,CheckGlyph as E}from"./styles.js";var f=l((function(l,f){var h=o(),p=e(e({},m),h),x=l.children,b=r(l,["children"]);return t.createElement(s,{theme:p},t.createElement(n,{hasError:l.hasError||!!l.errorMessage||!1,checked:l.checked||l.defaultChecked||!1,disabled:l.disabled||!1},t.createElement(c,e({},b,{type:"checkbox",ref:f})),t.createElement(i,null),x||l.value,p.utilities.useDefaultFromControls?null:t.createElement(d,null,t.createElement(u,null,t.createElement(E,{viewBox:"0 0 17.8 17.8"},t.createElement("path",{d:"M0 11.314l1.52-1.52 4.95 4.95 9.794-9.794 1.52 1.52L6.482 17.774l-.01-.01-.01.01z"}))))),!!l.errorMessage&&t.createElement(a,{marginTop:"xxs"},l.errorMessage))}));export{f as default};
1
+ import{__assign as e,__rest as r}from"../../../node_modules/tslib/tslib.es6.js";import t,{forwardRef as o}from"react";import{useTheme as l,ThemeProvider as a}from"styled-components";import s from"../../themes/cruk.js";import i from"../ErrorText/index.js";import{StyledLabel as c,StyledInput as m,SelectedBorder as n,CheckWrapper as d,Check as u,CheckGlyph as E}from"./styles.js";var f=o((function(o,f){var h=l(),p=e(e({},s),h),b=o.children,x=r(o,["children"]);return t.createElement(a,{theme:p},t.createElement(c,{hasError:o.hasError||!!o.errorMessage||!1,checked:o.checked||o.defaultChecked||!1,disabled:o.disabled||!1},t.createElement(m,e({},x,{type:"checkbox",ref:f,"aria-describedby":o.id&&o.errorMessage?"".concat(o.id,"-error"):void 0})),t.createElement(n,null),b||o.value,p.utilities.useDefaultFromControls?null:t.createElement(d,null,t.createElement(u,null,t.createElement(E,{viewBox:"0 0 17.8 17.8"},t.createElement("path",{d:"M0 11.314l1.52-1.52 4.95 4.95 9.794-9.794 1.52 1.52L6.482 17.774l-.01-.01-.01.01z"}))))),!!o.errorMessage&&t.createElement(i,{marginTop:"xxs",id:o.id?"".concat(o.id,"-error"):void 0},o.errorMessage))}));export{f as default};
2
2
  //# sourceMappingURL=index.js.map