@instructure/ui-table 8.46.2-snapshot-9 → 8.46.2-snapshot-14

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/es/Table/Body/index.js +0 -1
  3. package/es/Table/Cell/index.js +0 -1
  4. package/es/Table/ColHeader/index.js +0 -1
  5. package/es/Table/Head/index.js +0 -1
  6. package/es/Table/Row/index.js +0 -1
  7. package/es/Table/RowHeader/index.js +0 -1
  8. package/es/Table/index.js +0 -1
  9. package/lib/Table/Body/index.js +0 -1
  10. package/lib/Table/Cell/index.js +0 -1
  11. package/lib/Table/ColHeader/index.js +0 -1
  12. package/lib/Table/Head/index.js +0 -1
  13. package/lib/Table/Row/index.js +0 -1
  14. package/lib/Table/RowHeader/index.js +0 -1
  15. package/lib/Table/index.js +0 -1
  16. package/package.json +16 -16
  17. package/src/Table/Body/index.tsx +0 -1
  18. package/src/Table/Cell/index.tsx +0 -1
  19. package/src/Table/ColHeader/index.tsx +0 -1
  20. package/src/Table/Head/index.tsx +6 -11
  21. package/src/Table/Row/index.tsx +0 -1
  22. package/src/Table/RowHeader/index.tsx +0 -1
  23. package/src/Table/index.tsx +0 -1
  24. package/tsconfig.build.tsbuildinfo +1 -1
  25. package/types/Table/Body/index.d.ts +0 -1
  26. package/types/Table/Body/index.d.ts.map +1 -1
  27. package/types/Table/Cell/index.d.ts +0 -1
  28. package/types/Table/Cell/index.d.ts.map +1 -1
  29. package/types/Table/ColHeader/index.d.ts +0 -1
  30. package/types/Table/ColHeader/index.d.ts.map +1 -1
  31. package/types/Table/Head/index.d.ts +0 -1
  32. package/types/Table/Head/index.d.ts.map +1 -1
  33. package/types/Table/Row/index.d.ts +0 -1
  34. package/types/Table/Row/index.d.ts.map +1 -1
  35. package/types/Table/RowHeader/index.d.ts +0 -1
  36. package/types/Table/RowHeader/index.d.ts.map +1 -1
  37. package/types/Table/index.d.ts +0 -1
  38. package/types/Table/index.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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.46.2-snapshot-9](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-9) (2023-10-24)
6
+ ## [8.46.2-snapshot-14](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-14) (2023-10-26)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-table
9
9
 
@@ -38,7 +38,6 @@ import { allowedProps, propTypes } from './props';
38
38
  parent: Table
39
39
  id: Table.Body
40
40
  ---
41
- @tsProps
42
41
  **/
43
42
  let Body = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Body extends Component {
44
43
  componentDidMount() {
@@ -37,7 +37,6 @@ import { allowedProps, propTypes } from './props';
37
37
  parent: Table
38
38
  id: Table.Cell
39
39
  ---
40
- @tsProps
41
40
  **/
42
41
  let Cell = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Cell extends Component {
43
42
  componentDidMount() {
@@ -37,7 +37,6 @@ import { allowedProps, propTypes } from './props';
37
37
  parent: Table
38
38
  id: Table.ColHeader
39
39
  ---
40
- @tsProps
41
40
  **/
42
41
  let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class ColHeader extends Component {
43
42
  constructor(...args) {
@@ -43,7 +43,6 @@ import { allowedProps, propTypes } from './props';
43
43
  parent: Table
44
44
  id: Table.Head
45
45
  ---
46
- @tsProps
47
46
  **/
48
47
  let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Head extends Component {
49
48
  get isSortable() {
@@ -40,7 +40,6 @@ import { allowedProps, propTypes } from './props';
40
40
  parent: Table
41
41
  id: Table.Row
42
42
  ---
43
- @tsProps
44
43
  **/
45
44
  let Row = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Row extends Component {
46
45
  componentDidMount() {
@@ -37,7 +37,6 @@ import { allowedProps, propTypes } from './props';
37
37
  parent: Table
38
38
  id: Table.RowHeader
39
39
  ---
40
- @tsProps
41
40
  **/
42
41
  let RowHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class RowHeader extends Component {
43
42
  componentDidMount() {
package/es/Table/index.js CHANGED
@@ -44,7 +44,6 @@ import { allowedProps, propTypes } from './props';
44
44
  ---
45
45
  category: components
46
46
  ---
47
- @tsProps
48
47
  **/
49
48
  let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Table extends Component {
50
49
  constructor(...args) {
@@ -45,7 +45,6 @@ var _dec, _class, _class2;
45
45
  parent: Table
46
46
  id: Table.Body
47
47
  ---
48
- @tsProps
49
48
  **/
50
49
  let Body = exports.Body = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Body extends _react.Component {
51
50
  componentDidMount() {
@@ -43,7 +43,6 @@ var _dec, _class, _class2;
43
43
  parent: Table
44
44
  id: Table.Cell
45
45
  ---
46
- @tsProps
47
46
  **/
48
47
  let Cell = exports.Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Cell extends _react.Component {
49
48
  componentDidMount() {
@@ -46,7 +46,6 @@ var _dec, _class, _class2, _IconMiniArrowUpLine, _IconMiniArrowDownLin;
46
46
  parent: Table
47
47
  id: Table.ColHeader
48
48
  ---
49
- @tsProps
50
49
  **/
51
50
  let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class ColHeader extends _react.Component {
52
51
  constructor(...args) {
@@ -50,7 +50,6 @@ var _dec, _class, _class2, _ScreenReaderContent;
50
50
  parent: Table
51
51
  id: Table.Head
52
52
  ---
53
- @tsProps
54
53
  **/
55
54
  let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Head extends _react.Component {
56
55
  get isSortable() {
@@ -47,7 +47,6 @@ var _dec, _class, _class2;
47
47
  parent: Table
48
48
  id: Table.Row
49
49
  ---
50
- @tsProps
51
50
  **/
52
51
  let Row = exports.Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Row extends _react.Component {
53
52
  componentDidMount() {
@@ -43,7 +43,6 @@ var _dec, _class, _class2;
43
43
  parent: Table
44
44
  id: Table.RowHeader
45
45
  ---
46
- @tsProps
47
46
  **/
48
47
  let RowHeader = exports.RowHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class RowHeader extends _react.Component {
49
48
  componentDidMount() {
@@ -51,7 +51,6 @@ var _dec, _class, _class2;
51
51
  ---
52
52
  category: components
53
53
  ---
54
- @tsProps
55
54
  **/
56
55
  let Table = exports.Table = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Table extends _react.Component {
57
56
  constructor(...args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "8.46.2-snapshot-9",
3
+ "version": "8.46.2-snapshot-14",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,24 +23,24 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.46.2-snapshot-9",
27
- "@instructure/ui-color-utils": "8.46.2-snapshot-9",
28
- "@instructure/ui-test-utils": "8.46.2-snapshot-9",
29
- "@instructure/ui-themes": "8.46.2-snapshot-9"
26
+ "@instructure/ui-babel-preset": "8.46.2-snapshot-14",
27
+ "@instructure/ui-color-utils": "8.46.2-snapshot-14",
28
+ "@instructure/ui-test-utils": "8.46.2-snapshot-14",
29
+ "@instructure/ui-themes": "8.46.2-snapshot-14"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.23.2",
33
- "@instructure/console": "8.46.2-snapshot-9",
34
- "@instructure/emotion": "8.46.2-snapshot-9",
35
- "@instructure/shared-types": "8.46.2-snapshot-9",
36
- "@instructure/ui-a11y-content": "8.46.2-snapshot-9",
37
- "@instructure/ui-icons": "8.46.2-snapshot-9",
38
- "@instructure/ui-prop-types": "8.46.2-snapshot-9",
39
- "@instructure/ui-react-utils": "8.46.2-snapshot-9",
40
- "@instructure/ui-simple-select": "8.46.2-snapshot-9",
41
- "@instructure/ui-testable": "8.46.2-snapshot-9",
42
- "@instructure/ui-utils": "8.46.2-snapshot-9",
43
- "@instructure/ui-view": "8.46.2-snapshot-9",
33
+ "@instructure/console": "8.46.2-snapshot-14",
34
+ "@instructure/emotion": "8.46.2-snapshot-14",
35
+ "@instructure/shared-types": "8.46.2-snapshot-14",
36
+ "@instructure/ui-a11y-content": "8.46.2-snapshot-14",
37
+ "@instructure/ui-icons": "8.46.2-snapshot-14",
38
+ "@instructure/ui-prop-types": "8.46.2-snapshot-14",
39
+ "@instructure/ui-react-utils": "8.46.2-snapshot-14",
40
+ "@instructure/ui-simple-select": "8.46.2-snapshot-14",
41
+ "@instructure/ui-testable": "8.46.2-snapshot-14",
42
+ "@instructure/ui-utils": "8.46.2-snapshot-14",
43
+ "@instructure/ui-view": "8.46.2-snapshot-14",
44
44
  "prop-types": "^15.8.1"
45
45
  },
46
46
  "peerDependencies": {
@@ -45,7 +45,6 @@ import { allowedProps, propTypes } from './props'
45
45
  parent: Table
46
46
  id: Table.Body
47
47
  ---
48
- @tsProps
49
48
  **/
50
49
  @withStyle(generateStyle, generateComponentTheme)
51
50
  class Body extends Component<TableBodyProps> {
@@ -40,7 +40,6 @@ import { allowedProps, propTypes } from './props'
40
40
  parent: Table
41
41
  id: Table.Cell
42
42
  ---
43
- @tsProps
44
43
  **/
45
44
  @withStyle(generateStyle, generateComponentTheme)
46
45
  class Cell extends Component<TableCellProps> {
@@ -44,7 +44,6 @@ import { allowedProps, propTypes } from './props'
44
44
  parent: Table
45
45
  id: Table.ColHeader
46
46
  ---
47
- @tsProps
48
47
  **/
49
48
  @withStyle(generateStyle, generateComponentTheme)
50
49
  class ColHeader extends Component<TableColHeaderProps> {
@@ -53,7 +53,6 @@ import { allowedProps, propTypes } from './props'
53
53
  parent: Table
54
54
  id: Table.Head
55
55
  ---
56
- @tsProps
57
56
  **/
58
57
  @withStyle(generateStyle, generateComponentTheme)
59
58
  class Head extends Component<TableHeadProps> {
@@ -71,14 +70,11 @@ class Head extends Component<TableHeadProps> {
71
70
  let sortable = false
72
71
 
73
72
  if (row) {
74
- Children.forEach(
75
- row.props.children as ColHeaderChild[],
76
- (colHeader) => {
77
- if (matchComponentTypes<ColHeaderChild>(colHeader, [ColHeader])) {
78
- if (colHeader.props.onRequestSort) sortable = true
79
- }
73
+ Children.forEach(row.props.children as ColHeaderChild[], (colHeader) => {
74
+ if (matchComponentTypes<ColHeaderChild>(colHeader, [ColHeader])) {
75
+ if (colHeader.props.onRequestSort) sortable = true
80
76
  }
81
- )
77
+ })
82
78
  }
83
79
 
84
80
  return sortable
@@ -121,9 +117,8 @@ class Head extends Component<TableHeadProps> {
121
117
  Children.forEach(row.props.children, (colHeader) => {
122
118
  count += 1
123
119
  if (matchComponentTypes<ColHeaderChild>(colHeader, [ColHeader])) {
124
- const { id, stackedSortByLabel, sortDirection, onRequestSort } = (
125
- colHeader
126
- ).props
120
+ const { id, stackedSortByLabel, sortDirection, onRequestSort } =
121
+ colHeader.props
127
122
 
128
123
  const label = stackedSortByLabel || id
129
124
 
@@ -49,7 +49,6 @@ import { allowedProps, propTypes } from './props'
49
49
  parent: Table
50
50
  id: Table.Row
51
51
  ---
52
- @tsProps
53
52
  **/
54
53
  @withStyle(generateStyle, generateComponentTheme)
55
54
  class Row extends Component<TableRowProps> {
@@ -40,7 +40,6 @@ import { allowedProps, propTypes } from './props'
40
40
  parent: Table
41
41
  id: Table.RowHeader
42
42
  ---
43
- @tsProps
44
43
  **/
45
44
  @withStyle(generateStyle, generateComponentTheme)
46
45
  class RowHeader extends Component<TableRowHeaderProps> {
@@ -61,7 +61,6 @@ import { allowedProps, propTypes } from './props'
61
61
  ---
62
62
  category: components
63
63
  ---
64
- @tsProps
65
64
  **/
66
65
  @withStyle(generateStyle, generateComponentTheme)
67
66
  class Table extends Component<TableProps> {