@instructure/ui-grid 8.10.3-snapshot.2 → 8.10.3-snapshot.25
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/es/GridCol/index.js +8 -6
- package/es/GridCol/props.js +4 -0
- package/lib/GridCol/index.js +8 -6
- package/lib/GridCol/props.js +4 -0
- package/package.json +13 -13
- package/src/Grid/props.ts +8 -2
- package/src/GridCol/index.tsx +6 -1
- package/src/GridCol/props.ts +11 -2
- package/src/GridRow/props.ts +8 -2
- package/types/Grid/props.d.ts +2 -2
- package/types/Grid/props.d.ts.map +1 -1
- package/types/GridCol/index.d.ts.map +1 -1
- package/types/GridCol/props.d.ts +2 -2
- package/types/GridCol/props.d.ts.map +1 -1
- package/types/GridRow/props.d.ts +2 -2
- package/types/GridRow/props.d.ts.map +1 -1
package/es/GridCol/index.js
CHANGED
|
@@ -44,10 +44,12 @@ let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
|
|
|
44
44
|
this.ref = null;
|
|
45
45
|
|
|
46
46
|
this.handleRef = el => {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const elementRef = this.props.elementRef;
|
|
49
48
|
this.ref = el;
|
|
50
|
-
|
|
49
|
+
|
|
50
|
+
if (typeof elementRef === 'function') {
|
|
51
|
+
elementRef(el);
|
|
52
|
+
}
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -60,9 +62,9 @@ let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cl
|
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
render() {
|
|
63
|
-
const _this$
|
|
64
|
-
children = _this$
|
|
65
|
-
styles = _this$
|
|
65
|
+
const _this$props = this.props,
|
|
66
|
+
children = _this$props.children,
|
|
67
|
+
styles = _this$props.styles;
|
|
66
68
|
const props = omitProps(this.props, GridCol.allowedProps);
|
|
67
69
|
return jsx("span", Object.assign({}, props, {
|
|
68
70
|
ref: this.handleRef,
|
package/es/GridCol/props.js
CHANGED
|
@@ -47,6 +47,10 @@ 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
|
+
*/
|
|
50
54
|
elementRef: PropTypes.func
|
|
51
55
|
};
|
|
52
56
|
const allowedProps = ['children', 'colSpacing', 'rowSpacing', 'textAlign', 'hAlign', 'vAlign', 'startAt', 'visualDebug', 'width', 'offset', 'isLastRow', 'isLastCol', 'elementRef'];
|
package/lib/GridCol/index.js
CHANGED
|
@@ -33,10 +33,12 @@ let GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
33
33
|
this.ref = null;
|
|
34
34
|
|
|
35
35
|
this.handleRef = el => {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const elementRef = this.props.elementRef;
|
|
38
37
|
this.ref = el;
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
if (typeof elementRef === 'function') {
|
|
40
|
+
elementRef(el);
|
|
41
|
+
}
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -49,9 +51,9 @@ let GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
render() {
|
|
52
|
-
const _this$
|
|
53
|
-
children = _this$
|
|
54
|
-
styles = _this$
|
|
54
|
+
const _this$props = this.props,
|
|
55
|
+
children = _this$props.children,
|
|
56
|
+
styles = _this$props.styles;
|
|
55
57
|
const props = (0, _omitProps.omitProps)(this.props, GridCol.allowedProps);
|
|
56
58
|
return (0, _emotion.jsx)("span", Object.assign({}, props, {
|
|
57
59
|
ref: this.handleRef,
|
package/lib/GridCol/props.js
CHANGED
|
@@ -57,6 +57,10 @@ 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
|
+
*/
|
|
60
64
|
elementRef: _propTypes.default.func
|
|
61
65
|
};
|
|
62
66
|
exports.propTypes = propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-grid",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.25+ed32a6c3b",
|
|
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.3-snapshot.
|
|
29
|
-
"@instructure/shared-types": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/ui-a11y-content": "8.10.3-snapshot.
|
|
31
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
32
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
33
|
-
"@instructure/ui-testable": "8.10.3-snapshot.
|
|
34
|
-
"@instructure/ui-utils": "8.10.3-snapshot.
|
|
28
|
+
"@instructure/emotion": "8.10.3-snapshot.25+ed32a6c3b",
|
|
29
|
+
"@instructure/shared-types": "8.10.3-snapshot.25+ed32a6c3b",
|
|
30
|
+
"@instructure/ui-a11y-content": "8.10.3-snapshot.25+ed32a6c3b",
|
|
31
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.25+ed32a6c3b",
|
|
32
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.25+ed32a6c3b",
|
|
33
|
+
"@instructure/ui-testable": "8.10.3-snapshot.25+ed32a6c3b",
|
|
34
|
+
"@instructure/ui-utils": "8.10.3-snapshot.25+ed32a6c3b",
|
|
35
35
|
"prop-types": "^15"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
39
|
-
"@instructure/ui-color-utils": "8.10.3-snapshot.
|
|
40
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
41
|
-
"@instructure/ui-themes": "8.10.3-snapshot.
|
|
38
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.25+ed32a6c3b",
|
|
39
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.25+ed32a6c3b",
|
|
40
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.25+ed32a6c3b",
|
|
41
|
+
"@instructure/ui-themes": "8.10.3-snapshot.25+ed32a6c3b"
|
|
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": "
|
|
50
|
+
"gitHead": "ed32a6c3b14ddb7fbbb5b543d9871a296f06e4c0"
|
|
51
51
|
}
|
package/src/Grid/props.ts
CHANGED
|
@@ -28,7 +28,11 @@ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
|
28
28
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
29
29
|
import { GridRow } from '../GridRow'
|
|
30
30
|
|
|
31
|
-
import type {
|
|
31
|
+
import type {
|
|
32
|
+
PropValidators,
|
|
33
|
+
GridTheme,
|
|
34
|
+
OtherHTMLAttributes
|
|
35
|
+
} from '@instructure/shared-types'
|
|
32
36
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
33
37
|
import type { GridBreakpoints } from '../GridTypes'
|
|
34
38
|
|
|
@@ -46,7 +50,9 @@ type PropKeys = keyof GridOwnProps
|
|
|
46
50
|
|
|
47
51
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
48
52
|
|
|
49
|
-
type GridProps = GridOwnProps &
|
|
53
|
+
type GridProps = GridOwnProps &
|
|
54
|
+
WithStyleProps<GridTheme, GridStyle> &
|
|
55
|
+
OtherHTMLAttributes<GridOwnProps>
|
|
50
56
|
|
|
51
57
|
type GridStyle = ComponentStyle<'grid'>
|
|
52
58
|
|
package/src/GridCol/index.tsx
CHANGED
|
@@ -57,8 +57,13 @@ class GridCol extends Component<GridColProps> {
|
|
|
57
57
|
ref: Element | null = null
|
|
58
58
|
|
|
59
59
|
handleRef = (el: Element | null) => {
|
|
60
|
+
const { elementRef } = this.props
|
|
61
|
+
|
|
60
62
|
this.ref = el
|
|
61
|
-
|
|
63
|
+
|
|
64
|
+
if (typeof elementRef === 'function') {
|
|
65
|
+
elementRef(el)
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
componentDidMount() {
|
package/src/GridCol/props.ts
CHANGED
|
@@ -25,7 +25,11 @@
|
|
|
25
25
|
import PropTypes from 'prop-types'
|
|
26
26
|
|
|
27
27
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
28
|
-
import type {
|
|
28
|
+
import type {
|
|
29
|
+
PropValidators,
|
|
30
|
+
GridTheme,
|
|
31
|
+
OtherHTMLAttributes
|
|
32
|
+
} from '@instructure/shared-types'
|
|
29
33
|
import type { GridBreakpoints } from '../GridTypes'
|
|
30
34
|
|
|
31
35
|
// TODO: get numcols from theme config
|
|
@@ -65,7 +69,9 @@ type PropKeys = keyof GridColOwnProps
|
|
|
65
69
|
|
|
66
70
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
67
71
|
|
|
68
|
-
type GridColProps = GridColOwnProps &
|
|
72
|
+
type GridColProps = GridColOwnProps &
|
|
73
|
+
WithStyleProps<GridTheme, GridColStyle> &
|
|
74
|
+
OtherHTMLAttributes<GridColOwnProps>
|
|
69
75
|
|
|
70
76
|
type GridColStyle = ComponentStyle<'gridCol'>
|
|
71
77
|
|
|
@@ -104,6 +110,9 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
104
110
|
]),
|
|
105
111
|
isLastRow: PropTypes.bool,
|
|
106
112
|
isLastCol: PropTypes.bool,
|
|
113
|
+
/**
|
|
114
|
+
* provides a reference to the underlying html root element
|
|
115
|
+
*/
|
|
107
116
|
elementRef: PropTypes.func
|
|
108
117
|
}
|
|
109
118
|
|
package/src/GridRow/props.ts
CHANGED
|
@@ -29,7 +29,11 @@ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
30
30
|
import { GridCol } from '../GridCol'
|
|
31
31
|
|
|
32
|
-
import type {
|
|
32
|
+
import type {
|
|
33
|
+
PropValidators,
|
|
34
|
+
GridTheme,
|
|
35
|
+
OtherHTMLAttributes
|
|
36
|
+
} from '@instructure/shared-types'
|
|
33
37
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
34
38
|
import type { GridBreakpoints } from '../GridTypes'
|
|
35
39
|
|
|
@@ -48,7 +52,9 @@ type PropKeys = keyof GridRowOwnProps
|
|
|
48
52
|
|
|
49
53
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
50
54
|
|
|
51
|
-
type GridRowProps = GridRowOwnProps &
|
|
55
|
+
type GridRowProps = GridRowOwnProps &
|
|
56
|
+
WithStyleProps<GridTheme, GridRowStyle> &
|
|
57
|
+
OtherHTMLAttributes<GridRowOwnProps>
|
|
52
58
|
|
|
53
59
|
type GridRowStyle = ComponentStyle<'gridRow'>
|
|
54
60
|
|
package/types/Grid/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PropValidators, GridTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
import type { GridBreakpoints } from '../GridTypes';
|
|
5
5
|
declare type GridOwnProps = {
|
|
@@ -13,7 +13,7 @@ declare type GridOwnProps = {
|
|
|
13
13
|
};
|
|
14
14
|
declare type PropKeys = keyof GridOwnProps;
|
|
15
15
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
|
-
declare type GridProps = GridOwnProps & WithStyleProps<GridTheme, GridStyle>;
|
|
16
|
+
declare type GridProps = GridOwnProps & WithStyleProps<GridTheme, GridStyle> & OtherHTMLAttributes<GridOwnProps>;
|
|
17
17
|
declare type GridStyle = ComponentStyle<'grid'>;
|
|
18
18
|
declare const propTypes: PropValidators<PropKeys>;
|
|
19
19
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Grid/props.ts"],"names":[],"mappings":";AA8BA,OAAO,KAAK,
|
|
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,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,aAAK,YAAY,GAAG;IAClB,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"}
|
|
@@ -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,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,
|
|
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,UAQ9B;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"}
|
package/types/GridCol/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { PropValidators, GridTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
import type { GridBreakpoints } from '../GridTypes';
|
|
5
5
|
declare type GridColOwnProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -29,7 +29,7 @@ declare type GridColOwnProps = {
|
|
|
29
29
|
};
|
|
30
30
|
declare type PropKeys = keyof GridColOwnProps;
|
|
31
31
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
32
|
-
declare type GridColProps = GridColOwnProps & WithStyleProps<GridTheme, GridColStyle>;
|
|
32
|
+
declare type GridColProps = GridColOwnProps & WithStyleProps<GridTheme, GridColStyle> & OtherHTMLAttributes<GridColOwnProps>;
|
|
33
33
|
declare type GridColStyle = ComponentStyle<'gridCol'>;
|
|
34
34
|
declare const propTypes: PropValidators<PropKeys>;
|
|
35
35
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -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,
|
|
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;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,EAAE,eAAe,CAAA;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EACF,GAAG,GACH;QACE,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;QACZ,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;KACb,CAAA;IACL,MAAM,CAAC,EACH,GAAG,GACH;QACE,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;QACZ,KAAK,CAAC,EAAE,GAAG,CAAA;QACX,MAAM,CAAC,EAAE,GAAG,CAAA;KACb,CAAA;IACL,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,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;AAE7C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAuCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAcnB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/GridRow/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators, GridTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { PropValidators, GridTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
import type { GridBreakpoints } from '../GridTypes';
|
|
5
5
|
declare type GridRowOwnProps = {
|
|
@@ -14,7 +14,7 @@ declare type GridRowOwnProps = {
|
|
|
14
14
|
};
|
|
15
15
|
declare type PropKeys = keyof GridRowOwnProps;
|
|
16
16
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
17
|
-
declare type GridRowProps = GridRowOwnProps & WithStyleProps<GridTheme, GridRowStyle>;
|
|
17
|
+
declare type GridRowProps = GridRowOwnProps & WithStyleProps<GridTheme, GridRowStyle> & OtherHTMLAttributes<GridRowOwnProps>;
|
|
18
18
|
declare type GridRowStyle = ComponentStyle<'gridRow'>;
|
|
19
19
|
declare const propTypes: PropValidators<PropKeys>;
|
|
20
20
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -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,
|
|
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;AAE7C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAevC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|