@instructure/ui-grid 8.12.1-snapshot.7 → 8.13.1-snapshot.9

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.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-grid
9
+
6
10
  # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-grid
package/es/Grid/index.js CHANGED
@@ -42,10 +42,11 @@ import { propTypes, allowedProps } from './props';
42
42
  ---
43
43
  category: components
44
44
  ---
45
+ @tsProps
45
46
  **/
46
47
  let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Grid extends Component {
47
- constructor(...args) {
48
- super(...args);
48
+ constructor() {
49
+ super(...arguments);
49
50
  this.ref = null;
50
51
 
51
52
  this.handleRef = el => {
@@ -54,18 +55,22 @@ let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
54
55
  }
55
56
 
56
57
  componentDidMount() {
57
- this.props.makeStyles();
58
+ var _this$props$makeStyle, _this$props;
59
+
60
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
58
61
  }
59
62
 
60
- componentDidUpdate(prevProps, prevState, snapshot) {
61
- this.props.makeStyles();
63
+ componentDidUpdate() {
64
+ var _this$props$makeStyle2, _this$props2;
65
+
66
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
62
67
  }
63
68
 
64
69
  renderChildren() {
65
- const _this$props = this.props,
66
- styles = _this$props.styles,
67
- makeStyles = _this$props.makeStyles,
68
- props = _objectWithoutProperties(_this$props, _excluded);
70
+ const _this$props3 = this.props,
71
+ styles = _this$props3.styles,
72
+ makeStyles = _this$props3.makeStyles,
73
+ props = _objectWithoutProperties(_this$props3, _excluded);
69
74
 
70
75
  const children = Children.toArray(this.props.children);
71
76
  return children.map((child, index) => {
@@ -83,9 +88,9 @@ let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
83
88
  }
84
89
 
85
90
  render() {
86
- const _this$props2 = this.props,
87
- styles = _this$props2.styles,
88
- restProps = _objectWithoutProperties(_this$props2, _excluded2);
91
+ const _this$props4 = this.props,
92
+ styles = _this$props4.styles,
93
+ restProps = _objectWithoutProperties(_this$props4, _excluded2);
89
94
 
90
95
  const props = omitProps(restProps, Grid.allowedProps);
91
96
  return jsx("span", Object.assign({}, props, {
@@ -37,10 +37,11 @@ import { propTypes, allowedProps } from './props';
37
37
  parent: Grid
38
38
  id: Grid.Col
39
39
  ---
40
+ @tsProps
40
41
  **/
41
42
  let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class GridCol extends Component {
42
- constructor(...args) {
43
- super(...args);
43
+ constructor() {
44
+ super(...arguments);
44
45
  this.ref = null;
45
46
 
46
47
  this.handleRef = el => {
@@ -54,17 +55,21 @@ let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
54
55
  }
55
56
 
56
57
  componentDidMount() {
57
- this.props.makeStyles();
58
+ var _this$props$makeStyle, _this$props;
59
+
60
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
58
61
  }
59
62
 
60
- componentDidUpdate(prevProps, prevState, snapshot) {
61
- this.props.makeStyles();
63
+ componentDidUpdate() {
64
+ var _this$props$makeStyle2, _this$props2;
65
+
66
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
62
67
  }
63
68
 
64
69
  render() {
65
- const _this$props = this.props,
66
- children = _this$props.children,
67
- styles = _this$props.styles;
70
+ const _this$props3 = this.props,
71
+ children = _this$props3.children,
72
+ styles = _this$props3.styles;
68
73
  const props = omitProps(this.props, GridCol.allowedProps);
69
74
  return jsx("span", Object.assign({}, props, {
70
75
  ref: this.handleRef,
@@ -47,10 +47,6 @@ const propTypes = {
47
47
  })]),
48
48
  isLastRow: PropTypes.bool,
49
49
  isLastCol: PropTypes.bool,
50
-
51
- /**
52
- * provides a reference to the underlying html root element
53
- */
54
50
  elementRef: PropTypes.func
55
51
  };
56
52
  const allowedProps = ['children', 'colSpacing', 'rowSpacing', 'textAlign', 'hAlign', 'vAlign', 'startAt', 'visualDebug', 'width', 'offset', 'isLastRow', 'isLastCol', 'elementRef'];
@@ -123,7 +123,7 @@ const generateStyle = (componentTheme, props) => {
123
123
  if (!width) return;
124
124
 
125
125
  if (width && typeof width === 'object') {
126
- width = width[breakpoint];
126
+ width = width[breakpoint === 'x-large' ? 'xLarge' : breakpoint];
127
127
  }
128
128
 
129
129
  return width;
@@ -134,13 +134,15 @@ const generateStyle = (componentTheme, props) => {
134
134
  if (!offset) return;
135
135
 
136
136
  if (offset && typeof offset === 'object') {
137
- offset = offset[breakpoint];
137
+ offset = offset[breakpoint === 'x-large' ? 'xLarge' : breakpoint];
138
138
  }
139
139
 
140
140
  return offset;
141
141
  };
142
142
 
143
- const getFlexColumnBySize = (size = '1') => {
143
+ const getFlexColumnBySize = function () {
144
+ let size = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '1';
145
+
144
146
  switch (size) {
145
147
  case 'auto':
146
148
  return {
@@ -164,7 +166,9 @@ const generateStyle = (componentTheme, props) => {
164
166
  }
165
167
  };
166
168
 
167
- const getColumnOffsetBySize = (size = '1') => {
169
+ const getColumnOffsetBySize = function () {
170
+ let size = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '1';
171
+
168
172
  switch (size) {
169
173
  case 'auto':
170
174
  case 12:
@@ -42,10 +42,11 @@ import { propTypes, allowedProps } from './props';
42
42
  parent: Grid
43
43
  id: Grid.Row
44
44
  ---
45
+ @tsProps
45
46
  **/
46
47
  let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class GridRow extends Component {
47
- constructor(...args) {
48
- super(...args);
48
+ constructor() {
49
+ super(...arguments);
49
50
  this.ref = null;
50
51
 
51
52
  this.handleRef = el => {
@@ -54,18 +55,22 @@ let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
54
55
  }
55
56
 
56
57
  componentDidMount() {
57
- this.props.makeStyles();
58
+ var _this$props$makeStyle, _this$props;
59
+
60
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
58
61
  }
59
62
 
60
- componentDidUpdate(prevProps, prevState, snapshot) {
61
- this.props.makeStyles();
63
+ componentDidUpdate() {
64
+ var _this$props$makeStyle2, _this$props2;
65
+
66
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
62
67
  }
63
68
 
64
69
  renderChildren() {
65
- const _this$props = this.props,
66
- styles = _this$props.styles,
67
- makeStyles = _this$props.makeStyles,
68
- props = _objectWithoutProperties(_this$props, _excluded);
70
+ const _this$props3 = this.props,
71
+ styles = _this$props3.styles,
72
+ makeStyles = _this$props3.makeStyles,
73
+ props = _objectWithoutProperties(_this$props3, _excluded);
69
74
 
70
75
  return Children.map(this.props.children, (child, index) => {
71
76
  if (matchComponentTypes(child, [GridCol])) {
@@ -83,9 +88,9 @@ let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
83
88
  }
84
89
 
85
90
  render() {
86
- const _this$props2 = this.props,
87
- styles = _this$props2.styles,
88
- restProps = _objectWithoutProperties(_this$props2, _excluded2);
91
+ const _this$props4 = this.props,
92
+ styles = _this$props4.styles,
93
+ restProps = _objectWithoutProperties(_this$props4, _excluded2);
89
94
 
90
95
  const props = omitProps(restProps, GridRow.allowedProps);
91
96
  return jsx("span", Object.assign({}, props, {
package/lib/Grid/index.js CHANGED
@@ -5,19 +5,20 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "GridRow", {
8
+ exports.Grid = void 0;
9
+ Object.defineProperty(exports, "GridCol", {
9
10
  enumerable: true,
10
11
  get: function () {
11
- return _GridRow.GridRow;
12
+ return _GridCol.GridCol;
12
13
  }
13
14
  });
14
- Object.defineProperty(exports, "GridCol", {
15
+ Object.defineProperty(exports, "GridRow", {
15
16
  enumerable: true,
16
17
  get: function () {
17
- return _GridCol.GridCol;
18
+ return _GridRow.GridRow;
18
19
  }
19
20
  });
20
- exports.Grid = exports.default = void 0;
21
+ exports.default = void 0;
21
22
 
22
23
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
23
24
 
@@ -52,10 +53,11 @@ var _dec, _class, _class2, _temp;
52
53
  ---
53
54
  category: components
54
55
  ---
56
+ @tsProps
55
57
  **/
56
58
  let Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Grid extends _react.Component {
57
- constructor(...args) {
58
- super(...args);
59
+ constructor() {
60
+ super(...arguments);
59
61
  this.ref = null;
60
62
 
61
63
  this.handleRef = el => {
@@ -64,18 +66,22 @@ let Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
64
66
  }
65
67
 
66
68
  componentDidMount() {
67
- 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);
68
72
  }
69
73
 
70
- componentDidUpdate(prevProps, prevState, snapshot) {
71
- this.props.makeStyles();
74
+ componentDidUpdate() {
75
+ var _this$props$makeStyle2, _this$props2;
76
+
77
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
72
78
  }
73
79
 
74
80
  renderChildren() {
75
- const _this$props = this.props,
76
- styles = _this$props.styles,
77
- makeStyles = _this$props.makeStyles,
78
- props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
81
+ const _this$props3 = this.props,
82
+ styles = _this$props3.styles,
83
+ makeStyles = _this$props3.makeStyles,
84
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
79
85
 
80
86
  const children = _react.Children.toArray(this.props.children);
81
87
 
@@ -94,9 +100,9 @@ let Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
94
100
  }
95
101
 
96
102
  render() {
97
- const _this$props2 = this.props,
98
- styles = _this$props2.styles,
99
- restProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2);
103
+ const _this$props4 = this.props,
104
+ styles = _this$props4.styles,
105
+ restProps = (0, _objectWithoutProperties2.default)(_this$props4, _excluded2);
100
106
  const props = (0, _omitProps.omitProps)(restProps, Grid.allowedProps);
101
107
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
102
108
  css: styles === null || styles === void 0 ? void 0 : styles.grid,
package/lib/Grid/props.js CHANGED
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.GridCol = exports.default = void 0;
8
+ exports.default = exports.GridCol = void 0;
9
9
 
10
10
  var _react = require("react");
11
11
 
@@ -26,10 +26,11 @@ var _dec, _class, _class2, _temp;
26
26
  parent: Grid
27
27
  id: Grid.Col
28
28
  ---
29
+ @tsProps
29
30
  **/
30
31
  let GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class GridCol extends _react.Component {
31
- constructor(...args) {
32
- super(...args);
32
+ constructor() {
33
+ super(...arguments);
33
34
  this.ref = null;
34
35
 
35
36
  this.handleRef = el => {
@@ -43,17 +44,21 @@ let GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
43
44
  }
44
45
 
45
46
  componentDidMount() {
46
- this.props.makeStyles();
47
+ var _this$props$makeStyle, _this$props;
48
+
49
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
47
50
  }
48
51
 
49
- componentDidUpdate(prevProps, prevState, snapshot) {
50
- this.props.makeStyles();
52
+ componentDidUpdate() {
53
+ var _this$props$makeStyle2, _this$props2;
54
+
55
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
51
56
  }
52
57
 
53
58
  render() {
54
- const _this$props = this.props,
55
- children = _this$props.children,
56
- styles = _this$props.styles;
59
+ const _this$props3 = this.props,
60
+ children = _this$props3.children,
61
+ styles = _this$props3.styles;
57
62
  const props = (0, _omitProps.omitProps)(this.props, GridCol.allowedProps);
58
63
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
59
64
  ref: this.handleRef,
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -57,10 +57,6 @@ const propTypes = {
57
57
  })]),
58
58
  isLastRow: _propTypes.default.bool,
59
59
  isLastCol: _propTypes.default.bool,
60
-
61
- /**
62
- * provides a reference to the underlying html root element
63
- */
64
60
  elementRef: _propTypes.default.func
65
61
  };
66
62
  exports.propTypes = propTypes;
@@ -130,7 +130,7 @@ const generateStyle = (componentTheme, props) => {
130
130
  if (!width) return;
131
131
 
132
132
  if (width && typeof width === 'object') {
133
- width = width[breakpoint];
133
+ width = width[breakpoint === 'x-large' ? 'xLarge' : breakpoint];
134
134
  }
135
135
 
136
136
  return width;
@@ -141,13 +141,15 @@ const generateStyle = (componentTheme, props) => {
141
141
  if (!offset) return;
142
142
 
143
143
  if (offset && typeof offset === 'object') {
144
- offset = offset[breakpoint];
144
+ offset = offset[breakpoint === 'x-large' ? 'xLarge' : breakpoint];
145
145
  }
146
146
 
147
147
  return offset;
148
148
  };
149
149
 
150
- const getFlexColumnBySize = (size = '1') => {
150
+ const getFlexColumnBySize = function () {
151
+ let size = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '1';
152
+
151
153
  switch (size) {
152
154
  case 'auto':
153
155
  return {
@@ -171,7 +173,9 @@ const generateStyle = (componentTheme, props) => {
171
173
  }
172
174
  };
173
175
 
174
- const getColumnOffsetBySize = (size = '1') => {
176
+ const getColumnOffsetBySize = function () {
177
+ let size = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '1';
178
+
175
179
  switch (size) {
176
180
  case 'auto':
177
181
  case 12:
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.GridRow = exports.default = void 0;
8
+ exports.default = exports.GridRow = void 0;
9
9
 
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
 
@@ -39,10 +39,11 @@ var _dec, _class, _class2, _temp;
39
39
  parent: Grid
40
40
  id: Grid.Row
41
41
  ---
42
+ @tsProps
42
43
  **/
43
44
  let GridRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class GridRow extends _react.Component {
44
- constructor(...args) {
45
- super(...args);
45
+ constructor() {
46
+ super(...arguments);
46
47
  this.ref = null;
47
48
 
48
49
  this.handleRef = el => {
@@ -51,18 +52,22 @@ let GridRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
51
52
  }
52
53
 
53
54
  componentDidMount() {
54
- this.props.makeStyles();
55
+ var _this$props$makeStyle, _this$props;
56
+
57
+ (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
55
58
  }
56
59
 
57
- componentDidUpdate(prevProps, prevState, snapshot) {
58
- this.props.makeStyles();
60
+ componentDidUpdate() {
61
+ var _this$props$makeStyle2, _this$props2;
62
+
63
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
59
64
  }
60
65
 
61
66
  renderChildren() {
62
- const _this$props = this.props,
63
- styles = _this$props.styles,
64
- makeStyles = _this$props.makeStyles,
65
- props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
67
+ const _this$props3 = this.props,
68
+ styles = _this$props3.styles,
69
+ makeStyles = _this$props3.makeStyles,
70
+ props = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
66
71
  return _react.Children.map(this.props.children, (child, index) => {
67
72
  if ((0, _matchComponentTypes.matchComponentTypes)(child, [_GridCol.GridCol])) {
68
73
  return (0, _safeCloneElement.safeCloneElement)(child, { ...(0, _pickProps.pickProps)(props, GridRow.allowedProps),
@@ -79,9 +84,9 @@ let GridRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
79
84
  }
80
85
 
81
86
  render() {
82
- const _this$props2 = this.props,
83
- styles = _this$props2.styles,
84
- restProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2);
87
+ const _this$props4 = this.props,
88
+ styles = _this$props4.styles,
89
+ restProps = (0, _objectWithoutProperties2.default)(_this$props4, _excluded2);
85
90
  const props = (0, _omitProps.omitProps)(restProps, GridRow.allowedProps);
86
91
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
87
92
  css: styles === null || styles === void 0 ? void 0 : styles.gridRow,
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
package/lib/index.js CHANGED
@@ -9,16 +9,16 @@ Object.defineProperty(exports, "Grid", {
9
9
  return _Grid.Grid;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "GridRow", {
12
+ Object.defineProperty(exports, "GridCol", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _Grid.GridRow;
15
+ return _Grid.GridCol;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "GridCol", {
18
+ Object.defineProperty(exports, "GridRow", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _Grid.GridCol;
21
+ return _Grid.GridRow;
22
22
  }
23
23
  });
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-grid",
3
- "version": "8.12.1-snapshot.7+1e7ac8219",
3
+ "version": "8.13.1-snapshot.9+f32ba918e",
4
4
  "description": "A Grid component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,20 +25,20 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/emotion": "8.12.1-snapshot.7+1e7ac8219",
29
- "@instructure/shared-types": "8.12.1-snapshot.7+1e7ac8219",
30
- "@instructure/ui-a11y-content": "8.12.1-snapshot.7+1e7ac8219",
31
- "@instructure/ui-prop-types": "8.12.1-snapshot.7+1e7ac8219",
32
- "@instructure/ui-react-utils": "8.12.1-snapshot.7+1e7ac8219",
33
- "@instructure/ui-testable": "8.12.1-snapshot.7+1e7ac8219",
34
- "@instructure/ui-utils": "8.12.1-snapshot.7+1e7ac8219",
28
+ "@instructure/emotion": "8.13.1-snapshot.9+f32ba918e",
29
+ "@instructure/shared-types": "8.13.1-snapshot.9+f32ba918e",
30
+ "@instructure/ui-a11y-content": "8.13.1-snapshot.9+f32ba918e",
31
+ "@instructure/ui-prop-types": "8.13.1-snapshot.9+f32ba918e",
32
+ "@instructure/ui-react-utils": "8.13.1-snapshot.9+f32ba918e",
33
+ "@instructure/ui-testable": "8.13.1-snapshot.9+f32ba918e",
34
+ "@instructure/ui-utils": "8.13.1-snapshot.9+f32ba918e",
35
35
  "prop-types": "^15"
36
36
  },
37
37
  "devDependencies": {
38
- "@instructure/ui-babel-preset": "8.12.1-snapshot.7+1e7ac8219",
39
- "@instructure/ui-color-utils": "8.12.1-snapshot.7+1e7ac8219",
40
- "@instructure/ui-test-utils": "8.12.1-snapshot.7+1e7ac8219",
41
- "@instructure/ui-themes": "8.12.1-snapshot.7+1e7ac8219"
38
+ "@instructure/ui-babel-preset": "8.13.1-snapshot.9+f32ba918e",
39
+ "@instructure/ui-color-utils": "8.13.1-snapshot.9+f32ba918e",
40
+ "@instructure/ui-test-utils": "8.13.1-snapshot.9+f32ba918e",
41
+ "@instructure/ui-themes": "8.13.1-snapshot.9+f32ba918e"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "sideEffects": false,
50
- "gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
50
+ "gitHead": "f32ba918e4d3ce76c6ee95c856584d00a9d80958"
51
51
  }
@@ -47,6 +47,7 @@ import type { GridProps } from './props'
47
47
  ---
48
48
  category: components
49
49
  ---
50
+ @tsProps
50
51
  **/
51
52
  @withStyle(generateStyle, generateComponentTheme)
52
53
  class Grid extends Component<GridProps> {
@@ -74,14 +75,11 @@ class Grid extends Component<GridProps> {
74
75
  }
75
76
 
76
77
  componentDidMount() {
77
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
78
- this.props.makeStyles()
78
+ this.props.makeStyles?.()
79
79
  }
80
80
 
81
- // @ts-expect-error ts-migrate(6133) FIXME: 'prevProps' is declared but its value is never rea... Remove this comment to see the full error message
82
- componentDidUpdate(prevProps, prevState, snapshot) {
83
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
84
- this.props.makeStyles()
81
+ componentDidUpdate() {
82
+ this.props.makeStyles?.()
85
83
  }
86
84
 
87
85
  renderChildren() {
@@ -92,8 +90,8 @@ class Grid extends Component<GridProps> {
92
90
  if (matchComponentTypes(child, [GridRow])) {
93
91
  return safeCloneElement(child as ReactElement, {
94
92
  ...pickProps(props, Grid.allowedProps),
95
- // @ts-expect-error ts-migrate(2339) FIXME: Property 'props' does not exist on type 'string | ... Remove this comment to see the full error message
96
- ...child.props /* child props should override parent */,
93
+ ...(child as ReactElement)
94
+ .props /* child props should override parent */,
97
95
  isLastRow: index + 1 === children.length
98
96
  })
99
97
  } else {
package/src/Grid/props.ts CHANGED
@@ -37,6 +37,9 @@ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
37
37
  import type { GridBreakpoints } from '../GridTypes'
38
38
 
39
39
  type GridOwnProps = {
40
+ /**
41
+ * One of: `Grid.Row`, `ScreenReaderContent`
42
+ */
40
43
  children?: React.ReactNode // TODO: oneOf([GridRow, ScreenReaderContent])
41
44
  colSpacing?: 'none' | 'small' | 'medium' | 'large'
42
45
  rowSpacing?: 'none' | 'small' | 'medium' | 'large'
@@ -40,6 +40,7 @@ import type { GridColProps } from './props'
40
40
  parent: Grid
41
41
  id: Grid.Col
42
42
  ---
43
+ @tsProps
43
44
  **/
44
45
  @withStyle(generateStyle, generateComponentTheme)
45
46
  class GridCol extends Component<GridColProps> {
@@ -67,14 +68,11 @@ class GridCol extends Component<GridColProps> {
67
68
  }
68
69
 
69
70
  componentDidMount() {
70
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
71
- this.props.makeStyles()
71
+ this.props.makeStyles?.()
72
72
  }
73
73
 
74
- // @ts-expect-error ts-migrate(6133) FIXME: 'prevProps' is declared but its value is never rea... Remove this comment to see the full error message
75
- componentDidUpdate(prevProps, prevState, snapshot) {
76
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
77
- this.props.makeStyles()
74
+ componentDidUpdate() {
75
+ this.props.makeStyles?.()
78
76
  }
79
77
 
80
78
  render() {
@@ -33,7 +33,8 @@ import type {
33
33
  import type { GridBreakpoints } from '../GridTypes'
34
34
 
35
35
  // TODO: get numcols from theme config
36
- const COL_WIDTHS = ['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
36
+ const COL_WIDTHS: ColWidths[] = ['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
37
+ type ColWidths = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
37
38
 
38
39
  type GridColOwnProps = {
39
40
  children?: React.ReactNode
@@ -45,23 +46,26 @@ type GridColOwnProps = {
45
46
  startAt?: GridBreakpoints
46
47
  visualDebug?: boolean
47
48
  width?:
48
- | any
49
+ | ColWidths
49
50
  | {
50
- small?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
51
- medium?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
52
- large?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
53
- xLarge?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
51
+ small?: ColWidths
52
+ medium?: ColWidths
53
+ large?: ColWidths
54
+ xLarge?: ColWidths
54
55
  }
55
56
  offset?:
56
- | any
57
+ | ColWidths
57
58
  | {
58
- small?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
59
- medium?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
60
- large?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
61
- xLarge?: any // TODO: PropTypes.oneOf(COL_WIDTHS)
59
+ small?: ColWidths
60
+ medium?: ColWidths
61
+ large?: ColWidths
62
+ xLarge?: ColWidths
62
63
  }
63
64
  isLastRow?: boolean
64
65
  isLastCol?: boolean
66
+ /**
67
+ * provides a reference to the underlying html root element
68
+ */
65
69
  elementRef?: (element: Element | null) => void
66
70
  }
67
71
 
@@ -110,9 +114,6 @@ const propTypes: PropValidators<PropKeys> = {
110
114
  ]),
111
115
  isLastRow: PropTypes.bool,
112
116
  isLastCol: PropTypes.bool,
113
- /**
114
- * provides a reference to the underlying html root element
115
- */
116
117
  elementRef: PropTypes.func
117
118
  }
118
119
 
@@ -26,6 +26,8 @@ import type { GridTheme } from '@instructure/shared-types'
26
26
  import type { GridBreakpoints } from '../GridTypes'
27
27
  import type { GridColProps, GridColStyle } from './props'
28
28
 
29
+ type BreakPoints = NonNullable<GridBreakpoints>
30
+
29
31
  /**
30
32
  * ---
31
33
  * private: true
@@ -111,31 +113,29 @@ const generateStyle = (
111
113
  return breakpoints.slice(breakpoints.indexOf(startAt!))
112
114
  }
113
115
 
114
- const breakpointIsEnabled = (breakpoint: GridBreakpoints) => {
116
+ const breakpointIsEnabled = (breakpoint: BreakPoints) => {
115
117
  return enabledBreakpoints().includes(breakpoint)
116
118
  }
117
119
 
118
- const getColSize = (breakpoint: GridBreakpoints) => {
120
+ const getColSize = (breakpoint: BreakPoints) => {
119
121
  let { width } = props
120
122
 
121
123
  if (!width) return
122
124
 
123
125
  if (width && typeof width === 'object') {
124
- // @ts-expect-error TODO: type when typing component
125
- width = width[breakpoint]
126
+ width = width[breakpoint === 'x-large' ? 'xLarge' : breakpoint]
126
127
  }
127
128
 
128
129
  return width
129
130
  }
130
131
 
131
- const getColOffset = (breakpoint: GridBreakpoints) => {
132
+ const getColOffset = (breakpoint: BreakPoints) => {
132
133
  let { offset } = props
133
134
 
134
135
  if (!offset) return
135
136
 
136
137
  if (offset && typeof offset === 'object') {
137
- // @ts-expect-error TODO: type when typing component
138
- offset = offset[breakpoint]
138
+ offset = offset[breakpoint === 'x-large' ? 'xLarge' : breakpoint]
139
139
  }
140
140
 
141
141
  return offset
@@ -170,10 +170,10 @@ const generateStyle = (
170
170
  }
171
171
  }
172
172
 
173
- const getStartAtVariants = (breakpoint: GridBreakpoints) =>
173
+ const getStartAtVariants = (breakpoint: BreakPoints) =>
174
174
  !!startAt && startAt === breakpoint ? { ...getStartGridColumnStyle() } : {}
175
175
 
176
- const getGridColumnsForBreakpoint = (breakpoint: GridBreakpoints) => {
176
+ const getGridColumnsForBreakpoint = (breakpoint: BreakPoints) => {
177
177
  const size = getColSize(breakpoint)
178
178
  const offset = getColOffset(breakpoint)
179
179
 
@@ -185,7 +185,7 @@ const generateStyle = (
185
185
  : {}
186
186
  }
187
187
 
188
- const getBreakpointStyles = (breakpoint: GridBreakpoints) => ({
188
+ const getBreakpointStyles = (breakpoint: BreakPoints) => ({
189
189
  ...getStartAtVariants(breakpoint),
190
190
  ...getGridColumnsForBreakpoint(breakpoint)
191
191
  })
@@ -47,6 +47,7 @@ import type { GridRowProps } from './props'
47
47
  parent: Grid
48
48
  id: Grid.Row
49
49
  ---
50
+ @tsProps
50
51
  **/
51
52
  @withStyle(generateStyle, generateComponentTheme)
52
53
  class GridRow extends Component<GridRowProps> {
@@ -66,14 +67,11 @@ class GridRow extends Component<GridRowProps> {
66
67
  }
67
68
 
68
69
  componentDidMount() {
69
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
70
- this.props.makeStyles()
70
+ this.props.makeStyles?.()
71
71
  }
72
72
 
73
- // @ts-expect-error ts-migrate(6133) FIXME: 'prevProps' is declared but its value is never rea... Remove this comment to see the full error message
74
- componentDidUpdate(prevProps, prevState, snapshot) {
75
- // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
76
- this.props.makeStyles()
73
+ componentDidUpdate() {
74
+ this.props.makeStyles?.()
77
75
  }
78
76
 
79
77
  renderChildren() {
@@ -83,8 +81,8 @@ class GridRow extends Component<GridRowProps> {
83
81
  if (matchComponentTypes(child, [GridCol])) {
84
82
  return safeCloneElement(child as ReactElement, {
85
83
  ...pickProps(props, GridRow.allowedProps),
86
- // @ts-expect-error ts-migrate(2533) FIXME: Object is possibly 'null' or 'undefined'.
87
- ...child.props /* child props should override parent */,
84
+ ...(child as ReactElement)
85
+ .props /* child props should override parent */,
88
86
  isLastRow: props.isLastRow,
89
87
  isLastCol: index + 1 === Children.count(this.props.children)
90
88
  })
@@ -38,6 +38,9 @@ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
38
38
  import type { GridBreakpoints } from '../GridTypes'
39
39
 
40
40
  type GridRowOwnProps = {
41
+ /**
42
+ * One of: `Grid.Col`, `ScreenReaderContent`
43
+ */
41
44
  children?: React.ReactNode // TODO: oneOf([GridCol, ScreenReaderContent])
42
45
  rowSpacing?: 'none' | 'small' | 'medium' | 'large'
43
46
  colSpacing?: 'none' | 'small' | 'medium' | 'large'
@@ -8,6 +8,7 @@ import type { GridProps } from './props';
8
8
  ---
9
9
  category: components
10
10
  ---
11
+ @tsProps
11
12
  **/
12
13
  declare class Grid extends Component<GridProps> {
13
14
  static readonly componentId = "Grid";
@@ -43,7 +44,7 @@ declare class Grid extends Component<GridProps> {
43
44
  ref: Element | null;
44
45
  handleRef: (el: Element | null) => void;
45
46
  componentDidMount(): void;
46
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
47
+ componentDidUpdate(): void;
47
48
  renderChildren(): {}[];
48
49
  render(): jsx.JSX.Element;
49
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Grid/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AASzD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MAQlB;IAED,MAAM,CAAC,GAAG,iBAAU;IACpB,MAAM,CAAC,GAAG,iBAAU;IAEpB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc;IAkBd,MAAM;CAWP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Grid/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AASzD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;GAKG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;MAQlB;IAED,MAAM,CAAC,GAAG,iBAAU;IACpB,MAAM,CAAC,GAAG,iBAAU;IAEpB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAkBd,MAAM;CAWP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -3,6 +3,9 @@ import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructur
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  import type { GridBreakpoints } from '../GridTypes';
5
5
  declare type GridOwnProps = {
6
+ /**
7
+ * One of: `Grid.Row`, `ScreenReaderContent`
8
+ */
6
9
  children?: React.ReactNode;
7
10
  colSpacing?: 'none' | 'small' | 'medium' | 'large';
8
11
  rowSpacing?: 'none' | 'small' | 'medium' | 'large';
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Grid/props.ts"],"names":[],"mappings":";AA8BA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KA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e,EAAE,MAAM,cAAc,CAAA;AAEnD,aAAK,YAAY,GAAG;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,eAAe,CAAA;IACtE,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACpC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,YAAY,CAAA;AAElC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,SAAS,GAAG,YAAY,GAC3B,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,GACpC,mBAAmB,CAAC,YAAY,CAAC,CAAA;AAEnC,aAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAEvC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAcvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAQnB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -7,6 +7,7 @@ import type { GridColProps } from './props';
7
7
  parent: Grid
8
8
  id: Grid.Col
9
9
  ---
10
+ @tsProps
10
11
  **/
11
12
  declare class GridCol extends Component<GridColProps> {
12
13
  static readonly componentId = "Grid.Col";
@@ -19,8 +20,18 @@ declare class GridCol extends Component<GridColProps> {
19
20
  vAlign?: "top" | "middle" | "bottom" | undefined;
20
21
  startAt?: import("..").GridBreakpoints | undefined;
21
22
  visualDebug?: boolean | undefined;
22
- width?: any;
23
- offset?: any;
23
+ width?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | {
24
+ small?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
25
+ medium?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
26
+ large?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
27
+ xLarge?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
28
+ } | undefined;
29
+ offset?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | {
30
+ small?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
31
+ medium?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
32
+ large?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
33
+ xLarge?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
34
+ } | undefined;
24
35
  isLastRow?: boolean | undefined;
25
36
  isLastCol?: boolean | undefined;
26
37
  elementRef?: ((element: Element | null) => void) | undefined;
@@ -34,8 +45,18 @@ declare class GridCol extends Component<GridColProps> {
34
45
  vAlign?: "top" | "middle" | "bottom" | undefined;
35
46
  startAt?: import("..").GridBreakpoints | undefined;
36
47
  visualDebug?: boolean | undefined;
37
- width?: any;
38
- offset?: any;
48
+ width?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | {
49
+ small?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
50
+ medium?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
51
+ large?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
52
+ xLarge?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
53
+ } | undefined;
54
+ offset?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | {
55
+ small?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
56
+ medium?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
57
+ large?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
58
+ xLarge?: ("auto" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12) | undefined;
59
+ } | undefined;
39
60
  isLastRow?: boolean | undefined;
40
61
  isLastCol?: boolean | undefined;
41
62
  elementRef?: ((element: Element | null) => void) | undefined;
@@ -49,7 +70,7 @@ declare class GridCol extends Component<GridColProps> {
49
70
  ref: Element | null;
50
71
  handleRef: (el: Element | null) => void;
51
72
  componentDidMount(): void;
52
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
73
+ componentDidUpdate(): void;
53
74
  render(): jsx.JSX.Element;
54
75
  }
55
76
  export default GridCol;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridCol/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;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AO,EAAE,CAAA"}
@@ -2,6 +2,7 @@
2
2
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
3
  import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructure/shared-types';
4
4
  import type { GridBreakpoints } from '../GridTypes';
5
+ declare type ColWidths = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
5
6
  declare type GridColOwnProps = {
6
7
  children?: React.ReactNode;
7
8
  colSpacing?: 'none' | 'small' | 'medium' | 'large';
@@ -11,20 +12,23 @@ declare type GridColOwnProps = {
11
12
  vAlign?: 'top' | 'middle' | 'bottom';
12
13
  startAt?: GridBreakpoints;
13
14
  visualDebug?: boolean;
14
- width?: any | {
15
- small?: any;
16
- medium?: any;
17
- large?: any;
18
- xLarge?: any;
15
+ width?: ColWidths | {
16
+ small?: ColWidths;
17
+ medium?: ColWidths;
18
+ large?: ColWidths;
19
+ xLarge?: ColWidths;
19
20
  };
20
- offset?: any | {
21
- small?: any;
22
- medium?: any;
23
- large?: any;
24
- xLarge?: any;
21
+ offset?: ColWidths | {
22
+ small?: ColWidths;
23
+ medium?: ColWidths;
24
+ large?: ColWidths;
25
+ xLarge?: ColWidths;
25
26
  };
26
27
  isLastRow?: boolean;
27
28
  isLastCol?: boolean;
29
+ /**
30
+ * provides a reference to the underlying html root element
31
+ */
28
32
  elementRef?: (element: Element | null) => void;
29
33
  };
30
34
  declare type PropKeys = keyof GridColOwnProps;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/GridCol/props.ts"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAKnD,aAAK,eAAe,GAAG;IAC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AAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,SAAS,SAClB,YAAY,KAClB,YAgLF,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/GridCol/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAIzD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,SAAS,SAClB,YAAY,KAClB,YA8KF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -7,6 +7,7 @@ import type { GridRowProps } from './props';
7
7
  parent: Grid
8
8
  id: Grid.Row
9
9
  ---
10
+ @tsProps
10
11
  **/
11
12
  declare class GridRow extends Component<GridRowProps> {
12
13
  static readonly componentId = "Grid.Row";
@@ -37,7 +38,7 @@ declare class GridRow extends Component<GridRowProps> {
37
38
  ref: Element | null;
38
39
  handleRef: (el: Element | null) => void;
39
40
  componentDidMount(): void;
40
- componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
41
+ componentDidUpdate(): void;
41
42
  renderChildren(): {}[] | null | undefined;
42
43
  render(): jsx.JSX.Element;
43
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridRow/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAWzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;GAKG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,cAAa;IAExC,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc;IAkBd,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridRow/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAWzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;;GAMG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,cAAa;IAExC,MAAM,CAAC,SAAS;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAkBd,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -3,6 +3,9 @@ import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructur
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  import type { GridBreakpoints } from '../GridTypes';
5
5
  declare type GridRowOwnProps = {
6
+ /**
7
+ * One of: `Grid.Col`, `ScreenReaderContent`
8
+ */
6
9
  children?: React.ReactNode;
7
10
  rowSpacing?: 'none' | 'small' | 'medium' | 'large';
8
11
  colSpacing?: 'none' | 'small' | 'medium' | 'large';
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/GridRow/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,aAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClD,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,cAAc,GAAG,eAAe,CAAA;IACtE,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACpC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,eAAe,CAAA;AAErC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,YAAY,GAAG,eAAe,GACjC,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC,GACvC,mBAAmB,CAAC,eAAe,CAAC,CAAA;AAEtC,aAAK,YAAY,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAE7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