@elliemae/ds-grid 2.3.0-alpha.2 → 2.3.0-alpha.7

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 (42) hide show
  1. package/{cjs → dist/cjs}/Grid.js +0 -0
  2. package/{cjs → dist/cjs}/Grid.js.map +0 -0
  3. package/{cjs → dist/cjs}/GridItem.js +0 -0
  4. package/{cjs → dist/cjs}/GridItem.js.map +0 -0
  5. package/{cjs → dist/cjs}/defaultProps.js +0 -0
  6. package/{cjs → dist/cjs}/defaultProps.js.map +0 -0
  7. package/{cjs → dist/cjs}/index.js +0 -0
  8. package/{cjs → dist/cjs}/index.js.map +0 -0
  9. package/{cjs → dist/cjs}/propTypes.js +0 -0
  10. package/{cjs → dist/cjs}/propTypes.js.map +0 -0
  11. package/{cjs → dist/cjs}/types.js +0 -0
  12. package/{cjs → dist/cjs}/types.js.map +0 -0
  13. package/{cjs → dist/cjs}/utils/constants.js +0 -0
  14. package/{cjs → dist/cjs}/utils/constants.js.map +0 -0
  15. package/{cjs → dist/cjs}/utils/styles.js +0 -0
  16. package/{cjs → dist/cjs}/utils/styles.js.map +0 -0
  17. package/{esm → dist/esm}/Grid.js +0 -0
  18. package/{esm → dist/esm}/Grid.js.map +0 -0
  19. package/{esm → dist/esm}/GridItem.js +0 -0
  20. package/{esm → dist/esm}/GridItem.js.map +0 -0
  21. package/{esm → dist/esm}/defaultProps.js +0 -0
  22. package/{esm → dist/esm}/defaultProps.js.map +0 -0
  23. package/{esm → dist/esm}/index.js +0 -0
  24. package/{esm → dist/esm}/index.js.map +0 -0
  25. package/{esm → dist/esm}/propTypes.js +0 -0
  26. package/{esm → dist/esm}/propTypes.js.map +0 -0
  27. package/{esm → dist/esm}/types.js +0 -0
  28. package/{esm → dist/esm}/types.js.map +0 -0
  29. package/{esm → dist/esm}/utils/constants.js +0 -0
  30. package/{esm → dist/esm}/utils/constants.js.map +0 -0
  31. package/{esm → dist/esm}/utils/styles.js +0 -0
  32. package/{esm → dist/esm}/utils/styles.js.map +0 -0
  33. package/package.json +35 -33
  34. package/types/Grid.d.ts +0 -11
  35. package/types/GridItem.d.ts +0 -2
  36. package/types/defaultProps.d.ts +0 -9
  37. package/types/index.d.ts +0 -1
  38. package/types/propTypes.d.ts +0 -135
  39. package/types/tests/DSGrid.events.test.d.ts +0 -1
  40. package/types/types.d.ts +0 -66
  41. package/types/utils/constants.d.ts +0 -3
  42. package/types/utils/styles.d.ts +0 -3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,43 +1,46 @@
1
1
  {
2
2
  "name": "@elliemae/ds-grid",
3
- "version": "2.3.0-alpha.2",
3
+ "version": "2.3.0-alpha.7",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Grid",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./utils/styles": {
15
- "import": "./esm/utils/styles.js",
16
- "require": "./cjs/utils/styles.js"
18
+ "import": "./dist/esm/utils/styles.js",
19
+ "require": "./dist/cjs/utils/styles.js"
17
20
  },
18
21
  "./utils/constants": {
19
- "import": "./esm/utils/constants.js",
20
- "require": "./cjs/utils/constants.js"
22
+ "import": "./dist/esm/utils/constants.js",
23
+ "require": "./dist/cjs/utils/constants.js"
21
24
  },
22
25
  "./types": {
23
- "import": "./esm/types.js",
24
- "require": "./cjs/types.js"
26
+ "import": "./dist/esm/types.js",
27
+ "require": "./dist/cjs/types.js"
25
28
  },
26
29
  "./propTypes": {
27
- "import": "./esm/propTypes.js",
28
- "require": "./cjs/propTypes.js"
30
+ "import": "./dist/esm/propTypes.js",
31
+ "require": "./dist/cjs/propTypes.js"
29
32
  },
30
33
  "./GridItem": {
31
- "import": "./esm/GridItem.js",
32
- "require": "./cjs/GridItem.js"
34
+ "import": "./dist/esm/GridItem.js",
35
+ "require": "./dist/cjs/GridItem.js"
33
36
  },
34
37
  "./Grid": {
35
- "import": "./esm/Grid.js",
36
- "require": "./cjs/Grid.js"
38
+ "import": "./dist/esm/Grid.js",
39
+ "require": "./dist/cjs/Grid.js"
37
40
  },
38
41
  "./defaultProps": {
39
- "import": "./esm/defaultProps.js",
40
- "require": "./cjs/defaultProps.js"
42
+ "import": "./dist/esm/defaultProps.js",
43
+ "require": "./dist/cjs/defaultProps.js"
41
44
  }
42
45
  },
43
46
  "sideEffects": [
@@ -49,23 +52,17 @@
49
52
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
50
53
  },
51
54
  "engines": {
52
- "npm": ">=7",
53
- "node": ">=14"
55
+ "pnpm": ">=6",
56
+ "node": ">=16"
54
57
  },
55
58
  "author": "ICE MT",
56
- "scripts": {
57
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
58
- "prebuild": "exit 0",
59
- "predev": "exit 0",
60
- "build": "node ../../scripts/build/build.js"
61
- },
62
59
  "dependencies": {
63
- "@elliemae/ds-system": "2.3.0-alpha.2",
64
- "@xstyled/styled-components": "~3.1.1",
60
+ "@elliemae/ds-system": "2.3.0-alpha.7",
61
+ "@xstyled/styled-components": "~3.1.2",
65
62
  "react-desc": "~4.1.3"
66
63
  },
67
64
  "devDependencies": {
68
- "@testing-library/jest-dom": "~5.15.0",
65
+ "@testing-library/jest-dom": "~5.15.1",
69
66
  "@testing-library/react": "~12.1.2",
70
67
  "@testing-library/user-event": "~13.5.0",
71
68
  "styled-components": "~5.3.3",
@@ -80,7 +77,12 @@
80
77
  },
81
78
  "publishConfig": {
82
79
  "access": "public",
83
- "directory": "dist",
84
- "generateSubmodules": true
80
+ "typeSafety": false
81
+ },
82
+ "scripts": {
83
+ "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
84
+ "prebuild": "exit 0",
85
+ "predev": "exit 0",
86
+ "build": "node ../../scripts/build/build.js"
85
87
  }
86
88
  }
package/types/Grid.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- import React from 'react';
3
- import type { GridPropsT } from './types';
4
- declare const Grid: React.ForwardRefExoticComponent<GridPropsT & React.RefAttributes<HTMLDivElement>>;
5
- declare const DSGridWithSchema: {
6
- (props?: unknown): JSX.Element;
7
- propTypes: unknown;
8
- toTypescript: () => import("react-desc").TypescriptSchema;
9
- };
10
- export default Grid;
11
- export { DSGridWithSchema, Grid };
@@ -1,2 +0,0 @@
1
- import type { GridItemPropsT } from './types';
2
- export declare const GridItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, GridItemPropsT, never>;
@@ -1,9 +0,0 @@
1
- export declare const defaultProps: {
2
- rows: never[];
3
- cols: never[];
4
- className: string;
5
- justify: "flex-start";
6
- gutter: number;
7
- wrap: "wrap";
8
- span: number;
9
- };
package/types/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { default, Grid, default as GridContainer, default as GridItem, DSGridWithSchema } from './Grid';
@@ -1,135 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- export declare const propTypes: {
3
- rows: {
4
- deprecated: import("react-desc").PropTypesDescValidator;
5
- };
6
- cols: {
7
- deprecated: import("react-desc").PropTypesDescValidator;
8
- };
9
- span: {
10
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
11
- deprecated: import("react-desc").PropTypesDescValidator;
12
- };
13
- isRequired: import("react-desc").PropTypesDescValue;
14
- };
15
- alignItems: {
16
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
17
- deprecated: import("react-desc").PropTypesDescValidator;
18
- };
19
- isRequired: import("react-desc").PropTypesDescValue;
20
- };
21
- children: {
22
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
- deprecated: import("react-desc").PropTypesDescValidator;
24
- };
25
- isRequired: import("react-desc").PropTypesDescValue;
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(arg: import("react-desc").ReactDescPossibleDefaultValues): {
41
- deprecated: import("react-desc").PropTypesDescValidator;
42
- };
43
- isRequired: import("react-desc").PropTypesDescValue;
44
- };
45
- width: {
46
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
47
- deprecated: import("react-desc").PropTypesDescValidator;
48
- };
49
- isRequired: import("react-desc").PropTypesDescValue;
50
- };
51
- p: {
52
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
53
- deprecated: import("react-desc").PropTypesDescValidator;
54
- };
55
- isRequired: import("react-desc").PropTypesDescValue;
56
- };
57
- m: {
58
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
59
- deprecated: import("react-desc").PropTypesDescValidator;
60
- };
61
- isRequired: import("react-desc").PropTypesDescValue;
62
- };
63
- px: {
64
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
65
- deprecated: import("react-desc").PropTypesDescValidator;
66
- };
67
- isRequired: import("react-desc").PropTypesDescValue;
68
- };
69
- mx: {
70
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
71
- deprecated: import("react-desc").PropTypesDescValidator;
72
- };
73
- isRequired: import("react-desc").PropTypesDescValue;
74
- };
75
- py: {
76
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
77
- deprecated: import("react-desc").PropTypesDescValidator;
78
- };
79
- isRequired: import("react-desc").PropTypesDescValue;
80
- };
81
- my: {
82
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
83
- deprecated: import("react-desc").PropTypesDescValidator;
84
- };
85
- isRequired: import("react-desc").PropTypesDescValue;
86
- };
87
- ml: {
88
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
89
- deprecated: import("react-desc").PropTypesDescValidator;
90
- };
91
- isRequired: import("react-desc").PropTypesDescValue;
92
- };
93
- mr: {
94
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
95
- deprecated: import("react-desc").PropTypesDescValidator;
96
- };
97
- isRequired: import("react-desc").PropTypesDescValue;
98
- };
99
- mt: {
100
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
101
- deprecated: import("react-desc").PropTypesDescValidator;
102
- };
103
- isRequired: import("react-desc").PropTypesDescValue;
104
- };
105
- mb: {
106
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
107
- deprecated: import("react-desc").PropTypesDescValidator;
108
- };
109
- isRequired: import("react-desc").PropTypesDescValue;
110
- };
111
- pl: {
112
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
113
- deprecated: import("react-desc").PropTypesDescValidator;
114
- };
115
- isRequired: import("react-desc").PropTypesDescValue;
116
- };
117
- pr: {
118
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
119
- deprecated: import("react-desc").PropTypesDescValidator;
120
- };
121
- isRequired: import("react-desc").PropTypesDescValue;
122
- };
123
- pt: {
124
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
125
- deprecated: import("react-desc").PropTypesDescValidator;
126
- };
127
- isRequired: import("react-desc").PropTypesDescValue;
128
- };
129
- pb: {
130
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
131
- deprecated: import("react-desc").PropTypesDescValidator;
132
- };
133
- isRequired: import("react-desc").PropTypesDescValue;
134
- };
135
- };
@@ -1 +0,0 @@
1
- export {};
package/types/types.d.ts DELETED
@@ -1,66 +0,0 @@
1
- /// <reference types="react" />
2
- import { alignItemsPlacement, justifyPlacement, wrap } from './utils/constants';
3
- interface RowColBreakpoints {
4
- small?: string | number[];
5
- medium?: string | number[];
6
- large?: string | number[];
7
- }
8
- interface SpanBreakpoints {
9
- small?: number;
10
- medium?: number;
11
- large?: number;
12
- }
13
- export interface GridPropsT {
14
- height?: string;
15
- width?: string;
16
- rows?: string[] | string | number[] | RowColBreakpoints;
17
- cols?: string[] | string | number[] | RowColBreakpoints;
18
- justifyContent?: typeof justifyPlacement[number];
19
- alignItems?: typeof alignItemsPlacement[number];
20
- children?: React.ReactNode;
21
- className?: string;
22
- justify?: typeof justifyPlacement[number];
23
- gutter?: string | number;
24
- wrap?: typeof wrap[number];
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;
40
- }
41
- export interface GridPropsWithDefaultT {
42
- rows: string | number[] | RowColBreakpoints;
43
- cols: string | number[] | RowColBreakpoints;
44
- alignItems: typeof alignItemsPlacement[number];
45
- children?: React.ReactNode;
46
- className: string;
47
- justify: typeof justifyPlacement[number];
48
- gutter: string | number;
49
- wrap: typeof wrap[number];
50
- span: number | SpanBreakpoints;
51
- }
52
- export interface GridItemPropsT {
53
- rows: string | number[] | RowColBreakpoints;
54
- cols: string | number[] | RowColBreakpoints;
55
- alignItems: typeof alignItemsPlacement[number];
56
- children: React.ReactElement[];
57
- className: string;
58
- justify: typeof justifyPlacement[number];
59
- gutter: string | number;
60
- wrap: typeof wrap[number];
61
- childNumber: number;
62
- isSpanParent: boolean;
63
- span?: number | SpanBreakpoints;
64
- ref: React.ForwardedRef<HTMLDivElement>;
65
- }
66
- export {};
@@ -1,3 +0,0 @@
1
- export declare const justifyPlacement: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
2
- export declare const alignItemsPlacement: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
3
- export declare const wrap: readonly ["wrap", "nowrap", "wrap-reverse"];
@@ -1,3 +0,0 @@
1
- export declare const manageSpan: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
2
- export declare const manageCols: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
3
- export declare const manageRows: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;