@instructure/ui-grid 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/Grid/v1/index.js +6 -6
- package/es/Grid/v2/index.js +5 -5
- package/es/GridCol/v1/index.js +4 -4
- package/es/GridCol/v2/index.js +3 -3
- package/es/GridRow/v1/index.js +5 -5
- package/es/GridRow/v2/index.js +4 -4
- package/es/exports/a.js +1 -1
- package/es/exports/b.js +1 -1
- package/lib/Grid/v1/index.js +11 -11
- package/lib/Grid/v2/index.js +10 -10
- package/lib/GridCol/v1/index.js +4 -4
- package/lib/GridCol/v2/index.js +3 -3
- package/lib/GridRow/v1/index.js +6 -6
- package/lib/GridRow/v2/index.js +5 -5
- package/lib/exports/a.js +4 -4
- package/lib/exports/b.js +4 -4
- package/package.json +10 -10
- package/src/Grid/v1/index.tsx +6 -5
- package/src/Grid/v2/index.tsx +5 -4
- package/src/GridCol/v1/index.tsx +4 -3
- package/src/GridCol/v2/index.tsx +3 -2
- package/src/GridRow/v1/index.tsx +5 -4
- package/src/GridRow/v2/index.tsx +4 -3
- package/src/exports/a.ts +1 -1
- package/src/exports/b.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Grid/v1/index.d.ts +4 -3
- package/types/Grid/v1/index.d.ts.map +1 -1
- package/types/Grid/v2/index.d.ts +4 -3
- package/types/Grid/v2/index.d.ts.map +1 -1
- package/types/GridCol/v1/index.d.ts +2 -1
- package/types/GridCol/v1/index.d.ts.map +1 -1
- package/types/GridCol/v2/index.d.ts +2 -1
- package/types/GridCol/v2/index.d.ts.map +1 -1
- package/types/GridRow/v1/index.d.ts +3 -2
- package/types/GridRow/v1/index.d.ts.map +1 -1
- package/types/GridRow/v2/index.d.ts +3 -2
- package/types/GridRow/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +1 -1
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +1 -1
- package/types/exports/b.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
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-grid
|
|
9
9
|
|
package/LICENSE.md
CHANGED
package/es/Grid/v1/index.js
CHANGED
|
@@ -25,12 +25,12 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { GridRow } from
|
|
29
|
-
import { GridCol } from
|
|
28
|
+
import { GridRow } from '../../GridRow/v1/index.js';
|
|
29
|
+
import { GridCol } from '../../GridCol/v1/index.js';
|
|
30
30
|
import { withStyle } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import generateComponentTheme from './theme.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
34
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
35
35
|
/**
|
|
36
36
|
---
|
|
@@ -38,7 +38,7 @@ category: components
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Grid extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'Grid';
|
|
42
42
|
static componentId = 'Grid';
|
|
43
43
|
static allowedProps = allowedProps;
|
|
44
44
|
static defaultProps = {
|
package/es/Grid/v2/index.js
CHANGED
|
@@ -25,11 +25,11 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { GridRow } from
|
|
29
|
-
import { GridCol } from
|
|
28
|
+
import { GridRow } from '../../GridRow/v2/index.js';
|
|
29
|
+
import { GridCol } from '../../GridCol/v2/index.js';
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -37,7 +37,7 @@ category: components
|
|
|
37
37
|
---
|
|
38
38
|
**/
|
|
39
39
|
let Grid = (_dec = withStyleNew(generateStyle), _dec(_class = class Grid extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'Grid';
|
|
41
41
|
static componentId = 'Grid';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
package/es/GridCol/v1/index.js
CHANGED
|
@@ -27,9 +27,9 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyle } from '@instructure/emotion';
|
|
29
29
|
import { logWarn as warn } from '@instructure/console';
|
|
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
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -38,7 +38,7 @@ id: Grid.Col
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let GridCol = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class GridCol extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'GridCol';
|
|
42
42
|
static componentId = 'Grid.Col';
|
|
43
43
|
static allowedProps = allowedProps;
|
|
44
44
|
static defaultProps = {
|
package/es/GridCol/v2/index.js
CHANGED
|
@@ -27,8 +27,8 @@ import { Component } from 'react';
|
|
|
27
27
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyleNew } from '@instructure/emotion';
|
|
29
29
|
import { logWarn as warn } from '@instructure/console';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
32
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
33
33
|
/**
|
|
34
34
|
---
|
|
@@ -37,7 +37,7 @@ id: Grid.Col
|
|
|
37
37
|
---
|
|
38
38
|
**/
|
|
39
39
|
let GridCol = (_dec = withStyleNew(generateStyle), _dec(_class = class GridCol extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'GridCol';
|
|
41
41
|
static componentId = 'Grid.Col';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
package/es/GridRow/v1/index.js
CHANGED
|
@@ -25,11 +25,11 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { GridCol } from
|
|
28
|
+
import { GridCol } from '../../GridCol/v1/index.js';
|
|
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
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -38,7 +38,7 @@ id: Grid.Row
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let GridRow = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class GridRow extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'GridRow';
|
|
42
42
|
static componentId = 'Grid.Row';
|
|
43
43
|
static allowedProps = allowedProps;
|
|
44
44
|
static defaultProps = {
|
package/es/GridRow/v2/index.js
CHANGED
|
@@ -25,10 +25,10 @@ var _dec, _class;
|
|
|
25
25
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { GridCol } from
|
|
28
|
+
import { GridCol } from '../../GridCol/v2/index.js';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyle from
|
|
31
|
-
import { allowedProps } from
|
|
30
|
+
import generateStyle from './styles.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
32
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
33
33
|
/**
|
|
34
34
|
---
|
|
@@ -37,7 +37,7 @@ id: Grid.Row
|
|
|
37
37
|
---
|
|
38
38
|
**/
|
|
39
39
|
let GridRow = (_dec = withStyleNew(generateStyle), _dec(_class = class GridRow extends Component {
|
|
40
|
-
static displayName =
|
|
40
|
+
static displayName = 'GridRow';
|
|
41
41
|
static componentId = 'Grid.Row';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
package/es/exports/b.js
CHANGED
package/lib/Grid/v1/index.js
CHANGED
|
@@ -8,13 +8,13 @@ exports.Grid = void 0;
|
|
|
8
8
|
Object.defineProperty(exports, "GridCol", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
11
|
-
return
|
|
11
|
+
return _index2.GridCol;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "GridRow", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
|
-
return
|
|
17
|
+
return _index.GridRow;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
exports.default = void 0;
|
|
@@ -23,12 +23,12 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
23
23
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
24
24
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
25
25
|
var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var _index = require("../../GridRow/v1/index.js");
|
|
27
|
+
var _index2 = require("../../GridCol/v1/index.js");
|
|
28
28
|
var _emotion = require("@instructure/emotion");
|
|
29
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
30
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
31
|
-
var _props = require("./props");
|
|
29
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
30
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
31
|
+
var _props = require("./props.js");
|
|
32
32
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
33
33
|
var _dec, _class;
|
|
34
34
|
/*
|
|
@@ -60,7 +60,7 @@ category: components
|
|
|
60
60
|
---
|
|
61
61
|
**/
|
|
62
62
|
let Grid = exports.Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class Grid extends _react.Component {
|
|
63
|
-
static displayName =
|
|
63
|
+
static displayName = 'Grid';
|
|
64
64
|
static componentId = 'Grid';
|
|
65
65
|
static allowedProps = _props.allowedProps;
|
|
66
66
|
static defaultProps = {
|
|
@@ -72,8 +72,8 @@ let Grid = exports.Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
72
72
|
visualDebug: false,
|
|
73
73
|
children: null
|
|
74
74
|
};
|
|
75
|
-
static Row =
|
|
76
|
-
static Col =
|
|
75
|
+
static Row = _index.GridRow;
|
|
76
|
+
static Col = _index2.GridCol;
|
|
77
77
|
ref = null;
|
|
78
78
|
handleRef = el => {
|
|
79
79
|
this.ref = el;
|
|
@@ -92,7 +92,7 @@ let Grid = exports.Grid = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
92
92
|
} = this.props;
|
|
93
93
|
const children = _react.Children.toArray(this.props.children);
|
|
94
94
|
return children.map((child, index) => {
|
|
95
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
95
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.GridRow])) {
|
|
96
96
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
97
97
|
...(0, _pickProps.pickProps)(props, Grid.allowedProps),
|
|
98
98
|
...child.props /* child props should override parent */,
|
package/lib/Grid/v2/index.js
CHANGED
|
@@ -8,13 +8,13 @@ exports.Grid = void 0;
|
|
|
8
8
|
Object.defineProperty(exports, "GridCol", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
11
|
-
return
|
|
11
|
+
return _index2.GridCol;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "GridRow", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
|
-
return
|
|
17
|
+
return _index.GridRow;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
exports.default = void 0;
|
|
@@ -23,11 +23,11 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
23
23
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
24
24
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
25
25
|
var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var _index = require("../../GridRow/v2/index.js");
|
|
27
|
+
var _index2 = require("../../GridCol/v2/index.js");
|
|
28
28
|
var _emotion = require("@instructure/emotion");
|
|
29
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
30
|
-
var _props = require("./props");
|
|
29
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
30
|
+
var _props = require("./props.js");
|
|
31
31
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
32
32
|
var _dec, _class;
|
|
33
33
|
/*
|
|
@@ -59,7 +59,7 @@ category: components
|
|
|
59
59
|
---
|
|
60
60
|
**/
|
|
61
61
|
let Grid = exports.Grid = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Grid extends _react.Component {
|
|
62
|
-
static displayName =
|
|
62
|
+
static displayName = 'Grid';
|
|
63
63
|
static componentId = 'Grid';
|
|
64
64
|
static allowedProps = _props.allowedProps;
|
|
65
65
|
static defaultProps = {
|
|
@@ -71,8 +71,8 @@ let Grid = exports.Grid = (_dec = (0, _emotion.withStyleNew)(_styles.default), _
|
|
|
71
71
|
visualDebug: false,
|
|
72
72
|
children: null
|
|
73
73
|
};
|
|
74
|
-
static Row =
|
|
75
|
-
static Col =
|
|
74
|
+
static Row = _index.GridRow;
|
|
75
|
+
static Col = _index2.GridCol;
|
|
76
76
|
ref = null;
|
|
77
77
|
handleRef = el => {
|
|
78
78
|
this.ref = el;
|
|
@@ -91,7 +91,7 @@ let Grid = exports.Grid = (_dec = (0, _emotion.withStyleNew)(_styles.default), _
|
|
|
91
91
|
} = this.props;
|
|
92
92
|
const children = _react.Children.toArray(this.props.children);
|
|
93
93
|
return children.map((child, index) => {
|
|
94
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
94
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.GridRow])) {
|
|
95
95
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
96
96
|
...(0, _pickProps.pickProps)(props, Grid.allowedProps),
|
|
97
97
|
...child.props /* child props should override parent */,
|
package/lib/GridCol/v1/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var _react = require("react");
|
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
11
|
var _console = require("@instructure/console");
|
|
12
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
14
|
-
var _props = require("./props");
|
|
12
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
13
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
16
|
var _dec, _class;
|
|
17
17
|
/*
|
|
@@ -44,7 +44,7 @@ id: Grid.Col
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let GridCol = exports.GridCol = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class GridCol extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'GridCol';
|
|
48
48
|
static componentId = 'Grid.Col';
|
|
49
49
|
static allowedProps = _props.allowedProps;
|
|
50
50
|
static defaultProps = {
|
package/lib/GridCol/v2/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var _react = require("react");
|
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
11
|
var _console = require("@instructure/console");
|
|
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 _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
var _dec, _class;
|
|
16
16
|
/*
|
|
@@ -43,7 +43,7 @@ id: Grid.Col
|
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
45
|
let GridCol = exports.GridCol = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class GridCol extends _react.Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'GridCol';
|
|
47
47
|
static componentId = 'Grid.Col';
|
|
48
48
|
static allowedProps = _props.allowedProps;
|
|
49
49
|
static defaultProps = {
|
package/lib/GridRow/v1/index.js
CHANGED
|
@@ -10,11 +10,11 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
10
10
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
11
11
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
12
12
|
var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
|
|
13
|
-
var
|
|
13
|
+
var _index = require("../../GridCol/v1/index.js");
|
|
14
14
|
var _emotion = require("@instructure/emotion");
|
|
15
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
16
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
17
|
-
var _props = require("./props");
|
|
15
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
16
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
17
|
+
var _props = require("./props.js");
|
|
18
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
19
|
var _dec, _class;
|
|
20
20
|
/*
|
|
@@ -47,7 +47,7 @@ id: Grid.Row
|
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
49
|
let GridRow = exports.GridRow = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class GridRow extends _react.Component {
|
|
50
|
-
static displayName =
|
|
50
|
+
static displayName = 'GridRow';
|
|
51
51
|
static componentId = 'Grid.Row';
|
|
52
52
|
static allowedProps = _props.allowedProps;
|
|
53
53
|
static defaultProps = {
|
|
@@ -71,7 +71,7 @@ let GridRow = exports.GridRow = (_dec = (0, _emotion.withStyle)(_styles.default,
|
|
|
71
71
|
...props
|
|
72
72
|
} = this.props;
|
|
73
73
|
return _react.Children.map(this.props.children, (child, index) => {
|
|
74
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
74
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.GridCol])) {
|
|
75
75
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
76
76
|
...(0, _pickProps.pickProps)(props, GridRow.allowedProps),
|
|
77
77
|
...child.props /* child props should override parent */,
|
package/lib/GridRow/v2/index.js
CHANGED
|
@@ -10,10 +10,10 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
10
10
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
11
11
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
12
12
|
var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
|
|
13
|
-
var
|
|
13
|
+
var _index = require("../../GridCol/v2/index.js");
|
|
14
14
|
var _emotion = require("@instructure/emotion");
|
|
15
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
16
|
-
var _props = require("./props");
|
|
15
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
16
|
+
var _props = require("./props.js");
|
|
17
17
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
18
|
var _dec, _class;
|
|
19
19
|
/*
|
|
@@ -46,7 +46,7 @@ id: Grid.Row
|
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
48
|
let GridRow = exports.GridRow = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class GridRow extends _react.Component {
|
|
49
|
-
static displayName =
|
|
49
|
+
static displayName = 'GridRow';
|
|
50
50
|
static componentId = 'Grid.Row';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
52
52
|
static defaultProps = {
|
|
@@ -70,7 +70,7 @@ let GridRow = exports.GridRow = (_dec = (0, _emotion.withStyleNew)(_styles.defau
|
|
|
70
70
|
...props
|
|
71
71
|
} = this.props;
|
|
72
72
|
return _react.Children.map(this.props.children, (child, index) => {
|
|
73
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
73
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.GridCol])) {
|
|
74
74
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
75
75
|
...(0, _pickProps.pickProps)(props, GridRow.allowedProps),
|
|
76
76
|
...child.props /* child props should override parent */,
|
package/lib/exports/a.js
CHANGED
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Grid", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Grid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "GridCol", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.GridCol;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "GridRow", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index.GridRow;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
var
|
|
24
|
+
var _index = require("../Grid/v1/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "Grid", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.Grid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "GridCol", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.GridCol;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "GridRow", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index.GridRow;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
var
|
|
24
|
+
var _index = require("../Grid/v2/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-grid",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-49",
|
|
4
4
|
"description": "A Grid component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.4-snapshot-
|
|
19
|
-
"@instructure/emotion": "11.7.4-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-react-utils": "11.7.4-snapshot-
|
|
23
|
-
"@instructure/ui-themes": "11.7.4-snapshot-
|
|
24
|
-
"@instructure/ui-utils": "11.7.4-snapshot-
|
|
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-react-utils": "11.7.4-snapshot-49",
|
|
23
|
+
"@instructure/ui-themes": "11.7.4-snapshot-49",
|
|
24
|
+
"@instructure/ui-utils": "11.7.4-snapshot-49"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@testing-library/jest-dom": "^6.6.3",
|
|
28
28
|
"@testing-library/react": "15.0.7",
|
|
29
29
|
"vitest": "^3.2.2",
|
|
30
|
-
"@instructure/ui-babel-preset": "11.7.4-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "11.7.4-snapshot-
|
|
30
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-49",
|
|
31
|
+
"@instructure/ui-color-utils": "11.7.4-snapshot-49"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=18 <=19"
|
package/src/Grid/v1/index.tsx
CHANGED
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
pickProps
|
|
32
32
|
} from '@instructure/ui-react-utils'
|
|
33
33
|
|
|
34
|
-
import { GridRow } from '../../GridRow/v1'
|
|
34
|
+
import { GridRow } from '../../GridRow/v1/index.js'
|
|
35
35
|
import type { GridRowProps } from '../../GridRow/v1/props'
|
|
36
|
-
import { GridCol } from '../../GridCol/v1'
|
|
36
|
+
import { GridCol } from '../../GridCol/v1/index.js'
|
|
37
37
|
|
|
38
38
|
import { withStyle } from '@instructure/emotion'
|
|
39
39
|
|
|
40
|
-
import generateStyle from './styles'
|
|
41
|
-
import generateComponentTheme from './theme'
|
|
40
|
+
import generateStyle from './styles.js'
|
|
41
|
+
import generateComponentTheme from './theme.js'
|
|
42
42
|
|
|
43
|
-
import { allowedProps } from './props'
|
|
43
|
+
import { allowedProps } from './props.js'
|
|
44
44
|
import type { GridProps } from './props'
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -50,6 +50,7 @@ category: components
|
|
|
50
50
|
**/
|
|
51
51
|
@withStyle(generateStyle, generateComponentTheme)
|
|
52
52
|
class Grid extends Component<GridProps> {
|
|
53
|
+
static displayName = 'Grid'
|
|
53
54
|
static readonly componentId = 'Grid'
|
|
54
55
|
|
|
55
56
|
static allowedProps = allowedProps
|
package/src/Grid/v2/index.tsx
CHANGED
|
@@ -31,15 +31,15 @@ import {
|
|
|
31
31
|
pickProps
|
|
32
32
|
} from '@instructure/ui-react-utils'
|
|
33
33
|
|
|
34
|
-
import { GridRow } from '../../GridRow/v2'
|
|
34
|
+
import { GridRow } from '../../GridRow/v2/index.js'
|
|
35
35
|
import type { GridRowProps } from '../../GridRow/v2/props'
|
|
36
|
-
import { GridCol } from '../../GridCol/v2'
|
|
36
|
+
import { GridCol } from '../../GridCol/v2/index.js'
|
|
37
37
|
|
|
38
38
|
import { withStyleNew } from '@instructure/emotion'
|
|
39
39
|
|
|
40
|
-
import generateStyle from './styles'
|
|
40
|
+
import generateStyle from './styles.js'
|
|
41
41
|
|
|
42
|
-
import { allowedProps } from './props'
|
|
42
|
+
import { allowedProps } from './props.js'
|
|
43
43
|
import type { GridProps } from './props'
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -49,6 +49,7 @@ category: components
|
|
|
49
49
|
**/
|
|
50
50
|
@withStyleNew(generateStyle)
|
|
51
51
|
class Grid extends Component<GridProps> {
|
|
52
|
+
static displayName = 'Grid'
|
|
52
53
|
static readonly componentId = 'Grid'
|
|
53
54
|
|
|
54
55
|
static allowedProps = allowedProps
|
package/src/GridCol/v1/index.tsx
CHANGED
|
@@ -29,10 +29,10 @@ import { omitProps } from '@instructure/ui-react-utils'
|
|
|
29
29
|
import { withStyle } from '@instructure/emotion'
|
|
30
30
|
import { logWarn as warn } from '@instructure/console'
|
|
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
|
|
|
35
|
-
import { allowedProps } from './props'
|
|
35
|
+
import { allowedProps } from './props.js'
|
|
36
36
|
import type { GridColProps } from './props'
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -43,6 +43,7 @@ id: Grid.Col
|
|
|
43
43
|
**/
|
|
44
44
|
@withStyle(generateStyle, generateComponentTheme)
|
|
45
45
|
class GridCol extends Component<GridColProps> {
|
|
46
|
+
static displayName = 'GridCol'
|
|
46
47
|
static readonly componentId = 'Grid.Col'
|
|
47
48
|
|
|
48
49
|
static allowedProps = allowedProps
|
package/src/GridCol/v2/index.tsx
CHANGED
|
@@ -29,9 +29,9 @@ import { omitProps } from '@instructure/ui-react-utils'
|
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion'
|
|
30
30
|
import { logWarn as warn } from '@instructure/console'
|
|
31
31
|
|
|
32
|
-
import generateStyle from './styles'
|
|
32
|
+
import generateStyle from './styles.js'
|
|
33
33
|
|
|
34
|
-
import { allowedProps } from './props'
|
|
34
|
+
import { allowedProps } from './props.js'
|
|
35
35
|
import type { GridColProps } from './props'
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -42,6 +42,7 @@ id: Grid.Col
|
|
|
42
42
|
**/
|
|
43
43
|
@withStyleNew(generateStyle)
|
|
44
44
|
class GridCol extends Component<GridColProps> {
|
|
45
|
+
static displayName = 'GridCol'
|
|
45
46
|
static readonly componentId = 'Grid.Col'
|
|
46
47
|
|
|
47
48
|
static allowedProps = allowedProps
|
package/src/GridRow/v1/index.tsx
CHANGED
|
@@ -31,15 +31,15 @@ import {
|
|
|
31
31
|
pickProps
|
|
32
32
|
} from '@instructure/ui-react-utils'
|
|
33
33
|
|
|
34
|
-
import { GridCol } from '../../GridCol/v1/'
|
|
34
|
+
import { GridCol } from '../../GridCol/v1/index.js'
|
|
35
35
|
import type { GridColProps } from '../../GridCol/v1/props'
|
|
36
36
|
|
|
37
37
|
import { withStyle } from '@instructure/emotion'
|
|
38
38
|
|
|
39
|
-
import generateStyle from './styles'
|
|
40
|
-
import generateComponentTheme from './theme'
|
|
39
|
+
import generateStyle from './styles.js'
|
|
40
|
+
import generateComponentTheme from './theme.js'
|
|
41
41
|
|
|
42
|
-
import { allowedProps } from './props'
|
|
42
|
+
import { allowedProps } from './props.js'
|
|
43
43
|
import type { GridRowProps } from './props'
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -50,6 +50,7 @@ id: Grid.Row
|
|
|
50
50
|
**/
|
|
51
51
|
@withStyle(generateStyle, generateComponentTheme)
|
|
52
52
|
class GridRow extends Component<GridRowProps> {
|
|
53
|
+
static displayName = 'GridRow'
|
|
53
54
|
static readonly componentId = 'Grid.Row'
|
|
54
55
|
|
|
55
56
|
static allowedProps = allowedProps
|