grommet 2.33.2 → 2.34.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 (828) hide show
  1. package/all/stories/AllComponents.js +5 -7
  2. package/all/stories/Colors.js +3 -5
  3. package/all/stories/CustomThemed/DefaultTheme.js +3 -5
  4. package/all/stories/TypographyLarge.js +3 -5
  5. package/all/stories/TypographyMedium.js +3 -5
  6. package/all/stories/TypographySmall.js +3 -5
  7. package/components/Accordion/Accordion.js +3 -4
  8. package/components/Accordion/AccordionContext.js +1 -2
  9. package/components/Accordion/propTypes.js +1 -2
  10. package/components/Accordion/stories/CustomHeader.js +5 -7
  11. package/components/Accordion/stories/CustomThemed/Custom.js +3 -5
  12. package/components/Accordion/stories/Multiple.js +4 -5
  13. package/components/Accordion/stories/Simple.js +3 -5
  14. package/components/AccordionPanel/AccordionPanel.js +3 -4
  15. package/components/AccordionPanel/propTypes.js +1 -2
  16. package/components/Anchor/Anchor.js +3 -4
  17. package/components/Anchor/StyledAnchor.js +3 -4
  18. package/components/Anchor/propTypes.js +1 -2
  19. package/components/Anchor/stories/Color.js +3 -5
  20. package/components/Anchor/stories/Default.js +3 -5
  21. package/components/Anchor/stories/Gap.js +3 -5
  22. package/components/Anchor/stories/Size.js +3 -5
  23. package/components/Anchor/stories/Weight.js +3 -5
  24. package/components/Avatar/Avatar.js +3 -4
  25. package/components/Avatar/StyledAvatar.js +2 -4
  26. package/components/Avatar/propTypes.js +1 -2
  27. package/components/Avatar/stories/Basic.js +3 -5
  28. package/components/Avatar/stories/CustomThemed/Themed.js +3 -5
  29. package/components/Avatar/stories/Round.js +3 -5
  30. package/components/Avatar/stories/Sizes.js +3 -5
  31. package/components/Box/Box.js +3 -4
  32. package/components/Box/StyledBox.js +4 -6
  33. package/components/Box/index.d.ts +1 -1
  34. package/components/Box/propTypes.js +1 -2
  35. package/components/Box/stories/Animation.js +3 -5
  36. package/components/Box/stories/Background.js +4 -5
  37. package/components/Box/stories/BackgroundThemed.js +6 -7
  38. package/components/Box/stories/Border.js +4 -5
  39. package/components/Box/stories/Custom.js +4 -5
  40. package/components/Box/stories/Elevation.js +4 -5
  41. package/components/Box/stories/Fixed.js +4 -5
  42. package/components/Box/stories/MinMax.js +4 -5
  43. package/components/Box/stories/OnClick.js +4 -5
  44. package/components/Box/stories/RTL.js +4 -5
  45. package/components/Box/stories/Round.js +5 -6
  46. package/components/Box/stories/Simple.js +8 -8
  47. package/components/Button/Badge.js +4 -5
  48. package/components/Button/BusyAnimation.js +6 -9
  49. package/components/Button/Button.js +3 -4
  50. package/components/Button/StyledButton.js +3 -4
  51. package/components/Button/StyledButtonKind.js +3 -4
  52. package/components/Button/propTypes.js +1 -2
  53. package/components/Button/stories/Active.js +3 -5
  54. package/components/Button/stories/Basic.js +3 -5
  55. package/components/Button/stories/Busy.js +5 -7
  56. package/components/Button/stories/CustomThemed/Active.js +3 -5
  57. package/components/Button/stories/CustomThemed/Plain.js +3 -5
  58. package/components/Button/stories/CustomThemed/ThemedButtons.js +3 -5
  59. package/components/Button/stories/Fill.js +3 -5
  60. package/components/Button/stories/Icon.js +3 -5
  61. package/components/Button/stories/IconLabel.js +3 -5
  62. package/components/Button/stories/Kind.js +3 -5
  63. package/components/Button/stories/Multiple.js +3 -5
  64. package/components/Button/stories/RoutedButton.js +3 -5
  65. package/components/Button/stories/Sizes.js +3 -5
  66. package/components/Button/stories/TipOnButton.js +3 -5
  67. package/components/Calendar/Calendar.js +4 -6
  68. package/components/Calendar/StyledCalendar.js +8 -14
  69. package/components/Calendar/propTypes.js +1 -2
  70. package/components/Calendar/stories/ActiveDate.js +6 -7
  71. package/components/Calendar/stories/CustomDay.js +6 -7
  72. package/components/Calendar/stories/CustomHeader.js +6 -7
  73. package/components/Calendar/stories/CustomThemed/CustomSizeHeading.js +5 -7
  74. package/components/Calendar/stories/DaylightSavings.js +4 -5
  75. package/components/Calendar/stories/Dual.js +5 -7
  76. package/components/Calendar/stories/Fill.js +3 -5
  77. package/components/Calendar/stories/Multiple.js +5 -7
  78. package/components/Calendar/stories/Range.js +3 -5
  79. package/components/Calendar/stories/ShowAdjacentDays.js +6 -7
  80. package/components/Calendar/stories/Simple.js +5 -7
  81. package/components/Calendar/stories/SundayFirstDay.js +4 -5
  82. package/components/Calendar/utils.js +14 -27
  83. package/components/Card/Card.js +3 -4
  84. package/components/Card/stories/CustomThemed/Clickable.js +3 -5
  85. package/components/Card/stories/CustomThemed/RichFooter.js +3 -5
  86. package/components/Card/stories/CustomThemed/Stacked.js +3 -5
  87. package/components/Card/stories/CustomThemed/Themed.js +3 -5
  88. package/components/Card/stories/Simple.js +3 -5
  89. package/components/CardBody/CardBody.js +4 -5
  90. package/components/CardFooter/CardFooter.js +4 -5
  91. package/components/CardHeader/CardHeader.js +4 -5
  92. package/components/Cards/Cards.js +3 -4
  93. package/components/Cards/propTypes.js +1 -2
  94. package/components/Cards/stories/Children.js +3 -5
  95. package/components/Cards/stories/Paginated.js +3 -5
  96. package/components/Cards/stories/Simple.js +3 -5
  97. package/components/Carousel/Carousel.js +3 -4
  98. package/components/Carousel/CarouselChild.js +3 -4
  99. package/components/Carousel/StyledCarousel.js +6 -9
  100. package/components/Carousel/propTypes.js +2 -4
  101. package/components/Carousel/stories/Autoplay.js +3 -5
  102. package/components/Carousel/stories/ControlVariations.js +4 -5
  103. package/components/Carousel/stories/Controlled.js +4 -5
  104. package/components/Carousel/stories/CustomThemed/Custom.js +3 -5
  105. package/components/Carousel/stories/InteractiveChild.js +4 -5
  106. package/components/Carousel/stories/Multiple.js +3 -5
  107. package/components/Carousel/stories/Simple.js +4 -5
  108. package/components/Chart/Chart.js +3 -4
  109. package/components/Chart/StyledChart.js +3 -4
  110. package/components/Chart/calcs.js +4 -7
  111. package/components/Chart/index.d.ts +4 -4
  112. package/components/Chart/propTypes.js +1 -2
  113. package/components/Chart/stories/Animate.js +4 -5
  114. package/components/Chart/stories/Dash.js +3 -5
  115. package/components/Chart/stories/Gradient.js +4 -5
  116. package/components/Chart/stories/Horizontal.js +3 -5
  117. package/components/Chart/stories/Labelled.js +4 -5
  118. package/components/Chart/stories/Layout.js +3 -5
  119. package/components/Chart/stories/Pattern.js +3 -5
  120. package/components/Chart/stories/Point.js +3 -5
  121. package/components/Chart/stories/Range.js +3 -5
  122. package/components/Chart/stories/Rich.js +5 -7
  123. package/components/Chart/stories/Round.js +3 -5
  124. package/components/Chart/stories/Scan.js +5 -7
  125. package/components/Chart/stories/ValueStyle.js +4 -5
  126. package/components/Chart/stories/Window.js +5 -7
  127. package/components/Chart/stories/Zoom.js +5 -7
  128. package/components/Chart/stories/data.js +1 -2
  129. package/components/Chart/utils.js +6 -11
  130. package/components/CheckBox/CheckBox.js +3 -4
  131. package/components/CheckBox/StyledCheckBox.js +9 -16
  132. package/components/CheckBox/propTypes.js +1 -2
  133. package/components/CheckBox/stories/Children.js +3 -5
  134. package/components/CheckBox/stories/CustomThemed/Custom.js +5 -7
  135. package/components/CheckBox/stories/CustomThemed/CustomToggle.js +5 -7
  136. package/components/CheckBox/stories/Indeterminate.js +5 -7
  137. package/components/CheckBox/stories/InsideButton.js +5 -7
  138. package/components/CheckBox/stories/NoLabel.js +5 -7
  139. package/components/CheckBox/stories/Simple.js +5 -7
  140. package/components/CheckBox/stories/WithStickyDiv.js +5 -7
  141. package/components/CheckBoxGroup/CheckBoxGroup.js +3 -4
  142. package/components/CheckBoxGroup/StyledCheckBoxGroup.js +1 -2
  143. package/components/CheckBoxGroup/propTypes.js +1 -2
  144. package/components/CheckBoxGroup/stories/Children.js +5 -7
  145. package/components/CheckBoxGroup/stories/Disabled.js +3 -5
  146. package/components/CheckBoxGroup/stories/InitialValues.js +5 -7
  147. package/components/CheckBoxGroup/stories/Simple.js +3 -5
  148. package/components/Clock/Analog.js +3 -4
  149. package/components/Clock/Clock.js +3 -4
  150. package/components/Clock/Digital.js +4 -5
  151. package/components/Clock/StyledClock.js +9 -16
  152. package/components/Clock/propTypes.js +1 -2
  153. package/components/Clock/stories/Analog.js +4 -5
  154. package/components/Clock/stories/Countdown.js +4 -5
  155. package/components/Clock/stories/CustomThemed/Digital.js +3 -5
  156. package/components/Collapsible/Collapsible.js +3 -4
  157. package/components/Collapsible/propTypes.js +1 -2
  158. package/components/Collapsible/stories/Horizontal.js +4 -5
  159. package/components/Collapsible/stories/Nested.js +4 -5
  160. package/components/Collapsible/stories/Simple.js +4 -5
  161. package/components/Data/Data.js +3 -4
  162. package/components/Data/DataForm.js +12 -21
  163. package/components/Data/filter.js +2 -3
  164. package/components/Data/propTypes.js +1 -2
  165. package/components/Data/stories/Cards.js +4 -5
  166. package/components/Data/stories/Complex.js +4 -5
  167. package/components/Data/stories/Controlled.js +6 -7
  168. package/components/Data/stories/DataTable.js +4 -5
  169. package/components/Data/stories/Infinite.js +7 -8
  170. package/components/Data/stories/Inline.js +6 -7
  171. package/components/Data/stories/List.js +4 -5
  172. package/components/Data/stories/Simple.js +4 -5
  173. package/components/Data/stories/SpaceX.js +7 -8
  174. package/components/Data/stories/StarWars.js +8 -9
  175. package/components/Data/stories/Views.js +4 -5
  176. package/components/DataChart/DataChart.js +3 -4
  177. package/components/DataChart/Detail.js +4 -5
  178. package/components/DataChart/Legend.js +4 -5
  179. package/components/DataChart/Swatch.js +4 -5
  180. package/components/DataChart/XAxis.js +4 -5
  181. package/components/DataChart/XGuide.js +4 -5
  182. package/components/DataChart/YAxis.js +4 -5
  183. package/components/DataChart/YGuide.js +4 -5
  184. package/components/DataChart/propTypes.js +1 -2
  185. package/components/DataChart/stories/Axis.js +3 -5
  186. package/components/DataChart/stories/Detail.js +3 -5
  187. package/components/DataChart/stories/Everything.js +3 -5
  188. package/components/DataChart/stories/FourDimension.js +4 -5
  189. package/components/DataChart/stories/Guide.js +3 -5
  190. package/components/DataChart/stories/GuideDefault.js +4 -5
  191. package/components/DataChart/stories/Horizontal.js +3 -5
  192. package/components/DataChart/stories/Legend.js +3 -5
  193. package/components/DataChart/stories/MultipleTypes.js +4 -5
  194. package/components/DataChart/stories/Offset.js +4 -5
  195. package/components/DataChart/stories/Pad.js +3 -5
  196. package/components/DataChart/stories/Pattern.js +3 -5
  197. package/components/DataChart/stories/Placeholder.js +3 -5
  198. package/components/DataChart/stories/Prediction.js +5 -7
  199. package/components/DataChart/stories/Simple.js +3 -5
  200. package/components/DataChart/stories/StackedAreas.js +4 -5
  201. package/components/DataChart/stories/StackedBars.js +4 -5
  202. package/components/DataChart/stories/StackedLines.js +4 -5
  203. package/components/DataChart/utils.js +10 -19
  204. package/components/DataFilter/DataFilter.js +3 -4
  205. package/components/DataFilter/propTypes.js +1 -2
  206. package/components/DataFilter/stories/Simple.js +4 -5
  207. package/components/DataFilters/DataFilters.js +7 -8
  208. package/components/DataFilters/propTypes.js +1 -2
  209. package/components/DataFilters/stories/Drop.js +4 -5
  210. package/components/DataFilters/stories/Inline.js +4 -5
  211. package/components/DataFilters/stories/Layer.js +4 -5
  212. package/components/DataFilters/stories/Simple.js +4 -5
  213. package/components/DataSearch/DataSearch.js +3 -4
  214. package/components/DataSearch/propTypes.js +1 -2
  215. package/components/DataSearch/stories/Drop.js +4 -5
  216. package/components/DataSearch/stories/Responsive.js +4 -5
  217. package/components/DataSearch/stories/Simple.js +4 -5
  218. package/components/DataSort/DataSort.js +3 -4
  219. package/components/DataSort/propTypes.js +1 -2
  220. package/components/DataSort/stories/Drop.js +4 -5
  221. package/components/DataSort/stories/Simple.js +4 -5
  222. package/components/DataSummary/DataSummary.js +3 -4
  223. package/components/DataSummary/propTypes.js +1 -2
  224. package/components/DataSummary/stories/Simple.js +4 -5
  225. package/components/DataTable/Body.js +5 -6
  226. package/components/DataTable/Cell.js +3 -4
  227. package/components/DataTable/DataTable.js +8 -6
  228. package/components/DataTable/ExpanderCell.js +3 -4
  229. package/components/DataTable/Footer.js +3 -4
  230. package/components/DataTable/GroupedBody.js +4 -5
  231. package/components/DataTable/Header.js +8 -8
  232. package/components/DataTable/PlaceholderBody.js +4 -5
  233. package/components/DataTable/Resizer.js +3 -4
  234. package/components/DataTable/Searcher.js +3 -4
  235. package/components/DataTable/Sorter.js +3 -4
  236. package/components/DataTable/StyledDataTable.js +11 -19
  237. package/components/DataTable/buildState.js +13 -25
  238. package/components/DataTable/index.d.ts +1 -0
  239. package/components/DataTable/propTypes.js +2 -2
  240. package/components/DataTable/stories/AllowSelectAll.js +110 -0
  241. package/components/DataTable/stories/ColumnSize.js +4 -5
  242. package/components/DataTable/stories/Controlled.js +4 -5
  243. package/components/DataTable/stories/ControlledGrouped.js +6 -7
  244. package/components/DataTable/stories/CustomThemed/Custom.js +3 -5
  245. package/components/DataTable/stories/CustomThemed/Fill.js +3 -5
  246. package/components/DataTable/stories/Grouped.js +4 -5
  247. package/components/DataTable/stories/GroupedOnSelect.js +4 -5
  248. package/components/DataTable/stories/InfiniteScrollDataTable.js +4 -5
  249. package/components/DataTable/stories/MultiplePin.js +4 -5
  250. package/components/DataTable/stories/NoPrimary.js +4 -5
  251. package/components/DataTable/stories/OnUpdate.js +6 -7
  252. package/components/DataTable/stories/Placeholder.js +3 -5
  253. package/components/DataTable/stories/ResizableColumns.js +4 -5
  254. package/components/DataTable/stories/Served.js +4 -5
  255. package/components/DataTable/stories/Show.js +3 -5
  256. package/components/DataTable/stories/Simple.js +3 -5
  257. package/components/DataTable/stories/Sized.js +4 -5
  258. package/components/DataTable/stories/Sort.js +3 -5
  259. package/components/DataTable/stories/SpaceX.js +7 -8
  260. package/components/DataTable/stories/SpaceXUngrouped.js +7 -8
  261. package/components/DataTable/stories/Styled.js +4 -5
  262. package/components/DataTable/stories/Tunable.js +4 -5
  263. package/components/DataTable/stories/Units.js +4 -5
  264. package/components/DataTable/stories/VerticalAlign.js +4 -5
  265. package/components/DataTable/stories/data.js +8 -15
  266. package/components/DataTable/stories/rowDetails.js +4 -5
  267. package/components/DataTableColumns/DataTableColumns.js +3 -4
  268. package/components/DataTableColumns/propTypes.js +1 -2
  269. package/components/DataTableColumns/stories/Simple.js +4 -5
  270. package/components/DataTableGroupBy/DataTableGroupBy.js +3 -4
  271. package/components/DataTableGroupBy/propTypes.js +1 -2
  272. package/components/DataTableGroupBy/stories/Simple.js +4 -5
  273. package/components/DataView/DataView.js +3 -4
  274. package/components/DataView/propTypes.js +1 -2
  275. package/components/DataView/stories/Simple.js +4 -5
  276. package/components/DateInput/DateInput.js +4 -5
  277. package/components/DateInput/propTypes.js +1 -2
  278. package/components/DateInput/stories/Form.js +3 -5
  279. package/components/DateInput/stories/Format.js +3 -5
  280. package/components/DateInput/stories/FormatInline.js +5 -7
  281. package/components/DateInput/stories/Inline.js +3 -5
  282. package/components/DateInput/stories/Range.js +3 -5
  283. package/components/DateInput/stories/RangeFormat.js +3 -5
  284. package/components/DateInput/stories/ResetDate.js +4 -7
  285. package/components/DateInput/stories/Simple.js +3 -5
  286. package/components/DateInput/utils.js +7 -13
  287. package/components/Diagram/Diagram.js +3 -4
  288. package/components/Diagram/StyledDiagram.js +3 -4
  289. package/components/Diagram/propTypes.js +1 -2
  290. package/components/Diagram/stories/Animated.js +5 -7
  291. package/components/Diagram/stories/Progressing.js +6 -7
  292. package/components/Diagram/stories/data.js +2 -3
  293. package/components/Distribution/Distribution.js +1 -2
  294. package/components/Distribution/propTypes.js +1 -2
  295. package/components/Drop/Drop.js +3 -4
  296. package/components/Drop/DropContainer.js +59 -15
  297. package/components/Drop/StyledDrop.js +3 -4
  298. package/components/Drop/propTypes.js +1 -2
  299. package/components/Drop/stories/AllNotStretched.js +3 -5
  300. package/components/Drop/stories/CustomThemed/Lazy.js +5 -7
  301. package/components/Drop/stories/CustomThemed/Themed.js +5 -7
  302. package/components/Drop/stories/Inline.js +5 -7
  303. package/components/Drop/stories/Meter.js +5 -7
  304. package/components/Drop/stories/Multiple.js +5 -7
  305. package/components/Drop/stories/Overflow.js +5 -7
  306. package/components/Drop/stories/Plain.js +5 -7
  307. package/components/Drop/stories/Progressive.js +5 -7
  308. package/components/Drop/stories/Simple.js +5 -7
  309. package/components/Drop/stories/Styled.js +5 -7
  310. package/components/Drop/stories/TrapFocus.js +6 -7
  311. package/components/DropButton/DropButton.js +3 -4
  312. package/components/DropButton/propTypes.js +1 -2
  313. package/components/DropButton/stories/Menu.js +3 -5
  314. package/components/DropButton/stories/Simple.js +3 -5
  315. package/components/FileInput/FileInput.js +3 -4
  316. package/components/FileInput/StyledFileInput.js +1 -2
  317. package/components/FileInput/propTypes.js +1 -2
  318. package/components/FileInput/stories/ConfirmRemove.js +3 -5
  319. package/components/FileInput/stories/CustomThemed/Custom.js +3 -5
  320. package/components/FileInput/stories/MaxFileCount.js +3 -5
  321. package/components/FileInput/stories/MaxSize.js +3 -5
  322. package/components/FileInput/stories/Multiple.js +3 -5
  323. package/components/FileInput/stories/Simple.js +3 -5
  324. package/components/FileInput/utils/formatBytes.js +1 -2
  325. package/components/FocusedContainer.js +4 -5
  326. package/components/Footer/Footer.js +2 -3
  327. package/components/Footer/stories/DoubleFooter.js +4 -5
  328. package/components/Footer/stories/Simple.js +3 -5
  329. package/components/Footer/stories/Sitemap.js +3 -5
  330. package/components/Footer/stories/Social.js +3 -5
  331. package/components/Footer/stories/data.js +2 -4
  332. package/components/Form/Form.js +3 -4
  333. package/components/Form/FormContext.js +4 -5
  334. package/components/Form/propTypes.js +1 -2
  335. package/components/Form/stories/AggregateValidation.js +4 -5
  336. package/components/Form/stories/ArrayOfFormFields.js +5 -7
  337. package/components/Form/stories/Controlled.js +6 -7
  338. package/components/Form/stories/ControlledInput.js +6 -7
  339. package/components/Form/stories/ControlledInputLazy.js +6 -7
  340. package/components/Form/stories/ControlledLazy.js +6 -7
  341. package/components/Form/stories/CustomThemed/Custom.js +3 -5
  342. package/components/Form/stories/CustomThemed/FieldBorderPosition.js +6 -7
  343. package/components/Form/stories/CustomThemed/FieldCustomStates.js +5 -7
  344. package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +3 -5
  345. package/components/Form/stories/CustomThemed/RequiredLabel.js +3 -5
  346. package/components/Form/stories/CustomThemed/Themed.js +3 -5
  347. package/components/Form/stories/DynamicFields.js +6 -7
  348. package/components/Form/stories/FieldStates.js +6 -7
  349. package/components/Form/stories/FieldWithChildren.js +4 -5
  350. package/components/Form/stories/FieldWithComponentProp.js +4 -5
  351. package/components/Form/stories/HelpAndError.js +4 -5
  352. package/components/Form/stories/SolicitedFeedback.js +6 -7
  353. package/components/Form/stories/TriggerValidationUsingFormField.js +3 -5
  354. package/components/Form/stories/Uncontrolled.js +4 -5
  355. package/components/Form/stories/UnsolicitedFeedback.js +6 -7
  356. package/components/Form/stories/ValidateOnBlur.js +4 -5
  357. package/components/Form/stories/ValidateOnChange.js +6 -7
  358. package/components/Form/stories/ValidateOnMount.js +6 -7
  359. package/components/FormField/FormField.js +3 -4
  360. package/components/FormField/propTypes.js +1 -2
  361. package/components/FormField/stories/Simple.js +5 -7
  362. package/components/Grid/Grid.js +3 -4
  363. package/components/Grid/StyledGrid.js +3 -4
  364. package/components/Grid/propTypes.js +1 -2
  365. package/components/Grid/stories/AreasPropAlternative.js +4 -5
  366. package/components/Grid/stories/Border.js +4 -5
  367. package/components/Grid/stories/CustomThemed/Responsive.js +3 -5
  368. package/components/Grid/stories/NColumn.js +4 -5
  369. package/components/Grid/stories/Percentages.js +4 -5
  370. package/components/Grid/stories/ResponsiveCards.js +6 -7
  371. package/components/Grommet/Grommet.js +3 -4
  372. package/components/Grommet/StyledGrommet.js +3 -4
  373. package/components/Grommet/index.d.ts +75 -0
  374. package/components/Grommet/propTypes.js +77 -3
  375. package/components/Grommet/stories/Background.js +3 -5
  376. package/components/Grommet/stories/Messages.js +3 -5
  377. package/components/Grommet/stories/Plain.js +3 -5
  378. package/components/Grommet/stories/Theme.js +3 -5
  379. package/components/Grommet/stories/ThemeMode.js +3 -5
  380. package/components/Grommet/stories/Vars.js +3 -5
  381. package/components/Header/Header.js +3 -4
  382. package/components/Header/propTypes.js +1 -2
  383. package/components/Header/stories/Responsive.js +3 -5
  384. package/components/Header/stories/Sticky.js +6 -7
  385. package/components/Heading/Heading.js +3 -4
  386. package/components/Heading/HeadingSkeleton.js +3 -4
  387. package/components/Heading/StyledHeading.js +3 -4
  388. package/components/Heading/propTypes.js +1 -2
  389. package/components/Heading/stories/All.js +3 -5
  390. package/components/Heading/stories/CustomThemed/CustomHeading.js +3 -5
  391. package/components/Heading/stories/CustomThemed/Extend.js +3 -5
  392. package/components/Image/Image.js +3 -4
  393. package/components/Image/StyledImage.js +3 -4
  394. package/components/Image/propTypes.js +1 -2
  395. package/components/Image/stories/Fallback.js +3 -5
  396. package/components/Image/stories/Fill.js +3 -5
  397. package/components/Image/stories/Fit.js +3 -5
  398. package/components/Image/stories/Opacity.js +3 -5
  399. package/components/Image/stories/Simple.js +3 -5
  400. package/components/InfiniteScroll/InfiniteScroll.js +3 -4
  401. package/components/InfiniteScroll/propTypes.js +1 -2
  402. package/components/InfiniteScroll/stories/Basics.js +3 -5
  403. package/components/InfiniteScroll/stories/ClassChildren.js +4 -5
  404. package/components/InfiniteScroll/stories/Grid.js +4 -5
  405. package/components/InfiniteScroll/stories/GridWithShow.js +4 -5
  406. package/components/InfiniteScroll/stories/HeightReplace.js +4 -5
  407. package/components/InfiniteScroll/stories/Marker.js +3 -5
  408. package/components/InfiniteScroll/stories/Replace.js +4 -5
  409. package/components/InfiniteScroll/stories/Show.js +3 -5
  410. package/components/InfiniteScroll/stories/ShowAfter.js +3 -5
  411. package/components/InfiniteScroll/stories/ShowBefore.js +3 -5
  412. package/components/InfiniteScroll/stories/Variable.js +4 -5
  413. package/components/Keyboard/Keyboard.js +1 -2
  414. package/components/Keyboard/propTypes.js +1 -2
  415. package/components/Keyboard/stories/OnDocument.js +3 -5
  416. package/components/Layer/Layer.js +3 -4
  417. package/components/Layer/LayerContainer.js +4 -5
  418. package/components/Layer/PortalContext.js +1 -2
  419. package/components/Layer/StyledLayer.js +6 -10
  420. package/components/Layer/propTypes.js +1 -2
  421. package/components/Layer/stories/Center.js +4 -5
  422. package/components/Layer/stories/Corner.js +4 -5
  423. package/components/Layer/stories/CustomThemed/Round.js +3 -5
  424. package/components/Layer/stories/Form.js +4 -5
  425. package/components/Layer/stories/Full.js +4 -5
  426. package/components/Layer/stories/Notification.js +4 -5
  427. package/components/Layer/stories/Plain.js +4 -5
  428. package/components/Layer/stories/RTL.js +4 -5
  429. package/components/Layer/stories/ScrollBody.js +4 -5
  430. package/components/Layer/stories/Target.js +4 -5
  431. package/components/List/List.js +3 -4
  432. package/components/List/propTypes.js +1 -2
  433. package/components/List/stories/Action.js +3 -5
  434. package/components/List/stories/Basic.js +3 -5
  435. package/components/List/stories/Children.js +3 -5
  436. package/components/List/stories/Disabled.js +3 -5
  437. package/components/List/stories/Order.js +5 -7
  438. package/components/List/stories/Paginated.js +3 -5
  439. package/components/List/stories/Pinned.js +5 -7
  440. package/components/List/stories/RenderedList.js +6 -5
  441. package/components/List/stories/Selection.js +3 -5
  442. package/components/List/stories/Show.js +3 -5
  443. package/components/List/stories/onClickItem.js +3 -5
  444. package/components/List/stories/secondaryKey.js +3 -5
  445. package/components/Main/Main.js +2 -3
  446. package/components/Markdown/Markdown.js +3 -4
  447. package/components/Markdown/propTypes.js +1 -2
  448. package/components/Markdown/stories/Override.js +4 -5
  449. package/components/Markdown/stories/Simple.js +3 -5
  450. package/components/MaskedInput/MaskedInput.js +3 -4
  451. package/components/MaskedInput/StyledMaskedInput.js +4 -7
  452. package/components/MaskedInput/propTypes.js +1 -2
  453. package/components/MaskedInput/stories/CustomBox.js +4 -5
  454. package/components/MaskedInput/stories/Date.js +4 -5
  455. package/components/MaskedInput/stories/DateRange.js +4 -5
  456. package/components/MaskedInput/stories/DateTimeDrop.js +4 -5
  457. package/components/MaskedInput/stories/Filtered.js +4 -5
  458. package/components/MaskedInput/stories/Form.js +4 -5
  459. package/components/MaskedInput/stories/IPV4Range.js +4 -5
  460. package/components/MaskedInput/stories/IPv4Address.js +4 -5
  461. package/components/MaskedInput/stories/Phone.js +4 -5
  462. package/components/MaskedInput/stories/SizeUnits.js +4 -5
  463. package/components/MaskedInput/stories/Time.js +4 -5
  464. package/components/MaskedInput/stories/URL.js +4 -5
  465. package/components/Menu/Menu.js +3 -4
  466. package/components/Menu/propTypes.js +1 -2
  467. package/components/Menu/stories/BottomControlButton.js +3 -5
  468. package/components/Menu/stories/Grouped.js +4 -5
  469. package/components/Menu/stories/ItemWithIcon.js +3 -5
  470. package/components/Menu/stories/Justify.js +3 -5
  471. package/components/Menu/stories/Reverse.js +3 -5
  472. package/components/Menu/stories/Simple.js +3 -5
  473. package/components/Meter/Bar.js +3 -4
  474. package/components/Meter/Circle.js +3 -4
  475. package/components/Meter/Meter.js +3 -4
  476. package/components/Meter/StyledMeter.js +3 -4
  477. package/components/Meter/propTypes.js +1 -2
  478. package/components/Meter/stories/Bar.js +3 -5
  479. package/components/Meter/stories/Circle.js +5 -7
  480. package/components/Meter/stories/Labelled.js +3 -5
  481. package/components/Meter/stories/Pie.js +3 -5
  482. package/components/Meter/stories/ReverseBar.js +3 -5
  483. package/components/Meter/stories/SemiCircle.js +3 -5
  484. package/components/Meter/stories/VerticalBar.js +3 -5
  485. package/components/Meter/stories/VerticalBarMultiple.js +6 -7
  486. package/components/Meter/utils.js +3 -5
  487. package/components/NameValueList/NameValueList.js +3 -4
  488. package/components/NameValueList/NameValueListContext.js +1 -2
  489. package/components/NameValueList/propTypes.js +1 -2
  490. package/components/NameValueList/stories/Align.js +3 -5
  491. package/components/NameValueList/stories/CustomName.js +3 -5
  492. package/components/NameValueList/stories/CustomValue.js +3 -5
  493. package/components/NameValueList/stories/Layout.js +3 -5
  494. package/components/NameValueList/stories/PairProps.js +3 -5
  495. package/components/NameValueList/stories/Simple.js +3 -5
  496. package/components/NameValueList/stories/Width.js +3 -5
  497. package/components/NameValueList/stories/data.js +5 -9
  498. package/components/NameValuePair/NameValuePair.js +4 -5
  499. package/components/NameValuePair/propTypes.js +1 -2
  500. package/components/Nav/Nav.js +2 -3
  501. package/components/Nav/stories/Collapsable.js +3 -5
  502. package/components/Nav/stories/CustomThemed/CustomAnchor.js +3 -5
  503. package/components/Nav/stories/CustomThemed/JustifySidebar.js +5 -7
  504. package/components/Nav/stories/OnHeader.js +3 -5
  505. package/components/Nav/stories/Sidebar.js +5 -7
  506. package/components/Nav/stories/Simple.js +3 -5
  507. package/components/Notification/Notification.js +3 -4
  508. package/components/Notification/propTypes.js +1 -2
  509. package/components/Notification/stories/Global.js +5 -7
  510. package/components/Notification/stories/Status.js +3 -5
  511. package/components/Notification/stories/Title.js +5 -7
  512. package/components/Notification/stories/TitleAndMessage.js +5 -7
  513. package/components/Page/Page.js +3 -4
  514. package/components/Page/PageContext.js +1 -2
  515. package/components/Page/propTypes.js +1 -2
  516. package/components/Page/stories/Background.js +3 -5
  517. package/components/Page/stories/ContentBackground.js +4 -5
  518. package/components/Page/stories/CustomThemed/LeftColumn.js +3 -5
  519. package/components/Page/stories/GlobalHeader.js +4 -5
  520. package/components/Page/stories/MultipleBackgrounds.js +4 -5
  521. package/components/Page/stories/MultipleContent.js +4 -5
  522. package/components/Page/stories/PageNotificaton.js +5 -7
  523. package/components/Page/stories/Simple.js +3 -5
  524. package/components/PageContent/PageContent.js +3 -4
  525. package/components/PageContent/propTypes.js +1 -2
  526. package/components/PageHeader/PageHeader.js +8 -6
  527. package/components/PageHeader/index.d.ts +1 -0
  528. package/components/PageHeader/propTypes.js +2 -2
  529. package/components/PageHeader/stories/Custom.js +3 -5
  530. package/components/PageHeader/stories/Level.js +34 -0
  531. package/components/PageHeader/stories/MultipleActions.js +6 -7
  532. package/components/PageHeader/stories/Responsive.js +3 -5
  533. package/components/PageHeader/stories/Simple.js +3 -5
  534. package/components/PageHeader/stories/Size.js +3 -5
  535. package/components/Pagination/PageControl.js +4 -5
  536. package/components/Pagination/Pagination.js +3 -4
  537. package/components/Pagination/StyledPageControl.js +4 -7
  538. package/components/Pagination/propTypes.js +1 -2
  539. package/components/Pagination/stories/Grid.js +6 -7
  540. package/components/Pagination/stories/NumberEdgePages.js +4 -5
  541. package/components/Pagination/stories/NumberMiddlePages.js +4 -5
  542. package/components/Pagination/stories/Simple.js +3 -5
  543. package/components/Pagination/stories/Size.js +3 -5
  544. package/components/Paragraph/Paragraph.js +3 -4
  545. package/components/Paragraph/ParagraphSkeleton.js +3 -4
  546. package/components/Paragraph/StyledParagraph.js +3 -4
  547. package/components/Paragraph/propTypes.js +1 -2
  548. package/components/Paragraph/stories/All.js +3 -5
  549. package/components/Paragraph/stories/CustomThemed/Themed.js +3 -5
  550. package/components/Paragraph/stories/MaxLines.js +3 -5
  551. package/components/RadioButton/RadioButton.js +10 -4
  552. package/components/RadioButton/StyledRadioButton.js +9 -16
  553. package/components/RadioButton/propTypes.js +1 -2
  554. package/components/RadioButton/stories/Children.js +3 -5
  555. package/components/RadioButton/stories/CustomThemed/Theme.js +3 -5
  556. package/components/RadioButton/stories/Disabled.js +3 -5
  557. package/components/RadioButton/stories/Simple.js +3 -5
  558. package/components/RadioButtonGroup/RadioButtonGroup.js +3 -4
  559. package/components/RadioButtonGroup/propTypes.js +1 -2
  560. package/components/RadioButtonGroup/stories/Children.js +5 -7
  561. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +5 -7
  562. package/components/RadioButtonGroup/stories/Disabled.js +5 -7
  563. package/components/RangeInput/RangeInput.js +3 -4
  564. package/components/RangeInput/StyledRangeInput.js +4 -4
  565. package/components/RangeInput/propTypes.js +1 -2
  566. package/components/RangeInput/stories/CustomThemed/Bounds.js +3 -5
  567. package/components/RangeInput/stories/CustomThemed/Disabled.js +3 -5
  568. package/components/RangeInput/stories/CustomThemed/TrackColor.js +3 -5
  569. package/components/RangeInput/stories/SimpleRange.js +3 -5
  570. package/components/RangeSelector/EdgeControl.js +3 -4
  571. package/components/RangeSelector/RangeSelector.js +3 -4
  572. package/components/RangeSelector/index.d.ts +1 -1
  573. package/components/RangeSelector/propTypes.js +1 -2
  574. package/components/RangeSelector/stories/Basics.js +5 -7
  575. package/components/RangeSelector/stories/CustomThemed/Custom.js +5 -7
  576. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +5 -7
  577. package/components/RangeSelector/stories/Label.js +5 -7
  578. package/components/RangeSelector/stories/Simple.js +5 -7
  579. package/components/RangeSelector/stories/Step.js +5 -7
  580. package/components/RangeSelector/stories/Thin.js +6 -7
  581. package/components/RangeSelector/stories/Vertical.js +5 -7
  582. package/components/RoutedAnchor/RoutedAnchor.js +3 -4
  583. package/components/RoutedButton/RoutedButton.js +3 -4
  584. package/components/Select/DefaultSelectTextInput.js +4 -5
  585. package/components/Select/EmptySearchOption.js +2 -3
  586. package/components/Select/Select.js +3 -4
  587. package/components/Select/SelectContainer.js +5 -6
  588. package/components/Select/StyledSelect.js +7 -13
  589. package/components/Select/propTypes.js +2 -4
  590. package/components/Select/stories/ChildrenRender.js +6 -7
  591. package/components/Select/stories/Clear.js +6 -7
  592. package/components/Select/stories/Controlled.js +6 -7
  593. package/components/Select/stories/CustomThemed/CustomSearch.js +5 -7
  594. package/components/Select/stories/Disabled.js +6 -7
  595. package/components/Select/stories/InsideFormField.js +6 -7
  596. package/components/Select/stories/LazyLoadingOptions.js +4 -5
  597. package/components/Select/stories/ManyOptions.js +4 -5
  598. package/components/Select/stories/Multiple.js +6 -7
  599. package/components/Select/stories/ObjectOptions.js +6 -7
  600. package/components/Select/stories/Search.js +6 -7
  601. package/components/Select/stories/Simple.js +6 -7
  602. package/components/Select/stories/Uncontrolled.js +4 -5
  603. package/components/Select/stories/ValueLabel.js +6 -7
  604. package/components/Select/stories/components/SearchBorderBox.js +4 -5
  605. package/components/Select/stories/components/SearchInput.js +4 -5
  606. package/components/Select/stories/theme.js +2 -3
  607. package/components/Select/utils.js +12 -23
  608. package/components/SelectMultiple/SelectMultiple.js +3 -4
  609. package/components/SelectMultiple/SelectMultipleContainer.js +5 -6
  610. package/components/SelectMultiple/SelectMultipleValue.js +4 -5
  611. package/components/SelectMultiple/SelectionSummary.js +4 -5
  612. package/components/SelectMultiple/propTypes.js +1 -2
  613. package/components/SelectMultiple/stories/Default.js +6 -7
  614. package/components/SelectMultiple/stories/Disabled.js +6 -7
  615. package/components/SelectMultiple/stories/FormField.js +6 -7
  616. package/components/SelectMultiple/stories/Help.js +6 -7
  617. package/components/SelectMultiple/stories/Limited.js +6 -7
  618. package/components/SelectMultiple/stories/LongList.js +4 -5
  619. package/components/SelectMultiple/stories/ObjectOptions.js +6 -7
  620. package/components/SelectMultiple/stories/ShowSelectedInline.js +6 -7
  621. package/components/Sidebar/Sidebar.js +1 -2
  622. package/components/Sidebar/propTypes.js +1 -2
  623. package/components/Sidebar/stories/Labels.js +4 -5
  624. package/components/Skeleton/Skeleton.js +3 -4
  625. package/components/Skeleton/SkeletonContext.js +5 -7
  626. package/components/Skeleton/StyledSkeleton.js +2 -3
  627. package/components/Skeleton/propTypes.js +1 -2
  628. package/components/Skeleton/stories/CustomThemed/Custom.js +5 -7
  629. package/components/Skeleton/stories/GridContainer.js +5 -7
  630. package/components/Skeleton/stories/Group.js +5 -7
  631. package/components/Skeleton/stories/Individual.js +5 -7
  632. package/components/Skeleton/stories/Simple.js +3 -5
  633. package/components/SkipLink/SkipLink.js +4 -5
  634. package/components/SkipLinkTarget/SkipLinkTarget.js +2 -3
  635. package/components/SkipLinks/SkipLinks.js +3 -4
  636. package/components/SkipLinks/propTypes.js +1 -2
  637. package/components/SkipLinks/stories/CustomThemed/Themed.js +3 -5
  638. package/components/SkipLinks/stories/Simple.js +4 -5
  639. package/components/Spinner/Spinner.js +3 -4
  640. package/components/Spinner/propTypes.js +1 -2
  641. package/components/Spinner/stories/Animation.js +5 -7
  642. package/components/Spinner/stories/Announced.js +5 -7
  643. package/components/Spinner/stories/Border.js +3 -5
  644. package/components/Spinner/stories/ChildrenSpinner.js +3 -5
  645. package/components/Spinner/stories/Color.js +3 -5
  646. package/components/Spinner/stories/Modal.js +3 -5
  647. package/components/Spinner/stories/Round.js +3 -5
  648. package/components/Spinner/stories/Simple.js +3 -5
  649. package/components/Spinner/stories/Size.js +3 -5
  650. package/components/Stack/Stack.js +3 -4
  651. package/components/Stack/StyledStack.js +4 -6
  652. package/components/Stack/propTypes.js +1 -2
  653. package/components/Stack/stories/Fill.js +4 -5
  654. package/components/Stack/stories/Simple.js +3 -5
  655. package/components/StarRating/StarRating.js +3 -4
  656. package/components/StarRating/stories/simple.js +3 -5
  657. package/components/Tab/StyledTab.js +3 -4
  658. package/components/Tab/Tab.js +3 -4
  659. package/components/Tab/propTypes.js +1 -2
  660. package/components/Table/StyledTable.js +9 -16
  661. package/components/Table/Table.js +3 -4
  662. package/components/Table/TableContext.js +1 -2
  663. package/components/Table/propTypes.js +1 -2
  664. package/components/Table/stories/CustomThemed/Custom.js +3 -5
  665. package/components/Table/stories/Default.js +3 -5
  666. package/components/Table/stories/InfiniteScrollInTable.js +6 -7
  667. package/components/Table/stories/MeterInTable.js +4 -5
  668. package/components/Table/stories/data.js +3 -5
  669. package/components/TableBody/TableBody.js +3 -4
  670. package/components/TableCell/TableCell.js +4 -6
  671. package/components/TableCell/propTypes.js +1 -2
  672. package/components/TableFooter/TableFooter.js +3 -4
  673. package/components/TableHeader/TableHeader.js +3 -4
  674. package/components/TableRow/TableRow.js +3 -4
  675. package/components/Tabs/StyledTabs.js +5 -8
  676. package/components/Tabs/Tabs.js +3 -4
  677. package/components/Tabs/TabsContext.js +1 -2
  678. package/components/Tabs/propTypes.js +1 -2
  679. package/components/Tabs/stories/CustomThemed/Custom.js +3 -5
  680. package/components/Tabs/stories/CustomThemed/States.js +5 -7
  681. package/components/Tabs/stories/Responsive.js +5 -7
  682. package/components/Tabs/stories/Rich.js +4 -5
  683. package/components/Tabs/stories/Scrollable.js +3 -5
  684. package/components/Tag/StyledTag.js +2 -4
  685. package/components/Tag/Tag.js +6 -6
  686. package/components/Tag/propTypes.js +1 -2
  687. package/components/Tag/stories/OnClick.js +3 -5
  688. package/components/Tag/stories/OnRemove.js +3 -5
  689. package/components/Tag/stories/Simple.js +3 -5
  690. package/components/Tag/stories/Size.js +3 -5
  691. package/components/Text/StyledText.js +3 -4
  692. package/components/Text/Text.js +3 -4
  693. package/components/Text/TextContext.js +1 -2
  694. package/components/Text/TextSkeleton.js +3 -4
  695. package/components/Text/propTypes.js +1 -2
  696. package/components/Text/stories/All.js +3 -5
  697. package/components/Text/stories/Tip.js +3 -5
  698. package/components/Text/stories/WordBreak.js +3 -5
  699. package/components/TextArea/StyledTextArea.js +3 -4
  700. package/components/TextArea/TextArea.js +3 -4
  701. package/components/TextArea/propTypes.js +1 -2
  702. package/components/TextArea/stories/CustomThemed/Themed.js +5 -7
  703. package/components/TextArea/stories/InsideFormField.js +6 -7
  704. package/components/TextArea/stories/NonResizable.js +5 -7
  705. package/components/TextArea/stories/Simple.js +5 -7
  706. package/components/TextInput/StyledTextInput.js +7 -12
  707. package/components/TextInput/TextInput.js +3 -4
  708. package/components/TextInput/propTypes.js +1 -2
  709. package/components/TextInput/stories/CustomThemed/Themed.js +3 -5
  710. package/components/TextInput/stories/DefaultSuggestion.js +4 -5
  711. package/components/TextInput/stories/Icon.js +3 -5
  712. package/components/TextInput/stories/InsideFormField.js +6 -7
  713. package/components/TextInput/stories/OnSelect.js +4 -5
  714. package/components/TextInput/stories/Password.js +3 -5
  715. package/components/TextInput/stories/Simple.js +4 -5
  716. package/components/TextInput/stories/StyledPlaceholder.js +4 -5
  717. package/components/TextInput/stories/Suggestions.js +4 -5
  718. package/components/TextInput/stories/Uncontrolled.js +4 -5
  719. package/components/TextInput/stories/WithTags.js +4 -5
  720. package/components/ThumbsRating/ThumbsRating.js +3 -4
  721. package/components/ThumbsRating/stories/simple.js +3 -5
  722. package/components/Tip/Tip.js +15 -6
  723. package/components/Tip/propTypes.js +1 -2
  724. package/components/Tip/stories/Caret.js +4 -5
  725. package/components/Tip/stories/CustomThemed/ResponsiveTip.js +3 -5
  726. package/components/Tip/stories/CustomThemed/SidebarTip.js +3 -5
  727. package/components/Tip/stories/HeaderActions.js +6 -7
  728. package/components/Tip/stories/InfoTip.js +4 -5
  729. package/components/Toolbar/Toolbar.js +3 -4
  730. package/components/Toolbar/propTypes.js +1 -2
  731. package/components/Toolbar/stories/Simple.js +4 -5
  732. package/components/Video/StyledVideo.js +6 -10
  733. package/components/Video/Video.js +4 -5
  734. package/components/Video/propTypes.js +1 -2
  735. package/components/WorldMap/StyledWorldMap.js +1 -2
  736. package/components/WorldMap/WorldMap.js +3 -4
  737. package/components/WorldMap/propTypes.js +1 -2
  738. package/components/WorldMap/stories/Color.js +3 -5
  739. package/components/WorldMap/stories/Continents.js +3 -5
  740. package/components/WorldMap/stories/Places.js +3 -5
  741. package/components/WorldMap/stories/SelectPlace.js +3 -5
  742. package/components/WorldMap/stories/Simple.js +3 -5
  743. package/contexts/AnalyticsContext/AnalyticsContext.js +6 -9
  744. package/contexts/AnnounceContext/AnnounceContext.js +1 -2
  745. package/contexts/AnnounceContext/propTypes.js +1 -2
  746. package/contexts/AnnounceContext/stories/Assertive.js +3 -5
  747. package/contexts/AnnounceContext/stories/Polite.js +5 -7
  748. package/contexts/ContainerTargetContext/ContainerTargetContext.js +1 -2
  749. package/contexts/DataContext.js +2 -3
  750. package/contexts/MessageContext/MessageContext.js +3 -5
  751. package/contexts/OptionsContext.js +1 -2
  752. package/contexts/ResponsiveContext/ResponsiveContext.js +1 -2
  753. package/contexts/ResponsiveContext/propTypes.js +1 -2
  754. package/contexts/ResponsiveContext/stories/CustomBreakpoints.js +3 -5
  755. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +3 -5
  756. package/contexts/RootsContext.js +1 -2
  757. package/contexts/ThemeContext/propTypes.js +1 -2
  758. package/contexts/ThemeContext/stories/ExternalComponent.js +3 -5
  759. package/contexts/ThemeContext/stories/ThemeContextExtend.js +5 -7
  760. package/default-props.js +3 -5
  761. package/es6/components/Box/index.d.ts +1 -1
  762. package/es6/components/Box/stories/Round.js +1 -1
  763. package/es6/components/Box/stories/Simple.js +4 -3
  764. package/es6/components/Chart/index.d.ts +4 -4
  765. package/es6/components/Data/stories/Infinite.js +1 -1
  766. package/es6/components/Data/stories/SpaceX.js +1 -1
  767. package/es6/components/Data/stories/StarWars.js +2 -2
  768. package/es6/components/DataFilters/DataFilters.js +4 -4
  769. package/es6/components/DataTable/Body.js +1 -1
  770. package/es6/components/DataTable/DataTable.js +5 -2
  771. package/es6/components/DataTable/Header.js +5 -4
  772. package/es6/components/DataTable/index.d.ts +1 -0
  773. package/es6/components/DataTable/propTypes.js +1 -0
  774. package/es6/components/DataTable/stories/AllowSelectAll.js +105 -0
  775. package/es6/components/DataTable/stories/SpaceX.js +1 -1
  776. package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
  777. package/es6/components/DateInput/DateInput.js +1 -1
  778. package/es6/components/Drop/DropContainer.js +55 -10
  779. package/es6/components/Grommet/index.d.ts +75 -0
  780. package/es6/components/Grommet/propTypes.js +76 -1
  781. package/es6/components/List/stories/RenderedList.js +3 -0
  782. package/es6/components/PageHeader/PageHeader.js +5 -2
  783. package/es6/components/PageHeader/index.d.ts +1 -0
  784. package/es6/components/PageHeader/propTypes.js +1 -0
  785. package/es6/components/PageHeader/stories/Level.js +29 -0
  786. package/es6/components/RadioButton/RadioButton.js +7 -0
  787. package/es6/components/RadioButton/StyledRadioButton.js +1 -2
  788. package/es6/components/RangeSelector/index.d.ts +1 -1
  789. package/es6/components/Select/SelectContainer.js +1 -1
  790. package/es6/components/SelectMultiple/SelectMultipleContainer.js +1 -1
  791. package/es6/components/Tag/Tag.js +3 -2
  792. package/es6/components/Tip/Tip.js +12 -2
  793. package/es6/components/Video/Video.js +1 -1
  794. package/es6/contexts/MessageContext/MessageContext.js +1 -1
  795. package/es6/languages/default.json +5 -5
  796. package/es6/themes/base.d.ts +6 -0
  797. package/es6/themes/base.js +6 -0
  798. package/es6/utils/index.d.ts +5 -5
  799. package/grommet.min.js +1 -1
  800. package/grommet.min.js.map +1 -1
  801. package/languages/default.json +5 -5
  802. package/package.json +40 -39
  803. package/themes/base.d.ts +6 -0
  804. package/themes/base.js +8 -4
  805. package/themes/dark.js +2 -3
  806. package/themes/grommet.js +2 -3
  807. package/themes/hacktoberfest2022.js +2 -3
  808. package/tools/release-styled-components-beta-stable.js +1 -0
  809. package/utils/DOM.js +16 -31
  810. package/utils/PortalContext.js +1 -2
  811. package/utils/animation.js +5 -9
  812. package/utils/background.js +8 -15
  813. package/utils/border.js +3 -5
  814. package/utils/colors.js +6 -11
  815. package/utils/dates.js +2 -3
  816. package/utils/general-prop-types.js +20 -40
  817. package/utils/graphics.js +5 -9
  818. package/utils/icon.js +2 -3
  819. package/utils/index.d.ts +5 -5
  820. package/utils/mixins.js +7 -13
  821. package/utils/object.js +5 -9
  822. package/utils/pagination.js +3 -5
  823. package/utils/refs.js +2 -3
  824. package/utils/responsive.js +4 -7
  825. package/utils/router.js +2 -3
  826. package/utils/styles.js +22 -43
  827. package/utils/use-isomorphic-layout-effect.js +2 -4
  828. package/utils/use-keyboard.js +2 -4
@@ -9,11 +9,11 @@ var _LikeFill = require("grommet-icons/icons/LikeFill");
9
9
  var _Dislike = require("grommet-icons/icons/Dislike");
10
10
  var _DislikeFill = require("grommet-icons/icons/DislikeFill");
11
11
  var _RadioButtonGroup = require("../RadioButtonGroup");
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
15
15
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
- var ThumbsRating = function ThumbsRating(_ref) {
16
+ var ThumbsRating = exports.ThumbsRating = function ThumbsRating(_ref) {
17
17
  var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
18
18
  var theme = (0, _react.useContext)(_styledComponents.ThemeContext);
19
19
  return /*#__PURE__*/_react["default"].createElement(_RadioButtonGroup.RadioButtonGroup, _extends({
@@ -37,5 +37,4 @@ var ThumbsRating = function ThumbsRating(_ref) {
37
37
  });
38
38
  });
39
39
  };
40
- exports.ThumbsRating = ThumbsRating;
41
40
  ThumbsRating.displayName = 'ThumbsRating';
@@ -5,7 +5,7 @@ exports["default"] = exports.Simple = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
- var Simple = function Simple() {
8
+ var Simple = exports.Simple = function Simple() {
9
9
  return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
10
10
  align: "center",
11
11
  justify: "center",
@@ -15,8 +15,6 @@ var Simple = function Simple() {
15
15
  name: "rating"
16
16
  }));
17
17
  };
18
- exports.Simple = Simple;
19
- var _default = {
18
+ var _default = exports["default"] = {
20
19
  title: 'Input/ThumbsRating/Simple'
21
- };
22
- exports["default"] = _default;
20
+ };
@@ -8,10 +8,10 @@ var _Box = require("../Box");
8
8
  var _Drop = require("../Drop");
9
9
  var _utils = require("../../utils");
10
10
  var _propTypes = require("./propTypes");
11
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
- var Tip = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, tipRef) {
14
+ var Tip = exports.Tip = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, tipRef) {
15
15
  var children = _ref.children,
16
16
  content = _ref.content,
17
17
  dropProps = _ref.dropProps,
@@ -20,6 +20,9 @@ var Tip = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, tipRef) {
20
20
  var _useState = (0, _react.useState)(false),
21
21
  over = _useState[0],
22
22
  setOver = _useState[1];
23
+ var _useState2 = (0, _react.useState)(false),
24
+ tooltipOver = _useState2[0],
25
+ setTooltipOver = _useState2[1];
23
26
  var usingKeyboard = (0, _utils.useKeyboard)();
24
27
  var componentRef = (0, _utils.useForwardedRef)(tipRef);
25
28
 
@@ -68,12 +71,18 @@ var Tip = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, tipRef) {
68
71
  }
69
72
  }
70
73
  });
71
- return [clonedChild, over && /*#__PURE__*/_react["default"].createElement(_Drop.Drop, _extends({
74
+ return [clonedChild, (over || tooltipOver) && /*#__PURE__*/_react["default"].createElement(_Drop.Drop, _extends({
72
75
  target: componentRef.current,
73
76
  trapFocus: false,
74
77
  key: "tip-drop"
75
- }, theme.tip.drop, dropProps), plain ? content : /*#__PURE__*/_react["default"].createElement(_Box.Box, theme.tip.content, content))];
78
+ }, theme.tip.drop, dropProps, {
79
+ onMouseEnter: function onMouseEnter() {
80
+ return setTooltipOver(true);
81
+ },
82
+ onMouseLeave: function onMouseLeave() {
83
+ return setTooltipOver(false);
84
+ }
85
+ }), plain ? content : /*#__PURE__*/_react["default"].createElement(_Box.Box, theme.tip.content, content))];
76
86
  });
77
- exports.Tip = Tip;
78
87
  Tip.displayName = 'Tip';
79
88
  Tip.propTypes = _propTypes.TipPropTypes;
@@ -12,5 +12,4 @@ if (process.env.NODE_ENV !== 'production') {
12
12
  plain: _propTypes["default"].bool
13
13
  };
14
14
  }
15
- var TipPropTypes = PropType;
16
- exports.TipPropTypes = TipPropTypes;
15
+ var TipPropTypes = exports.TipPropTypes = PropType;
@@ -27,7 +27,7 @@ var TipContent = function TipContent(_ref) {
27
27
  round: "xsmall"
28
28
  }, /*#__PURE__*/_react["default"].createElement(_grommet.Text, null, message)));
29
29
  };
30
- var Caret = function Caret() {
30
+ var Caret = exports.Caret = function Caret() {
31
31
  return (
32
32
  /*#__PURE__*/
33
33
  // Uncomment <Grommet> lines when using outside of storybook
@@ -63,7 +63,7 @@ var Caret = function Caret() {
63
63
  // </Grommet>
64
64
  );
65
65
  };
66
- exports.Caret = Caret;
66
+
67
67
  Caret.args = {
68
68
  full: true
69
69
  };
@@ -72,7 +72,6 @@ Caret.parameters = {
72
72
  disable: true
73
73
  }
74
74
  };
75
- var _default = {
75
+ var _default = exports["default"] = {
76
76
  title: 'Controls/Tip/Caret'
77
- };
78
- exports["default"] = _default;
77
+ };
@@ -93,7 +93,7 @@ var TipContent = function TipContent(_ref) {
93
93
  }, datum.entry));
94
94
  }))));
95
95
  };
96
- var ResponsiveTip = function ResponsiveTip() {
96
+ var ResponsiveTip = exports.ResponsiveTip = function ResponsiveTip() {
97
97
  return /*#__PURE__*/_react["default"].createElement(_grommet.Grommet, {
98
98
  theme: theme,
99
99
  full: true
@@ -133,14 +133,12 @@ var ResponsiveTip = function ResponsiveTip() {
133
133
  })));
134
134
  }));
135
135
  };
136
- exports.ResponsiveTip = ResponsiveTip;
137
136
  ResponsiveTip.storyName = 'Responsive';
138
137
  ResponsiveTip.parameters = {
139
138
  chromatic: {
140
139
  disable: true
141
140
  }
142
141
  };
143
- var _default = {
142
+ var _default = exports["default"] = {
144
143
  title: 'Controls/Tip/Custom Themed/Responsive'
145
- };
146
- exports["default"] = _default;
144
+ };
@@ -115,7 +115,7 @@ var SidebarButton = function SidebarButton(_ref) {
115
115
  }, iconsMap(hover ? 'black' : 'white')[index]);
116
116
  })));
117
117
  };
118
- var SidebarTip = function SidebarTip() {
118
+ var SidebarTip = exports.SidebarTip = function SidebarTip() {
119
119
  return /*#__PURE__*/_react["default"].createElement(_grommet.Grommet, {
120
120
  theme: customTheme,
121
121
  full: true
@@ -142,9 +142,7 @@ var SidebarTip = function SidebarTip() {
142
142
  });
143
143
  })))));
144
144
  };
145
- exports.SidebarTip = SidebarTip;
146
145
  SidebarTip.storyName = 'Sidebar';
147
- var _default = {
146
+ var _default = exports["default"] = {
148
147
  title: 'Controls/Tip/Custom Themed/Sidebar'
149
- };
150
- exports["default"] = _default;
148
+ };
@@ -6,8 +6,8 @@ var _react = _interopRequireWildcard(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  var _grommetIcons = require("grommet-icons");
8
8
  var _data = require("../../DataTable/stories/data");
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
11
  // Source code for the data can be found here
12
12
  // https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js
13
13
  var TipContent = function TipContent(_ref) {
@@ -22,7 +22,7 @@ var TipContent = function TipContent(_ref) {
22
22
  color: "accent-1"
23
23
  }, message));
24
24
  };
25
- var HeaderActions = function HeaderActions() {
25
+ var HeaderActions = exports.HeaderActions = function HeaderActions() {
26
26
  var _useState = (0, _react.useState)(_data.storageData),
27
27
  data = _useState[0],
28
28
  setData = _useState[1];
@@ -102,7 +102,7 @@ var HeaderActions = function HeaderActions() {
102
102
  // </Grommet>
103
103
  );
104
104
  };
105
- exports.HeaderActions = HeaderActions;
105
+
106
106
  HeaderActions.args = {
107
107
  full: true
108
108
  };
@@ -112,7 +112,6 @@ HeaderActions.parameters = {
112
112
  }
113
113
  };
114
114
  HeaderActions.storyName = 'Header actions';
115
- var _default = {
115
+ var _default = exports["default"] = {
116
116
  title: 'Controls/Tip/Header actions'
117
- };
118
- exports["default"] = _default;
117
+ };
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  var _grommetIcons = require("grommet-icons");
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- var Info = function Info() {
9
+ var Info = exports.Info = function Info() {
10
10
  return (
11
11
  /*#__PURE__*/
12
12
  // Uncomment <Grommet> lines when using outside of storybook
@@ -69,13 +69,12 @@ var Info = function Info() {
69
69
  // </Grommet>
70
70
  );
71
71
  };
72
- exports.Info = Info;
72
+
73
73
  Info.parameters = {
74
74
  chromatic: {
75
75
  disable: true
76
76
  }
77
77
  };
78
- var _default = {
78
+ var _default = exports["default"] = {
79
79
  title: 'Controls/Tip/Info'
80
- };
81
- exports["default"] = _default;
80
+ };
@@ -7,8 +7,8 @@ var _Box = require("../Box");
7
7
  var _ResponsiveContext = require("../../contexts/ResponsiveContext");
8
8
  var _propTypes = require("./propTypes");
9
9
  var _excluded = ["children"];
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  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); }
13
13
  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; }
14
14
  var defaultLayoutProps = {
@@ -22,7 +22,7 @@ var smallLayoutProps = {
22
22
  align: 'start',
23
23
  gap: 'small'
24
24
  };
25
- var Toolbar = function Toolbar(_ref) {
25
+ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
26
26
  var children = _ref.children,
27
27
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
28
28
  var size = (0, _react.useContext)(_ResponsiveContext.ResponsiveContext);
@@ -32,6 +32,5 @@ var Toolbar = function Toolbar(_ref) {
32
32
  cssGap: true
33
33
  }, layoutProps, rest), children);
34
34
  };
35
- exports.Toolbar = Toolbar;
36
35
  Toolbar.propTypes = _propTypes.ToolbarPropTypes;
37
36
  Toolbar.defaultProps = {};
@@ -6,5 +6,4 @@ var PropType = {};
6
6
  if (process.env.NODE_ENV !== 'production') {
7
7
  PropType = {};
8
8
  }
9
- var ToolbarPropTypes = PropType;
10
- exports.ToolbarPropTypes = ToolbarPropTypes;
9
+ var ToolbarPropTypes = exports.ToolbarPropTypes = PropType;
@@ -8,7 +8,7 @@ var _Search = require("grommet-icons/icons/Search");
8
8
  var _Filter = require("grommet-icons/icons/Filter");
9
9
  var _Toolbar = require("../Toolbar");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var Simple = function Simple() {
11
+ var Simple = exports.Simple = function Simple() {
12
12
  return (
13
13
  /*#__PURE__*/
14
14
  // Uncomment <Grommet> lines when using outside of storybook
@@ -42,11 +42,10 @@ var Simple = function Simple() {
42
42
  // </Grommet>
43
43
  );
44
44
  };
45
- exports.Simple = Simple;
45
+
46
46
  Simple.args = {
47
47
  full: true
48
48
  };
49
- var _default = {
49
+ var _default = exports["default"] = {
50
50
  title: 'Data/Toolbar/Simple'
51
- };
52
- exports["default"] = _default;
51
+ };
@@ -5,8 +5,8 @@ exports.StyledVideoScrubber = exports.StyledVideoControls = exports.StyledVideoC
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
6
  var _utils = require("../../utils");
7
7
  var _defaultProps = require("../../default-props");
8
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
10
  var FIT_MAP = {
11
11
  cover: 'cover',
12
12
  contain: 'contain'
@@ -16,7 +16,7 @@ var fitStyle = (0, _styledComponents.css)(["flex:1 1;min-height:0;object-fit:",
16
16
  });
17
17
 
18
18
  // z-index is for Safari so controls aren't hidden
19
- var StyledVideo = _styledComponents["default"].video.withConfig({
19
+ var StyledVideo = exports.StyledVideo = _styledComponents["default"].video.withConfig({
20
20
  displayName: "StyledVideo",
21
21
  componentId: "sc-w4v8h9-0"
22
22
  })(["max-width:100%;z-index:1;", "::cue{background:", ";}", ";"], function (props) {
@@ -26,20 +26,18 @@ var StyledVideo = _styledComponents["default"].video.withConfig({
26
26
  }, function (props) {
27
27
  return props.theme.video && props.theme.video.extend;
28
28
  });
29
- exports.StyledVideo = StyledVideo;
30
29
  StyledVideo.defaultProps = {};
31
30
  Object.setPrototypeOf(StyledVideo.defaultProps, _defaultProps.defaultProps);
32
- var StyledVideoContainer = _styledComponents["default"].div.withConfig({
31
+ var StyledVideoContainer = exports.StyledVideoContainer = _styledComponents["default"].div.withConfig({
33
32
  displayName: "StyledVideo__StyledVideoContainer",
34
33
  componentId: "sc-w4v8h9-1"
35
34
  })(["flex:1 1;display:flex;flex-direction:column;overflow:hidden;position:relative;", ";&:focus{", "}"], _utils.genericStyles, (0, _utils.focusStyle)());
36
- exports.StyledVideoContainer = StyledVideoContainer;
37
35
  StyledVideoContainer.defaultProps = {};
38
36
  Object.setPrototypeOf(StyledVideoContainer.defaultProps, _defaultProps.defaultProps);
39
37
 
40
38
  // z-index is for Safari so controls aren't hidden
41
39
  var positionStyle = (0, _styledComponents.css)(["position:absolute;left:0;right:0;bottom:0;z-index:1;"]);
42
- var StyledVideoControls = _styledComponents["default"].div.withConfig({
40
+ var StyledVideoControls = exports.StyledVideoControls = _styledComponents["default"].div.withConfig({
43
41
  displayName: "StyledVideo__StyledVideoControls",
44
42
  componentId: "sc-w4v8h9-2"
45
43
  })(["flex:0 0;", " opacity:0;transition:opacity 0.3s;", ";"], function (props) {
@@ -47,7 +45,6 @@ var StyledVideoControls = _styledComponents["default"].div.withConfig({
47
45
  }, function (props) {
48
46
  return props.active ? 'opacity: 1;' : 'pointer-events: none';
49
47
  });
50
- exports.StyledVideoControls = StyledVideoControls;
51
48
  StyledVideoControls.defaultProps = {};
52
49
  Object.setPrototypeOf(StyledVideoControls.defaultProps, _defaultProps.defaultProps);
53
50
  var headStyle = (0, _styledComponents.css)(["::after{content:'';height:100%;width:", ";background:", ";position:absolute;left:", ";}"], function (props) {
@@ -57,12 +54,11 @@ var headStyle = (0, _styledComponents.css)(["::after{content:'';height:100%;widt
57
54
  }, function (props) {
58
55
  return props.value + "%";
59
56
  });
60
- var StyledVideoScrubber = _styledComponents["default"].div.withConfig({
57
+ var StyledVideoScrubber = exports.StyledVideoScrubber = _styledComponents["default"].div.withConfig({
61
58
  displayName: "StyledVideo__StyledVideoScrubber",
62
59
  componentId: "sc-w4v8h9-3"
63
60
  })(["cursor:pointer;width:100%;height:100%;", ";&:focus{", "}"], function (props) {
64
61
  return props.value && headStyle;
65
62
  }, (0, _utils.focusStyle)());
66
- exports.StyledVideoScrubber = StyledVideoScrubber;
67
63
  StyledVideoScrubber.defaultProps = {};
68
64
  Object.setPrototypeOf(StyledVideoScrubber.defaultProps, _defaultProps.defaultProps);
@@ -19,8 +19,8 @@ var _StyledVideo = require("./StyledVideo");
19
19
  var _MessageContext = require("../../contexts/MessageContext");
20
20
  var _propTypes = require("./propTypes");
21
21
  var _excluded = ["alignSelf", "autoPlay", "children", "controls", "gridArea", "loop", "margin", "messages", "mute", "onDurationChange", "onEnded", "onPause", "onPlay", "onTimeUpdate", "onVolumeChange", "skipInterval"];
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
24
  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); }
25
25
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
26
  // Split the volume control into 6 segments. Empirically determined.
@@ -36,7 +36,7 @@ var formatTime = function formatTime(time) {
36
36
  }
37
37
  return minutes + ":" + seconds;
38
38
  };
39
- var Video = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
39
+ var Video = exports.Video = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
40
40
  var alignSelf = _ref.alignSelf,
41
41
  autoPlay = _ref.autoPlay,
42
42
  children = _ref.children,
@@ -399,7 +399,7 @@ var Video = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
399
399
  }
400
400
  };
401
401
  var controlsMenuItems = [];
402
- (_controls$items = controls.items) == null ? void 0 : _controls$items.map(function (item) {
402
+ (_controls$items = controls.items) == null || _controls$items.map(function (item) {
403
403
  if (item === 'volume') {
404
404
  volumeControls.map(function (control) {
405
405
  return controlsMenuItems.push(control);
@@ -588,7 +588,6 @@ var Video = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
588
588
  loop: loop || false
589
589
  }), children), controlsElement));
590
590
  });
591
- exports.Video = Video;
592
591
  Video.defaultProps = {};
593
592
  Video.displayName = 'Video';
594
593
  Video.propTypes = _propTypes.VideoPropTypes;
@@ -36,5 +36,4 @@ if (process.env.NODE_ENV !== 'production') {
36
36
  skipInterval: _propTypes["default"].number
37
37
  });
38
38
  }
39
- var VideoPropTypes = PropType;
40
- exports.VideoPropTypes = VideoPropTypes;
39
+ var VideoPropTypes = exports.VideoPropTypes = PropType;
@@ -20,7 +20,7 @@ var fillStyle = function fillStyle(fillProp) {
20
20
  };
21
21
 
22
22
  // undefined fillProp has width for backwards compatibility
23
- var StyledWorldMap = _styledComponents["default"].svg.withConfig({
23
+ var StyledWorldMap = exports.StyledWorldMap = _styledComponents["default"].svg.withConfig({
24
24
  displayName: "StyledWorldMap",
25
25
  componentId: "sc-had4c3-0"
26
26
  })(["", " ", " ", ";"], _utils.genericStyles, function (props) {
@@ -28,6 +28,5 @@ var StyledWorldMap = _styledComponents["default"].svg.withConfig({
28
28
  }, function (props) {
29
29
  return props.theme.worldMap && props.theme.worldMap.extend;
30
30
  });
31
- exports.StyledWorldMap = StyledWorldMap;
32
31
  StyledWorldMap.defaultProps = {};
33
32
  Object.setPrototypeOf(StyledWorldMap.defaultProps, _defaultProps.defaultProps);
@@ -13,8 +13,8 @@ var _excluded = ["fill", "color", "continents", "hoverColor", "onSelectPlace", "
13
13
  _excluded2 = ["location"],
14
14
  _excluded3 = ["color", "onClick", "onHover"],
15
15
  _excluded4 = ["color", "coords", "content", "dropProps", "key", "name", "onClick", "onHover"];
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
18
  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); }
19
19
  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; }
20
20
  // The graphic is drawn as a rectangular grid using coordinates spaced
@@ -197,7 +197,7 @@ var buildInteractiveProps = function buildInteractiveProps(_ref4, activeFunc, ac
197
197
  }
198
198
  };
199
199
  };
200
- var WorldMap = /*#__PURE__*/(0, _react.forwardRef)(function (_ref5, ref) {
200
+ var WorldMap = exports.WorldMap = /*#__PURE__*/(0, _react.forwardRef)(function (_ref5, ref) {
201
201
  var fill = _ref5.fill,
202
202
  color = _ref5.color,
203
203
  continentsProp = _ref5.continents,
@@ -389,7 +389,6 @@ var WorldMap = /*#__PURE__*/(0, _react.forwardRef)(function (_ref5, ref) {
389
389
  fillRule: "evenodd"
390
390
  }, continentElements), placeElements, active), placesContent);
391
391
  });
392
- exports.WorldMap = WorldMap;
393
392
  WorldMap.displayName = 'WorldMap';
394
393
  WorldMap.defaultProps = {};
395
394
  Object.setPrototypeOf(WorldMap.defaultProps, _defaultProps.defaultProps);
@@ -31,5 +31,4 @@ if (process.env.NODE_ENV !== 'production') {
31
31
  hoverColor: _generalPropTypes.colorPropType
32
32
  });
33
33
  }
34
- var WorldMapPropTypes = PropType;
35
- exports.WorldMapPropTypes = WorldMapPropTypes;
34
+ var WorldMapPropTypes = exports.WorldMapPropTypes = PropType;
@@ -5,7 +5,7 @@ exports["default"] = exports.Color = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
- var Color = function Color() {
8
+ var Color = exports.Color = function Color() {
9
9
  return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
10
10
  align: "center",
11
11
  pad: "large"
@@ -13,13 +13,11 @@ var Color = function Color() {
13
13
  color: "graph-1"
14
14
  }));
15
15
  };
16
- exports.Color = Color;
17
16
  Color.parameters = {
18
17
  chromatic: {
19
18
  disable: true
20
19
  }
21
20
  };
22
- var _default = {
21
+ var _default = exports["default"] = {
23
22
  title: 'Visualizations/WorldMap/Color'
24
- };
25
- exports["default"] = _default;
23
+ };
@@ -5,7 +5,7 @@ exports["default"] = exports.Continents = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
- var Continents = function Continents() {
8
+ var Continents = exports.Continents = function Continents() {
9
9
  var _React$useState = _react["default"].useState(),
10
10
  active = _React$useState[0],
11
11
  setActive = _React$useState[1];
@@ -24,8 +24,6 @@ var Continents = function Continents() {
24
24
  margin: "large"
25
25
  }, "Africa"));
26
26
  };
27
- exports.Continents = Continents;
28
- var _default = {
27
+ var _default = exports["default"] = {
29
28
  title: 'Visualizations/WorldMap/Continents'
30
- };
31
- exports["default"] = _default;
29
+ };
@@ -33,7 +33,7 @@ var placeProps = function placeProps(name, color, showDrop) {
33
33
  }
34
34
  } : {});
35
35
  };
36
- var Places = function Places() {
36
+ var Places = exports.Places = function Places() {
37
37
  var _React$useState = _react["default"].useState(true),
38
38
  showDrops = _React$useState[0],
39
39
  setShowDrops = _React$useState[1];
@@ -66,8 +66,6 @@ var Places = function Places() {
66
66
  }, placeProps('Ushuaia', 'graph-2', showDrops))]
67
67
  }));
68
68
  };
69
- exports.Places = Places;
70
- var _default = {
69
+ var _default = exports["default"] = {
71
70
  title: 'Visualizations/WorldMap/Places'
72
- };
73
- exports["default"] = _default;
71
+ };
@@ -5,7 +5,7 @@ exports["default"] = exports.SelectPlace = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
- var SelectPlace = function SelectPlace() {
8
+ var SelectPlace = exports.SelectPlace = function SelectPlace() {
9
9
  var _React$useState = _react["default"].useState(),
10
10
  places = _React$useState[0],
11
11
  setPlaces = _React$useState[1];
@@ -24,14 +24,12 @@ var SelectPlace = function SelectPlace() {
24
24
  places: places
25
25
  }));
26
26
  };
27
- exports.SelectPlace = SelectPlace;
28
27
  SelectPlace.storyName = 'Select place';
29
28
  SelectPlace.parameters = {
30
29
  chromatic: {
31
30
  disable: true
32
31
  }
33
32
  };
34
- var _default = {
33
+ var _default = exports["default"] = {
35
34
  title: 'Visualizations/WorldMap/Select place'
36
- };
37
- exports["default"] = _default;
35
+ };
@@ -5,20 +5,18 @@ exports["default"] = exports.Simple = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
- var Simple = function Simple() {
8
+ var Simple = exports.Simple = function Simple() {
9
9
  return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
10
10
  align: "center",
11
11
  pad: "large"
12
12
  }, /*#__PURE__*/_react["default"].createElement(_grommet.WorldMap, null));
13
13
  };
14
- exports.Simple = Simple;
15
14
  Simple.parameters = {
16
15
  // chromatic disabled because snapshot is the same as SelectPlace
17
16
  chromatic: {
18
17
  disable: true
19
18
  }
20
19
  };
21
- var _default = {
20
+ var _default = exports["default"] = {
22
21
  title: 'Visualizations/WorldMap/Simple'
23
- };
24
- exports["default"] = _default;
22
+ };