@instructure/ui-table 11.7.4-snapshot-11 → 11.7.4-snapshot-49
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 +1 -1
- package/LICENSE.md +1 -0
- package/es/Table/v1/Body/index.js +6 -5
- package/es/Table/v1/Cell/index.js +6 -5
- package/es/Table/v1/ColHeader/index.js +5 -4
- package/es/Table/v1/Head/index.js +6 -5
- package/es/Table/v1/Row/index.js +6 -5
- package/es/Table/v1/RowHeader/index.js +6 -5
- package/es/Table/v1/index.js +11 -11
- package/es/Table/v2/Body/index.js +5 -4
- package/es/Table/v2/Cell/index.js +5 -4
- package/es/Table/v2/ColHeader/index.js +3 -3
- package/es/Table/v2/Head/index.js +5 -4
- package/es/Table/v2/Row/index.js +5 -4
- package/es/Table/v2/RowHeader/index.js +5 -4
- package/es/Table/v2/index.js +10 -10
- package/es/exports/a.js +8 -8
- package/es/exports/b.js +8 -8
- package/lib/Table/v1/Body/index.js +5 -5
- package/lib/Table/v1/Cell/index.js +5 -5
- package/lib/Table/v1/ColHeader/index.js +4 -4
- package/lib/Table/v1/Head/index.js +5 -5
- package/lib/Table/v1/Row/index.js +5 -5
- package/lib/Table/v1/RowHeader/index.js +5 -5
- package/lib/Table/v1/index.js +17 -17
- package/lib/Table/v2/Body/index.js +4 -4
- package/lib/Table/v2/Cell/index.js +4 -4
- package/lib/Table/v2/ColHeader/index.js +3 -3
- package/lib/Table/v2/Head/index.js +4 -4
- package/lib/Table/v2/Row/index.js +4 -4
- package/lib/Table/v2/RowHeader/index.js +4 -4
- package/lib/Table/v2/index.js +16 -16
- package/lib/exports/a.js +15 -15
- package/lib/exports/b.js +15 -15
- package/package.json +14 -14
- package/src/Table/v1/Body/index.tsx +5 -4
- package/src/Table/v1/Cell/index.tsx +5 -4
- package/src/Table/v1/ColHeader/index.tsx +4 -3
- package/src/Table/v1/Head/index.tsx +5 -4
- package/src/Table/v1/Head/props.ts +1 -1
- package/src/Table/v1/Row/index.tsx +5 -4
- package/src/Table/v1/RowHeader/index.tsx +5 -4
- package/src/Table/v1/index.tsx +11 -10
- package/src/Table/v2/Body/index.tsx +4 -3
- package/src/Table/v2/Cell/index.tsx +4 -3
- package/src/Table/v2/ColHeader/index.tsx +3 -2
- package/src/Table/v2/Head/index.tsx +4 -3
- package/src/Table/v2/Head/props.ts +1 -1
- package/src/Table/v2/Row/index.tsx +4 -3
- package/src/Table/v2/RowHeader/index.tsx +4 -3
- package/src/Table/v2/index.tsx +10 -9
- package/src/exports/a.ts +8 -8
- package/src/exports/b.ts +8 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Table/v1/Body/index.d.ts +3 -2
- package/types/Table/v1/Body/index.d.ts.map +1 -1
- package/types/Table/v1/Cell/index.d.ts +3 -2
- package/types/Table/v1/Cell/index.d.ts.map +1 -1
- package/types/Table/v1/ColHeader/index.d.ts +1 -0
- package/types/Table/v1/ColHeader/index.d.ts.map +1 -1
- package/types/Table/v1/Head/index.d.ts +3 -2
- package/types/Table/v1/Head/index.d.ts.map +1 -1
- package/types/Table/v1/Head/props.d.ts +1 -1
- package/types/Table/v1/Head/props.d.ts.map +1 -1
- package/types/Table/v1/Row/index.d.ts +3 -2
- package/types/Table/v1/Row/index.d.ts.map +1 -1
- package/types/Table/v1/RowHeader/index.d.ts +3 -2
- package/types/Table/v1/RowHeader/index.d.ts.map +1 -1
- package/types/Table/v1/index.d.ts +7 -6
- package/types/Table/v1/index.d.ts.map +1 -1
- package/types/Table/v2/Body/index.d.ts +3 -2
- package/types/Table/v2/Body/index.d.ts.map +1 -1
- package/types/Table/v2/Cell/index.d.ts +3 -2
- package/types/Table/v2/Cell/index.d.ts.map +1 -1
- package/types/Table/v2/ColHeader/index.d.ts +1 -0
- package/types/Table/v2/ColHeader/index.d.ts.map +1 -1
- package/types/Table/v2/Head/index.d.ts +3 -2
- package/types/Table/v2/Head/index.d.ts.map +1 -1
- package/types/Table/v2/Head/props.d.ts +1 -1
- package/types/Table/v2/Head/props.d.ts.map +1 -1
- package/types/Table/v2/Row/index.d.ts +3 -2
- package/types/Table/v2/Row/index.d.ts.map +1 -1
- package/types/Table/v2/RowHeader/index.d.ts +3 -2
- package/types/Table/v2/RowHeader/index.d.ts.map +1 -1
- package/types/Table/v2/index.d.ts +7 -6
- package/types/Table/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +8 -8
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +8 -8
- package/types/exports/b.d.ts.map +1 -1
|
@@ -10,9 +10,9 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
10
10
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
11
11
|
var _latest = require("@instructure/ui-view/latest");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
15
|
-
var _TableContext = _interopRequireDefault(require("../TableContext"));
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
|
+
var _TableContext = _interopRequireDefault(require("../TableContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: Table.Body
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let Body = exports.Body = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Body extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'Body';
|
|
49
49
|
static componentId = 'Table.Body';
|
|
50
50
|
static contextType = _TableContext.default;
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
@@ -10,9 +10,9 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
|
10
10
|
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
|
|
11
11
|
var _latest = require("@instructure/ui-view/latest");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
15
|
-
var _TableContext = _interopRequireDefault(require("../TableContext"));
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
|
+
var _TableContext = _interopRequireDefault(require("../TableContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: Table.Cell
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let Cell = exports.Cell = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Cell extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'Cell';
|
|
49
49
|
static componentId = 'Table.Cell';
|
|
50
50
|
static contextType = _TableContext.default;
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
@@ -9,8 +9,8 @@ var _react = require("react");
|
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
10
|
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
-
var _props = require("./props");
|
|
12
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
13
|
+
var _props = require("./props.js");
|
|
14
14
|
var _uiIcons = require("@instructure/ui-icons");
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
16
|
var _dec, _class;
|
|
@@ -44,7 +44,7 @@ id: Table.ColHeader
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class ColHeader extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'ColHeader';
|
|
48
48
|
static componentId = 'Table.ColHeader';
|
|
49
49
|
static allowedProps = _props.allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -13,9 +13,9 @@ var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReade
|
|
|
13
13
|
var _uiIcons = require("@instructure/ui-icons");
|
|
14
14
|
var _console = require("@instructure/console");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
17
|
-
var _props = require("./props");
|
|
18
|
-
var _TableContext = _interopRequireDefault(require("../TableContext"));
|
|
16
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
17
|
+
var _props = require("./props.js");
|
|
18
|
+
var _TableContext = _interopRequireDefault(require("../TableContext.js"));
|
|
19
19
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
20
20
|
var _dec, _class;
|
|
21
21
|
/*
|
|
@@ -48,7 +48,7 @@ id: Table.Head
|
|
|
48
48
|
---
|
|
49
49
|
**/
|
|
50
50
|
let Head = exports.Head = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Head extends _react.Component {
|
|
51
|
-
static displayName =
|
|
51
|
+
static displayName = 'Head';
|
|
52
52
|
static componentId = 'Table.Head';
|
|
53
53
|
static contextType = _TableContext.default;
|
|
54
54
|
static allowedProps = _props.allowedProps;
|
|
@@ -10,9 +10,9 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
|
10
10
|
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
11
11
|
var _latest = require("@instructure/ui-view/latest");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
15
|
-
var _TableContext = _interopRequireDefault(require("../TableContext"));
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
|
+
var _TableContext = _interopRequireDefault(require("../TableContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: Table.Row
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let Row = exports.Row = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Row extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'Row';
|
|
49
49
|
static componentId = 'Table.Row';
|
|
50
50
|
static contextType = _TableContext.default;
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
@@ -10,9 +10,9 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
|
10
10
|
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
|
|
11
11
|
var _latest = require("@instructure/ui-view/latest");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
15
|
-
var _TableContext = _interopRequireDefault(require("../TableContext"));
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
|
+
var _TableContext = _interopRequireDefault(require("../TableContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: Table.RowHeader
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let RowHeader = exports.RowHeader = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class RowHeader extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'RowHeader';
|
|
49
49
|
static componentId = 'Table.RowHeader';
|
|
50
50
|
static contextType = _TableContext.default;
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
package/lib/Table/v2/index.js
CHANGED
|
@@ -11,15 +11,15 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
|
11
11
|
var _latest = require("@instructure/ui-view/latest");
|
|
12
12
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var _props = require("./props");
|
|
22
|
-
var _TableContext = _interopRequireDefault(require("./TableContext"));
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _index = require("./Head/index.js");
|
|
16
|
+
var _index2 = require("./Body/index.js");
|
|
17
|
+
var _index3 = require("./Row/index.js");
|
|
18
|
+
var _index4 = require("./ColHeader/index.js");
|
|
19
|
+
var _index5 = require("./RowHeader/index.js");
|
|
20
|
+
var _index6 = require("./Cell/index.js");
|
|
21
|
+
var _props = require("./props.js");
|
|
22
|
+
var _TableContext = _interopRequireDefault(require("./TableContext.js"));
|
|
23
23
|
var _console = require("@instructure/console");
|
|
24
24
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
25
25
|
var _dec, _class;
|
|
@@ -52,7 +52,7 @@ category: components
|
|
|
52
52
|
---
|
|
53
53
|
**/
|
|
54
54
|
let Table = exports.Table = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Table extends _react.Component {
|
|
55
|
-
static displayName =
|
|
55
|
+
static displayName = 'Table';
|
|
56
56
|
static componentId = 'Table';
|
|
57
57
|
static allowedProps = _props.allowedProps;
|
|
58
58
|
static defaultProps = {
|
|
@@ -60,12 +60,12 @@ let Table = exports.Table = (_dec = (0, _emotion.withStyleNew)(_styles.default),
|
|
|
60
60
|
hover: false,
|
|
61
61
|
layout: 'auto'
|
|
62
62
|
};
|
|
63
|
-
static Head =
|
|
64
|
-
static Body =
|
|
65
|
-
static Row =
|
|
66
|
-
static ColHeader =
|
|
67
|
-
static RowHeader =
|
|
68
|
-
static Cell =
|
|
63
|
+
static Head = _index.Head;
|
|
64
|
+
static Body = _index2.Body;
|
|
65
|
+
static Row = _index3.Row;
|
|
66
|
+
static ColHeader = _index4.ColHeader;
|
|
67
|
+
static RowHeader = _index5.RowHeader;
|
|
68
|
+
static Cell = _index6.Cell;
|
|
69
69
|
ref = null;
|
|
70
70
|
// Reference to hidden aria-live region for announcing caption changes to screen readers
|
|
71
71
|
_liveRegionRef = null;
|
package/lib/exports/a.js
CHANGED
|
@@ -6,25 +6,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Table", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Table;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TableBody", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index2.Body;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "TableCell", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index3.Cell;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "TableColHeader", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return
|
|
27
|
+
return _index4.ColHeader;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "TableContext", {
|
|
@@ -36,26 +36,26 @@ Object.defineProperty(exports, "TableContext", {
|
|
|
36
36
|
Object.defineProperty(exports, "TableHead", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
|
-
return
|
|
39
|
+
return _index5.Head;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "TableRow", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function () {
|
|
45
|
-
return
|
|
45
|
+
return _index6.Row;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "TableRowHeader", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function () {
|
|
51
|
-
return
|
|
51
|
+
return _index7.RowHeader;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
var
|
|
55
|
-
var _TableContext = require("../Table/v1/TableContext");
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
54
|
+
var _index = require("../Table/v1/index.js");
|
|
55
|
+
var _TableContext = require("../Table/v1/TableContext.js");
|
|
56
|
+
var _index2 = require("../Table/v1/Body/index.js");
|
|
57
|
+
var _index3 = require("../Table/v1/Cell/index.js");
|
|
58
|
+
var _index4 = require("../Table/v1/ColHeader/index.js");
|
|
59
|
+
var _index5 = require("../Table/v1/Head/index.js");
|
|
60
|
+
var _index6 = require("../Table/v1/Row/index.js");
|
|
61
|
+
var _index7 = require("../Table/v1/RowHeader/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,25 +6,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Table", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Table;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TableBody", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index2.Body;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "TableCell", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index3.Cell;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "TableColHeader", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return
|
|
27
|
+
return _index4.ColHeader;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "TableContext", {
|
|
@@ -36,26 +36,26 @@ Object.defineProperty(exports, "TableContext", {
|
|
|
36
36
|
Object.defineProperty(exports, "TableHead", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
|
-
return
|
|
39
|
+
return _index5.Head;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "TableRow", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function () {
|
|
45
|
-
return
|
|
45
|
+
return _index6.Row;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "TableRowHeader", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function () {
|
|
51
|
-
return
|
|
51
|
+
return _index7.RowHeader;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
var
|
|
55
|
-
var _TableContext = require("../Table/v2/TableContext");
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
54
|
+
var _index = require("../Table/v2/index.js");
|
|
55
|
+
var _TableContext = require("../Table/v2/TableContext.js");
|
|
56
|
+
var _index2 = require("../Table/v2/Body/index.js");
|
|
57
|
+
var _index3 = require("../Table/v2/Cell/index.js");
|
|
58
|
+
var _index4 = require("../Table/v2/ColHeader/index.js");
|
|
59
|
+
var _index5 = require("../Table/v2/Head/index.js");
|
|
60
|
+
var _index6 = require("../Table/v2/Row/index.js");
|
|
61
|
+
var _index7 = require("../Table/v2/RowHeader/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-table",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-49",
|
|
4
4
|
"description": "A styled HTML table component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.4-snapshot-
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-icons": "11.7.4-snapshot-
|
|
23
|
-
"@instructure/ui-react-utils": "11.7.4-snapshot-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/console": "11.7.4-snapshot-49",
|
|
19
|
+
"@instructure/emotion": "11.7.4-snapshot-49",
|
|
20
|
+
"@instructure/ui-a11y-content": "11.7.4-snapshot-49",
|
|
21
|
+
"@instructure/shared-types": "11.7.4-snapshot-49",
|
|
22
|
+
"@instructure/ui-icons": "11.7.4-snapshot-49",
|
|
23
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-49",
|
|
24
|
+
"@instructure/ui-themes": "11.7.4-snapshot-49",
|
|
25
|
+
"@instructure/ui-utils": "11.7.4-snapshot-49",
|
|
26
|
+
"@instructure/ui-view": "11.7.4-snapshot-49",
|
|
27
|
+
"@instructure/ui-simple-select": "11.7.4-snapshot-49"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
31
31
|
"@testing-library/react": "15.0.7",
|
|
32
32
|
"@testing-library/user-event": "^14.6.1",
|
|
33
33
|
"vitest": "^3.2.2",
|
|
34
|
-
"@instructure/ui-
|
|
35
|
-
"@instructure/ui-babel-preset": "11.7.4-snapshot-
|
|
36
|
-
"@instructure/ui-
|
|
34
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-49",
|
|
35
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-49",
|
|
36
|
+
"@instructure/ui-color-utils": "11.7.4-snapshot-49"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18 <=19"
|
|
@@ -34,11 +34,11 @@ import { safeCloneElement, omitProps } from '@instructure/ui-react-utils'
|
|
|
34
34
|
import { View } from '@instructure/ui-view/v11_6'
|
|
35
35
|
import { withStyle } from '@instructure/emotion'
|
|
36
36
|
|
|
37
|
-
import generateStyle from './styles'
|
|
38
|
-
import generateComponentTheme from './theme'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
|
+
import generateComponentTheme from './theme.js'
|
|
39
39
|
import type { TableBodyProps } from './props'
|
|
40
|
-
import { allowedProps } from './props'
|
|
41
|
-
import TableContext from '../TableContext'
|
|
40
|
+
import { allowedProps } from './props.js'
|
|
41
|
+
import TableContext from '../TableContext.js'
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
---
|
|
@@ -48,6 +48,7 @@ id: Table.Body
|
|
|
48
48
|
**/
|
|
49
49
|
@withStyle(generateStyle, generateComponentTheme)
|
|
50
50
|
class Body extends Component<TableBodyProps> {
|
|
51
|
+
static displayName = 'Body'
|
|
51
52
|
static readonly componentId = 'Table.Body'
|
|
52
53
|
static contextType = TableContext
|
|
53
54
|
declare context: ContextType<typeof TableContext>
|
|
@@ -29,11 +29,11 @@ import { View } from '@instructure/ui-view/v11_6'
|
|
|
29
29
|
|
|
30
30
|
import { withStyle } from '@instructure/emotion'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
33
|
-
import generateComponentTheme from './theme'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
|
+
import generateComponentTheme from './theme.js'
|
|
34
34
|
import type { TableCellProps } from './props'
|
|
35
|
-
import { allowedProps } from './props'
|
|
36
|
-
import TableContext from '../TableContext'
|
|
35
|
+
import { allowedProps } from './props.js'
|
|
36
|
+
import TableContext from '../TableContext.js'
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -43,6 +43,7 @@ id: Table.Cell
|
|
|
43
43
|
**/
|
|
44
44
|
@withStyle(generateStyle, generateComponentTheme)
|
|
45
45
|
class Cell extends Component<TableCellProps> {
|
|
46
|
+
static displayName = 'Cell'
|
|
46
47
|
static readonly componentId = 'Table.Cell'
|
|
47
48
|
static contextType = TableContext
|
|
48
49
|
declare context: ContextType<typeof TableContext>
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
|
|
34
34
|
import { withStyle } from '@instructure/emotion'
|
|
35
35
|
|
|
36
|
-
import generateStyle from './styles'
|
|
37
|
-
import generateComponentTheme from './theme'
|
|
36
|
+
import generateStyle from './styles.js'
|
|
37
|
+
import generateComponentTheme from './theme.js'
|
|
38
38
|
import type { TableColHeaderProps } from './props'
|
|
39
|
-
import { allowedProps } from './props'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
---
|
|
@@ -46,6 +46,7 @@ id: Table.ColHeader
|
|
|
46
46
|
**/
|
|
47
47
|
@withStyle(generateStyle, generateComponentTheme)
|
|
48
48
|
class ColHeader extends Component<TableColHeaderProps> {
|
|
49
|
+
static displayName = 'ColHeader'
|
|
49
50
|
static readonly componentId = 'Table.ColHeader'
|
|
50
51
|
|
|
51
52
|
static allowedProps = allowedProps
|
|
@@ -33,14 +33,14 @@ import { warn } from '@instructure/console'
|
|
|
33
33
|
|
|
34
34
|
import { withStyle } from '@instructure/emotion'
|
|
35
35
|
|
|
36
|
-
import generateStyle from './styles'
|
|
37
|
-
import generateComponentTheme from './theme'
|
|
36
|
+
import generateStyle from './styles.js'
|
|
37
|
+
import generateComponentTheme from './theme.js'
|
|
38
38
|
|
|
39
39
|
import type { TableColHeaderProps } from '../ColHeader/props'
|
|
40
40
|
import type { TableHeadProps } from './props'
|
|
41
41
|
import type { RowChild } from '../props'
|
|
42
|
-
import { allowedProps } from './props'
|
|
43
|
-
import TableContext from '../TableContext'
|
|
42
|
+
import { allowedProps } from './props.js'
|
|
43
|
+
import TableContext from '../TableContext.js'
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
---
|
|
@@ -50,6 +50,7 @@ id: Table.Head
|
|
|
50
50
|
**/
|
|
51
51
|
@withStyle(generateStyle, generateComponentTheme)
|
|
52
52
|
class Head extends Component<TableHeadProps> {
|
|
53
|
+
static displayName = 'Head'
|
|
53
54
|
static readonly componentId = 'Table.Head'
|
|
54
55
|
static contextType = TableContext
|
|
55
56
|
declare context: ContextType<typeof TableContext>
|
|
@@ -28,7 +28,7 @@ import type {
|
|
|
28
28
|
TableHeadTheme
|
|
29
29
|
} from '@instructure/shared-types'
|
|
30
30
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
31
|
-
import { RowChild } from '../props'
|
|
31
|
+
import { RowChild } from '../props.js'
|
|
32
32
|
|
|
33
33
|
type TableHeadOwnProps = {
|
|
34
34
|
/**
|
|
@@ -35,12 +35,12 @@ import { View } from '@instructure/ui-view/v11_6'
|
|
|
35
35
|
|
|
36
36
|
import { withStyle } from '@instructure/emotion'
|
|
37
37
|
|
|
38
|
-
import generateStyle from './styles'
|
|
39
|
-
import generateComponentTheme from './theme'
|
|
38
|
+
import generateStyle from './styles.js'
|
|
39
|
+
import generateComponentTheme from './theme.js'
|
|
40
40
|
|
|
41
41
|
import type { TableRowProps } from './props'
|
|
42
|
-
import { allowedProps } from './props'
|
|
43
|
-
import TableContext from '../TableContext'
|
|
42
|
+
import { allowedProps } from './props.js'
|
|
43
|
+
import TableContext from '../TableContext.js'
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
---
|
|
@@ -50,6 +50,7 @@ id: Table.Row
|
|
|
50
50
|
**/
|
|
51
51
|
@withStyle(generateStyle, generateComponentTheme)
|
|
52
52
|
class Row extends Component<TableRowProps> {
|
|
53
|
+
static displayName = 'Row'
|
|
53
54
|
static readonly componentId = 'Table.Row'
|
|
54
55
|
static contextType = TableContext
|
|
55
56
|
declare context: ContextType<typeof TableContext>
|
|
@@ -29,11 +29,11 @@ import { View } from '@instructure/ui-view/v11_6'
|
|
|
29
29
|
|
|
30
30
|
import { withStyle } from '@instructure/emotion'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
33
|
-
import generateComponentTheme from './theme'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
|
+
import generateComponentTheme from './theme.js'
|
|
34
34
|
import type { TableRowHeaderProps } from './props'
|
|
35
|
-
import { allowedProps } from './props'
|
|
36
|
-
import TableContext from '../TableContext'
|
|
35
|
+
import { allowedProps } from './props.js'
|
|
36
|
+
import TableContext from '../TableContext.js'
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -43,6 +43,7 @@ id: Table.RowHeader
|
|
|
43
43
|
**/
|
|
44
44
|
@withStyle(generateStyle, generateComponentTheme)
|
|
45
45
|
class RowHeader extends Component<TableRowHeaderProps> {
|
|
46
|
+
static displayName = 'RowHeader'
|
|
46
47
|
static readonly componentId = 'Table.RowHeader'
|
|
47
48
|
static contextType = TableContext
|
|
48
49
|
declare context: ContextType<typeof TableContext>
|
package/src/Table/v1/index.tsx
CHANGED
|
@@ -30,20 +30,20 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content'
|
|
|
30
30
|
|
|
31
31
|
import { withStyle } from '@instructure/emotion'
|
|
32
32
|
|
|
33
|
-
import generateStyle from './styles'
|
|
34
|
-
import generateComponentTheme from './theme'
|
|
33
|
+
import generateStyle from './styles.js'
|
|
34
|
+
import generateComponentTheme from './theme.js'
|
|
35
35
|
|
|
36
|
-
import { Head } from './Head'
|
|
37
|
-
import { Body } from './Body'
|
|
38
|
-
import { Row } from './Row'
|
|
39
|
-
import { ColHeader } from './ColHeader'
|
|
40
|
-
import { RowHeader } from './RowHeader'
|
|
41
|
-
import { Cell } from './Cell'
|
|
36
|
+
import { Head } from './Head/index.js'
|
|
37
|
+
import { Body } from './Body/index.js'
|
|
38
|
+
import { Row } from './Row/index.js'
|
|
39
|
+
import { ColHeader } from './ColHeader/index.js'
|
|
40
|
+
import { RowHeader } from './RowHeader/index.js'
|
|
41
|
+
import { Cell } from './Cell/index.js'
|
|
42
42
|
|
|
43
43
|
import type { TableProps } from './props'
|
|
44
44
|
|
|
45
|
-
import { allowedProps } from './props'
|
|
46
|
-
import TableContext from './TableContext'
|
|
45
|
+
import { allowedProps } from './props.js'
|
|
46
|
+
import TableContext from './TableContext.js'
|
|
47
47
|
import { error } from '@instructure/console'
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -53,6 +53,7 @@ category: components
|
|
|
53
53
|
**/
|
|
54
54
|
@withStyle(generateStyle, generateComponentTheme)
|
|
55
55
|
class Table extends Component<TableProps> {
|
|
56
|
+
static displayName = 'Table'
|
|
56
57
|
static readonly componentId = 'Table'
|
|
57
58
|
|
|
58
59
|
static allowedProps = allowedProps
|
|
@@ -34,10 +34,10 @@ import { safeCloneElement, omitProps } from '@instructure/ui-react-utils'
|
|
|
34
34
|
import { View } from '@instructure/ui-view/latest'
|
|
35
35
|
import { withStyleNew } from '@instructure/emotion'
|
|
36
36
|
|
|
37
|
-
import generateStyle from './styles'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
38
|
import type { TableBodyProps } from './props'
|
|
39
|
-
import { allowedProps } from './props'
|
|
40
|
-
import TableContext from '../TableContext'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
|
+
import TableContext from '../TableContext.js'
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
---
|
|
@@ -47,6 +47,7 @@ id: Table.Body
|
|
|
47
47
|
**/
|
|
48
48
|
@withStyleNew(generateStyle)
|
|
49
49
|
class Body extends Component<TableBodyProps> {
|
|
50
|
+
static displayName = 'Body'
|
|
50
51
|
static readonly componentId = 'Table.Body'
|
|
51
52
|
static contextType = TableContext
|
|
52
53
|
declare context: ContextType<typeof TableContext>
|
|
@@ -29,10 +29,10 @@ import { View } from '@instructure/ui-view/latest'
|
|
|
29
29
|
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
33
|
import type { TableCellProps } from './props'
|
|
34
|
-
import { allowedProps } from './props'
|
|
35
|
-
import TableContext from '../TableContext'
|
|
34
|
+
import { allowedProps } from './props.js'
|
|
35
|
+
import TableContext from '../TableContext.js'
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
---
|
|
@@ -42,6 +42,7 @@ id: Table.Cell
|
|
|
42
42
|
**/
|
|
43
43
|
@withStyleNew(generateStyle)
|
|
44
44
|
class Cell extends Component<TableCellProps> {
|
|
45
|
+
static displayName = 'Cell'
|
|
45
46
|
static readonly componentId = 'Table.Cell'
|
|
46
47
|
static contextType = TableContext
|
|
47
48
|
declare context: ContextType<typeof TableContext>
|
|
@@ -28,9 +28,9 @@ import { omitProps, callRenderProp } from '@instructure/ui-react-utils'
|
|
|
28
28
|
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion'
|
|
30
30
|
|
|
31
|
-
import generateStyle from './styles'
|
|
31
|
+
import generateStyle from './styles.js'
|
|
32
32
|
import type { TableColHeaderProps } from './props'
|
|
33
|
-
import { allowedProps } from './props'
|
|
33
|
+
import { allowedProps } from './props.js'
|
|
34
34
|
import {
|
|
35
35
|
ChevronsUpDownInstUIIcon,
|
|
36
36
|
ChevronUpInstUIIcon,
|
|
@@ -45,6 +45,7 @@ id: Table.ColHeader
|
|
|
45
45
|
**/
|
|
46
46
|
@withStyleNew(generateStyle)
|
|
47
47
|
class ColHeader extends Component<TableColHeaderProps> {
|
|
48
|
+
static displayName = 'ColHeader'
|
|
48
49
|
static readonly componentId = 'Table.ColHeader'
|
|
49
50
|
|
|
50
51
|
static allowedProps = allowedProps
|