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
@@ -16,15 +16,16 @@ export var set = function set(obj, path, value) {
16
16
  };
17
17
 
18
18
  // get the value for the property in the datum object
19
- export var datumValue = function datumValue(datum, property) {
19
+ var _datumValue = function datumValue(datum, property) {
20
20
  if (!property || !datum) return undefined;
21
21
  var parts = property.split('.');
22
22
  if (parts.length === 1) return datum[property];
23
23
  if (!datum[parts[0]]) return undefined;
24
- return datumValue(datum[parts[0]], parts.slice(1).join('.'));
24
+ return _datumValue(datum[parts[0]], parts.slice(1).join('.'));
25
25
  };
26
26
 
27
27
  // get the primary property name
28
+ export { _datumValue as datumValue };
28
29
  export var normalizePrimaryProperty = function normalizePrimaryProperty(columns, primaryKey) {
29
30
  var result;
30
31
  if (typeof primaryKey === 'string' || typeof primaryKey === 'boolean') {
@@ -75,7 +76,7 @@ export var filterAndSortData = function filterAndSortData(data, filters, onSearc
75
76
  if (Object.keys(regexps).length > 0) {
76
77
  result = data.filter(function (datum) {
77
78
  return !Object.keys(regexps).some(function (property) {
78
- return !regexps[property].test(datumValue(datum, property));
79
+ return !regexps[property].test(_datumValue(datum, property));
79
80
  });
80
81
  });
81
82
  }
@@ -88,8 +89,8 @@ export var filterAndSortData = function filterAndSortData(data, filters, onSearc
88
89
  var before = sortAsc ? 1 : -1;
89
90
  var after = sortAsc ? -1 : 1;
90
91
  result.sort(function (d1, d2) {
91
- var d1Val = datumValue(d1, property);
92
- var d2Val = datumValue(d2, property);
92
+ var d1Val = _datumValue(d1, property);
93
+ var d2Val = _datumValue(d2, property);
93
94
  if (typeof d1Val === 'string' && typeof d2Val === 'string' || typeof d1Val === 'string' && !d2Val || typeof d2Val === 'string' && !d1Val) {
94
95
  var sortResult = (d1Val || '').localeCompare(d2Val || '', undefined, {
95
96
  sensitivity: 'base'
@@ -132,12 +133,12 @@ var aggregateColumn = function aggregateColumn(column, data) {
132
133
  var value;
133
134
  if (column.aggregate === 'avg') {
134
135
  value = data.map(function (d) {
135
- return datumValue(d, column.property);
136
+ return _datumValue(d, column.property);
136
137
  }).reduce(sumReducer);
137
138
  value /= data.length;
138
139
  } else {
139
140
  value = data.map(function (d) {
140
- return datumValue(d, column.property);
141
+ return _datumValue(d, column.property);
141
142
  }).reduce(reducers[column.aggregate], reducersInitValues[column.aggregate]);
142
143
  }
143
144
  return value;
@@ -162,7 +163,7 @@ export var buildFooterValues = function buildFooterValues(columns, data) {
162
163
  columns.forEach(function (column) {
163
164
  if (column.footer) {
164
165
  if (column.footer.aggregate) {
165
- var value = datumValue(aggregateValues, column.property);
166
+ var value = _datumValue(aggregateValues, column.property);
166
167
  result = set(result, column.property, value);
167
168
  } else {
168
169
  result = set(result, column.property, column.footer);
@@ -181,10 +182,10 @@ export var buildGroups = function buildGroups(columns, data, groupBy, primaryPro
181
182
  var groupMap = {};
182
183
  data.forEach(function (datum) {
183
184
  var _groupBy$expandable;
184
- var key = datumValue(datum, primaryProperty);
185
+ var key = _datumValue(datum, primaryProperty);
185
186
  var isGroup = key && ((_groupBy$expandable = groupBy.expandable) == null ? void 0 : _groupBy$expandable.includes(key));
186
187
  var groupByProperty = groupBy.property ? groupBy.property : groupBy;
187
- var groupValue = isGroup ? key : datumValue(datum, groupByProperty);
188
+ var groupValue = isGroup ? key : _datumValue(datum, groupByProperty);
188
189
  if (!groupMap[groupValue]) {
189
190
  var group = {
190
191
  data: [],
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["drop", "options"],
2
2
  _excluded2 = ["drop", "options"];
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, { useCallback, useContext, useMemo, useState } from 'react';
6
6
  import { Search } from 'grommet-icons/icons/Search';
7
7
  import { Splits } from 'grommet-icons/icons/Splits';
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { Box, Data, DataSearch, DataSummary, DataTable, DataTableColumns, Toolbar } from 'grommet';
3
+ import { columns, DATA } from '../../DataTable/stories/data';
4
+
5
+ // simplify option label for name property
6
+ var options = columns.map(function (_ref) {
7
+ var header = _ref.header,
8
+ property = _ref.property;
9
+ return {
10
+ property: property,
11
+ label: property === 'name' ? 'Name' : header
12
+ };
13
+ });
14
+ var defaultValue = ['percent', 'paid', 'name'];
15
+ export var DefaultValue = function DefaultValue() {
16
+ return (
17
+ /*#__PURE__*/
18
+ // Uncomment <Grommet> lines when using outside of storybook
19
+ // <Grommet theme={...}>
20
+ React.createElement(Box, {
21
+ align: "center",
22
+ justify: "start",
23
+ pad: "large",
24
+ gap: "medium"
25
+ }, /*#__PURE__*/React.createElement(Data, {
26
+ data: DATA,
27
+ defaultView: {
28
+ columns: defaultValue
29
+ }
30
+ }, /*#__PURE__*/React.createElement(Toolbar, null, /*#__PURE__*/React.createElement(DataSearch, null), /*#__PURE__*/React.createElement(DataTableColumns, {
31
+ drop: true,
32
+ options: options
33
+ })), /*#__PURE__*/React.createElement(DataSummary, null), /*#__PURE__*/React.createElement(DataTable, {
34
+ columns: columns,
35
+ primaryKey: "name"
36
+ })))
37
+ // </Grommet>
38
+ );
39
+ };
40
+ DefaultValue.args = {
41
+ full: true
42
+ };
43
+ export default {
44
+ title: 'Data/DataTableColumns/DefaultValue'
45
+ };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["id", "options"];
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, useEffect } from 'react';
5
5
  import { DataForm } from '../Data/DataForm';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["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, { useContext, useEffect } from 'react';
5
5
  import { DataForm } from '../Data/DataForm';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["buttonProps", "calendarProps", "defaultValue", "disabled", "dropProps", "format", "id", "icon", "inline", "inputProps", "name", "onChange", "onFocus", "plain", "readOnly", "readOnlyCopy", "reverse", "value", "messages"],
2
2
  _excluded2 = ["icon"];
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, { useRef, forwardRef, useContext, useEffect, useMemo, useState, useCallback } from 'react';
6
6
  import styled from 'styled-components';
7
7
  import { Calendar as CalendarIcon } from 'grommet-icons/icons/Calendar';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["connections"],
2
2
  _excluded2 = ["anchor", "animation", "color", "offset", "round", "thickness", "type"];
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, useCallback, useEffect, useRef, useState } from 'react';
6
6
  import { normalizeColor, parseMetricToNum, useForwardedRef } from '../../utils';
7
7
  import { StyledDiagram } from './StyledDiagram';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["id"],
2
2
  _excluded2 = ["color"];
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, { useReducer, useEffect } from 'react';
6
6
  import { Box, Diagram, Stack, Paragraph } from 'grommet';
7
7
  var Node = function Node(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["basis", "children", "direction", "fill", "gap", "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 from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { Box } from '../Box';
@@ -26,7 +26,7 @@ var defaultChildrenPropValue = function defaultChildrenPropValue(value) {
26
26
  }, /*#__PURE__*/React.createElement(Text, null, value.value));
27
27
  };
28
28
  var defaultValues = [];
29
- var Distribution = function Distribution(_ref2) {
29
+ var _Distribution = function Distribution(_ref2) {
30
30
  var basis = _ref2.basis,
31
31
  _ref2$children = _ref2.children,
32
32
  children = _ref2$children === void 0 ? defaultChildrenPropValue : _ref2$children,
@@ -92,12 +92,12 @@ var Distribution = function Distribution(_ref2) {
92
92
  overflow: "hidden",
93
93
  gap: gap,
94
94
  fill: fill
95
- }, rest), /*#__PURE__*/React.createElement(Distribution, {
95
+ }, rest), /*#__PURE__*/React.createElement(_Distribution, {
96
96
  values: values.slice(0, subIndex),
97
97
  basis: childBasis[0],
98
98
  direction: direction === 'row' ? 'column' : 'row',
99
99
  gap: gap
100
- }, children), /*#__PURE__*/React.createElement(Distribution, {
100
+ }, children), /*#__PURE__*/React.createElement(_Distribution, {
101
101
  values: values.slice(subIndex),
102
102
  basis: childBasis[1],
103
103
  direction: direction === 'row' ? 'column' : 'row',
@@ -106,5 +106,5 @@ var Distribution = function Distribution(_ref2) {
106
106
  }
107
107
  return null;
108
108
  };
109
- Distribution.propTypes = DistributionPropTypes;
110
- export { Distribution };
109
+ _Distribution.propTypes = DistributionPropTypes;
110
+ export { _Distribution as Distribution };
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["inline", "restrictFocus", "target", "trapFocus"];
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, useState, useContext, useRef } from 'react';
5
5
  import { createPortal } from 'react-dom';
6
6
  import { getNewContainer, setFocusWithoutScroll } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "align", "background", "onAlign", "children", "dropTarget", "elevation", "onClickOutside", "onEsc", "onKeyDown", "overflow", "plain", "responsive", "restrictFocus", "stretch", "trapFocus"];
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 } from 'react';
5
5
  import { ThemeContext } from 'styled-components';
6
6
  import { ContainerTargetContext } from '../../contexts/ContainerTargetContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "onAlign", "disabled", "dropAlign", "dropProps", "dropContent", "dropTarget", "id", "open", "onClick", "onClose", "onOpen"];
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, useState } from 'react';
5
5
  import { Button } from '../Button';
6
6
  import { Drop } from '../Drop';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "background", "border", "confirmRemove", "disabled", "id", "plain", "renderFile", "maxSize", "messages", "margin", "multiple", "name", "onChange", "pad", "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, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { CircleAlert } from 'grommet-icons/icons/CircleAlert';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["hidden", "restrictScroll", "children", "trapFocus"];
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, useEffect, useRef, useState } from 'react';
5
5
  import { makeNodeFocusable, makeNodeUnfocusable } from '../utils';
6
6
  import { RootsContext } from '../contexts/RootsContext';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["children", "errors", "infos", "messages", "kind", "onChange", "onReset", "onSubmit", "onValidate", "validate", "value"];
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, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import { useAnalytics } from '../../contexts';
@@ -28,19 +28,19 @@ var stringToArray = function stringToArray(string) {
28
28
  }
29
29
  return undefined;
30
30
  };
31
- var getValueAt = function getValueAt(valueObject, pathArg) {
31
+ var _getValueAt = function getValueAt(valueObject, pathArg) {
32
32
  if (valueObject === undefined) return undefined;
33
33
  var path = Array.isArray(pathArg) ? pathArg : pathArg.split('.');
34
34
  if (path.length === 1) return valueObject[path];
35
- return getValueAt(valueObject[path.shift()], path);
35
+ return _getValueAt(valueObject[path.shift()], path);
36
36
  };
37
- var setValueAt = function setValueAt(valueObject, pathArg, value) {
37
+ var _setValueAt = function setValueAt(valueObject, pathArg, value) {
38
38
  var object = valueObject;
39
39
  var path = Array.isArray(pathArg) ? pathArg : pathArg.split('.');
40
40
  if (path.length === 1) object[path] = value;else {
41
41
  var key = path.shift();
42
42
  if (!object[key]) object[key] = {};
43
- setValueAt(object[key], path, value);
43
+ _setValueAt(object[key], path, value);
44
44
  }
45
45
  };
46
46
  var getFieldValue = function getFieldValue(name, value) {
@@ -53,7 +53,7 @@ var getFieldValue = function getFieldValue(name, value) {
53
53
  var obj = (_value$arrayName = value[arrayName]) == null ? void 0 : _value$arrayName[indexOfArray];
54
54
  return arrayObjName ? obj == null ? void 0 : obj[arrayObjName] : obj;
55
55
  }
56
- return getValueAt(value, name);
56
+ return _getValueAt(value, name);
57
57
  };
58
58
  var setFieldValue = function setFieldValue(name, componentValue, prevValue) {
59
59
  var nextValue = _extends({}, prevValue);
@@ -69,7 +69,7 @@ var setFieldValue = function setFieldValue(name, componentValue, prevValue) {
69
69
  nextValue[arrayName][indexOfArray][arrayObjName] = componentValue;
70
70
  } else nextValue[arrayName][indexOfArray] = componentValue;
71
71
  } else {
72
- setValueAt(nextValue, name, componentValue);
72
+ _setValueAt(nextValue, name, componentValue);
73
73
  }
74
74
  return nextValue;
75
75
  };
@@ -2,7 +2,7 @@ var _excluded = ["error", "info", "message", "type"],
2
2
  _excluded2 = ["component", "disabled", "invalid", "name", "onChange"],
3
3
  _excluded3 = ["children", "className", "component", "contentProps", "disabled", "error", "help", "htmlFor", "info", "label", "margin", "name", "onBlur", "onChange", "onFocus", "pad", "required", "style", "validate", "validateOn"];
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, { Children, cloneElement, forwardRef, useContext, useMemo, useState } from 'react';
7
7
  import styled from 'styled-components';
8
8
  import { containsFocus, shouldKeepFocus, withinDropPortal, PortalContext } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "aria-label", "border", "fill", "height", "responsive", "rows", "tag", "as", "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 } from 'react';
5
5
  import { StyledGrid } from './StyledGrid';
6
6
  import { GridPropTypes } from './propTypes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "overrideColumns", "overrideRows", "areas"];
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 { Grommet, Box, Grid, Heading, ResponsiveContext } from 'grommet';
6
6
  import { grommet } from 'grommet/themes';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "full", "containerTarget", "theme", "options", "messages", "onAnalytics"];
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, useMemo, useState } from 'react';
5
5
  import { createGlobalStyle } from 'styled-components';
6
6
  import { ContainerTargetContext, ResponsiveContext, ThemeContext } from '../../contexts';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["sticky"];
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 } from 'react';
5
5
  import { findScrollParent, useForwardedRef } from '../../utils';
6
6
  import { Box } from '../Box';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "color", "fill", "level", "overflowWrap", "responsive", "weight"];
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 { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
6
6
  import { StyledHeading } from './StyledHeading';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "fallback", "onError", "onLoad", "opacity", "fill", "src"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 { StyledImage } from './StyledImage';
6
6
  import { ImagePropTypes } from './propTypes';
@@ -1,3 +1,4 @@
1
+ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
1
2
  import React, { useEffect, useMemo, useRef, useState } from 'react';
2
3
  import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
3
4
  import { findScrollParent, findScrollParents, isNodeAfterScroll, isNodeBeforeScroll } from '../../utils';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["capture", "target", "children", "onKeyDown"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 { Children, cloneElement, useCallback, useEffect } from 'react';
4
4
  import { KeyboardPropTypes } from './propTypes';
5
5
  var KEYS = {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["background", "children", "full", "id", "margin", "modal", "onClickOutside", "onEsc", "plain", "position", "responsive", "target"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 styled, { ThemeContext } from 'styled-components';
6
6
  import { FocusedContainer } from '../FocusedContainer';
@@ -1,6 +1,6 @@
1
- var _excluded = ["a11yTitle", "aria-label", "action", "as", "background", "border", "children", "data", "defaultItemProps", "disabled", "focus", "itemKey", "itemProps", "onActive", "onClickItem", "onKeyDown", "onMore", "onOrder", "pad", "paginate", "pinned", "primaryKey", "secondaryKey", "show", "step"];
1
+ var _excluded = ["a11yTitle", "aria-label", "action", "as", "background", "border", "children", "data", "defaultItemProps", "disabled", "focus", "itemKey", "itemProps", "onActive", "onClickItem", "onKeyDown", "onMore", "onOrder", "showIndex", "pad", "paginate", "pinned", "primaryKey", "secondaryKey", "show", "step"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, { Fragment, cloneElement, useContext, useMemo, useRef, useState } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { DataContext } from '../../contexts/DataContext';
@@ -116,6 +116,8 @@ var List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
116
116
  onKeyDown = _ref.onKeyDown,
117
117
  onMore = _ref.onMore,
118
118
  onOrder = _ref.onOrder,
119
+ _ref$showIndex = _ref.showIndex,
120
+ showIndex = _ref$showIndex === void 0 ? true : _ref$showIndex,
119
121
  pad = _ref.pad,
120
122
  paginate = _ref.paginate,
121
123
  _ref$pinned = _ref.pinned,
@@ -597,7 +599,7 @@ var List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
597
599
  isDisabled: isDisabled,
598
600
  flex: false,
599
601
  pad: pad || theme.list.item.pad
600
- }, defaultItemProps, boxProps, clickProps, orderProps, itemAriaProps), onOrder && /*#__PURE__*/React.createElement(Text, {
602
+ }, defaultItemProps, boxProps, clickProps, orderProps, itemAriaProps), showIndex && onOrder && /*#__PURE__*/React.createElement(Text, {
601
603
  color: pinnedColor
602
604
  }, index + 1), content, displayPinned, orderControls);
603
605
  }))), paginate && data.length > step && items && items.length ? /*#__PURE__*/React.createElement(Pagination, _extends({
@@ -52,6 +52,7 @@ export interface ListProps<ListItemType> {
52
52
  ) => any;
53
53
  data?: ListItemType[];
54
54
  disabled?: string[];
55
+ showIndex?: boolean;
55
56
  gridArea?: GridAreaType;
56
57
  defaultItemProps?: BoxTypes;
57
58
  itemKey?: string | ((item: ListItemType) => string | number);
@@ -27,6 +27,7 @@ if (process.env.NODE_ENV !== 'production') {
27
27
  children: PropTypes.func,
28
28
  defaultItemProps: PropTypes.shape(BoxPropTypes),
29
29
  disabled: PropTypes.arrayOf(PropTypes.string),
30
+ showIndex: PropTypes.bool,
30
31
  itemKey: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
31
32
  itemProps: PropTypes.shape({}),
32
33
  onActive: PropTypes.func,
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["children", "components", "options", "theme"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, Fragment } from 'react';
5
5
  import Markdown from 'markdown-to-jsx';
6
6
  import { deepMerge } from '../../utils';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["a11yTitle", "dropHeight", "dropProps", "focus", "focusIndicator", "icon", "id", "mask", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "plain", "reverse", "textAlign", "value"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 = ["a11yTitle", "aria-label", "children", "disabled", "dropAlign", "dropBackground", "dropProps", "dropTarget", "justifyContent", "icon", "items", "label", "messages", "onKeyDown", "open", "plain", "size"],
2
2
  _excluded2 = ["align"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, { useRef, forwardRef, useCallback, useContext, useMemo, useState, useEffect } from 'react';
6
6
  import styled from 'styled-components';
7
7
  import { Box } from '../Box';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["background", "max", "round", "size", "thickness", "direction", "values", "reverse"],
2
2
  _excluded2 = ["color", "highlight", "label", "onHover", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 } from 'react';
6
6
  import { parseMetricToNum } from '../../utils';
7
7
  import { StyledMeter } from './StyledMeter';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["background", "max", "round", "size", "thickness", "type", "values"],
2
2
  _excluded2 = ["color", "highlight", "label", "onHover", "value"];
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 } from 'react';
6
6
  import { arcCommands, parseMetricToNum, translateEndAngle } from '../../utils';
7
7
  import { StyledMeter } from './StyledMeter';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["background", "color", "direction", "size", "thickness", "type", "reverse", "value", "values"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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 { Bar } from './Bar';
6
6
  import { Circle } from './Circle';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["align", "layout", "nameProps", "pairProps", "valueProps"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, useMemo } from 'react';
5
5
  import { Grid } from '../Grid';
6
6
  import { ResponsiveContext } from '../../contexts/ResponsiveContext';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["label"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, Button, Grommet, Nav } from 'grommet';
6
6
  import { Dashboard } from "grommet-icons/es6/icons/Dashboard";
@@ -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, { useState } from 'react';
5
5
  import { Box, Button, Nav, Text } from 'grommet';
6
6
  var SidebarButton = function SidebarButton(_ref) {
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["actions", "message", "onClose", "id", "global", "status", "title", "toast", "icon", "time"];
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, useEffect, useState, useMemo, Fragment } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { Anchor } from '../Anchor';
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["kind"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, useMemo } from 'react';
5
5
  import { Box } from '../Box';
6
6
  import { PageContext } from './PageContext';
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "background"];
2
2
  function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
3
3
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, { useContext } from 'react';
6
6
  import { Box } from '../Box';
7
7
  import { PageContext } from '../Page';
@@ -1,5 +1,5 @@
1
1
  var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.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, { forwardRef, useContext } from 'react';
5
5
  import { Box } from '../Box';