@instructure/ui-table 8.17.1-snapshot.82 → 8.18.1-snapshot.1

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-table
9
+
6
10
  # [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07)
7
11
 
8
12
  ### Bug Fixes
@@ -43,23 +43,27 @@ id: Table.Body
43
43
 
44
44
  let Body = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Body extends Component {
45
45
  componentDidMount() {
46
- this.props.makeStyles?.();
46
+ var _this$props$makeStyle, _this$props;
47
+
48
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
47
49
  }
48
50
 
49
51
  componentDidUpdate() {
50
- this.props.makeStyles?.();
52
+ var _this$props$makeStyle2, _this$props2;
53
+
54
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
51
55
  }
52
56
 
53
57
  render() {
54
- const _this$props = this.props,
55
- children = _this$props.children,
56
- hover = _this$props.hover,
57
- isStacked = _this$props.isStacked,
58
- headers = _this$props.headers,
59
- styles = _this$props.styles;
58
+ const _this$props3 = this.props,
59
+ children = _this$props3.children,
60
+ hover = _this$props3.hover,
61
+ isStacked = _this$props3.isStacked,
62
+ headers = _this$props3.headers,
63
+ styles = _this$props3.styles;
60
64
  return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Body.allowedProps), Body), {
61
65
  as: isStacked ? 'div' : 'tbody',
62
- css: styles?.body,
66
+ css: styles === null || styles === void 0 ? void 0 : styles.body,
63
67
  role: isStacked ? 'rowgroup' : void 0
64
68
  }), Children.map(children, child => matchComponentTypes(child, [Row]) ? safeCloneElement(child, {
65
69
  key: child.props.name,
@@ -31,11 +31,11 @@ const generateComponentTheme = theme => {
31
31
  const colors = theme.colors,
32
32
  typography = theme.typography;
33
33
  const componentVariables = {
34
- fontSize: typography?.fontSizeMedium,
35
- fontFamily: typography?.fontFamily,
36
- fontWeight: typography?.fontWeightNormal,
37
- color: colors?.textDarkest,
38
- background: colors?.backgroundLightest
34
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
35
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
36
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
37
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
38
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
39
39
  };
40
40
  return { ...componentVariables
41
41
  };
@@ -42,22 +42,26 @@ id: Table.Cell
42
42
 
43
43
  let Cell = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Cell extends Component {
44
44
  componentDidMount() {
45
- this.props.makeStyles?.();
45
+ var _this$props$makeStyle, _this$props;
46
+
47
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
46
48
  }
47
49
 
48
50
  componentDidUpdate() {
49
- this.props.makeStyles?.();
51
+ var _this$props$makeStyle2, _this$props2;
52
+
53
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
50
54
  }
51
55
 
52
56
  render() {
53
- const _this$props = this.props,
54
- children = _this$props.children,
55
- styles = _this$props.styles,
56
- isStacked = _this$props.isStacked,
57
- header = _this$props.header;
57
+ const _this$props3 = this.props,
58
+ children = _this$props3.children,
59
+ styles = _this$props3.styles,
60
+ isStacked = _this$props3.isStacked,
61
+ header = _this$props3.header;
58
62
  return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Cell.allowedProps), Cell), {
59
63
  as: isStacked ? 'div' : 'td',
60
- css: styles?.cell,
64
+ css: styles === null || styles === void 0 ? void 0 : styles.cell,
61
65
  role: isStacked ? 'cell' : void 0
62
66
  }), header && callRenderProp(header), header && ': ', callRenderProp(children));
63
67
  }
@@ -32,14 +32,14 @@ const generateComponentTheme = theme => {
32
32
  typography = theme.typography,
33
33
  spacing = theme.spacing;
34
34
  const componentVariables = {
35
- fontSize: typography?.fontSizeMedium,
36
- fontFamily: typography?.fontFamily,
37
- fontWeight: typography?.fontWeightNormal,
38
- color: colors?.textDarkest,
39
- background: colors?.backgroundLightest,
40
- borderColor: colors?.borderMedium,
41
- lineHeight: typography?.lineHeightCondensed,
42
- padding: `${spacing?.xSmall} ${spacing?.small}`
35
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
36
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
37
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
41
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
42
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
43
43
  };
44
44
  return { ...componentVariables
45
45
  };
@@ -55,17 +55,21 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
55
55
  }
56
56
 
57
57
  componentDidMount() {
58
- this.props.makeStyles?.();
58
+ var _this$props$makeStyle, _this$props2;
59
+
60
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
59
61
  }
60
62
 
61
63
  componentDidUpdate() {
62
- this.props.makeStyles?.();
64
+ var _this$props$makeStyle2, _this$props3;
65
+
66
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
63
67
  }
64
68
 
65
69
  renderSortArrow() {
66
- const _this$props2 = this.props,
67
- sortDirection = _this$props2.sortDirection,
68
- onRequestSort = _this$props2.onRequestSort;
70
+ const _this$props4 = this.props,
71
+ sortDirection = _this$props4.sortDirection,
72
+ onRequestSort = _this$props4.onRequestSort;
69
73
 
70
74
  if (sortDirection === 'ascending') {
71
75
  return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = jsx(IconMiniArrowUpLine, null));
@@ -88,15 +92,15 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
88
92
  }
89
93
 
90
94
  render() {
91
- const _this$props3 = this.props,
92
- onRequestSort = _this$props3.onRequestSort,
93
- width = _this$props3.width,
94
- children = _this$props3.children,
95
- sortDirection = _this$props3.sortDirection,
96
- scope = _this$props3.scope,
97
- styles = _this$props3.styles;
95
+ const _this$props5 = this.props,
96
+ onRequestSort = _this$props5.onRequestSort,
97
+ width = _this$props5.width,
98
+ children = _this$props5.children,
99
+ sortDirection = _this$props5.sortDirection,
100
+ scope = _this$props5.scope,
101
+ styles = _this$props5.styles;
98
102
  return jsx("th", Object.assign({}, omitProps(this.props, ColHeader.allowedProps), {
99
- css: styles?.colHeader,
103
+ css: styles === null || styles === void 0 ? void 0 : styles.colHeader,
100
104
  style: {
101
105
  width
102
106
  },
@@ -104,7 +108,7 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
104
108
  "aria-sort": sortDirection
105
109
  }), onRequestSort && jsx("button", {
106
110
  onClick: this.handleClick,
107
- css: styles?.button
111
+ css: styles === null || styles === void 0 ? void 0 : styles.button
108
112
  }, jsx("div", null, callRenderProp(children), this.renderSortArrow())), !onRequestSort && children, !onRequestSort && this.renderSortArrow());
109
113
  }
110
114
 
@@ -33,16 +33,16 @@ const generateComponentTheme = theme => {
33
33
  borders = theme.borders,
34
34
  spacing = theme.spacing;
35
35
  const componentVariables = {
36
- fontSize: typography?.fontSizeMedium,
37
- fontFamily: typography?.fontFamily,
38
- color: colors?.textDarkest,
39
- background: colors?.backgroundLightest,
40
- borderColor: colors?.borderMedium,
41
- lineHeight: typography?.lineHeightCondensed,
42
- padding: `${spacing?.xSmall} ${spacing?.small}`,
43
- focusOutlineColor: colors?.borderBrand,
44
- focusOutlineWidth: borders?.widthMedium,
45
- focusOutlineStyle: borders?.style
36
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
37
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
41
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
42
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
43
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
44
+ focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
45
+ focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
46
46
  };
47
47
  return { ...componentVariables
48
48
  };
@@ -67,21 +67,25 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
67
67
  }
68
68
 
69
69
  componentDidMount() {
70
- this.props.makeStyles?.();
70
+ var _this$props$makeStyle, _this$props;
71
+
72
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
71
73
  }
72
74
 
73
75
  componentDidUpdate() {
76
+ var _this$props$makeStyle2, _this$props2;
77
+
74
78
  if (this.isSortable && typeof this.props.renderSortLabel === 'undefined') {
75
79
  warn(false, '[Table.Head] The `renderSortLabel` prop should be provided when Table is sortable.');
76
80
  }
77
81
 
78
- this.props.makeStyles?.();
82
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
79
83
  }
80
84
 
81
85
  renderSelect() {
82
- const _this$props = this.props,
83
- children = _this$props.children,
84
- renderSortLabel = _this$props.renderSortLabel;
86
+ const _this$props3 = this.props,
87
+ children = _this$props3.children,
88
+ renderSortLabel = _this$props3.renderSortLabel;
85
89
 
86
90
  const _ref3 = Children.toArray(children),
87
91
  _ref4 = _slicedToArray(_ref3, 1),
@@ -163,12 +167,12 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
163
167
  }
164
168
 
165
169
  render() {
166
- const _this$props2 = this.props,
167
- children = _this$props2.children,
168
- isStacked = _this$props2.isStacked,
169
- styles = _this$props2.styles;
170
+ const _this$props4 = this.props,
171
+ children = _this$props4.children,
172
+ isStacked = _this$props4.isStacked,
173
+ styles = _this$props4.styles;
170
174
  return isStacked ? this.renderSelect() : jsx("thead", Object.assign({}, omitProps(this.props, Head.allowedProps), {
171
- css: styles?.head
175
+ css: styles === null || styles === void 0 ? void 0 : styles.head
172
176
  }), Children.map(children, child => matchComponentTypes(child, [Row]) ? child : null));
173
177
  }
174
178
 
@@ -31,11 +31,11 @@ const generateComponentTheme = theme => {
31
31
  const colors = theme.colors,
32
32
  typography = theme.typography;
33
33
  const componentVariables = {
34
- fontSize: typography?.fontSizeMedium,
35
- fontFamily: typography?.fontFamily,
36
- fontWeight: typography?.fontWeightNormal,
37
- color: colors?.textDarkest,
38
- background: colors?.backgroundLightest
34
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
35
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
36
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
37
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
38
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
39
39
  };
40
40
  return { ...componentVariables
41
41
  };
@@ -45,22 +45,26 @@ id: Table.Row
45
45
 
46
46
  let Row = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Row extends Component {
47
47
  componentDidMount() {
48
- this.props.makeStyles?.();
48
+ var _this$props$makeStyle, _this$props;
49
+
50
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
49
51
  }
50
52
 
51
53
  componentDidUpdate() {
52
- this.props.makeStyles?.();
54
+ var _this$props$makeStyle2, _this$props2;
55
+
56
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
53
57
  }
54
58
 
55
59
  render() {
56
- const _this$props = this.props,
57
- children = _this$props.children,
58
- styles = _this$props.styles,
59
- isStacked = _this$props.isStacked,
60
- headers = _this$props.headers;
60
+ const _this$props3 = this.props,
61
+ children = _this$props3.children,
62
+ styles = _this$props3.styles,
63
+ isStacked = _this$props3.isStacked,
64
+ headers = _this$props3.headers;
61
65
  return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Row.allowedProps), Row), {
62
66
  as: isStacked ? 'div' : 'tr',
63
- css: styles?.row,
67
+ css: styles === null || styles === void 0 ? void 0 : styles.row,
64
68
  role: isStacked ? 'row' : void 0
65
69
  }), Children.toArray(children).filter(Boolean).map((child, index) => {
66
70
  if (matchComponentTypes(child, [ColHeader])) {
@@ -38,14 +38,14 @@ const generateComponentTheme = theme => {
38
38
  }
39
39
  };
40
40
  const componentVariables = {
41
- fontSize: typography?.fontSizeMedium,
42
- fontFamily: typography?.fontFamily,
43
- fontWeight: typography?.fontWeightNormal,
44
- color: colors?.textDarkest,
45
- background: colors?.backgroundLightest,
46
- borderColor: colors?.borderMedium,
47
- hoverBorderColor: colors?.borderBrand,
48
- padding: `${spacing?.xSmall} 0`
41
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
46
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
47
+ hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
48
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
49
49
  };
50
50
  return { ...componentVariables,
51
51
  ...themeSpecificStyle[themeName]
@@ -42,21 +42,25 @@ id: Table.RowHeader
42
42
 
43
43
  let RowHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class RowHeader extends Component {
44
44
  componentDidMount() {
45
- this.props.makeStyles?.();
45
+ var _this$props$makeStyle, _this$props;
46
+
47
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
46
48
  }
47
49
 
48
50
  componentDidUpdate() {
49
- this.props.makeStyles?.();
51
+ var _this$props$makeStyle2, _this$props2;
52
+
53
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
50
54
  }
51
55
 
52
56
  render() {
53
- const _this$props = this.props,
54
- children = _this$props.children,
55
- isStacked = _this$props.isStacked,
56
- styles = _this$props.styles;
57
+ const _this$props3 = this.props,
58
+ children = _this$props3.children,
59
+ isStacked = _this$props3.isStacked,
60
+ styles = _this$props3.styles;
57
61
  return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, RowHeader.allowedProps), RowHeader), {
58
62
  as: isStacked ? 'div' : 'th',
59
- css: styles?.rowHeader,
63
+ css: styles === null || styles === void 0 ? void 0 : styles.rowHeader,
60
64
  scope: "row",
61
65
  role: isStacked ? 'rowheader' : void 0
62
66
  }), callRenderProp(children));
@@ -32,14 +32,14 @@ const generateComponentTheme = theme => {
32
32
  typography = theme.typography,
33
33
  spacing = theme.spacing;
34
34
  const componentVariables = {
35
- fontSize: typography?.fontSizeMedium,
36
- fontFamily: typography?.fontFamily,
37
- fontWeight: typography?.fontWeightNormal,
38
- color: colors?.textDarkest,
39
- background: colors?.backgroundLightest,
40
- borderColor: colors?.borderMedium,
41
- lineHeight: typography?.lineHeightCondensed,
42
- padding: `${spacing?.xSmall} ${spacing?.small}`
35
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
36
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
37
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
38
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
39
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
40
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
41
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
42
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
43
43
  };
44
44
  return { ...componentVariables
45
45
  };
package/es/Table/index.js CHANGED
@@ -64,11 +64,15 @@ let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
64
64
  }
65
65
 
66
66
  componentDidMount() {
67
- this.props.makeStyles?.();
67
+ var _this$props$makeStyle, _this$props;
68
+
69
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
68
70
  }
69
71
 
70
72
  componentDidUpdate() {
71
- this.props.makeStyles?.();
73
+ var _this$props$makeStyle2, _this$props2;
74
+
75
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
72
76
  }
73
77
 
74
78
  getHeaders() {
@@ -94,20 +98,20 @@ let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
94
98
  }
95
99
 
96
100
  render() {
97
- const _this$props = this.props,
98
- margin = _this$props.margin,
99
- layout = _this$props.layout,
100
- caption = _this$props.caption,
101
- children = _this$props.children,
102
- hover = _this$props.hover,
103
- styles = _this$props.styles;
101
+ const _this$props3 = this.props,
102
+ margin = _this$props3.margin,
103
+ layout = _this$props3.layout,
104
+ caption = _this$props3.caption,
105
+ children = _this$props3.children,
106
+ hover = _this$props3.hover,
107
+ styles = _this$props3.styles;
104
108
  const isStacked = layout === 'stacked';
105
109
  const headers = isStacked ? this.getHeaders() : void 0;
106
110
  return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Table.allowedProps), Table), {
107
111
  as: isStacked ? 'div' : 'table',
108
112
  margin: margin,
109
113
  elementRef: this.handleRef,
110
- css: styles?.table,
114
+ css: styles === null || styles === void 0 ? void 0 : styles.table,
111
115
  role: isStacked ? 'table' : void 0,
112
116
  "aria-label": isStacked ? caption : void 0
113
117
  }), !isStacked && jsx("caption", null, jsx(ScreenReaderContent, null, caption)), Children.map(children, child => {
package/es/Table/theme.js CHANGED
@@ -37,11 +37,11 @@ const generateComponentTheme = theme => {
37
37
  }
38
38
  };
39
39
  const componentVariables = {
40
- fontSize: typography?.fontSizeMedium,
41
- fontFamily: typography?.fontFamily,
42
- fontWeight: typography?.fontWeightNormal,
43
- color: colors?.textDarkest,
44
- background: colors?.backgroundLightest
40
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
41
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
42
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
43
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
44
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
45
45
  };
46
46
  return { ...componentVariables,
47
47
  ...themeSpecificStyle[themeName]
@@ -38,23 +38,27 @@ id: Table.Body
38
38
  **/
39
39
  let Body = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Body extends _react.Component {
40
40
  componentDidMount() {
41
- this.props.makeStyles?.();
41
+ var _this$props$makeStyle, _this$props;
42
+
43
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
42
44
  }
43
45
 
44
46
  componentDidUpdate() {
45
- this.props.makeStyles?.();
47
+ var _this$props$makeStyle2, _this$props2;
48
+
49
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
46
50
  }
47
51
 
48
52
  render() {
49
- const _this$props = this.props,
50
- children = _this$props.children,
51
- hover = _this$props.hover,
52
- isStacked = _this$props.isStacked,
53
- headers = _this$props.headers,
54
- styles = _this$props.styles;
53
+ const _this$props3 = this.props,
54
+ children = _this$props3.children,
55
+ hover = _this$props3.hover,
56
+ isStacked = _this$props3.isStacked,
57
+ headers = _this$props3.headers,
58
+ styles = _this$props3.styles;
55
59
  return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Body.allowedProps), Body), {
56
60
  as: isStacked ? 'div' : 'tbody',
57
- css: styles?.body,
61
+ css: styles === null || styles === void 0 ? void 0 : styles.body,
58
62
  role: isStacked ? 'rowgroup' : void 0
59
63
  }), _react.Children.map(children, child => (0, _matchComponentTypes.matchComponentTypes)(child, [_Row.Row]) ? (0, _safeCloneElement.safeCloneElement)(child, {
60
64
  key: child.props.name,
@@ -38,11 +38,11 @@ const generateComponentTheme = theme => {
38
38
  const colors = theme.colors,
39
39
  typography = theme.typography;
40
40
  const componentVariables = {
41
- fontSize: typography?.fontSizeMedium,
42
- fontFamily: typography?.fontFamily,
43
- fontWeight: typography?.fontWeightNormal,
44
- color: colors?.textDarkest,
45
- background: colors?.backgroundLightest
41
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
46
46
  };
47
47
  return { ...componentVariables
48
48
  };
@@ -34,22 +34,26 @@ id: Table.Cell
34
34
  **/
35
35
  let Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Cell extends _react.Component {
36
36
  componentDidMount() {
37
- this.props.makeStyles?.();
37
+ var _this$props$makeStyle, _this$props;
38
+
39
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
38
40
  }
39
41
 
40
42
  componentDidUpdate() {
41
- this.props.makeStyles?.();
43
+ var _this$props$makeStyle2, _this$props2;
44
+
45
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
42
46
  }
43
47
 
44
48
  render() {
45
- const _this$props = this.props,
46
- children = _this$props.children,
47
- styles = _this$props.styles,
48
- isStacked = _this$props.isStacked,
49
- header = _this$props.header;
49
+ const _this$props3 = this.props,
50
+ children = _this$props3.children,
51
+ styles = _this$props3.styles,
52
+ isStacked = _this$props3.isStacked,
53
+ header = _this$props3.header;
50
54
  return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Cell.allowedProps), Cell), {
51
55
  as: isStacked ? 'div' : 'td',
52
- css: styles?.cell,
56
+ css: styles === null || styles === void 0 ? void 0 : styles.cell,
53
57
  role: isStacked ? 'cell' : void 0
54
58
  }), header && (0, _callRenderProp.callRenderProp)(header), header && ': ', (0, _callRenderProp.callRenderProp)(children));
55
59
  }
@@ -39,14 +39,14 @@ const generateComponentTheme = theme => {
39
39
  typography = theme.typography,
40
40
  spacing = theme.spacing;
41
41
  const componentVariables = {
42
- fontSize: typography?.fontSizeMedium,
43
- fontFamily: typography?.fontFamily,
44
- fontWeight: typography?.fontWeightNormal,
45
- color: colors?.textDarkest,
46
- background: colors?.backgroundLightest,
47
- borderColor: colors?.borderMedium,
48
- lineHeight: typography?.lineHeightCondensed,
49
- padding: `${spacing?.xSmall} ${spacing?.small}`
42
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
43
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
45
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
46
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
47
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
50
50
  };
51
51
  return { ...componentVariables
52
52
  };
@@ -51,17 +51,21 @@ let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
51
51
  }
52
52
 
53
53
  componentDidMount() {
54
- this.props.makeStyles?.();
54
+ var _this$props$makeStyle, _this$props2;
55
+
56
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
55
57
  }
56
58
 
57
59
  componentDidUpdate() {
58
- this.props.makeStyles?.();
60
+ var _this$props$makeStyle2, _this$props3;
61
+
62
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
59
63
  }
60
64
 
61
65
  renderSortArrow() {
62
- const _this$props2 = this.props,
63
- sortDirection = _this$props2.sortDirection,
64
- onRequestSort = _this$props2.onRequestSort;
66
+ const _this$props4 = this.props,
67
+ sortDirection = _this$props4.sortDirection,
68
+ onRequestSort = _this$props4.onRequestSort;
65
69
 
66
70
  if (sortDirection === 'ascending') {
67
71
  return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = (0, _emotion.jsx)(_IconMiniArrowUpLine2.IconMiniArrowUpLine, null));
@@ -84,15 +88,15 @@ let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
84
88
  }
85
89
 
86
90
  render() {
87
- const _this$props3 = this.props,
88
- onRequestSort = _this$props3.onRequestSort,
89
- width = _this$props3.width,
90
- children = _this$props3.children,
91
- sortDirection = _this$props3.sortDirection,
92
- scope = _this$props3.scope,
93
- styles = _this$props3.styles;
91
+ const _this$props5 = this.props,
92
+ onRequestSort = _this$props5.onRequestSort,
93
+ width = _this$props5.width,
94
+ children = _this$props5.children,
95
+ sortDirection = _this$props5.sortDirection,
96
+ scope = _this$props5.scope,
97
+ styles = _this$props5.styles;
94
98
  return (0, _emotion.jsx)("th", Object.assign({}, (0, _omitProps.omitProps)(this.props, ColHeader.allowedProps), {
95
- css: styles?.colHeader,
99
+ css: styles === null || styles === void 0 ? void 0 : styles.colHeader,
96
100
  style: {
97
101
  width
98
102
  },
@@ -100,7 +104,7 @@ let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
100
104
  "aria-sort": sortDirection
101
105
  }), onRequestSort && (0, _emotion.jsx)("button", {
102
106
  onClick: this.handleClick,
103
- css: styles?.button
107
+ css: styles === null || styles === void 0 ? void 0 : styles.button
104
108
  }, (0, _emotion.jsx)("div", null, (0, _callRenderProp.callRenderProp)(children), this.renderSortArrow())), !onRequestSort && children, !onRequestSort && this.renderSortArrow());
105
109
  }
106
110
 
@@ -40,16 +40,16 @@ const generateComponentTheme = theme => {
40
40
  borders = theme.borders,
41
41
  spacing = theme.spacing;
42
42
  const componentVariables = {
43
- fontSize: typography?.fontSizeMedium,
44
- fontFamily: typography?.fontFamily,
45
- color: colors?.textDarkest,
46
- background: colors?.backgroundLightest,
47
- borderColor: colors?.borderMedium,
48
- lineHeight: typography?.lineHeightCondensed,
49
- padding: `${spacing?.xSmall} ${spacing?.small}`,
50
- focusOutlineColor: colors?.borderBrand,
51
- focusOutlineWidth: borders?.widthMedium,
52
- focusOutlineStyle: borders?.style
43
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
44
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
45
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
46
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
47
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`,
50
+ focusOutlineColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
51
+ focusOutlineWidth: borders === null || borders === void 0 ? void 0 : borders.widthMedium,
52
+ focusOutlineStyle: borders === null || borders === void 0 ? void 0 : borders.style
53
53
  };
54
54
  return { ...componentVariables
55
55
  };
@@ -66,21 +66,25 @@ let Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
66
66
  }
67
67
 
68
68
  componentDidMount() {
69
- this.props.makeStyles?.();
69
+ var _this$props$makeStyle, _this$props;
70
+
71
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
70
72
  }
71
73
 
72
74
  componentDidUpdate() {
75
+ var _this$props$makeStyle2, _this$props2;
76
+
73
77
  if (this.isSortable && typeof this.props.renderSortLabel === 'undefined') {
74
78
  (0, _console.warn)(false, '[Table.Head] The `renderSortLabel` prop should be provided when Table is sortable.');
75
79
  }
76
80
 
77
- this.props.makeStyles?.();
81
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
78
82
  }
79
83
 
80
84
  renderSelect() {
81
- const _this$props = this.props,
82
- children = _this$props.children,
83
- renderSortLabel = _this$props.renderSortLabel;
85
+ const _this$props3 = this.props,
86
+ children = _this$props3.children,
87
+ renderSortLabel = _this$props3.renderSortLabel;
84
88
 
85
89
  const _ref3 = _react.Children.toArray(children),
86
90
  _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
@@ -163,12 +167,12 @@ let Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
163
167
  }
164
168
 
165
169
  render() {
166
- const _this$props2 = this.props,
167
- children = _this$props2.children,
168
- isStacked = _this$props2.isStacked,
169
- styles = _this$props2.styles;
170
+ const _this$props4 = this.props,
171
+ children = _this$props4.children,
172
+ isStacked = _this$props4.isStacked,
173
+ styles = _this$props4.styles;
170
174
  return isStacked ? this.renderSelect() : (0, _emotion.jsx)("thead", Object.assign({}, (0, _omitProps.omitProps)(this.props, Head.allowedProps), {
171
- css: styles?.head
175
+ css: styles === null || styles === void 0 ? void 0 : styles.head
172
176
  }), _react.Children.map(children, child => (0, _matchComponentTypes.matchComponentTypes)(child, [_Row.Row]) ? child : null));
173
177
  }
174
178
 
@@ -38,11 +38,11 @@ const generateComponentTheme = theme => {
38
38
  const colors = theme.colors,
39
39
  typography = theme.typography;
40
40
  const componentVariables = {
41
- fontSize: typography?.fontSizeMedium,
42
- fontFamily: typography?.fontFamily,
43
- fontWeight: typography?.fontWeightNormal,
44
- color: colors?.textDarkest,
45
- background: colors?.backgroundLightest
41
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
42
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
43
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
44
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
45
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
46
46
  };
47
47
  return { ...componentVariables
48
48
  };
@@ -42,22 +42,26 @@ id: Table.Row
42
42
  **/
43
43
  let Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Row extends _react.Component {
44
44
  componentDidMount() {
45
- this.props.makeStyles?.();
45
+ var _this$props$makeStyle, _this$props;
46
+
47
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
46
48
  }
47
49
 
48
50
  componentDidUpdate() {
49
- this.props.makeStyles?.();
51
+ var _this$props$makeStyle2, _this$props2;
52
+
53
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
50
54
  }
51
55
 
52
56
  render() {
53
- const _this$props = this.props,
54
- children = _this$props.children,
55
- styles = _this$props.styles,
56
- isStacked = _this$props.isStacked,
57
- headers = _this$props.headers;
57
+ const _this$props3 = this.props,
58
+ children = _this$props3.children,
59
+ styles = _this$props3.styles,
60
+ isStacked = _this$props3.isStacked,
61
+ headers = _this$props3.headers;
58
62
  return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Row.allowedProps), Row), {
59
63
  as: isStacked ? 'div' : 'tr',
60
- css: styles?.row,
64
+ css: styles === null || styles === void 0 ? void 0 : styles.row,
61
65
  role: isStacked ? 'row' : void 0
62
66
  }), _react.Children.toArray(children).filter(Boolean).map((child, index) => {
63
67
  if ((0, _matchComponentTypes.matchComponentTypes)(child, [_ColHeader.ColHeader])) {
@@ -45,14 +45,14 @@ const generateComponentTheme = theme => {
45
45
  }
46
46
  };
47
47
  const componentVariables = {
48
- fontSize: typography?.fontSizeMedium,
49
- fontFamily: typography?.fontFamily,
50
- fontWeight: typography?.fontWeightNormal,
51
- color: colors?.textDarkest,
52
- background: colors?.backgroundLightest,
53
- borderColor: colors?.borderMedium,
54
- hoverBorderColor: colors?.borderBrand,
55
- padding: `${spacing?.xSmall} 0`
48
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
49
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
50
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
51
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
52
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
53
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
54
+ hoverBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderBrand,
55
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} 0`
56
56
  };
57
57
  return { ...componentVariables,
58
58
  ...themeSpecificStyle[themeName]
@@ -34,21 +34,25 @@ id: Table.RowHeader
34
34
  **/
35
35
  let RowHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class RowHeader extends _react.Component {
36
36
  componentDidMount() {
37
- this.props.makeStyles?.();
37
+ var _this$props$makeStyle, _this$props;
38
+
39
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
38
40
  }
39
41
 
40
42
  componentDidUpdate() {
41
- this.props.makeStyles?.();
43
+ var _this$props$makeStyle2, _this$props2;
44
+
45
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
42
46
  }
43
47
 
44
48
  render() {
45
- const _this$props = this.props,
46
- children = _this$props.children,
47
- isStacked = _this$props.isStacked,
48
- styles = _this$props.styles;
49
+ const _this$props3 = this.props,
50
+ children = _this$props3.children,
51
+ isStacked = _this$props3.isStacked,
52
+ styles = _this$props3.styles;
49
53
  return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, RowHeader.allowedProps), RowHeader), {
50
54
  as: isStacked ? 'div' : 'th',
51
- css: styles?.rowHeader,
55
+ css: styles === null || styles === void 0 ? void 0 : styles.rowHeader,
52
56
  scope: "row",
53
57
  role: isStacked ? 'rowheader' : void 0
54
58
  }), (0, _callRenderProp.callRenderProp)(children));
@@ -39,14 +39,14 @@ const generateComponentTheme = theme => {
39
39
  typography = theme.typography,
40
40
  spacing = theme.spacing;
41
41
  const componentVariables = {
42
- fontSize: typography?.fontSizeMedium,
43
- fontFamily: typography?.fontFamily,
44
- fontWeight: typography?.fontWeightNormal,
45
- color: colors?.textDarkest,
46
- background: colors?.backgroundLightest,
47
- borderColor: colors?.borderMedium,
48
- lineHeight: typography?.lineHeightCondensed,
49
- padding: `${spacing?.xSmall} ${spacing?.small}`
42
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
43
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
44
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
45
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
46
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
47
+ borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
48
+ lineHeight: typography === null || typography === void 0 ? void 0 : typography.lineHeightCondensed,
49
+ padding: `${spacing === null || spacing === void 0 ? void 0 : spacing.xSmall} ${spacing === null || spacing === void 0 ? void 0 : spacing.small}`
50
50
  };
51
51
  return { ...componentVariables
52
52
  };
@@ -65,11 +65,15 @@ let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
65
65
  }
66
66
 
67
67
  componentDidMount() {
68
- this.props.makeStyles?.();
68
+ var _this$props$makeStyle, _this$props;
69
+
70
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
69
71
  }
70
72
 
71
73
  componentDidUpdate() {
72
- this.props.makeStyles?.();
74
+ var _this$props$makeStyle2, _this$props2;
75
+
76
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
73
77
  }
74
78
 
75
79
  getHeaders() {
@@ -95,20 +99,20 @@ let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
95
99
  }
96
100
 
97
101
  render() {
98
- const _this$props = this.props,
99
- margin = _this$props.margin,
100
- layout = _this$props.layout,
101
- caption = _this$props.caption,
102
- children = _this$props.children,
103
- hover = _this$props.hover,
104
- styles = _this$props.styles;
102
+ const _this$props3 = this.props,
103
+ margin = _this$props3.margin,
104
+ layout = _this$props3.layout,
105
+ caption = _this$props3.caption,
106
+ children = _this$props3.children,
107
+ hover = _this$props3.hover,
108
+ styles = _this$props3.styles;
105
109
  const isStacked = layout === 'stacked';
106
110
  const headers = isStacked ? this.getHeaders() : void 0;
107
111
  return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Table.allowedProps), Table), {
108
112
  as: isStacked ? 'div' : 'table',
109
113
  margin: margin,
110
114
  elementRef: this.handleRef,
111
- css: styles?.table,
115
+ css: styles === null || styles === void 0 ? void 0 : styles.table,
112
116
  role: isStacked ? 'table' : void 0,
113
117
  "aria-label": isStacked ? caption : void 0
114
118
  }), !isStacked && (0, _emotion.jsx)("caption", null, (0, _emotion.jsx)(_ScreenReaderContent.ScreenReaderContent, null, caption)), _react.Children.map(children, child => {
@@ -44,11 +44,11 @@ const generateComponentTheme = theme => {
44
44
  }
45
45
  };
46
46
  const componentVariables = {
47
- fontSize: typography?.fontSizeMedium,
48
- fontFamily: typography?.fontFamily,
49
- fontWeight: typography?.fontWeightNormal,
50
- color: colors?.textDarkest,
51
- background: colors?.backgroundLightest
47
+ fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeMedium,
48
+ fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
49
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
50
+ color: colors === null || colors === void 0 ? void 0 : colors.textDarkest,
51
+ background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest
52
52
  };
53
53
  return { ...componentVariables,
54
54
  ...themeSpecificStyle[themeName]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "8.17.1-snapshot.82+96244a097",
3
+ "version": "8.18.1-snapshot.1+669aa5892",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,24 +23,24 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.17.1-snapshot.82+96244a097",
27
- "@instructure/ui-color-utils": "8.17.1-snapshot.82+96244a097",
28
- "@instructure/ui-test-utils": "8.17.1-snapshot.82+96244a097",
29
- "@instructure/ui-themes": "8.17.1-snapshot.82+96244a097"
26
+ "@instructure/ui-babel-preset": "8.18.1-snapshot.1+669aa5892",
27
+ "@instructure/ui-color-utils": "8.18.1-snapshot.1+669aa5892",
28
+ "@instructure/ui-test-utils": "8.18.1-snapshot.1+669aa5892",
29
+ "@instructure/ui-themes": "8.18.1-snapshot.1+669aa5892"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.13.10",
33
- "@instructure/console": "8.17.1-snapshot.82+96244a097",
34
- "@instructure/emotion": "8.17.1-snapshot.82+96244a097",
35
- "@instructure/shared-types": "8.17.1-snapshot.82+96244a097",
36
- "@instructure/ui-a11y-content": "8.17.1-snapshot.82+96244a097",
37
- "@instructure/ui-icons": "8.17.1-snapshot.82+96244a097",
38
- "@instructure/ui-prop-types": "8.17.1-snapshot.82+96244a097",
39
- "@instructure/ui-react-utils": "8.17.1-snapshot.82+96244a097",
40
- "@instructure/ui-simple-select": "8.17.1-snapshot.82+96244a097",
41
- "@instructure/ui-testable": "8.17.1-snapshot.82+96244a097",
42
- "@instructure/ui-utils": "8.17.1-snapshot.82+96244a097",
43
- "@instructure/ui-view": "8.17.1-snapshot.82+96244a097",
33
+ "@instructure/console": "8.18.1-snapshot.1+669aa5892",
34
+ "@instructure/emotion": "8.18.1-snapshot.1+669aa5892",
35
+ "@instructure/shared-types": "8.18.1-snapshot.1+669aa5892",
36
+ "@instructure/ui-a11y-content": "8.18.1-snapshot.1+669aa5892",
37
+ "@instructure/ui-icons": "8.18.1-snapshot.1+669aa5892",
38
+ "@instructure/ui-prop-types": "8.18.1-snapshot.1+669aa5892",
39
+ "@instructure/ui-react-utils": "8.18.1-snapshot.1+669aa5892",
40
+ "@instructure/ui-simple-select": "8.18.1-snapshot.1+669aa5892",
41
+ "@instructure/ui-testable": "8.18.1-snapshot.1+669aa5892",
42
+ "@instructure/ui-utils": "8.18.1-snapshot.1+669aa5892",
43
+ "@instructure/ui-view": "8.18.1-snapshot.1+669aa5892",
44
44
  "prop-types": "^15"
45
45
  },
46
46
  "peerDependencies": {
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "sideEffects": false,
53
- "gitHead": "96244a097dffef5f10bbe7979c580581c787083e"
53
+ "gitHead": "669aa58926b123028bcb9e39427d36910b78b0d1"
54
54
  }