@instructure/ui-table 8.10.3-snapshot.9 → 8.11.2-snapshot.3
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 +8 -0
- package/es/Table/index.js +15 -2
- package/lib/Table/index.js +15 -2
- package/package.json +17 -17
- package/src/Table/Body/props.ts +7 -2
- package/src/Table/Cell/props.ts +7 -2
- package/src/Table/ColHeader/props.ts +7 -2
- package/src/Table/Head/props.ts +7 -2
- package/src/Table/Row/props.ts +7 -2
- package/src/Table/RowHeader/props.ts +3 -1
- package/src/Table/index.tsx +14 -10
- package/src/Table/props.ts +8 -2
- package/types/Table/Body/props.d.ts +2 -2
- package/types/Table/Body/props.d.ts.map +1 -1
- package/types/Table/Cell/props.d.ts +2 -2
- package/types/Table/Cell/props.d.ts.map +1 -1
- package/types/Table/ColHeader/props.d.ts +3 -3
- package/types/Table/ColHeader/props.d.ts.map +1 -1
- package/types/Table/Head/props.d.ts +2 -2
- package/types/Table/Head/props.d.ts.map +1 -1
- package/types/Table/Row/props.d.ts +2 -2
- package/types/Table/Row/props.d.ts.map +1 -1
- package/types/Table/RowHeader/props.d.ts +2 -2
- package/types/Table/RowHeader/props.d.ts.map +1 -1
- package/types/Table/index.d.ts +2 -0
- package/types/Table/index.d.ts.map +1 -1
- package/types/Table/props.d.ts +2 -2
- package/types/Table/props.d.ts.map +1 -1
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.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @instructure/ui-table
|
9
|
+
|
10
|
+
# [8.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @instructure/ui-table
|
13
|
+
|
6
14
|
## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-table
|
package/es/Table/index.js
CHANGED
@@ -48,6 +48,20 @@ category: components
|
|
48
48
|
**/
|
49
49
|
|
50
50
|
let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Table extends Component {
|
51
|
+
constructor(...args) {
|
52
|
+
super(...args);
|
53
|
+
this.ref = null;
|
54
|
+
|
55
|
+
this.handleRef = el => {
|
56
|
+
const elementRef = this.props.elementRef;
|
57
|
+
this.ref = el;
|
58
|
+
|
59
|
+
if (typeof elementRef === 'function') {
|
60
|
+
elementRef(el);
|
61
|
+
}
|
62
|
+
};
|
63
|
+
}
|
64
|
+
|
51
65
|
componentDidMount() {
|
52
66
|
var _this$props$makeStyle, _this$props;
|
53
67
|
|
@@ -85,7 +99,6 @@ let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
|
|
85
99
|
render() {
|
86
100
|
const _this$props3 = this.props,
|
87
101
|
margin = _this$props3.margin,
|
88
|
-
elementRef = _this$props3.elementRef,
|
89
102
|
layout = _this$props3.layout,
|
90
103
|
caption = _this$props3.caption,
|
91
104
|
children = _this$props3.children,
|
@@ -96,7 +109,7 @@ let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
|
|
96
109
|
return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Table.allowedProps), Table), {
|
97
110
|
as: isStacked ? 'div' : 'table',
|
98
111
|
margin: margin,
|
99
|
-
elementRef:
|
112
|
+
elementRef: this.handleRef,
|
100
113
|
css: styles === null || styles === void 0 ? void 0 : styles.table,
|
101
114
|
role: isStacked ? 'table' : void 0,
|
102
115
|
"aria-label": isStacked ? caption : void 0
|
package/lib/Table/index.js
CHANGED
@@ -49,6 +49,20 @@ category: components
|
|
49
49
|
---
|
50
50
|
**/
|
51
51
|
let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Table extends _react.Component {
|
52
|
+
constructor(...args) {
|
53
|
+
super(...args);
|
54
|
+
this.ref = null;
|
55
|
+
|
56
|
+
this.handleRef = el => {
|
57
|
+
const elementRef = this.props.elementRef;
|
58
|
+
this.ref = el;
|
59
|
+
|
60
|
+
if (typeof elementRef === 'function') {
|
61
|
+
elementRef(el);
|
62
|
+
}
|
63
|
+
};
|
64
|
+
}
|
65
|
+
|
52
66
|
componentDidMount() {
|
53
67
|
var _this$props$makeStyle, _this$props;
|
54
68
|
|
@@ -86,7 +100,6 @@ let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
86
100
|
render() {
|
87
101
|
const _this$props3 = this.props,
|
88
102
|
margin = _this$props3.margin,
|
89
|
-
elementRef = _this$props3.elementRef,
|
90
103
|
layout = _this$props3.layout,
|
91
104
|
caption = _this$props3.caption,
|
92
105
|
children = _this$props3.children,
|
@@ -97,7 +110,7 @@ let Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
97
110
|
return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Table.allowedProps), Table), {
|
98
111
|
as: isStacked ? 'div' : 'table',
|
99
112
|
margin: margin,
|
100
|
-
elementRef:
|
113
|
+
elementRef: this.handleRef,
|
101
114
|
css: styles === null || styles === void 0 ? void 0 : styles.table,
|
102
115
|
role: isStacked ? 'table' : void 0,
|
103
116
|
"aria-label": isStacked ? caption : void 0
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-table",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.11.2-snapshot.3+6c8116bbe",
|
4
4
|
"description": "A styled HTML table component",
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
6
6
|
"type": "commonjs",
|
@@ -24,24 +24,24 @@
|
|
24
24
|
},
|
25
25
|
"license": "MIT",
|
26
26
|
"devDependencies": {
|
27
|
-
"@instructure/ui-babel-preset": "8.
|
28
|
-
"@instructure/ui-color-utils": "8.
|
29
|
-
"@instructure/ui-test-utils": "8.
|
30
|
-
"@instructure/ui-themes": "8.
|
27
|
+
"@instructure/ui-babel-preset": "8.11.2-snapshot.3+6c8116bbe",
|
28
|
+
"@instructure/ui-color-utils": "8.11.2-snapshot.3+6c8116bbe",
|
29
|
+
"@instructure/ui-test-utils": "8.11.2-snapshot.3+6c8116bbe",
|
30
|
+
"@instructure/ui-themes": "8.11.2-snapshot.3+6c8116bbe"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
33
|
"@babel/runtime": "^7.13.10",
|
34
|
-
"@instructure/console": "8.
|
35
|
-
"@instructure/emotion": "8.
|
36
|
-
"@instructure/shared-types": "8.
|
37
|
-
"@instructure/ui-a11y-content": "8.
|
38
|
-
"@instructure/ui-icons": "8.
|
39
|
-
"@instructure/ui-prop-types": "8.
|
40
|
-
"@instructure/ui-react-utils": "8.
|
41
|
-
"@instructure/ui-simple-select": "8.
|
42
|
-
"@instructure/ui-testable": "8.
|
43
|
-
"@instructure/ui-utils": "8.
|
44
|
-
"@instructure/ui-view": "8.
|
34
|
+
"@instructure/console": "8.11.2-snapshot.3+6c8116bbe",
|
35
|
+
"@instructure/emotion": "8.11.2-snapshot.3+6c8116bbe",
|
36
|
+
"@instructure/shared-types": "8.11.2-snapshot.3+6c8116bbe",
|
37
|
+
"@instructure/ui-a11y-content": "8.11.2-snapshot.3+6c8116bbe",
|
38
|
+
"@instructure/ui-icons": "8.11.2-snapshot.3+6c8116bbe",
|
39
|
+
"@instructure/ui-prop-types": "8.11.2-snapshot.3+6c8116bbe",
|
40
|
+
"@instructure/ui-react-utils": "8.11.2-snapshot.3+6c8116bbe",
|
41
|
+
"@instructure/ui-simple-select": "8.11.2-snapshot.3+6c8116bbe",
|
42
|
+
"@instructure/ui-testable": "8.11.2-snapshot.3+6c8116bbe",
|
43
|
+
"@instructure/ui-utils": "8.11.2-snapshot.3+6c8116bbe",
|
44
|
+
"@instructure/ui-view": "8.11.2-snapshot.3+6c8116bbe",
|
45
45
|
"prop-types": "^15"
|
46
46
|
},
|
47
47
|
"peerDependencies": {
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"access": "public"
|
52
52
|
},
|
53
53
|
"sideEffects": false,
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "6c8116bbe87878c77fca03bf26de932b40e21302"
|
55
55
|
}
|
package/src/Table/Body/props.ts
CHANGED
@@ -28,7 +28,11 @@ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
28
28
|
|
29
29
|
import { Row } from '../Row'
|
30
30
|
|
31
|
-
import type {
|
31
|
+
import type {
|
32
|
+
OtherHTMLAttributes,
|
33
|
+
PropValidators,
|
34
|
+
TableBodyTheme
|
35
|
+
} from '@instructure/shared-types'
|
32
36
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
33
37
|
|
34
38
|
type TableBodyOwnProps = {
|
@@ -43,7 +47,8 @@ type PropKeys = keyof TableBodyOwnProps
|
|
43
47
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
44
48
|
|
45
49
|
type TableBodyProps = TableBodyOwnProps &
|
46
|
-
WithStyleProps<TableBodyTheme, TableBodyStyle>
|
50
|
+
WithStyleProps<TableBodyTheme, TableBodyStyle> &
|
51
|
+
OtherHTMLAttributes<TableBodyOwnProps>
|
47
52
|
|
48
53
|
type TableBodyStyle = ComponentStyle<'body'>
|
49
54
|
|
package/src/Table/Cell/props.ts
CHANGED
@@ -26,7 +26,11 @@ import React from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
27
27
|
|
28
28
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
29
|
-
import type {
|
29
|
+
import type {
|
30
|
+
OtherHTMLAttributes,
|
31
|
+
PropValidators,
|
32
|
+
TableCellTheme
|
33
|
+
} from '@instructure/shared-types'
|
30
34
|
|
31
35
|
type TableCellOwnProps = {
|
32
36
|
isStacked?: boolean
|
@@ -40,7 +44,8 @@ type PropKeys = keyof TableCellOwnProps
|
|
40
44
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
41
45
|
|
42
46
|
type TableCellProps = TableCellOwnProps &
|
43
|
-
WithStyleProps<TableCellTheme, TableCellStyle>
|
47
|
+
WithStyleProps<TableCellTheme, TableCellStyle> &
|
48
|
+
OtherHTMLAttributes<TableCellOwnProps>
|
44
49
|
|
45
50
|
type TableCellStyle = ComponentStyle<'cell'>
|
46
51
|
|
@@ -21,10 +21,11 @@
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
22
|
* SOFTWARE.
|
23
23
|
*/
|
24
|
-
import React from 'react'
|
24
|
+
import React, { ThHTMLAttributes } from 'react'
|
25
25
|
import PropTypes from 'prop-types'
|
26
26
|
|
27
27
|
import type {
|
28
|
+
OtherHTMLAttributes,
|
28
29
|
PropValidators,
|
29
30
|
TableColHeaderTheme
|
30
31
|
} from '@instructure/shared-types'
|
@@ -46,7 +47,11 @@ type PropKeys = keyof TableColHeaderOwnProps
|
|
46
47
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
47
48
|
|
48
49
|
type TableColHeaderProps = TableColHeaderOwnProps &
|
49
|
-
WithStyleProps<TableColHeaderTheme, TableColHeaderStyle>
|
50
|
+
WithStyleProps<TableColHeaderTheme, TableColHeaderStyle> &
|
51
|
+
OtherHTMLAttributes<
|
52
|
+
TableColHeaderOwnProps,
|
53
|
+
ThHTMLAttributes<TableColHeaderOwnProps>
|
54
|
+
>
|
50
55
|
|
51
56
|
type TableColHeaderStyle = ComponentStyle<'colHeader' | 'button'>
|
52
57
|
|
package/src/Table/Head/props.ts
CHANGED
@@ -29,7 +29,11 @@ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types'
|
|
29
29
|
|
30
30
|
import { Row } from '../Row'
|
31
31
|
|
32
|
-
import type {
|
32
|
+
import type {
|
33
|
+
OtherHTMLAttributes,
|
34
|
+
PropValidators,
|
35
|
+
TableHeadTheme
|
36
|
+
} from '@instructure/shared-types'
|
33
37
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
34
38
|
|
35
39
|
type TableHeadOwnProps = {
|
@@ -42,7 +46,8 @@ type PropKeys = keyof TableHeadOwnProps
|
|
42
46
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
43
47
|
|
44
48
|
type TableHeadProps = TableHeadOwnProps &
|
45
|
-
WithStyleProps<TableHeadTheme, TableHeadStyle>
|
49
|
+
WithStyleProps<TableHeadTheme, TableHeadStyle> &
|
50
|
+
OtherHTMLAttributes<TableHeadOwnProps>
|
46
51
|
|
47
52
|
type TableHeadStyle = ComponentStyle<'head'>
|
48
53
|
|
package/src/Table/Row/props.ts
CHANGED
@@ -31,7 +31,11 @@ import { ColHeader } from '../ColHeader'
|
|
31
31
|
import { RowHeader } from '../RowHeader'
|
32
32
|
import { Cell } from '../Cell'
|
33
33
|
|
34
|
-
import type {
|
34
|
+
import type {
|
35
|
+
OtherHTMLAttributes,
|
36
|
+
PropValidators,
|
37
|
+
TableRowTheme
|
38
|
+
} from '@instructure/shared-types'
|
35
39
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
36
40
|
|
37
41
|
type TableRowOwnProps = {
|
@@ -46,7 +50,8 @@ type PropKeys = keyof TableRowOwnProps
|
|
46
50
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
47
51
|
|
48
52
|
type TableRowProps = TableRowOwnProps &
|
49
|
-
WithStyleProps<TableRowTheme, TableRowStyle>
|
53
|
+
WithStyleProps<TableRowTheme, TableRowStyle> &
|
54
|
+
OtherHTMLAttributes<TableRowOwnProps>
|
50
55
|
|
51
56
|
type TableRowStyle = ComponentStyle<'row'>
|
52
57
|
|
@@ -26,6 +26,7 @@ import React from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
27
27
|
|
28
28
|
import type {
|
29
|
+
OtherHTMLAttributes,
|
29
30
|
PropValidators,
|
30
31
|
TableRowHeaderTheme
|
31
32
|
} from '@instructure/shared-types'
|
@@ -42,7 +43,8 @@ type PropKeys = keyof TableRowHeaderOwnProps
|
|
42
43
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
43
44
|
|
44
45
|
type TableRowHeaderProps = TableRowHeaderOwnProps &
|
45
|
-
WithStyleProps<TableRowHeaderTheme, TableRowHeaderStyle>
|
46
|
+
WithStyleProps<TableRowHeaderTheme, TableRowHeaderStyle> &
|
47
|
+
OtherHTMLAttributes<TableRowHeaderOwnProps>
|
46
48
|
|
47
49
|
type TableRowHeaderStyle = ComponentStyle<'rowHeader'>
|
48
50
|
|
package/src/Table/index.tsx
CHANGED
@@ -72,6 +72,18 @@ class Table extends Component<TableProps> {
|
|
72
72
|
static RowHeader = RowHeader
|
73
73
|
static Cell = Cell
|
74
74
|
|
75
|
+
ref: Element | null = null
|
76
|
+
|
77
|
+
handleRef = (el: Element | null) => {
|
78
|
+
const { elementRef } = this.props
|
79
|
+
|
80
|
+
this.ref = el
|
81
|
+
|
82
|
+
if (typeof elementRef === 'function') {
|
83
|
+
elementRef(el)
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
75
87
|
componentDidMount() {
|
76
88
|
this.props.makeStyles?.()
|
77
89
|
}
|
@@ -101,15 +113,7 @@ class Table extends Component<TableProps> {
|
|
101
113
|
}
|
102
114
|
|
103
115
|
render() {
|
104
|
-
const {
|
105
|
-
margin,
|
106
|
-
elementRef,
|
107
|
-
layout,
|
108
|
-
caption,
|
109
|
-
children,
|
110
|
-
hover,
|
111
|
-
styles
|
112
|
-
} = this.props
|
116
|
+
const { margin, layout, caption, children, hover, styles } = this.props
|
113
117
|
const isStacked = layout === 'stacked'
|
114
118
|
const headers = isStacked ? this.getHeaders() : null
|
115
119
|
|
@@ -121,7 +125,7 @@ class Table extends Component<TableProps> {
|
|
121
125
|
)}
|
122
126
|
as={isStacked ? 'div' : 'table'}
|
123
127
|
margin={margin}
|
124
|
-
elementRef={
|
128
|
+
elementRef={this.handleRef}
|
125
129
|
css={styles?.table}
|
126
130
|
role={isStacked ? 'table' : undefined}
|
127
131
|
aria-label={isStacked ? (caption as string) : undefined}
|
package/src/Table/props.ts
CHANGED
@@ -35,7 +35,11 @@ import type {
|
|
35
35
|
WithStyleProps,
|
36
36
|
ComponentStyle
|
37
37
|
} from '@instructure/emotion'
|
38
|
-
import type {
|
38
|
+
import type {
|
39
|
+
OtherHTMLAttributes,
|
40
|
+
PropValidators,
|
41
|
+
TableTheme
|
42
|
+
} from '@instructure/shared-types'
|
39
43
|
|
40
44
|
type TableOwnProps = {
|
41
45
|
caption: React.ReactNode
|
@@ -50,7 +54,9 @@ type PropKeys = keyof TableOwnProps
|
|
50
54
|
|
51
55
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
52
56
|
|
53
|
-
type TableProps = TableOwnProps &
|
57
|
+
type TableProps = TableOwnProps &
|
58
|
+
WithStyleProps<TableTheme, TableStyle> &
|
59
|
+
OtherHTMLAttributes<TableOwnProps>
|
54
60
|
|
55
61
|
type TableStyle = ComponentStyle<'table'>
|
56
62
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { PropValidators, TableBodyTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, TableBodyTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableBodyOwnProps = {
|
5
5
|
hover?: boolean;
|
@@ -9,7 +9,7 @@ declare type TableBodyOwnProps = {
|
|
9
9
|
};
|
10
10
|
declare type PropKeys = keyof TableBodyOwnProps;
|
11
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
12
|
-
declare type TableBodyProps = TableBodyOwnProps & WithStyleProps<TableBodyTheme, TableBodyStyle>;
|
12
|
+
declare type TableBodyProps = TableBodyOwnProps & WithStyleProps<TableBodyTheme, TableBodyStyle> & OtherHTMLAttributes<TableBodyOwnProps>;
|
13
13
|
declare type TableBodyStyle = ComponentStyle<'body'>;
|
14
14
|
declare const propTypes: PropValidators<PropKeys>;
|
15
15
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Body/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Body/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAA;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,aAAK,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAUvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
3
|
-
import type { PropValidators, TableCellTheme } from '@instructure/shared-types';
|
3
|
+
import type { OtherHTMLAttributes, PropValidators, TableCellTheme } from '@instructure/shared-types';
|
4
4
|
declare type TableCellOwnProps = {
|
5
5
|
isStacked?: boolean;
|
6
6
|
header?: React.ReactNode | ((...args: any[]) => any);
|
@@ -9,7 +9,7 @@ declare type TableCellOwnProps = {
|
|
9
9
|
};
|
10
10
|
declare type PropKeys = keyof TableCellOwnProps;
|
11
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
12
|
-
declare type TableCellProps = TableCellOwnProps & WithStyleProps<TableCellTheme, TableCellStyle>;
|
12
|
+
declare type TableCellProps = TableCellOwnProps & WithStyleProps<TableCellTheme, TableCellStyle> & OtherHTMLAttributes<TableCellOwnProps>;
|
13
13
|
declare type TableCellStyle = ComponentStyle<'cell'>;
|
14
14
|
declare const propTypes: PropValidators<PropKeys>;
|
15
15
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Cell/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Cell/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACpD,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACnE,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,aAAK,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAQvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { PropValidators, TableColHeaderTheme } from '@instructure/shared-types';
|
1
|
+
import React, { ThHTMLAttributes } from 'react';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, TableColHeaderTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableColHeaderOwnProps = {
|
5
5
|
id: string;
|
@@ -13,7 +13,7 @@ declare type TableColHeaderOwnProps = {
|
|
13
13
|
};
|
14
14
|
declare type PropKeys = keyof TableColHeaderOwnProps;
|
15
15
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
16
|
-
declare type TableColHeaderProps = TableColHeaderOwnProps & WithStyleProps<TableColHeaderTheme, TableColHeaderStyle
|
16
|
+
declare type TableColHeaderProps = TableColHeaderOwnProps & WithStyleProps<TableColHeaderTheme, TableColHeaderStyle> & OtherHTMLAttributes<TableColHeaderOwnProps, ThHTMLAttributes<TableColHeaderOwnProps>>;
|
17
17
|
declare type TableColHeaderStyle = ComponentStyle<'colHeader' | 'button'>;
|
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/Table/ColHeader/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/ColHeader/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAG/C,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,aAAa,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,YAAY,CAAA;IACnD,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACvC,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACnE,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CACjB,sBAAsB,EACtB,gBAAgB,CAAC,sBAAsB,CAAC,CACzC,CAAA;AAEH,aAAK,mBAAmB,GAAG,cAAc,CAAC,WAAW,GAAG,QAAQ,CAAC,CAAA;AAEjE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAiCvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eASnB,CAAA;AAED,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { PropValidators, TableHeadTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, TableHeadTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableHeadOwnProps = {
|
5
5
|
isStacked?: boolean;
|
@@ -8,7 +8,7 @@ declare type TableHeadOwnProps = {
|
|
8
8
|
};
|
9
9
|
declare type PropKeys = keyof TableHeadOwnProps;
|
10
10
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
11
|
-
declare type TableHeadProps = TableHeadOwnProps & WithStyleProps<TableHeadTheme, TableHeadStyle>;
|
11
|
+
declare type TableHeadProps = TableHeadOwnProps & WithStyleProps<TableHeadTheme, TableHeadStyle> & OtherHTMLAttributes<TableHeadOwnProps>;
|
12
12
|
declare type TableHeadStyle = ComponentStyle<'head'>;
|
13
13
|
declare const propTypes: PropValidators<PropKeys>;
|
14
14
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Head/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC7D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AACD,aAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,GAC9C,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,aAAK,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAOvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAInB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { PropValidators, TableRowTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, TableRowTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableRowOwnProps = {
|
5
5
|
hover?: boolean;
|
@@ -9,7 +9,7 @@ declare type TableRowOwnProps = {
|
|
9
9
|
};
|
10
10
|
declare type PropKeys = keyof TableRowOwnProps;
|
11
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
12
|
-
declare type TableRowProps = TableRowOwnProps & WithStyleProps<TableRowTheme, TableRowStyle>;
|
12
|
+
declare type TableRowProps = TableRowOwnProps & WithStyleProps<TableRowTheme, TableRowStyle> & OtherHTMLAttributes<TableRowOwnProps>;
|
13
13
|
declare type TableRowStyle = ComponentStyle<'row'>;
|
14
14
|
declare const propTypes: PropValidators<PropKeys>;
|
15
15
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Row/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/Row/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAA;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,aAAa,GAAG,gBAAgB,GACnC,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,GAC5C,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEvC,aAAK,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAE1C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAUvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import type { PropValidators, TableRowHeaderTheme } from '@instructure/shared-types';
|
2
|
+
import type { OtherHTMLAttributes, PropValidators, TableRowHeaderTheme } from '@instructure/shared-types';
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
4
4
|
declare type TableRowHeaderOwnProps = {
|
5
5
|
isStacked?: boolean;
|
@@ -8,7 +8,7 @@ declare type TableRowHeaderOwnProps = {
|
|
8
8
|
};
|
9
9
|
declare type PropKeys = keyof TableRowHeaderOwnProps;
|
10
10
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
11
|
-
declare type TableRowHeaderProps = TableRowHeaderOwnProps & WithStyleProps<TableRowHeaderTheme, TableRowHeaderStyle>;
|
11
|
+
declare type TableRowHeaderProps = TableRowHeaderOwnProps & WithStyleProps<TableRowHeaderTheme, TableRowHeaderStyle> & OtherHTMLAttributes<TableRowHeaderOwnProps>;
|
12
12
|
declare type TableRowHeaderStyle = ComponentStyle<'rowHeader'>;
|
13
13
|
declare const propTypes: PropValidators<PropKeys>;
|
14
14
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/RowHeader/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACnE,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Table/RowHeader/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACnE,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,aAAK,mBAAmB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAEtD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAOvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAwD,CAAA;AAE5E,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Table/index.d.ts
CHANGED
@@ -42,6 +42,8 @@ declare class Table extends Component<TableProps> {
|
|
42
42
|
static ColHeader: typeof ColHeader;
|
43
43
|
static RowHeader: typeof RowHeader;
|
44
44
|
static Cell: typeof Cell;
|
45
|
+
ref: Element | null;
|
46
|
+
handleRef: (el: Element | null) => void;
|
45
47
|
componentDidMount(): void;
|
46
48
|
componentDidUpdate(): void;
|
47
49
|
getHeaders(): any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAUzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC;;;;GAIG;AACH,cACM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;MAIlB;IAED,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,GAAG,aAAM;IAChB,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,IAAI,cAAO;IAElB,iBAAiB;IAIjB,kBAAkB;IAIlB,UAAU;IAoBV,MAAM;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAUzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC;;;;GAIG;AACH,cACM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;MAIlB;IAED,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,IAAI,cAAO;IAClB,MAAM,CAAC,GAAG,aAAM;IAChB,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,IAAI,cAAO;IAElB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,UAAU;IAoBV,MAAM;CA6CP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
package/types/Table/props.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
3
|
-
import type { PropValidators, TableTheme } from '@instructure/shared-types';
|
3
|
+
import type { OtherHTMLAttributes, PropValidators, TableTheme } from '@instructure/shared-types';
|
4
4
|
declare type TableOwnProps = {
|
5
5
|
caption: React.ReactNode;
|
6
6
|
margin?: Spacing;
|
@@ -11,7 +11,7 @@ declare type TableOwnProps = {
|
|
11
11
|
};
|
12
12
|
declare type PropKeys = keyof TableOwnProps;
|
13
13
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
14
|
-
declare type TableProps = TableOwnProps & WithStyleProps<TableTheme, TableStyle>;
|
14
|
+
declare type TableProps = TableOwnProps & WithStyleProps<TableTheme, TableStyle> & OtherHTMLAttributes<TableOwnProps>;
|
15
15
|
declare type TableStyle = ComponentStyle<'table'>;
|
16
16
|
declare const propTypes: PropValidators<PropKeys>;
|
17
17
|
declare const allowedProps: AllowedPropKeys;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Table/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Table/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,UAAU,EACX,MAAM,2BAA2B,CAAA;AAElC,aAAK,aAAa,GAAG;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,aAAa,CAAA;AAEnC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,UAAU,GAAG,aAAa,GAC7B,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC,GACtC,mBAAmB,CAAC,aAAa,CAAC,CAAA;AAEpC,aAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA8BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAOnB,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|