@instructure/ui-table 10.6.2-snapshot-2 → 10.6.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 +2 -5
- package/es/Table/Head/index.js +6 -7
- package/lib/Table/Head/index.js +6 -7
- package/package.json +17 -17
- package/src/Table/Head/index.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,12 +3,9 @@
|
|
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
|
-
## [10.6.2-snapshot-
|
6
|
+
## [10.6.2-snapshot-3](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.6.2-snapshot-3) (2024-11-29)
|
7
7
|
|
8
|
-
|
9
|
-
### Features
|
10
|
-
|
11
|
-
* **ui-number-input:** add back options for string input ([14bbaea](https://github.com/instructure/instructure-ui/commit/14bbaea13b0829887de946363cd21639e5643749))
|
8
|
+
**Note:** Version bump only for package @instructure/ui-table
|
12
9
|
|
13
10
|
|
14
11
|
|
package/es/Table/Head/index.js
CHANGED
@@ -54,8 +54,7 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
54
54
|
let sortable = false;
|
55
55
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
56
56
|
Children.forEach(firstRow.props.children, grandchild => {
|
57
|
-
|
58
|
-
if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
|
57
|
+
if (grandchild.props.onRequestSort) {
|
59
58
|
sortable = true;
|
60
59
|
return;
|
61
60
|
}
|
@@ -98,11 +97,11 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
98
97
|
Children.forEach(firstRow.props.children, grandchild => {
|
99
98
|
count += 1;
|
100
99
|
if (!grandchild.props) return;
|
101
|
-
const _grandchild$
|
102
|
-
id = _grandchild$
|
103
|
-
stackedSortByLabel = _grandchild$
|
104
|
-
sortDirection = _grandchild$
|
105
|
-
onRequestSort = _grandchild$
|
100
|
+
const _grandchild$props = grandchild.props,
|
101
|
+
id = _grandchild$props.id,
|
102
|
+
stackedSortByLabel = _grandchild$props.stackedSortByLabel,
|
103
|
+
sortDirection = _grandchild$props.sortDirection,
|
104
|
+
onRequestSort = _grandchild$props.onRequestSort;
|
106
105
|
if (id && onRequestSort) {
|
107
106
|
const label = stackedSortByLabel || id;
|
108
107
|
options.push({
|
package/lib/Table/Head/index.js
CHANGED
@@ -60,8 +60,7 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
60
60
|
let sortable = false;
|
61
61
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
62
62
|
_react.Children.forEach(firstRow.props.children, grandchild => {
|
63
|
-
|
64
|
-
if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
|
63
|
+
if (grandchild.props.onRequestSort) {
|
65
64
|
sortable = true;
|
66
65
|
return;
|
67
66
|
}
|
@@ -104,11 +103,11 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
104
103
|
_react.Children.forEach(firstRow.props.children, grandchild => {
|
105
104
|
count += 1;
|
106
105
|
if (!grandchild.props) return;
|
107
|
-
const _grandchild$
|
108
|
-
id = _grandchild$
|
109
|
-
stackedSortByLabel = _grandchild$
|
110
|
-
sortDirection = _grandchild$
|
111
|
-
onRequestSort = _grandchild$
|
106
|
+
const _grandchild$props = grandchild.props,
|
107
|
+
id = _grandchild$props.id,
|
108
|
+
stackedSortByLabel = _grandchild$props.stackedSortByLabel,
|
109
|
+
sortDirection = _grandchild$props.sortDirection,
|
110
|
+
onRequestSort = _grandchild$props.onRequestSort;
|
112
111
|
if (id && onRequestSort) {
|
113
112
|
const label = stackedSortByLabel || id;
|
114
113
|
options.push({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-table",
|
3
|
-
"version": "10.6.2-snapshot-
|
3
|
+
"version": "10.6.2-snapshot-3",
|
4
4
|
"description": "A styled HTML table component",
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
6
6
|
"module": "./es/index.js",
|
@@ -23,11 +23,11 @@
|
|
23
23
|
},
|
24
24
|
"license": "MIT",
|
25
25
|
"devDependencies": {
|
26
|
-
"@instructure/ui-axe-check": "10.6.2-snapshot-
|
27
|
-
"@instructure/ui-babel-preset": "10.6.2-snapshot-
|
28
|
-
"@instructure/ui-color-utils": "10.6.2-snapshot-
|
29
|
-
"@instructure/ui-test-utils": "10.6.2-snapshot-
|
30
|
-
"@instructure/ui-themes": "10.6.2-snapshot-
|
26
|
+
"@instructure/ui-axe-check": "10.6.2-snapshot-3",
|
27
|
+
"@instructure/ui-babel-preset": "10.6.2-snapshot-3",
|
28
|
+
"@instructure/ui-color-utils": "10.6.2-snapshot-3",
|
29
|
+
"@instructure/ui-test-utils": "10.6.2-snapshot-3",
|
30
|
+
"@instructure/ui-themes": "10.6.2-snapshot-3",
|
31
31
|
"@testing-library/jest-dom": "^6.4.6",
|
32
32
|
"@testing-library/react": "^16.0.1",
|
33
33
|
"@testing-library/user-event": "^14.5.2",
|
@@ -35,17 +35,17 @@
|
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"@babel/runtime": "^7.25.6",
|
38
|
-
"@instructure/console": "10.6.2-snapshot-
|
39
|
-
"@instructure/emotion": "10.6.2-snapshot-
|
40
|
-
"@instructure/shared-types": "10.6.2-snapshot-
|
41
|
-
"@instructure/ui-a11y-content": "10.6.2-snapshot-
|
42
|
-
"@instructure/ui-icons": "10.6.2-snapshot-
|
43
|
-
"@instructure/ui-prop-types": "10.6.2-snapshot-
|
44
|
-
"@instructure/ui-react-utils": "10.6.2-snapshot-
|
45
|
-
"@instructure/ui-simple-select": "10.6.2-snapshot-
|
46
|
-
"@instructure/ui-testable": "10.6.2-snapshot-
|
47
|
-
"@instructure/ui-utils": "10.6.2-snapshot-
|
48
|
-
"@instructure/ui-view": "10.6.2-snapshot-
|
38
|
+
"@instructure/console": "10.6.2-snapshot-3",
|
39
|
+
"@instructure/emotion": "10.6.2-snapshot-3",
|
40
|
+
"@instructure/shared-types": "10.6.2-snapshot-3",
|
41
|
+
"@instructure/ui-a11y-content": "10.6.2-snapshot-3",
|
42
|
+
"@instructure/ui-icons": "10.6.2-snapshot-3",
|
43
|
+
"@instructure/ui-prop-types": "10.6.2-snapshot-3",
|
44
|
+
"@instructure/ui-react-utils": "10.6.2-snapshot-3",
|
45
|
+
"@instructure/ui-simple-select": "10.6.2-snapshot-3",
|
46
|
+
"@instructure/ui-testable": "10.6.2-snapshot-3",
|
47
|
+
"@instructure/ui-utils": "10.6.2-snapshot-3",
|
48
|
+
"@instructure/ui-view": "10.6.2-snapshot-3",
|
49
49
|
"prop-types": "^15.8.1"
|
50
50
|
},
|
51
51
|
"peerDependencies": {
|
package/src/Table/Head/index.tsx
CHANGED
@@ -68,7 +68,7 @@ class Head extends Component<TableHeadProps> {
|
|
68
68
|
let sortable = false
|
69
69
|
if (firstRow && firstRow.props && firstRow.props.children) {
|
70
70
|
Children.forEach(firstRow.props.children, (grandchild) => {
|
71
|
-
if (grandchild
|
71
|
+
if (grandchild.props.onRequestSort) {
|
72
72
|
sortable = true
|
73
73
|
return
|
74
74
|
}
|