grommet 2.37.0 → 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 (496) 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 +2 -2
  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 +2 -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 +2 -2
  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 +2 -2
  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/stories/ControlledGrouped.js +1 -1
  100. package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  101. package/components/DataTable/stories/OnUpdate.js +1 -1
  102. package/components/DataTable/stories/SpaceX.js +2 -2
  103. package/components/DataTable/stories/SpaceXUngrouped.js +2 -2
  104. package/components/DataTableColumns/DataTableColumns.js +2 -2
  105. package/components/DataTableGroupBy/DataTableGroupBy.js +2 -2
  106. package/components/DataView/DataView.js +2 -2
  107. package/components/DateInput/DateInput.js +2 -2
  108. package/components/DateInput/stories/FormatInline.js +1 -1
  109. package/components/Diagram/Diagram.js +2 -2
  110. package/components/Diagram/StyledDiagram.js +3 -2
  111. package/components/Diagram/stories/Animated.js +1 -1
  112. package/components/Diagram/stories/Progressing.js +2 -2
  113. package/components/Distribution/Distribution.js +1 -1
  114. package/components/Drop/Drop.js +2 -2
  115. package/components/Drop/DropContainer.js +2 -4
  116. package/components/Drop/StyledDrop.js +3 -2
  117. package/components/Drop/stories/CustomThemed/Lazy.js +1 -1
  118. package/components/Drop/stories/CustomThemed/Themed.js +1 -1
  119. package/components/Drop/stories/Inline.js +1 -1
  120. package/components/Drop/stories/Meter.js +1 -1
  121. package/components/Drop/stories/Multiple.js +1 -1
  122. package/components/Drop/stories/Overflow.js +1 -1
  123. package/components/Drop/stories/Plain.js +1 -1
  124. package/components/Drop/stories/Progressive.js +1 -1
  125. package/components/Drop/stories/Simple.js +1 -1
  126. package/components/Drop/stories/Styled.js +1 -1
  127. package/components/Drop/stories/TrapFocus.js +1 -1
  128. package/components/DropButton/DropButton.js +2 -2
  129. package/components/FileInput/FileInput.js +2 -2
  130. package/components/FileInput/StyledFileInput.js +1 -1
  131. package/components/FocusedContainer.js +2 -2
  132. package/components/Form/Form.js +2 -2
  133. package/components/Form/FormContext.js +1 -1
  134. package/components/Form/stories/ArrayOfFormFields.js +1 -1
  135. package/components/Form/stories/Controlled.js +1 -1
  136. package/components/Form/stories/ControlledInput.js +1 -1
  137. package/components/Form/stories/ControlledInputLazy.js +1 -1
  138. package/components/Form/stories/ControlledLazy.js +1 -1
  139. package/components/Form/stories/CustomThemed/FieldBorderPosition.js +1 -1
  140. package/components/Form/stories/CustomThemed/FieldCustomStates.js +1 -1
  141. package/components/Form/stories/DynamicFields.js +1 -1
  142. package/components/Form/stories/FieldStates.js +1 -1
  143. package/components/Form/stories/SolicitedFeedback.js +1 -1
  144. package/components/Form/stories/UnsolicitedFeedback.js +1 -1
  145. package/components/Form/stories/ValidateOnChange.js +1 -1
  146. package/components/Form/stories/ValidateOnMount.js +1 -1
  147. package/components/FormField/FormField.js +2 -2
  148. package/components/FormField/stories/Simple.js +1 -1
  149. package/components/Grid/Grid.js +2 -2
  150. package/components/Grid/StyledGrid.js +2 -2
  151. package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  152. package/components/Grid/stories/ResponsiveCards.js +1 -1
  153. package/components/Grommet/Grommet.js +2 -2
  154. package/components/Grommet/StyledGrommet.js +2 -2
  155. package/components/Header/Header.js +2 -2
  156. package/components/Header/stories/Sticky.js +1 -1
  157. package/components/Heading/Heading.js +2 -2
  158. package/components/Heading/HeadingSkeleton.js +1 -1
  159. package/components/Heading/StyledHeading.js +2 -2
  160. package/components/Image/Image.js +2 -2
  161. package/components/Image/StyledImage.js +2 -2
  162. package/components/InfiniteScroll/InfiniteScroll.js +1 -1
  163. package/components/Keyboard/Keyboard.js +1 -1
  164. package/components/Layer/Layer.js +1 -1
  165. package/components/Layer/LayerContainer.js +3 -3
  166. package/components/Layer/StyledLayer.js +7 -7
  167. package/components/List/List.js +3 -3
  168. package/components/List/stories/Order.js +1 -1
  169. package/components/List/stories/Pinned.js +1 -1
  170. package/components/Markdown/Markdown.js +2 -2
  171. package/components/Markdown/stories/Override.js +2 -1
  172. package/components/MaskedInput/MaskedInput.js +2 -2
  173. package/components/MaskedInput/StyledMaskedInput.js +3 -3
  174. package/components/Menu/Menu.js +3 -3
  175. package/components/Meter/Bar.js +2 -2
  176. package/components/Meter/Circle.js +2 -2
  177. package/components/Meter/Meter.js +2 -2
  178. package/components/Meter/StyledMeter.js +2 -2
  179. package/components/Meter/stories/Circle.js +1 -1
  180. package/components/Meter/stories/VerticalBarMultiple.js +1 -1
  181. package/components/NameValueList/NameValueList.js +2 -2
  182. package/components/NameValuePair/NameValuePair.js +1 -1
  183. package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
  184. package/components/Nav/stories/Sidebar.js +2 -2
  185. package/components/Notification/Notification.js +2 -2
  186. package/components/Notification/stories/Global.js +1 -1
  187. package/components/Notification/stories/Title.js +1 -1
  188. package/components/Notification/stories/TitleAndMessage.js +1 -1
  189. package/components/Page/Page.js +2 -2
  190. package/components/Page/stories/PageNotificaton.js +1 -1
  191. package/components/PageContent/PageContent.js +2 -2
  192. package/components/PageHeader/PageHeader.js +2 -2
  193. package/components/PageHeader/stories/MultipleActions.js +1 -1
  194. package/components/Pagination/PageControl.js +2 -2
  195. package/components/Pagination/Pagination.js +2 -2
  196. package/components/Pagination/PaginationStep.js +2 -2
  197. package/components/Pagination/PaginationSummary.js +2 -2
  198. package/components/Pagination/StyledPageControl.js +2 -1
  199. package/components/Pagination/stories/Grid.js +1 -1
  200. package/components/Paragraph/Paragraph.js +2 -2
  201. package/components/Paragraph/ParagraphSkeleton.js +1 -1
  202. package/components/Paragraph/StyledParagraph.js +2 -2
  203. package/components/RadioButton/RadioButton.js +2 -5
  204. package/components/RadioButton/StyledRadioButton.js +9 -8
  205. package/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
  206. package/components/RadioButtonGroup/stories/Children.js +1 -1
  207. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +2 -2
  208. package/components/RadioButtonGroup/stories/Disabled.js +2 -2
  209. package/components/RangeInput/RangeInput.js +3 -3
  210. package/components/RangeInput/StyledRangeInput.js +2 -2
  211. package/components/RangeSelector/EdgeControl.js +2 -2
  212. package/components/RangeSelector/RangeSelector.js +2 -2
  213. package/components/RangeSelector/stories/Basics.js +1 -1
  214. package/components/RangeSelector/stories/CustomThemed/Custom.js +2 -2
  215. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +2 -2
  216. package/components/RangeSelector/stories/Label.js +1 -1
  217. package/components/RangeSelector/stories/Simple.js +1 -1
  218. package/components/RangeSelector/stories/Step.js +2 -2
  219. package/components/RangeSelector/stories/Thin.js +1 -1
  220. package/components/RangeSelector/stories/Vertical.js +2 -2
  221. package/components/RoutedAnchor/RoutedAnchor.js +3 -3
  222. package/components/RoutedButton/RoutedButton.js +3 -3
  223. package/components/Select/DefaultSelectTextInput.js +2 -2
  224. package/components/Select/Select.js +2 -2
  225. package/components/Select/SelectContainer.js +2 -3
  226. package/components/Select/StyledSelect.js +4 -3
  227. package/components/Select/stories/ChildrenRender.js +1 -1
  228. package/components/Select/stories/Clear.js +1 -1
  229. package/components/Select/stories/Controlled.js +1 -1
  230. package/components/Select/stories/CustomThemed/CustomSearch.js +1 -1
  231. package/components/Select/stories/Disabled.js +1 -1
  232. package/components/Select/stories/InsideFormField.js +1 -1
  233. package/components/Select/stories/Multiple.js +1 -1
  234. package/components/Select/stories/ObjectOptions.js +1 -1
  235. package/components/Select/stories/Search.js +1 -1
  236. package/components/Select/stories/Simple.js +1 -1
  237. package/components/Select/stories/ValueLabel.js +1 -1
  238. package/components/Select/stories/components/SearchBorderBox.js +2 -2
  239. package/components/Select/stories/components/SearchInput.js +2 -2
  240. package/components/SelectMultiple/SelectMultiple.js +2 -2
  241. package/components/SelectMultiple/SelectMultipleContainer.js +1 -2
  242. package/components/SelectMultiple/SelectMultipleValue.js +1 -1
  243. package/components/SelectMultiple/SelectionSummary.js +1 -1
  244. package/components/SelectMultiple/stories/CustomMessages.js +1 -1
  245. package/components/SelectMultiple/stories/Default.js +1 -1
  246. package/components/SelectMultiple/stories/Disabled.js +1 -1
  247. package/components/SelectMultiple/stories/FormField.js +1 -1
  248. package/components/SelectMultiple/stories/Help.js +1 -1
  249. package/components/SelectMultiple/stories/Limited.js +1 -1
  250. package/components/SelectMultiple/stories/ObjectOptions.js +1 -1
  251. package/components/SelectMultiple/stories/ShowSelectedInline.js +1 -1
  252. package/components/Sidebar/Sidebar.js +1 -1
  253. package/components/Sidebar/stories/Labels.js +1 -1
  254. package/components/Skeleton/Skeleton.js +2 -2
  255. package/components/Skeleton/SkeletonContext.js +1 -1
  256. package/components/Skeleton/StyledSkeleton.js +1 -1
  257. package/components/Skeleton/stories/CustomThemed/Custom.js +1 -1
  258. package/components/Skeleton/stories/GridContainer.js +2 -2
  259. package/components/Skeleton/stories/Group.js +1 -1
  260. package/components/Skeleton/stories/Individual.js +2 -2
  261. package/components/SkipLink/SkipLink.js +2 -2
  262. package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  263. package/components/SkipLinks/SkipLinks.js +1 -1
  264. package/components/Spinner/Spinner.js +2 -2
  265. package/components/Spinner/stories/Animation.js +1 -1
  266. package/components/Spinner/stories/Announced.js +1 -1
  267. package/components/Stack/Stack.js +2 -2
  268. package/components/Stack/StyledStack.js +3 -3
  269. package/components/StarRating/StarRating.js +2 -2
  270. package/components/Tab/StyledTab.js +3 -2
  271. package/components/Tab/Tab.js +2 -4
  272. package/components/Table/StyledTable.js +8 -8
  273. package/components/Table/Table.js +2 -2
  274. package/components/Table/stories/InfiniteScrollInTable.js +1 -1
  275. package/components/TableBody/TableBody.js +1 -1
  276. package/components/TableCell/TableCell.js +2 -2
  277. package/components/TableFooter/TableFooter.js +1 -1
  278. package/components/TableHeader/TableHeader.js +1 -1
  279. package/components/TableRow/TableRow.js +1 -1
  280. package/components/Tabs/StyledTabs.js +5 -4
  281. package/components/Tabs/Tabs.js +2 -4
  282. package/components/Tabs/stories/CustomThemed/States.js +1 -1
  283. package/components/Tabs/stories/Responsive.js +1 -1
  284. package/components/Tag/Tag.js +2 -2
  285. package/components/Text/StyledText.js +2 -6
  286. package/components/Text/Text.js +2 -2
  287. package/components/Text/TextSkeleton.js +2 -2
  288. package/components/TextArea/StyledTextArea.js +2 -2
  289. package/components/TextArea/TextArea.js +2 -2
  290. package/components/TextArea/stories/CustomThemed/Themed.js +1 -1
  291. package/components/TextArea/stories/InsideFormField.js +1 -1
  292. package/components/TextArea/stories/NonResizable.js +1 -1
  293. package/components/TextArea/stories/Simple.js +1 -1
  294. package/components/TextInput/CopyButton.js +1 -1
  295. package/components/TextInput/StyledTextInput.js +6 -6
  296. package/components/TextInput/TextInput.js +2 -2
  297. package/components/TextInput/stories/InsideFormField.js +1 -1
  298. package/components/TextInput/stories/Simple.js +6 -1
  299. package/components/TextInput/stories/WithTags.js +1 -1
  300. package/components/ThumbsRating/ThumbsRating.js +1 -1
  301. package/components/Tip/Tip.js +1 -1
  302. package/components/Tip/stories/HeaderActions.js +1 -1
  303. package/components/ToggleGroup/ToggleGroup.js +2 -2
  304. package/components/ToggleGroup/stories/Controlled.js +1 -1
  305. package/components/Toolbar/Toolbar.js +2 -2
  306. package/components/Video/StyledVideo.js +5 -5
  307. package/components/Video/Video.js +2 -2
  308. package/components/WorldMap/StyledWorldMap.js +1 -1
  309. package/components/WorldMap/WorldMap.js +2 -2
  310. package/components/index.d.ts +1 -0
  311. package/contexts/AnalyticsContext/AnalyticsContext.js +1 -1
  312. package/contexts/AnnounceContext/stories/Polite.js +1 -1
  313. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  314. package/contexts/ThemeContext/stories/ThemeContextExtend.js +1 -1
  315. package/es6/all/stories/AllComponents.js +1 -1
  316. package/es6/components/Accordion/Accordion.js +1 -1
  317. package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  318. package/es6/components/Accordion/stories/Simple.js +1 -1
  319. package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
  320. package/es6/components/Anchor/Anchor.js +1 -1
  321. package/es6/components/Anchor/StyledAnchor.js +2 -8
  322. package/es6/components/Avatar/Avatar.js +1 -1
  323. package/es6/components/Box/Box.js +1 -1
  324. package/es6/components/Box/StyledBox.js +3 -3
  325. package/es6/components/Button/BusyAnimation.js +2 -1
  326. package/es6/components/Button/Button.js +2 -1
  327. package/es6/components/Button/StyledButton.js +2 -1
  328. package/es6/components/Button/StyledButtonKind.js +3 -4
  329. package/es6/components/Calendar/Calendar.js +1 -1
  330. package/es6/components/Calendar/StyledCalendar.js +7 -7
  331. package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
  332. package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
  333. package/es6/components/Cards/Cards.js +1 -1
  334. package/es6/components/Carousel/Carousel.js +1 -1
  335. package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  336. package/es6/components/Chart/Chart.js +1 -1
  337. package/es6/components/Chart/StyledChart.js +2 -2
  338. package/es6/components/CheckBox/CheckBox.js +1 -4
  339. package/es6/components/CheckBox/StyledCheckBox.js +12 -11
  340. package/es6/components/CheckBox/stories/NoLabel.js +1 -1
  341. package/es6/components/CheckBox/stories/Simple.js +1 -1
  342. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  343. package/es6/components/Clock/Analog.js +1 -1
  344. package/es6/components/Clock/Clock.js +1 -1
  345. package/es6/components/Clock/Digital.js +1 -1
  346. package/es6/components/Clock/StyledClock.js +8 -8
  347. package/es6/components/Collapsible/stories/Nested.js +1 -1
  348. package/es6/components/Data/Data.js +1 -1
  349. package/es6/components/Data/DataForm.js +1 -1
  350. package/es6/components/Data/stories/Infinite.js +1 -1
  351. package/es6/components/Data/stories/Inline.js +1 -1
  352. package/es6/components/Data/stories/OnSelect.js +1 -1
  353. package/es6/components/Data/stories/SpaceX.js +1 -1
  354. package/es6/components/Data/stories/StarWars.js +1 -1
  355. package/es6/components/DataChart/DataChart.js +1 -1
  356. package/es6/components/DataChart/XAxis.js +1 -1
  357. package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
  358. package/es6/components/DataFilter/DataFilter.js +1 -1
  359. package/es6/components/DataFilters/DataFilters.js +1 -1
  360. package/es6/components/DataSearch/DataSearch.js +1 -1
  361. package/es6/components/DataSort/DataSort.js +1 -1
  362. package/es6/components/DataSummary/DataSummary.js +1 -1
  363. package/es6/components/DataTable/Body.js +1 -1
  364. package/es6/components/DataTable/Cell.js +1 -1
  365. package/es6/components/DataTable/DataTable.js +1 -1
  366. package/es6/components/DataTable/ExpanderCell.js +1 -1
  367. package/es6/components/DataTable/Footer.js +1 -1
  368. package/es6/components/DataTable/GroupedBody.js +1 -1
  369. package/es6/components/DataTable/Header.js +1 -1
  370. package/es6/components/DataTable/StyledDataTable.js +2 -2
  371. package/es6/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  372. package/es6/components/DataTable/stories/SpaceX.js +1 -1
  373. package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
  374. package/es6/components/DataTableColumns/DataTableColumns.js +1 -1
  375. package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  376. package/es6/components/DataView/DataView.js +1 -1
  377. package/es6/components/DateInput/DateInput.js +1 -1
  378. package/es6/components/Diagram/Diagram.js +1 -1
  379. package/es6/components/Diagram/StyledDiagram.js +2 -1
  380. package/es6/components/Diagram/stories/Progressing.js +1 -1
  381. package/es6/components/Distribution/Distribution.js +1 -1
  382. package/es6/components/Drop/Drop.js +1 -1
  383. package/es6/components/Drop/DropContainer.js +1 -3
  384. package/es6/components/Drop/StyledDrop.js +2 -1
  385. package/es6/components/DropButton/DropButton.js +1 -1
  386. package/es6/components/FileInput/FileInput.js +1 -1
  387. package/es6/components/FileInput/StyledFileInput.js +2 -2
  388. package/es6/components/FocusedContainer.js +1 -1
  389. package/es6/components/Form/Form.js +1 -1
  390. package/es6/components/FormField/FormField.js +1 -1
  391. package/es6/components/Grid/Grid.js +1 -1
  392. package/es6/components/Grid/StyledGrid.js +2 -2
  393. package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  394. package/es6/components/Grommet/Grommet.js +1 -1
  395. package/es6/components/Grommet/StyledGrommet.js +2 -2
  396. package/es6/components/Header/Header.js +1 -1
  397. package/es6/components/Heading/Heading.js +1 -1
  398. package/es6/components/Heading/StyledHeading.js +2 -2
  399. package/es6/components/Image/Image.js +1 -1
  400. package/es6/components/Image/StyledImage.js +2 -2
  401. package/es6/components/Keyboard/Keyboard.js +1 -1
  402. package/es6/components/Layer/LayerContainer.js +3 -3
  403. package/es6/components/Layer/StyledLayer.js +6 -7
  404. package/es6/components/List/List.js +3 -3
  405. package/es6/components/Markdown/Markdown.js +1 -1
  406. package/es6/components/Markdown/stories/Override.js +2 -1
  407. package/es6/components/MaskedInput/MaskedInput.js +1 -1
  408. package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
  409. package/es6/components/Menu/Menu.js +2 -2
  410. package/es6/components/Meter/Bar.js +1 -1
  411. package/es6/components/Meter/Circle.js +1 -1
  412. package/es6/components/Meter/Meter.js +1 -1
  413. package/es6/components/Meter/StyledMeter.js +2 -2
  414. package/es6/components/NameValueList/NameValueList.js +1 -1
  415. package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  416. package/es6/components/Nav/stories/Sidebar.js +1 -1
  417. package/es6/components/Notification/Notification.js +1 -1
  418. package/es6/components/Page/Page.js +1 -1
  419. package/es6/components/PageContent/PageContent.js +1 -1
  420. package/es6/components/PageHeader/PageHeader.js +1 -1
  421. package/es6/components/Pagination/PageControl.js +1 -1
  422. package/es6/components/Pagination/Pagination.js +1 -1
  423. package/es6/components/Pagination/PaginationStep.js +1 -1
  424. package/es6/components/Pagination/PaginationSummary.js +1 -1
  425. package/es6/components/Pagination/StyledPageControl.js +2 -1
  426. package/es6/components/Paragraph/Paragraph.js +1 -1
  427. package/es6/components/Paragraph/StyledParagraph.js +2 -2
  428. package/es6/components/RadioButton/RadioButton.js +1 -4
  429. package/es6/components/RadioButton/StyledRadioButton.js +9 -8
  430. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  431. package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  432. package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
  433. package/es6/components/RangeInput/RangeInput.js +2 -2
  434. package/es6/components/RangeInput/StyledRangeInput.js +2 -2
  435. package/es6/components/RangeSelector/EdgeControl.js +1 -1
  436. package/es6/components/RangeSelector/RangeSelector.js +1 -1
  437. package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  438. package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  439. package/es6/components/RangeSelector/stories/Step.js +1 -1
  440. package/es6/components/RangeSelector/stories/Vertical.js +1 -1
  441. package/es6/components/RoutedAnchor/RoutedAnchor.js +2 -2
  442. package/es6/components/RoutedButton/RoutedButton.js +2 -2
  443. package/es6/components/Select/DefaultSelectTextInput.js +1 -1
  444. package/es6/components/Select/Select.js +1 -1
  445. package/es6/components/Select/SelectContainer.js +1 -2
  446. package/es6/components/Select/StyledSelect.js +5 -4
  447. package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
  448. package/es6/components/Select/stories/components/SearchInput.js +1 -1
  449. package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
  450. package/es6/components/SelectMultiple/SelectMultipleContainer.js +0 -1
  451. package/es6/components/Sidebar/Sidebar.js +1 -1
  452. package/es6/components/Sidebar/stories/Labels.js +1 -1
  453. package/es6/components/Skeleton/Skeleton.js +1 -1
  454. package/es6/components/Skeleton/StyledSkeleton.js +2 -2
  455. package/es6/components/Skeleton/stories/GridContainer.js +1 -1
  456. package/es6/components/Skeleton/stories/Individual.js +1 -1
  457. package/es6/components/SkipLink/SkipLink.js +1 -1
  458. package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  459. package/es6/components/Spinner/Spinner.js +1 -1
  460. package/es6/components/Stack/Stack.js +1 -1
  461. package/es6/components/Stack/StyledStack.js +3 -3
  462. package/es6/components/StarRating/StarRating.js +1 -1
  463. package/es6/components/Tab/StyledTab.js +2 -1
  464. package/es6/components/Tab/Tab.js +1 -3
  465. package/es6/components/Table/StyledTable.js +8 -8
  466. package/es6/components/Table/Table.js +1 -1
  467. package/es6/components/TableCell/TableCell.js +1 -1
  468. package/es6/components/Tabs/StyledTabs.js +5 -4
  469. package/es6/components/Tabs/Tabs.js +1 -3
  470. package/es6/components/Tag/Tag.js +1 -1
  471. package/es6/components/Text/StyledText.js +2 -6
  472. package/es6/components/Text/Text.js +1 -1
  473. package/es6/components/Text/TextSkeleton.js +1 -1
  474. package/es6/components/TextArea/StyledTextArea.js +2 -2
  475. package/es6/components/TextArea/TextArea.js +1 -1
  476. package/es6/components/TextInput/StyledTextInput.js +6 -6
  477. package/es6/components/TextInput/TextInput.js +1 -1
  478. package/es6/components/TextInput/stories/Simple.js +7 -2
  479. package/es6/components/TextInput/stories/WithTags.js +1 -1
  480. package/es6/components/ToggleGroup/ToggleGroup.js +1 -1
  481. package/es6/components/Toolbar/Toolbar.js +1 -1
  482. package/es6/components/Video/StyledVideo.js +5 -5
  483. package/es6/components/Video/Video.js +1 -1
  484. package/es6/components/WorldMap/StyledWorldMap.js +2 -2
  485. package/es6/components/WorldMap/WorldMap.js +1 -1
  486. package/es6/components/index.d.ts +1 -0
  487. package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  488. package/es6/utils/pagination.js +1 -1
  489. package/es6/utils/styles.js +6 -0
  490. package/grommet.min.js +1 -1
  491. package/grommet.min.js.map +1 -1
  492. package/package.json +35 -31
  493. package/tools/release-stable.js +1 -1
  494. package/tools/release-styled-components-beta-stable.js +1 -1
  495. package/utils/pagination.js +1 -1
  496. package/utils/styles.js +7 -1
@@ -4,7 +4,7 @@ exports.__esModule = true;
4
4
  exports.useAnalytics = exports.AnalyticsProvider = exports.AnalyticsContext = void 0;
5
5
  var _react = _interopRequireWildcard(require("react"));
6
6
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
7
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
7
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
8
8
  var AnalyticsContext = exports.AnalyticsContext = /*#__PURE__*/_react["default"].createContext(function () {});
9
9
  var useAnalytics = exports.useAnalytics = function useAnalytics() {
10
10
  return (0, _react.useContext)(AnalyticsContext);
@@ -7,7 +7,7 @@ var _grommetIcons = require("grommet-icons");
7
7
  var _themes = require("grommet/themes");
8
8
  var _grommet = require("grommet");
9
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
11
  // used only for the grommet's font
12
12
 
13
13
  var message = "Thank you for clicking the Announce Button,\nthis announcement is being broadcast on the Button's click.";
@@ -9,7 +9,7 @@ var _grommet = require("grommet");
9
9
  var _excluded = ["children", "areas"];
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  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); }
12
- 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; }
12
+ 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; }
13
13
  var customBreakpoints = (0, _utils.deepMerge)(_themes.grommet, {
14
14
  global: {
15
15
  breakpoints: {
@@ -7,7 +7,7 @@ var _themes = require("grommet/themes");
7
7
  var _utils = require("grommet/utils");
8
8
  var _grommet = require("grommet");
9
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
11
  var customTheme = (0, _utils.deepMerge)(_themes.grommet, {
12
12
  global: {
13
13
  focus: {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["id"],
2
2
  _excluded2 = ["color"];
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, { useState } from 'react';
6
6
  import { Accordion, AccordionPanel, Anchor, Box, Button, Calendar, Chart, CheckBox, Clock, DataTable, Diagram, Distribution, FormField, Grid, Heading, MaskedInput, Menu, Meter, Paragraph, RadioButtonGroup, RangeInput, RangeSelector, Select, Stack, Tab, Tabs, Text, TextArea, TextInput, Video } from 'grommet';
7
7
  import { FormNext } from "grommet-icons/es6/icons/FormNext";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["activeIndex", "animate", "children", "level", "multiple", "onActive"];
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, forwardRef, useCallback, useState } from 'react';
5
5
  import { AccordionPropTypes } from './propTypes';
6
6
  import { Box } from '../Box';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["animate", "multiple"];
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 { SubtractCircle } from "grommet-icons/es6/icons/SubtractCircle";
6
6
  import { AddCircle } from "grommet-icons/es6/icons/AddCircle";
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["animate", "multiple"];
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 from 'react';
4
4
  import { Accordion, AccordionPanel, Box } from 'grommet';
5
5
  export var Simple = function Simple(props) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "header", "label", "onClick", "onMouseOut", "onMouseOver", "onFocus", "onBlur"];
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, useState } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { defaultProps } from '../../default-props';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "children", "color", "disabled", "gap", "href", "icon", "label", "onBlur", "onClick", "onFocus", "reverse", "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, { cloneElement, forwardRef, useCallback, useContext, useEffect, useState } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { defaultProps } from '../../default-props';
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { focusStyle, genericStyles, normalizeColor } from '../../utils';
2
+ import { focusStyle, genericStyles, normalizeColor, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
4
  var disabledStyle = "\n opacity: 0.3;\n cursor: default;\n text-decoration: none;\n";
5
5
  var sizeStyle = function sizeStyle(props) {
@@ -10,13 +10,7 @@ var sizeStyle = function sizeStyle(props) {
10
10
  }
11
11
  return css(["font-size:inherit;line-height:inherit;"]);
12
12
  };
13
- var StyledAnchor = styled.a.withConfig({
14
- // prevent custom props from bleeding into DOM
15
- // https://styled-components.com/docs/api#shouldforwardprop
16
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
17
- return !['as', 'colorProp', 'focus', 'hasIcon', 'hasLabel', 'reverse'].includes(prop) && defaultValidatorFn(prop);
18
- }
19
- }).withConfig({
13
+ var StyledAnchor = styled.a.withConfig(styledComponentsConfig).withConfig({
20
14
  displayName: "StyledAnchor",
21
15
  componentId: "sc-1rp7lwl-0"
22
16
  })(["box-sizing:border-box;display:inline-flex;", " color:", ";", " text-decoration:", ";cursor:pointer;", " ", " ", " ", " ", " ", ""], function (props) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "align", "children", "height", "justify", "round", "size", "src", "width"];
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, { useCallback, useContext, useMemo } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { Image } from '../Image';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["a11yTitle", "background", "border", "children", "cssGap", "direction", "elevation", "fill", "gap", "kind", "onBlur", "onClick", "onFocus", "overflow", "responsive", "tag", "as", "wrap", "width", "height", "tabIndex", "skeleton"],
2
2
  _excluded2 = ["colors", "size"];
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, { Children, forwardRef, useContext, useEffect, useMemo, useState } from 'react';
6
6
  import { ThemeContext } from 'styled-components';
7
7
  import { defaultProps } from '../../default-props';
@@ -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';