@instructure/ui-grid 8.10.1-snapshot.8 → 8.10.2

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,14 @@
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.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-grid
9
+
10
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-grid
13
+
6
14
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-grid
package/es/Grid/index.js CHANGED
@@ -44,6 +44,15 @@ category: components
44
44
  ---
45
45
  **/
46
46
  let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Grid extends Component {
47
+ constructor(...args) {
48
+ super(...args);
49
+ this.ref = null;
50
+
51
+ this.handleRef = el => {
52
+ this.ref = el;
53
+ };
54
+ }
55
+
47
56
  componentDidMount() {
48
57
  this.props.makeStyles();
49
58
  }
@@ -80,7 +89,8 @@ let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
80
89
 
81
90
  const props = omitProps(restProps, Grid.allowedProps);
82
91
  return jsx("span", Object.assign({}, props, {
83
- css: styles === null || styles === void 0 ? void 0 : styles.grid
92
+ css: styles === null || styles === void 0 ? void 0 : styles.grid,
93
+ ref: this.handleRef
84
94
  }), this.renderChildren());
85
95
  }
86
96
 
@@ -39,6 +39,18 @@ id: Grid.Col
39
39
  ---
40
40
  **/
41
41
  let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class GridCol extends Component {
42
+ constructor(...args) {
43
+ super(...args);
44
+ this.ref = null;
45
+
46
+ this.handleRef = el => {
47
+ var _this$props$elementRe, _this$props;
48
+
49
+ this.ref = el;
50
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
51
+ };
52
+ }
53
+
42
54
  componentDidMount() {
43
55
  this.props.makeStyles();
44
56
  }
@@ -48,12 +60,12 @@ let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
48
60
  }
49
61
 
50
62
  render() {
51
- const _this$props = this.props,
52
- children = _this$props.children,
53
- styles = _this$props.styles;
63
+ const _this$props2 = this.props,
64
+ children = _this$props2.children,
65
+ styles = _this$props2.styles;
54
66
  const props = omitProps(this.props, GridCol.allowedProps);
55
67
  return jsx("span", Object.assign({}, props, {
56
- ref: this.props.elementRef,
68
+ ref: this.handleRef,
57
69
  css: styles === null || styles === void 0 ? void 0 : styles.gridCol
58
70
  }), children);
59
71
  }
@@ -44,6 +44,15 @@ id: Grid.Row
44
44
  ---
45
45
  **/
46
46
  let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class GridRow extends Component {
47
+ constructor(...args) {
48
+ super(...args);
49
+ this.ref = null;
50
+
51
+ this.handleRef = el => {
52
+ this.ref = el;
53
+ };
54
+ }
55
+
47
56
  componentDidMount() {
48
57
  this.props.makeStyles();
49
58
  }
@@ -80,7 +89,8 @@ let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
80
89
 
81
90
  const props = omitProps(restProps, GridRow.allowedProps);
82
91
  return jsx("span", Object.assign({}, props, {
83
- css: styles === null || styles === void 0 ? void 0 : styles.gridRow
92
+ css: styles === null || styles === void 0 ? void 0 : styles.gridRow,
93
+ ref: this.handleRef
84
94
  }), this.renderChildren());
85
95
  }
86
96
 
package/lib/Grid/index.js CHANGED
@@ -54,6 +54,15 @@ category: components
54
54
  ---
55
55
  **/
56
56
  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
+ this.ref = null;
60
+
61
+ this.handleRef = el => {
62
+ this.ref = el;
63
+ };
64
+ }
65
+
57
66
  componentDidMount() {
58
67
  this.props.makeStyles();
59
68
  }
@@ -90,7 +99,8 @@ let Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
90
99
  restProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2);
91
100
  const props = (0, _omitProps.omitProps)(restProps, Grid.allowedProps);
92
101
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
93
- css: styles === null || styles === void 0 ? void 0 : styles.grid
102
+ css: styles === null || styles === void 0 ? void 0 : styles.grid,
103
+ ref: this.handleRef
94
104
  }), this.renderChildren());
95
105
  }
96
106
 
@@ -28,6 +28,18 @@ id: Grid.Col
28
28
  ---
29
29
  **/
30
30
  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);
33
+ this.ref = null;
34
+
35
+ this.handleRef = el => {
36
+ var _this$props$elementRe, _this$props;
37
+
38
+ this.ref = el;
39
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
40
+ };
41
+ }
42
+
31
43
  componentDidMount() {
32
44
  this.props.makeStyles();
33
45
  }
@@ -37,12 +49,12 @@ let GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
37
49
  }
38
50
 
39
51
  render() {
40
- const _this$props = this.props,
41
- children = _this$props.children,
42
- styles = _this$props.styles;
52
+ const _this$props2 = this.props,
53
+ children = _this$props2.children,
54
+ styles = _this$props2.styles;
43
55
  const props = (0, _omitProps.omitProps)(this.props, GridCol.allowedProps);
44
56
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
45
- ref: this.props.elementRef,
57
+ ref: this.handleRef,
46
58
  css: styles === null || styles === void 0 ? void 0 : styles.gridCol
47
59
  }), children);
48
60
  }
@@ -41,6 +41,15 @@ id: Grid.Row
41
41
  ---
42
42
  **/
43
43
  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);
46
+ this.ref = null;
47
+
48
+ this.handleRef = el => {
49
+ this.ref = el;
50
+ };
51
+ }
52
+
44
53
  componentDidMount() {
45
54
  this.props.makeStyles();
46
55
  }
@@ -75,7 +84,8 @@ let GridRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
75
84
  restProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded2);
76
85
  const props = (0, _omitProps.omitProps)(restProps, GridRow.allowedProps);
77
86
  return (0, _emotion.jsx)("span", Object.assign({}, props, {
78
- css: styles === null || styles === void 0 ? void 0 : styles.gridRow
87
+ css: styles === null || styles === void 0 ? void 0 : styles.gridRow,
88
+ ref: this.handleRef
79
89
  }), this.renderChildren());
80
90
  }
81
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-grid",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
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.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/ui-a11y-content": "8.10.1-snapshot.8+21f46f4e3",
31
- "@instructure/ui-prop-types": "8.10.1-snapshot.8+21f46f4e3",
32
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
33
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
34
- "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
28
+ "@instructure/emotion": "8.10.2",
29
+ "@instructure/shared-types": "8.10.2",
30
+ "@instructure/ui-a11y-content": "8.10.2",
31
+ "@instructure/ui-prop-types": "8.10.2",
32
+ "@instructure/ui-react-utils": "8.10.2",
33
+ "@instructure/ui-testable": "8.10.2",
34
+ "@instructure/ui-utils": "8.10.2",
35
35
  "prop-types": "^15"
36
36
  },
37
37
  "devDependencies": {
38
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
39
- "@instructure/ui-color-utils": "8.10.1-snapshot.8+21f46f4e3",
40
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
41
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
38
+ "@instructure/ui-babel-preset": "8.10.2",
39
+ "@instructure/ui-color-utils": "8.10.2",
40
+ "@instructure/ui-test-utils": "8.10.2",
41
+ "@instructure/ui-themes": "8.10.2"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
@@ -46,6 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "sideEffects": false,
50
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
49
+ "sideEffects": false
51
50
  }
@@ -67,6 +67,12 @@ class Grid extends Component<GridProps> {
67
67
  static Row = GridRow
68
68
  static Col = GridCol
69
69
 
70
+ ref: Element | null = null
71
+
72
+ handleRef = (el: Element | null) => {
73
+ this.ref = el
74
+ }
75
+
70
76
  componentDidMount() {
71
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
72
78
  this.props.makeStyles()
@@ -102,7 +108,7 @@ class Grid extends Component<GridProps> {
102
108
  const props = omitProps(restProps, Grid.allowedProps)
103
109
 
104
110
  return (
105
- <span {...props} css={styles?.grid}>
111
+ <span {...props} css={styles?.grid} ref={this.handleRef}>
106
112
  {this.renderChildren()}
107
113
  </span>
108
114
  )
@@ -54,6 +54,13 @@ class GridCol extends Component<GridColProps> {
54
54
  isLastRow: false
55
55
  }
56
56
 
57
+ ref: Element | null = null
58
+
59
+ handleRef = (el: Element | null) => {
60
+ this.ref = el
61
+ this.props.elementRef?.(el)
62
+ }
63
+
57
64
  componentDidMount() {
58
65
  // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
59
66
  this.props.makeStyles()
@@ -71,7 +78,7 @@ class GridCol extends Component<GridColProps> {
71
78
  const props = omitProps(this.props, GridCol.allowedProps)
72
79
 
73
80
  return (
74
- <span {...props} ref={this.props.elementRef} css={styles?.gridCol}>
81
+ <span {...props} ref={this.handleRef} css={styles?.gridCol}>
75
82
  {children}
76
83
  </span>
77
84
  )
@@ -58,7 +58,7 @@ type GridColOwnProps = {
58
58
  }
59
59
  isLastRow?: boolean
60
60
  isLastCol?: boolean
61
- elementRef?: (...args: any[]) => any
61
+ elementRef?: (element: Element | null) => void
62
62
  }
63
63
 
64
64
  type PropKeys = keyof GridColOwnProps
@@ -59,6 +59,12 @@ class GridRow extends Component<GridRowProps> {
59
59
  isLastRow: false
60
60
  }
61
61
 
62
+ ref: Element | null = null
63
+
64
+ handleRef = (el: Element | null) => {
65
+ this.ref = el
66
+ }
67
+
62
68
  componentDidMount() {
63
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
64
70
  this.props.makeStyles()
@@ -94,7 +100,7 @@ class GridRow extends Component<GridRowProps> {
94
100
  const props = omitProps(restProps, GridRow.allowedProps)
95
101
 
96
102
  return (
97
- <span {...props} css={styles?.gridRow}>
103
+ <span {...props} css={styles?.gridRow} ref={this.handleRef}>
98
104
  {this.renderChildren()}
99
105
  </span>
100
106
  )
@@ -40,6 +40,8 @@ declare class Grid extends Component<GridProps> {
40
40
  };
41
41
  static Row: typeof GridRow;
42
42
  static Col: typeof GridCol;
43
+ ref: Element | null;
44
+ handleRef: (el: Element | null) => void;
43
45
  componentDidMount(): void;
44
46
  componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
45
47
  renderChildren(): {}[];
@@ -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,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;;;;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"}
@@ -23,7 +23,7 @@ declare class GridCol extends Component<GridColProps> {
23
23
  offset?: any;
24
24
  isLastRow?: boolean | undefined;
25
25
  isLastCol?: boolean | undefined;
26
- elementRef?: ((...args: any[]) => any) | undefined;
26
+ elementRef?: ((element: Element | null) => void) | undefined;
27
27
  }>;
28
28
  static allowedProps: readonly (keyof {
29
29
  children?: import("react").ReactNode;
@@ -38,7 +38,7 @@ declare class GridCol extends Component<GridColProps> {
38
38
  offset?: any;
39
39
  isLastRow?: boolean | undefined;
40
40
  isLastCol?: boolean | undefined;
41
- elementRef?: ((...args: any[]) => any) | undefined;
41
+ elementRef?: ((element: Element | null) => void) | undefined;
42
42
  })[];
43
43
  static defaultProps: {
44
44
  textAlign: string;
@@ -46,6 +46,8 @@ declare class GridCol extends Component<GridColProps> {
46
46
  isLastCol: boolean;
47
47
  isLastRow: boolean;
48
48
  };
49
+ ref: Element | null;
50
+ handleRef: (el: Element | null) => void;
49
51
  componentDidMount(): void;
50
52
  componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
51
53
  render(): jsx.JSX.Element;
@@ -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;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;;;;;MAKlB;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
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;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;;;;;MAKlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -25,7 +25,7 @@ declare type GridColOwnProps = {
25
25
  };
26
26
  isLastRow?: boolean;
27
27
  isLastCol?: boolean;
28
- elementRef?: (...args: any[]) => any;
28
+ elementRef?: (element: Element | null) => void;
29
29
  };
30
30
  declare type PropKeys = keyof GridColOwnProps;
31
31
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
@@ -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,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAKnD,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,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,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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AAC,CAAA;AAEhD,aAAK,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAE7E,aAAK,YAAY,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAE7C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAoCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAcnB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -34,6 +34,8 @@ declare class GridRow extends Component<GridRowProps> {
34
34
  children: null;
35
35
  isLastRow: boolean;
36
36
  };
37
+ ref: Element | null;
38
+ handleRef: (el: Element | null) => void;
37
39
  componentDidMount(): void;
38
40
  componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
39
41
  renderChildren(): {}[] | null | undefined;
@@ -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,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;;;;;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"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.