@elliemae/ds-grid 2.0.0-rc.6 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-grid",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Grid",
6
6
  "module": "./esm/index.js",
@@ -60,10 +60,13 @@
60
60
  "build": "node ../../scripts/build/build.js"
61
61
  },
62
62
  "dependencies": {
63
- "@elliemae/ds-system": "2.0.0-rc.6",
63
+ "@elliemae/ds-system": "2.0.0",
64
64
  "react-desc": "~4.1.3"
65
65
  },
66
66
  "devDependencies": {
67
+ "@testing-library/jest-dom": "~5.15.0",
68
+ "@testing-library/react": "~12.1.2",
69
+ "@testing-library/user-event": "~13.5.0",
67
70
  "styled-components": "~5.3.3",
68
71
  "styled-system": "~5.1.5"
69
72
  },
package/types/Grid.d.ts CHANGED
@@ -1,6 +1,11 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  import React from 'react';
2
3
  import type { GridPropsT } from './types';
3
4
  declare const Grid: React.ForwardRefExoticComponent<GridPropsT & React.RefAttributes<HTMLDivElement>>;
4
- declare const DSGridWithSchema: any;
5
+ declare const DSGridWithSchema: {
6
+ (props?: (GridPropsT & React.RefAttributes<HTMLDivElement>) | undefined): JSX.Element;
7
+ propTypes: unknown;
8
+ toTypescript: () => import("react-desc").TypescriptSchema;
9
+ };
5
10
  export default Grid;
6
11
  export { DSGridWithSchema };
@@ -1,27 +1,135 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  export declare const propTypes: {
2
- rows: any;
3
- cols: any;
4
- span: any;
5
- alignItems: any;
6
- children: any;
7
- className: any;
8
- justifyContent: any;
9
- gutter: any;
10
- wrap: any;
11
- height: any;
12
- width: any;
13
- p: any;
14
- m: any;
15
- px: any;
16
- mx: any;
17
- py: any;
18
- my: any;
19
- ml: any;
20
- mr: any;
21
- mt: any;
22
- mb: any;
23
- pl: any;
24
- pr: any;
25
- pt: any;
26
- pb: any;
3
+ rows: {
4
+ deprecated: import("react-desc").PropTypesDescValidator;
5
+ };
6
+ cols: {
7
+ deprecated: import("react-desc").PropTypesDescValidator;
8
+ };
9
+ span: {
10
+ defaultValue<T = unknown>(arg: T): {
11
+ deprecated: import("react-desc").PropTypesDescValidator;
12
+ };
13
+ isRequired: import("react-desc").PropTypesDescValidator;
14
+ };
15
+ alignItems: {
16
+ defaultValue<T = unknown>(arg: T): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValidator;
20
+ };
21
+ children: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
27
+ className: {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ justifyContent: {
31
+ deprecated: import("react-desc").PropTypesDescValidator;
32
+ };
33
+ gutter: {
34
+ deprecated: import("react-desc").PropTypesDescValidator;
35
+ };
36
+ wrap: {
37
+ deprecated: import("react-desc").PropTypesDescValidator;
38
+ };
39
+ height: {
40
+ defaultValue<T = unknown>(arg: T): {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ isRequired: import("react-desc").PropTypesDescValidator;
44
+ };
45
+ width: {
46
+ defaultValue<T = unknown>(arg: T): {
47
+ deprecated: import("react-desc").PropTypesDescValidator;
48
+ };
49
+ isRequired: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ p: {
52
+ defaultValue<T = unknown>(arg: T): {
53
+ deprecated: import("react-desc").PropTypesDescValidator;
54
+ };
55
+ isRequired: import("react-desc").PropTypesDescValidator;
56
+ };
57
+ m: {
58
+ defaultValue<T = unknown>(arg: T): {
59
+ deprecated: import("react-desc").PropTypesDescValidator;
60
+ };
61
+ isRequired: import("react-desc").PropTypesDescValidator;
62
+ };
63
+ px: {
64
+ defaultValue<T = unknown>(arg: T): {
65
+ deprecated: import("react-desc").PropTypesDescValidator;
66
+ };
67
+ isRequired: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ mx: {
70
+ defaultValue<T = unknown>(arg: T): {
71
+ deprecated: import("react-desc").PropTypesDescValidator;
72
+ };
73
+ isRequired: import("react-desc").PropTypesDescValidator;
74
+ };
75
+ py: {
76
+ defaultValue<T = unknown>(arg: T): {
77
+ deprecated: import("react-desc").PropTypesDescValidator;
78
+ };
79
+ isRequired: import("react-desc").PropTypesDescValidator;
80
+ };
81
+ my: {
82
+ defaultValue<T = unknown>(arg: T): {
83
+ deprecated: import("react-desc").PropTypesDescValidator;
84
+ };
85
+ isRequired: import("react-desc").PropTypesDescValidator;
86
+ };
87
+ ml: {
88
+ defaultValue<T = unknown>(arg: T): {
89
+ deprecated: import("react-desc").PropTypesDescValidator;
90
+ };
91
+ isRequired: import("react-desc").PropTypesDescValidator;
92
+ };
93
+ mr: {
94
+ defaultValue<T = unknown>(arg: T): {
95
+ deprecated: import("react-desc").PropTypesDescValidator;
96
+ };
97
+ isRequired: import("react-desc").PropTypesDescValidator;
98
+ };
99
+ mt: {
100
+ defaultValue<T = unknown>(arg: T): {
101
+ deprecated: import("react-desc").PropTypesDescValidator;
102
+ };
103
+ isRequired: import("react-desc").PropTypesDescValidator;
104
+ };
105
+ mb: {
106
+ defaultValue<T = unknown>(arg: T): {
107
+ deprecated: import("react-desc").PropTypesDescValidator;
108
+ };
109
+ isRequired: import("react-desc").PropTypesDescValidator;
110
+ };
111
+ pl: {
112
+ defaultValue<T = unknown>(arg: T): {
113
+ deprecated: import("react-desc").PropTypesDescValidator;
114
+ };
115
+ isRequired: import("react-desc").PropTypesDescValidator;
116
+ };
117
+ pr: {
118
+ defaultValue<T = unknown>(arg: T): {
119
+ deprecated: import("react-desc").PropTypesDescValidator;
120
+ };
121
+ isRequired: import("react-desc").PropTypesDescValidator;
122
+ };
123
+ pt: {
124
+ defaultValue<T = unknown>(arg: T): {
125
+ deprecated: import("react-desc").PropTypesDescValidator;
126
+ };
127
+ isRequired: import("react-desc").PropTypesDescValidator;
128
+ };
129
+ pb: {
130
+ defaultValue<T = unknown>(arg: T): {
131
+ deprecated: import("react-desc").PropTypesDescValidator;
132
+ };
133
+ isRequired: import("react-desc").PropTypesDescValidator;
134
+ };
27
135
  };
package/types/types.d.ts CHANGED
@@ -11,21 +11,38 @@ interface SpanBreakpoints {
11
11
  large?: number;
12
12
  }
13
13
  export interface GridPropsT {
14
- rows?: string | number[] | RowColBreakpoints;
15
- cols?: string | number[] | RowColBreakpoints;
14
+ height?: string;
15
+ width?: string;
16
+ rows?: string[] | string | number[] | RowColBreakpoints;
17
+ cols?: string[] | string | number[] | RowColBreakpoints;
18
+ justifyContent?: typeof justifyPlacement[number];
16
19
  alignItems?: typeof alignItemsPlacement[number];
17
- children?: React.ReactElement[];
20
+ children?: React.ReactNode;
18
21
  className?: string;
19
22
  justify?: typeof justifyPlacement[number];
20
23
  gutter?: string | number;
21
24
  wrap?: typeof wrap[number];
22
25
  span?: number;
26
+ p?: string | number;
27
+ m?: string | number;
28
+ px?: string | number;
29
+ mx?: string | number;
30
+ py?: string | number;
31
+ my?: string | number;
32
+ ml?: string | number;
33
+ mr?: string | number;
34
+ mt?: string | number;
35
+ mb?: string | number;
36
+ pl?: string | number;
37
+ pr?: string | number;
38
+ pt?: string | number;
39
+ pb?: string | number;
23
40
  }
24
41
  export interface GridPropsWithDefaultT {
25
42
  rows: string | number[] | RowColBreakpoints;
26
43
  cols: string | number[] | RowColBreakpoints;
27
44
  alignItems: typeof alignItemsPlacement[number];
28
- children?: React.ReactElement[];
45
+ children?: React.ReactNode;
29
46
  className: string;
30
47
  justify: typeof justifyPlacement[number];
31
48
  gutter: string | number;