@sproutsocial/racine 20.0.0 → 20.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +5 -5
  3. package/__flow__/Avatar/Avatar.flow.js +1 -0
  4. package/__flow__/Avatar/constants.flow.js +11 -0
  5. package/__flow__/Avatar/index.flow.js +2 -1
  6. package/__flow__/Menu/Menu.flow.js +3 -0
  7. package/__flow__/Popout/Popout.flow.js +5 -0
  8. package/__flow__/types/theme.colors.flow.js +14 -0
  9. package/commonjs/Avatar/Avatar.flow.js +1 -1
  10. package/commonjs/Avatar/Avatar.js +54 -30
  11. package/commonjs/Avatar/constants.flow.js +17 -0
  12. package/commonjs/Avatar/constants.js +17 -0
  13. package/commonjs/Avatar/index.flow.js +12 -1
  14. package/commonjs/Avatar/index.js +9 -1
  15. package/commonjs/Badge/Badge.flow.js +1 -1
  16. package/commonjs/Badge/Badge.js +1 -1
  17. package/commonjs/Banner/Banner.flow.js +1 -1
  18. package/commonjs/Banner/Banner.js +1 -1
  19. package/commonjs/Banner/styles.js +1 -1
  20. package/commonjs/Box/Box.flow.js +1 -1
  21. package/commonjs/Box/Box.js +1 -1
  22. package/commonjs/Breadcrumb/Breadcrumb.flow.js +1 -1
  23. package/commonjs/Breadcrumb/Breadcrumb.js +3 -3
  24. package/commonjs/Button/Button.flow.js +1 -1
  25. package/commonjs/Button/styles.js +1 -1
  26. package/commonjs/Card/Card.flow.js +1 -1
  27. package/commonjs/Card/Card.js +3 -3
  28. package/commonjs/Card/CardTypes.flow.js +1 -1
  29. package/commonjs/Card/subComponents.js +1 -1
  30. package/commonjs/Card/utils.js +1 -1
  31. package/commonjs/CharacterCounter/CharacterCounter.flow.js +1 -1
  32. package/commonjs/CharacterCounter/CharacterCounter.js +1 -1
  33. package/commonjs/CharacterCounter/styles.js +1 -1
  34. package/commonjs/ChartLegend/ChartLegend.flow.js +1 -1
  35. package/commonjs/ChartLegend/ChartLegend.js +1 -1
  36. package/commonjs/ChartLegend/styles.js +1 -1
  37. package/commonjs/Checkbox/Checkbox.flow.js +1 -1
  38. package/commonjs/Checkbox/Checkbox.js +1 -1
  39. package/commonjs/Checkbox/styles.js +1 -1
  40. package/commonjs/Collapsible/Collapsible.flow.js +1 -1
  41. package/commonjs/Collapsible/Collapsible.js +5 -5
  42. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.flow.js +1 -1
  43. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +27 -10
  44. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.flow.js +1 -1
  45. package/commonjs/DatePicker/DateRangePicker/StatefulDateRangePicker.js +3 -3
  46. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +1 -1
  47. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +21 -10
  48. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.flow.js +1 -1
  49. package/commonjs/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +3 -3
  50. package/commonjs/DatePicker/index.flow.js +1 -1
  51. package/commonjs/DatePicker/styles.js +1 -1
  52. package/commonjs/Drawer/Drawer.flow.js +1 -1
  53. package/commonjs/Drawer/Drawer.js +4 -4
  54. package/commonjs/Drawer/SlideTransition.js +1 -1
  55. package/commonjs/Drawer/styles.js +1 -1
  56. package/commonjs/EmptyState/EmptyState.flow.js +1 -1
  57. package/commonjs/EmptyState/EmptyState.js +2 -2
  58. package/commonjs/Fieldset/Fieldset.flow.js +1 -1
  59. package/commonjs/Fieldset/Fieldset.js +2 -2
  60. package/commonjs/Fieldset/styles.js +1 -1
  61. package/commonjs/FormField/FormField.flow.js +1 -1
  62. package/commonjs/FormField/FormField.js +3 -3
  63. package/commonjs/Icon/Icon.flow.js +1 -1
  64. package/commonjs/Icon/Icon.js +3 -3
  65. package/commonjs/Icon/index.flow.js +1 -1
  66. package/commonjs/Icon/styles.js +1 -1
  67. package/commonjs/Image/Image.flow.js +1 -1
  68. package/commonjs/Image/Image.js +1 -1
  69. package/commonjs/Image/styles.js +1 -1
  70. package/commonjs/Indicator/Indicator.flow.js +1 -1
  71. package/commonjs/Indicator/Indicator.js +1 -1
  72. package/commonjs/Input/Input.flow.js +1 -1
  73. package/commonjs/Input/Input.js +8 -4
  74. package/commonjs/Input/styles.js +1 -1
  75. package/commonjs/KeyboardKey/KeyboardKey.flow.js +1 -1
  76. package/commonjs/KeyboardKey/KeyboardKey.js +1 -1
  77. package/commonjs/Label/Label.flow.js +1 -1
  78. package/commonjs/Label/Label.js +1 -1
  79. package/commonjs/Link/Link.flow.js +1 -1
  80. package/commonjs/Link/Link.js +1 -1
  81. package/commonjs/Link/styles.js +1 -1
  82. package/commonjs/Listbox/Listbox.flow.js +1 -1
  83. package/commonjs/Listbox/Listbox.js +3 -3
  84. package/commonjs/Listbox/index.js +1 -1
  85. package/commonjs/Loader/Loader.flow.js +1 -1
  86. package/commonjs/Loader/Loader.js +1 -1
  87. package/commonjs/Loader/styles.js +1 -1
  88. package/commonjs/LoaderButton/LoaderButton.flow.js +1 -1
  89. package/commonjs/LoaderButton/LoaderButton.js +4 -5
  90. package/commonjs/Menu/Menu.flow.js +1 -1
  91. package/commonjs/Menu/Menu.js +51 -30
  92. package/commonjs/Menu/index.js +1 -1
  93. package/commonjs/Menu/styles.js +1 -1
  94. package/commonjs/Menu/utils/descendants.js +12 -6
  95. package/commonjs/Menu/utils/hooks.js +8 -2
  96. package/commonjs/Menu/utils/index.js +0 -11
  97. package/commonjs/Message/Message.flow.js +1 -1
  98. package/commonjs/Message/Message.js +1 -1
  99. package/commonjs/Modal/Modal.flow.js +1 -1
  100. package/commonjs/Modal/Modal.js +1 -1
  101. package/commonjs/Modal/styles.js +1 -1
  102. package/commonjs/Numeral/Numeral.flow.js +1 -1
  103. package/commonjs/Numeral/Numeral.js +3 -3
  104. package/commonjs/PartnerLogo/PartnerLogo.flow.js +1 -1
  105. package/commonjs/PartnerLogo/styles.js +1 -1
  106. package/commonjs/Popout/Popout.flow.js +1 -1
  107. package/commonjs/Popout/Popout.js +15 -10
  108. package/commonjs/Portal/Portal.flow.js +1 -1
  109. package/commonjs/Portal/Portal.js +1 -1
  110. package/commonjs/Radio/Radio.flow.js +1 -1
  111. package/commonjs/Radio/Radio.js +1 -1
  112. package/commonjs/Radio/styles.js +1 -1
  113. package/commonjs/SegmentedControl/SegmentedControl.flow.js +1 -1
  114. package/commonjs/SegmentedControl/SegmentedControl.js +3 -3
  115. package/commonjs/SegmentedControl/styles.js +1 -1
  116. package/commonjs/Select/Select.flow.js +1 -1
  117. package/commonjs/Select/Select.js +1 -1
  118. package/commonjs/Select/styles.js +1 -1
  119. package/commonjs/Skeleton/Skeleton.js +29 -5
  120. package/commonjs/SpotIllustration/SpotIllustration.flow.js +1 -1
  121. package/commonjs/SpotIllustration/SpotIllustration.js +2 -2
  122. package/commonjs/Stack/Stack.flow.js +1 -1
  123. package/commonjs/Stack/Stack.js +1 -1
  124. package/commonjs/StatefulStory.js +8 -2
  125. package/commonjs/Switch/Switch.flow.js +1 -1
  126. package/commonjs/Switch/Switch.js +1 -1
  127. package/commonjs/Switch/styles.js +1 -1
  128. package/commonjs/Table/Table.flow.js +1 -1
  129. package/commonjs/Table/Table.js +1 -1
  130. package/commonjs/TableCell/TableCell.flow.js +1 -1
  131. package/commonjs/TableCell/TableCell.js +1 -1
  132. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +1 -1
  133. package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
  134. package/commonjs/TableHeaderCell/styles.js +1 -1
  135. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +1 -1
  136. package/commonjs/TableRowAccordion/TableRowAccordion.js +1 -1
  137. package/commonjs/TableRowAccordion/styles.js +1 -1
  138. package/commonjs/Tabs/Tabs.flow.js +1 -1
  139. package/commonjs/Tabs/Tabs.js +4 -4
  140. package/commonjs/Tabs/styles.js +1 -1
  141. package/commonjs/Text/Text.flow.js +1 -1
  142. package/commonjs/Text/Text.js +1 -1
  143. package/commonjs/Text/styles.js +1 -1
  144. package/commonjs/Textarea/Textarea.flow.js +1 -1
  145. package/commonjs/Textarea/Textarea.js +5 -2
  146. package/commonjs/Textarea/styles.js +1 -1
  147. package/commonjs/ThemeProvider/index.flow.js +1 -1
  148. package/commonjs/ThemeProvider/index.js +3 -1
  149. package/commonjs/Toast/Toast.flow.js +1 -1
  150. package/commonjs/Toast/Toast.js +1 -1
  151. package/commonjs/Toast/index.js +1 -1
  152. package/commonjs/Toast/styles.js +1 -2
  153. package/commonjs/ToggleHint/ToggleHint.flow.js +1 -1
  154. package/commonjs/ToggleHint/ToggleHint.js +1 -1
  155. package/commonjs/ToggleHint/styles.js +1 -1
  156. package/commonjs/Token/Token.flow.js +1 -1
  157. package/commonjs/Token/Token.js +1 -1
  158. package/commonjs/Token/index.js +1 -1
  159. package/commonjs/Token/styles.js +1 -1
  160. package/commonjs/TokenInput/TokenInput.flow.js +1 -1
  161. package/commonjs/TokenInput/TokenInput.js +4 -4
  162. package/commonjs/TokenInput/TokenScreenReaderStatus.js +4 -4
  163. package/commonjs/TokenInput/styles.js +1 -1
  164. package/commonjs/Tooltip/Tooltip.flow.js +1 -1
  165. package/commonjs/Tooltip/Tooltip.js +112 -46
  166. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +1 -1
  167. package/commonjs/index.flow.js +1 -1
  168. package/commonjs/systemProps/background.flow.js +1 -0
  169. package/commonjs/systemProps/border.flow.js +1 -0
  170. package/commonjs/systemProps/color.flow.js +1 -0
  171. package/commonjs/systemProps/custom.flow.js +1 -0
  172. package/commonjs/systemProps/flexbox.flow.js +1 -0
  173. package/commonjs/systemProps/grid.flow.js +1 -0
  174. package/commonjs/systemProps/index.js +2 -0
  175. package/commonjs/systemProps/layout.flow.js +1 -0
  176. package/commonjs/systemProps/position.flow.js +1 -0
  177. package/commonjs/systemProps/shadow.flow.js +1 -0
  178. package/commonjs/systemProps/space.flow.js +16 -1
  179. package/commonjs/systemProps/typography.flow.js +1 -0
  180. package/commonjs/systemProps/variant.flow.js +1 -0
  181. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  182. package/commonjs/themes/dark/theme.js +19 -4
  183. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +5 -4
  184. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +5 -4
  185. package/commonjs/themes/light/decorative-palettes.js +1 -1
  186. package/commonjs/themes/light/theme.js +19 -4
  187. package/commonjs/types/shared.flow.js +1 -1
  188. package/commonjs/types/styled-components.flow.js +1 -1
  189. package/commonjs/utils/a11yTest.js +14 -16
  190. package/commonjs/utils/dataQaLabelQueries.js +2 -2
  191. package/commonjs/utils/hooks.flow.js +4 -2
  192. package/commonjs/utils/hooks.js +5 -5
  193. package/commonjs/utils/index.js +1 -1
  194. package/commonjs/utils/innerText.flow.js +1 -1
  195. package/commonjs/utils/react-testing-library.flow.js +1 -1
  196. package/commonjs/utils/react-testing-library.js +15 -13
  197. package/commonjs/utils/responsiveProps/index.js +2 -2
  198. package/commonjs/utils/system-props/system-props.js +1 -1
  199. package/commonjs/utils/use-measure.js +2 -2
  200. package/dist/themes/dark/theme.scss +14 -1
  201. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +14 -1
  202. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +14 -1
  203. package/dist/themes/light/theme.scss +14 -1
  204. package/dist/types/Avatar/Avatar.d.ts +4 -3
  205. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  206. package/dist/types/Avatar/AvatarTypes.d.ts +5 -2
  207. package/dist/types/Avatar/AvatarTypes.d.ts.map +1 -1
  208. package/dist/types/Avatar/constants.d.ts +11 -0
  209. package/dist/types/Avatar/constants.d.ts.map +1 -0
  210. package/dist/types/Avatar/index.d.ts +1 -0
  211. package/dist/types/Avatar/index.d.ts.map +1 -1
  212. package/dist/types/Badge/Badge.d.ts +2 -2
  213. package/dist/types/Badge/Badge.d.ts.map +1 -1
  214. package/dist/types/Badge/BadgeTypes.d.ts +1 -1
  215. package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
  216. package/dist/types/Banner/Banner.d.ts +2 -2
  217. package/dist/types/Banner/Banner.d.ts.map +1 -1
  218. package/dist/types/Banner/BannerTypes.d.ts +1 -1
  219. package/dist/types/Banner/BannerTypes.d.ts.map +1 -1
  220. package/dist/types/Banner/styles.d.ts +3 -3
  221. package/dist/types/Banner/styles.d.ts.map +1 -1
  222. package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -3
  223. package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  224. package/dist/types/Button/Button.d.ts +2 -2
  225. package/dist/types/Button/Button.d.ts.map +1 -1
  226. package/dist/types/Button/ButtonTypes.d.ts +1 -1
  227. package/dist/types/Button/ButtonTypes.d.ts.map +1 -1
  228. package/dist/types/Card/Card.d.ts +2 -2
  229. package/dist/types/Card/Card.d.ts.map +1 -1
  230. package/dist/types/Card/CardTypes.d.ts +5 -5
  231. package/dist/types/Card/CardTypes.d.ts.map +1 -1
  232. package/dist/types/Card/styles.d.ts +4 -4
  233. package/dist/types/Card/subComponents.d.ts +6 -6
  234. package/dist/types/Card/subComponents.d.ts.map +1 -1
  235. package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
  236. package/dist/types/ChartLegend/ChartLegend.d.ts +2 -2
  237. package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
  238. package/dist/types/ChartLegend/ChartLegendTypes.d.ts +1 -1
  239. package/dist/types/ChartLegend/ChartLegendTypes.d.ts.map +1 -1
  240. package/dist/types/ChartLegend/useChartLabels.d.ts +2 -2
  241. package/dist/types/ChartLegend/useChartLabels.d.ts.map +1 -1
  242. package/dist/types/Checkbox/Checkbox.d.ts +1 -1
  243. package/dist/types/Checkbox/styles.d.ts +3 -3
  244. package/dist/types/Collapsible/Collapsible.d.ts +4 -4
  245. package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
  246. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  247. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  248. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +4 -2
  249. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
  250. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -2
  251. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
  252. package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts.map +1 -1
  253. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +2 -0
  254. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
  255. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -2
  256. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
  257. package/dist/types/DatePicker/common.d.ts +3 -3
  258. package/dist/types/DatePicker/common.d.ts.map +1 -1
  259. package/dist/types/Drawer/Drawer.d.ts +2 -2
  260. package/dist/types/Drawer/SlideTransition.d.ts +2 -2
  261. package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
  262. package/dist/types/EmptyState/EmptyState.d.ts +2 -2
  263. package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
  264. package/dist/types/EnumIllustrationNames.d.ts +1 -1
  265. package/dist/types/EnumIllustrationNames.d.ts.map +1 -1
  266. package/dist/types/EnumLogoNames.d.ts +1 -1
  267. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  268. package/dist/types/Fieldset/Fieldset.d.ts +4 -4
  269. package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
  270. package/dist/types/FormField/FormField.d.ts +2 -2
  271. package/dist/types/FormField/FormField.d.ts.map +1 -1
  272. package/dist/types/Icon/Icon.d.ts +3 -3
  273. package/dist/types/Icon/Icon.d.ts.map +1 -1
  274. package/dist/types/Icon/IconTypes.d.ts +2 -2
  275. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  276. package/dist/types/Image/Image.d.ts +2 -2
  277. package/dist/types/Image/Image.d.ts.map +1 -1
  278. package/dist/types/Indicator/Indicator.d.ts +1 -1
  279. package/dist/types/Input/Input.d.ts +2 -2
  280. package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
  281. package/dist/types/Label/Label.d.ts +1 -1
  282. package/dist/types/Link/Link.d.ts +2 -2
  283. package/dist/types/Link/Link.d.ts.map +1 -1
  284. package/dist/types/Link/styles.d.ts +1 -1
  285. package/dist/types/Listbox/Listbox.d.ts +11 -11
  286. package/dist/types/Listbox/Listbox.d.ts.map +1 -1
  287. package/dist/types/Loader/Loader.d.ts +1 -1
  288. package/dist/types/LoaderButton/LoaderButton.d.ts +2 -2
  289. package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
  290. package/dist/types/Menu/Menu.d.ts +14 -14
  291. package/dist/types/Menu/Menu.d.ts.map +1 -1
  292. package/dist/types/Menu/MenuTypes.d.ts +4 -2
  293. package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
  294. package/dist/types/Menu/utils/descendants.d.ts +3 -3
  295. package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
  296. package/dist/types/Menu/utils/hooks.d.ts +1 -1
  297. package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
  298. package/dist/types/Menu/utils/index.d.ts +0 -1
  299. package/dist/types/Menu/utils/index.d.ts.map +1 -1
  300. package/dist/types/Message/Message.d.ts +8 -8
  301. package/dist/types/Message/MessageTypes.d.ts +2 -2
  302. package/dist/types/Message/MessageTypes.d.ts.map +1 -1
  303. package/dist/types/Modal/Modal.d.ts +4 -4
  304. package/dist/types/Modal/styles.d.ts +1 -1
  305. package/dist/types/Modal/styles.d.ts.map +1 -1
  306. package/dist/types/Numeral/Numeral.d.ts +2 -2
  307. package/dist/types/Numeral/Numeral.d.ts.map +1 -1
  308. package/dist/types/Numeral/NumeralTypes.d.ts +1 -1
  309. package/dist/types/Numeral/NumeralTypes.d.ts.map +1 -1
  310. package/dist/types/Numeral/styles.d.ts +2 -2
  311. package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -2
  312. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  313. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +3 -3
  314. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  315. package/dist/types/Popout/Popout.d.ts +3 -3
  316. package/dist/types/Popout/Popout.d.ts.map +1 -1
  317. package/dist/types/Popout/PopoutTypes.d.ts +5 -1
  318. package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
  319. package/dist/types/Radio/Radio.d.ts +1 -1
  320. package/dist/types/Radio/styles.d.ts +1 -1
  321. package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -3
  322. package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  323. package/dist/types/SegmentedControl/styles.d.ts +1 -1
  324. package/dist/types/Select/Select.d.ts +1 -1
  325. package/dist/types/Skeleton/Skeleton.d.ts +3 -1
  326. package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
  327. package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -2
  328. package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
  329. package/dist/types/Stack/Stack.d.ts +2 -2
  330. package/dist/types/Stack/Stack.d.ts.map +1 -1
  331. package/dist/types/Stack/StackTypes.d.ts +3 -3
  332. package/dist/types/Stack/StackTypes.d.ts.map +1 -1
  333. package/dist/types/Switch/Switch.d.ts +2 -2
  334. package/dist/types/Switch/Switch.d.ts.map +1 -1
  335. package/dist/types/Table/Table.d.ts +8 -8
  336. package/dist/types/Table/Table.d.ts.map +1 -1
  337. package/dist/types/TableCell/TableCell.d.ts +1 -1
  338. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
  339. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
  340. package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts +1 -1
  341. package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts.map +1 -1
  342. package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
  343. package/dist/types/Tabs/Tabs.d.ts +2 -2
  344. package/dist/types/Tabs/Tabs.d.ts.map +1 -1
  345. package/dist/types/Tabs/styles.d.ts +2 -2
  346. package/dist/types/Tabs/styles.d.ts.map +1 -1
  347. package/dist/types/Text/Text.d.ts +2 -2
  348. package/dist/types/Text/Text.d.ts.map +1 -1
  349. package/dist/types/Textarea/Textarea.d.ts +2 -2
  350. package/dist/types/Textarea/Textarea.d.ts.map +1 -1
  351. package/dist/types/Textarea/TextareaTypes.d.ts +1 -1
  352. package/dist/types/Textarea/TextareaTypes.d.ts.map +1 -1
  353. package/dist/types/ThemeProvider/index.d.ts +3 -3
  354. package/dist/types/ThemeProvider/index.d.ts.map +1 -1
  355. package/dist/types/Toast/Toast.d.ts +2 -2
  356. package/dist/types/Toast/Toast.d.ts.map +1 -1
  357. package/dist/types/Toast/ToastTypes.d.ts +1 -1
  358. package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
  359. package/dist/types/Toast/styles.d.ts +2 -2
  360. package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
  361. package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
  362. package/dist/types/Token/Token.d.ts +2 -2
  363. package/dist/types/Token/Token.d.ts.map +1 -1
  364. package/dist/types/TokenInput/TokenInput.d.ts +2 -2
  365. package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
  366. package/dist/types/Tooltip/Tooltip.d.ts +2 -2
  367. package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
  368. package/dist/types/Tooltip/TooltipTypes.d.ts +2 -0
  369. package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
  370. package/dist/types/themes/dark/theme.d.ts +13 -0
  371. package/dist/types/themes/dark/theme.d.ts.map +1 -1
  372. package/dist/types/themes/light/theme.d.ts +14 -1
  373. package/dist/types/themes/light/theme.d.ts.map +1 -1
  374. package/dist/types/types/shared.d.ts +3 -3
  375. package/dist/types/types/shared.d.ts.map +1 -1
  376. package/dist/types/types/system-props.d.ts +3 -3
  377. package/dist/types/types/system-props.d.ts.map +1 -1
  378. package/dist/types/types/theme.colors.d.ts +28 -15
  379. package/dist/types/types/theme.colors.d.ts.map +1 -1
  380. package/dist/types/types/theme.d.ts +13 -13
  381. package/dist/types/types/theme.d.ts.map +1 -1
  382. package/dist/types/utils/dataQaLabelQueries.d.ts +2 -2
  383. package/dist/types/utils/dataQaLabelQueries.d.ts.map +1 -1
  384. package/dist/types/utils/hooks.d.ts +6 -6
  385. package/dist/types/utils/hooks.d.ts.map +1 -1
  386. package/dist/types/utils/index.d.ts +1 -1
  387. package/dist/types/utils/index.d.ts.map +1 -1
  388. package/dist/types/utils/react-testing-library.d.ts +3 -123
  389. package/dist/types/utils/react-testing-library.d.ts.map +1 -1
  390. package/lib/Avatar/Avatar.js +51 -28
  391. package/lib/Avatar/constants.flow.js +10 -0
  392. package/lib/Avatar/constants.js +10 -0
  393. package/lib/Avatar/index.flow.js +2 -1
  394. package/lib/Avatar/index.js +2 -1
  395. package/lib/Breadcrumb/Breadcrumb.js +3 -3
  396. package/lib/Card/Card.js +2 -2
  397. package/lib/Card/utils.js +1 -1
  398. package/lib/CharacterCounter/CharacterCounter.js +1 -1
  399. package/lib/Checkbox/Checkbox.js +1 -1
  400. package/lib/Collapsible/Collapsible.js +5 -5
  401. package/lib/DatePicker/DateRangePicker/DateRangePicker.js +27 -10
  402. package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +2 -2
  403. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +21 -10
  404. package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +2 -2
  405. package/lib/Drawer/Drawer.js +3 -3
  406. package/lib/FormField/FormField.js +2 -2
  407. package/lib/Icon/Icon.flow.js +3 -1
  408. package/lib/Icon/Icon.js +3 -3
  409. package/lib/Image/Image.js +1 -1
  410. package/lib/Indicator/Indicator.js +1 -1
  411. package/lib/Input/Input.js +9 -4
  412. package/lib/KeyboardKey/KeyboardKey.js +1 -1
  413. package/lib/Label/Label.js +1 -1
  414. package/lib/Listbox/Listbox.js +3 -3
  415. package/lib/Loader/Loader.js +1 -1
  416. package/lib/LoaderButton/LoaderButton.js +3 -4
  417. package/lib/Menu/Menu.js +51 -30
  418. package/lib/Menu/utils/descendants.js +5 -5
  419. package/lib/Menu/utils/hooks.js +8 -2
  420. package/lib/Menu/utils/index.js +1 -2
  421. package/lib/Numeral/Numeral.js +2 -2
  422. package/lib/PartnerLogo/PartnerLogo.flow.js +5 -1
  423. package/lib/Popout/Popout.flow.js +3 -1
  424. package/lib/Popout/Popout.js +15 -10
  425. package/lib/Portal/Portal.js +1 -1
  426. package/lib/Radio/Radio.js +1 -1
  427. package/lib/SegmentedControl/SegmentedControl.js +2 -2
  428. package/lib/Select/Select.js +1 -1
  429. package/lib/Skeleton/Skeleton.js +30 -5
  430. package/lib/StatefulStory.js +2 -2
  431. package/lib/TableCell/TableCell.flow.js +5 -1
  432. package/lib/TableCell/TableCell.js +1 -1
  433. package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
  434. package/lib/TableRowAccordion/TableRowAccordion.js +1 -1
  435. package/lib/Tabs/Tabs.js +4 -4
  436. package/lib/Textarea/Textarea.js +5 -1
  437. package/lib/ThemeProvider/index.flow.js +3 -1
  438. package/lib/ThemeProvider/index.js +3 -0
  439. package/lib/ToggleHint/ToggleHint.js +1 -1
  440. package/lib/TokenInput/TokenInput.js +4 -4
  441. package/lib/TokenInput/TokenScreenReaderStatus.js +2 -2
  442. package/lib/Tooltip/Tooltip.js +112 -46
  443. package/lib/systemProps/background.flow.js +3 -0
  444. package/lib/systemProps/border.flow.js +3 -0
  445. package/lib/systemProps/color.flow.js +3 -0
  446. package/lib/systemProps/custom.flow.js +3 -0
  447. package/lib/systemProps/flexbox.flow.js +3 -0
  448. package/lib/systemProps/grid.flow.js +3 -0
  449. package/lib/systemProps/index.js +7 -1
  450. package/lib/systemProps/layout.flow.js +3 -0
  451. package/lib/systemProps/position.flow.js +3 -0
  452. package/lib/systemProps/shadow.flow.js +3 -0
  453. package/lib/systemProps/space.flow.js +16 -0
  454. package/lib/systemProps/typography.flow.js +3 -0
  455. package/lib/systemProps/variant.flow.js +3 -0
  456. package/lib/themes/dark/decorative-palettes.js +1 -1
  457. package/lib/themes/dark/theme.js +16 -3
  458. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +3 -3
  459. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +3 -3
  460. package/lib/themes/light/decorative-palettes.js +1 -1
  461. package/lib/themes/light/theme.js +16 -4
  462. package/lib/utils/a11yTest.js +13 -15
  463. package/lib/utils/dataQaLabelQueries.js +2 -2
  464. package/lib/utils/hooks.flow.js +2 -3
  465. package/lib/utils/hooks.js +5 -5
  466. package/lib/utils/index.js +1 -1
  467. package/lib/utils/react-testing-library.js +15 -13
  468. package/lib/utils/responsiveProps/index.js +2 -2
  469. package/lib/utils/use-measure.js +2 -2
  470. package/package.json +47 -42
  471. package/commonjs/Menu/utils/names.js +0 -8
  472. package/dist/types/Menu/utils/names.d.ts +0 -2
  473. package/dist/types/Menu/utils/names.d.ts.map +0 -1
  474. package/lib/Menu/utils/names.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAE5D,oBAAY,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAC7C,oBAAY,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,oBAAY,cAAc,GAAG,OAAO,UAAU,CAAC;AAC/C,oBAAY,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,oBAAY,cAAc,GAAG,oBAAoB,CAAC;AAClD,oBAAY,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,oBAAY,SAAS,GAAG,UAAU,CAAC;AACnC,oBAAY,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,oBAAY,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,oBAAY,eAAe,GAAG,OAAO,YAAY,CAAC;AAClD,oBAAY,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,oBAAY,UAAU,GAAG,OAAO,MAAM,CAAC;AACvC,oBAAY,YAAY,GAAG,OAAO,QAAQ,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;IAC3B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAGD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,MAAM,EAAE,SAAS,GAAG;QAClB,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;QACtB,WAAW,EAAE,OAAO,WAAW,CAAC;KACjC,CAAC;CACH"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,EACZ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC;AAC/C,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC;AACnC,MAAM,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,OAAO,CAAC;AACxC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,OAAO,QAAQ,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;IAC3B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAGD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,MAAM,EAAE,SAAS,GAAG;QAClB,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;QAC9B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,SAAS,EAAE,OAAO,SAAS,CAAC;QAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;QACtB,WAAW,EAAE,OAAO,WAAW,CAAC;KACjC,CAAC;CACH"}
@@ -1,6 +1,6 @@
1
1
  import { MatcherOptions } from '@testing-library/react';
2
- export declare type TypeQaValue = string | number | boolean;
3
- export declare type TypeQaObject = {
2
+ export type TypeQaValue = string | number | boolean;
3
+ export type TypeQaObject = {
4
4
  [K in string]: TypeQaValue;
5
5
  };
6
6
  export declare const dataQaLabelQueries: {
@@ -1 +1 @@
1
- {"version":3,"file":"dataQaLabelQueries.d.ts","sourceRoot":"","sources":["../../../src/utils/dataQaLabelQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,oBAAY,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,oBAAY,YAAY,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG,WAAW;CAC3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB;;uCA1BlB,WAAW,YACZ,YAAY,YACb,cAAc;;;;;CA+BxB,CAAC"}
1
+ {"version":3,"file":"dataQaLabelQueries.d.ts","sourceRoot":"","sources":["../../../src/utils/dataQaLabelQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG,WAAW;CAC3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB;;uCA1BlB,WAAW,YACZ,YAAY,YACb,cAAc;;;;;CA+BxB,CAAC"}
@@ -1,28 +1,28 @@
1
- export declare type textContentRef = ((node: Node) => void) & {
1
+ export type textContentRef = ((node: Node) => void) & {
2
2
  current?: string;
3
3
  };
4
4
  export declare function useTextContent(initial: string): textContentRef;
5
- declare type TypeMutationObserverInitRequired = {
5
+ type TypeMutationObserverInitRequired = {
6
6
  childList: true;
7
7
  } | {
8
8
  attributes: true;
9
9
  } | {
10
10
  characterData: true;
11
11
  };
12
- declare type TypeMutationObserverInit = {
12
+ type TypeMutationObserverInit = {
13
13
  subtree?: boolean;
14
14
  attributeOldValue?: boolean;
15
15
  characterDataOldValue?: boolean;
16
16
  attributeFilter?: Array<string>;
17
17
  } & TypeMutationObserverInitRequired;
18
- declare type TypeMutationObserverCallback = (mutationList?: MutationRecord[], observer?: MutationObserver) => any;
18
+ type TypeMutationObserverCallback = (mutationList?: MutationRecord[], observer?: MutationObserver) => any;
19
19
  export declare function useMutationObserver(targetNode: Node | null, config: TypeMutationObserverInit, callback?: TypeMutationObserverCallback): undefined;
20
20
  export declare function useMutationObserverOnce(targetNode: Node | null, config: TypeMutationObserverInit, callback: TypeMutationObserverCallback): undefined;
21
- declare type TypeSingleSelectProps<T extends string> = {
21
+ type TypeSingleSelectProps<T extends string> = {
22
22
  initialValue?: T | '';
23
23
  onChange?: (value: string | T) => any;
24
24
  };
25
- declare type TypeMultiSelectProps<T extends string> = {
25
+ type TypeMultiSelectProps<T extends string> = {
26
26
  initialValue?: T[];
27
27
  onChange?: (value: Array<string | T>) => any;
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks.ts"],"names":[],"mappings":"AAWA,oBAAY,cAAc,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,kBAW7C;AAED,aAAK,gCAAgC,GACjC;IACE,SAAS,EAAE,IAAI,CAAC;CACjB,GACD;IACE,UAAU,EAAE,IAAI,CAAC;CAClB,GACD;IACE,aAAa,EAAE,IAAI,CAAC;CACrB,CAAC;AAEN,aAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,GAAG,gCAAgC,CAAC;AAErC,aAAK,4BAA4B,GAAG,CAClC,YAAY,CAAC,EAAE,cAAc,EAAE,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,KAExB,GAAG,CAAC;AAKT,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,GAAE,4BAA8C,aA2BzD;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,4BAA4B,aASvC;AAED,aAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC7C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAEtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AAEF,aAAK,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC5C,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,SAAS;;yBAcP,MAAM;CAUpB,CAAC;AAyBF,eAAO,MAAM,cAAc;;yBAiBZ,MAAM;;CAsBpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAiC7D"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,kBAW7C;AAED,KAAK,gCAAgC,GACjC;IACE,SAAS,EAAE,IAAI,CAAC;CACjB,GACD;IACE,UAAU,EAAE,IAAI,CAAC;CAClB,GACD;IACE,aAAa,EAAE,IAAI,CAAC;CACrB,CAAC;AAEN,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC,GAAG,gCAAgC,CAAC;AAErC,KAAK,4BAA4B,GAAG,CAClC,YAAY,CAAC,EAAE,cAAc,EAAE,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,KAExB,GAAG,CAAC;AAKT,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,GAAE,4BAA8C,aA2BzD;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,IAAI,GAAG,IAAI,EACvB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,4BAA4B,aASvC;AAED,KAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC7C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAEtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AAEF,KAAK,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC5C,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,SAAS;;yBAcP,MAAM;CAUpB,CAAC;AAyBF,eAAO,MAAM,cAAc;;yBAiBZ,MAAM;;CAsBpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAiC7D"}
@@ -1,6 +1,6 @@
1
1
  import { ElementRef } from 'react';
2
2
  export declare const canUseDOM: () => boolean;
3
- declare type TypeRef = {
3
+ type TypeRef = {
4
4
  current: null | HTMLInputElement;
5
5
  } | ((arg0: ElementRef<any> | HTMLElement) => void);
6
6
  export declare const mergeRefs: (refs: (TypeRef | null)[]) => TypeRef | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS,eAMrB,CAAC;AAEF,aAAK,OAAO,GACR;IACE,OAAO,EAAE,IAAI,GAAG,gBAAgB,CAAC;CAClC,GAED,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,WAAW,KAAK,IAAI,CAAC,CAAC;AAIpD,eAAO,MAAM,SAAS,SAAU,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,mBAcjD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,EACrC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,EAAE,EAAE,CAAC,GACJ,EAAE,IAAI,CAAC,CAET;AAGD,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,IAAI,CAIrE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,OAAO,CAK3E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS,eAMrB,CAAC;AAEF,KAAK,OAAO,GACR;IACE,OAAO,EAAE,IAAI,GAAG,gBAAgB,CAAC;CAClC,GAED,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,WAAW,KAAK,IAAI,CAAC,CAAC;AAIpD,eAAO,MAAM,SAAS,SAAU,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,mBAcjD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,EACrC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,EAAE,EAAE,CAAC,GACJ,EAAE,IAAI,CAAC,CAET;AAGD,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,IAAI,CAIrE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,IAAI,OAAO,CAK3E"}
@@ -1,69 +1,6 @@
1
- import * as React from 'react';
2
- import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved, RenderOptions } from '@testing-library/react';
1
+ import { act, cleanup, createEvent, fireEvent, queries, waitFor, waitForElementToBeRemoved } from '@testing-library/react';
3
2
  import userEvent from '@testing-library/user-event';
4
- declare const customRender: (node: React.ReactElement, options?: RenderOptions<typeof queries, HTMLElement>) => {
5
- runA11yCheck: () => Promise<void>;
6
- container: HTMLElement;
7
- baseElement: HTMLElement;
8
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
9
- rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
10
- unmount: () => void;
11
- asFragment: () => DocumentFragment;
12
- queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
13
- queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
14
- getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
15
- getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
16
- findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
17
- findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
18
- getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
19
- getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
20
- queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
21
- queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
22
- findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
23
- findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
24
- getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
25
- getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
26
- queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
27
- queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
28
- findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
29
- findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
30
- getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
31
- getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
32
- queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
33
- queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
34
- findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
35
- findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
36
- getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
37
- getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
38
- queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
39
- queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
40
- findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
41
- findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
42
- getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
43
- getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
44
- queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
45
- queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
46
- findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
47
- findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
48
- getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
49
- getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
50
- queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
51
- queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
52
- findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
53
- findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
54
- getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement;
55
- getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
56
- queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null;
57
- queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[];
58
- findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
59
- findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
60
- getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
61
- getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
62
- queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
63
- queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
64
- findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
65
- findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
66
- };
3
+ declare const customRender: any;
67
4
  declare const customWithin: (element: HTMLElement) => {
68
5
  getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
69
6
  getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_1[];
@@ -169,63 +106,6 @@ declare const customWithin: (element: HTMLElement) => {
169
106
  findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
170
107
  findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
171
108
  };
172
- declare const customScreen: {
173
- getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
174
- getAllByLabelText: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
175
- queryByLabelText: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_2 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
176
- queryAllByLabelText: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
177
- findByLabelText: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
178
- findAllByLabelText: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_5[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
179
- getByPlaceholderText: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_6) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
180
- getAllByPlaceholderText: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
181
- queryByPlaceholderText: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_8 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
182
- queryAllByPlaceholderText: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
183
- findByPlaceholderText: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
184
- findAllByPlaceholderText: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_11[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
185
- getByText: (<T_12 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_12) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement);
186
- getAllByText: (<T_13 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_13[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
187
- queryByText: (<T_14 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_14 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null);
188
- queryAllByText: (<T_15 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => T_15[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[]);
189
- findByText: (<T_16 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_16>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
190
- findAllByText: (<T_17 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_17[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
191
- getByAltText: (<T_18 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_18) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
192
- getAllByAltText: (<T_19 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_19[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
193
- queryByAltText: (<T_20 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_20 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
194
- queryAllByAltText: (<T_21 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_21[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
195
- findByAltText: (<T_22 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_22>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
196
- findAllByAltText: (<T_23 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_23[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
197
- getByTitle: (<T_24 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_24) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
198
- getAllByTitle: (<T_25 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_25[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
199
- queryByTitle: (<T_26 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_26 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
200
- queryAllByTitle: (<T_27 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_27[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
201
- findByTitle: (<T_28 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_28>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
202
- findAllByTitle: (<T_29 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_29[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
203
- getByDisplayValue: (<T_30 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_30) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
204
- getAllByDisplayValue: (<T_31 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_31[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
205
- queryByDisplayValue: (<T_32 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_32 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
206
- queryAllByDisplayValue: (<T_33 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_33[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
207
- findByDisplayValue: (<T_34 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_34>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
208
- findAllByDisplayValue: (<T_35 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_35[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
209
- getByRole: (<T_36 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_36) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement);
210
- getAllByRole: (<T_37 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_37[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
211
- queryByRole: (<T_38 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_38 | null) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement | null);
212
- queryAllByRole: (<T_39 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => T_39[]) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined) => HTMLElement[]);
213
- findByRole: (<T_40 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_40>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
214
- findAllByRole: (<T_41 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_41[]>) & ((role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
215
- getByTestId: (<T_42 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_42) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement);
216
- getAllByTestId: (<T_43 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_43[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
217
- queryByTestId: (<T_44 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_44 | null) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null);
218
- queryAllByTestId: (<T_45 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => T_45[]) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[]);
219
- findByTestId: (<T_46 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_46>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>);
220
- findAllByTestId: (<T_47 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<T_47[]>) & ((id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>);
221
- queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
222
- queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
223
- getAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement[];
224
- getByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement;
225
- findAllByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
226
- findByDataQaLabel: (args_0: import("./dataQaLabelQueries").TypeQaObject, args_1?: undefined, args_2?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
227
- debug: (element?: Element | HTMLDocument | (Element | HTMLDocument)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
228
- logTestingPlaygroundURL: (element?: Element | HTMLDocument | undefined) => string;
229
- };
109
+ declare const customScreen: any;
230
110
  export { act, cleanup, createEvent, customRender as render, customWithin as within, fireEvent, customScreen as screen, userEvent, waitFor, waitForElementToBeRemoved, };
231
111
  //# sourceMappingURL=react-testing-library.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAEzB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAUpD,QAAA,MAAM,YAAY,SACV,MAAM,YAAY,YACd,cAAc,cAAc,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBrD,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAG9E,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAC;AAEF,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,OAAO,EACP,yBAAyB,GAC1B,CAAC"}
1
+ {"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AACA,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAG1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAWpD,QAAA,MAAM,YAAY,EAAE,GAkBnB,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAI9E,QAAA,MAAM,YAAY,EAAE,GAGnB,CAAC;AAEF,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,YAAY,IAAI,MAAM,EACtB,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,YAAY,IAAI,MAAM,EACtB,SAAS,EACT,OAAO,EACP,yBAAyB,GAC1B,CAAC"}
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
4
4
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
5
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
6
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
9
9
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -26,20 +26,24 @@ var AvatarText = styled(function (_ref) {
26
26
  }).withConfig({
27
27
  displayName: "Avatar__AvatarText",
28
28
  componentId: "sc-1ffu253-0"
29
- })(["font-size:", "px;color:", "px;"], function (props) {
29
+ })(["font-size:", "px;color:", ";"], function (props) {
30
30
  return props.fontSize;
31
- }, function (props) {
32
- return props.color;
31
+ }, function (_ref2) {
32
+ var theme = _ref2.theme,
33
+ type = _ref2.type,
34
+ color = _ref2.color;
35
+ return color ? color : theme.colors.text.decorative[type];
33
36
  });
34
37
  var Container = styled(Box).withConfig({
35
38
  displayName: "Avatar__Container",
36
39
  componentId: "sc-1ffu253-1"
37
- })(["", ""], function (_ref2) {
38
- var theme = _ref2.theme,
39
- type = _ref2.type,
40
- variant = _ref2.variant,
41
- bg = _ref2.bg;
42
- return css(["color:", ";background:", ";"], theme.colors[type][variant === 'dark' ? '200' : '900'], bg ? bg : theme.colors[type][variant === 'dark' ? '900' : '200']);
40
+ })(["", ""], function (_ref3) {
41
+ var theme = _ref3.theme,
42
+ type = _ref3.type,
43
+ bg = _ref3.bg,
44
+ $src = _ref3.$src,
45
+ borderColor = _ref3.borderColor;
46
+ return css(["background:", ";border:", ";border-color:", ";color:", ";"], bg ? bg : theme.colors.container.background.decorative[type], $src ? 'none' : "1px solid", borderColor ? borderColor : theme.colors.container.border.decorative[type], theme.colors.text.decorative[type]);
43
47
  });
44
48
  var getInitials = function getInitials(name) {
45
49
  var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '?';
@@ -50,21 +54,38 @@ var getInitials = function getInitials(name) {
50
54
  }) // Watch out for empty strings
51
55
  .join('');
52
56
  };
53
- export var Avatar = function Avatar(_ref3) {
54
- var _ref3$appearance = _ref3.appearance,
55
- appearance = _ref3$appearance === void 0 ? 'circle' : _ref3$appearance,
56
- _ref3$name = _ref3.name,
57
- name = _ref3$name === void 0 ? '' : _ref3$name,
58
- src = _ref3.src,
59
- _ref3$variant = _ref3.variant,
60
- variant = _ref3$variant === void 0 ? 'light' : _ref3$variant,
61
- _ref3$type = _ref3.type,
62
- type = _ref3$type === void 0 ? defaultType : _ref3$type,
63
- _ref3$size = _ref3.size,
64
- size = _ref3$size === void 0 ? '40px' : _ref3$size,
65
- bg = _ref3.bg,
66
- color = _ref3.color,
67
- rest = _objectWithoutProperties(_ref3, _excluded2);
57
+ export var getAvatarColor = function getAvatarColor(name, type) {
58
+ if (type !== 'auto') {
59
+ return type;
60
+ }
61
+ var colors = ['purple', 'green', 'blue', 'yellow', 'red', 'orange'];
62
+
63
+ // Condense the avatar name down into a number
64
+ var seed = name.split('').reduce(function (seed, char) {
65
+ return seed + char.charCodeAt(0);
66
+ }, 0);
67
+
68
+ // Use that seed modulo the number of available colors to generate
69
+ // a "random" color value which will always be consistent
70
+ // for a given string. As a failsafe, return neutral (this should never happen).
71
+ return colors[seed % colors.length] || 'neutral';
72
+ };
73
+ export var Avatar = function Avatar(_ref4) {
74
+ var _ref4$appearance = _ref4.appearance,
75
+ appearance = _ref4$appearance === void 0 ? 'circle' : _ref4$appearance,
76
+ _ref4$name = _ref4.name,
77
+ name = _ref4$name === void 0 ? '' : _ref4$name,
78
+ src = _ref4.src,
79
+ _ref4$variant = _ref4.variant,
80
+ variant = _ref4$variant === void 0 ? 'light' : _ref4$variant,
81
+ _ref4$type = _ref4.type,
82
+ type = _ref4$type === void 0 ? defaultType : _ref4$type,
83
+ _ref4$size = _ref4.size,
84
+ size = _ref4$size === void 0 ? '40px' : _ref4$size,
85
+ bg = _ref4.bg,
86
+ color = _ref4.color,
87
+ rest = _objectWithoutProperties(_ref4, _excluded2);
88
+ var colorType = getAvatarColor(name, type);
68
89
  var _useState = useState(false),
69
90
  _useState2 = _slicedToArray(_useState, 2),
70
91
  imageFailedLoading = _useState2[0],
@@ -91,12 +112,14 @@ export var Avatar = function Avatar(_ref3) {
91
112
  title: name,
92
113
  bg: bg,
93
114
  variant: variant,
94
- type: type,
95
- "data-qa-user-avatar": name
115
+ type: colorType,
116
+ "data-qa-user-avatar": name,
117
+ $src: src
96
118
  }, rest), !src || imageFailedLoading ? /*#__PURE__*/React.createElement(AvatarText, {
97
119
  lineHeight: size,
98
120
  fontWeight: "semibold",
99
121
  fontSize: fontSize,
122
+ type: colorType,
100
123
  color: color
101
124
  }, initials) : /*#__PURE__*/React.createElement(Image, {
102
125
  alt: name,
@@ -0,0 +1,10 @@
1
+ export var AvatarColorOptions = Object.freeze({
2
+ auto: 'auto',
3
+ neutral: 'neutral',
4
+ purple: 'purple',
5
+ green: 'green',
6
+ blue: 'blue',
7
+ yellow: 'yellow',
8
+ red: 'red',
9
+ orange: 'orange'
10
+ });
@@ -0,0 +1,10 @@
1
+ export var AvatarColorOptions = {
2
+ auto: 'auto',
3
+ neutral: 'neutral',
4
+ purple: 'purple',
5
+ green: 'green',
6
+ blue: 'blue',
7
+ yellow: 'yellow',
8
+ red: 'red',
9
+ orange: 'orange'
10
+ };
@@ -1 +1,2 @@
1
- export * from "./Avatar.flow";
1
+ export * from "./Avatar.flow";
2
+ export { AvatarColorOptions } from "./constants.flow";
@@ -1,4 +1,5 @@
1
1
  import Avatar from "./Avatar";
2
2
  export default Avatar;
3
3
  export { Avatar };
4
- export * from "./AvatarTypes";
4
+ export * from "./AvatarTypes";
5
+ export { AvatarColorOptions } from "./constants";
@@ -1,11 +1,11 @@
1
1
  var _excluded = ["children", "href"],
2
2
  _excluded2 = ["ariaLabel", "overflow", "children"];
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
9
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
10
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
package/lib/Card/Card.js CHANGED
@@ -3,8 +3,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
package/lib/Card/utils.js CHANGED
@@ -26,7 +26,7 @@ export var navigateTo = function navigateTo(_ref) {
26
26
  return;
27
27
  }
28
28
  }
29
- (_window$open = window.open(href, '_blank')) === null || _window$open === void 0 ? void 0 : _window$open.focus();
29
+ (_window$open = window.open(href, '_blank')) === null || _window$open === void 0 || _window$open.focus();
30
30
  };
31
31
  export var onKeyDown = function onKeyDown(_ref2) {
32
32
  var e = _ref2.e,
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["size"];
2
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["id", "value", "name", "label", "labelProps", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
2
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["children"],
3
3
  _excluded2 = ["children"];
4
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
8
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
9
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -12,8 +12,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
12
12
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
13
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
14
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
16
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
15
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
  import * as React from 'react';
19
19
  import { useState, useRef, useContext, useEffect } from 'react';