grommet 2.43.0 → 2.45.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 (388) hide show
  1. package/all/stories/AllComponents.js +8 -3
  2. package/components/Accordion/Accordion.js +1 -1
  3. package/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  4. package/components/Accordion/stories/Simple.js +1 -1
  5. package/components/AccordionPanel/AccordionPanel.js +1 -1
  6. package/components/Anchor/Anchor.js +3 -2
  7. package/components/Avatar/Avatar.js +1 -1
  8. package/components/Box/Box.js +1 -1
  9. package/components/Box/stories/Background.js +1 -1
  10. package/components/Button/Button.js +1 -1
  11. package/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
  12. package/components/Button/stories/Kind.js +6 -10
  13. package/components/Calendar/Calendar.js +16 -9
  14. package/components/Calendar/StyledCalendar.js +6 -5
  15. package/components/Calendar/index.d.ts +1 -0
  16. package/components/Calendar/propTypes.js +1 -0
  17. package/components/Calendar/stories/DaylightSavings.js +1 -1
  18. package/components/Calendar/stories/HeaderLevel.js +36 -0
  19. package/components/Calendar/stories/ShowAdjacentDays.js +3 -2
  20. package/components/Card/stories/CustomThemed/Clickable.js +3 -3
  21. package/components/Card/stories/CustomThemed/Stacked.js +2 -2
  22. package/components/Card/stories/CustomThemed/Themed.js +5 -5
  23. package/components/Cards/Cards.js +1 -1
  24. package/components/Cards/stories/Children.js +2 -2
  25. package/components/Carousel/Carousel.js +1 -1
  26. package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  27. package/components/Chart/Chart.js +1 -1
  28. package/components/CheckBox/CheckBox.js +1 -1
  29. package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
  30. package/components/CheckBox/stories/NoLabel.js +1 -1
  31. package/components/CheckBox/stories/Simple.js +1 -1
  32. package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  33. package/components/Clock/Analog.js +1 -1
  34. package/components/Clock/Clock.js +1 -1
  35. package/components/Clock/Digital.js +1 -1
  36. package/components/Collapsible/stories/Nested.js +1 -1
  37. package/components/Data/Data.js +1 -1
  38. package/components/Data/DataForm.js +1 -1
  39. package/components/Data/stories/Inline.js +1 -1
  40. package/components/DataChart/DataChart.js +1 -1
  41. package/components/DataChart/Detail.js +55 -25
  42. package/components/DataChart/Legend.js +1 -0
  43. package/components/DataChart/XAxis.js +1 -1
  44. package/components/DataClearFilters/DataClearFilters.js +1 -1
  45. package/components/DataFilter/DataFilter.js +1 -1
  46. package/components/DataFilters/DataFilters.js +1 -1
  47. package/components/DataSearch/DataSearch.js +1 -1
  48. package/components/DataSort/DataSort.js +1 -1
  49. package/components/DataSummary/DataSummary.js +1 -1
  50. package/components/DataTable/Body.js +17 -3
  51. package/components/DataTable/Cell.js +1 -1
  52. package/components/DataTable/DataTable.js +1 -1
  53. package/components/DataTable/ExpanderCell.js +1 -1
  54. package/components/DataTable/Footer.js +1 -1
  55. package/components/DataTable/GroupedBody.js +1 -1
  56. package/components/DataTable/Header.js +2 -2
  57. package/components/DataTable/StyledDataTable.js +20 -12
  58. package/components/DataTable/stories/CustomThemed/Custom.js +8 -0
  59. package/components/DataTable/stories/CustomThemed/Fill.js +1 -0
  60. package/components/DataTableColumns/DataTableColumns.js +1 -1
  61. package/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  62. package/components/DataView/DataView.js +1 -1
  63. package/components/DateInput/DateInput.js +1 -1
  64. package/components/Diagram/Diagram.js +1 -1
  65. package/components/Diagram/stories/Progressing.js +1 -1
  66. package/components/Distribution/Distribution.js +1 -1
  67. package/components/Drop/Drop.js +1 -1
  68. package/components/Drop/DropContainer.js +1 -1
  69. package/components/Drop/stories/CustomThemed/Lazy.js +4 -4
  70. package/components/Drop/stories/CustomThemed/Themed.js +1 -1
  71. package/components/DropButton/DropButton.js +1 -1
  72. package/components/FileInput/FileInput.js +1 -1
  73. package/components/FocusedContainer.js +1 -1
  74. package/components/Form/Form.js +1 -1
  75. package/components/Form/stories/AggregateValidation.js +5 -2
  76. package/components/Form/stories/ArrayOfFormFields.js +19 -6
  77. package/components/Form/stories/Controlled.js +8 -1
  78. package/components/Form/stories/ControlledInput.js +8 -1
  79. package/components/Form/stories/ControlledInputLazy.js +5 -1
  80. package/components/Form/stories/ControlledLazy.js +5 -1
  81. package/components/Form/stories/CustomThemed/Custom.js +17 -1
  82. package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
  83. package/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
  84. package/components/Form/stories/CustomThemed/Themed.js +2 -2
  85. package/components/Form/stories/DynamicFields.js +9 -2
  86. package/components/Form/stories/FieldWithChildren.js +6 -1
  87. package/components/Form/stories/TriggerValidationUsingFormField.js +18 -6
  88. package/components/Form/stories/Uncontrolled.js +6 -1
  89. package/components/Form/stories/ValidateOnBlur.js +10 -3
  90. package/components/Form/stories/ValidateOnChange.js +11 -5
  91. package/components/Form/stories/ValidateOnMount.js +11 -4
  92. package/components/Form/stories/typescript/TypedForm.tsx +39 -45
  93. package/components/FormField/FormField.js +73 -18
  94. package/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
  95. package/components/Grid/Grid.js +1 -1
  96. package/components/Grid/stories/AreasPropAlternative.js +4 -1
  97. package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  98. package/components/Grommet/Grommet.js +1 -1
  99. package/components/Grommet/index.d.ts +4 -0
  100. package/components/Grommet/propTypes.js +4 -0
  101. package/components/Header/Header.js +1 -1
  102. package/components/Heading/Heading.js +1 -1
  103. package/components/Image/Image.js +1 -1
  104. package/components/Keyboard/Keyboard.js +1 -1
  105. package/components/Layer/LayerContainer.js +4 -15
  106. package/components/Layer/StyledLayer.js +2 -1
  107. package/components/List/List.js +1 -1
  108. package/components/Markdown/Markdown.js +1 -1
  109. package/components/MaskedInput/MaskedInput.js +1 -1
  110. package/components/Menu/Menu.js +6 -5
  111. package/components/Menu/stories/CustomThemed/Themed.tsx +4 -0
  112. package/components/Meter/Bar.js +1 -1
  113. package/components/Meter/Circle.js +1 -1
  114. package/components/Meter/Meter.js +1 -1
  115. package/components/Meter/StyledMeter.js +2 -1
  116. package/components/NameValueList/NameValueList.js +1 -1
  117. package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
  118. package/components/Nav/stories/Sidebar.js +1 -1
  119. package/components/Notification/Notification.js +38 -27
  120. package/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
  121. package/components/Page/Page.js +1 -1
  122. package/components/PageContent/PageContent.js +1 -1
  123. package/components/PageHeader/PageHeader.js +1 -1
  124. package/components/PageHeader/stories/Level.js +2 -2
  125. package/components/PageHeader/stories/Size.js +3 -2
  126. package/components/Pagination/PageControl.js +1 -1
  127. package/components/Pagination/Pagination.js +1 -1
  128. package/components/Pagination/PaginationStep.js +1 -1
  129. package/components/Pagination/PaginationSummary.js +1 -1
  130. package/components/Paragraph/Paragraph.js +1 -1
  131. package/components/RadioButton/RadioButton.js +1 -1
  132. package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  133. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  134. package/components/RadioButtonGroup/stories/Disabled.js +1 -1
  135. package/components/RangeInput/RangeInput.js +1 -1
  136. package/components/RangeSelector/EdgeControl.js +1 -1
  137. package/components/RangeSelector/RangeSelector.js +1 -1
  138. package/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  139. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  140. package/components/RangeSelector/stories/Step.js +1 -1
  141. package/components/RangeSelector/stories/Vertical.js +1 -1
  142. package/components/RoutedAnchor/RoutedAnchor.js +1 -1
  143. package/components/RoutedButton/RoutedButton.js +1 -1
  144. package/components/Select/DefaultSelectTextInput.js +1 -1
  145. package/components/Select/Select.js +1 -1
  146. package/components/Select/SelectContainer.js +2 -1
  147. package/components/Select/StyledSelect.js +4 -1
  148. package/components/Select/stories/components/SearchBorderBox.js +1 -1
  149. package/components/Select/stories/components/SearchInput.js +1 -1
  150. package/components/SelectMultiple/SelectMultiple.js +1 -1
  151. package/components/SelectMultiple/SelectMultipleContainer.js +2 -1
  152. package/components/Sidebar/Sidebar.js +1 -1
  153. package/components/Sidebar/stories/Labels.js +1 -1
  154. package/components/Skeleton/Skeleton.js +1 -1
  155. package/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
  156. package/components/Skeleton/stories/GridContainer.js +2 -2
  157. package/components/Skeleton/stories/Group.js +1 -1
  158. package/components/Skeleton/stories/Individual.js +2 -3
  159. package/components/Skeleton/stories/Simple.js +1 -0
  160. package/components/SkipLink/SkipLink.js +1 -1
  161. package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  162. package/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
  163. package/components/Spinner/Spinner.js +1 -1
  164. package/components/Stack/Stack.js +1 -1
  165. package/components/StarRating/StarRating.js +18 -4
  166. package/components/Tab/Tab.js +1 -1
  167. package/components/Table/Table.js +1 -1
  168. package/components/TableCell/TableCell.js +1 -1
  169. package/components/Tabs/Tabs.js +2 -2
  170. package/components/Tabs/stories/CustomThemed/Custom.js +3 -3
  171. package/components/Tag/Tag.js +1 -1
  172. package/components/Text/Text.js +1 -1
  173. package/components/Text/TextSkeleton.js +1 -1
  174. package/components/TextArea/TextArea.js +1 -1
  175. package/components/TextArea/stories/CustomThemed/Themed.js +1 -0
  176. package/components/TextInput/TextInput.js +1 -1
  177. package/components/TextInput/stories/Simple.js +1 -6
  178. package/components/TextInput/stories/WithTags.js +1 -1
  179. package/components/ThumbsRating/ThumbsRating.js +20 -5
  180. package/components/ToggleGroup/StyledToggleGroup.js +9 -1
  181. package/components/ToggleGroup/ToggleGroup.js +2 -2
  182. package/components/Toolbar/Toolbar.js +1 -1
  183. package/components/Video/Video.js +1 -1
  184. package/components/WorldMap/WorldMap.js +1 -1
  185. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  186. package/es6/all/stories/AllComponents.js +8 -3
  187. package/es6/components/Accordion/Accordion.js +1 -1
  188. package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  189. package/es6/components/Accordion/stories/Simple.js +1 -1
  190. package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
  191. package/es6/components/Anchor/Anchor.js +3 -2
  192. package/es6/components/Avatar/Avatar.js +1 -1
  193. package/es6/components/Box/Box.js +1 -1
  194. package/es6/components/Box/stories/Background.js +1 -1
  195. package/es6/components/Button/Button.js +1 -1
  196. package/es6/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
  197. package/es6/components/Button/stories/Kind.js +6 -10
  198. package/es6/components/Calendar/Calendar.js +16 -9
  199. package/es6/components/Calendar/StyledCalendar.js +6 -5
  200. package/es6/components/Calendar/index.d.ts +1 -0
  201. package/es6/components/Calendar/propTypes.js +1 -0
  202. package/es6/components/Calendar/stories/DaylightSavings.js +2 -2
  203. package/es6/components/Calendar/stories/HeaderLevel.js +30 -0
  204. package/es6/components/Calendar/stories/ShowAdjacentDays.js +3 -2
  205. package/es6/components/Card/stories/CustomThemed/Clickable.js +4 -4
  206. package/es6/components/Card/stories/CustomThemed/Stacked.js +3 -3
  207. package/es6/components/Card/stories/CustomThemed/Themed.js +6 -6
  208. package/es6/components/Cards/Cards.js +1 -1
  209. package/es6/components/Cards/stories/Children.js +3 -3
  210. package/es6/components/Carousel/Carousel.js +1 -1
  211. package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  212. package/es6/components/Chart/Chart.js +1 -1
  213. package/es6/components/CheckBox/CheckBox.js +1 -1
  214. package/es6/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
  215. package/es6/components/CheckBox/stories/NoLabel.js +1 -1
  216. package/es6/components/CheckBox/stories/Simple.js +1 -1
  217. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  218. package/es6/components/Clock/Analog.js +1 -1
  219. package/es6/components/Clock/Clock.js +1 -1
  220. package/es6/components/Clock/Digital.js +1 -1
  221. package/es6/components/Collapsible/stories/Nested.js +1 -1
  222. package/es6/components/Data/Data.js +1 -1
  223. package/es6/components/Data/DataForm.js +1 -1
  224. package/es6/components/Data/stories/Inline.js +1 -1
  225. package/es6/components/DataChart/DataChart.js +1 -1
  226. package/es6/components/DataChart/Detail.js +55 -25
  227. package/es6/components/DataChart/Legend.js +1 -0
  228. package/es6/components/DataChart/XAxis.js +1 -1
  229. package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
  230. package/es6/components/DataFilter/DataFilter.js +1 -1
  231. package/es6/components/DataFilters/DataFilters.js +1 -1
  232. package/es6/components/DataSearch/DataSearch.js +1 -1
  233. package/es6/components/DataSort/DataSort.js +1 -1
  234. package/es6/components/DataSummary/DataSummary.js +1 -1
  235. package/es6/components/DataTable/Body.js +19 -5
  236. package/es6/components/DataTable/Cell.js +1 -1
  237. package/es6/components/DataTable/DataTable.js +1 -1
  238. package/es6/components/DataTable/ExpanderCell.js +1 -1
  239. package/es6/components/DataTable/Footer.js +1 -1
  240. package/es6/components/DataTable/GroupedBody.js +1 -1
  241. package/es6/components/DataTable/Header.js +3 -3
  242. package/es6/components/DataTable/StyledDataTable.js +20 -12
  243. package/es6/components/DataTable/stories/CustomThemed/Custom.js +8 -0
  244. package/es6/components/DataTable/stories/CustomThemed/Fill.js +1 -0
  245. package/es6/components/DataTableColumns/DataTableColumns.js +1 -1
  246. package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  247. package/es6/components/DataView/DataView.js +1 -1
  248. package/es6/components/DateInput/DateInput.js +1 -1
  249. package/es6/components/Diagram/Diagram.js +1 -1
  250. package/es6/components/Diagram/stories/Progressing.js +1 -1
  251. package/es6/components/Distribution/Distribution.js +1 -1
  252. package/es6/components/Drop/Drop.js +1 -1
  253. package/es6/components/Drop/DropContainer.js +1 -1
  254. package/es6/components/Drop/stories/CustomThemed/Lazy.js +4 -4
  255. package/es6/components/Drop/stories/CustomThemed/Themed.js +1 -1
  256. package/es6/components/DropButton/DropButton.js +1 -1
  257. package/es6/components/FileInput/FileInput.js +1 -1
  258. package/es6/components/FocusedContainer.js +1 -1
  259. package/es6/components/Form/Form.js +1 -1
  260. package/es6/components/Form/stories/AggregateValidation.js +5 -2
  261. package/es6/components/Form/stories/ArrayOfFormFields.js +20 -7
  262. package/es6/components/Form/stories/Controlled.js +8 -1
  263. package/es6/components/Form/stories/ControlledInput.js +8 -1
  264. package/es6/components/Form/stories/ControlledInputLazy.js +5 -1
  265. package/es6/components/Form/stories/ControlledLazy.js +5 -1
  266. package/es6/components/Form/stories/CustomThemed/Custom.js +17 -1
  267. package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
  268. package/es6/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
  269. package/es6/components/Form/stories/CustomThemed/Themed.js +2 -2
  270. package/es6/components/Form/stories/DynamicFields.js +9 -2
  271. package/es6/components/Form/stories/FieldWithChildren.js +6 -1
  272. package/es6/components/Form/stories/TriggerValidationUsingFormField.js +19 -7
  273. package/es6/components/Form/stories/Uncontrolled.js +6 -1
  274. package/es6/components/Form/stories/ValidateOnBlur.js +10 -3
  275. package/es6/components/Form/stories/ValidateOnChange.js +12 -6
  276. package/es6/components/Form/stories/ValidateOnMount.js +11 -4
  277. package/es6/components/Form/stories/typescript/TypedForm.tsx +39 -45
  278. package/es6/components/FormField/FormField.js +73 -18
  279. package/es6/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
  280. package/es6/components/Grid/Grid.js +1 -1
  281. package/es6/components/Grid/stories/AreasPropAlternative.js +4 -1
  282. package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  283. package/es6/components/Grommet/Grommet.js +1 -1
  284. package/es6/components/Grommet/index.d.ts +4 -0
  285. package/es6/components/Grommet/propTypes.js +4 -0
  286. package/es6/components/Header/Header.js +1 -1
  287. package/es6/components/Heading/Heading.js +1 -1
  288. package/es6/components/Image/Image.js +1 -1
  289. package/es6/components/Keyboard/Keyboard.js +1 -1
  290. package/es6/components/Layer/LayerContainer.js +5 -16
  291. package/es6/components/Layer/StyledLayer.js +2 -1
  292. package/es6/components/List/List.js +1 -1
  293. package/es6/components/Markdown/Markdown.js +1 -1
  294. package/es6/components/MaskedInput/MaskedInput.js +1 -1
  295. package/es6/components/Menu/Menu.js +6 -5
  296. package/es6/components/Menu/stories/CustomThemed/Themed.tsx +4 -0
  297. package/es6/components/Meter/Bar.js +1 -1
  298. package/es6/components/Meter/Circle.js +1 -1
  299. package/es6/components/Meter/Meter.js +1 -1
  300. package/es6/components/Meter/StyledMeter.js +3 -1
  301. package/es6/components/NameValueList/NameValueList.js +1 -1
  302. package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
  303. package/es6/components/Nav/stories/Sidebar.js +1 -1
  304. package/es6/components/Notification/Notification.js +38 -27
  305. package/es6/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
  306. package/es6/components/Page/Page.js +1 -1
  307. package/es6/components/PageContent/PageContent.js +1 -1
  308. package/es6/components/PageHeader/PageHeader.js +1 -1
  309. package/es6/components/PageHeader/stories/Level.js +3 -3
  310. package/es6/components/PageHeader/stories/Size.js +3 -2
  311. package/es6/components/Pagination/PageControl.js +1 -1
  312. package/es6/components/Pagination/Pagination.js +1 -1
  313. package/es6/components/Pagination/PaginationStep.js +1 -1
  314. package/es6/components/Pagination/PaginationSummary.js +1 -1
  315. package/es6/components/Paragraph/Paragraph.js +1 -1
  316. package/es6/components/RadioButton/RadioButton.js +1 -1
  317. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  318. package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  319. package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
  320. package/es6/components/RangeInput/RangeInput.js +1 -1
  321. package/es6/components/RangeSelector/EdgeControl.js +1 -1
  322. package/es6/components/RangeSelector/RangeSelector.js +1 -1
  323. package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  324. package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  325. package/es6/components/RangeSelector/stories/Step.js +1 -1
  326. package/es6/components/RangeSelector/stories/Vertical.js +1 -1
  327. package/es6/components/RoutedAnchor/RoutedAnchor.js +1 -1
  328. package/es6/components/RoutedButton/RoutedButton.js +1 -1
  329. package/es6/components/Select/DefaultSelectTextInput.js +1 -1
  330. package/es6/components/Select/Select.js +1 -1
  331. package/es6/components/Select/SelectContainer.js +2 -1
  332. package/es6/components/Select/StyledSelect.js +4 -1
  333. package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
  334. package/es6/components/Select/stories/components/SearchInput.js +1 -1
  335. package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
  336. package/es6/components/SelectMultiple/SelectMultipleContainer.js +2 -1
  337. package/es6/components/Sidebar/Sidebar.js +1 -1
  338. package/es6/components/Sidebar/stories/Labels.js +1 -1
  339. package/es6/components/Skeleton/Skeleton.js +1 -1
  340. package/es6/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
  341. package/es6/components/Skeleton/stories/GridContainer.js +3 -3
  342. package/es6/components/Skeleton/stories/Group.js +2 -2
  343. package/es6/components/Skeleton/stories/Individual.js +3 -4
  344. package/es6/components/Skeleton/stories/Simple.js +1 -0
  345. package/es6/components/SkipLink/SkipLink.js +1 -1
  346. package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  347. package/es6/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
  348. package/es6/components/Spinner/Spinner.js +1 -1
  349. package/es6/components/Stack/Stack.js +1 -1
  350. package/es6/components/StarRating/StarRating.js +17 -4
  351. package/es6/components/Tab/Tab.js +1 -1
  352. package/es6/components/Table/Table.js +1 -1
  353. package/es6/components/TableCell/TableCell.js +1 -1
  354. package/es6/components/Tabs/Tabs.js +2 -2
  355. package/es6/components/Tabs/stories/CustomThemed/Custom.js +3 -3
  356. package/es6/components/Tag/Tag.js +1 -1
  357. package/es6/components/Text/Text.js +1 -1
  358. package/es6/components/Text/TextSkeleton.js +1 -1
  359. package/es6/components/TextArea/TextArea.js +1 -1
  360. package/es6/components/TextArea/stories/CustomThemed/Themed.js +1 -0
  361. package/es6/components/TextInput/TextInput.js +1 -1
  362. package/es6/components/TextInput/stories/Simple.js +2 -7
  363. package/es6/components/TextInput/stories/WithTags.js +1 -1
  364. package/es6/components/ThumbsRating/ThumbsRating.js +20 -5
  365. package/es6/components/ToggleGroup/StyledToggleGroup.js +8 -0
  366. package/es6/components/ToggleGroup/ToggleGroup.js +3 -3
  367. package/es6/components/Toolbar/Toolbar.js +1 -1
  368. package/es6/components/Video/Video.js +1 -1
  369. package/es6/components/WorldMap/WorldMap.js +1 -1
  370. package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  371. package/es6/languages/default.json +4 -0
  372. package/es6/themes/base.d.ts +52 -5
  373. package/es6/themes/base.js +47 -14
  374. package/es6/utils/pagination.js +1 -1
  375. package/es6/utils/responsive.js +1 -0
  376. package/es6/utils/styles.js +49 -14
  377. package/grommet.min.js +1 -1
  378. package/grommet.min.js.map +1 -1
  379. package/languages/default.json +4 -0
  380. package/package.json +28 -28
  381. package/themes/base.d.ts +52 -5
  382. package/themes/base.js +47 -14
  383. package/tools/release-stable.js +1 -1
  384. package/utils/pagination.js +1 -1
  385. package/utils/responsive.js +1 -0
  386. package/utils/styles.js +49 -14
  387. package/components/Form/stories/FieldWithComponentProp.js +0 -138
  388. package/es6/components/Form/stories/FieldWithComponentProp.js +0 -133
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "fallback", "onError", "onLoad", "opacity", "fill", "src"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useState } from 'react';
5
5
  import { StyledImage } from './StyledImage';
6
6
  import { ImagePropTypes } from './propTypes';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["capture", "target", "children", "onKeyDown"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
2
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
3
  import { Children, cloneElement, useCallback, useEffect } from 'react';
4
4
  import { KeyboardPropTypes } from './propTypes';
5
5
  var KEYS = {
@@ -1,21 +1,17 @@
1
1
  var _excluded = ["background", "children", "full", "id", "margin", "modal", "onClickOutside", "onEsc", "plain", "position", "responsive", "target"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useEffect, useMemo, useRef } from 'react';
5
- import styled, { ThemeContext } from 'styled-components';
5
+ import { ThemeContext } from 'styled-components';
6
6
  import { FocusedContainer } from '../FocusedContainer';
7
7
  import { Keyboard } from '../Keyboard';
8
8
  import { ResponsiveContext } from '../../contexts/ResponsiveContext';
9
9
  import { OptionsContext } from '../../contexts/OptionsContext';
10
10
  import { ContainerTargetContext } from '../../contexts/ContainerTargetContext';
11
11
  import { useAnalytics } from '../../contexts/AnalyticsContext';
12
- import { backgroundIsDark, findVisibleParent, PortalContext, styledComponentsConfig } from '../../utils';
12
+ import { backgroundIsDark, findVisibleParent, PortalContext } from '../../utils';
13
13
  import { StyledLayer, StyledContainer, StyledOverlay } from './StyledLayer';
14
14
  import { useThemeValue } from '../../utils/useThemeValue';
15
- var HiddenAnchor = styled.a.withConfig(styledComponentsConfig).withConfig({
16
- displayName: "LayerContainer__HiddenAnchor",
17
- componentId: "sc-1srj14c-0"
18
- })(["width:0;height:0;overflow:hidden;position:absolute;&:focus{outline:none;}"]);
19
15
  var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
16
  var background = _ref.background,
21
17
  children = _ref.children,
@@ -44,7 +40,6 @@ var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
44
40
  // should not be supported in v3
45
41
  var _useContext = useContext(OptionsContext),
46
42
  layerOptions = _useContext.layer;
47
- var anchorRef = useRef();
48
43
  var containerRef = useRef();
49
44
  var layerRef = useRef();
50
45
  var portalContext = useContext(PortalContext);
@@ -82,7 +77,8 @@ var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
82
77
  // Once layer is open we make sure it has focus so that you
83
78
  // can start tabbing inside the layer. If the caller put focus
84
79
  // on an element already, we honor that. Otherwise, we put
85
- // the focus in the hidden anchor.
80
+ // the focus within the layer. Look at FocusedContainer.js for
81
+ // more details.
86
82
  var element = document.activeElement;
87
83
  while (element) {
88
84
  if (element === containerRef.current) {
@@ -91,9 +87,6 @@ var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
91
87
  }
92
88
  element = element.parentElement;
93
89
  }
94
- if (modal && !element && anchorRef.current) {
95
- anchorRef.current.focus();
96
- }
97
90
  }
98
91
  }, [modal, position, ref]);
99
92
  useEffect(function () {
@@ -193,10 +186,6 @@ var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
193
186
  // or outside of the layer
194
187
  ,
195
188
  "data-g-portal-id": portalId
196
- }), /*#__PURE__*/React.createElement(HiddenAnchor, {
197
- ref: anchorRef,
198
- tabIndex: "-1",
199
- "aria-hidden": "true"
200
189
  }), children);
201
190
  content = /*#__PURE__*/React.createElement(StyledLayer, _extends({
202
191
  ref: layerRef,
@@ -374,7 +374,8 @@ var POSITIONS = {
374
374
  var roundStyle = function roundStyle(data, theme, position, margin) {
375
375
  var styles = [];
376
376
  var size = data === true ? 'medium' : data;
377
- var round = theme.global.edgeSize[size] || size;
377
+ // fallback to edgeSize for backwards compatibility
378
+ var round = theme.global[theme.global.radius ? 'radius' : 'edgeSize'][size] || size;
378
379
  // if user provides CSS string such as '50px 12px', apply that always
379
380
  var customCSS = round.split(' ').length > 1;
380
381
  if (margin === 'none' && !customCSS && theme.layer.border.intelligentRounding === true) {
@@ -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", "showIndex", "pad", "paginate", "pinned", "primaryKey", "secondaryKey", "show", "step"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { Fragment, cloneElement, useContext, useMemo, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "components", "options", "theme"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, Fragment } from 'react';
5
5
  import Markdown from 'markdown-to-jsx';
6
6
  import { deepMerge } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "dropHeight", "dropProps", "focus", "focusIndicator", "icon", "id", "mask", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "plain", "reverse", "textAlign", "value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Box } from '../Box';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "children", "disabled", "dropAlign", "dropBackground", "dropProps", "dropTarget", "justifyContent", "icon", "items", "label", "messages", "onKeyDown", "open", "plain", "size"],
2
2
  _excluded2 = ["align"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { useRef, forwardRef, useCallback, useContext, useMemo, useState, useEffect } from 'react';
6
6
  import styled from 'styled-components';
7
7
  import { Box } from '../Box';
@@ -324,7 +324,8 @@ var Menu = /*#__PURE__*/forwardRef(function (props, ref) {
324
324
  );
325
325
  };
326
326
  var menuContent;
327
- if (itemCount && Array.isArray(items[0])) {
327
+ var grouped = itemCount && Array.isArray(items[0]);
328
+ if (grouped) {
328
329
  var index = 0;
329
330
  menuContent = items.map(function (group, groupIndex) {
330
331
  var _theme$menu$group, _theme$menu$group2, _theme$menu$group3;
@@ -344,7 +345,7 @@ var Menu = /*#__PURE__*/forwardRef(function (props, ref) {
344
345
  color: (_theme$menu$group = theme.menu.group) == null || (_theme$menu$group = _theme$menu$group.separator) == null ? void 0 : _theme$menu$group.color,
345
346
  size: (_theme$menu$group2 = theme.menu.group) == null || (_theme$menu$group2 = _theme$menu$group2.separator) == null ? void 0 : _theme$menu$group2.size
346
347
  }
347
- })), /*#__PURE__*/React.createElement(Box, (_theme$menu$group3 = theme.menu.group) == null ? void 0 : _theme$menu$group3.container, group.map(function (item) {
348
+ })), /*#__PURE__*/React.createElement(Box, _extends({}, theme.menu.container, (_theme$menu$group3 = theme.menu.group) == null ? void 0 : _theme$menu$group3.container), group.map(function (item) {
348
349
  // item index needs to be its index in the entire menu as if
349
350
  // it were a flat array
350
351
  var currentIndex = index;
@@ -390,11 +391,11 @@ var Menu = /*#__PURE__*/forwardRef(function (props, ref) {
390
391
  ref: dropContainerRef,
391
392
  tabIndex: -1,
392
393
  background: dropBackground || theme.menu.background
393
- }, passThemeFlag), alignControlMirror === 'top' && align.bottom !== 'top' && align.top !== 'bottom' ? controlMirror : undefined, /*#__PURE__*/React.createElement(Box, {
394
+ }, passThemeFlag), alignControlMirror === 'top' && align.bottom !== 'top' && align.top !== 'bottom' ? controlMirror : undefined, /*#__PURE__*/React.createElement(Box, _extends({
394
395
  overflow: "auto",
395
396
  role: "menu",
396
397
  a11yTitle: a11y
397
- }, menuContent), !initialAlignTop &&
398
+ }, !grouped ? theme.menu.container : {}), menuContent), !initialAlignTop &&
398
399
  // don't show controlMirror if caller is using
399
400
  // align.bottom === 'top'
400
401
  alignControlMirror === 'bottom' && align.bottom !== 'top' && align.top !== 'bottom' ? controlMirror : undefined))
@@ -61,6 +61,10 @@ const customBreakpoints: ThemeType = {
61
61
  },
62
62
  menu: {
63
63
  background: 'light-3',
64
+ container: {
65
+ pad: 'xsmall',
66
+ gap: 'xsmall',
67
+ },
64
68
  icons: {
65
69
  down: FormDown,
66
70
  up: FormUp,
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["background", "max", "round", "size", "thickness", "direction", "values", "reverse"],
2
2
  _excluded2 = ["color", "highlight", "label", "onHover", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { forwardRef } from 'react';
6
6
  import { parseMetricToNum } from '../../utils';
7
7
  import { StyledMeter } from './StyledMeter';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["background", "max", "round", "size", "thickness", "type", "values"],
2
2
  _excluded2 = ["color", "highlight", "label", "onHover", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { forwardRef } from 'react';
6
6
  import { arcCommands, parseMetricToNum, translateEndAngle } from '../../utils';
7
7
  import { StyledMeter } from './StyledMeter';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["aria-label", "background", "color", "direction", "max", "messages", "size", "thickness", "type", "reverse", "value", "values"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useMemo } from 'react';
5
5
  import { Bar } from './Bar';
6
6
  import { Circle } from './Circle';
@@ -1,7 +1,9 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { genericStyles, styledComponentsConfig } from '../../utils';
3
+
4
+ // fallback to edgeSize for backwards compatibility
3
5
  var roundStyle = css(["border-radius:", ";"], function (props) {
4
- return props.theme.global.edgeSize[props.round.size];
6
+ return props.theme.global[props.theme.global.radius ? 'radius' : 'edgeSize'][props.round.size];
5
7
  });
6
8
 
7
9
  // overflow: hidden is needed for ie11
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["align", "layout", "nameProps", "pairProps", "valueProps"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useMemo } from 'react';
5
5
  import { Grid } from '../Grid';
6
6
  import { ResponsiveContext } from '../../contexts/ResponsiveContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, Button, Grommet, Nav } from 'grommet';
6
6
  import { Dashboard } from "grommet-icons/es6/icons/Dashboard";
@@ -36,7 +36,7 @@ var SidebarNav = function SidebarNav() {
36
36
  fill: true,
37
37
  direction: "row"
38
38
  }, /*#__PURE__*/React.createElement(Nav, {
39
- background: "neutral-1"
39
+ background: "dark-2"
40
40
  }, [{
41
41
  label: 'Dashboard',
42
42
  icon: /*#__PURE__*/React.createElement(Dashboard, null),
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, Button, Nav, Text } from 'grommet';
6
6
  var SidebarButton = function SidebarButton(_ref) {
@@ -1,6 +1,7 @@
1
- var _excluded = ["actions", "message", "onClose", "id", "global", "status", "title", "toast", "icon", "time"];
1
+ var _excluded = ["fill", "direction"],
2
+ _excluded2 = ["actions", "message", "onClose", "id", "global", "status", "title", "toast", "icon", "time"];
2
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
5
  import React, { useCallback, useEffect, useState, useMemo, Fragment } from 'react';
5
6
  import styled from 'styled-components';
6
7
  import { Anchor } from '../Anchor';
@@ -11,6 +12,14 @@ import { Paragraph } from '../Paragraph';
11
12
  import { Text } from '../Text';
12
13
  import { NotificationType } from './propTypes';
13
14
  import { useThemeValue } from '../../utils/useThemeValue';
15
+ var Message = function Message(_ref) {
16
+ var fill = _ref.fill,
17
+ direction = _ref.direction,
18
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
+ return direction === 'row' ? /*#__PURE__*/React.createElement(Text, rest) : /*#__PURE__*/React.createElement(Paragraph, _extends({}, rest, {
20
+ fill: fill || false
21
+ }));
22
+ };
14
23
  var adaptThemeStyle = function adaptThemeStyle(value, theme) {
15
24
  var textStyle = value;
16
25
  var closeButtonStyle = value;
@@ -55,21 +64,21 @@ var NotificationAnchor = styled(Anchor).withConfig({
55
64
  displayName: "Notification__NotificationAnchor",
56
65
  componentId: "sc-1yq09yz-0"
57
66
  })(["white-space:nowrap;"]);
58
- var Notification = function Notification(_ref) {
67
+ var Notification = function Notification(_ref2) {
59
68
  var _theme$notification6, _theme$notification7, _theme$notification8, _theme$notification9, _theme$notification10;
60
- var actionsProp = _ref.actions,
61
- messageProp = _ref.message,
62
- onClose = _ref.onClose,
63
- id = _ref.id,
64
- global = _ref.global,
65
- _ref$status = _ref.status,
66
- status = _ref$status === void 0 ? 'unknown' : _ref$status,
67
- title = _ref.title,
68
- _ref$toast = _ref.toast,
69
- toast = _ref$toast === void 0 ? false : _ref$toast,
70
- icon = _ref.icon,
71
- time = _ref.time,
72
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
69
+ var actionsProp = _ref2.actions,
70
+ messageProp = _ref2.message,
71
+ onClose = _ref2.onClose,
72
+ id = _ref2.id,
73
+ global = _ref2.global,
74
+ _ref2$status = _ref2.status,
75
+ status = _ref2$status === void 0 ? 'unknown' : _ref2$status,
76
+ title = _ref2.title,
77
+ _ref2$toast = _ref2.toast,
78
+ toast = _ref2$toast === void 0 ? false : _ref2$toast,
79
+ icon = _ref2.icon,
80
+ time = _ref2.time,
81
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
73
82
  var autoClose = toast && (toast == null ? void 0 : toast.autoClose) === undefined ? true : toast.autoClose;
74
83
  var _useThemeValue = useThemeValue(),
75
84
  theme = _useThemeValue.theme;
@@ -93,9 +102,9 @@ var Notification = function Notification(_ref) {
93
102
  return undefined;
94
103
  }, [autoClose, close, theme.notification.toast.time, theme.notification.time, time]);
95
104
  var CloseIcon = theme.notification.close.icon;
96
- var _ref2 = ((_theme$notification6 = theme.notification) == null ? void 0 : _theme$notification6[status]) || theme.notification.unknown,
97
- StatusIcon = _ref2.icon,
98
- color = _ref2.color;
105
+ var _ref3 = ((_theme$notification6 = theme.notification) == null ? void 0 : _theme$notification6[status]) || theme.notification.unknown,
106
+ StatusIcon = _ref3.icon,
107
+ color = _ref3.color;
99
108
  var closeIconColor = theme.notification.close.color;
100
109
  var kind = useMemo(function () {
101
110
  if (toast) return 'toast';
@@ -138,14 +147,16 @@ var Notification = function Notification(_ref) {
138
147
  }
139
148
  }, action, theme.notification.actions)), ' ');
140
149
  });
141
- var Message = direction !== 'row' ? Paragraph : Text;
142
- if (message || actions) message = typeof message === 'string' ? /*#__PURE__*/React.createElement(Message, _extends({}, theme.notification.message, {
143
- color: messageColor
144
- }), /*#__PURE__*/React.createElement(Text, {
145
- margin: {
146
- right: 'xsmall'
147
- }
148
- }, message), actions) : message;
150
+ if (message || actions) {
151
+ message = typeof message === 'string' ? /*#__PURE__*/React.createElement(Message, _extends({}, theme.notification.message, {
152
+ color: messageColor,
153
+ direction: direction
154
+ }), /*#__PURE__*/React.createElement(Text, {
155
+ margin: {
156
+ right: 'xsmall'
157
+ }
158
+ }, message), actions) : message;
159
+ }
149
160
  var iconDimension = ((_theme$notification10 = theme.notification) == null || (_theme$notification10 = _theme$notification10.message) == null ? void 0 : _theme$notification10.size) || 'medium';
150
161
  var content = /*#__PURE__*/React.createElement(Box, _extends({}, theme.notification.container, global ? _extends({}, theme.notification.global.container) : {}, toast ? _extends({}, theme.notification.toast.container) : {}, {
151
162
  background: background
@@ -41,11 +41,12 @@ const customTheme: ThemeType = deepMerge(grommet, {
41
41
  },
42
42
  },
43
43
  close: {
44
- color: '#e0ffcc',
44
+ color: '#000000',
45
45
  },
46
46
  unknown: {
47
47
  icon: CircleQuestion,
48
48
  background: '#87a200',
49
+ color: '#000000',
49
50
  },
50
51
  },
51
52
  });
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["kind"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useContext, useMemo } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { PageContext } from './PageContext';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "background"];
2
2
  function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { useContext } from 'react';
6
6
  import { Box } from '../Box';
7
7
  import { PageContext } from '../Page';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
2
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
4
  import React, { forwardRef, useContext } from 'react';
5
5
  import { Box } from '../Box';
@@ -1,4 +1,4 @@
1
- import { Button, Page, PageContent, PageHeader } from 'grommet';
1
+ import { Button, Main, Page, PageContent, PageHeader } from 'grommet';
2
2
  import React from 'react';
3
3
  export var Level = function Level() {
4
4
  return /*#__PURE__*/React.createElement(Page, null, /*#__PURE__*/React.createElement(PageContent, null, /*#__PURE__*/React.createElement(PageHeader, {
@@ -8,7 +8,7 @@ export var Level = function Level() {
8
8
  label: "View Details"
9
9
  }),
10
10
  level: 1 // Use different levels for different headers
11
- }), /*#__PURE__*/React.createElement(PageHeader, {
11
+ }), /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(PageHeader, {
12
12
  title: "Main Section",
13
13
  subtitle: "This is the main section of your application where you can display more detailed information about a specific topic or category.",
14
14
  actions: /*#__PURE__*/React.createElement(Button, {
@@ -22,7 +22,7 @@ export var Level = function Level() {
22
22
  label: "View Details"
23
23
  }),
24
24
  level: 3
25
- })));
25
+ }))));
26
26
  };
27
27
  export default {
28
28
  title: 'Layout/PageHeader/Level'
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Anchor, Button, PageHeader, Page, PageContent } from 'grommet';
3
+ import { Main } from '../../Main';
3
4
  export var Size = function Size() {
4
5
  return (
5
6
  /*#__PURE__*/
@@ -15,7 +16,7 @@ export var Size = function Size() {
15
16
  label: "Parent Page"
16
17
  }),
17
18
  size: "small"
18
- }), /*#__PURE__*/React.createElement(PageHeader, {
19
+ }), /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(PageHeader, {
19
20
  title: "Medium PageHeader (default)",
20
21
  subtitle: "Grommet helps you build responsive and accessible \n mobile-first projects for the web with an easy to use component \n library.",
21
22
  actions: /*#__PURE__*/React.createElement(Button, {
@@ -34,7 +35,7 @@ export var Size = function Size() {
34
35
  label: "Parent Page"
35
36
  }),
36
37
  size: "large"
37
- })))
38
+ }))))
38
39
  // </Grommet>
39
40
  );
40
41
  };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["control", "separator", "size"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import { StyledContainer, StyledPaginationButton, StyledSeparator } from './StyledPageControl';
6
6
  import { useThemeValue } from '../../utils/useThemeValue';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["messages", "onChange", "options", "step"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useContext } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { Select } from '../Select';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["messages", "numberItems", "page", "step"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
2
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
3
  import React, { useContext } from 'react';
4
4
  import { Box } from '../Box';
5
5
  import { Text } from '../Text';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "color", "fill", "size"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useMemo } from 'react';
5
5
  import { StyledParagraph } from './StyledParagraph';
6
6
  import { ParagraphPropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "checked", "children", "disabled", "focus", "focusIndicator", "id", "label", "name", "onChange"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useState } from 'react';
5
5
  import { normalizeColor, removeUndefined, useKeyboard } from '../../utils';
6
6
  import { StyledRadioButton, StyledRadioButtonContainer, StyledRadioButtonIcon, StyledRadioButtonInput, StyledRadioButtonLabel, StyledRadioButtonBox } from './StyledRadioButton';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "defaultValue", "disabled", "focusIndicator", "name", "onChange", "options", "value", "gap"],
2
2
  _excluded2 = ["disabled", "id", "label", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { forwardRef, useContext, useRef, useState } from 'react';
6
6
  import { FormContext } from '../Form/FormContext';
7
7
  import { Keyboard } from '../Keyboard';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, Grommet, RadioButtonGroup, ThemeContext } from 'grommet';
6
6
  import { grommet } from 'grommet/themes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, RadioButtonGroup } from 'grommet';
6
6
  export var Disabled = function Disabled(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "color", "focus", "focusIndicator", "name", "onChange", "onFocus", "onBlur", "value", "step", "min", "max"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useState, useCallback, useEffect } from 'react';
5
5
  import { FormContext } from '../Form/FormContext';
6
6
  import { StyledRangeInput } from './StyledRangeInput';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["color", "direction", "edge", "onDecrease", "onIncrease", "thickness"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Box } from '../Box';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["color", "defaultValues", "direction", "invert", "label", "max", "messages", "min", "name", "onChange", "opacity", "round", "size", "step", "values"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useContext, useEffect, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Grommet, Box, RangeSelector, Stack, Text } from 'grommet';
6
6
  import { grommet } from 'grommet/themes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Gremlin } from "grommet-icons/es6/icons/Gremlin";
6
6
  import { Grommet as GrommetIcon } from "grommet-icons/es6/icons/Grommet";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, RangeSelector, Stack, Text } from 'grommet';
6
6
  var SimpleRangeSelector = function SimpleRangeSelector(_ref) {