grommet 2.36.1 → 2.38.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 (535) hide show
  1. package/all/stories/AllComponents.js +2 -2
  2. package/components/Accordion/Accordion.js +2 -2
  3. package/components/Accordion/stories/CustomHeader.js +1 -1
  4. package/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  5. package/components/Accordion/stories/Simple.js +1 -1
  6. package/components/AccordionPanel/AccordionPanel.js +2 -2
  7. package/components/Anchor/Anchor.js +2 -2
  8. package/components/Anchor/StyledAnchor.js +2 -8
  9. package/components/Avatar/Avatar.js +2 -2
  10. package/components/Box/Box.js +2 -2
  11. package/components/Box/StyledBox.js +3 -3
  12. package/components/Box/stories/BackgroundThemed.js +1 -1
  13. package/components/Button/Badge.js +1 -1
  14. package/components/Button/BusyAnimation.js +3 -2
  15. package/components/Button/Button.js +3 -2
  16. package/components/Button/StyledButton.js +3 -2
  17. package/components/Button/StyledButtonKind.js +5 -5
  18. package/components/Button/stories/Busy.js +1 -1
  19. package/components/Calendar/Calendar.js +2 -2
  20. package/components/Calendar/StyledCalendar.js +7 -7
  21. package/components/Calendar/stories/ActiveDate.js +1 -1
  22. package/components/Calendar/stories/CustomDay.js +1 -1
  23. package/components/Calendar/stories/CustomHeader.js +1 -1
  24. package/components/Calendar/stories/CustomThemed/CustomSizeHeading.js +1 -1
  25. package/components/Calendar/stories/Dual.js +1 -1
  26. package/components/Calendar/stories/Multiple.js +1 -1
  27. package/components/Calendar/stories/ShowAdjacentDays.js +1 -1
  28. package/components/Calendar/stories/Simple.js +1 -1
  29. package/components/Card/Card.js +1 -1
  30. package/components/Card/stories/CustomThemed/Clickable.js +1 -1
  31. package/components/Card/stories/CustomThemed/Themed.js +1 -1
  32. package/components/CardBody/CardBody.js +1 -1
  33. package/components/CardFooter/CardFooter.js +1 -1
  34. package/components/CardHeader/CardHeader.js +1 -1
  35. package/components/Cards/Cards.js +2 -2
  36. package/components/Carousel/Carousel.js +2 -2
  37. package/components/Carousel/CarouselChild.js +1 -1
  38. package/components/Carousel/StyledCarousel.js +1 -1
  39. package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  40. package/components/Chart/Chart.js +2 -2
  41. package/components/Chart/StyledChart.js +2 -2
  42. package/components/Chart/stories/Rich.js +1 -1
  43. package/components/Chart/stories/Scan.js +1 -1
  44. package/components/Chart/stories/Window.js +1 -1
  45. package/components/Chart/stories/Zoom.js +1 -1
  46. package/components/CheckBox/CheckBox.js +2 -5
  47. package/components/CheckBox/StyledCheckBox.js +12 -11
  48. package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
  49. package/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
  50. package/components/CheckBox/stories/Indeterminate.js +1 -1
  51. package/components/CheckBox/stories/InsideButton.js +1 -1
  52. package/components/CheckBox/stories/NoLabel.js +2 -2
  53. package/components/CheckBox/stories/Simple.js +2 -2
  54. package/components/CheckBox/stories/WithStickyDiv.js +1 -1
  55. package/components/CheckBoxGroup/CheckBoxGroup.js +2 -2
  56. package/components/CheckBoxGroup/stories/Children.js +1 -1
  57. package/components/CheckBoxGroup/stories/InitialValues.js +1 -1
  58. package/components/Clock/Analog.js +2 -2
  59. package/components/Clock/Clock.js +2 -2
  60. package/components/Clock/Digital.js +2 -2
  61. package/components/Clock/StyledClock.js +8 -8
  62. package/components/Collapsible/Collapsible.js +1 -1
  63. package/components/Collapsible/stories/Nested.js +1 -1
  64. package/components/Data/Data.js +2 -2
  65. package/components/Data/DataForm.js +2 -2
  66. package/components/Data/stories/Infinite.js +2 -2
  67. package/components/Data/stories/Inline.js +2 -2
  68. package/components/Data/stories/OnSelect.js +264 -0
  69. package/components/Data/stories/SpaceX.js +2 -2
  70. package/components/Data/stories/StarWars.js +2 -2
  71. package/components/DataChart/DataChart.js +2 -2
  72. package/components/DataChart/Detail.js +1 -1
  73. package/components/DataChart/Legend.js +1 -1
  74. package/components/DataChart/Swatch.js +1 -1
  75. package/components/DataChart/XAxis.js +2 -2
  76. package/components/DataChart/XGuide.js +1 -1
  77. package/components/DataChart/YAxis.js +1 -1
  78. package/components/DataChart/YGuide.js +1 -1
  79. package/components/DataChart/stories/Prediction.js +1 -1
  80. package/components/DataClearFilters/DataClearFilters.js +2 -2
  81. package/components/DataClearFilters/stories/Simple.js +1 -1
  82. package/components/DataFilter/DataFilter.js +2 -2
  83. package/components/DataFilters/DataFilters.js +2 -2
  84. package/components/DataSearch/DataSearch.js +7 -2
  85. package/components/DataSort/DataSort.js +2 -2
  86. package/components/DataSummary/DataSummary.js +2 -2
  87. package/components/DataTable/Body.js +2 -2
  88. package/components/DataTable/Cell.js +2 -2
  89. package/components/DataTable/DataTable.js +11 -18
  90. package/components/DataTable/ExpanderCell.js +2 -2
  91. package/components/DataTable/Footer.js +2 -2
  92. package/components/DataTable/GroupedBody.js +2 -2
  93. package/components/DataTable/Header.js +24 -17
  94. package/components/DataTable/PlaceholderBody.js +1 -1
  95. package/components/DataTable/Resizer.js +1 -1
  96. package/components/DataTable/Searcher.js +1 -1
  97. package/components/DataTable/Sorter.js +1 -1
  98. package/components/DataTable/StyledDataTable.js +2 -2
  99. package/components/DataTable/index.d.ts +5 -1
  100. package/components/DataTable/stories/ControlledGrouped.js +1 -1
  101. package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  102. package/components/DataTable/stories/OnUpdate.js +1 -1
  103. package/components/DataTable/stories/SpaceX.js +2 -2
  104. package/components/DataTable/stories/SpaceXUngrouped.js +2 -2
  105. package/components/DataTableColumns/DataTableColumns.js +18 -4
  106. package/components/DataTableColumns/index.d.ts +9 -1
  107. package/components/DataTableColumns/propTypes.js +1 -0
  108. package/components/DataTableColumns/stories/Pinned.js +46 -0
  109. package/components/DataTableGroupBy/DataTableGroupBy.js +2 -2
  110. package/components/DataView/DataView.js +2 -2
  111. package/components/DateInput/DateInput.js +2 -2
  112. package/components/DateInput/stories/FormatInline.js +1 -1
  113. package/components/Diagram/Diagram.js +2 -2
  114. package/components/Diagram/StyledDiagram.js +3 -2
  115. package/components/Diagram/stories/Animated.js +1 -1
  116. package/components/Diagram/stories/Progressing.js +2 -2
  117. package/components/Distribution/Distribution.js +1 -1
  118. package/components/Drop/Drop.js +2 -2
  119. package/components/Drop/DropContainer.js +2 -4
  120. package/components/Drop/StyledDrop.js +3 -2
  121. package/components/Drop/stories/CustomThemed/Lazy.js +1 -1
  122. package/components/Drop/stories/CustomThemed/Themed.js +1 -1
  123. package/components/Drop/stories/Inline.js +1 -1
  124. package/components/Drop/stories/Meter.js +1 -1
  125. package/components/Drop/stories/Multiple.js +1 -1
  126. package/components/Drop/stories/Overflow.js +1 -1
  127. package/components/Drop/stories/Plain.js +1 -1
  128. package/components/Drop/stories/Progressive.js +1 -1
  129. package/components/Drop/stories/Simple.js +1 -1
  130. package/components/Drop/stories/Styled.js +1 -1
  131. package/components/Drop/stories/TrapFocus.js +1 -1
  132. package/components/DropButton/DropButton.js +2 -2
  133. package/components/FileInput/FileInput.js +2 -2
  134. package/components/FileInput/StyledFileInput.js +1 -1
  135. package/components/FocusedContainer.js +2 -2
  136. package/components/Form/Form.js +2 -2
  137. package/components/Form/FormContext.js +1 -1
  138. package/components/Form/stories/ArrayOfFormFields.js +1 -1
  139. package/components/Form/stories/Controlled.js +1 -1
  140. package/components/Form/stories/ControlledInput.js +1 -1
  141. package/components/Form/stories/ControlledInputLazy.js +1 -1
  142. package/components/Form/stories/ControlledLazy.js +1 -1
  143. package/components/Form/stories/CustomThemed/FieldBorderPosition.js +1 -1
  144. package/components/Form/stories/CustomThemed/FieldCustomStates.js +1 -1
  145. package/components/Form/stories/DynamicFields.js +1 -1
  146. package/components/Form/stories/FieldStates.js +1 -1
  147. package/components/Form/stories/SolicitedFeedback.js +1 -1
  148. package/components/Form/stories/UnsolicitedFeedback.js +1 -1
  149. package/components/Form/stories/ValidateOnChange.js +1 -1
  150. package/components/Form/stories/ValidateOnMount.js +1 -1
  151. package/components/FormField/FormField.js +3 -3
  152. package/components/FormField/stories/Simple.js +1 -1
  153. package/components/Grid/Grid.js +2 -2
  154. package/components/Grid/StyledGrid.js +2 -2
  155. package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  156. package/components/Grid/stories/ResponsiveCards.js +1 -1
  157. package/components/Grommet/Grommet.js +2 -2
  158. package/components/Grommet/StyledGrommet.js +2 -2
  159. package/components/Header/Header.js +2 -2
  160. package/components/Header/stories/Sticky.js +1 -1
  161. package/components/Heading/Heading.js +2 -2
  162. package/components/Heading/HeadingSkeleton.js +1 -1
  163. package/components/Heading/StyledHeading.js +2 -2
  164. package/components/Image/Image.js +2 -2
  165. package/components/Image/StyledImage.js +2 -2
  166. package/components/InfiniteScroll/InfiniteScroll.js +1 -1
  167. package/components/Keyboard/Keyboard.js +1 -1
  168. package/components/Layer/Layer.js +1 -1
  169. package/components/Layer/LayerContainer.js +3 -3
  170. package/components/Layer/StyledLayer.js +7 -7
  171. package/components/List/List.js +46 -22
  172. package/components/List/index.d.ts +20 -6
  173. package/components/List/propTypes.js +6 -1
  174. package/components/List/stories/Order.js +1 -1
  175. package/components/List/stories/Pinned.js +1 -1
  176. package/components/Markdown/Markdown.js +2 -2
  177. package/components/Markdown/stories/Override.js +2 -1
  178. package/components/MaskedInput/MaskedInput.js +2 -2
  179. package/components/MaskedInput/StyledMaskedInput.js +3 -3
  180. package/components/Menu/Menu.js +3 -3
  181. package/components/Meter/Bar.js +2 -2
  182. package/components/Meter/Circle.js +2 -2
  183. package/components/Meter/Meter.js +2 -2
  184. package/components/Meter/StyledMeter.js +2 -2
  185. package/components/Meter/stories/Circle.js +1 -1
  186. package/components/Meter/stories/VerticalBarMultiple.js +1 -1
  187. package/components/NameValueList/NameValueList.js +2 -2
  188. package/components/NameValuePair/NameValuePair.js +1 -1
  189. package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
  190. package/components/Nav/stories/Sidebar.js +2 -2
  191. package/components/Notification/Notification.js +2 -2
  192. package/components/Notification/stories/Global.js +1 -1
  193. package/components/Notification/stories/Title.js +1 -1
  194. package/components/Notification/stories/TitleAndMessage.js +1 -1
  195. package/components/Page/Page.js +2 -2
  196. package/components/Page/stories/PageNotificaton.js +1 -1
  197. package/components/PageContent/PageContent.js +2 -2
  198. package/components/PageHeader/PageHeader.js +2 -2
  199. package/components/PageHeader/stories/MultipleActions.js +1 -1
  200. package/components/Pagination/PageControl.js +2 -2
  201. package/components/Pagination/Pagination.js +5 -2
  202. package/components/Pagination/PaginationStep.js +2 -2
  203. package/components/Pagination/PaginationSummary.js +2 -2
  204. package/components/Pagination/StyledPageControl.js +2 -1
  205. package/components/Pagination/stories/Grid.js +1 -1
  206. package/components/Paragraph/Paragraph.js +2 -2
  207. package/components/Paragraph/ParagraphSkeleton.js +1 -1
  208. package/components/Paragraph/StyledParagraph.js +2 -2
  209. package/components/RadioButton/RadioButton.js +2 -5
  210. package/components/RadioButton/StyledRadioButton.js +9 -8
  211. package/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
  212. package/components/RadioButtonGroup/stories/Children.js +1 -1
  213. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +2 -2
  214. package/components/RadioButtonGroup/stories/Disabled.js +2 -2
  215. package/components/RangeInput/RangeInput.js +3 -3
  216. package/components/RangeInput/StyledRangeInput.js +2 -2
  217. package/components/RangeSelector/EdgeControl.js +2 -2
  218. package/components/RangeSelector/RangeSelector.js +2 -2
  219. package/components/RangeSelector/stories/Basics.js +1 -1
  220. package/components/RangeSelector/stories/CustomThemed/Custom.js +2 -2
  221. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +2 -2
  222. package/components/RangeSelector/stories/Label.js +1 -1
  223. package/components/RangeSelector/stories/Simple.js +1 -1
  224. package/components/RangeSelector/stories/Step.js +2 -2
  225. package/components/RangeSelector/stories/Thin.js +1 -1
  226. package/components/RangeSelector/stories/Vertical.js +2 -2
  227. package/components/RoutedAnchor/RoutedAnchor.js +3 -3
  228. package/components/RoutedButton/RoutedButton.js +3 -3
  229. package/components/Select/DefaultSelectTextInput.js +2 -2
  230. package/components/Select/Select.js +2 -2
  231. package/components/Select/SelectContainer.js +2 -3
  232. package/components/Select/StyledSelect.js +4 -3
  233. package/components/Select/stories/ChildrenRender.js +1 -1
  234. package/components/Select/stories/Clear.js +1 -1
  235. package/components/Select/stories/Controlled.js +1 -1
  236. package/components/Select/stories/CustomThemed/CustomSearch.js +1 -1
  237. package/components/Select/stories/Disabled.js +1 -1
  238. package/components/Select/stories/InsideFormField.js +1 -1
  239. package/components/Select/stories/Multiple.js +1 -1
  240. package/components/Select/stories/ObjectOptions.js +1 -1
  241. package/components/Select/stories/Search.js +1 -1
  242. package/components/Select/stories/Simple.js +1 -1
  243. package/components/Select/stories/ValueLabel.js +1 -1
  244. package/components/Select/stories/components/SearchBorderBox.js +2 -2
  245. package/components/Select/stories/components/SearchInput.js +2 -2
  246. package/components/SelectMultiple/SelectMultiple.js +2 -2
  247. package/components/SelectMultiple/SelectMultipleContainer.js +1 -2
  248. package/components/SelectMultiple/SelectMultipleValue.js +1 -1
  249. package/components/SelectMultiple/SelectionSummary.js +1 -1
  250. package/components/SelectMultiple/stories/CustomMessages.js +1 -1
  251. package/components/SelectMultiple/stories/Default.js +1 -1
  252. package/components/SelectMultiple/stories/Disabled.js +1 -1
  253. package/components/SelectMultiple/stories/FormField.js +1 -1
  254. package/components/SelectMultiple/stories/Help.js +1 -1
  255. package/components/SelectMultiple/stories/Limited.js +1 -1
  256. package/components/SelectMultiple/stories/ObjectOptions.js +1 -1
  257. package/components/SelectMultiple/stories/ShowSelectedInline.js +1 -1
  258. package/components/Sidebar/Sidebar.js +1 -1
  259. package/components/Sidebar/stories/Labels.js +1 -1
  260. package/components/Skeleton/Skeleton.js +2 -2
  261. package/components/Skeleton/SkeletonContext.js +1 -1
  262. package/components/Skeleton/StyledSkeleton.js +6 -3
  263. package/components/Skeleton/stories/CustomThemed/Custom.js +1 -1
  264. package/components/Skeleton/stories/GridContainer.js +2 -2
  265. package/components/Skeleton/stories/Group.js +1 -1
  266. package/components/Skeleton/stories/Individual.js +2 -2
  267. package/components/SkipLink/SkipLink.js +2 -2
  268. package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  269. package/components/SkipLinks/SkipLinks.js +1 -1
  270. package/components/Spinner/Spinner.js +2 -2
  271. package/components/Spinner/stories/Animation.js +1 -1
  272. package/components/Spinner/stories/Announced.js +1 -1
  273. package/components/Stack/Stack.js +2 -2
  274. package/components/Stack/StyledStack.js +3 -3
  275. package/components/StarRating/StarRating.js +2 -2
  276. package/components/Tab/StyledTab.js +3 -2
  277. package/components/Tab/Tab.js +2 -4
  278. package/components/Table/StyledTable.js +8 -8
  279. package/components/Table/Table.js +2 -2
  280. package/components/Table/stories/InfiniteScrollInTable.js +1 -1
  281. package/components/TableBody/TableBody.js +1 -1
  282. package/components/TableCell/TableCell.js +2 -2
  283. package/components/TableFooter/TableFooter.js +1 -1
  284. package/components/TableHeader/TableHeader.js +1 -1
  285. package/components/TableRow/TableRow.js +1 -1
  286. package/components/Tabs/StyledTabs.js +5 -4
  287. package/components/Tabs/Tabs.js +2 -4
  288. package/components/Tabs/stories/CustomThemed/States.js +1 -1
  289. package/components/Tabs/stories/Responsive.js +1 -1
  290. package/components/Tag/Tag.js +2 -2
  291. package/components/Text/StyledText.js +2 -6
  292. package/components/Text/Text.js +2 -2
  293. package/components/Text/TextSkeleton.js +2 -2
  294. package/components/TextArea/StyledTextArea.js +2 -2
  295. package/components/TextArea/TextArea.js +2 -2
  296. package/components/TextArea/stories/CustomThemed/Themed.js +1 -1
  297. package/components/TextArea/stories/InsideFormField.js +1 -1
  298. package/components/TextArea/stories/NonResizable.js +1 -1
  299. package/components/TextArea/stories/Simple.js +1 -1
  300. package/components/TextInput/CopyButton.js +1 -1
  301. package/components/TextInput/StyledTextInput.js +6 -6
  302. package/components/TextInput/TextInput.js +2 -2
  303. package/components/TextInput/stories/InsideFormField.js +1 -1
  304. package/components/TextInput/stories/Simple.js +6 -1
  305. package/components/TextInput/stories/WithTags.js +1 -1
  306. package/components/ThumbsRating/ThumbsRating.js +1 -1
  307. package/components/Tip/Tip.js +1 -1
  308. package/components/Tip/stories/HeaderActions.js +1 -1
  309. package/components/ToggleGroup/README.md +2 -0
  310. package/components/ToggleGroup/StyledToggleGroup.js +36 -0
  311. package/components/ToggleGroup/ToggleGroup.js +165 -0
  312. package/components/ToggleGroup/index.d.ts +26 -0
  313. package/components/ToggleGroup/index.js +6 -0
  314. package/components/ToggleGroup/propTypes.js +21 -0
  315. package/components/ToggleGroup/stories/Controlled.js +31 -0
  316. package/components/ToggleGroup/stories/multiple.tsx +28 -0
  317. package/components/ToggleGroup/stories/simple.js +37 -0
  318. package/components/Toolbar/Toolbar.js +2 -2
  319. package/components/Video/StyledVideo.js +5 -5
  320. package/components/Video/Video.js +2 -2
  321. package/components/WorldMap/StyledWorldMap.js +1 -1
  322. package/components/WorldMap/WorldMap.js +2 -2
  323. package/components/index.d.ts +2 -0
  324. package/components/index.js +6 -0
  325. package/contexts/AnalyticsContext/AnalyticsContext.js +1 -1
  326. package/contexts/AnnounceContext/stories/Polite.js +1 -1
  327. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  328. package/contexts/ThemeContext/stories/ThemeContextExtend.js +1 -1
  329. package/es6/all/stories/AllComponents.js +1 -1
  330. package/es6/components/Accordion/Accordion.js +1 -1
  331. package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  332. package/es6/components/Accordion/stories/Simple.js +1 -1
  333. package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
  334. package/es6/components/Anchor/Anchor.js +1 -1
  335. package/es6/components/Anchor/StyledAnchor.js +2 -8
  336. package/es6/components/Avatar/Avatar.js +1 -1
  337. package/es6/components/Box/Box.js +1 -1
  338. package/es6/components/Box/StyledBox.js +3 -3
  339. package/es6/components/Button/BusyAnimation.js +2 -1
  340. package/es6/components/Button/Button.js +2 -1
  341. package/es6/components/Button/StyledButton.js +2 -1
  342. package/es6/components/Button/StyledButtonKind.js +3 -4
  343. package/es6/components/Calendar/Calendar.js +1 -1
  344. package/es6/components/Calendar/StyledCalendar.js +7 -7
  345. package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
  346. package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
  347. package/es6/components/Cards/Cards.js +1 -1
  348. package/es6/components/Carousel/Carousel.js +1 -1
  349. package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  350. package/es6/components/Chart/Chart.js +1 -1
  351. package/es6/components/Chart/StyledChart.js +2 -2
  352. package/es6/components/CheckBox/CheckBox.js +1 -4
  353. package/es6/components/CheckBox/StyledCheckBox.js +12 -11
  354. package/es6/components/CheckBox/stories/NoLabel.js +1 -1
  355. package/es6/components/CheckBox/stories/Simple.js +1 -1
  356. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  357. package/es6/components/Clock/Analog.js +1 -1
  358. package/es6/components/Clock/Clock.js +1 -1
  359. package/es6/components/Clock/Digital.js +1 -1
  360. package/es6/components/Clock/StyledClock.js +8 -8
  361. package/es6/components/Collapsible/stories/Nested.js +1 -1
  362. package/es6/components/Data/Data.js +1 -1
  363. package/es6/components/Data/DataForm.js +1 -1
  364. package/es6/components/Data/stories/Infinite.js +1 -1
  365. package/es6/components/Data/stories/Inline.js +1 -1
  366. package/es6/components/Data/stories/OnSelect.js +258 -0
  367. package/es6/components/Data/stories/SpaceX.js +1 -1
  368. package/es6/components/Data/stories/StarWars.js +1 -1
  369. package/es6/components/DataChart/DataChart.js +1 -1
  370. package/es6/components/DataChart/XAxis.js +1 -1
  371. package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
  372. package/es6/components/DataFilter/DataFilter.js +1 -1
  373. package/es6/components/DataFilters/DataFilters.js +1 -1
  374. package/es6/components/DataSearch/DataSearch.js +6 -1
  375. package/es6/components/DataSort/DataSort.js +1 -1
  376. package/es6/components/DataSummary/DataSummary.js +1 -1
  377. package/es6/components/DataTable/Body.js +1 -1
  378. package/es6/components/DataTable/Cell.js +1 -1
  379. package/es6/components/DataTable/DataTable.js +10 -17
  380. package/es6/components/DataTable/ExpanderCell.js +1 -1
  381. package/es6/components/DataTable/Footer.js +1 -1
  382. package/es6/components/DataTable/GroupedBody.js +1 -1
  383. package/es6/components/DataTable/Header.js +23 -16
  384. package/es6/components/DataTable/StyledDataTable.js +2 -2
  385. package/es6/components/DataTable/index.d.ts +5 -1
  386. package/es6/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  387. package/es6/components/DataTable/stories/SpaceX.js +1 -1
  388. package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
  389. package/es6/components/DataTableColumns/DataTableColumns.js +17 -3
  390. package/es6/components/DataTableColumns/index.d.ts +9 -1
  391. package/es6/components/DataTableColumns/propTypes.js +1 -0
  392. package/es6/components/DataTableColumns/stories/Pinned.js +42 -0
  393. package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  394. package/es6/components/DataView/DataView.js +1 -1
  395. package/es6/components/DateInput/DateInput.js +1 -1
  396. package/es6/components/Diagram/Diagram.js +1 -1
  397. package/es6/components/Diagram/StyledDiagram.js +2 -1
  398. package/es6/components/Diagram/stories/Progressing.js +1 -1
  399. package/es6/components/Distribution/Distribution.js +1 -1
  400. package/es6/components/Drop/Drop.js +1 -1
  401. package/es6/components/Drop/DropContainer.js +1 -3
  402. package/es6/components/Drop/StyledDrop.js +2 -1
  403. package/es6/components/DropButton/DropButton.js +1 -1
  404. package/es6/components/FileInput/FileInput.js +1 -1
  405. package/es6/components/FileInput/StyledFileInput.js +2 -2
  406. package/es6/components/FocusedContainer.js +1 -1
  407. package/es6/components/Form/Form.js +1 -1
  408. package/es6/components/FormField/FormField.js +2 -2
  409. package/es6/components/Grid/Grid.js +1 -1
  410. package/es6/components/Grid/StyledGrid.js +2 -2
  411. package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  412. package/es6/components/Grommet/Grommet.js +1 -1
  413. package/es6/components/Grommet/StyledGrommet.js +2 -2
  414. package/es6/components/Header/Header.js +1 -1
  415. package/es6/components/Heading/Heading.js +1 -1
  416. package/es6/components/Heading/StyledHeading.js +2 -2
  417. package/es6/components/Image/Image.js +1 -1
  418. package/es6/components/Image/StyledImage.js +2 -2
  419. package/es6/components/Keyboard/Keyboard.js +1 -1
  420. package/es6/components/Layer/LayerContainer.js +3 -3
  421. package/es6/components/Layer/StyledLayer.js +6 -7
  422. package/es6/components/List/List.js +47 -23
  423. package/es6/components/List/index.d.ts +20 -6
  424. package/es6/components/List/propTypes.js +7 -2
  425. package/es6/components/Markdown/Markdown.js +1 -1
  426. package/es6/components/Markdown/stories/Override.js +2 -1
  427. package/es6/components/MaskedInput/MaskedInput.js +1 -1
  428. package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
  429. package/es6/components/Menu/Menu.js +2 -2
  430. package/es6/components/Meter/Bar.js +1 -1
  431. package/es6/components/Meter/Circle.js +1 -1
  432. package/es6/components/Meter/Meter.js +1 -1
  433. package/es6/components/Meter/StyledMeter.js +2 -2
  434. package/es6/components/NameValueList/NameValueList.js +1 -1
  435. package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  436. package/es6/components/Nav/stories/Sidebar.js +1 -1
  437. package/es6/components/Notification/Notification.js +1 -1
  438. package/es6/components/Page/Page.js +1 -1
  439. package/es6/components/PageContent/PageContent.js +1 -1
  440. package/es6/components/PageHeader/PageHeader.js +1 -1
  441. package/es6/components/Pagination/PageControl.js +1 -1
  442. package/es6/components/Pagination/Pagination.js +4 -1
  443. package/es6/components/Pagination/PaginationStep.js +1 -1
  444. package/es6/components/Pagination/PaginationSummary.js +1 -1
  445. package/es6/components/Pagination/StyledPageControl.js +2 -1
  446. package/es6/components/Paragraph/Paragraph.js +1 -1
  447. package/es6/components/Paragraph/StyledParagraph.js +2 -2
  448. package/es6/components/RadioButton/RadioButton.js +1 -4
  449. package/es6/components/RadioButton/StyledRadioButton.js +9 -8
  450. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  451. package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  452. package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
  453. package/es6/components/RangeInput/RangeInput.js +2 -2
  454. package/es6/components/RangeInput/StyledRangeInput.js +2 -2
  455. package/es6/components/RangeSelector/EdgeControl.js +1 -1
  456. package/es6/components/RangeSelector/RangeSelector.js +1 -1
  457. package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  458. package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  459. package/es6/components/RangeSelector/stories/Step.js +1 -1
  460. package/es6/components/RangeSelector/stories/Vertical.js +1 -1
  461. package/es6/components/RoutedAnchor/RoutedAnchor.js +2 -2
  462. package/es6/components/RoutedButton/RoutedButton.js +2 -2
  463. package/es6/components/Select/DefaultSelectTextInput.js +1 -1
  464. package/es6/components/Select/Select.js +1 -1
  465. package/es6/components/Select/SelectContainer.js +1 -2
  466. package/es6/components/Select/StyledSelect.js +5 -4
  467. package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
  468. package/es6/components/Select/stories/components/SearchInput.js +1 -1
  469. package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
  470. package/es6/components/SelectMultiple/SelectMultipleContainer.js +0 -1
  471. package/es6/components/Sidebar/Sidebar.js +1 -1
  472. package/es6/components/Sidebar/stories/Labels.js +1 -1
  473. package/es6/components/Skeleton/Skeleton.js +1 -1
  474. package/es6/components/Skeleton/StyledSkeleton.js +7 -4
  475. package/es6/components/Skeleton/stories/GridContainer.js +1 -1
  476. package/es6/components/Skeleton/stories/Individual.js +1 -1
  477. package/es6/components/SkipLink/SkipLink.js +1 -1
  478. package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  479. package/es6/components/Spinner/Spinner.js +1 -1
  480. package/es6/components/Stack/Stack.js +1 -1
  481. package/es6/components/Stack/StyledStack.js +3 -3
  482. package/es6/components/StarRating/StarRating.js +1 -1
  483. package/es6/components/Tab/StyledTab.js +2 -1
  484. package/es6/components/Tab/Tab.js +1 -3
  485. package/es6/components/Table/StyledTable.js +8 -8
  486. package/es6/components/Table/Table.js +1 -1
  487. package/es6/components/TableCell/TableCell.js +1 -1
  488. package/es6/components/Tabs/StyledTabs.js +5 -4
  489. package/es6/components/Tabs/Tabs.js +1 -3
  490. package/es6/components/Tag/Tag.js +1 -1
  491. package/es6/components/Text/StyledText.js +2 -6
  492. package/es6/components/Text/Text.js +1 -1
  493. package/es6/components/Text/TextSkeleton.js +1 -1
  494. package/es6/components/TextArea/StyledTextArea.js +2 -2
  495. package/es6/components/TextArea/TextArea.js +1 -1
  496. package/es6/components/TextInput/StyledTextInput.js +6 -6
  497. package/es6/components/TextInput/TextInput.js +1 -1
  498. package/es6/components/TextInput/stories/Simple.js +7 -2
  499. package/es6/components/TextInput/stories/WithTags.js +1 -1
  500. package/es6/components/ToggleGroup/README.md +2 -0
  501. package/es6/components/ToggleGroup/StyledToggleGroup.js +31 -0
  502. package/es6/components/ToggleGroup/ToggleGroup.js +160 -0
  503. package/es6/components/ToggleGroup/index.d.ts +26 -0
  504. package/es6/components/ToggleGroup/index.js +1 -0
  505. package/es6/components/ToggleGroup/propTypes.js +16 -0
  506. package/es6/components/ToggleGroup/stories/Controlled.js +25 -0
  507. package/es6/components/ToggleGroup/stories/multiple.tsx +28 -0
  508. package/es6/components/ToggleGroup/stories/simple.js +34 -0
  509. package/es6/components/Toolbar/Toolbar.js +1 -1
  510. package/es6/components/Video/StyledVideo.js +5 -5
  511. package/es6/components/Video/Video.js +1 -1
  512. package/es6/components/WorldMap/StyledWorldMap.js +2 -2
  513. package/es6/components/WorldMap/WorldMap.js +1 -1
  514. package/es6/components/index.d.ts +2 -0
  515. package/es6/components/index.js +1 -0
  516. package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  517. package/es6/index.d.ts +1 -0
  518. package/es6/themes/base.d.ts +20 -1
  519. package/es6/themes/base.js +19 -0
  520. package/es6/utils/DOM.js +3 -1
  521. package/es6/utils/pagination.js +1 -1
  522. package/es6/utils/styles.js +7 -1
  523. package/es6/utils/useControlled.js +25 -0
  524. package/grommet.min.js +1 -1
  525. package/grommet.min.js.map +1 -1
  526. package/index.d.ts +1 -0
  527. package/package.json +39 -35
  528. package/themes/base.d.ts +20 -1
  529. package/themes/base.js +19 -0
  530. package/tools/release-stable.js +1 -1
  531. package/tools/release-styled-components-beta-stable.js +1 -1
  532. package/utils/DOM.js +3 -1
  533. package/utils/pagination.js +1 -1
  534. package/utils/styles.js +8 -2
  535. package/utils/useControlled.js +28 -0
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import styled, { css } from 'styled-components';
4
4
  import { defaultProps } from '../../default-props';
5
5
  import { alignContentStyle, alignStyle, backgroundStyle, borderStyle, breakpointStyle, edgeStyle, fillStyle, focusStyle, genericStyles, getBreakpointStyle, getHoverIndicatorStyle, heightStyle, overflowStyle, parseMetricToNum, responsiveBorderStyle, widthStyle } from '../../utils';
6
- import { roundStyle } from '../../utils/styles';
6
+ import { roundStyle, styledComponentsConfig } from '../../utils/styles';
7
7
  import { animationBounds, animationObjectStyle } from '../../utils/animation';
8
8
  var BASIS_MAP = {
9
9
  auto: 'auto',
@@ -164,7 +164,7 @@ var gapStyle = function gapStyle(directionProp, gap, responsive, wrap, theme) {
164
164
  };
165
165
 
166
166
  // NOTE: basis must be after flex! Otherwise, flex overrides basis
167
- var StyledBox = styled.div.withConfig({
167
+ var StyledBox = styled.div.withConfig(styledComponentsConfig).withConfig({
168
168
  displayName: "StyledBox",
169
169
  componentId: "sc-13pk1d4-0"
170
170
  })(["display:flex;box-sizing:border-box;", ";", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
@@ -269,7 +269,7 @@ var gapGapStyle = function gapGapStyle(directionProp, gap, responsive, border, t
269
269
  }
270
270
  return styles;
271
271
  };
272
- var StyledBoxGap = styled.div.withConfig({
272
+ var StyledBoxGap = styled.div.withConfig(styledComponentsConfig).withConfig({
273
273
  displayName: "StyledBox__StyledBoxGap",
274
274
  componentId: "sc-13pk1d4-1"
275
275
  })(["flex:0 0 auto;align-self:stretch;", ";"], function (props) {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import styled, { css, keyframes } from 'styled-components';
3
3
  import { Checkmark } from 'grommet-icons/icons/Checkmark';
4
4
  import { Box } from '../Box';
5
+ import { styledComponentsConfig } from '../../utils/styles';
5
6
  var bounceDelay = keyframes(["0%,80%,100%{transform:scale(0.4);}40%{transform:scale(0.8);}"]);
6
7
  var bounceDelayRule = css(["animation:", " 1.4s infinite ease-in-out both;"], bounceDelay);
7
8
  var Dot = styled(Box).withConfig({
@@ -33,7 +34,7 @@ export var GrowCheckmark = styled(Checkmark).withConfig({
33
34
  displayName: "BusyAnimation__GrowCheckmark",
34
35
  componentId: "sc-feuivs-1"
35
36
  })(["position:absolute;align-self:center;animation:", " 0.9s ease-in-out;"], grow);
36
- export var StyledBusyContents = styled.div.withConfig({
37
+ export var StyledBusyContents = styled.div.withConfig(styledComponentsConfig).withConfig({
37
38
  displayName: "BusyAnimation__StyledBusyContents",
38
39
  componentId: "sc-feuivs-2"
39
40
  })(["opacity:", ";}"], function (props) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["active", "align", "aria-label", "badge", "busy", "color", "children", "disabled", "icon", "focusIndicator", "gap", "fill", "href", "justify", "kind", "label", "messages", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver", "pad", "plain", "primary", "reverse", "secondary", "selected", "size", "success", "tip", "type", "a11yTitle", "as"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { cloneElement, Children, forwardRef, useContext, useMemo, useState, useCallback, useEffect } from 'react';
5
5
  import styled, { ThemeContext } from 'styled-components';
6
6
  import { backgroundAndTextColors, colorIsDark, findButtonParent, useSizedIcon, normalizeBackground, normalizeColor } from '../../utils';
@@ -423,6 +423,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
423
423
  pad: pad,
424
424
  plain: plain || Children.count(children) > 0,
425
425
  primary: primary,
426
+ selected: selected,
426
427
  sizeProp: size,
427
428
  success: success,
428
429
  type: !href ? type : undefined
@@ -1,6 +1,7 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { activeStyle, backgroundStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, getHoverIndicatorStyle, normalizeColor } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
+ import { styledComponentsConfig } from '../../utils/styles';
4
5
  var radiusStyle = function radiusStyle(props) {
5
6
  // border.radius shouldn't impact an only-icon rendering.
6
7
  var isIconOnly = props.hasIcon && !props.hasLabel;
@@ -68,7 +69,7 @@ var disabledButtonStyle = function disabledButtonStyle(props) {
68
69
  };
69
70
 
70
71
  // Deprecate props.theme.button.disabled.opacity in V3
71
- var StyledButton = styled.button.withConfig({
72
+ var StyledButton = styled.button.withConfig(styledComponentsConfig).withConfig({
72
73
  displayName: "StyledButton",
73
74
  componentId: "sc-323bzc-0"
74
75
  })(["display:inline-block;box-sizing:border-box;cursor:pointer;font:inherit;text-decoration:none;margin:0;background:transparent;overflow:visible;text-transform:none;", " ", " ", " ", " ", " ", " ", " &:focus{", "}&:focus:not(:focus-visible){", "}", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
+ import isPropValid from '@emotion/is-prop-valid';
2
3
  import { activeStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
3
4
  import { defaultProps } from '../../default-props';
4
5
  var radiusStyle = function radiusStyle(props) {
@@ -165,10 +166,8 @@ var plainStyle = function plainStyle(props) {
165
166
  return css(["outline:none;border:none;padding:0;text-align:inherit;color:inherit;", " ", ""], props.icon && "\n > svg {\n display: flex;\n align-self: center;\n vertical-align: middle;\n }\n ", props.hasIcon && !props.hasLabel && "line-height: 0;");
166
167
  };
167
168
  var StyledButtonKind = styled.button.withConfig({
168
- // don't let kind attribute leak to DOM
169
- // https://styled-components.com/docs/api#shouldforwardprop
170
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
171
- return !['kind'].includes(prop) && defaultValidatorFn(prop);
169
+ shouldForwardProp: function shouldForwardProp(prop) {
170
+ return isPropValid(prop) && !['kind'].includes(prop);
172
171
  }
173
172
  }).withConfig({
174
173
  displayName: "StyledButtonKind",
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["activeDate", "animate", "bounds", "children", "date", "dates", "daysOfWeek", "disabled", "initialFocus", "fill", "firstDayOfWeek", "header", "locale", "messages", "onReference", "onSelect", "range", "reference", "showAdjacentDays", "size", "timestamp"];
2
- 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; }
2
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
@@ -1,5 +1,5 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
- import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
2
+ import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
4
  var sizeStyle = function sizeStyle(props) {
5
5
  var data = props.theme.calendar[props.sizeProp];
@@ -8,7 +8,7 @@ var sizeStyle = function sizeStyle(props) {
8
8
  return p.fillContainer && 'height: 100%;';
9
9
  });
10
10
  };
11
- var StyledCalendar = styled.div.withConfig({
11
+ var StyledCalendar = styled.div.withConfig(styledComponentsConfig).withConfig({
12
12
  displayName: "StyledCalendar",
13
13
  componentId: "sc-1y4xhmp-0"
14
14
  })(["", " ", " ", ""], genericStyles, function (props) {
@@ -22,7 +22,7 @@ var weeksContainerSizeStyle = function weeksContainerSizeStyle(props) {
22
22
  var height = props.fillContainer ? '100%' : parseMetricToNum(props.theme.calendar[props.sizeProp].daySize) * 6 + "px";
23
23
  return "\n height: " + height + ";\n\n ";
24
24
  };
25
- var StyledWeeksContainer = styled.div.withConfig({
25
+ var StyledWeeksContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
26
26
  displayName: "StyledCalendar__StyledWeeksContainer",
27
27
  componentId: "sc-1y4xhmp-1"
28
28
  })(["overflow:hidden;", " ", ";"], function (props) {
@@ -50,7 +50,7 @@ var slideStyle = function slideStyle(props) {
50
50
  var weeksSizeStyle = function weeksSizeStyle() {
51
51
  return css(["display:flex;flex-direction:column;height:100%;"]);
52
52
  };
53
- var StyledWeeks = styled.div.withConfig({
53
+ var StyledWeeks = styled.div.withConfig(styledComponentsConfig).withConfig({
54
54
  displayName: "StyledCalendar__StyledWeeks",
55
55
  componentId: "sc-1y4xhmp-2"
56
56
  })(["position:relative;", " ", ";"], function (props) {
@@ -60,7 +60,7 @@ var StyledWeeks = styled.div.withConfig({
60
60
  });
61
61
  StyledWeeks.defaultProps = {};
62
62
  Object.setPrototypeOf(StyledWeeks.defaultProps, defaultProps);
63
- var StyledWeek = styled.div.withConfig({
63
+ var StyledWeek = styled.div.withConfig(styledComponentsConfig).withConfig({
64
64
  displayName: "StyledCalendar__StyledWeek",
65
65
  componentId: "sc-1y4xhmp-3"
66
66
  })(["display:flex;justify-content:space-between;", ""], function (props) {
@@ -71,7 +71,7 @@ Object.setPrototypeOf(StyledWeek.defaultProps, defaultProps);
71
71
 
72
72
  // The width of 14.3% is derived from dividing 100/7. We want the
73
73
  // widths of 7 days to equally fill 100% of the row.
74
- var StyledDayContainer = styled.div.withConfig({
74
+ var StyledDayContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
75
75
  displayName: "StyledCalendar__StyledDayContainer",
76
76
  componentId: "sc-1y4xhmp-4"
77
77
  })(["flex:0 1 auto;", ""], function (props) {
@@ -83,7 +83,7 @@ var daySizeStyle = function daySizeStyle(props) {
83
83
  var data = props.theme.calendar[props.sizeProp];
84
84
  return css(["width:", ";height:", ";"], props.fillContainer ? '100%' : data.daySize, props.fillContainer ? '100%' : data.daySize);
85
85
  };
86
- var StyledDay = styled.div.withConfig({
86
+ var StyledDay = styled.div.withConfig(styledComponentsConfig).withConfig({
87
87
  displayName: "StyledCalendar__StyledDay",
88
88
  componentId: "sc-1y4xhmp-5"
89
89
  })(["display:flex;justify-content:center;align-items:center;", " ", " ", " ", " ", " ", ""], function (props) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "title", "subTitle", "size"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React from 'react';
5
5
  import { Bluetooth as Memory } from "grommet-icons/es6/icons/Bluetooth";
6
6
  import { Storage } from "grommet-icons/es6/icons/Storage";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "title", "subTitle", "size"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React from 'react';
5
5
  import { Location } from "grommet-icons/es6/icons/Location";
6
6
  import { System } from "grommet-icons/es6/icons/System";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["as", "children", "data", "margin", "onMore", "pad", "paginate", "show", "size", "step"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { Fragment, useContext } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["activeChild", "initialChild", "onChild", "play", "children", "controls", "height", "fill", "width", "onFocus", "onBlur", "wrap"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { Children, useCallback, useContext, useEffect, useMemo, useState, useRef } from 'react';
5
5
  import { normalizeColor } from '../../utils';
6
6
  import { defaultProps } from '../../default-props';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["controls"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React from 'react';
5
5
  import { Attraction } from "grommet-icons/es6/icons/Attraction";
6
6
  import { Car } from "grommet-icons/es6/icons/Car";
@@ -2,7 +2,7 @@ var _excluded = ["a11yTitle", "bounds", "color", "dash", "direction", "gap", "id
2
2
  _excluded2 = ["color", "label", "onHover", "opacity", "thickness", "value"],
3
3
  _excluded3 = ["color", "label", "onHover", "opacity", "thickness", "value"];
4
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
- 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; }
5
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
6
6
  import React, { useContext, useEffect, useMemo, useState } from 'react';
7
7
  import { ThemeContext } from 'styled-components';
8
8
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
@@ -1,5 +1,5 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
- import { genericStyles } from '../../utils';
2
+ import { genericStyles, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
4
  var animateStyle = function animateStyle(_ref) {
5
5
  var theme = _ref.theme,
@@ -10,7 +10,7 @@ var animateStyle = function animateStyle(_ref) {
10
10
  animateBounds = ['stroke-dashoffset: 200%;', 'stroke-dashoffset: 0%;'];else if (typeProp === 'point') animateBounds = ['opacity: 0;', 'opacity: 1;'];else animateBounds = ['transform: scaleY(0);', 'transform: scaleY(1);'];
11
11
  return css(["", " animation:", " ", " forwards;", ""], typeProp === 'line' && 'stroke-dasharray: 200%;', keyframes(["from{", "}to{", "}"], animateBounds[0], animateBounds[1]), theme.global.animation.duration, (typeProp === 'bar' || typeProp === 'area') && 'transform-origin: center bottom 0;');
12
12
  };
13
- var StyledChart = styled.svg.withConfig({
13
+ var StyledChart = styled.svg.withConfig(styledComponentsConfig).withConfig({
14
14
  displayName: "StyledChart",
15
15
  componentId: "sc-1nae0gf-0"
16
16
  })(["display:block;max-width:100%;overflow:visible;", " ", " ", ";"], genericStyles, function (props) {
@@ -1,11 +1,10 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "checked", "children", "defaultChecked", "disabled", "fill", "focus", "focusIndicator", "id", "label", "name", "onBlur", "onChange", "onFocus", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver", "pad", "reverse", "toggle", "indeterminate"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { removeUndefined } from '../../utils/object';
7
7
  import { defaultProps } from '../../default-props';
8
- import { Box } from '../Box';
9
8
  import { FormContext } from '../Form/FormContext';
10
9
  import { CheckBoxPropTypes } from './propTypes';
11
10
  import { StyledCheckBox, StyledCheckBoxBox, StyledCheckBoxIcon, StyledCheckBoxContainer, StyledCheckBoxInput, StyledCheckBoxToggle, StyledCheckBoxKnob } from './StyledCheckBox';
@@ -99,7 +98,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
99
98
  borderColor = normalizeColor(theme.checkBox.color || 'control', theme);
100
99
  }
101
100
  var visual = toggle ? /*#__PURE__*/React.createElement(StyledCheckBoxToggle, themeableProps, /*#__PURE__*/React.createElement(StyledCheckBoxKnob, themeableProps)) : /*#__PURE__*/React.createElement(StyledCheckBoxBox, _extends({
102
- as: Box,
103
101
  align: "center",
104
102
  justify: "center",
105
103
  width: theme.checkBox.size,
@@ -132,7 +130,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
132
130
  }))));
133
131
  var side = !reverse !== !theme.dir ? 'left' : 'right';
134
132
  var checkBoxNode = /*#__PURE__*/React.createElement(StyledCheckBox, _extends({
135
- as: Box,
136
133
  align: "center",
137
134
  justify: "center",
138
135
  margin: label && (_ref2 = {}, _ref2[side] = theme.checkBox.gap || 'small', _ref2)
@@ -1,6 +1,7 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { edgeStyle, focusStyle, normalizeColor } from '../../utils';
2
+ import { edgeStyle, focusStyle, normalizeColor, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
+ import { Box } from '../Box';
4
5
 
5
6
  // Note: since `fillStyle` is only used in one place, `justify-content` was
6
7
  // added to it to simplify its logic. If this is ever reused somewhere else,
@@ -9,7 +10,7 @@ var fillStyle = function fillStyle() {
9
10
  return "\n width: auto;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n justify-content: space-between;\n ";
10
11
  };
11
12
  var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
12
- var hoverStyle = css([":hover input:not([disabled]) + div,:hover input:not([disabled]) + span{border-color:", ";", "}:hover{background-color:", ";}"], function (props) {
13
+ var hoverStyle = css(["&:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";", "}&:hover{background-color:", ";}"], function (props) {
13
14
  var _props$theme$checkBox;
14
15
  return normalizeColor((_props$theme$checkBox = props.theme.checkBox.hover) == null || (_props$theme$checkBox = _props$theme$checkBox.border) == null ? void 0 : _props$theme$checkBox.color, props.theme);
15
16
  }, function (props) {
@@ -19,7 +20,7 @@ var hoverStyle = css([":hover input:not([disabled]) + div,:hover input:not([disa
19
20
  var _props$theme$checkBox3;
20
21
  return normalizeColor(!props.disabled && ((_props$theme$checkBox3 = props.theme.checkBox.hover) == null || (_props$theme$checkBox3 = _props$theme$checkBox3.background) == null ? void 0 : _props$theme$checkBox3.color), props.theme);
21
22
  });
22
- var StyledCheckBoxIcon = styled.svg.withConfig({
23
+ var StyledCheckBoxIcon = styled.svg.withConfig(styledComponentsConfig).withConfig({
23
24
  displayName: "StyledCheckBox__StyledCheckBoxIcon",
24
25
  componentId: "sc-1dbk5ju-0"
25
26
  })(["box-sizing:border-box;stroke-width:", ";stroke:", ";width:", ";height:", ";", ";"], function (props) {
@@ -35,10 +36,10 @@ var StyledCheckBoxIcon = styled.svg.withConfig({
35
36
  });
36
37
  StyledCheckBoxIcon.defaultProps = {};
37
38
  Object.setPrototypeOf(StyledCheckBoxIcon.defaultProps, defaultProps);
38
- var StyledCheckBoxContainer = styled.label.withConfig({
39
+ var StyledCheckBoxContainer = styled.label.withConfig(styledComponentsConfig).withConfig({
39
40
  displayName: "StyledCheckBox__StyledCheckBoxContainer",
40
41
  componentId: "sc-1dbk5ju-1"
41
- })(["display:flex;flex-direction:row;align-items:", ";user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
42
+ })(["display:flex;flex-direction:row;align-items:", ";user-select:none;-webkit-user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
42
43
  return typeof props.labelProp === 'string' ? props.theme.checkBox.label.align : undefined;
43
44
  }, function (props) {
44
45
  return props.fillProp ? fillStyle() : 'width: fit-content;';
@@ -56,10 +57,10 @@ var StyledCheckBoxContainer = styled.label.withConfig({
56
57
  });
57
58
  StyledCheckBoxContainer.defaultProps = {};
58
59
  Object.setPrototypeOf(StyledCheckBoxContainer.defaultProps, defaultProps);
59
- var StyledCheckBoxInput = styled.input.withConfig({
60
+ var StyledCheckBoxInput = styled.input.withConfig(styledComponentsConfig).withConfig({
60
61
  displayName: "StyledCheckBox__StyledCheckBoxInput",
61
62
  componentId: "sc-1dbk5ju-2"
62
- })(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", ":checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
63
+ })(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", " &:checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
63
64
  return !props.disabled && 'cursor: pointer;';
64
65
  }, function (props) {
65
66
  return !props.theme.dir ? 'left' : 'right';
@@ -72,7 +73,7 @@ var StyledCheckBoxInput = styled.input.withConfig({
72
73
  });
73
74
  StyledCheckBoxInput.defaultProps = {};
74
75
  Object.setPrototypeOf(StyledCheckBoxInput.defaultProps, defaultProps);
75
- var StyledCheckBoxBox = styled.div.withConfig({
76
+ var StyledCheckBoxBox = styled(Box).withConfig({
76
77
  displayName: "StyledCheckBox__StyledCheckBoxBox",
77
78
  componentId: "sc-1dbk5ju-3"
78
79
  })(["", ";", ";"], function (props) {
@@ -82,7 +83,7 @@ var StyledCheckBoxBox = styled.div.withConfig({
82
83
  });
83
84
  StyledCheckBoxBox.defaultProps = {};
84
85
  Object.setPrototypeOf(StyledCheckBoxBox.defaultProps, defaultProps);
85
- var StyledCheckBoxToggle = styled.span.withConfig({
86
+ var StyledCheckBoxToggle = styled.span.withConfig(styledComponentsConfig).withConfig({
86
87
  displayName: "StyledCheckBox__StyledCheckBoxToggle",
87
88
  componentId: "sc-1dbk5ju-4"
88
89
  })(["box-sizing:border-box;vertical-align:middle;display:inline-block;width:", ";height:", ";border:", " solid;border-color:", ";border-radius:", ";background-color:", ";", ";", ";"], function (props) {
@@ -104,7 +105,7 @@ var StyledCheckBoxToggle = styled.span.withConfig({
104
105
  });
105
106
  StyledCheckBoxToggle.defaultProps = {};
106
107
  Object.setPrototypeOf(StyledCheckBoxToggle.defaultProps, defaultProps);
107
- var StyledCheckBoxKnob = styled.span.withConfig({
108
+ var StyledCheckBoxKnob = styled.span.withConfig(styledComponentsConfig).withConfig({
108
109
  displayName: "StyledCheckBox__StyledCheckBoxKnob",
109
110
  componentId: "sc-1dbk5ju-5"
110
111
  })(["box-sizing:border-box;position:relative;display:inherit;top:-", ";", ":-", ";transition:all 0.3s;width:", ";height:", ";background:", ";border-radius:", ";", ";"], function (props) {
@@ -126,7 +127,7 @@ var StyledCheckBoxKnob = styled.span.withConfig({
126
127
  });
127
128
  StyledCheckBoxKnob.defaultProps = {};
128
129
  Object.setPrototypeOf(StyledCheckBoxKnob.defaultProps, defaultProps);
129
- var StyledCheckBox = styled.div.withConfig({
130
+ var StyledCheckBox = styled(Box).withConfig({
130
131
  displayName: "StyledCheckBox",
131
132
  componentId: "sc-1dbk5ju-6"
132
133
  })(["flex-shrink:0;"]);
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["checked"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, CheckBox } from 'grommet';
6
6
  var SimpleCheckBox = function SimpleCheckBox(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["checked"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, CheckBox } from 'grommet';
6
6
  var SimpleCheckBox = function SimpleCheckBox(_ref) {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "defaultValue", "value", "disabled", "focusIndicator", "gap", "labelKey", "valueKey", "onChange", "options", "name"],
2
2
  _excluded2 = ["value"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
5
5
  import React, { forwardRef, useContext } from 'react';
6
6
  import { ThemeContext } from 'styled-components';
7
7
  import { CheckBox } from '../CheckBox';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["elements", "precision"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { forwardRef, useContext, useMemo } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { parseMetricToNum } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["hourLimit", "onChange", "precision", "run", "size", "time", "type"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { forwardRef, useEffect, useState } from 'react';
5
5
  import { Analog } from './Analog';
6
6
  import { Digital } from './Digital';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["elements", "precision", "run", "size"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { forwardRef, useEffect, useState } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { StyledDigitalDigit, StyledDigitalNext, StyledDigitalPrevious } from './StyledClock';
@@ -1,7 +1,7 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
- import { normalizeColor, genericStyles } from '../../utils';
2
+ import { normalizeColor, genericStyles, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
- var StyledHour = styled.line.withConfig({
4
+ var StyledHour = styled.line.withConfig(styledComponentsConfig).withConfig({
5
5
  displayName: "StyledClock__StyledHour",
6
6
  componentId: "sc-y4xw8s-0"
7
7
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -11,7 +11,7 @@ var StyledHour = styled.line.withConfig({
11
11
  });
12
12
  StyledHour.defaultProps = {};
13
13
  Object.setPrototypeOf(StyledHour.defaultProps, defaultProps);
14
- var StyledMinute = styled.line.withConfig({
14
+ var StyledMinute = styled.line.withConfig(styledComponentsConfig).withConfig({
15
15
  displayName: "StyledClock__StyledMinute",
16
16
  componentId: "sc-y4xw8s-1"
17
17
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -21,7 +21,7 @@ var StyledMinute = styled.line.withConfig({
21
21
  });
22
22
  StyledMinute.defaultProps = {};
23
23
  Object.setPrototypeOf(StyledMinute.defaultProps, defaultProps);
24
- var StyledSecond = styled.line.withConfig({
24
+ var StyledSecond = styled.line.withConfig(styledComponentsConfig).withConfig({
25
25
  displayName: "StyledClock__StyledSecond",
26
26
  componentId: "sc-y4xw8s-2"
27
27
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -31,7 +31,7 @@ var StyledSecond = styled.line.withConfig({
31
31
  });
32
32
  StyledSecond.defaultProps = {};
33
33
  Object.setPrototypeOf(StyledSecond.defaultProps, defaultProps);
34
- var StyledAnalog = styled.svg.withConfig({
34
+ var StyledAnalog = styled.svg.withConfig(styledComponentsConfig).withConfig({
35
35
  displayName: "StyledClock__StyledAnalog",
36
36
  componentId: "sc-y4xw8s-3"
37
37
  })(["width:", ";height:", ";", " ", ";"], function (props) {
@@ -49,7 +49,7 @@ var sizeStyle = function sizeStyle(props) {
49
49
  var data = props.theme.clock.digital.text[size] || {};
50
50
  return css(["font-size:", ";line-height:", ";"], data.size || props.theme.clock.digital.text.medium.size, data.height || props.theme.clock.digital.text.medium.height);
51
51
  };
52
- var StyledDigitalDigit = styled.div.withConfig({
52
+ var StyledDigitalDigit = styled.div.withConfig(styledComponentsConfig).withConfig({
53
53
  displayName: "StyledClock__StyledDigitalDigit",
54
54
  componentId: "sc-y4xw8s-4"
55
55
  })(["position:relative;width:0.8em;text-align:center;overflow:hidden;", ";"], function (props) {
@@ -59,7 +59,7 @@ StyledDigitalDigit.defaultProps = {};
59
59
  Object.setPrototypeOf(StyledDigitalDigit.defaultProps, defaultProps);
60
60
  var previousUp = keyframes(["0%{transform:translateY(0);}100%{transform:translateY(-100%);}"]);
61
61
  var previousDown = keyframes(["0%{transform:translateY(0);}100%{transform:translateY(100%);}"]);
62
- var StyledDigitalPrevious = styled.div.withConfig({
62
+ var StyledDigitalPrevious = styled.div.withConfig(styledComponentsConfig).withConfig({
63
63
  displayName: "StyledClock__StyledDigitalPrevious",
64
64
  componentId: "sc-y4xw8s-5"
65
65
  })(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
@@ -69,7 +69,7 @@ StyledDigitalPrevious.defaultProps = {};
69
69
  Object.setPrototypeOf(StyledDigitalPrevious.defaultProps, defaultProps);
70
70
  var nextUp = keyframes(["0%{transform:translateY(100%);}100%{transform:translateY(0);}"]);
71
71
  var nextDown = keyframes(["0%{transform:translateY(-100%);}100%{transform:translateY(0);}"]);
72
- var StyledDigitalNext = styled.div.withConfig({
72
+ var StyledDigitalNext = styled.div.withConfig(styledComponentsConfig).withConfig({
73
73
  displayName: "StyledClock__StyledDigitalNext",
74
74
  componentId: "sc-y4xw8s-6"
75
75
  })(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label", "open", "submenu"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React from 'react';
5
5
  import { FormDown } from "grommet-icons/es6/icons/FormDown";
6
6
  import { FormNext } from "grommet-icons/es6/icons/FormNext";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "data", "defaultView", "filteredTotal", "id", "messages", "onView", "properties", "toolbar", "total", "view", "views"];
2
2
  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); }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
4
4
  import React, { useContext, useEffect, useMemo, useState } from 'react';
5
5
  import { AnnounceContext } from '../../contexts';
6
6
  import { Box } from '../Box';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["children", "footer", "onDone", "pad", "updateOn"];
2
- 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; }
2
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  import React, { useMemo, useCallback, useContext, useEffect, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
@@ -1,4 +1,4 @@
1
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
1
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
2
2
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
3
3
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
4
4
  import React, { useEffect, useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["search"];
2
- 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; }
2
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
3
3
  import React, { useContext } from 'react';
4
4
  import { Box, DataFilters, DataFilter, DataSearch, DataSummary, DataTable, DataTableGroupBy, Grid, Heading, ResponsiveContext, Toolbar } from 'grommet';
5
5
  import { Data } from '../Data';