@sproutsocial/racine 20.0.0 → 20.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. package/CHANGELOG.md +22 -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 +3 -3
  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 +3 -3
  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/SpotIllustration/SpotIllustration.flow.js +1 -1
  120. package/commonjs/SpotIllustration/SpotIllustration.js +2 -2
  121. package/commonjs/Stack/Stack.flow.js +1 -1
  122. package/commonjs/Stack/Stack.js +1 -1
  123. package/commonjs/StatefulStory.js +8 -2
  124. package/commonjs/Switch/Switch.flow.js +1 -1
  125. package/commonjs/Switch/Switch.js +1 -1
  126. package/commonjs/Switch/styles.js +1 -1
  127. package/commonjs/Table/Table.flow.js +1 -1
  128. package/commonjs/Table/Table.js +1 -1
  129. package/commonjs/TableCell/TableCell.flow.js +1 -1
  130. package/commonjs/TableCell/TableCell.js +1 -1
  131. package/commonjs/TableHeaderCell/TableHeaderCell.flow.js +1 -1
  132. package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
  133. package/commonjs/TableHeaderCell/styles.js +1 -1
  134. package/commonjs/TableRowAccordion/TableRowAccordion.flow.js +1 -1
  135. package/commonjs/TableRowAccordion/TableRowAccordion.js +1 -1
  136. package/commonjs/TableRowAccordion/styles.js +1 -1
  137. package/commonjs/Tabs/Tabs.flow.js +1 -1
  138. package/commonjs/Tabs/Tabs.js +4 -4
  139. package/commonjs/Tabs/styles.js +1 -1
  140. package/commonjs/Text/Text.flow.js +1 -1
  141. package/commonjs/Text/Text.js +1 -1
  142. package/commonjs/Text/styles.js +1 -1
  143. package/commonjs/Textarea/Textarea.flow.js +1 -1
  144. package/commonjs/Textarea/Textarea.js +5 -2
  145. package/commonjs/Textarea/styles.js +1 -1
  146. package/commonjs/ThemeProvider/index.flow.js +1 -1
  147. package/commonjs/ThemeProvider/index.js +3 -1
  148. package/commonjs/Toast/Toast.flow.js +1 -1
  149. package/commonjs/Toast/Toast.js +1 -1
  150. package/commonjs/Toast/index.js +1 -1
  151. package/commonjs/Toast/styles.js +1 -2
  152. package/commonjs/ToggleHint/ToggleHint.flow.js +1 -1
  153. package/commonjs/ToggleHint/ToggleHint.js +1 -1
  154. package/commonjs/ToggleHint/styles.js +1 -1
  155. package/commonjs/Token/Token.flow.js +1 -1
  156. package/commonjs/Token/Token.js +1 -1
  157. package/commonjs/Token/index.js +1 -1
  158. package/commonjs/Token/styles.js +1 -1
  159. package/commonjs/TokenInput/TokenInput.flow.js +1 -1
  160. package/commonjs/TokenInput/TokenInput.js +4 -4
  161. package/commonjs/TokenInput/TokenScreenReaderStatus.js +4 -4
  162. package/commonjs/TokenInput/styles.js +1 -1
  163. package/commonjs/Tooltip/Tooltip.flow.js +1 -1
  164. package/commonjs/Tooltip/Tooltip.js +114 -44
  165. package/commonjs/VisuallyHidden/VisuallyHidden.flow.js +1 -1
  166. package/commonjs/index.flow.js +1 -1
  167. package/commonjs/systemProps/background.flow.js +1 -0
  168. package/commonjs/systemProps/border.flow.js +1 -0
  169. package/commonjs/systemProps/color.flow.js +1 -0
  170. package/commonjs/systemProps/custom.flow.js +1 -0
  171. package/commonjs/systemProps/flexbox.flow.js +1 -0
  172. package/commonjs/systemProps/grid.flow.js +1 -0
  173. package/commonjs/systemProps/index.js +2 -0
  174. package/commonjs/systemProps/layout.flow.js +1 -0
  175. package/commonjs/systemProps/position.flow.js +1 -0
  176. package/commonjs/systemProps/shadow.flow.js +1 -0
  177. package/commonjs/systemProps/space.flow.js +16 -1
  178. package/commonjs/systemProps/typography.flow.js +1 -0
  179. package/commonjs/systemProps/variant.flow.js +1 -0
  180. package/commonjs/themes/dark/theme.js +19 -4
  181. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +5 -4
  182. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +5 -4
  183. package/commonjs/themes/light/theme.js +19 -4
  184. package/commonjs/types/shared.flow.js +1 -1
  185. package/commonjs/types/styled-components.flow.js +1 -1
  186. package/commonjs/utils/a11yTest.js +14 -16
  187. package/commonjs/utils/dataQaLabelQueries.js +2 -2
  188. package/commonjs/utils/hooks.flow.js +4 -2
  189. package/commonjs/utils/hooks.js +5 -5
  190. package/commonjs/utils/index.js +1 -1
  191. package/commonjs/utils/innerText.flow.js +1 -1
  192. package/commonjs/utils/react-testing-library.flow.js +1 -1
  193. package/commonjs/utils/react-testing-library.js +15 -13
  194. package/commonjs/utils/responsiveProps/index.js +2 -2
  195. package/commonjs/utils/system-props/system-props.js +1 -1
  196. package/commonjs/utils/use-measure.js +2 -2
  197. package/dist/themes/dark/theme.scss +13 -0
  198. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +13 -0
  199. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +13 -0
  200. package/dist/themes/light/theme.scss +13 -0
  201. package/dist/types/Avatar/Avatar.d.ts +4 -3
  202. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  203. package/dist/types/Avatar/AvatarTypes.d.ts +5 -2
  204. package/dist/types/Avatar/AvatarTypes.d.ts.map +1 -1
  205. package/dist/types/Avatar/constants.d.ts +11 -0
  206. package/dist/types/Avatar/constants.d.ts.map +1 -0
  207. package/dist/types/Avatar/index.d.ts +1 -0
  208. package/dist/types/Avatar/index.d.ts.map +1 -1
  209. package/dist/types/Badge/Badge.d.ts +2 -2
  210. package/dist/types/Badge/Badge.d.ts.map +1 -1
  211. package/dist/types/Badge/BadgeTypes.d.ts +1 -1
  212. package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
  213. package/dist/types/Banner/Banner.d.ts +2 -2
  214. package/dist/types/Banner/Banner.d.ts.map +1 -1
  215. package/dist/types/Banner/BannerTypes.d.ts +1 -1
  216. package/dist/types/Banner/BannerTypes.d.ts.map +1 -1
  217. package/dist/types/Banner/styles.d.ts +3 -3
  218. package/dist/types/Banner/styles.d.ts.map +1 -1
  219. package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -3
  220. package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  221. package/dist/types/Button/Button.d.ts +2 -2
  222. package/dist/types/Button/Button.d.ts.map +1 -1
  223. package/dist/types/Button/ButtonTypes.d.ts +1 -1
  224. package/dist/types/Button/ButtonTypes.d.ts.map +1 -1
  225. package/dist/types/Card/Card.d.ts +2 -2
  226. package/dist/types/Card/Card.d.ts.map +1 -1
  227. package/dist/types/Card/CardTypes.d.ts +5 -5
  228. package/dist/types/Card/CardTypes.d.ts.map +1 -1
  229. package/dist/types/Card/styles.d.ts +4 -4
  230. package/dist/types/Card/subComponents.d.ts +6 -6
  231. package/dist/types/Card/subComponents.d.ts.map +1 -1
  232. package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
  233. package/dist/types/ChartLegend/ChartLegend.d.ts +2 -2
  234. package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
  235. package/dist/types/ChartLegend/ChartLegendTypes.d.ts +1 -1
  236. package/dist/types/ChartLegend/ChartLegendTypes.d.ts.map +1 -1
  237. package/dist/types/ChartLegend/useChartLabels.d.ts +2 -2
  238. package/dist/types/ChartLegend/useChartLabels.d.ts.map +1 -1
  239. package/dist/types/Checkbox/Checkbox.d.ts +1 -1
  240. package/dist/types/Checkbox/styles.d.ts +3 -3
  241. package/dist/types/Collapsible/Collapsible.d.ts +4 -4
  242. package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
  243. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -2
  244. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  245. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +1 -1
  246. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
  247. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -2
  248. package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
  249. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -2
  250. package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
  251. package/dist/types/DatePicker/common.d.ts +3 -3
  252. package/dist/types/DatePicker/common.d.ts.map +1 -1
  253. package/dist/types/Drawer/Drawer.d.ts +2 -2
  254. package/dist/types/Drawer/SlideTransition.d.ts +2 -2
  255. package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
  256. package/dist/types/EmptyState/EmptyState.d.ts +2 -2
  257. package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
  258. package/dist/types/EnumIllustrationNames.d.ts +1 -1
  259. package/dist/types/EnumIllustrationNames.d.ts.map +1 -1
  260. package/dist/types/EnumLogoNames.d.ts +1 -1
  261. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  262. package/dist/types/Fieldset/Fieldset.d.ts +4 -4
  263. package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
  264. package/dist/types/FormField/FormField.d.ts +2 -2
  265. package/dist/types/FormField/FormField.d.ts.map +1 -1
  266. package/dist/types/Icon/Icon.d.ts +3 -3
  267. package/dist/types/Icon/Icon.d.ts.map +1 -1
  268. package/dist/types/Icon/IconTypes.d.ts +2 -2
  269. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  270. package/dist/types/Image/Image.d.ts +2 -2
  271. package/dist/types/Image/Image.d.ts.map +1 -1
  272. package/dist/types/Indicator/Indicator.d.ts +1 -1
  273. package/dist/types/Input/Input.d.ts +2 -2
  274. package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
  275. package/dist/types/Label/Label.d.ts +1 -1
  276. package/dist/types/Link/Link.d.ts +2 -2
  277. package/dist/types/Link/Link.d.ts.map +1 -1
  278. package/dist/types/Link/styles.d.ts +1 -1
  279. package/dist/types/Listbox/Listbox.d.ts +11 -11
  280. package/dist/types/Listbox/Listbox.d.ts.map +1 -1
  281. package/dist/types/Loader/Loader.d.ts +1 -1
  282. package/dist/types/LoaderButton/LoaderButton.d.ts +2 -2
  283. package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
  284. package/dist/types/Menu/Menu.d.ts +14 -14
  285. package/dist/types/Menu/Menu.d.ts.map +1 -1
  286. package/dist/types/Menu/MenuTypes.d.ts +4 -2
  287. package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
  288. package/dist/types/Menu/utils/descendants.d.ts +3 -3
  289. package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
  290. package/dist/types/Menu/utils/hooks.d.ts +1 -1
  291. package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
  292. package/dist/types/Menu/utils/index.d.ts +0 -1
  293. package/dist/types/Menu/utils/index.d.ts.map +1 -1
  294. package/dist/types/Message/Message.d.ts +8 -8
  295. package/dist/types/Message/MessageTypes.d.ts +2 -2
  296. package/dist/types/Message/MessageTypes.d.ts.map +1 -1
  297. package/dist/types/Modal/Modal.d.ts +4 -4
  298. package/dist/types/Modal/styles.d.ts +1 -1
  299. package/dist/types/Modal/styles.d.ts.map +1 -1
  300. package/dist/types/Numeral/Numeral.d.ts +2 -2
  301. package/dist/types/Numeral/Numeral.d.ts.map +1 -1
  302. package/dist/types/Numeral/NumeralTypes.d.ts +1 -1
  303. package/dist/types/Numeral/NumeralTypes.d.ts.map +1 -1
  304. package/dist/types/Numeral/styles.d.ts +2 -2
  305. package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -2
  306. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  307. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +3 -3
  308. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  309. package/dist/types/Popout/Popout.d.ts +3 -3
  310. package/dist/types/Popout/Popout.d.ts.map +1 -1
  311. package/dist/types/Popout/PopoutTypes.d.ts +5 -1
  312. package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
  313. package/dist/types/Radio/Radio.d.ts +1 -1
  314. package/dist/types/Radio/styles.d.ts +1 -1
  315. package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -3
  316. package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  317. package/dist/types/SegmentedControl/styles.d.ts +1 -1
  318. package/dist/types/Select/Select.d.ts +1 -1
  319. package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -2
  320. package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
  321. package/dist/types/Stack/Stack.d.ts +2 -2
  322. package/dist/types/Stack/Stack.d.ts.map +1 -1
  323. package/dist/types/Stack/StackTypes.d.ts +3 -3
  324. package/dist/types/Stack/StackTypes.d.ts.map +1 -1
  325. package/dist/types/Switch/Switch.d.ts +2 -2
  326. package/dist/types/Switch/Switch.d.ts.map +1 -1
  327. package/dist/types/Table/Table.d.ts +8 -8
  328. package/dist/types/Table/Table.d.ts.map +1 -1
  329. package/dist/types/TableCell/TableCell.d.ts +1 -1
  330. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
  331. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
  332. package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts +1 -1
  333. package/dist/types/TableHeaderCell/TableHeaderCellTypes.d.ts.map +1 -1
  334. package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
  335. package/dist/types/Tabs/Tabs.d.ts +2 -2
  336. package/dist/types/Tabs/Tabs.d.ts.map +1 -1
  337. package/dist/types/Tabs/styles.d.ts +2 -2
  338. package/dist/types/Tabs/styles.d.ts.map +1 -1
  339. package/dist/types/Text/Text.d.ts +2 -2
  340. package/dist/types/Text/Text.d.ts.map +1 -1
  341. package/dist/types/Textarea/Textarea.d.ts +2 -2
  342. package/dist/types/Textarea/Textarea.d.ts.map +1 -1
  343. package/dist/types/Textarea/TextareaTypes.d.ts +1 -1
  344. package/dist/types/Textarea/TextareaTypes.d.ts.map +1 -1
  345. package/dist/types/ThemeProvider/index.d.ts +3 -3
  346. package/dist/types/ThemeProvider/index.d.ts.map +1 -1
  347. package/dist/types/Toast/Toast.d.ts +2 -2
  348. package/dist/types/Toast/Toast.d.ts.map +1 -1
  349. package/dist/types/Toast/ToastTypes.d.ts +1 -1
  350. package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
  351. package/dist/types/Toast/styles.d.ts +2 -2
  352. package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
  353. package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
  354. package/dist/types/Token/Token.d.ts +2 -2
  355. package/dist/types/Token/Token.d.ts.map +1 -1
  356. package/dist/types/TokenInput/TokenInput.d.ts +2 -2
  357. package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
  358. package/dist/types/Tooltip/Tooltip.d.ts +2 -2
  359. package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
  360. package/dist/types/Tooltip/TooltipTypes.d.ts +2 -0
  361. package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
  362. package/dist/types/themes/dark/theme.d.ts +13 -0
  363. package/dist/types/themes/dark/theme.d.ts.map +1 -1
  364. package/dist/types/themes/light/theme.d.ts +14 -1
  365. package/dist/types/themes/light/theme.d.ts.map +1 -1
  366. package/dist/types/types/shared.d.ts +3 -3
  367. package/dist/types/types/shared.d.ts.map +1 -1
  368. package/dist/types/types/system-props.d.ts +3 -3
  369. package/dist/types/types/system-props.d.ts.map +1 -1
  370. package/dist/types/types/theme.colors.d.ts +28 -15
  371. package/dist/types/types/theme.colors.d.ts.map +1 -1
  372. package/dist/types/types/theme.d.ts +13 -13
  373. package/dist/types/types/theme.d.ts.map +1 -1
  374. package/dist/types/utils/dataQaLabelQueries.d.ts +2 -2
  375. package/dist/types/utils/dataQaLabelQueries.d.ts.map +1 -1
  376. package/dist/types/utils/hooks.d.ts +6 -6
  377. package/dist/types/utils/hooks.d.ts.map +1 -1
  378. package/dist/types/utils/index.d.ts +1 -1
  379. package/dist/types/utils/index.d.ts.map +1 -1
  380. package/dist/types/utils/react-testing-library.d.ts +3 -123
  381. package/dist/types/utils/react-testing-library.d.ts.map +1 -1
  382. package/lib/Avatar/Avatar.js +51 -28
  383. package/lib/Avatar/constants.flow.js +10 -0
  384. package/lib/Avatar/constants.js +10 -0
  385. package/lib/Avatar/index.flow.js +2 -1
  386. package/lib/Avatar/index.js +2 -1
  387. package/lib/Breadcrumb/Breadcrumb.js +3 -3
  388. package/lib/Card/Card.js +2 -2
  389. package/lib/Card/utils.js +1 -1
  390. package/lib/CharacterCounter/CharacterCounter.js +1 -1
  391. package/lib/Checkbox/Checkbox.js +1 -1
  392. package/lib/Collapsible/Collapsible.js +5 -5
  393. package/lib/DatePicker/DateRangePicker/DateRangePicker.js +2 -2
  394. package/lib/DatePicker/DateRangePicker/StatefulDateRangePicker.js +2 -2
  395. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +2 -2
  396. package/lib/DatePicker/SingleDatePicker/StatefulSingleDatePicker.js +2 -2
  397. package/lib/Drawer/Drawer.js +3 -3
  398. package/lib/FormField/FormField.js +2 -2
  399. package/lib/Icon/Icon.flow.js +3 -1
  400. package/lib/Icon/Icon.js +3 -3
  401. package/lib/Image/Image.js +1 -1
  402. package/lib/Indicator/Indicator.js +1 -1
  403. package/lib/Input/Input.js +9 -4
  404. package/lib/KeyboardKey/KeyboardKey.js +1 -1
  405. package/lib/Label/Label.js +1 -1
  406. package/lib/Listbox/Listbox.js +3 -3
  407. package/lib/Loader/Loader.js +1 -1
  408. package/lib/LoaderButton/LoaderButton.js +3 -4
  409. package/lib/Menu/Menu.js +51 -30
  410. package/lib/Menu/utils/descendants.js +5 -5
  411. package/lib/Menu/utils/hooks.js +8 -2
  412. package/lib/Menu/utils/index.js +1 -2
  413. package/lib/Numeral/Numeral.js +2 -2
  414. package/lib/PartnerLogo/PartnerLogo.flow.js +5 -1
  415. package/lib/Popout/Popout.flow.js +3 -1
  416. package/lib/Popout/Popout.js +15 -10
  417. package/lib/Portal/Portal.js +1 -1
  418. package/lib/Radio/Radio.js +1 -1
  419. package/lib/SegmentedControl/SegmentedControl.js +2 -2
  420. package/lib/Select/Select.js +1 -1
  421. package/lib/StatefulStory.js +2 -2
  422. package/lib/TableCell/TableCell.flow.js +5 -1
  423. package/lib/TableCell/TableCell.js +1 -1
  424. package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
  425. package/lib/TableRowAccordion/TableRowAccordion.js +1 -1
  426. package/lib/Tabs/Tabs.js +4 -4
  427. package/lib/Textarea/Textarea.js +5 -1
  428. package/lib/ThemeProvider/index.flow.js +3 -1
  429. package/lib/ThemeProvider/index.js +3 -0
  430. package/lib/ToggleHint/ToggleHint.js +1 -1
  431. package/lib/TokenInput/TokenInput.js +4 -4
  432. package/lib/TokenInput/TokenScreenReaderStatus.js +2 -2
  433. package/lib/Tooltip/Tooltip.js +114 -44
  434. package/lib/systemProps/background.flow.js +3 -0
  435. package/lib/systemProps/border.flow.js +3 -0
  436. package/lib/systemProps/color.flow.js +3 -0
  437. package/lib/systemProps/custom.flow.js +3 -0
  438. package/lib/systemProps/flexbox.flow.js +3 -0
  439. package/lib/systemProps/grid.flow.js +3 -0
  440. package/lib/systemProps/index.js +7 -1
  441. package/lib/systemProps/layout.flow.js +3 -0
  442. package/lib/systemProps/position.flow.js +3 -0
  443. package/lib/systemProps/shadow.flow.js +3 -0
  444. package/lib/systemProps/space.flow.js +16 -0
  445. package/lib/systemProps/typography.flow.js +3 -0
  446. package/lib/systemProps/variant.flow.js +3 -0
  447. package/lib/themes/dark/theme.js +16 -3
  448. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +3 -3
  449. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +3 -3
  450. package/lib/themes/light/theme.js +16 -4
  451. package/lib/utils/a11yTest.js +13 -15
  452. package/lib/utils/dataQaLabelQueries.js +2 -2
  453. package/lib/utils/hooks.flow.js +2 -3
  454. package/lib/utils/hooks.js +5 -5
  455. package/lib/utils/index.js +1 -1
  456. package/lib/utils/react-testing-library.js +15 -13
  457. package/lib/utils/responsiveProps/index.js +2 -2
  458. package/lib/utils/use-measure.js +2 -2
  459. package/package.json +47 -42
  460. package/commonjs/Menu/utils/names.js +0 -8
  461. package/dist/types/Menu/utils/names.d.ts +0 -2
  462. package/dist/types/Menu/utils/names.d.ts.map +0 -1
  463. package/lib/Menu/utils/names.js +0 -1
@@ -17,12 +17,12 @@ var _excluded = ["name", "size", "fixedWidth", "ariaLabel", "color", "svgProps"]
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
19
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
- 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); }
20
+ 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); }
21
21
  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); }
22
22
  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; }
23
23
  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; }
24
- 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; }
25
- 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; }
24
+ 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; }
25
+ 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; }
26
26
  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; }
27
27
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
28
28
  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); }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -10,7 +10,7 @@ var _excluded = ["alt", "title", "onClick", "onError", "onLoad", "src", "qa"];
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- 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); }
13
+ 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); }
14
14
  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); }
15
15
  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; }
16
16
  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,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -11,7 +11,7 @@ var _excluded = ["tooltip"];
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- 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); }
14
+ 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); }
15
15
  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); }
16
16
  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; }
17
17
  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,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -15,7 +15,7 @@ var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
- 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); }
18
+ 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); }
19
19
  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); }
20
20
  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; }
21
21
  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; }
@@ -32,6 +32,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
32
32
  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; }
33
33
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
34
34
  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); }
35
+ // Using Context so that Input's Input.ClearButton-specific props can be passed to Input.ClearButton,
36
+ // regardless of whether it is manually included as elemAfter or automatically included for type="search" Inputs.
35
37
  var InputContext = /*#__PURE__*/React.createContext({});
36
38
  var StyledButton = (0, _styledComponents.default)(_Button.default).withConfig({
37
39
  displayName: "Input__StyledButton",
@@ -93,6 +95,8 @@ var Input = /*#__PURE__*/function (_React$Component) {
93
95
  var _this;
94
96
  _classCallCheck(this, Input);
95
97
  _this = _super.call(this, props);
98
+ // Define our own ref for use in handleClear.
99
+ // We use mergeRefs to pass both this.inputRef and this.props.innerRef to input.
96
100
  _defineProperty(_assertThisInitialized(_this), "inputRef", /*#__PURE__*/React.createRef());
97
101
  _defineProperty(_assertThisInitialized(_this), "handleBlur", function (e) {
98
102
  var _this$props$onBlur, _this$props;
@@ -104,7 +108,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
104
108
  var _Object$getOwnPropert, _this$props$onClear, _this$props2;
105
109
  // Clear the value via the input prototype, then dispatch an input event in order to trigger handleChange
106
110
  var nativeInputValueSetter = (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.set;
107
- nativeInputValueSetter === null || nativeInputValueSetter === void 0 ? void 0 : nativeInputValueSetter.call(input, '');
111
+ nativeInputValueSetter === null || nativeInputValueSetter === void 0 || nativeInputValueSetter.call(input, '');
108
112
  var inputEvent = new Event('input', {
109
113
  bubbles: true
110
114
  });
@@ -113,12 +117,12 @@ var Input = /*#__PURE__*/function (_React$Component) {
113
117
  // Focus the input, update hasValue, and call any onClear callback
114
118
  input.focus();
115
119
  _this.updateState('');
116
- (_this$props$onClear = (_this$props2 = _this.props).onClear) === null || _this$props$onClear === void 0 ? void 0 : _this$props$onClear.call(_this$props2, e);
120
+ (_this$props$onClear = (_this$props2 = _this.props).onClear) === null || _this$props$onClear === void 0 || _this$props$onClear.call(_this$props2, e);
117
121
  }
118
122
  });
119
123
  _defineProperty(_assertThisInitialized(_this), "handleChange", function (e) {
120
124
  var _this$props$onChange, _this$props3;
121
- (_this$props$onChange = (_this$props3 = _this.props).onChange) === null || _this$props$onChange === void 0 ? void 0 : _this$props$onChange.call(_this$props3, e, e.currentTarget.value);
125
+ (_this$props$onChange = (_this$props3 = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props3, e, e.currentTarget.value);
122
126
  _this.updateState(e.currentTarget.value);
123
127
  });
124
128
  _defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  var _index = _interopRequireDefault(require("../Text/index.flow"));
6
6
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  var _index = _interopRequireDefault(require("../Button/index.flow"));
6
6
  var _index2 = _interopRequireDefault(require("../Popout/index.flow"));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -16,8 +16,8 @@ var _excluded = ["role", "children"],
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- 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; }
20
- 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; }
19
+ 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; }
20
+ 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; }
21
21
  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; }
22
22
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
23
  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); }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -9,7 +9,7 @@ var _styles = _interopRequireWildcard(require("./styles"));
9
9
  var _excluded = ["text", "size", "delay", "color", "qa"];
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- 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); }
12
+ 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); }
13
13
  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); }
14
14
  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; }
15
15
  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,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
6
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.LoaderButton = void 0;
8
8
  var React = _interopRequireWildcard(require("react"));
9
- var _polished = require("polished");
10
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
11
10
  var _Box = _interopRequireDefault(require("../Box"));
12
11
  var _Button = _interopRequireDefault(require("../Button"));
@@ -22,15 +21,15 @@ var StyledLoaderButton = (0, _styledComponents.default)(_Button.default).withCon
22
21
  displayName: "LoaderButton__StyledLoaderButton",
23
22
  componentId: "sc-taipe0-0"
24
23
  })(["background-color:", ";", ""], function (_ref) {
25
- var _theme$colors$button, _theme$colors$button$;
24
+ var _theme$colors$button;
26
25
  var theme = _ref.theme,
27
26
  appearance = _ref.appearance,
28
27
  disabled = _ref.disabled;
29
- var buttonBackgroundColor = (_theme$colors$button = theme.colors.button[appearance]) === null || _theme$colors$button === void 0 ? void 0 : (_theme$colors$button$ = _theme$colors$button.background) === null || _theme$colors$button$ === void 0 ? void 0 : _theme$colors$button$.base;
28
+ var buttonBackgroundColor = (_theme$colors$button = theme.colors.button[appearance]) === null || _theme$colors$button === void 0 || (_theme$colors$button = _theme$colors$button.background) === null || _theme$colors$button === void 0 ? void 0 : _theme$colors$button.base;
30
29
  var isBackgroundColorTransparent = buttonBackgroundColor === 'transparent';
31
30
 
32
31
  // If the button is disabled we want to check what the buttonBackgroundColor is, if it is transparent we want to return transparent, otherwise we want to return the buttonBackgroundColor with an opacity of 0.4. If the button is not disabled we want to return the buttonBackgroundColor.
33
- return disabled ? isBackgroundColorTransparent ? 'transparent' : (0, _polished.rgba)(buttonBackgroundColor, 0.4) : buttonBackgroundColor;
32
+ return disabled ? isBackgroundColorTransparent ? 'transparent' : "".concat(buttonBackgroundColor, "66") : buttonBackgroundColor;
34
33
  }, function (_ref2) {
35
34
  var disabled = _ref2.disabled;
36
35
  return disabled && 'opacity: 1;';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
5
  var _index = _interopRequireDefault(require("../Box/index.flow"));
6
6
  var _index2 = _interopRequireDefault(require("../Button/index.flow"));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -24,13 +24,13 @@ var _styles = require("./styles");
24
24
  var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"],
25
25
  _excluded2 = ["children", "title", "titleAs", "disabled"],
26
26
  _excluded3 = ["children", "role", "multiselect", "innerRef"],
27
- _excluded4 = ["role", "children", "onChange", "value", "multiselect", "innerRef"],
27
+ _excluded4 = ["role", "children", "onChange", "value", "multiselect", "innerRef", "footerContent"],
28
28
  _excluded5 = ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"];
29
29
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
30
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
- 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; }
33
- 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; }
32
+ 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; }
33
+ 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; }
34
34
  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; }
35
35
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
36
36
  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); }
@@ -38,8 +38,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
38
38
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
39
  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."); }
40
40
  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); }
41
- 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; }
42
- 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; } }
41
+ 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; }
42
+ 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; } }
43
43
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
44
44
  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; }
45
45
  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; }
@@ -149,7 +149,7 @@ var MenuItem = function MenuItem(_ref) {
149
149
  }, [selectionIndex, filteredItems]);
150
150
  var handleClick = (0, React.useCallback)(function (e) {
151
151
  var _menuRef$current;
152
- (_menuRef$current = menuRef.current) === null || _menuRef$current === void 0 ? void 0 : _menuRef$current.focus();
152
+ (_menuRef$current = menuRef.current) === null || _menuRef$current === void 0 || _menuRef$current.focus();
153
153
  if (onChange && itemRole !== _utils.MENU_ITEM_ROLES.LISTITEM) {
154
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
155
  onChange(valueProp || label);
@@ -358,15 +358,35 @@ var MenuItems = function MenuItems(_ref7) {
358
358
  overflow: "hidden"
359
359
  }), children);
360
360
  };
361
- var Menu = function Menu(_ref8) {
362
- var _ref8$role = _ref8.role,
363
- role = _ref8$role === void 0 ? _utils.MENU_ROLES.MENU : _ref8$role,
364
- children = _ref8.children,
365
- onChange = _ref8.onChange,
366
- value = _ref8.value,
367
- multiselect = _ref8.multiselect,
368
- innerRef = _ref8.innerRef,
369
- props = _objectWithoutProperties(_ref8, _excluded4);
361
+ var MenuFooter = function MenuFooter(_ref8) {
362
+ var children = _ref8.children;
363
+ var _useContext4 = (0, React.useContext)(_utils.MenuContext),
364
+ setState = _useContext4.setState;
365
+ var handleOnBlur = (0, React.useCallback)(function () {
366
+ setState({
367
+ isFooterFocused: false
368
+ });
369
+ }, [setState]);
370
+ var handleOnFocus = (0, React.useCallback)(function () {
371
+ setState({
372
+ isFooterFocused: true
373
+ });
374
+ }, [setState]);
375
+ return /*#__PURE__*/React.createElement(_Box.default, {
376
+ onBlur: handleOnBlur,
377
+ onFocus: handleOnFocus
378
+ }, children);
379
+ };
380
+ var Menu = function Menu(_ref9) {
381
+ var _ref9$role = _ref9.role,
382
+ role = _ref9$role === void 0 ? _utils.MENU_ROLES.MENU : _ref9$role,
383
+ children = _ref9.children,
384
+ onChange = _ref9.onChange,
385
+ value = _ref9.value,
386
+ multiselect = _ref9.multiselect,
387
+ innerRef = _ref9.innerRef,
388
+ footerContent = _ref9.footerContent,
389
+ props = _objectWithoutProperties(_ref9, _excluded4);
370
390
  var _useDescendants = (0, _utils.useDescendants)(),
371
391
  _useDescendants2 = _slicedToArray(_useDescendants, 2),
372
392
  descendants = _useDescendants2[0],
@@ -375,7 +395,8 @@ var Menu = function Menu(_ref8) {
375
395
  selectionIndex: 0,
376
396
  filterQuery: '',
377
397
  filteredItems: null,
378
- isFilterInputFocused: false
398
+ isFilterInputFocused: false,
399
+ isFooterFocused: false
379
400
  }),
380
401
  _useState4 = _slicedToArray(_useState3, 2),
381
402
  state = _useState4[0],
@@ -406,7 +427,7 @@ var Menu = function Menu(_ref8) {
406
427
  role: role,
407
428
  multiselect: multiselect,
408
429
  innerRef: menuRef
409
- }), children)));
430
+ }), children), footerContent ? /*#__PURE__*/React.createElement(MenuFooter, null, footerContent) : null));
410
431
  };
411
432
  exports.Menu = Menu;
412
433
  MenuGroup.displayName = 'Menu.Group';
@@ -426,18 +447,18 @@ var CustomPopoutContent = (0, _styledComponents.default)(_Popout.default.Content
426
447
  displayName: "Menu__CustomPopoutContent",
427
448
  componentId: "sc-1jmjosz-2"
428
449
  })(["padding:0;margin-left:0;margin-right:0;"]);
429
- var MenuButton = function MenuButton(_ref9) {
430
- var content = _ref9.content,
431
- popoutProps = _ref9.popoutProps,
432
- children = _ref9.children,
433
- _onClick = _ref9.onClick,
434
- _ref9$closeOnItemClic = _ref9.closeOnItemClick,
435
- closeOnItemClick = _ref9$closeOnItemClic === void 0 ? true : _ref9$closeOnItemClic,
436
- _ref9$id = _ref9.id,
437
- id = _ref9$id === void 0 ? (0, _lodash.default)('MenuButton-') : _ref9$id,
438
- _ref9$placement = _ref9.placement,
439
- placement = _ref9$placement === void 0 ? 'bottom' : _ref9$placement,
440
- props = _objectWithoutProperties(_ref9, _excluded5);
450
+ var MenuButton = function MenuButton(_ref10) {
451
+ var content = _ref10.content,
452
+ popoutProps = _ref10.popoutProps,
453
+ children = _ref10.children,
454
+ _onClick = _ref10.onClick,
455
+ _ref10$closeOnItemCli = _ref10.closeOnItemClick,
456
+ closeOnItemClick = _ref10$closeOnItemCli === void 0 ? true : _ref10$closeOnItemCli,
457
+ _ref10$id = _ref10.id,
458
+ id = _ref10$id === void 0 ? (0, _lodash.default)('MenuButton-') : _ref10$id,
459
+ _ref10$placement = _ref10.placement,
460
+ placement = _ref10$placement === void 0 ? 'bottom' : _ref10$placement,
461
+ props = _objectWithoutProperties(_ref10, _excluded5);
441
462
  var _useState5 = (0, React.useState)(false),
442
463
  _useState6 = _slicedToArray(_useState5, 2),
443
464
  isOpen = _useState6[0],
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- 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); }
3
+ 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); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });