grommet 2.24.0 → 2.25.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 (429) hide show
  1. package/all/stories/AllComponents.js +2 -7
  2. package/components/Accordion/Accordion.js +1 -1
  3. package/components/Accordion/propTypes.js +1 -1
  4. package/components/Accordion/stories/CustomThemed/Custom.js +3 -2
  5. package/components/AccordionPanel/AccordionPanel.js +2 -1
  6. package/components/Anchor/Anchor.js +1 -1
  7. package/components/Anchor/propTypes.js +1 -1
  8. package/components/Avatar/Avatar.js +1 -1
  9. package/components/Box/Box.js +1 -1
  10. package/components/Box/StyledBox.js +1 -1
  11. package/components/Box/propTypes.js +1 -1
  12. package/components/Button/Button.js +1 -1
  13. package/components/Button/propTypes.js +2 -2
  14. package/components/Button/stories/Basic.js +1 -1
  15. package/components/Button/stories/Fill.js +1 -1
  16. package/components/Button/stories/Kind.js +1 -1
  17. package/components/Calendar/Calendar.js +1 -1
  18. package/components/Calendar/index.d.ts +2 -2
  19. package/components/Calendar/propTypes.js +1 -1
  20. package/components/Calendar/stories/ShowAdjacentDays.js +1 -1
  21. package/components/Card/Card.js +1 -1
  22. package/components/Card/stories/CustomThemed/Clickable.js +1 -1
  23. package/components/Card/stories/CustomThemed/RichFooter.js +1 -1
  24. package/components/Card/stories/CustomThemed/Themed.js +1 -1
  25. package/components/CardBody/CardBody.js +1 -1
  26. package/components/CardFooter/CardFooter.js +1 -1
  27. package/components/CardHeader/CardHeader.js +1 -1
  28. package/components/Carousel/Carousel.js +1 -1
  29. package/components/Carousel/propTypes.js +1 -1
  30. package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  31. package/components/Chart/Chart.js +1 -1
  32. package/components/Chart/index.d.ts +28 -2
  33. package/components/Chart/propTypes.js +1 -1
  34. package/components/Chart/stories/Rich.js +1 -1
  35. package/components/Chart/stories/Window.js +1 -1
  36. package/components/CheckBox/CheckBox.js +1 -1
  37. package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
  38. package/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
  39. package/components/CheckBox/stories/NoLabel.js +1 -1
  40. package/components/CheckBox/stories/Simple.js +1 -1
  41. package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  42. package/components/Clock/Analog.js +1 -1
  43. package/components/Clock/Clock.js +1 -1
  44. package/components/Clock/Digital.js +1 -1
  45. package/components/Clock/propTypes.js +1 -1
  46. package/components/Collapsible/stories/Nested.js +1 -1
  47. package/components/Collapsible/stories/Simple.js +1 -1
  48. package/components/DataChart/DataChart.js +9 -28
  49. package/components/DataChart/Legend.js +1 -1
  50. package/components/DataChart/Swatch.js +64 -23
  51. package/components/DataChart/XAxis.js +1 -1
  52. package/components/DataChart/YGuide.js +1 -1
  53. package/components/DataChart/propTypes.js +1 -1
  54. package/components/DataChart/stories/Legend.js +6 -2
  55. package/components/DataChart/utils.js +11 -1
  56. package/components/DataTable/Body.js +11 -5
  57. package/components/DataTable/Cell.js +1 -1
  58. package/components/DataTable/DataTable.js +1 -1
  59. package/components/DataTable/ExpanderCell.js +1 -1
  60. package/components/DataTable/Footer.js +1 -1
  61. package/components/DataTable/GroupedBody.js +1 -1
  62. package/components/DataTable/Header.js +1 -1
  63. package/components/DataTable/Resizer.js +1 -1
  64. package/components/DataTable/Sorter.js +1 -1
  65. package/components/DataTable/propTypes.js +1 -1
  66. package/components/DataTable/stories/Controlled.js +1 -1
  67. package/components/DataTable/stories/ControlledGrouped.js +1 -1
  68. package/components/DataTable/stories/CustomThemed/Fill.js +1 -1
  69. package/components/DataTable/stories/GroupedOnSelect.js +1 -1
  70. package/components/DataTable/stories/OnUpdate.js +1 -1
  71. package/components/DataTable/stories/Served.js +1 -1
  72. package/components/DataTable/stories/Sort.js +1 -1
  73. package/components/DataTable/stories/Tunable.js +1 -1
  74. package/components/DataTable/stories/data.js +1 -1
  75. package/components/DataTable/stories/rowDetails.js +1 -1
  76. package/components/DateInput/DateInput.js +29 -24
  77. package/components/DateInput/index.d.ts +1 -0
  78. package/components/DateInput/propTypes.js +1 -0
  79. package/components/DateInput/stories/Format.js +14 -1
  80. package/components/DateInput/utils.js +1 -1
  81. package/components/Diagram/Diagram.js +1 -1
  82. package/components/Diagram/stories/Animated.js +1 -1
  83. package/components/Diagram/stories/Progressing.js +1 -1
  84. package/components/Distribution/Distribution.js +1 -1
  85. package/components/Distribution/propTypes.js +1 -1
  86. package/components/Drop/Drop.js +1 -1
  87. package/components/Drop/DropContainer.js +1 -1
  88. package/components/DropButton/DropButton.js +1 -1
  89. package/components/DropButton/propTypes.js +1 -1
  90. package/components/FileInput/FileInput.js +26 -8
  91. package/components/FileInput/stories/Multiple.js +1 -0
  92. package/components/FocusedContainer.js +1 -1
  93. package/components/Footer/Footer.js +1 -1
  94. package/components/Footer/stories/DoubleFooter.js +1 -1
  95. package/components/Footer/stories/Sitemap.js +1 -1
  96. package/components/Form/Form.js +1 -1
  97. package/components/Form/stories/ArrayOfFormFields.js +1 -1
  98. package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +1 -1
  99. package/components/FormField/FormField.js +1 -1
  100. package/components/Grid/Grid.js +5 -3
  101. package/components/Grid/README.md +0 -2
  102. package/components/Grid/index.d.ts +4 -2
  103. package/components/Grid/propTypes.js +1 -1
  104. package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  105. package/components/Grid/stories/typescript/App.tsx +42 -48
  106. package/components/Grommet/Grommet.js +1 -1
  107. package/components/Header/Header.js +1 -1
  108. package/components/Heading/Heading.js +1 -1
  109. package/components/Heading/propTypes.js +1 -1
  110. package/components/Image/Image.js +1 -1
  111. package/components/Image/propTypes.js +1 -1
  112. package/components/InfiniteScroll/stories/Basics.js +1 -1
  113. package/components/InfiniteScroll/stories/ClassChildren.js +1 -1
  114. package/components/InfiniteScroll/stories/Marker.js +1 -1
  115. package/components/InfiniteScroll/stories/Show.js +1 -1
  116. package/components/InfiniteScroll/stories/ShowAfter.js +1 -1
  117. package/components/InfiniteScroll/stories/ShowBefore.js +1 -1
  118. package/components/Layer/Layer.js +1 -1
  119. package/components/Layer/LayerContainer.js +1 -1
  120. package/components/List/List.js +1 -1
  121. package/components/List/propTypes.js +1 -1
  122. package/components/Main/Main.js +1 -1
  123. package/components/Markdown/Markdown.js +1 -1
  124. package/components/MaskedInput/MaskedInput.js +37 -28
  125. package/components/Menu/Menu.js +105 -61
  126. package/components/Menu/index.d.ts +2 -2
  127. package/components/Menu/propTypes.js +2 -2
  128. package/components/Menu/stories/Grouped.js +52 -0
  129. package/components/Meter/Bar.js +1 -1
  130. package/components/Meter/Circle.js +5 -3
  131. package/components/Meter/Meter.js +1 -1
  132. package/components/Meter/propTypes.js +1 -1
  133. package/components/NameValueList/NameValueList.js +1 -1
  134. package/components/NameValuePair/NameValuePair.js +1 -1
  135. package/components/Nav/Nav.js +1 -1
  136. package/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  137. package/components/Nav/stories/Sidebar.js +1 -1
  138. package/components/Notification/Notification.js +1 -1
  139. package/components/Notification/index.d.ts +1 -1
  140. package/components/Notification/propTypes.js +1 -1
  141. package/components/Page/Page.js +1 -1
  142. package/components/PageContent/PageContent.js +1 -1
  143. package/components/PageHeader/PageHeader.js +1 -1
  144. package/components/PageHeader/propTypes.js +1 -1
  145. package/components/Pagination/PageControl.js +1 -1
  146. package/components/Pagination/Pagination.js +1 -1
  147. package/components/Pagination/propTypes.js +1 -1
  148. package/components/Paragraph/Paragraph.js +1 -1
  149. package/components/Paragraph/StyledParagraph.js +7 -1
  150. package/components/Paragraph/index.d.ts +1 -0
  151. package/components/Paragraph/propTypes.js +2 -1
  152. package/components/Paragraph/stories/MaxLines.js +37 -0
  153. package/components/RadioButton/RadioButton.js +1 -1
  154. package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  155. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  156. package/components/RadioButtonGroup/stories/Disabled.js +1 -1
  157. package/components/RangeInput/RangeInput.js +1 -1
  158. package/components/RangeSelector/EdgeControl.js +1 -1
  159. package/components/RangeSelector/RangeSelector.js +1 -1
  160. package/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  161. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  162. package/components/RangeSelector/stories/Step.js +1 -1
  163. package/components/RangeSelector/stories/Vertical.js +1 -1
  164. package/components/RoutedAnchor/RoutedAnchor.js +2 -2
  165. package/components/RoutedButton/RoutedButton.js +2 -2
  166. package/components/Select/Select.js +11 -30
  167. package/components/Select/SelectContainer.js +1 -1
  168. package/components/Select/propTypes.js +1 -1
  169. package/components/Select/stories/components/SearchBorderBox.js +1 -1
  170. package/components/Select/stories/components/SearchInput.js +1 -1
  171. package/components/Sidebar/Sidebar.js +1 -1
  172. package/components/Sidebar/stories/Labels.js +1 -1
  173. package/components/SkipLink/SkipLink.js +1 -1
  174. package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  175. package/components/Spinner/Spinner.js +1 -1
  176. package/components/Stack/Stack.js +1 -1
  177. package/components/Stack/propTypes.js +1 -1
  178. package/components/Tab/StyledTab.js +2 -2
  179. package/components/Tab/Tab.js +35 -17
  180. package/components/Table/propTypes.js +1 -1
  181. package/components/TableBody/TableBody.js +1 -1
  182. package/components/TableCell/TableCell.js +1 -1
  183. package/components/TableFooter/TableFooter.js +1 -1
  184. package/components/TableHeader/TableHeader.js +1 -1
  185. package/components/TableRow/TableRow.js +1 -1
  186. package/components/Tabs/Tabs.js +231 -10
  187. package/components/Tabs/propTypes.js +1 -1
  188. package/components/Tabs/stories/Responsive.js +18 -0
  189. package/components/Tag/Tag.js +1 -1
  190. package/components/Tag/propTypes.js +1 -1
  191. package/components/Text/Text.js +1 -1
  192. package/components/Text/propTypes.js +1 -1
  193. package/components/TextArea/TextArea.js +1 -1
  194. package/components/TextArea/stories/NonResizable.js +1 -1
  195. package/components/TextArea/stories/Simple.js +1 -1
  196. package/components/TextInput/TextInput.js +1 -1
  197. package/components/TextInput/stories/InsideFormField.js +1 -1
  198. package/components/TextInput/stories/WithTags.js +1 -1
  199. package/components/Tip/Tip.js +4 -23
  200. package/components/Video/Video.js +1 -1
  201. package/components/Video/propTypes.js +1 -1
  202. package/components/WorldMap/WorldMap.js +1 -1
  203. package/components/WorldMap/propTypes.js +1 -1
  204. package/components/WorldMap/stories/Places.js +1 -1
  205. package/contexts/AnnounceContext/stories/Assertive.js +1 -1
  206. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  207. package/es6/all/stories/AllComponents.js +2 -7
  208. package/es6/components/Accordion/Accordion.js +1 -1
  209. package/es6/components/Accordion/propTypes.js +1 -1
  210. package/es6/components/Accordion/stories/CustomThemed/Custom.js +3 -2
  211. package/es6/components/AccordionPanel/AccordionPanel.js +2 -1
  212. package/es6/components/Anchor/Anchor.js +1 -1
  213. package/es6/components/Anchor/propTypes.js +1 -1
  214. package/es6/components/Avatar/Avatar.js +1 -1
  215. package/es6/components/Box/Box.js +1 -1
  216. package/es6/components/Box/StyledBox.js +1 -1
  217. package/es6/components/Box/propTypes.js +1 -1
  218. package/es6/components/Button/Button.js +1 -1
  219. package/es6/components/Button/propTypes.js +2 -2
  220. package/es6/components/Button/stories/Basic.js +1 -1
  221. package/es6/components/Button/stories/Fill.js +1 -1
  222. package/es6/components/Button/stories/Kind.js +1 -1
  223. package/es6/components/Calendar/Calendar.js +1 -1
  224. package/es6/components/Calendar/index.d.ts +2 -2
  225. package/es6/components/Calendar/propTypes.js +1 -1
  226. package/es6/components/Calendar/stories/ShowAdjacentDays.js +1 -1
  227. package/es6/components/Card/Card.js +1 -1
  228. package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
  229. package/es6/components/Card/stories/CustomThemed/RichFooter.js +1 -1
  230. package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
  231. package/es6/components/CardBody/CardBody.js +1 -1
  232. package/es6/components/CardFooter/CardFooter.js +1 -1
  233. package/es6/components/CardHeader/CardHeader.js +1 -1
  234. package/es6/components/Carousel/Carousel.js +1 -1
  235. package/es6/components/Carousel/propTypes.js +1 -1
  236. package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  237. package/es6/components/Chart/Chart.js +1 -1
  238. package/es6/components/Chart/index.d.ts +28 -2
  239. package/es6/components/Chart/propTypes.js +1 -1
  240. package/es6/components/Chart/stories/Rich.js +1 -1
  241. package/es6/components/Chart/stories/Window.js +1 -1
  242. package/es6/components/CheckBox/CheckBox.js +1 -1
  243. package/es6/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
  244. package/es6/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
  245. package/es6/components/CheckBox/stories/NoLabel.js +1 -1
  246. package/es6/components/CheckBox/stories/Simple.js +1 -1
  247. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  248. package/es6/components/Clock/Analog.js +1 -1
  249. package/es6/components/Clock/Clock.js +1 -1
  250. package/es6/components/Clock/Digital.js +1 -1
  251. package/es6/components/Clock/propTypes.js +1 -1
  252. package/es6/components/Collapsible/stories/Nested.js +1 -1
  253. package/es6/components/Collapsible/stories/Simple.js +1 -1
  254. package/es6/components/DataChart/DataChart.js +10 -30
  255. package/es6/components/DataChart/Legend.js +1 -1
  256. package/es6/components/DataChart/Swatch.js +64 -23
  257. package/es6/components/DataChart/XAxis.js +1 -1
  258. package/es6/components/DataChart/YGuide.js +1 -1
  259. package/es6/components/DataChart/propTypes.js +1 -1
  260. package/es6/components/DataChart/stories/Legend.js +6 -2
  261. package/es6/components/DataChart/utils.js +7 -0
  262. package/es6/components/DataTable/Body.js +10 -5
  263. package/es6/components/DataTable/Cell.js +1 -1
  264. package/es6/components/DataTable/DataTable.js +1 -1
  265. package/es6/components/DataTable/ExpanderCell.js +1 -1
  266. package/es6/components/DataTable/Footer.js +1 -1
  267. package/es6/components/DataTable/GroupedBody.js +1 -1
  268. package/es6/components/DataTable/Header.js +1 -1
  269. package/es6/components/DataTable/Resizer.js +1 -1
  270. package/es6/components/DataTable/Sorter.js +1 -1
  271. package/es6/components/DataTable/propTypes.js +1 -1
  272. package/es6/components/DataTable/stories/Controlled.js +1 -1
  273. package/es6/components/DataTable/stories/ControlledGrouped.js +1 -1
  274. package/es6/components/DataTable/stories/CustomThemed/Fill.js +1 -1
  275. package/es6/components/DataTable/stories/GroupedOnSelect.js +1 -1
  276. package/es6/components/DataTable/stories/OnUpdate.js +1 -1
  277. package/es6/components/DataTable/stories/Served.js +1 -1
  278. package/es6/components/DataTable/stories/Sort.js +1 -1
  279. package/es6/components/DataTable/stories/Tunable.js +1 -1
  280. package/es6/components/DataTable/stories/data.js +1 -1
  281. package/es6/components/DataTable/stories/rowDetails.js +1 -1
  282. package/es6/components/DateInput/DateInput.js +28 -24
  283. package/es6/components/DateInput/index.d.ts +1 -0
  284. package/es6/components/DateInput/propTypes.js +1 -0
  285. package/es6/components/DateInput/stories/Format.js +14 -1
  286. package/es6/components/DateInput/utils.js +1 -1
  287. package/es6/components/Diagram/Diagram.js +1 -1
  288. package/es6/components/Diagram/stories/Animated.js +1 -1
  289. package/es6/components/Diagram/stories/Progressing.js +1 -1
  290. package/es6/components/Distribution/Distribution.js +1 -1
  291. package/es6/components/Distribution/propTypes.js +1 -1
  292. package/es6/components/Drop/Drop.js +1 -1
  293. package/es6/components/Drop/DropContainer.js +1 -1
  294. package/es6/components/DropButton/DropButton.js +1 -1
  295. package/es6/components/DropButton/propTypes.js +1 -1
  296. package/es6/components/FileInput/FileInput.js +26 -8
  297. package/es6/components/FileInput/stories/Multiple.js +1 -0
  298. package/es6/components/FocusedContainer.js +1 -1
  299. package/es6/components/Footer/Footer.js +1 -1
  300. package/es6/components/Footer/stories/DoubleFooter.js +1 -1
  301. package/es6/components/Footer/stories/Sitemap.js +1 -1
  302. package/es6/components/Form/Form.js +1 -1
  303. package/es6/components/Form/stories/ArrayOfFormFields.js +1 -1
  304. package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +1 -1
  305. package/es6/components/FormField/FormField.js +1 -1
  306. package/es6/components/Grid/Grid.js +5 -3
  307. package/es6/components/Grid/README.md +0 -2
  308. package/es6/components/Grid/index.d.ts +4 -2
  309. package/es6/components/Grid/propTypes.js +1 -1
  310. package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  311. package/es6/components/Grid/stories/typescript/App.tsx +42 -48
  312. package/es6/components/Grommet/Grommet.js +1 -1
  313. package/es6/components/Header/Header.js +1 -1
  314. package/es6/components/Heading/Heading.js +1 -1
  315. package/es6/components/Heading/propTypes.js +1 -1
  316. package/es6/components/Image/Image.js +1 -1
  317. package/es6/components/Image/propTypes.js +1 -1
  318. package/es6/components/InfiniteScroll/stories/Basics.js +1 -1
  319. package/es6/components/InfiniteScroll/stories/ClassChildren.js +1 -1
  320. package/es6/components/InfiniteScroll/stories/Marker.js +1 -1
  321. package/es6/components/InfiniteScroll/stories/Show.js +1 -1
  322. package/es6/components/InfiniteScroll/stories/ShowAfter.js +1 -1
  323. package/es6/components/InfiniteScroll/stories/ShowBefore.js +1 -1
  324. package/es6/components/Layer/Layer.js +1 -1
  325. package/es6/components/Layer/LayerContainer.js +1 -1
  326. package/es6/components/List/List.js +1 -1
  327. package/es6/components/List/propTypes.js +1 -1
  328. package/es6/components/Main/Main.js +1 -1
  329. package/es6/components/Markdown/Markdown.js +1 -1
  330. package/es6/components/MaskedInput/MaskedInput.js +38 -29
  331. package/es6/components/Menu/Menu.js +106 -61
  332. package/es6/components/Menu/index.d.ts +2 -2
  333. package/es6/components/Menu/propTypes.js +2 -2
  334. package/es6/components/Menu/stories/Grouped.js +40 -0
  335. package/es6/components/Meter/Bar.js +1 -1
  336. package/es6/components/Meter/Circle.js +5 -3
  337. package/es6/components/Meter/Meter.js +1 -1
  338. package/es6/components/Meter/propTypes.js +1 -1
  339. package/es6/components/NameValueList/NameValueList.js +1 -1
  340. package/es6/components/NameValuePair/NameValuePair.js +1 -1
  341. package/es6/components/Nav/Nav.js +1 -1
  342. package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  343. package/es6/components/Nav/stories/Sidebar.js +1 -1
  344. package/es6/components/Notification/Notification.js +1 -1
  345. package/es6/components/Notification/index.d.ts +1 -1
  346. package/es6/components/Notification/propTypes.js +1 -1
  347. package/es6/components/Page/Page.js +1 -1
  348. package/es6/components/PageContent/PageContent.js +1 -1
  349. package/es6/components/PageHeader/PageHeader.js +1 -1
  350. package/es6/components/PageHeader/propTypes.js +1 -1
  351. package/es6/components/Pagination/PageControl.js +1 -1
  352. package/es6/components/Pagination/Pagination.js +1 -1
  353. package/es6/components/Pagination/propTypes.js +1 -1
  354. package/es6/components/Paragraph/Paragraph.js +1 -1
  355. package/es6/components/Paragraph/StyledParagraph.js +8 -1
  356. package/es6/components/Paragraph/index.d.ts +1 -0
  357. package/es6/components/Paragraph/propTypes.js +2 -1
  358. package/es6/components/Paragraph/stories/MaxLines.js +24 -0
  359. package/es6/components/RadioButton/RadioButton.js +1 -1
  360. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  361. package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  362. package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
  363. package/es6/components/RangeInput/RangeInput.js +1 -1
  364. package/es6/components/RangeSelector/EdgeControl.js +1 -1
  365. package/es6/components/RangeSelector/RangeSelector.js +1 -1
  366. package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  367. package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  368. package/es6/components/RangeSelector/stories/Step.js +1 -1
  369. package/es6/components/RangeSelector/stories/Vertical.js +1 -1
  370. package/es6/components/RoutedAnchor/RoutedAnchor.js +2 -2
  371. package/es6/components/RoutedButton/RoutedButton.js +2 -2
  372. package/es6/components/Select/Select.js +12 -31
  373. package/es6/components/Select/SelectContainer.js +1 -1
  374. package/es6/components/Select/propTypes.js +1 -1
  375. package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
  376. package/es6/components/Select/stories/components/SearchInput.js +1 -1
  377. package/es6/components/Sidebar/Sidebar.js +1 -1
  378. package/es6/components/Sidebar/stories/Labels.js +1 -1
  379. package/es6/components/SkipLink/SkipLink.js +1 -1
  380. package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  381. package/es6/components/Spinner/Spinner.js +1 -1
  382. package/es6/components/Stack/Stack.js +1 -1
  383. package/es6/components/Stack/propTypes.js +1 -1
  384. package/es6/components/Tab/StyledTab.js +2 -2
  385. package/es6/components/Tab/Tab.js +35 -18
  386. package/es6/components/Table/propTypes.js +1 -1
  387. package/es6/components/TableBody/TableBody.js +1 -1
  388. package/es6/components/TableCell/TableCell.js +1 -1
  389. package/es6/components/TableFooter/TableFooter.js +1 -1
  390. package/es6/components/TableHeader/TableHeader.js +1 -1
  391. package/es6/components/TableRow/TableRow.js +1 -1
  392. package/es6/components/Tabs/Tabs.js +227 -11
  393. package/es6/components/Tabs/propTypes.js +1 -1
  394. package/es6/components/Tabs/stories/Responsive.js +18 -0
  395. package/es6/components/Tag/Tag.js +1 -1
  396. package/es6/components/Tag/propTypes.js +1 -1
  397. package/es6/components/Text/Text.js +1 -1
  398. package/es6/components/Text/propTypes.js +1 -1
  399. package/es6/components/TextArea/TextArea.js +1 -1
  400. package/es6/components/TextArea/stories/NonResizable.js +1 -1
  401. package/es6/components/TextArea/stories/Simple.js +1 -1
  402. package/es6/components/TextInput/TextInput.js +1 -1
  403. package/es6/components/TextInput/stories/InsideFormField.js +1 -1
  404. package/es6/components/TextInput/stories/WithTags.js +1 -1
  405. package/es6/components/Tip/Tip.js +4 -23
  406. package/es6/components/Video/Video.js +1 -1
  407. package/es6/components/Video/propTypes.js +1 -1
  408. package/es6/components/WorldMap/WorldMap.js +1 -1
  409. package/es6/components/WorldMap/propTypes.js +1 -1
  410. package/es6/components/WorldMap/stories/Places.js +1 -1
  411. package/es6/contexts/AnnounceContext/stories/Assertive.js +1 -1
  412. package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  413. package/es6/index.d.ts +1 -0
  414. package/es6/themes/base.d.ts +14 -0
  415. package/es6/themes/base.js +21 -1
  416. package/es6/utils/index.js +2 -1
  417. package/es6/utils/object.js +1 -1
  418. package/es6/utils/pagination.js +1 -1
  419. package/es6/utils/use-keyboard.js +25 -0
  420. package/grommet.min.js +1 -1
  421. package/grommet.min.js.map +1 -1
  422. package/index.d.ts +1 -0
  423. package/package.json +26 -26
  424. package/themes/base.d.ts +14 -0
  425. package/themes/base.js +21 -1
  426. package/utils/index.js +8 -0
  427. package/utils/object.js +1 -1
  428. package/utils/pagination.js +1 -1
  429. package/utils/use-keyboard.js +34 -0
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["id"],
2
2
  _excluded2 = ["color"];
3
3
 
4
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
5
 
6
6
  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; }
7
7
 
@@ -425,14 +425,9 @@ var Components = function Components() {
425
425
  pad: "medium",
426
426
  background: background || theme.global.colors.background,
427
427
  overflow: "auto"
428
- }, Grid.available ? /*#__PURE__*/React.createElement(Grid, {
428
+ }, /*#__PURE__*/React.createElement(Grid, {
429
429
  columns: "small",
430
430
  gap: "medium"
431
- }, content) : /*#__PURE__*/React.createElement(Box, {
432
- direction: "row",
433
- wrap: true,
434
- align: "start",
435
- gap: "large"
436
431
  }, content))));
437
432
  };
438
433
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["activeIndex", "animate", "children", "multiple", "onActive"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { genericProps } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["animate", "multiple"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -25,7 +25,8 @@ var customAccordionTheme = {
25
25
  hover: {
26
26
  heading: {
27
27
  color: 'accent-2'
28
- }
28
+ },
29
+ background: 'background-contrast'
29
30
  },
30
31
  icons: {
31
32
  collapse: SubtractCircle,
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "header", "label", "onClick", "onMouseOut", "onMouseOver", "onFocus", "onBlur"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -79,6 +79,7 @@ var AccordionPanel = /*#__PURE__*/forwardRef(function (_ref, ref) {
79
79
  "aria-expanded": active,
80
80
  plain: theme.button["default"] ? true : undefined,
81
81
  onClick: onPanelChange,
82
+ hoverIndicator: theme.accordion.hover.background,
82
83
  onMouseOver: function onMouseOver(event) {
83
84
  setHover(headingColor);
84
85
  if (_onMouseOver) _onMouseOver(event);
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "children", "color", "disabled", "gap", "href", "icon", "label", "onBlur", "onClick", "onFocus", "reverse"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { colorPropType, genericProps } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["align", "children", "height", "justify", "round", "size", "src", "width"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "background", "border", "children", "direction", "elevation", "fill", "gap", "kind", "onBlur", "onClick", "onFocus", "overflow", "responsive", "tag", "as", "wrap", "width", "height", "tabIndex"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var _FLEX_MAP;
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  import styled, { css } from 'styled-components';
6
6
  import { defaultProps } from '../../default-props';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { backgroundDoc, elevationPropType, genericProps, heightPropType, hoverIndicatorPropType, padPropType, roundPropType, widthPropType } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["active", "align", "aria-label", "badge", "color", "children", "disabled", "icon", "focusIndicator", "gap", "fill", "href", "justify", "kind", "label", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver", "plain", "primary", "reverse", "secondary", "selected", "size", "tip", "type", "a11yTitle", "as"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { backgroundPropType, genericProps, colorPropType, hoverIndicatorPropType } from '../../utils/general-prop-types';
@@ -8,7 +8,7 @@ if (process.env.NODE_ENV !== 'production') {
8
8
  PropType = _extends({}, genericProps, {
9
9
  children: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.node]),
10
10
  active: PropTypes.bool,
11
- as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
11
+ as: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.elementType]),
12
12
  badge: PropTypes.oneOfType([PropTypes.bool, PropTypes.element, PropTypes.number, PropTypes.shape({
13
13
  background: backgroundPropType,
14
14
  max: PropTypes.number,
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Box, Button } from 'grommet';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Box, Button } from 'grommet';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React from 'react';
4
4
  import { User } from "grommet-icons/es6/icons/User";
@@ -2,7 +2,7 @@ var _excluded = ["activeDate", "animate", "bounds", "children", "date", "dates",
2
2
 
3
3
  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; }
4
4
 
5
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ function _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); }
6
6
 
7
7
  import React, { forwardRef, useCallback, useContext, useMemo, useRef, useState, useEffect } from 'react';
8
8
  import { ThemeContext } from 'styled-components';
@@ -14,7 +14,7 @@ export interface RenderProps {
14
14
  isSelected: boolean;
15
15
  }
16
16
 
17
- export interface HeaderProps {
17
+ export interface CalendarHeaderProps {
18
18
  date: Date;
19
19
  locale?: string;
20
20
  onPreviousMonth: () => void;
@@ -38,7 +38,7 @@ export interface CalendarProps {
38
38
  disabled?: (string | string[])[];
39
39
  fill?: boolean;
40
40
  firstDayOfWeek?: 0 | 1;
41
- header?: (args: HeaderProps) => React.ReactNode;
41
+ header?: (args: CalendarHeaderProps) => React.ReactNode;
42
42
  locale?: string;
43
43
  messages?: {
44
44
  previous?: string;
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { genericProps } from '../../utils/general-prop-types';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Calendar, Grid, Text } from 'grommet';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { forwardRef, useContext } from 'react';
4
4
  import { ThemeContext } from 'styled-components';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "title", "subTitle", "size"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Anchor, Box, Button, Card, CardBody, CardFooter, Collapsible, Heading, Grommet, Image, Paragraph } from 'grommet';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "title", "subTitle", "size"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useContext } from 'react';
4
4
  import { ThemeContext } from 'styled-components';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useContext } from 'react';
4
4
  import { ThemeContext } from 'styled-components';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useContext } from 'react';
4
4
  import { ThemeContext } from 'styled-components';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["activeChild", "initialChild", "onChild", "play", "children", "controls", "height", "fill", "width", "onFocus", "onBlur", "wrap"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { genericProps, widthPropType, heightPropType } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["controls"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -2,7 +2,7 @@ var _excluded = ["a11yTitle", "bounds", "color", "dash", "gap", "id", "onClick",
2
2
  _excluded2 = ["color", "label", "onHover", "opacity", "thickness", "value"],
3
3
  _excluded3 = ["color", "label", "onHover", "opacity", "thickness", "value"];
4
4
 
5
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ function _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); }
6
6
 
7
7
  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; }
8
8
 
@@ -96,6 +96,32 @@ export interface ChartProps {
96
96
  )[];
97
97
  }
98
98
 
99
- declare const Chart: React.FC<ChartProps>;
99
+ export interface ChartExtendedProps
100
+ extends ChartProps,
101
+ Omit<JSX.IntrinsicElements['svg'], keyof ChartProps> {}
100
102
 
101
- export { Chart };
103
+ declare const Chart: React.FC<ChartExtendedProps>;
104
+
105
+ type Bounds = [[number, number], [number, number]] | [[], []];
106
+
107
+ interface CalcsResult {
108
+ axis: [number[], number[]];
109
+ bounds: Bounds;
110
+ dimensions: [number, number];
111
+ pad: string;
112
+ thickness: string;
113
+ }
114
+
115
+ interface CalcsOptions {
116
+ min?: number;
117
+ max?: number;
118
+ bounds?: Bounds;
119
+ thickness?: string;
120
+ }
121
+
122
+ declare const calcs: (
123
+ values: number[] | number[][],
124
+ options?: CalcsOptions,
125
+ ) => CalcsResult;
126
+
127
+ export { Chart, calcs };
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { colorPropType, genericProps, padPropType, patternPropType, pointPropType } from '../../utils/general-prop-types';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useEffect, useState } from 'react';
4
4
  import { Box, Chart, Stack, Text } from 'grommet';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useMemo, useState } from 'react';
4
4
  import { Box, Chart, RangeSelector, Stack, Text } from 'grommet';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "checked", "children", "defaultChecked", "disabled", "fill", "focus", "focusIndicator", "id", "label", "name", "onBlur", "onChange", "onFocus", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver", "pad", "reverse", "toggle", "indeterminate"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { Box, Grommet, CheckBox } from 'grommet';
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React, { useState } from 'react';
4
4
  import { css } from 'styled-components';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["checked"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["checked"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "value", "disabled", "focusIndicator", "gap", "labelKey", "valueKey", "onChange", "options", "name"],
2
2
  _excluded2 = ["value"];
3
3
 
4
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
5
 
6
6
  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; }
7
7
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["elements", "precision"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["hourLimit", "onChange", "precision", "run", "size", "time", "type"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["elements", "precision", "run", "size"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import PropTypes from 'prop-types';
4
4
  import { genericProps } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label", "open", "submenu"];
2
2
 
3
- function _extends() { _extends = Object.assign || 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); }
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Box, Button, Collapsible, Text } from 'grommet';