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
@@ -10,7 +10,7 @@ var _excluded = ["id"],
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _extends() { 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); }
13
- 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; }
13
+ 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; }
14
14
  var Node = function Node(_ref) {
15
15
  var id = _ref.id,
16
16
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
@@ -10,7 +10,7 @@ var _excluded = ["activeIndex", "animate", "children", "level", "multiple", "onA
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _extends() { 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); }
13
- 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; }
13
+ 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; }
14
14
  var activeAsArray = function activeAsArray(active) {
15
15
  return typeof active === 'number' ? [active] : active;
16
16
  };
@@ -8,7 +8,7 @@ var _grommet = require("grommet");
8
8
  var _excluded = ["animate", "multiple"];
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var customAccordionTheme = {
13
13
  global: {
14
14
  font: {
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
6
6
  var _grommet = require("grommet");
7
7
  var _excluded = ["animate", "multiple"];
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- 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; }
9
+ 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; }
10
10
  var Simple = exports.Simple = function Simple(props) {
11
11
  var animate = props.animate,
12
12
  multiple = props.multiple,
@@ -15,7 +15,7 @@ var _excluded = ["children", "header", "label", "onClick", "onMouseOut", "onMous
15
15
  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); }
16
16
  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; }
17
17
  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); }
18
- 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; }
18
+ 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; }
19
19
  var AccordionPanel = exports.AccordionPanel = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
20
20
  var children = _ref.children,
21
21
  header = _ref.header,
@@ -14,7 +14,7 @@ var _excluded = ["a11yTitle", "aria-label", "children", "color", "disabled", "ga
14
14
  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); }
15
15
  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; }
16
16
  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); }
17
- 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; }
17
+ 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; }
18
18
  var Anchor = exports.Anchor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
19
19
  var a11yTitle = _ref.a11yTitle,
20
20
  ariaLabel = _ref['aria-label'],
@@ -11,7 +11,7 @@ var _excluded = ["a11yTitle", "aria-label", "align", "children", "height", "just
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
13
  function _extends() { 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); }
14
- 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; }
14
+ 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; }
15
15
  var Avatar = exports.Avatar = function Avatar(_ref) {
16
16
  var a11yTitle = _ref.a11yTitle,
17
17
  ariaLabel = _ref['aria-label'],
@@ -17,7 +17,7 @@ var _excluded = ["a11yTitle", "background", "border", "children", "cssGap", "dir
17
17
  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); }
18
18
  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; }
19
19
  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); }
20
- 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; }
20
+ 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; }
21
21
  var Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
22
22
  var a11yTitle = _ref.a11yTitle,
23
23
  backgroundProp = _ref.background,
@@ -72,7 +72,7 @@ var WRAP_MAP = {
72
72
  var wrapStyle = (0, _styledComponents.css)(["flex-wrap:", ";"], function (props) {
73
73
  return WRAP_MAP[props.wrapProp];
74
74
  });
75
- var animationItemStyle = function animationItemStyle(item, theme) {
75
+ var _animationItemStyle = function animationItemStyle(item, theme) {
76
76
  if (typeof item === 'string') {
77
77
  return (0, _animation.animationObjectStyle)({
78
78
  type: item
@@ -80,7 +80,7 @@ var animationItemStyle = function animationItemStyle(item, theme) {
80
80
  }
81
81
  if (Array.isArray(item)) {
82
82
  return item.reduce(function (style, a, index) {
83
- return (0, _styledComponents.css)(["", "", " ", ""], style, index > 0 ? ',' : '', animationItemStyle(a, theme));
83
+ return (0, _styledComponents.css)(["", "", " ", ""], style, index > 0 ? ',' : '', _animationItemStyle(a, theme));
84
84
  }, '');
85
85
  }
86
86
  if (typeof item === 'object') {
@@ -120,7 +120,7 @@ var animationInitialStyle = function animationInitialStyle(item) {
120
120
  return '';
121
121
  };
122
122
  var animationStyle = (0, _styledComponents.css)(["", ";"], function (props) {
123
- return (0, _styledComponents.css)(["", " animation:", ";"], animationInitialStyle(props.animation), animationItemStyle(props.animation, props.theme));
123
+ return (0, _styledComponents.css)(["", " animation:", ";"], animationInitialStyle(props.animation), _animationItemStyle(props.animation, props.theme));
124
124
  });
125
125
  var interactiveStyle = (0, _styledComponents.css)(["cursor:pointer;&:hover{", " ", "}"], function (props) {
126
126
  var _props$kindProp;
@@ -22,7 +22,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
22
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
24
  function _extends() { 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); }
25
- 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; }
25
+ 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; }
26
26
  var RelativeBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
27
27
  displayName: "Button__RelativeBox",
28
28
  componentId: "sc-zuqsuw-0"
@@ -19,7 +19,7 @@ var _useThemeValue = require("../../utils/useThemeValue");
19
19
  var _excluded = ["activeDate", "animate", "bounds", "children", "date", "dates", "daysOfWeek", "disabled", "initialFocus", "fill", "firstDayOfWeek", "header", "locale", "messages", "onReference", "onSelect", "range", "reference", "showAdjacentDays", "size", "timestamp"];
20
20
  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); }
21
21
  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; }
22
- 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; }
22
+ 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; }
23
23
  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); }
24
24
  var headingPadMap = {
25
25
  small: 'xsmall',
@@ -57,7 +57,7 @@ var currentlySelectedString = function currentlySelectedString(value, locale) {
57
57
 
58
58
  // calendar value may be a single date, multiple dates, a range of dates
59
59
  // supplied as ISOstrings.
60
- var normalizeInput = function normalizeInput(dateValue) {
60
+ var _normalizeInput = function normalizeInput(dateValue) {
61
61
  var result;
62
62
  if (dateValue instanceof Date) {
63
63
  result = dateValue;
@@ -67,12 +67,12 @@ var normalizeInput = function normalizeInput(dateValue) {
67
67
  result = (0, _dates.setHoursWithOffset)(dateValue);
68
68
  } else if (Array.isArray(dateValue)) {
69
69
  result = dateValue.map(function (d) {
70
- return normalizeInput(d);
70
+ return _normalizeInput(d);
71
71
  });
72
72
  }
73
73
  return result;
74
74
  };
75
- var normalizeOutput = function normalizeOutput(dateValue, outputFormat) {
75
+ var _normalizeOutput = function normalizeOutput(dateValue, outputFormat) {
76
76
  var result;
77
77
  var normalize = function normalize(value) {
78
78
  var normalizedValue = value.toISOString();
@@ -88,7 +88,7 @@ var normalizeOutput = function normalizeOutput(dateValue, outputFormat) {
88
88
  result = undefined;
89
89
  } else {
90
90
  result = dateValue.map(function (d) {
91
- return normalizeOutput(d, outputFormat);
91
+ return _normalizeOutput(d, outputFormat);
92
92
  });
93
93
  }
94
94
  return result;
@@ -144,12 +144,12 @@ var disabledCalendarNextMonthButton = function disabledCalendarNextMonthButton(d
144
144
  var firstBound = new Date(bounds[0]);
145
145
  return !(0, _utils.sameDayOrAfter)(firstBound, reference) && !(0, _utils.betweenDates)(date, bounds);
146
146
  };
147
- var getOutputFormat = exports.getOutputFormat = function getOutputFormat(dates) {
147
+ var _getOutputFormat = exports.getOutputFormat = function getOutputFormat(dates) {
148
148
  if (typeof dates === 'string' && (dates == null ? void 0 : dates.indexOf('T')) === -1) {
149
149
  return 'no timezone';
150
150
  }
151
151
  if (Array.isArray(dates)) {
152
- return getOutputFormat(dates[0]);
152
+ return _getOutputFormat(dates[0]);
153
153
  }
154
154
  return 'date timezone';
155
155
  };
@@ -265,26 +265,26 @@ var Calendar = exports.Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (
265
265
  (0, _react.useEffect)(function () {
266
266
  if (activeDateProp) setActiveDate(activeDateProp);
267
267
  }, [activeDateProp]);
268
- var _useState3 = (0, _react.useState)(normalizeInput(dateProp || datesProp)),
268
+ var _useState3 = (0, _react.useState)(_normalizeInput(dateProp || datesProp)),
269
269
  value = _useState3[0],
270
270
  setValue = _useState3[1];
271
271
  (0, _react.useEffect)(function () {
272
272
  var val = dateProp || datesProp;
273
- setValue(normalizeInput(val));
273
+ setValue(_normalizeInput(val));
274
274
  }, [dateProp, datesProp]);
275
- var _useState4 = (0, _react.useState)(getReference(normalizeInput(referenceProp), value)),
275
+ var _useState4 = (0, _react.useState)(getReference(_normalizeInput(referenceProp), value)),
276
276
  reference = _useState4[0],
277
277
  setReference = _useState4[1];
278
278
  (0, _react.useEffect)(function () {
279
279
  if (value) {
280
- setReference(getReference(normalizeInput(referenceProp), value));
280
+ setReference(getReference(_normalizeInput(referenceProp), value));
281
281
  }
282
282
  }, [referenceProp, value]);
283
- var _useState5 = (0, _react.useState)(getOutputFormat(dateProp || datesProp)),
283
+ var _useState5 = (0, _react.useState)(_getOutputFormat(dateProp || datesProp)),
284
284
  outputFormat = _useState5[0],
285
285
  setOutputFormat = _useState5[1];
286
286
  (0, _react.useEffect)(function () {
287
- setOutputFormat(getOutputFormat(dateProp || datesProp));
287
+ setOutputFormat(_getOutputFormat(dateProp || datesProp));
288
288
  }, [dateProp, datesProp]);
289
289
 
290
290
  // normalize bounds
@@ -488,7 +488,7 @@ var Calendar = exports.Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (
488
488
  nextValue = selectedDate;
489
489
  }
490
490
  if (onSelect) {
491
- nextValue = normalizeOutput(nextValue, outputFormat);
491
+ nextValue = _normalizeOutput(nextValue, outputFormat);
492
492
  onSelect(nextValue);
493
493
  }
494
494
  }, [handleRange, onSelect, outputFormat, range, value]);
@@ -649,7 +649,7 @@ var Calendar = exports.Calendar = /*#__PURE__*/(0, _react.forwardRef)(function (
649
649
  } else if (selectedState === 1) {
650
650
  inRange = true;
651
651
  }
652
- var dayDisabled = (0, _utils.withinDates)(day, normalizeInput(disabled)) || bounds && !(0, _utils.betweenDates)(day, normalizeInput(bounds));
652
+ var dayDisabled = (0, _utils.withinDates)(day, _normalizeInput(disabled)) || bounds && !(0, _utils.betweenDates)(day, _normalizeInput(bounds));
653
653
  if (!firstDayInMonth && !dayDisabled && day.getMonth() === reference.getMonth()) {
654
654
  firstDayInMonth = dateObject;
655
655
  }
@@ -8,7 +8,7 @@ var _grommet = require("grommet");
8
8
  var _excluded = ["children", "title", "subTitle", "size"];
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var theme = {
13
13
  themeMode: 'dark',
14
14
  global: {
@@ -8,7 +8,7 @@ var _grommet = require("grommet");
8
8
  var _excluded = ["children", "title", "subTitle", "size"];
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var data = [{
13
13
  color: 'blue',
14
14
  icon: /*#__PURE__*/_react["default"].createElement(_grommetIcons.Wifi, {
@@ -17,7 +17,7 @@ var _excluded = ["as", "children", "data", "margin", "onMore", "pad", "paginate"
17
17
  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); }
18
18
  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; }
19
19
  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); }
20
- 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; }
20
+ 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; }
21
21
  var emptyData = [];
22
22
  var Cards = exports.Cards = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
23
23
  var _ref$as = _ref.as,
@@ -16,7 +16,7 @@ var _excluded = ["activeChild", "initialChild", "onChild", "play", "children", "
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
18
  function _extends() { 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); }
19
- 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; }
19
+ 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; }
20
20
  var Carousel = exports.Carousel = function Carousel(_ref) {
21
21
  var activeChild = _ref.activeChild,
22
22
  _ref$initialChild = _ref.initialChild,
@@ -8,7 +8,7 @@ var _grommet = require("grommet");
8
8
  var _excluded = ["controls"];
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var customTheme = {
13
13
  carousel: {
14
14
  animation: {
@@ -15,7 +15,7 @@ var _excluded = ["a11yTitle", "bounds", "color", "dash", "direction", "gap", "id
15
15
  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); }
16
16
  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; }
17
17
  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); }
18
- 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; }
18
+ 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; }
19
19
  var gradientMaskColor = '#ffffff';
20
20
 
21
21
  // use constants so re-renders don't re-trigger effects
@@ -13,7 +13,7 @@ var _excluded = ["a11yTitle", "aria-label", "checked", "children", "defaultCheck
13
13
  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); }
14
14
  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; }
15
15
  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); }
16
- 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; }
16
+ 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; }
17
17
  var stopLabelClick = function stopLabelClick(event) {
18
18
  // prevents clicking on the label trigging the event twice
19
19
  // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element
@@ -8,7 +8,7 @@ var _excluded = ["checked"];
8
8
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
9
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var SimpleCheckBox = function SimpleCheckBox(_ref) {
13
13
  var checkedProp = _ref.checked,
14
14
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
@@ -8,7 +8,7 @@ var _excluded = ["checked"];
8
8
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
9
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var SimpleCheckBox = function SimpleCheckBox(_ref) {
13
13
  var checkedProp = _ref.checked,
14
14
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
@@ -13,7 +13,7 @@ var _excluded = ["children", "defaultValue", "value", "disabled", "focusIndicato
13
13
  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); }
14
14
  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; }
15
15
  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); }
16
- 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; }
16
+ 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; }
17
17
  var CheckBoxGroup = exports.CheckBoxGroup = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
18
18
  var children = _ref.children,
19
19
  defaultValue = _ref.defaultValue,
@@ -10,7 +10,7 @@ var _excluded = ["elements", "precision"];
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _extends() { 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); }
13
- 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; }
13
+ 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; }
14
14
  // this will serve both minutes and hours (360 / 6)
15
15
  var ANGLE_UNIT = 6;
16
16
  // 360 / 12
@@ -10,7 +10,7 @@ var _excluded = ["hourLimit", "onChange", "precision", "run", "size", "time", "t
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _extends() { 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); }
13
- 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; }
13
+ 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; }
14
14
  var TIME_REGEXP = /T([0-9]{2}):([0-9]{2})(?::([0-9.,]{2,}))?/;
15
15
  var DURATION_REGEXP = /^(-|\+)?P.*T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?$/;
16
16
  var parseTime = function parseTime(time, hourLimit) {
@@ -9,7 +9,7 @@ var _excluded = ["elements", "precision", "run", "size"];
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
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
  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); }
12
- 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; }
12
+ 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; }
13
13
  var Digit = function Digit(_ref) {
14
14
  var number = _ref.number,
15
15
  run = _ref.run,
@@ -8,7 +8,7 @@ var _grommet = require("grommet");
8
8
  var _excluded = ["label", "open", "submenu"];
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- 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; }
11
+ 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; }
12
12
  var MenuButton = function MenuButton(_ref) {
13
13
  var label = _ref.label,
14
14
  open = _ref.open,
@@ -18,7 +18,7 @@ var _excluded = ["children", "data", "defaultView", "filteredTotal", "id", "mess
18
18
  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); }
19
19
  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; }
20
20
  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); }
21
- 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; }
21
+ 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; }
22
22
  var defaultDefaultView = {
23
23
  search: ''
24
24
  };
@@ -16,7 +16,7 @@ var _excluded = ["children", "footer", "onDone", "pad", "updateOn"];
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
17
  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); }
18
18
  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; }
19
- 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; }
19
+ 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; }
20
20
  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); }
21
21
  var MaxForm = (0, _styledComponents["default"])(_Form.Form).withConfig({
22
22
  displayName: "DataForm__MaxForm",
@@ -48,7 +48,7 @@ var viewFormKeyMap = {
48
48
 
49
49
  // flatten nested objects.
50
50
  // For example: { a: { b: v, c: z } } -> { 'a.b': v, 'a.c': z }
51
- var flatten = function flatten(formValue, options) {
51
+ var _flatten = function flatten(formValue, options) {
52
52
  var result = JSON.parse(JSON.stringify(formValue));
53
53
  Object.keys(result).forEach(function (i) {
54
54
  // We check the type of the i using
@@ -56,7 +56,7 @@ var flatten = function flatten(formValue, options) {
56
56
  // call the function again
57
57
  // ignore _range situations
58
58
  if (typeof result[i] === 'object' && !Array.isArray(result[i]) && (options != null && options.full || !result[i][formRangeKey])) {
59
- var temp = flatten(result[i], options);
59
+ var temp = _flatten(result[i], options);
60
60
  Object.keys(temp).forEach(function (j) {
61
61
  // Store temp in result
62
62
  // ignore empty arrays
@@ -131,7 +131,7 @@ var formValueToView = function formValueToView(value, views) {
131
131
  });
132
132
 
133
133
  // flatten any nested objects
134
- var flatValue = flatten(valueCopy);
134
+ var flatValue = _flatten(valueCopy);
135
135
  result.properties = _extends({}, result.properties || {}, flatValue);
136
136
 
137
137
  // convert any ranges
@@ -157,7 +157,7 @@ var clearEmpty = function clearEmpty(formValue, pendingReset) {
157
157
  // { a: b: { _range: [0, 100] } } ==> a.b._range: [0, 100]
158
158
  if (typeof value[k] === 'object' && !Array.isArray(value[k])) {
159
159
  var _pendingReset$current;
160
- var filterName = k + "." + Object.keys(flatten(value[k], {
160
+ var filterName = k + "." + Object.keys(_flatten(value[k], {
161
161
  full: true
162
162
  }))[0];
163
163
  if (pendingReset != null && (_pendingReset$current = pendingReset.current) != null && _pendingReset$current.has(filterName)) {
@@ -3,12 +3,12 @@
3
3
  exports.__esModule = true;
4
4
  exports.filter = void 0;
5
5
  // TODO: share with DataTable, List, Cards, etc.
6
- var datumValue = function datumValue(datum, property) {
6
+ var _datumValue = function datumValue(datum, property) {
7
7
  if (!property) return undefined;
8
8
  var parts = property.split('.');
9
9
  if (parts.length === 1) return datum[property];
10
10
  if (!datum[parts[0]]) return undefined;
11
- return datumValue(datum[parts[0]], parts.slice(1).join('.'));
11
+ return _datumValue(datum[parts[0]], parts.slice(1).join('.'));
12
12
  };
13
13
 
14
14
  // This is where we filter the data internally, when the caller doesn't
@@ -33,7 +33,7 @@ var filter = exports.filter = function filter(data, view, properties) {
33
33
  // check whether it matches any search
34
34
  if (searchExp) {
35
35
  var searchWith = function searchWith(property) {
36
- var value = datumValue(datum, property);
36
+ var value = _datumValue(datum, property);
37
37
  if (value === undefined) return false;
38
38
  return searchExp.test(value);
39
39
  };
@@ -46,7 +46,7 @@ var filter = exports.filter = function filter(data, view, properties) {
46
46
  matched = !Object.keys(view.properties).some(function (property) {
47
47
  // returning true means it doesn't match the filter,
48
48
  var filterValue = view.properties[property];
49
- var value = datumValue(datum, property);
49
+ var value = _datumValue(datum, property);
50
50
 
51
51
  // range case
52
52
  if (typeof (filterValue == null ? void 0 : filterValue.min) === 'number' || typeof (filterValue == null ? void 0 : filterValue.max) === 'number') return typeof value !== 'number' || value < filterValue.min || value > filterValue.max;
@@ -83,8 +83,8 @@ var filter = exports.filter = function filter(data, view, properties) {
83
83
  var before = sortDesc ? -1 : 1;
84
84
  var after = sortDesc ? 1 : -1;
85
85
  filteredData.sort(function (d1, d2) {
86
- var d1Val = datumValue(d1, prop);
87
- var d2Val = datumValue(d2, prop);
86
+ var d1Val = _datumValue(d1, prop);
87
+ var d2Val = _datumValue(d2, prop);
88
88
  // sort strings via locale case insensitive
89
89
  if (typeof d1Val === 'string' && typeof d2Val === 'string' || typeof d1Val === 'string' && !d2Val || typeof d2Val === 'string' && !d1Val) {
90
90
  var sortResult = (d1Val || '').localeCompare(d2Val || '', undefined, {
@@ -19,9 +19,7 @@ export interface View {
19
19
  direction: 'asc' | 'desc';
20
20
  };
21
21
  step?: number; // page size
22
-
23
- // Future column ordering, requires 'properties' property on Data
24
- // columns?: string[];
22
+ columns?: string[];
25
23
  }
26
24
 
27
25
  export interface DataProps {
@@ -10,7 +10,8 @@ var viewType = _propTypes["default"].shape({
10
10
  sort: _propTypes["default"].shape({
11
11
  direction: _propTypes["default"].oneOf(['asc', 'desc']),
12
12
  property: _propTypes["default"].string
13
- })
13
+ }),
14
+ columns: _propTypes["default"].arrayOf(_propTypes["default"].string)
14
15
  });
15
16
  var PropType = {};
16
17
  if (process.env.NODE_ENV !== 'production') {
@@ -60,7 +60,8 @@ var ComposedToolbar = exports.ComposedToolbar = function ComposedToolbar() {
60
60
  }, /*#__PURE__*/_react["default"].createElement(_grommet.DataTable, {
61
61
  alignSelf: "start",
62
62
  columns: _data.columns,
63
- sortable: true
63
+ sortable: true,
64
+ primaryKey: "name"
64
65
  }))))
65
66
  // </Grommet>
66
67
  );
@@ -8,7 +8,7 @@ var _Data = require("../Data");
8
8
  var _excluded = ["search"];
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
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
- 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; }
11
+ 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; }
12
12
  var sizes = ['small', 'medium', 'large'];
13
13
  var DATA = [];
14
14
  for (var i = 0; i < 11; i += 1) {
@@ -30,6 +30,9 @@ var Views = exports.Views = function Views() {
30
30
  },
31
31
  location: ['San Francisco']
32
32
  }
33
+ }, {
34
+ name: 'Fewer Columns',
35
+ columns: ['name', 'location']
33
36
  }],
34
37
  toolbar: true
35
38
  }, /*#__PURE__*/_react["default"].createElement(_grommet.DataTable, {
@@ -25,7 +25,7 @@ var _excluded = ["a11yTitle", "axis", "bounds", "chart", "data", "detail", "dire
25
25
  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); }
26
26
  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; }
27
27
  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); }
28
- 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; }
28
+ 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; }
29
29
  var stackedChartType = {
30
30
  areas: 'area',
31
31
  bars: 'bar',
@@ -10,7 +10,7 @@ var _excluded = ["values", "pad", "renderValue", "serie", "theme", "thickness"];
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
12
  function _extends() { 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); }
13
- 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; }
13
+ 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; }
14
14
  var onlyHorizontalPad = function onlyHorizontalPad(pad) {
15
15
  var result;
16
16
  if (pad) {