@instructure/ui-table 8.26.3 → 8.26.4-snapshot-6

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 CHANGED
@@ -3,6 +3,17 @@
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.26.4-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-6) (2022-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-table
@@ -87,7 +87,7 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
87
87
  });
88
88
  }
89
89
 
90
- return null;
90
+ return void 0;
91
91
  }
92
92
 
93
93
  render() {
@@ -85,7 +85,7 @@ let ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
85
85
  });
86
86
  }
87
87
 
88
- return null;
88
+ return void 0;
89
89
  }
90
90
 
91
91
  render() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "8.26.3",
3
+ "version": "8.26.4-snapshot-6",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,28 +23,28 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.26.3",
27
- "@instructure/ui-color-utils": "8.26.3",
28
- "@instructure/ui-test-utils": "8.26.3",
29
- "@instructure/ui-themes": "8.26.3"
26
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-6",
27
+ "@instructure/ui-color-utils": "8.26.4-snapshot-6",
28
+ "@instructure/ui-test-utils": "8.26.4-snapshot-6",
29
+ "@instructure/ui-themes": "8.26.4-snapshot-6"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.13.10",
33
- "@instructure/console": "8.26.3",
34
- "@instructure/emotion": "8.26.3",
35
- "@instructure/shared-types": "8.26.3",
36
- "@instructure/ui-a11y-content": "8.26.3",
37
- "@instructure/ui-icons": "8.26.3",
38
- "@instructure/ui-prop-types": "8.26.3",
39
- "@instructure/ui-react-utils": "8.26.3",
40
- "@instructure/ui-simple-select": "8.26.3",
41
- "@instructure/ui-testable": "8.26.3",
42
- "@instructure/ui-utils": "8.26.3",
43
- "@instructure/ui-view": "8.26.3",
33
+ "@instructure/console": "8.26.4-snapshot-6",
34
+ "@instructure/emotion": "8.26.4-snapshot-6",
35
+ "@instructure/shared-types": "8.26.4-snapshot-6",
36
+ "@instructure/ui-a11y-content": "8.26.4-snapshot-6",
37
+ "@instructure/ui-icons": "8.26.4-snapshot-6",
38
+ "@instructure/ui-prop-types": "8.26.4-snapshot-6",
39
+ "@instructure/ui-react-utils": "8.26.4-snapshot-6",
40
+ "@instructure/ui-simple-select": "8.26.4-snapshot-6",
41
+ "@instructure/ui-testable": "8.26.4-snapshot-6",
42
+ "@instructure/ui-utils": "8.26.4-snapshot-6",
43
+ "@instructure/ui-view": "8.26.4-snapshot-6",
44
44
  "prop-types": "^15"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": ">=16.8 <=17"
47
+ "react": ">=16.8 <=18"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -22,24 +22,24 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React from 'react'
26
25
  import PropTypes from 'prop-types'
27
26
 
28
27
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
29
28
  import type {
30
29
  OtherHTMLAttributes,
31
30
  PropValidators,
31
+ Renderable,
32
32
  TableCellTheme
33
33
  } from '@instructure/shared-types'
34
34
 
35
35
  type TableCellOwnProps = {
36
36
  isStacked?: boolean
37
- header?: React.ReactNode | (() => React.ReactNode)
37
+ header?: Renderable
38
38
  /**
39
39
  * Control the text alignment in cell
40
40
  */
41
41
  textAlign?: 'start' | 'center' | 'end'
42
- children?: React.ReactNode | (() => React.ReactNode)
42
+ children?: Renderable
43
43
  }
44
44
 
45
45
  type PropKeys = keyof TableCellOwnProps
@@ -86,7 +86,7 @@ class ColHeader extends Component<TableColHeaderProps> {
86
86
  if (onRequestSort) {
87
87
  return <IconMiniArrowDoubleLine css={{ opacity: '30%' }} />
88
88
  }
89
- return null
89
+ return undefined
90
90
  }
91
91
 
92
92
  render() {
@@ -66,7 +66,7 @@ type TableColHeaderOwnProps = {
66
66
  * The column header scope attribute. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
67
67
  */
68
68
  scope?: 'row' | 'col' | 'rowgroup' | 'colgroup' | 'auto'
69
- children?: React.ReactNode | (() => React.ReactNode)
69
+ children?: React.ReactNode
70
70
  }
71
71
 
72
72
  type PropKeys = keyof TableColHeaderOwnProps
@@ -32,13 +32,14 @@ import { Row } from '../Row'
32
32
  import type {
33
33
  OtherHTMLAttributes,
34
34
  PropValidators,
35
+ Renderable,
35
36
  TableHeadTheme
36
37
  } from '@instructure/shared-types'
37
38
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
38
39
 
39
40
  type TableHeadOwnProps = {
40
41
  isStacked?: boolean
41
- renderSortLabel?: React.ReactNode | (() => React.ReactNode)
42
+ renderSortLabel?: Renderable
42
43
  /**
43
44
  * `Table.Row`
44
45
  */
@@ -22,12 +22,12 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React from 'react'
26
25
  import PropTypes from 'prop-types'
27
26
 
28
27
  import type {
29
28
  OtherHTMLAttributes,
30
29
  PropValidators,
30
+ Renderable,
31
31
  TableRowHeaderTheme
32
32
  } from '@instructure/shared-types'
33
33
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
@@ -38,7 +38,7 @@ type TableRowHeaderOwnProps = {
38
38
  * Control the text alignment in row header
39
39
  */
40
40
  textAlign?: 'start' | 'center' | 'end'
41
- children?: React.ReactNode | (() => React.ReactNode)
41
+ children?: Renderable
42
42
  }
43
43
 
44
44
  type PropKeys = keyof TableRowHeaderOwnProps