@instructure/ui-grid 10.16.1-snapshot-0 → 10.16.1
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/es/Grid/__new-tests__/Grid.test.js +25 -12
- package/es/Grid/index.js +8 -6
- package/es/GridCol/__new-tests__/Grid.test.js +5 -4
- package/es/GridCol/index.js +7 -5
- package/es/GridRow/index.js +8 -6
- package/lib/Grid/__new-tests__/Grid.test.js +29 -17
- package/lib/Grid/index.js +7 -6
- package/lib/GridCol/__new-tests__/Grid.test.js +6 -6
- package/lib/GridCol/index.js +6 -4
- package/lib/GridRow/index.js +7 -6
- package/package.json +13 -13
- package/src/Grid/__new-tests__/Grid.test.tsx +0 -1
- package/src/Grid/index.tsx +5 -7
- package/src/GridCol/__new-tests__/Grid.test.tsx +0 -1
- package/src/GridCol/index.tsx +1 -2
- package/src/GridRow/index.tsx +5 -7
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Grid/__new-tests__/Grid.test.d.ts.map +1 -1
- package/types/Grid/index.d.ts +5 -19
- package/types/Grid/index.d.ts.map +1 -1
- package/types/GridCol/__new-tests__/Grid.test.d.ts.map +1 -1
- package/types/GridCol/index.d.ts +1 -3
- package/types/GridCol/index.d.ts.map +1 -1
- package/types/GridRow/index.d.ts +3 -5
- package/types/GridRow/index.d.ts.map +1 -1
package/types/Grid/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import React, { Component } from 'react';
|
|
1
|
+
import { ComponentElement, Component } from 'react';
|
|
3
2
|
import { GridRow } from '../GridRow';
|
|
4
3
|
import type { GridRowProps } from '../GridRow/props';
|
|
5
4
|
import { GridCol } from '../GridCol';
|
|
6
|
-
import { jsx } from '@instructure/emotion';
|
|
7
5
|
import type { GridProps } from './props';
|
|
8
6
|
/**
|
|
9
7
|
---
|
|
@@ -13,13 +11,7 @@ category: components
|
|
|
13
11
|
declare class Grid extends Component<GridProps> {
|
|
14
12
|
static readonly componentId = "Grid";
|
|
15
13
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
16
|
-
children?:
|
|
17
|
-
/**
|
|
18
|
-
---
|
|
19
|
-
category: components
|
|
20
|
-
---
|
|
21
|
-
**/
|
|
22
|
-
React.ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
23
15
|
colSpacing?: "none" | "small" | "medium" | "large";
|
|
24
16
|
rowSpacing?: "none" | "small" | "medium" | "large";
|
|
25
17
|
hAlign?: "start" | "center" | "end" | "space-around" | "space-between";
|
|
@@ -28,13 +20,7 @@ declare class Grid extends Component<GridProps> {
|
|
|
28
20
|
visualDebug?: boolean;
|
|
29
21
|
}>;
|
|
30
22
|
static allowedProps: readonly (keyof {
|
|
31
|
-
children?:
|
|
32
|
-
/**
|
|
33
|
-
---
|
|
34
|
-
category: components
|
|
35
|
-
---
|
|
36
|
-
**/
|
|
37
|
-
React.ReactNode;
|
|
23
|
+
children?: React.ReactNode;
|
|
38
24
|
colSpacing?: "none" | "small" | "medium" | "large";
|
|
39
25
|
rowSpacing?: "none" | "small" | "medium" | "large";
|
|
40
26
|
hAlign?: "start" | "center" | "end" | "space-around" | "space-between";
|
|
@@ -57,8 +43,8 @@ declare class Grid extends Component<GridProps> {
|
|
|
57
43
|
handleRef: (el: Element | null) => void;
|
|
58
44
|
componentDidMount(): void;
|
|
59
45
|
componentDidUpdate(): void;
|
|
60
|
-
renderChildren(): (string | number |
|
|
61
|
-
render(): jsx.JSX.Element;
|
|
46
|
+
renderChildren(): (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | ComponentElement<GridRowProps, GridRow>)[];
|
|
47
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
48
|
}
|
|
63
49
|
export default Grid;
|
|
64
50
|
export { Grid, GridRow, GridCol };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Grid/index.tsx"],"names":[],"mappings":"AAwBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Grid/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAS7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAQpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,SAAS;mBAPlB,MAAO,SAAS;;;;;;;OAOc;IAC5B,MAAM,CAAC,YAAY;mBARrB,MAAO,SAAS;;;;;;;SAQoB;IAClC,MAAM,CAAC,YAAY;;;;;;;;MAQlB;IAED,MAAM,CAAC,GAAG,iBAAU;IACpB,MAAM,CAAC,GAAG,iBAAU;IAEpB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAqBd,MAAM;CAWP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.test.d.ts","sourceRoot":"","sources":["../../../src/GridCol/__new-tests__/Grid.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Grid.test.d.ts","sourceRoot":"","sources":["../../../src/GridCol/__new-tests__/Grid.test.tsx"],"names":[],"mappings":"AA0BA,OAAO,2BAA2B,CAAA"}
|
package/types/GridCol/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { Component } from 'react';
|
|
3
|
-
import { jsx } from '@instructure/emotion';
|
|
4
2
|
import type { GridColProps } from './props';
|
|
5
3
|
/**
|
|
6
4
|
---
|
|
@@ -71,7 +69,7 @@ declare class GridCol extends Component<GridColProps> {
|
|
|
71
69
|
widthCheck(): void;
|
|
72
70
|
componentDidMount(): void;
|
|
73
71
|
componentDidUpdate(): void;
|
|
74
|
-
render(): jsx.JSX.Element;
|
|
72
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
75
73
|
}
|
|
76
74
|
export default GridCol;
|
|
77
75
|
export { GridCol };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridCol/index.tsx"],"names":[],"mappings":"AAwBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridCol/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;GAKG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,cAAa;IAExC,MAAM,CAAC,SAAS;mBAHhB,MAAO,SAAS;;;;;;;;;iBAeiB,CAAC;kBAIhC,CAAC;iBAAyB,CAAC;kBAClB,CAAC;;;iBAMV,CAAH;kBACG,CAAH;iBACQ,CAAC;kBAA0B,CAAC;;;;;OAzBP;IAC5B,MAAM,CAAC,YAAY;mBAJnB,MAAO,SAAS;;;;;;;;;iBAeiB,CAAC;kBAIhC,CAAC;iBAAyB,CAAC;kBAClB,CAAC;;;iBAMV,CAAH;kBACG,CAAH;iBACQ,CAAC;kBAA0B,CAAC;;;;;SAxBD;IAClC,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,GAAG,EAAE,eAAe,GAAG,IAAI,CAAO;IAElC,SAAS,OAAQ,eAAe,GAAG,IAAI,UAQtC;IAED,UAAU;IAsBV,iBAAiB;IAKjB,kBAAkB;IAKlB,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/types/GridRow/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import React, { Component } from 'react';
|
|
1
|
+
import { ComponentElement, Component } from 'react';
|
|
3
2
|
import { GridCol } from '../GridCol';
|
|
4
3
|
import type { GridColProps } from '../GridCol/props';
|
|
5
|
-
import { jsx } from '@instructure/emotion';
|
|
6
4
|
import type { GridRowProps } from './props';
|
|
7
5
|
/**
|
|
8
6
|
---
|
|
@@ -40,8 +38,8 @@ declare class GridRow extends Component<GridRowProps> {
|
|
|
40
38
|
handleRef: (el: Element | null) => void;
|
|
41
39
|
componentDidMount(): void;
|
|
42
40
|
componentDidUpdate(): void;
|
|
43
|
-
renderChildren(): (string | number |
|
|
44
|
-
render(): jsx.JSX.Element;
|
|
41
|
+
renderChildren(): (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | ComponentElement<GridColProps, GridCol>)[] | null | undefined;
|
|
42
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
43
|
}
|
|
46
44
|
export default GridRow;
|
|
47
45
|
export { GridRow };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridRow/index.tsx"],"names":[],"mappings":"AAwBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridRow/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAS7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAQpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;GAKG;AACH,cACM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,cAAa;IAExC,MAAM,CAAC,SAAS;mBAJW,MAAO,SAAS;;;;;;;;OAIf;IAC5B,MAAM,CAAC,YAAY;mBALQ,MAAO,SAAS;;;;;;;;SAKT;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,cAAc;IAqBd,MAAM;CAWP;AAED,eAAe,OAAO,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|