@instructure/ui-table 8.46.2-snapshot-5 → 8.46.2-snapshot-6

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,7 +3,7 @@
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.46.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-5) (2023-10-19)
6
+ ## [8.46.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-6) (2023-10-19)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-table
9
9
 
@@ -47,7 +47,7 @@ id: Table.Body
47
47
  ---
48
48
  @tsProps
49
49
  **/
50
- let Body = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Body extends _react.Component {
50
+ let Body = exports.Body = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Body extends _react.Component {
51
51
  componentDidMount() {
52
52
  var _this$props$makeStyle, _this$props;
53
53
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -77,6 +77,4 @@ let Body = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
77
77
  }, _class2.displayName = "Body", _class2.componentId = 'Table.Body', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
78
78
  children: null
79
79
  }, _class2)) || _class);
80
- exports.Body = Body;
81
- var _default = Body;
82
- exports.default = _default;
80
+ var _default = exports.default = Body;
@@ -32,12 +32,10 @@ var _Row = require("../Row");
32
32
  * SOFTWARE.
33
33
  */
34
34
 
35
- const propTypes = {
35
+ const propTypes = exports.propTypes = {
36
36
  children: _Children.Children.oneOf([_Row.Row]),
37
37
  hover: _propTypes.default.bool,
38
38
  isStacked: _propTypes.default.bool,
39
39
  headers: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]))
40
40
  };
41
- exports.propTypes = propTypes;
42
- const allowedProps = ['children', 'hover', 'isStacked', 'headers'];
43
- exports.allowedProps = allowedProps;
41
+ const allowedProps = exports.allowedProps = ['children', 'hover', 'isStacked', 'headers'];
@@ -50,5 +50,4 @@ const generateStyle = componentTheme => {
50
50
  }
51
51
  };
52
52
  };
53
- var _default = generateStyle;
54
- exports.default = _default;
53
+ var _default = exports.default = generateStyle;
@@ -47,5 +47,4 @@ const generateComponentTheme = theme => {
47
47
  ...componentVariables
48
48
  };
49
49
  };
50
- var _default = generateComponentTheme;
51
- exports.default = _default;
50
+ var _default = exports.default = generateComponentTheme;
@@ -45,7 +45,7 @@ id: Table.Cell
45
45
  ---
46
46
  @tsProps
47
47
  **/
48
- let Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Cell extends _react.Component {
48
+ let Cell = exports.Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Cell extends _react.Component {
49
49
  componentDidMount() {
50
50
  var _this$props$makeStyle, _this$props;
51
51
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -70,6 +70,4 @@ let Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
70
70
  textAlign: 'start',
71
71
  children: null
72
72
  }, _class2)) || _class);
73
- exports.Cell = Cell;
74
- var _default = Cell;
75
- exports.default = _default;
73
+ var _default = exports.default = Cell;
@@ -30,12 +30,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
35
35
  isStacked: _propTypes.default.bool,
36
36
  header: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
37
37
  textAlign: _propTypes.default.oneOf(['start', 'center', 'end'])
38
38
  };
39
- exports.propTypes = propTypes;
40
- const allowedProps = ['children', 'isStacked', 'header', 'textAlign'];
41
- exports.allowedProps = allowedProps;
39
+ const allowedProps = exports.allowedProps = ['children', 'isStacked', 'header', 'textAlign'];
@@ -58,5 +58,4 @@ const generateStyle = (componentTheme, props) => {
58
58
  }
59
59
  };
60
60
  };
61
- var _default = generateStyle;
62
- exports.default = _default;
61
+ var _default = exports.default = generateStyle;
@@ -51,5 +51,4 @@ const generateComponentTheme = theme => {
51
51
  ...componentVariables
52
52
  };
53
53
  };
54
- var _default = generateComponentTheme;
55
- exports.default = _default;
54
+ var _default = exports.default = generateComponentTheme;
@@ -48,7 +48,7 @@ id: Table.ColHeader
48
48
  ---
49
49
  @tsProps
50
50
  **/
51
- let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class ColHeader extends _react.Component {
51
+ let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class ColHeader extends _react.Component {
52
52
  constructor(...args) {
53
53
  super(...args);
54
54
  this.handleClick = event => {
@@ -115,6 +115,4 @@ let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
115
115
  children: null,
116
116
  scope: 'col'
117
117
  }, _class2)) || _class);
118
- exports.ColHeader = ColHeader;
119
- var _default = ColHeader;
120
- exports.default = _default;
118
+ var _default = exports.default = ColHeader;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  id: _propTypes.default.string.isRequired,
35
35
  stackedSortByLabel: _propTypes.default.string,
36
36
  children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
@@ -40,6 +40,4 @@ const propTypes = {
40
40
  onRequestSort: _propTypes.default.func,
41
41
  scope: _propTypes.default.oneOf(['row', 'col', 'rowgroup', 'colgroup', 'auto'])
42
42
  };
43
- exports.propTypes = propTypes;
44
- const allowedProps = ['id', 'stackedSortByLabel', 'children', 'width', 'textAlign', 'sortDirection', 'onRequestSort', 'scope'];
45
- exports.allowedProps = allowedProps;
43
+ const allowedProps = exports.allowedProps = ['id', 'stackedSortByLabel', 'children', 'width', 'textAlign', 'sortDirection', 'onRequestSort', 'scope'];
@@ -96,5 +96,4 @@ const generateStyle = (componentTheme, props) => {
96
96
  }
97
97
  };
98
98
  };
99
- var _default = generateStyle;
100
- exports.default = _default;
99
+ var _default = exports.default = generateStyle;
@@ -54,5 +54,4 @@ const generateComponentTheme = theme => {
54
54
  ...componentVariables
55
55
  };
56
56
  };
57
- var _default = generateComponentTheme;
58
- exports.default = _default;
57
+ var _default = exports.default = generateComponentTheme;
@@ -52,7 +52,7 @@ id: Table.Head
52
52
  ---
53
53
  @tsProps
54
54
  **/
55
- let Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Head extends _react.Component {
55
+ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Head extends _react.Component {
56
56
  get isSortable() {
57
57
  const _ref = _react.Children.toArray(this.props.children),
58
58
  _ref2 = (0, _slicedToArray2.default)(_ref, 1),
@@ -163,6 +163,4 @@ let Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
163
163
  }, _class2.displayName = "Head", _class2.componentId = 'Table.Head', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
164
164
  children: null
165
165
  }, _class2)) || _class);
166
- exports.Head = Head;
167
- var _default = Head;
168
- exports.default = _default;
166
+ var _default = exports.default = Head;
@@ -32,11 +32,9 @@ var _Row = require("../Row");
32
32
  * SOFTWARE.
33
33
  */
34
34
 
35
- const propTypes = {
35
+ const propTypes = exports.propTypes = {
36
36
  children: _Children.Children.oneOf([_Row.Row]),
37
37
  isStacked: _propTypes.default.bool,
38
38
  renderSortLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func])
39
39
  };
40
- exports.propTypes = propTypes;
41
- const allowedProps = ['children', 'isStacked', 'renderSortLabel'];
42
- exports.allowedProps = allowedProps;
40
+ const allowedProps = exports.allowedProps = ['children', 'isStacked', 'renderSortLabel'];
@@ -50,5 +50,4 @@ const generateStyle = componentTheme => {
50
50
  }
51
51
  };
52
52
  };
53
- var _default = generateStyle;
54
- exports.default = _default;
53
+ var _default = exports.default = generateStyle;
@@ -47,5 +47,4 @@ const generateComponentTheme = theme => {
47
47
  ...componentVariables
48
48
  };
49
49
  };
50
- var _default = generateComponentTheme;
51
- exports.default = _default;
50
+ var _default = exports.default = generateComponentTheme;
@@ -49,7 +49,7 @@ id: Table.Row
49
49
  ---
50
50
  @tsProps
51
51
  **/
52
- let Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Row extends _react.Component {
52
+ let Row = exports.Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Row extends _react.Component {
53
53
  componentDidMount() {
54
54
  var _this$props$makeStyle, _this$props;
55
55
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -91,6 +91,4 @@ let Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
91
91
  }, _class2.displayName = "Row", _class2.componentId = 'Table.Row', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
92
92
  children: null
93
93
  }, _class2)) || _class);
94
- exports.Row = Row;
95
- var _default = Row;
96
- exports.default = _default;
94
+ var _default = exports.default = Row;
@@ -34,12 +34,10 @@ var _Cell = require("../Cell");
34
34
  * SOFTWARE.
35
35
  */
36
36
 
37
- const propTypes = {
37
+ const propTypes = exports.propTypes = {
38
38
  children: _Children.Children.oneOf([_ColHeader.ColHeader, _RowHeader.RowHeader, _Cell.Cell]),
39
39
  hover: _propTypes.default.bool,
40
40
  isStacked: _propTypes.default.bool,
41
41
  headers: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]))
42
42
  };
43
- exports.propTypes = propTypes;
44
- const allowedProps = ['children', 'hover', 'isStacked', 'headers'];
45
- exports.allowedProps = allowedProps;
43
+ const allowedProps = exports.allowedProps = ['children', 'hover', 'isStacked', 'headers'];
@@ -67,5 +67,4 @@ const generateStyle = (componentTheme, props) => {
67
67
  }
68
68
  };
69
69
  };
70
- var _default = generateStyle;
71
- exports.default = _default;
70
+ var _default = exports.default = generateStyle;
@@ -58,5 +58,4 @@ const generateComponentTheme = theme => {
58
58
  ...themeSpecificStyle[themeName]
59
59
  };
60
60
  };
61
- var _default = generateComponentTheme;
62
- exports.default = _default;
61
+ var _default = exports.default = generateComponentTheme;
@@ -45,7 +45,7 @@ id: Table.RowHeader
45
45
  ---
46
46
  @tsProps
47
47
  **/
48
- let RowHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class RowHeader extends _react.Component {
48
+ let RowHeader = exports.RowHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class RowHeader extends _react.Component {
49
49
  componentDidMount() {
50
50
  var _this$props$makeStyle, _this$props;
51
51
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -70,6 +70,4 @@ let RowHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
70
70
  textAlign: 'start',
71
71
  children: null
72
72
  }, _class2)) || _class);
73
- exports.RowHeader = RowHeader;
74
- var _default = RowHeader;
75
- exports.default = _default;
73
+ var _default = exports.default = RowHeader;
@@ -30,11 +30,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
35
35
  isStacked: _propTypes.default.bool,
36
36
  textAlign: _propTypes.default.oneOf(['start', 'center', 'end'])
37
37
  };
38
- exports.propTypes = propTypes;
39
- const allowedProps = ['children', 'isStacked', 'textAlign'];
40
- exports.allowedProps = allowedProps;
38
+ const allowedProps = exports.allowedProps = ['children', 'isStacked', 'textAlign'];
@@ -58,5 +58,4 @@ const generateStyle = (componentTheme, props) => {
58
58
  }
59
59
  };
60
60
  };
61
- var _default = generateStyle;
62
- exports.default = _default;
61
+ var _default = exports.default = generateStyle;
@@ -51,5 +51,4 @@ const generateComponentTheme = theme => {
51
51
  ...componentVariables
52
52
  };
53
53
  };
54
- var _default = generateComponentTheme;
55
- exports.default = _default;
54
+ var _default = exports.default = generateComponentTheme;
@@ -53,7 +53,7 @@ category: components
53
53
  ---
54
54
  @tsProps
55
55
  **/
56
- let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Table extends _react.Component {
56
+ let Table = exports.Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Table extends _react.Component {
57
57
  constructor(...args) {
58
58
  super(...args);
59
59
  this.ref = null;
@@ -130,6 +130,4 @@ let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
130
130
  hover: false,
131
131
  layout: 'auto'
132
132
  }, _class2.Head = _Head.Head, _class2.Body = _Body.Body, _class2.Row = _Row.Row, _class2.ColHeader = _ColHeader.ColHeader, _class2.RowHeader = _RowHeader.RowHeader, _class2.Cell = _Cell.Cell, _class2)) || _class);
133
- exports.Table = Table;
134
- var _default = Table;
135
- exports.default = _default;
133
+ var _default = exports.default = Table;
@@ -34,7 +34,7 @@ var _Body = require("./Body");
34
34
  * SOFTWARE.
35
35
  */
36
36
 
37
- const propTypes = {
37
+ const propTypes = exports.propTypes = {
38
38
  caption: _propTypes.default.node.isRequired,
39
39
  children: _Children.Children.oneOf([_Head.Head, _Body.Body]),
40
40
  margin: _emotion.ThemeablePropTypes.spacing,
@@ -42,6 +42,4 @@ const propTypes = {
42
42
  hover: _propTypes.default.bool,
43
43
  layout: _propTypes.default.oneOf(['auto', 'fixed', 'stacked'])
44
44
  };
45
- exports.propTypes = propTypes;
46
- const allowedProps = ['caption', 'children', 'margin', 'elementRef', 'hover', 'layout'];
47
- exports.allowedProps = allowedProps;
45
+ const allowedProps = exports.allowedProps = ['caption', 'children', 'margin', 'elementRef', 'hover', 'layout'];
@@ -61,5 +61,4 @@ const generateStyle = (componentTheme, props) => {
61
61
  }
62
62
  };
63
63
  };
64
- var _default = generateStyle;
65
- exports.default = _default;
64
+ var _default = exports.default = generateStyle;
@@ -54,5 +54,4 @@ const generateComponentTheme = theme => {
54
54
  ...themeSpecificStyle[themeName]
55
55
  };
56
56
  };
57
- var _default = generateComponentTheme;
58
- exports.default = _default;
57
+ var _default = exports.default = generateComponentTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "8.46.2-snapshot-5",
3
+ "version": "8.46.2-snapshot-6",
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.46.2-snapshot-5",
27
- "@instructure/ui-color-utils": "8.46.2-snapshot-5",
28
- "@instructure/ui-test-utils": "8.46.2-snapshot-5",
29
- "@instructure/ui-themes": "8.46.2-snapshot-5"
26
+ "@instructure/ui-babel-preset": "8.46.2-snapshot-6",
27
+ "@instructure/ui-color-utils": "8.46.2-snapshot-6",
28
+ "@instructure/ui-test-utils": "8.46.2-snapshot-6",
29
+ "@instructure/ui-themes": "8.46.2-snapshot-6"
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime": "^7.22.15",
33
- "@instructure/console": "8.46.2-snapshot-5",
34
- "@instructure/emotion": "8.46.2-snapshot-5",
35
- "@instructure/shared-types": "8.46.2-snapshot-5",
36
- "@instructure/ui-a11y-content": "8.46.2-snapshot-5",
37
- "@instructure/ui-icons": "8.46.2-snapshot-5",
38
- "@instructure/ui-prop-types": "8.46.2-snapshot-5",
39
- "@instructure/ui-react-utils": "8.46.2-snapshot-5",
40
- "@instructure/ui-simple-select": "8.46.2-snapshot-5",
41
- "@instructure/ui-testable": "8.46.2-snapshot-5",
42
- "@instructure/ui-utils": "8.46.2-snapshot-5",
43
- "@instructure/ui-view": "8.46.2-snapshot-5",
32
+ "@babel/runtime": "^7.23.2",
33
+ "@instructure/console": "8.46.2-snapshot-6",
34
+ "@instructure/emotion": "8.46.2-snapshot-6",
35
+ "@instructure/shared-types": "8.46.2-snapshot-6",
36
+ "@instructure/ui-a11y-content": "8.46.2-snapshot-6",
37
+ "@instructure/ui-icons": "8.46.2-snapshot-6",
38
+ "@instructure/ui-prop-types": "8.46.2-snapshot-6",
39
+ "@instructure/ui-react-utils": "8.46.2-snapshot-6",
40
+ "@instructure/ui-simple-select": "8.46.2-snapshot-6",
41
+ "@instructure/ui-testable": "8.46.2-snapshot-6",
42
+ "@instructure/ui-utils": "8.46.2-snapshot-6",
43
+ "@instructure/ui-view": "8.46.2-snapshot-6",
44
44
  "prop-types": "^15.8.1"
45
45
  },
46
46
  "peerDependencies": {