grommet 2.39.0 → 2.40.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 (303) hide show
  1. package/all/stories/AllComponents.js +1 -1
  2. package/components/Accordion/Accordion.js +1 -1
  3. package/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  4. package/components/Accordion/stories/Simple.js +1 -1
  5. package/components/AccordionPanel/AccordionPanel.js +1 -1
  6. package/components/Anchor/Anchor.js +1 -1
  7. package/components/Avatar/Avatar.js +1 -1
  8. package/components/Box/Box.js +1 -1
  9. package/components/Box/StyledBox.js +3 -3
  10. package/components/Button/Button.js +1 -1
  11. package/components/Calendar/Calendar.js +15 -15
  12. package/components/Card/stories/CustomThemed/Clickable.js +1 -1
  13. package/components/Card/stories/CustomThemed/Themed.js +1 -1
  14. package/components/Cards/Cards.js +1 -1
  15. package/components/Carousel/Carousel.js +1 -1
  16. package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  17. package/components/Chart/Chart.js +1 -1
  18. package/components/CheckBox/CheckBox.js +1 -1
  19. package/components/CheckBox/stories/NoLabel.js +1 -1
  20. package/components/CheckBox/stories/Simple.js +1 -1
  21. package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  22. package/components/Clock/Analog.js +1 -1
  23. package/components/Clock/Clock.js +1 -1
  24. package/components/Clock/Digital.js +1 -1
  25. package/components/Collapsible/stories/Nested.js +1 -1
  26. package/components/Data/Data.js +1 -1
  27. package/components/Data/DataForm.js +5 -5
  28. package/components/Data/filter.js +6 -6
  29. package/components/Data/index.d.ts +1 -3
  30. package/components/Data/propTypes.js +2 -1
  31. package/components/Data/stories/ComposedToolbar.js +2 -1
  32. package/components/Data/stories/Inline.js +1 -1
  33. package/components/Data/stories/Views.js +3 -0
  34. package/components/DataChart/DataChart.js +1 -1
  35. package/components/DataChart/XAxis.js +1 -1
  36. package/components/DataClearFilters/DataClearFilters.js +1 -1
  37. package/components/DataFilter/DataFilter.js +4 -4
  38. package/components/DataFilters/DataFilters.js +1 -1
  39. package/components/DataSearch/DataSearch.js +1 -1
  40. package/components/DataSort/DataSort.js +1 -1
  41. package/components/DataSummary/DataSummary.js +1 -1
  42. package/components/DataTable/Body.js +1 -1
  43. package/components/DataTable/Cell.js +1 -1
  44. package/components/DataTable/DataTable.js +1 -1
  45. package/components/DataTable/ExpanderCell.js +1 -1
  46. package/components/DataTable/Footer.js +1 -1
  47. package/components/DataTable/GroupedBody.js +1 -1
  48. package/components/DataTable/Header.js +1 -1
  49. package/components/DataTable/buildState.js +10 -10
  50. package/components/DataTableColumns/DataTableColumns.js +1 -1
  51. package/components/DataTableColumns/stories/DefaultValue.js +49 -0
  52. package/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  53. package/components/DataView/DataView.js +1 -1
  54. package/components/DateInput/DateInput.js +1 -1
  55. package/components/Diagram/Diagram.js +1 -1
  56. package/components/Diagram/stories/Progressing.js +1 -1
  57. package/components/Distribution/Distribution.js +5 -5
  58. package/components/Drop/Drop.js +1 -1
  59. package/components/Drop/DropContainer.js +1 -1
  60. package/components/DropButton/DropButton.js +1 -1
  61. package/components/FileInput/FileInput.js +1 -1
  62. package/components/FocusedContainer.js +1 -1
  63. package/components/Form/Form.js +7 -7
  64. package/components/FormField/FormField.js +1 -1
  65. package/components/Grid/Grid.js +1 -1
  66. package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  67. package/components/Grommet/Grommet.js +1 -1
  68. package/components/Header/Header.js +1 -1
  69. package/components/Heading/Heading.js +1 -1
  70. package/components/Image/Image.js +1 -1
  71. package/components/InfiniteScroll/InfiniteScroll.js +1 -0
  72. package/components/Keyboard/Keyboard.js +1 -1
  73. package/components/Layer/LayerContainer.js +1 -1
  74. package/components/List/List.js +5 -3
  75. package/components/List/index.d.ts +1 -0
  76. package/components/List/propTypes.js +1 -0
  77. package/components/Markdown/Markdown.js +1 -1
  78. package/components/MaskedInput/MaskedInput.js +1 -1
  79. package/components/Menu/Menu.js +1 -1
  80. package/components/Meter/Bar.js +1 -1
  81. package/components/Meter/Circle.js +1 -1
  82. package/components/Meter/Meter.js +1 -1
  83. package/components/NameValueList/NameValueList.js +1 -1
  84. package/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  85. package/components/Nav/stories/Sidebar.js +1 -1
  86. package/components/Notification/Notification.js +1 -1
  87. package/components/Page/Page.js +1 -1
  88. package/components/PageContent/PageContent.js +1 -1
  89. package/components/PageHeader/PageHeader.js +1 -1
  90. package/components/Pagination/PageControl.js +1 -1
  91. package/components/Pagination/Pagination.js +1 -1
  92. package/components/Pagination/PaginationStep.js +1 -1
  93. package/components/Pagination/PaginationSummary.js +1 -1
  94. package/components/Paragraph/Paragraph.js +1 -1
  95. package/components/RadioButton/RadioButton.js +1 -1
  96. package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  97. package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  98. package/components/RadioButtonGroup/stories/Disabled.js +1 -1
  99. package/components/RangeInput/RangeInput.js +1 -1
  100. package/components/RangeSelector/EdgeControl.js +1 -1
  101. package/components/RangeSelector/RangeSelector.js +1 -1
  102. package/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  103. package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  104. package/components/RangeSelector/stories/Step.js +1 -1
  105. package/components/RangeSelector/stories/Vertical.js +1 -1
  106. package/components/RoutedAnchor/RoutedAnchor.js +1 -1
  107. package/components/RoutedButton/RoutedButton.js +1 -1
  108. package/components/Select/DefaultSelectTextInput.js +1 -1
  109. package/components/Select/Select.js +1 -1
  110. package/components/Select/SelectContainer.js +1 -1
  111. package/components/Select/stories/components/SearchBorderBox.js +1 -1
  112. package/components/Select/stories/components/SearchInput.js +1 -1
  113. package/components/Select/utils.js +10 -10
  114. package/components/SelectMultiple/SelectMultiple.js +1 -1
  115. package/components/Sidebar/Sidebar.js +1 -1
  116. package/components/Sidebar/stories/Labels.js +1 -1
  117. package/components/Skeleton/Skeleton.js +1 -1
  118. package/components/Skeleton/stories/GridContainer.js +1 -1
  119. package/components/Skeleton/stories/Individual.js +1 -1
  120. package/components/SkipLink/SkipLink.js +1 -1
  121. package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  122. package/components/Spinner/Spinner.js +1 -1
  123. package/components/Stack/Stack.js +1 -1
  124. package/components/StarRating/StarRating.js +1 -1
  125. package/components/Tab/Tab.js +1 -1
  126. package/components/Table/Table.js +1 -1
  127. package/components/TableCell/TableCell.js +1 -1
  128. package/components/Tabs/Tabs.js +1 -1
  129. package/components/Tag/Tag.js +1 -1
  130. package/components/Text/Text.js +1 -1
  131. package/components/Text/TextSkeleton.js +1 -1
  132. package/components/TextArea/TextArea.js +1 -1
  133. package/components/TextInput/TextInput.js +1 -1
  134. package/components/TextInput/stories/WithTags.js +1 -1
  135. package/components/Tip/Tip.js +5 -0
  136. package/components/Tip/index.d.ts +1 -0
  137. package/components/Tip/propTypes.js +2 -1
  138. package/components/ToggleGroup/ToggleGroup.js +1 -1
  139. package/components/Toolbar/Toolbar.js +1 -1
  140. package/components/Video/StyledVideo.js +1 -1
  141. package/components/Video/Video.js +1 -1
  142. package/components/WorldMap/WorldMap.js +1 -1
  143. package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  144. package/es6/all/stories/AllComponents.js +1 -1
  145. package/es6/components/Accordion/Accordion.js +1 -1
  146. package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
  147. package/es6/components/Accordion/stories/Simple.js +1 -1
  148. package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
  149. package/es6/components/Anchor/Anchor.js +1 -1
  150. package/es6/components/Avatar/Avatar.js +1 -1
  151. package/es6/components/Box/Box.js +1 -1
  152. package/es6/components/Box/StyledBox.js +3 -3
  153. package/es6/components/Button/Button.js +1 -1
  154. package/es6/components/Calendar/Calendar.js +16 -15
  155. package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
  156. package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
  157. package/es6/components/Cards/Cards.js +1 -1
  158. package/es6/components/Carousel/Carousel.js +1 -1
  159. package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
  160. package/es6/components/Chart/Chart.js +1 -1
  161. package/es6/components/CheckBox/CheckBox.js +1 -1
  162. package/es6/components/CheckBox/stories/NoLabel.js +1 -1
  163. package/es6/components/CheckBox/stories/Simple.js +1 -1
  164. package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
  165. package/es6/components/Clock/Analog.js +1 -1
  166. package/es6/components/Clock/Clock.js +1 -1
  167. package/es6/components/Clock/Digital.js +1 -1
  168. package/es6/components/Collapsible/stories/Nested.js +1 -1
  169. package/es6/components/Data/Data.js +1 -1
  170. package/es6/components/Data/DataForm.js +5 -5
  171. package/es6/components/Data/filter.js +6 -6
  172. package/es6/components/Data/index.d.ts +1 -3
  173. package/es6/components/Data/propTypes.js +2 -1
  174. package/es6/components/Data/stories/ComposedToolbar.js +2 -1
  175. package/es6/components/Data/stories/Inline.js +1 -1
  176. package/es6/components/Data/stories/Views.js +3 -0
  177. package/es6/components/DataChart/DataChart.js +1 -1
  178. package/es6/components/DataChart/XAxis.js +1 -1
  179. package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
  180. package/es6/components/DataFilter/DataFilter.js +4 -4
  181. package/es6/components/DataFilters/DataFilters.js +1 -1
  182. package/es6/components/DataSearch/DataSearch.js +1 -1
  183. package/es6/components/DataSort/DataSort.js +1 -1
  184. package/es6/components/DataSummary/DataSummary.js +1 -1
  185. package/es6/components/DataTable/Body.js +1 -1
  186. package/es6/components/DataTable/Cell.js +1 -1
  187. package/es6/components/DataTable/DataTable.js +1 -1
  188. package/es6/components/DataTable/ExpanderCell.js +1 -1
  189. package/es6/components/DataTable/Footer.js +1 -1
  190. package/es6/components/DataTable/GroupedBody.js +1 -1
  191. package/es6/components/DataTable/Header.js +1 -1
  192. package/es6/components/DataTable/buildState.js +11 -10
  193. package/es6/components/DataTableColumns/DataTableColumns.js +1 -1
  194. package/es6/components/DataTableColumns/stories/DefaultValue.js +45 -0
  195. package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
  196. package/es6/components/DataView/DataView.js +1 -1
  197. package/es6/components/DateInput/DateInput.js +1 -1
  198. package/es6/components/Diagram/Diagram.js +1 -1
  199. package/es6/components/Diagram/stories/Progressing.js +1 -1
  200. package/es6/components/Distribution/Distribution.js +6 -6
  201. package/es6/components/Drop/Drop.js +1 -1
  202. package/es6/components/Drop/DropContainer.js +1 -1
  203. package/es6/components/DropButton/DropButton.js +1 -1
  204. package/es6/components/FileInput/FileInput.js +1 -1
  205. package/es6/components/FocusedContainer.js +1 -1
  206. package/es6/components/Form/Form.js +7 -7
  207. package/es6/components/FormField/FormField.js +1 -1
  208. package/es6/components/Grid/Grid.js +1 -1
  209. package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
  210. package/es6/components/Grommet/Grommet.js +1 -1
  211. package/es6/components/Header/Header.js +1 -1
  212. package/es6/components/Heading/Heading.js +1 -1
  213. package/es6/components/Image/Image.js +1 -1
  214. package/es6/components/InfiniteScroll/InfiniteScroll.js +1 -0
  215. package/es6/components/Keyboard/Keyboard.js +1 -1
  216. package/es6/components/Layer/LayerContainer.js +1 -1
  217. package/es6/components/List/List.js +5 -3
  218. package/es6/components/List/index.d.ts +1 -0
  219. package/es6/components/List/propTypes.js +1 -0
  220. package/es6/components/Markdown/Markdown.js +1 -1
  221. package/es6/components/MaskedInput/MaskedInput.js +1 -1
  222. package/es6/components/Menu/Menu.js +1 -1
  223. package/es6/components/Meter/Bar.js +1 -1
  224. package/es6/components/Meter/Circle.js +1 -1
  225. package/es6/components/Meter/Meter.js +1 -1
  226. package/es6/components/NameValueList/NameValueList.js +1 -1
  227. package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
  228. package/es6/components/Nav/stories/Sidebar.js +1 -1
  229. package/es6/components/Notification/Notification.js +1 -1
  230. package/es6/components/Page/Page.js +1 -1
  231. package/es6/components/PageContent/PageContent.js +1 -1
  232. package/es6/components/PageHeader/PageHeader.js +1 -1
  233. package/es6/components/Pagination/PageControl.js +1 -1
  234. package/es6/components/Pagination/Pagination.js +1 -1
  235. package/es6/components/Pagination/PaginationStep.js +1 -1
  236. package/es6/components/Pagination/PaginationSummary.js +1 -1
  237. package/es6/components/Paragraph/Paragraph.js +1 -1
  238. package/es6/components/RadioButton/RadioButton.js +1 -1
  239. package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  240. package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
  241. package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
  242. package/es6/components/RangeInput/RangeInput.js +1 -1
  243. package/es6/components/RangeSelector/EdgeControl.js +1 -1
  244. package/es6/components/RangeSelector/RangeSelector.js +1 -1
  245. package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
  246. package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
  247. package/es6/components/RangeSelector/stories/Step.js +1 -1
  248. package/es6/components/RangeSelector/stories/Vertical.js +1 -1
  249. package/es6/components/RoutedAnchor/RoutedAnchor.js +1 -1
  250. package/es6/components/RoutedButton/RoutedButton.js +1 -1
  251. package/es6/components/Select/DefaultSelectTextInput.js +1 -1
  252. package/es6/components/Select/Select.js +1 -1
  253. package/es6/components/Select/SelectContainer.js +1 -1
  254. package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
  255. package/es6/components/Select/stories/components/SearchInput.js +1 -1
  256. package/es6/components/Select/utils.js +11 -10
  257. package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
  258. package/es6/components/Sidebar/Sidebar.js +1 -1
  259. package/es6/components/Sidebar/stories/Labels.js +1 -1
  260. package/es6/components/Skeleton/Skeleton.js +1 -1
  261. package/es6/components/Skeleton/stories/GridContainer.js +1 -1
  262. package/es6/components/Skeleton/stories/Individual.js +1 -1
  263. package/es6/components/SkipLink/SkipLink.js +1 -1
  264. package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
  265. package/es6/components/Spinner/Spinner.js +1 -1
  266. package/es6/components/Stack/Stack.js +1 -1
  267. package/es6/components/StarRating/StarRating.js +1 -1
  268. package/es6/components/Tab/Tab.js +1 -1
  269. package/es6/components/Table/Table.js +1 -1
  270. package/es6/components/TableCell/TableCell.js +1 -1
  271. package/es6/components/Tabs/Tabs.js +1 -1
  272. package/es6/components/Tag/Tag.js +1 -1
  273. package/es6/components/Text/Text.js +1 -1
  274. package/es6/components/Text/TextSkeleton.js +1 -1
  275. package/es6/components/TextArea/TextArea.js +1 -1
  276. package/es6/components/TextInput/TextInput.js +1 -1
  277. package/es6/components/TextInput/stories/WithTags.js +1 -1
  278. package/es6/components/Tip/Tip.js +6 -1
  279. package/es6/components/Tip/index.d.ts +1 -0
  280. package/es6/components/Tip/propTypes.js +2 -1
  281. package/es6/components/ToggleGroup/ToggleGroup.js +1 -1
  282. package/es6/components/Toolbar/Toolbar.js +1 -1
  283. package/es6/components/Video/StyledVideo.js +1 -1
  284. package/es6/components/Video/Video.js +1 -1
  285. package/es6/components/WorldMap/WorldMap.js +1 -1
  286. package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
  287. package/es6/utils/DOM.js +7 -5
  288. package/es6/utils/background.js +4 -4
  289. package/es6/utils/colors.js +3 -2
  290. package/es6/utils/mixins.js +3 -2
  291. package/es6/utils/object.js +3 -2
  292. package/es6/utils/pagination.js +1 -1
  293. package/es6/utils/styles.js +1 -1
  294. package/grommet.min.js +1 -1
  295. package/grommet.min.js.map +1 -1
  296. package/package.json +33 -34
  297. package/utils/DOM.js +4 -4
  298. package/utils/background.js +4 -4
  299. package/utils/colors.js +2 -2
  300. package/utils/mixins.js +2 -2
  301. package/utils/object.js +2 -2
  302. package/utils/pagination.js +1 -1
  303. package/utils/styles.js +1 -1
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["control", "separator", "size"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import { StyledContainer, StyledPaginationButton, StyledSeparator } from './StyledPageControl';
6
6
  import { useThemeValue } from '../../utils/useThemeValue';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["messages", "onChange", "options", "step"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useContext } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { Select } from '../Select';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["messages", "numberItems", "page", "step"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
2
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
3
  import React, { useContext } from 'react';
4
4
  import { Box } from '../Box';
5
5
  import { Text } from '../Text';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "color", "fill", "size"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useMemo } from 'react';
5
5
  import { StyledParagraph } from './StyledParagraph';
6
6
  import { ParagraphPropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "checked", "children", "disabled", "focus", "focusIndicator", "id", "label", "name", "onChange"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useState } from 'react';
5
5
  import { normalizeColor, removeUndefined } from '../../utils';
6
6
  import { StyledRadioButton, StyledRadioButtonContainer, StyledRadioButtonIcon, StyledRadioButtonInput, StyledRadioButtonLabel, StyledRadioButtonBox } from './StyledRadioButton';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "defaultValue", "disabled", "focusIndicator", "name", "onChange", "options", "value", "gap"],
2
2
  _excluded2 = ["disabled", "id", "label", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React, { forwardRef, useContext, useRef, useState } from 'react';
6
6
  import { FormContext } from '../Form/FormContext';
7
7
  import { Keyboard } from '../Keyboard';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, Grommet, RadioButtonGroup, ThemeContext } from 'grommet';
6
6
  import { grommet } from 'grommet/themes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, RadioButtonGroup } from 'grommet';
6
6
  export var Disabled = function Disabled(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "color", "focus", "focusIndicator", "name", "onChange", "onFocus", "onBlur", "value", "step", "min", "max"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useState, useCallback, useEffect } from 'react';
5
5
  import { FormContext } from '../Form/FormContext';
6
6
  import { StyledRangeInput } from './StyledRangeInput';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["color", "direction", "edge", "onDecrease", "onIncrease", "thickness"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Box } from '../Box';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["color", "defaultValues", "direction", "invert", "label", "max", "messages", "min", "name", "onChange", "opacity", "round", "size", "step", "values"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useContext, useEffect, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Grommet, Box, RangeSelector, Stack, Text } from 'grommet';
6
6
  import { grommet } from 'grommet/themes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Gremlin } from "grommet-icons/es6/icons/Gremlin";
6
6
  import { Grommet as GrommetIcon } from "grommet-icons/es6/icons/Grommet";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, RangeSelector, Stack, Text } from 'grommet';
6
6
  var SimpleRangeSelector = function SimpleRangeSelector(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["direction"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useState } from 'react';
5
5
  import { Box, RangeSelector, Stack, Text } from 'grommet';
6
6
  var SimpleRangeSelector = function SimpleRangeSelector(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["path", "method"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
5
5
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
6
6
  import React, { Component } from 'react';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["href", "path", "method", "onClick"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
5
5
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
6
6
  import React, { Component } from 'react';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["disabled", "id"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { SelectTextInput } from './StyledSelect';
6
6
  export var DefaultSelectTextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "alignSelf", "children", "clear", "closeOnChange", "defaultValue", "disabled", "disabledKey", "dropAlign", "dropHeight", "dropProps", "dropTarget", "emptySearchMessage", "focusIndicator", "gridArea", "id", "icon", "labelKey", "margin", "messages", "multiple", "name", "onBlur", "onChange", "onClick", "onClose", "onFocus", "onKeyDown", "onMore", "onOpen", "onSearch", "open", "options", "placeholder", "plain", "replace", "searchPlaceholder", "selected", "size", "value", "valueKey", "valueLabel"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, isValidElement, useCallback, useContext, useMemo, useState, useRef, useEffect } from 'react';
5
5
  import { useKeyboard } from '../../utils';
6
6
  import { Box } from '../Box';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["clear", "onClear", "name", "theme"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { setFocusWithoutScroll, getHoverIndicatorStyle, containsFocus } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "searching"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import { css } from 'styled-components';
5
5
  import React, { useState } from 'react';
6
6
  import { Box } from '../../..';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["searching"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useEffect } from 'react';
5
5
  import { TextInput } from '../../..';
6
6
  import { SearchBorderBox } from './SearchBorderBox';
@@ -1,23 +1,24 @@
1
1
  import { useCallback } from 'react';
2
2
  import { normalizeColor } from '../../utils';
3
- export var applyKey = function applyKey(option, key) {
3
+ var _applyKey = function applyKey(option, key) {
4
4
  if (option === undefined || option === null) return undefined;
5
- if (typeof key === 'object') return applyKey(option, key.key);
5
+ if (typeof key === 'object') return _applyKey(option, key.key);
6
6
  if (typeof key === 'function') return key(option);
7
7
  if (key !== undefined && typeof option === 'object') return option[key];
8
8
  if (typeof option === 'object' && Object.keys(option)) return option[Object.keys(option)[0]];
9
9
  return option;
10
10
  };
11
+ export { _applyKey as applyKey };
11
12
  export var getOptionLabel = function getOptionLabel(index, options, labelKey) {
12
- return applyKey(options[index], labelKey);
13
+ return _applyKey(options[index], labelKey);
13
14
  };
14
15
  export var getOptionValue = function getOptionValue(index, options, valueKey) {
15
- return applyKey(options[index], valueKey);
16
+ return _applyKey(options[index], valueKey);
16
17
  };
17
18
  export var getOptionIndex = function getOptionIndex(options, i, valueKey) {
18
19
  if (options) {
19
20
  if (typeof i === 'object') return options.findIndex(function (x) {
20
- return applyKey(x, valueKey) === applyKey(i, valueKey);
21
+ return _applyKey(x, valueKey) === _applyKey(i, valueKey);
21
22
  });
22
23
  return options.indexOf(i);
23
24
  }
@@ -26,7 +27,7 @@ export var getOptionIndex = function getOptionIndex(options, i, valueKey) {
26
27
  export var arrayIncludes = function arrayIncludes(arr, i, valueKey) {
27
28
  if (arr) {
28
29
  if (typeof i === 'object') return arr.some(function (x) {
29
- return applyKey(x, valueKey) === applyKey(i, valueKey);
30
+ return _applyKey(x, valueKey) === _applyKey(i, valueKey);
30
31
  });
31
32
  return arr.includes(i);
32
33
  }
@@ -37,7 +38,7 @@ export var useDisabled = function useDisabled(disabled, disabledKey, options, va
37
38
  var option = options[index];
38
39
  var result;
39
40
  if (disabledKey) {
40
- result = applyKey(option, disabledKey);
41
+ result = _applyKey(option, disabledKey);
41
42
  } else if (Array.isArray(disabled)) {
42
43
  if (typeof disabled[0] === 'number') {
43
44
  result = disabled.indexOf(index) !== -1;
@@ -51,9 +52,9 @@ export var useDisabled = function useDisabled(disabled, disabledKey, options, va
51
52
  };
52
53
  export var getNormalizedValue = function getNormalizedValue(value, valueKey) {
53
54
  if (Array.isArray(value)) return value.map(function (v) {
54
- return valueKey && valueKey.reduce ? v : applyKey(v, valueKey);
55
+ return valueKey && valueKey.reduce ? v : _applyKey(v, valueKey);
55
56
  });
56
- return valueKey && valueKey.reduce ? value : applyKey(value, valueKey);
57
+ return valueKey && valueKey.reduce ? value : _applyKey(value, valueKey);
57
58
  };
58
59
  export var changeEvent = function changeEvent(inputRef, nextValue) {
59
60
  // Calling set value function directly on input because React library
@@ -86,7 +87,7 @@ export var getSelectIcon = function getSelectIcon(icon, theme, open) {
86
87
  // we should use the labelKey function to display the
87
88
  // selected value
88
89
  export var getDisplayLabelKey = function getDisplayLabelKey(labelKey, allOptions, optionIndexesInValue, selectValue) {
89
- var optionLabelKey = applyKey(allOptions[optionIndexesInValue[0]], labelKey);
90
+ var optionLabelKey = _applyKey(allOptions[optionIndexesInValue[0]], labelKey);
90
91
  if (!selectValue && optionIndexesInValue.length === 1 && typeof optionLabelKey === 'object') return optionLabelKey;
91
92
  return undefined;
92
93
  };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "alignSelf", "children", "defaultValue", "disabled", "disabledKey", "dropAlign", "dropHeight", "dropProps", "dropTarget", "emptySearchMessage", "focusIndicator", "gridArea", "help", "id", "icon", "labelKey", "limit", "margin", "messages", "name", "onBlur", "onChange", "onClick", "onClose", "onFocus", "onKeyDown", "onMore", "onOpen", "onSearch", "open", "options", "placeholder", "plain", "replace", "searchPlaceholder", "size", "sortSelectedOnClose", "value", "valueKey", "valueLabel", "showSelectedInline", "width"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, isValidElement, useCallback, useContext, useMemo, useState, useRef, useEffect } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { controlBorderStyle, useKeyboard, useForwardedRef } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "footer", "header"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { SidebarPropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["icon", "label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import { Avatar, Button, Box, Nav, Stack, Text } from 'grommet';
6
6
  import { Analytics } from "grommet-icons/es6/icons/Analytics";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["as", "colors", "width", "height"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { SkeletonPropTypes } from './propTypes';
6
6
  import { useSkeleton } from './SkeletonContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["title"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import { Box, Button, Card, Grid, Image, Text } from 'grommet';
6
6
  import { FormAdd } from "grommet-icons/es6/icons/FormAdd";
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["title"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import { Box, Button, Card, Grommet, Image, Text } from 'grommet';
6
6
  import { useThemeValue } from '../../../utils/useThemeValue';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["id", "label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { Anchor } from '../Anchor';
6
6
  export var SkipLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Anchor } from '../Anchor';
@@ -2,7 +2,7 @@ var _excluded = ["ref", "size"],
2
2
  _excluded2 = ["children", "color", "size", "message"],
3
3
  _excluded3 = ["size", "color", "border"];
4
4
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
5
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
5
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
6
6
  import React, { isValidElement, forwardRef, useContext, useEffect } from 'react';
7
7
  import { AnnounceContext } from '../../contexts/AnnounceContext';
8
8
  import { Box } from '../Box';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["anchor", "children", "fill", "guidingChild", "interactiveChild"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
2
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
4
  import React, { Children, forwardRef } from 'react';
5
5
  import { StyledStack, StyledStackLayer } from './StyledStack';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["name", "defaultValue", "value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useContext } from 'react';
5
5
  import { Star } from 'grommet-icons/icons/Star';
6
6
  import { StarOutline } from 'grommet-icons/icons/StarOutline';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["active", "disabled", "children", "icon", "plain", "title", "onBlur", "onFocus", "onMouseOver", "onMouseOut", "reverse", "onClick"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useEffect, useState } from 'react';
5
5
  import { Button } from '../Button';
6
6
  import { Text } from '../Text';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["caption", "children"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { StyledTable, StyledTableDataCaption } from './StyledTable';
6
6
  import { TablePropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["align", "aria-disabled", "background", "border", "children", "className", "colSpan", "onWidth", "pad", "plain", "rowSpan", "scope", "size", "verticalAlign"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useEffect, useMemo, useRef } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["alignControls", "children", "flex", "justify", "messages", "responsive"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useContext, useState, useEffect, useRef, useMemo } from 'react';
5
5
  import { Previous } from 'grommet-icons/icons/Previous';
6
6
  import { Next } from 'grommet-icons/icons/Next';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["name", "value", "size", "onRemove", "onClick"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { FormClose } from 'grommet-icons/icons/FormClose';
6
6
  import { TagPropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "color", "tag", "as", "tip", "a11yTitle", "truncate", "size", "skeleton", "level"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useMemo, useState } from 'react';
5
5
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
6
6
  import { StyledText } from './StyledText';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["as", "size"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef } from 'react';
5
5
  import { Skeleton } from '../Skeleton';
6
6
  import { useThemeValue } from '../../utils/useThemeValue';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "fill", "focusIndicator", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useContext, useState } from 'react';
5
5
  import { FormContext } from '../Form/FormContext';
6
6
  import { Keyboard } from '../Keyboard';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "defaultSuggestion", "defaultValue", "dropAlign", "dropHeight", "dropTarget", "dropProps", "focusIndicator", "icon", "id", "messages", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onSelect", "onSuggestionSelect", "onSuggestionsClose", "onSuggestionsOpen", "placeholder", "plain", "readOnly", "readOnlyCopy", "reverse", "suggestions", "textAlign", "value", "width"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Box } from '../Box';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "onRemove"],
2
2
  _excluded2 = ["value", "onAdd", "onChange", "onRemove"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from 'react';
6
6
  import { FormClose } from "grommet-icons/es6/icons/FormClose";
7
7
  import { Box, Button, Keyboard, Text, TextInput } from 'grommet';
@@ -1,5 +1,5 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { Children, cloneElement, forwardRef, useState } from 'react';
2
+ import React, { Children, cloneElement, forwardRef, useEffect, useState } from 'react';
3
3
  import { Box } from '../Box';
4
4
  import { Drop } from '../Drop';
5
5
  import { useForwardedRef, useKeyboard } from '../../utils';
@@ -8,6 +8,8 @@ import { useThemeValue } from '../../utils/useThemeValue';
8
8
  var Tip = /*#__PURE__*/forwardRef(function (_ref, tipRef) {
9
9
  var children = _ref.children,
10
10
  content = _ref.content,
11
+ _ref$defaultVisible = _ref.defaultVisible,
12
+ defaultVisible = _ref$defaultVisible === void 0 ? false : _ref$defaultVisible,
11
13
  dropProps = _ref.dropProps,
12
14
  plain = _ref.plain;
13
15
  var theme = useThemeValue();
@@ -65,6 +67,9 @@ var Tip = /*#__PURE__*/forwardRef(function (_ref, tipRef) {
65
67
  }
66
68
  }
67
69
  });
70
+ useEffect(function () {
71
+ setOver(defaultVisible);
72
+ }, [defaultVisible]);
68
73
  return [clonedChild, (over || tooltipOver) && /*#__PURE__*/React.createElement(Drop, _extends({
69
74
  target: componentRef.current,
70
75
  trapFocus: false,
@@ -4,6 +4,7 @@ import { DropType } from '../Drop';
4
4
  export interface TipProps {
5
5
  children?: React.ReactNode;
6
6
  content?: React.ReactNode;
7
+ defaultVisible?: boolean;
7
8
  dropProps?: DropType;
8
9
  plain?: boolean;
9
10
  }
@@ -4,7 +4,8 @@ if (process.env.NODE_ENV !== 'production') {
4
4
  PropType = {
5
5
  content: PropTypes.node,
6
6
  dropProps: PropTypes.object,
7
- plain: PropTypes.bool
7
+ plain: PropTypes.bool,
8
+ defaultVisible: PropTypes.bool
8
9
  };
9
10
  }
10
11
  export var TipPropTypes = PropType;
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["defaultValue", "multiple", "options", "onToggle", "value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useCallback, useState, useRef } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { Keyboard } from '../Keyboard';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React, { useContext } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { ResponsiveContext } from '../../contexts/ResponsiveContext';