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
@@ -11,6 +11,7 @@ if (process.env.NODE_ENV !== 'production') {
11
11
  icon: PropTypes.element,
12
12
  id: PropTypes.string,
13
13
  inline: PropTypes.bool,
14
+ reverse: PropTypes.bool,
14
15
  inputProps: PropTypes.shape({}),
15
16
  name: PropTypes.string,
16
17
  onChange: PropTypes.func,
@@ -16,11 +16,24 @@ export var Format = function Format() {
16
16
  align: "center",
17
17
  pad: "large"
18
18
  }, /*#__PURE__*/React.createElement(Box, {
19
- width: "medium"
19
+ width: "medium",
20
+ margin: {
21
+ vertical: 'small'
22
+ }
20
23
  }, /*#__PURE__*/React.createElement(DateInput, {
21
24
  format: "m/d/yy",
22
25
  value: value,
23
26
  onChange: onChange
27
+ })), /*#__PURE__*/React.createElement(Box, {
28
+ width: "medium",
29
+ margin: {
30
+ vertical: 'small'
31
+ }
32
+ }, /*#__PURE__*/React.createElement(DateInput, {
33
+ format: "m/d/yy",
34
+ value: value,
35
+ reverse: true,
36
+ onChange: onChange
24
37
  })));
25
38
  };
26
39
  export default {
@@ -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
  // Converting between Date and String types is handled via a "schema".
4
4
  // The schema is an array of strings, split into strings with identical
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["connections"],
2
2
  _excluded2 = ["anchor", "animation", "color", "offset", "round", "thickness", "type"];
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,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, { useReducer, useEffect } from 'react';
4
4
  import { Box, Diagram, Stack, Text } from 'grommet';
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["basis", "children", "direction", "fill", "gap", "values"];
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 = ["inline", "restrictFocus", "target", "trapFocus"];
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", "aria-label", "align", "background", "onAlign", "children", "dropTarget", "elevation", "onClickOutside", "onEsc", "onKeyDown", "overflow", "plain", "responsive", "restrictFocus", "stretch", "trapFocus"];
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", "onAlign", "disabled", "dropAlign", "dropProps", "dropContent", "dropTarget", "id", "open", "onClick", "onClose", "onOpen"];
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 = ["a11yTitle", "background", "border", "confirmRemove", "disabled", "id", "plain", "renderFile", "maxSize", "messages", "margin", "multiple", "name", "onChange", "pad", "value"];
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
 
@@ -229,8 +229,7 @@ var FileInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
229
229
  });
230
230
  } else message = files.length + " items";
231
231
 
232
- var removeFile = function removeFile(event, index) {
233
- event.stopPropagation();
232
+ var removeFile = function removeFile(index) {
234
233
  var nextFiles;
235
234
 
236
235
  if (index === 'all') {
@@ -240,11 +239,30 @@ var FileInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
240
239
  nextFiles.splice(index, 1);
241
240
  }
242
241
 
243
- setFiles(nextFiles);
242
+ setFiles(nextFiles); // Need to have a way to track the files other than an array
243
+ // since inputRef.current.files is a read-only FileList
244
+ // https://stackoverflow.com/a/64019766
245
+
246
+ /* eslint-disable no-undef */
247
+
248
+ var dt = new DataTransfer();
249
+ var curFiles = inputRef.current.files;
250
+ if (index === 'all' || nextFiles.length === 0) inputRef.current.value = '';
251
+
252
+ for (var i = 0; i < curFiles.length; i += 1) {
253
+ var curfile = curFiles[i];
254
+ if (index !== i) dt.items.add(curfile);
255
+ }
256
+
257
+ var nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'files').set;
258
+ nativeInputValueSetter.call(inputRef.current, dt.files);
259
+ var event = new Event('input', {
260
+ bubbles: true
261
+ });
262
+ inputRef.current.dispatchEvent(event);
244
263
  if (_onChange) _onChange(event, {
245
264
  files: nextFiles
246
265
  });
247
- if (nextFiles.length === 0) inputRef.current.value = '';
248
266
  inputRef.current.focus();
249
267
  };
250
268
 
@@ -331,7 +349,7 @@ var FileInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
331
349
  index: 'all'
332
350
  });
333
351
  setShowRemoveConfirmation(true);
334
- } else removeFile(event, 'all');
352
+ } else removeFile('all');
335
353
  }
336
354
  }), /*#__PURE__*/React.createElement(Keyboard, {
337
355
  onSpace: function onSpace(event) {
@@ -398,7 +416,7 @@ var FileInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
398
416
  index: index
399
417
  });
400
418
  setShowRemoveConfirmation(true);
401
- } else removeFile(event, index);
419
+ } else removeFile(index);
402
420
  }
403
421
  }), files.length === 1 && /*#__PURE__*/React.createElement(Keyboard, {
404
422
  onSpace: function onSpace(event) {
@@ -476,7 +494,7 @@ var FileInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
476
494
  }
477
495
  }))), showRemoveConfirmation && /*#__PURE__*/React.createElement(ConfirmRemove, {
478
496
  onConfirm: function onConfirm() {
479
- removeFile(pendingRemoval.event, pendingRemoval.index);
497
+ removeFile(pendingRemoval.index);
480
498
  setPendingRemoval(defaultPendingRemoval);
481
499
  setShowRemoveConfirmation(false);
482
500
  },
@@ -15,6 +15,7 @@ export var Multiple = function Multiple() {
15
15
  onChange: function onChange(event, _ref) {
16
16
  var files = _ref.files;
17
17
  console.log(event);
18
+ console.log(event.target.files);
18
19
 
19
20
  for (var i = 0; i < files.length; i += 1) {
20
21
  var file = files[i];
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["hidden", "restrictScroll", "children", "trapFocus"];
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 } from '../Box';
@@ -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 styled 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 from 'react';
4
4
  import { Grommet as GrommetIcon } from "grommet-icons/es6/icons/Grommet";
@@ -2,7 +2,7 @@ var _excluded = ["children", "errors", "infos", "messages", "onChange", "onReset
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, useEffect, useMemo, useRef, useState } from 'react';
8
8
  import { MessageContext } from '../../contexts/MessageContext';
@@ -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, Form, Button, FormField } 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, Form, FormField, Grid, Grommet, Heading, RadioButtonGroup, TextInput, ThemeContext } from 'grommet';
@@ -2,7 +2,7 @@ var _excluded = ["error", "info", "message", "type"],
2
2
  _excluded2 = ["component", "disabled", "invalid", "name", "onChange"],
3
3
  _excluded3 = ["children", "className", "component", "contentProps", "disabled", "error", "help", "htmlFor", "info", "label", "margin", "name", "onBlur", "onChange", "onFocus", "pad", "required", "style", "validate"];
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
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "border", "fill", "height", "responsive", "rows", "tag", "as", "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
 
@@ -34,6 +34,8 @@ var Grid = /*#__PURE__*/forwardRef(function (props, ref) {
34
34
  }, rest));
35
35
  });
36
36
  Grid.displayName = 'Grid';
37
- Grid.propTypes = GridPropTypes;
38
- Grid.available = typeof window !== 'undefined' && window.CSS && window.CSS.supports && window.CSS.supports('display', 'grid');
37
+ Grid.propTypes = GridPropTypes; // Defualting to true to support existing code that relies on
38
+ // grid.available to create a fallback option
39
+
40
+ Grid.available = true;
39
41
  export { Grid };
@@ -5,5 +5,3 @@ A grid system for laying out content. To use, define the
5
5
  rows and columns, create area names for adjacent cells, and then
6
6
  place Box components inside those areas using the gridArea property.
7
7
  See https://css-tricks.com/snippets/css/complete-guide-grid/.
8
- The availability of Grid can be tested via `Grid.available`. Use this
9
- to create fallback rendering for older browsers, like ie11.
@@ -44,7 +44,9 @@ export type GridColumnsType =
44
44
 
45
45
  export type GridGapType = GapType | { row?: GapType; column?: GapType };
46
46
 
47
- export type AreasType = { name?: string; start?: number[]; end?: number[] }[] | string[][];
47
+ export type AreasType =
48
+ | { name?: string; start?: number[]; end?: number[] }[]
49
+ | string[][];
48
50
  export interface GridProps {
49
51
  a11yTitle?: A11yTitleType;
50
52
  alignSelf?: AlignSelfType;
@@ -72,6 +74,6 @@ type divProps = JSX.IntrinsicElements['div'];
72
74
 
73
75
  export interface GridExtendedProps extends GridProps, divProps {}
74
76
 
75
- declare const Grid: React.FC<GridExtendedProps> & { available?: boolean };
77
+ declare const Grid: React.FC<GridExtendedProps>;
76
78
 
77
79
  export { Grid };
@@ -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 { alignPropType, genericProps, heightPropType, padPropType, widthPropType } from '../../utils/general-prop-types';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "overrideColumns", "overrideRows", "areas"];
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
 
@@ -8,58 +8,52 @@ export const AppGrid = () => {
8
8
  return (
9
9
  // Uncomment <Grommet> lines when using outside of storybook
10
10
  // <Grommet theme={...}>
11
- <>
12
- {Grid.available ? (
13
- <Grid
14
- fill
15
- rows={['auto', 'flex']}
16
- columns={['auto', 'flex']}
17
- areas={[
18
- { name: 'header', start: [0, 0], end: [1, 0] },
19
- { name: 'sidebar', start: [0, 1], end: [0, 1] },
20
- { name: 'main', start: [1, 1], end: [1, 1] },
11
+ <Grid
12
+ fill
13
+ rows={['auto', 'flex']}
14
+ columns={['auto', 'flex']}
15
+ areas={[
16
+ { name: 'header', start: [0, 0], end: [1, 0] },
17
+ { name: 'sidebar', start: [0, 1], end: [0, 1] },
18
+ { name: 'main', start: [1, 1], end: [1, 1] },
19
+ ]}
20
+ >
21
+ <Box
22
+ gridArea="header"
23
+ direction="row"
24
+ align="center"
25
+ justify="between"
26
+ pad={{ horizontal: 'medium', vertical: 'small' }}
27
+ background="dark-2"
28
+ >
29
+ <Button onClick={() => setSidebar(!sidebar)}>
30
+ <Text size="large">Title</Text>
31
+ </Button>
32
+ <Text>my@email</Text>
33
+ </Box>
34
+ {sidebar && (
35
+ <Box
36
+ gridArea="sidebar"
37
+ background="dark-3"
38
+ width="small"
39
+ animation={[
40
+ { type: 'fadeIn', duration: 300 },
41
+ { type: 'slideRight', size: 'xlarge', duration: 150 },
21
42
  ]}
22
43
  >
23
- <Box
24
- gridArea="header"
25
- direction="row"
26
- align="center"
27
- justify="between"
28
- pad={{ horizontal: 'medium', vertical: 'small' }}
29
- background="dark-2"
30
- >
31
- <Button onClick={() => setSidebar(!sidebar)}>
32
- <Text size="large">Title</Text>
44
+ {['First', 'Second', 'Third'].map((name) => (
45
+ <Button key={name} href="#" hoverIndicator>
46
+ <Box pad={{ horizontal: 'medium', vertical: 'small' }}>
47
+ <Text>{name}</Text>
48
+ </Box>
33
49
  </Button>
34
- <Text>my@email</Text>
35
- </Box>
36
- {sidebar && (
37
- <Box
38
- gridArea="sidebar"
39
- background="dark-3"
40
- width="small"
41
- animation={[
42
- { type: 'fadeIn', duration: 300 },
43
- { type: 'slideRight', size: 'xlarge', duration: 150 },
44
- ]}
45
- >
46
- {['First', 'Second', 'Third'].map((name) => (
47
- <Button key={name} href="#" hoverIndicator>
48
- <Box pad={{ horizontal: 'medium', vertical: 'small' }}>
49
- <Text>{name}</Text>
50
- </Box>
51
- </Button>
52
- ))}
53
- </Box>
54
- )}
55
- <Box gridArea="main" justify="center" align="center">
56
- <Text>main</Text>
57
- </Box>
58
- </Grid>
59
- ) : (
60
- <Text>Grid is not supported by your browser</Text>
50
+ ))}
51
+ </Box>
61
52
  )}
62
- </>
53
+ <Box gridArea="main" justify="center" align="center">
54
+ <Text>main</Text>
55
+ </Box>
56
+ </Grid>
63
57
  // </Grommet>
64
58
  );
65
59
  };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "full", "containerTarget", "theme", "options", "messages"];
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 = ["sticky"];
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 = ["color", "fill", "level"];
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 = ["a11yTitle", "fallback", "onError", "opacity", "fill", "src"];
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,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, InfiniteScroll, 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 from 'react';
4
4
  import { Box, InfiniteScroll, 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 from 'react';
4
4
  import { Box, InfiniteScroll, 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 from 'react';
4
4
  import { Box, InfiniteScroll, 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 from 'react';
4
4
  import { Box, InfiniteScroll, 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 from 'react';
4
4
  import { Box, InfiniteScroll, 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, useEffect, useState } from 'react';
4
4
  import { createPortal } from 'react-dom';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["background", "children", "full", "id", "margin", "modal", "onClickOutside", "onEsc", "plain", "position", "responsive", "target"];
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", "aria-label", "action", "as", "background", "border", "children", "data", "defaultItemProps", "disabled", "focus", "itemKey", "itemProps", "onActive", "onClickItem", "onKeyDown", "onMore", "onOrder", "pad", "paginate", "primaryKey", "secondaryKey", "show", "step"];
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, padPropType } from '../../utils/general-prop-types';