@instructure/ui-grid 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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 (53) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/es/Grid/v1/index.js +71 -89
  3. package/es/Grid/v1/props.js +10 -26
  4. package/es/Grid/v1/styles.js +25 -62
  5. package/es/Grid/v1/theme.js +12 -44
  6. package/es/Grid/v2/index.js +71 -89
  7. package/es/Grid/v2/props.js +10 -26
  8. package/es/Grid/v2/styles.js +25 -62
  9. package/es/GridCol/v1/index.js +67 -93
  10. package/es/GridCol/v1/props.js +16 -26
  11. package/es/GridCol/v1/styles.js +169 -210
  12. package/es/GridCol/v1/theme.js +12 -44
  13. package/es/GridCol/v2/index.js +67 -93
  14. package/es/GridCol/v2/props.js +16 -26
  15. package/es/GridCol/v2/styles.js +169 -210
  16. package/es/GridRow/v1/index.js +60 -83
  17. package/es/GridRow/v1/props.js +11 -26
  18. package/es/GridRow/v1/styles.js +93 -135
  19. package/es/GridRow/v1/theme.js +12 -44
  20. package/es/GridRow/v2/index.js +60 -83
  21. package/es/GridRow/v2/props.js +11 -26
  22. package/es/GridRow/v2/styles.js +93 -135
  23. package/es/exports/a.js +1 -24
  24. package/es/exports/b.js +1 -24
  25. package/es/utils/v1/GridTypes.js +1 -1
  26. package/package.json +12 -18
  27. package/tsconfig.build.json +0 -1
  28. package/tsconfig.build.tsbuildinfo +1 -1
  29. package/lib/Grid/v1/index.js +0 -120
  30. package/lib/Grid/v1/props.js +0 -31
  31. package/lib/Grid/v1/styles.js +0 -69
  32. package/lib/Grid/v1/theme.js +0 -51
  33. package/lib/Grid/v2/index.js +0 -119
  34. package/lib/Grid/v2/props.js +0 -31
  35. package/lib/Grid/v2/styles.js +0 -69
  36. package/lib/GridCol/v1/index.js +0 -110
  37. package/lib/GridCol/v1/props.js +0 -31
  38. package/lib/GridCol/v1/styles.js +0 -223
  39. package/lib/GridCol/v1/theme.js +0 -51
  40. package/lib/GridCol/v2/index.js +0 -109
  41. package/lib/GridCol/v2/props.js +0 -31
  42. package/lib/GridCol/v2/styles.js +0 -223
  43. package/lib/GridRow/v1/index.js +0 -100
  44. package/lib/GridRow/v1/props.js +0 -31
  45. package/lib/GridRow/v1/styles.js +0 -145
  46. package/lib/GridRow/v1/theme.js +0 -51
  47. package/lib/GridRow/v2/index.js +0 -99
  48. package/lib/GridRow/v2/props.js +0 -31
  49. package/lib/GridRow/v2/styles.js +0 -145
  50. package/lib/exports/a.js +0 -24
  51. package/lib/exports/b.js +0 -24
  52. package/lib/package.json +0 -1
  53. package/lib/utils/v1/GridTypes.js +0 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-grid
@@ -1,28 +1,5 @@
1
- var _dec, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
26
3
  import { Component, Children } from 'react';
27
4
  import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
28
5
  import { GridRow } from '../../GridRow/v1/index.js';
@@ -31,69 +8,74 @@ import { withStyle } from '@instructure/emotion';
31
8
  import generateStyle from './styles.js';
32
9
  import generateComponentTheme from './theme.js';
33
10
  import { allowedProps } from './props.js';
34
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
35
- /**
36
- ---
37
- category: components
38
- ---
39
- **/
40
- let Grid = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Grid extends Component {
41
- static displayName = 'Grid';
42
- static componentId = 'Grid';
43
- static allowedProps = allowedProps;
44
- static defaultProps = {
45
- colSpacing: 'medium',
46
- rowSpacing: 'medium',
47
- hAlign: 'start',
48
- startAt: 'small',
49
- vAlign: 'top',
50
- visualDebug: false,
51
- children: null
52
- };
53
- static Row = GridRow;
54
- static Col = GridCol;
55
- ref = null;
56
- handleRef = el => {
57
- this.ref = el;
58
- };
59
- componentDidMount() {
60
- this.props.makeStyles?.();
61
- }
62
- componentDidUpdate() {
63
- this.props.makeStyles?.();
64
- }
65
- renderChildren() {
66
- const {
67
- styles,
68
- makeStyles,
69
- ...props
70
- } = this.props;
71
- const children = Children.toArray(this.props.children);
72
- return children.map((child, index) => {
73
- if (matchComponentTypes(child, [GridRow])) {
74
- return safeCloneElement(child, {
75
- ...pickProps(props, Grid.allowedProps),
76
- ...child.props /* child props should override parent */,
77
- isLastRow: index + 1 === children.length
11
+ class Grid extends Component {
12
+ static{
13
+ this.displayName = 'Grid';
14
+ }
15
+ static{
16
+ this.componentId = 'Grid';
17
+ }
18
+ static{
19
+ this.allowedProps = allowedProps;
20
+ }
21
+ static{
22
+ this.defaultProps = {
23
+ colSpacing: 'medium',
24
+ rowSpacing: 'medium',
25
+ hAlign: 'start',
26
+ startAt: 'small',
27
+ vAlign: 'top',
28
+ visualDebug: false,
29
+ children: null
30
+ };
31
+ }
32
+ static{
33
+ this.Row = GridRow;
34
+ }
35
+ static{
36
+ this.Col = GridCol;
37
+ }
38
+ componentDidMount() {
39
+ this.props.makeStyles?.();
40
+ }
41
+ componentDidUpdate() {
42
+ this.props.makeStyles?.();
43
+ }
44
+ renderChildren() {
45
+ const { styles, makeStyles, ...props } = this.props;
46
+ const children = Children.toArray(this.props.children);
47
+ return children.map((child, index)=>{
48
+ if (matchComponentTypes(child, [
49
+ GridRow
50
+ ])) {
51
+ return safeCloneElement(child, {
52
+ ...pickProps(props, Grid.allowedProps),
53
+ ...child.props,
54
+ isLastRow: index + 1 === children.length
55
+ });
56
+ } else {
57
+ return child;
58
+ }
59
+ });
60
+ }
61
+ render() {
62
+ const { styles, ...restProps } = this.props;
63
+ const props = omitProps(restProps, Grid.allowedProps);
64
+ return /*#__PURE__*/ _jsx("span", {
65
+ ...props,
66
+ css: styles?.grid,
67
+ ref: this.handleRef,
68
+ children: this.renderChildren()
78
69
  });
79
- } else {
80
- return child; // PropType validation should handle errors
81
- }
82
- });
83
- }
84
- render() {
85
- const {
86
- styles,
87
- ...restProps
88
- } = this.props;
89
- const props = omitProps(restProps, Grid.allowedProps);
90
- return _jsx("span", {
91
- ...props,
92
- css: styles?.grid,
93
- ref: this.handleRef,
94
- children: this.renderChildren()
95
- });
96
- }
97
- }) || _class);
70
+ }
71
+ constructor(...args){
72
+ super(...args), this.ref = null, this.handleRef = (el)=>{
73
+ this.ref = el;
74
+ };
75
+ }
76
+ }
77
+ Grid = _ts_decorate([
78
+ withStyle(generateStyle, generateComponentTheme)
79
+ ], Grid);
98
80
  export default Grid;
99
- export { Grid, GridRow, GridCol };
81
+ export { Grid, GridRow, GridCol };
@@ -1,26 +1,10 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['children', 'colSpacing', 'rowSpacing', 'hAlign', 'vAlign', 'startAt', 'visualDebug'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'children',
3
+ 'colSpacing',
4
+ 'rowSpacing',
5
+ 'hAlign',
6
+ 'vAlign',
7
+ 'startAt',
8
+ 'visualDebug'
9
+ ];
10
+ export { allowedProps };
@@ -1,63 +1,26 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- /**
26
- * ---
27
- * private: true
28
- * ---
29
- * Generates the style object from the theme and provided additional information
30
- * @param {Object} componentTheme The theme variable object.
31
- * @param {Object} props the props of the component, the style is applied to
32
- * @param {Object} state the state of the component, the style is applied to
33
- * @return {Object} The final style object, which will be used in the component
34
- */
35
- const generateStyle = (componentTheme, props) => {
36
- const {
37
- startAt,
38
- visualDebug
39
- } = props;
40
- const getStartAtVariants = breakpoint => !!startAt && startAt === breakpoint ? {
41
- boxSizing: 'border-box'
42
- } : {};
43
- return {
44
- grid: {
45
- label: 'grid',
46
- display: 'block',
47
- ...getStartAtVariants('small'),
48
- [`@media screen and (${componentTheme.mediumMin})`]: {
49
- ...getStartAtVariants('medium')
50
- },
51
- [`@media screen and (${componentTheme.largeMin})`]: {
52
- ...getStartAtVariants('large')
53
- },
54
- [`@media screen and (${componentTheme.xLargeMin})`]: {
55
- ...getStartAtVariants('x-large')
56
- },
57
- ...(visualDebug && {
58
- outline: '0.0625rem dashed red'
59
- })
60
- }
61
- };
1
+ const generateStyle = (componentTheme, props)=>{
2
+ const { startAt, visualDebug } = props;
3
+ const getStartAtVariants = (breakpoint)=>!!startAt && startAt === breakpoint ? {
4
+ boxSizing: 'border-box'
5
+ } : {};
6
+ return {
7
+ grid: {
8
+ label: 'grid',
9
+ display: 'block',
10
+ ...getStartAtVariants('small'),
11
+ [`@media screen and (${componentTheme.mediumMin})`]: {
12
+ ...getStartAtVariants('medium')
13
+ },
14
+ [`@media screen and (${componentTheme.largeMin})`]: {
15
+ ...getStartAtVariants('large')
16
+ },
17
+ [`@media screen and (${componentTheme.xLargeMin})`]: {
18
+ ...getStartAtVariants('x-large')
19
+ },
20
+ ...visualDebug && {
21
+ outline: '0.0625rem dashed red'
22
+ }
23
+ }
24
+ };
62
25
  };
63
- export default generateStyle;
26
+ export default generateStyle;
@@ -1,45 +1,13 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- /**
26
- * Generates the theme object for the component from the theme and provided additional information
27
- * @param {Object} theme The actual theme object.
28
- * @return {Object} The final theme object with the overrides and component variables
29
- */
30
- const generateComponentTheme = theme => {
31
- const {
32
- spacing,
33
- media
34
- } = theme;
35
- const componentVariables = {
36
- spacingSmall: spacing?.small,
37
- spacingMedium: spacing?.medium,
38
- spacingLarge: spacing?.large,
39
- ...media
40
- };
41
- return {
42
- ...componentVariables
43
- };
1
+ const generateComponentTheme = (theme)=>{
2
+ const { spacing, media } = theme;
3
+ const componentVariables = {
4
+ spacingSmall: spacing?.small,
5
+ spacingMedium: spacing?.medium,
6
+ spacingLarge: spacing?.large,
7
+ ...media
8
+ };
9
+ return {
10
+ ...componentVariables
11
+ };
44
12
  };
45
- export default generateComponentTheme;
13
+ export default generateComponentTheme;
@@ -1,28 +1,5 @@
1
- var _dec, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
26
3
  import { Component, Children } from 'react';
27
4
  import { safeCloneElement, matchComponentTypes, omitProps, pickProps } from '@instructure/ui-react-utils';
28
5
  import { GridRow } from '../../GridRow/v2/index.js';
@@ -30,69 +7,74 @@ import { GridCol } from '../../GridCol/v2/index.js';
30
7
  import { withStyleNew } from '@instructure/emotion';
31
8
  import generateStyle from './styles.js';
32
9
  import { allowedProps } from './props.js';
33
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
- /**
35
- ---
36
- category: components
37
- ---
38
- **/
39
- let Grid = (_dec = withStyleNew(generateStyle), _dec(_class = class Grid extends Component {
40
- static displayName = 'Grid';
41
- static componentId = 'Grid';
42
- static allowedProps = allowedProps;
43
- static defaultProps = {
44
- colSpacing: 'medium',
45
- rowSpacing: 'medium',
46
- hAlign: 'start',
47
- startAt: 'small',
48
- vAlign: 'top',
49
- visualDebug: false,
50
- children: null
51
- };
52
- static Row = GridRow;
53
- static Col = GridCol;
54
- ref = null;
55
- handleRef = el => {
56
- this.ref = el;
57
- };
58
- componentDidMount() {
59
- this.props.makeStyles?.();
60
- }
61
- componentDidUpdate() {
62
- this.props.makeStyles?.();
63
- }
64
- renderChildren() {
65
- const {
66
- styles,
67
- makeStyles,
68
- ...props
69
- } = this.props;
70
- const children = Children.toArray(this.props.children);
71
- return children.map((child, index) => {
72
- if (matchComponentTypes(child, [GridRow])) {
73
- return safeCloneElement(child, {
74
- ...pickProps(props, Grid.allowedProps),
75
- ...child.props /* child props should override parent */,
76
- isLastRow: index + 1 === children.length
10
+ class Grid extends Component {
11
+ static{
12
+ this.displayName = 'Grid';
13
+ }
14
+ static{
15
+ this.componentId = 'Grid';
16
+ }
17
+ static{
18
+ this.allowedProps = allowedProps;
19
+ }
20
+ static{
21
+ this.defaultProps = {
22
+ colSpacing: 'medium',
23
+ rowSpacing: 'medium',
24
+ hAlign: 'start',
25
+ startAt: 'small',
26
+ vAlign: 'top',
27
+ visualDebug: false,
28
+ children: null
29
+ };
30
+ }
31
+ static{
32
+ this.Row = GridRow;
33
+ }
34
+ static{
35
+ this.Col = GridCol;
36
+ }
37
+ componentDidMount() {
38
+ this.props.makeStyles?.();
39
+ }
40
+ componentDidUpdate() {
41
+ this.props.makeStyles?.();
42
+ }
43
+ renderChildren() {
44
+ const { styles, makeStyles, ...props } = this.props;
45
+ const children = Children.toArray(this.props.children);
46
+ return children.map((child, index)=>{
47
+ if (matchComponentTypes(child, [
48
+ GridRow
49
+ ])) {
50
+ return safeCloneElement(child, {
51
+ ...pickProps(props, Grid.allowedProps),
52
+ ...child.props,
53
+ isLastRow: index + 1 === children.length
54
+ });
55
+ } else {
56
+ return child;
57
+ }
58
+ });
59
+ }
60
+ render() {
61
+ const { styles, ...restProps } = this.props;
62
+ const props = omitProps(restProps, Grid.allowedProps);
63
+ return /*#__PURE__*/ _jsx("span", {
64
+ ...props,
65
+ css: styles?.grid,
66
+ ref: this.handleRef,
67
+ children: this.renderChildren()
77
68
  });
78
- } else {
79
- return child; // PropType validation should handle errors
80
- }
81
- });
82
- }
83
- render() {
84
- const {
85
- styles,
86
- ...restProps
87
- } = this.props;
88
- const props = omitProps(restProps, Grid.allowedProps);
89
- return _jsx("span", {
90
- ...props,
91
- css: styles?.grid,
92
- ref: this.handleRef,
93
- children: this.renderChildren()
94
- });
95
- }
96
- }) || _class);
69
+ }
70
+ constructor(...args){
71
+ super(...args), this.ref = null, this.handleRef = (el)=>{
72
+ this.ref = el;
73
+ };
74
+ }
75
+ }
76
+ Grid = _ts_decorate([
77
+ withStyleNew(generateStyle)
78
+ ], Grid);
97
79
  export default Grid;
98
- export { Grid, GridRow, GridCol };
80
+ export { Grid, GridRow, GridCol };
@@ -1,26 +1,10 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['children', 'colSpacing', 'rowSpacing', 'hAlign', 'vAlign', 'startAt', 'visualDebug'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'children',
3
+ 'colSpacing',
4
+ 'rowSpacing',
5
+ 'hAlign',
6
+ 'vAlign',
7
+ 'startAt',
8
+ 'visualDebug'
9
+ ];
10
+ export { allowedProps };