@instructure/ui-table 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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/LICENSE.md +1 -0
- package/{lib/Table/v1/Cell/props.js → babel.config.cjs} +12 -7
- 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/package.json +16 -21
- 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
- package/lib/Table/v1/Body/index.js +0 -86
- package/lib/Table/v1/Body/props.js +0 -31
- package/lib/Table/v1/Body/styles.js +0 -51
- package/lib/Table/v1/Body/theme.js +0 -52
- package/lib/Table/v1/Cell/index.js +0 -79
- package/lib/Table/v1/Cell/styles.js +0 -63
- package/lib/Table/v1/Cell/theme.js +0 -56
- package/lib/Table/v1/ColHeader/index.js +0 -125
- package/lib/Table/v1/ColHeader/props.js +0 -31
- package/lib/Table/v1/ColHeader/styles.js +0 -108
- package/lib/Table/v1/ColHeader/theme.js +0 -69
- package/lib/Table/v1/Head/index.js +0 -179
- package/lib/Table/v1/Head/props.js +0 -31
- package/lib/Table/v1/Head/styles.js +0 -51
- package/lib/Table/v1/Head/theme.js +0 -52
- package/lib/Table/v1/Row/index.js +0 -93
- package/lib/Table/v1/Row/props.js +0 -31
- package/lib/Table/v1/Row/styles.js +0 -74
- package/lib/Table/v1/Row/theme.js +0 -63
- package/lib/Table/v1/RowHeader/index.js +0 -79
- package/lib/Table/v1/RowHeader/props.js +0 -31
- package/lib/Table/v1/RowHeader/styles.js +0 -63
- package/lib/Table/v1/RowHeader/theme.js +0 -56
- package/lib/Table/v1/TableContext.js +0 -51
- package/lib/Table/v1/index.js +0 -196
- package/lib/Table/v1/props.js +0 -31
- package/lib/Table/v1/styles.js +0 -74
- package/lib/Table/v1/theme.js +0 -59
- package/lib/Table/v2/Body/index.js +0 -85
- package/lib/Table/v2/Body/props.js +0 -31
- package/lib/Table/v2/Body/styles.js +0 -51
- package/lib/Table/v2/Cell/index.js +0 -78
- package/lib/Table/v2/Cell/props.js +0 -31
- package/lib/Table/v2/Cell/styles.js +0 -62
- package/lib/Table/v2/ColHeader/index.js +0 -124
- package/lib/Table/v2/ColHeader/props.js +0 -31
- package/lib/Table/v2/ColHeader/styles.js +0 -101
- package/lib/Table/v2/Head/index.js +0 -179
- package/lib/Table/v2/Head/props.js +0 -31
- package/lib/Table/v2/Head/styles.js +0 -51
- package/lib/Table/v2/Row/index.js +0 -92
- package/lib/Table/v2/Row/props.js +0 -31
- package/lib/Table/v2/Row/styles.js +0 -75
- package/lib/Table/v2/RowHeader/index.js +0 -78
- package/lib/Table/v2/RowHeader/props.js +0 -31
- package/lib/Table/v2/RowHeader/styles.js +0 -62
- package/lib/Table/v2/TableContext.js +0 -51
- package/lib/Table/v2/index.js +0 -195
- package/lib/Table/v2/props.js +0 -31
- package/lib/Table/v2/styles.js +0 -74
- package/lib/exports/a.js +0 -61
- package/lib/exports/b.js +0 -61
- package/lib/package.json +0 -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
|
+
## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
15
|
|
|
8
16
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES),
|
|
31
|
+
removeConsole: process.env.NODE_ENV === 'production',
|
|
32
|
+
transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -27,10 +27,11 @@ import { Component, Children, isValidElement } from 'react';
|
|
|
27
27
|
import { safeCloneElement, omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
33
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
import TableContext from '../TableContext.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
parent: Table
|
|
@@ -39,7 +40,7 @@ id: Table.Body
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let Body = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Body extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'Body';
|
|
43
44
|
static componentId = 'Table.Body';
|
|
44
45
|
static contextType = TableContext;
|
|
45
46
|
static allowedProps = allowedProps;
|
|
@@ -27,10 +27,11 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
33
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
import TableContext from '../TableContext.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
parent: Table
|
|
@@ -39,7 +40,7 @@ id: Table.Cell
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let Cell = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Cell extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'Cell';
|
|
43
44
|
static componentId = 'Table.Cell';
|
|
44
45
|
static contextType = TableContext;
|
|
45
46
|
static allowedProps = allowedProps;
|
|
@@ -27,9 +27,10 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { IconMiniArrowUpLine, IconMiniArrowDownLine, IconMiniArrowDoubleLine } from '@instructure/ui-icons';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: Table
|
|
@@ -38,7 +39,7 @@ id: Table.ColHeader
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ColHeader extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'ColHeader';
|
|
42
43
|
static componentId = 'Table.ColHeader';
|
|
43
44
|
static allowedProps = allowedProps;
|
|
44
45
|
static defaultProps = {
|
|
@@ -30,10 +30,11 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
30
30
|
import { IconCheckLine } from '@instructure/ui-icons';
|
|
31
31
|
import { warn } from '@instructure/console';
|
|
32
32
|
import { withStyle } from '@instructure/emotion';
|
|
33
|
-
import generateStyle from
|
|
34
|
-
import generateComponentTheme from
|
|
35
|
-
import { allowedProps } from
|
|
36
|
-
import TableContext from
|
|
33
|
+
import generateStyle from './styles.js';
|
|
34
|
+
import generateComponentTheme from './theme.js';
|
|
35
|
+
import { allowedProps } from './props.js';
|
|
36
|
+
import TableContext from '../TableContext.js';
|
|
37
|
+
|
|
37
38
|
/**
|
|
38
39
|
---
|
|
39
40
|
parent: Table
|
|
@@ -42,7 +43,7 @@ id: Table.Head
|
|
|
42
43
|
**/
|
|
43
44
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
44
45
|
let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Head extends Component {
|
|
45
|
-
static displayName =
|
|
46
|
+
static displayName = 'Head';
|
|
46
47
|
static componentId = 'Table.Head';
|
|
47
48
|
static contextType = TableContext;
|
|
48
49
|
static allowedProps = allowedProps;
|
package/es/Table/v1/Row/index.js
CHANGED
|
@@ -27,10 +27,11 @@ import { Component, Children, isValidElement } from 'react';
|
|
|
27
27
|
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
33
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
import TableContext from '../TableContext.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
parent: Table
|
|
@@ -39,7 +40,7 @@ id: Table.Row
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let Row = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Row extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'Row';
|
|
43
44
|
static componentId = 'Table.Row';
|
|
44
45
|
static contextType = TableContext;
|
|
45
46
|
static allowedProps = allowedProps;
|
|
@@ -27,10 +27,11 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { allowedProps } from
|
|
33
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
|
+
import TableContext from '../TableContext.js';
|
|
34
|
+
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
36
37
|
parent: Table
|
|
@@ -39,7 +40,7 @@ id: Table.RowHeader
|
|
|
39
40
|
**/
|
|
40
41
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
41
42
|
let RowHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class RowHeader extends Component {
|
|
42
|
-
static displayName =
|
|
43
|
+
static displayName = 'RowHeader';
|
|
43
44
|
static componentId = 'Table.RowHeader';
|
|
44
45
|
static contextType = TableContext;
|
|
45
46
|
static allowedProps = allowedProps;
|
package/es/Table/v1/index.js
CHANGED
|
@@ -28,16 +28,16 @@ import { safeCloneElement, omitProps } from '@instructure/ui-react-utils';
|
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
30
|
import { withStyle } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { Head } from
|
|
34
|
-
import { Body } from
|
|
35
|
-
import { Row } from
|
|
36
|
-
import { ColHeader } from
|
|
37
|
-
import { RowHeader } from
|
|
38
|
-
import { Cell } from
|
|
39
|
-
import { allowedProps } from
|
|
40
|
-
import TableContext from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import generateComponentTheme from './theme.js';
|
|
33
|
+
import { Head } from './Head/index.js';
|
|
34
|
+
import { Body } from './Body/index.js';
|
|
35
|
+
import { Row } from './Row/index.js';
|
|
36
|
+
import { ColHeader } from './ColHeader/index.js';
|
|
37
|
+
import { RowHeader } from './RowHeader/index.js';
|
|
38
|
+
import { Cell } from './Cell/index.js';
|
|
39
|
+
import { allowedProps } from './props.js';
|
|
40
|
+
import TableContext from './TableContext.js';
|
|
41
41
|
import { error } from '@instructure/console';
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -47,7 +47,7 @@ category: components
|
|
|
47
47
|
**/
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
49
49
|
let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Table extends Component {
|
|
50
|
-
static displayName =
|
|
50
|
+
static displayName = 'Table';
|
|
51
51
|
static componentId = 'Table';
|
|
52
52
|
static allowedProps = allowedProps;
|
|
53
53
|
static defaultProps = {
|
|
@@ -27,9 +27,10 @@ import { Component, Children, isValidElement } from 'react';
|
|
|
27
27
|
import { safeCloneElement, omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
32
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
import TableContext from '../TableContext.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: Table
|
|
@@ -38,7 +39,7 @@ id: Table.Body
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let Body = (_dec = withStyleNew(generateStyle), _dec(_class = class Body extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'Body';
|
|
42
43
|
static componentId = 'Table.Body';
|
|
43
44
|
static contextType = TableContext;
|
|
44
45
|
static allowedProps = allowedProps;
|
|
@@ -27,9 +27,10 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
32
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
import TableContext from '../TableContext.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: Table
|
|
@@ -38,7 +39,7 @@ id: Table.Cell
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let Cell = (_dec = withStyleNew(generateStyle), _dec(_class = class Cell extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'Cell';
|
|
42
43
|
static componentId = 'Table.Cell';
|
|
43
44
|
static contextType = TableContext;
|
|
44
45
|
static allowedProps = allowedProps;
|
|
@@ -26,8 +26,8 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyleNew } from '@instructure/emotion';
|
|
29
|
-
import generateStyle from
|
|
30
|
-
import { allowedProps } from
|
|
29
|
+
import generateStyle from './styles.js';
|
|
30
|
+
import { allowedProps } from './props.js';
|
|
31
31
|
import { ChevronsUpDownInstUIIcon, ChevronUpInstUIIcon, ChevronDownInstUIIcon } from '@instructure/ui-icons';
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -38,7 +38,7 @@ id: Table.ColHeader
|
|
|
38
38
|
**/
|
|
39
39
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
40
|
let ColHeader = (_dec = withStyleNew(generateStyle), _dec(_class = class ColHeader extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'ColHeader';
|
|
42
42
|
static componentId = 'Table.ColHeader';
|
|
43
43
|
static allowedProps = allowedProps;
|
|
44
44
|
static defaultProps = {
|
|
@@ -30,9 +30,10 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
30
30
|
import { CheckInstUIIcon } from '@instructure/ui-icons';
|
|
31
31
|
import { warn } from '@instructure/console';
|
|
32
32
|
import { withStyleNew } from '@instructure/emotion';
|
|
33
|
-
import generateStyle from
|
|
34
|
-
import { allowedProps } from
|
|
35
|
-
import TableContext from
|
|
33
|
+
import generateStyle from './styles.js';
|
|
34
|
+
import { allowedProps } from './props.js';
|
|
35
|
+
import TableContext from '../TableContext.js';
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
38
|
---
|
|
38
39
|
parent: Table
|
|
@@ -41,7 +42,7 @@ id: Table.Head
|
|
|
41
42
|
**/
|
|
42
43
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
43
44
|
let Head = (_dec = withStyleNew(generateStyle), _dec(_class = class Head extends Component {
|
|
44
|
-
static displayName =
|
|
45
|
+
static displayName = 'Head';
|
|
45
46
|
static componentId = 'Table.Head';
|
|
46
47
|
static contextType = TableContext;
|
|
47
48
|
static allowedProps = allowedProps;
|
package/es/Table/v2/Row/index.js
CHANGED
|
@@ -27,9 +27,10 @@ import { Component, Children, isValidElement } from 'react';
|
|
|
27
27
|
import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
32
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
import TableContext from '../TableContext.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: Table
|
|
@@ -38,7 +39,7 @@ id: Table.Row
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let Row = (_dec = withStyleNew(generateStyle), _dec(_class = class Row extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'Row';
|
|
42
43
|
static componentId = 'Table.Row';
|
|
43
44
|
static contextType = TableContext;
|
|
44
45
|
static allowedProps = allowedProps;
|
|
@@ -27,9 +27,10 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
32
|
-
import TableContext from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
import TableContext from '../TableContext.js';
|
|
33
|
+
|
|
33
34
|
/**
|
|
34
35
|
---
|
|
35
36
|
parent: Table
|
|
@@ -38,7 +39,7 @@ id: Table.RowHeader
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let RowHeader = (_dec = withStyleNew(generateStyle), _dec(_class = class RowHeader extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'RowHeader';
|
|
42
43
|
static componentId = 'Table.RowHeader';
|
|
43
44
|
static contextType = TableContext;
|
|
44
45
|
static allowedProps = allowedProps;
|
package/es/Table/v2/index.js
CHANGED
|
@@ -28,15 +28,15 @@ import { safeCloneElement, omitProps } from '@instructure/ui-react-utils';
|
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import { Head } from
|
|
33
|
-
import { Body } from
|
|
34
|
-
import { Row } from
|
|
35
|
-
import { ColHeader } from
|
|
36
|
-
import { RowHeader } from
|
|
37
|
-
import { Cell } from
|
|
38
|
-
import { allowedProps } from
|
|
39
|
-
import TableContext from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import { Head } from './Head/index.js';
|
|
33
|
+
import { Body } from './Body/index.js';
|
|
34
|
+
import { Row } from './Row/index.js';
|
|
35
|
+
import { ColHeader } from './ColHeader/index.js';
|
|
36
|
+
import { RowHeader } from './RowHeader/index.js';
|
|
37
|
+
import { Cell } from './Cell/index.js';
|
|
38
|
+
import { allowedProps } from './props.js';
|
|
39
|
+
import TableContext from './TableContext.js';
|
|
40
40
|
import { error } from '@instructure/console';
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -46,7 +46,7 @@ category: components
|
|
|
46
46
|
**/
|
|
47
47
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
48
48
|
let Table = (_dec = withStyleNew(generateStyle), _dec(_class = class Table extends Component {
|
|
49
|
-
static displayName =
|
|
49
|
+
static displayName = 'Table';
|
|
50
50
|
static componentId = 'Table';
|
|
51
51
|
static allowedProps = allowedProps;
|
|
52
52
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
|
@@ -21,11 +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
|
-
export { Table } from
|
|
25
|
-
export { TableContext } from
|
|
26
|
-
export { Body as TableBody } from
|
|
27
|
-
export { Cell as TableCell } from
|
|
28
|
-
export { ColHeader as TableColHeader } from
|
|
29
|
-
export { Head as TableHead } from
|
|
30
|
-
export { Row as TableRow } from
|
|
31
|
-
export { RowHeader as TableRowHeader } from
|
|
24
|
+
export { Table } from '../Table/v1/index.js';
|
|
25
|
+
export { TableContext } from '../Table/v1/TableContext.js';
|
|
26
|
+
export { Body as TableBody } from '../Table/v1/Body/index.js';
|
|
27
|
+
export { Cell as TableCell } from '../Table/v1/Cell/index.js';
|
|
28
|
+
export { ColHeader as TableColHeader } from '../Table/v1/ColHeader/index.js';
|
|
29
|
+
export { Head as TableHead } from '../Table/v1/Head/index.js';
|
|
30
|
+
export { Row as TableRow } from '../Table/v1/Row/index.js';
|
|
31
|
+
export { RowHeader as TableRowHeader } from '../Table/v1/RowHeader/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,11 +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
|
-
export { Table } from
|
|
25
|
-
export { TableContext } from
|
|
26
|
-
export { Body as TableBody } from
|
|
27
|
-
export { Cell as TableCell } from
|
|
28
|
-
export { ColHeader as TableColHeader } from
|
|
29
|
-
export { Head as TableHead } from
|
|
30
|
-
export { Row as TableRow } from
|
|
31
|
-
export { RowHeader as TableRowHeader } from
|
|
24
|
+
export { Table } from '../Table/v2/index.js';
|
|
25
|
+
export { TableContext } from '../Table/v2/TableContext.js';
|
|
26
|
+
export { Body as TableBody } from '../Table/v2/Body/index.js';
|
|
27
|
+
export { Cell as TableCell } from '../Table/v2/Cell/index.js';
|
|
28
|
+
export { ColHeader as TableColHeader } from '../Table/v2/ColHeader/index.js';
|
|
29
|
+
export { Head as TableHead } from '../Table/v2/Head/index.js';
|
|
30
|
+
export { Row as TableRow } from '../Table/v2/Row/index.js';
|
|
31
|
+
export { RowHeader as TableRowHeader } from '../Table/v2/RowHeader/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-table",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A styled HTML table component",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.
|
|
19
|
-
"@instructure/emotion": "11.7.
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
25
|
+
"@instructure/ui-simple-select": "11.7.4-pr-snapshot-1781695314229",
|
|
26
|
+
"@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
|
|
27
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
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-
|
|
36
|
-
"@instructure/ui-
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
35
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
36
|
+
"@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18 <=19"
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"exports": {
|
|
46
|
-
"./lib/*": "./lib/*",
|
|
47
46
|
"./es/*": "./es/*",
|
|
48
47
|
"./types/*": "./types/*",
|
|
49
48
|
"./package.json": "./package.json",
|
|
@@ -52,28 +51,24 @@
|
|
|
52
51
|
"src": "./src/exports/a.ts",
|
|
53
52
|
"types": "./types/exports/a.d.ts",
|
|
54
53
|
"import": "./es/exports/a.js",
|
|
55
|
-
"require": "./lib/exports/a.js",
|
|
56
54
|
"default": "./es/exports/a.js"
|
|
57
55
|
},
|
|
58
56
|
"./v11_6": {
|
|
59
57
|
"src": "./src/exports/a.ts",
|
|
60
58
|
"types": "./types/exports/a.d.ts",
|
|
61
59
|
"import": "./es/exports/a.js",
|
|
62
|
-
"require": "./lib/exports/a.js",
|
|
63
60
|
"default": "./es/exports/a.js"
|
|
64
61
|
},
|
|
65
62
|
"./v11_7": {
|
|
66
63
|
"src": "./src/exports/b.ts",
|
|
67
64
|
"types": "./types/exports/b.d.ts",
|
|
68
65
|
"import": "./es/exports/b.js",
|
|
69
|
-
"require": "./lib/exports/b.js",
|
|
70
66
|
"default": "./es/exports/b.js"
|
|
71
67
|
},
|
|
72
68
|
"./latest": {
|
|
73
69
|
"src": "./src/exports/b.ts",
|
|
74
70
|
"types": "./types/exports/b.d.ts",
|
|
75
71
|
"import": "./es/exports/b.js",
|
|
76
|
-
"require": "./lib/exports/b.js",
|
|
77
72
|
"default": "./es/exports/b.js"
|
|
78
73
|
}
|
|
79
74
|
},
|
|
@@ -81,7 +76,7 @@
|
|
|
81
76
|
"lint": "ui-scripts lint",
|
|
82
77
|
"lint:fix": "ui-scripts lint --fix",
|
|
83
78
|
"clean": "ui-scripts clean",
|
|
84
|
-
"build": "ui-scripts build
|
|
79
|
+
"build": "ui-scripts build",
|
|
85
80
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
86
81
|
"build:types": "tsc -p tsconfig.build.json",
|
|
87
82
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -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
|