@elliemae/ds-label-value 2.3.0-alpha.6 → 2.3.0-next.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/cjs/DSLabelValue.js +21 -0
- package/cjs/components/Group.js +47 -0
- package/cjs/components/Label.js +47 -0
- package/cjs/components/Value.js +55 -0
- package/cjs/components/Wrapper.js +62 -0
- package/cjs/components/defaultProps.js +31 -0
- package/cjs/components/props.js +47 -0
- package/cjs/index.js +18 -0
- package/esm/DSLabelValue.js +17 -0
- package/esm/components/Group.js +38 -0
- package/esm/components/Label.js +38 -0
- package/esm/components/Value.js +46 -0
- package/esm/components/Wrapper.js +52 -0
- package/{dist/esm → esm}/components/defaultProps.js +5 -15
- package/esm/components/props.js +40 -0
- package/esm/index.js +5 -0
- package/package.json +32 -34
- package/types/DSLabelValue.d.ts +168 -0
- package/types/components/Group.d.ts +40 -0
- package/types/components/Label.d.ts +29 -0
- package/types/components/Value.d.ts +39 -0
- package/types/components/Wrapper.d.ts +48 -0
- package/types/components/defaultProps.d.ts +20 -0
- package/types/components/props.d.ts +78 -0
- package/types/index.d.ts +1 -0
- package/dist/cjs/DSLabelValue.js +0 -49
- package/dist/cjs/DSLabelValue.js.map +0 -7
- package/dist/cjs/components/Group.js +0 -53
- package/dist/cjs/components/Group.js.map +0 -7
- package/dist/cjs/components/Label.js +0 -53
- package/dist/cjs/components/Label.js.map +0 -7
- package/dist/cjs/components/Value.js +0 -66
- package/dist/cjs/components/Value.js.map +0 -7
- package/dist/cjs/components/Wrapper.js +0 -56
- package/dist/cjs/components/Wrapper.js.map +0 -7
- package/dist/cjs/components/defaultProps.js +0 -58
- package/dist/cjs/components/defaultProps.js.map +0 -7
- package/dist/cjs/components/props.js +0 -71
- package/dist/cjs/components/props.js.map +0 -7
- package/dist/cjs/index.js +0 -40
- package/dist/cjs/index.js.map +0 -7
- package/dist/esm/DSLabelValue.js +0 -20
- package/dist/esm/DSLabelValue.js.map +0 -7
- package/dist/esm/components/Group.js +0 -24
- package/dist/esm/components/Group.js.map +0 -7
- package/dist/esm/components/Label.js +0 -24
- package/dist/esm/components/Label.js.map +0 -7
- package/dist/esm/components/Value.js +0 -37
- package/dist/esm/components/Value.js.map +0 -7
- package/dist/esm/components/Wrapper.js +0 -27
- package/dist/esm/components/Wrapper.js.map +0 -7
- package/dist/esm/components/defaultProps.js.map +0 -7
- package/dist/esm/components/props.js +0 -46
- package/dist/esm/components/props.js.map +0 -7
- package/dist/esm/index.js +0 -18
- package/dist/esm/index.js.map +0 -7
package/package.json
CHANGED
|
@@ -1,46 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-label-value",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Label value",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"module": "./dist/esm/index.js",
|
|
10
|
-
"main": "./dist/cjs/index.js",
|
|
11
|
-
"types": "./dist/types/index.d.ts",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
12
9
|
"exports": {
|
|
13
10
|
".": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
16
13
|
},
|
|
17
14
|
"./DSLabelValue": {
|
|
18
|
-
"import": "./
|
|
19
|
-
"require": "./
|
|
15
|
+
"import": "./esm/DSLabelValue.js",
|
|
16
|
+
"require": "./cjs/DSLabelValue.js"
|
|
20
17
|
},
|
|
21
18
|
"./components/Wrapper": {
|
|
22
|
-
"import": "./
|
|
23
|
-
"require": "./
|
|
19
|
+
"import": "./esm/components/Wrapper.js",
|
|
20
|
+
"require": "./cjs/components/Wrapper.js"
|
|
24
21
|
},
|
|
25
22
|
"./components/Value": {
|
|
26
|
-
"import": "./
|
|
27
|
-
"require": "./
|
|
23
|
+
"import": "./esm/components/Value.js",
|
|
24
|
+
"require": "./cjs/components/Value.js"
|
|
28
25
|
},
|
|
29
26
|
"./components/props": {
|
|
30
|
-
"import": "./
|
|
31
|
-
"require": "./
|
|
27
|
+
"import": "./esm/components/props.js",
|
|
28
|
+
"require": "./cjs/components/props.js"
|
|
32
29
|
},
|
|
33
30
|
"./components/Label": {
|
|
34
|
-
"import": "./
|
|
35
|
-
"require": "./
|
|
31
|
+
"import": "./esm/components/Label.js",
|
|
32
|
+
"require": "./cjs/components/Label.js"
|
|
36
33
|
},
|
|
37
34
|
"./components/Group": {
|
|
38
|
-
"import": "./
|
|
39
|
-
"require": "./
|
|
35
|
+
"import": "./esm/components/Group.js",
|
|
36
|
+
"require": "./cjs/components/Group.js"
|
|
40
37
|
},
|
|
41
38
|
"./components/defaultProps": {
|
|
42
|
-
"import": "./
|
|
43
|
-
"require": "./
|
|
39
|
+
"import": "./esm/components/defaultProps.js",
|
|
40
|
+
"require": "./cjs/components/defaultProps.js"
|
|
44
41
|
}
|
|
45
42
|
},
|
|
46
43
|
"sideEffects": [
|
|
@@ -52,13 +49,19 @@
|
|
|
52
49
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
53
50
|
},
|
|
54
51
|
"engines": {
|
|
55
|
-
"
|
|
56
|
-
"node": ">=
|
|
52
|
+
"npm": ">=7",
|
|
53
|
+
"node": ">=14"
|
|
57
54
|
},
|
|
58
55
|
"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
|
+
},
|
|
59
62
|
"dependencies": {
|
|
60
|
-
"@elliemae/ds-classnames": "2.3.0-
|
|
61
|
-
"@elliemae/ds-shared": "2.3.0-
|
|
63
|
+
"@elliemae/ds-classnames": "2.3.0-next.0",
|
|
64
|
+
"@elliemae/ds-shared": "2.3.0-next.0",
|
|
62
65
|
"react-desc": "~4.1.3"
|
|
63
66
|
},
|
|
64
67
|
"peerDependencies": {
|
|
@@ -68,12 +71,7 @@
|
|
|
68
71
|
},
|
|
69
72
|
"publishConfig": {
|
|
70
73
|
"access": "public",
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
"scripts": {
|
|
74
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
75
|
-
"prebuild": "exit 0",
|
|
76
|
-
"predev": "exit 0",
|
|
77
|
-
"build": "node ../../scripts/build/build.js"
|
|
74
|
+
"directory": "dist",
|
|
75
|
+
"generateSubmodules": true
|
|
78
76
|
}
|
|
79
77
|
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { WrapperWithSchema } from './components/Wrapper';
|
|
4
|
+
import { GroupWithSchema } from './components/Group';
|
|
5
|
+
import { LabelWithSchema } from './components/Label';
|
|
6
|
+
import { ValueWithSchema } from './components/Value';
|
|
7
|
+
declare const DSLabelValue: {
|
|
8
|
+
({ containerProps, children, className, icon, inverted }: {
|
|
9
|
+
containerProps: any;
|
|
10
|
+
children: any;
|
|
11
|
+
className: any;
|
|
12
|
+
icon: any;
|
|
13
|
+
inverted: any;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
propTypes: {
|
|
16
|
+
containerProps: {
|
|
17
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
|
+
};
|
|
22
|
+
className: {
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
+
};
|
|
28
|
+
icon: {
|
|
29
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
+
};
|
|
34
|
+
inverted: {
|
|
35
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
children: import("react-desc").PropTypesDescValue;
|
|
38
|
+
};
|
|
39
|
+
defaultProps: {
|
|
40
|
+
containerProps: {};
|
|
41
|
+
className: string;
|
|
42
|
+
icon: null;
|
|
43
|
+
inverted: boolean;
|
|
44
|
+
};
|
|
45
|
+
} & {
|
|
46
|
+
Group: {
|
|
47
|
+
({ children, inline, orientation }: {
|
|
48
|
+
children: any;
|
|
49
|
+
inline: any;
|
|
50
|
+
orientation: any;
|
|
51
|
+
}): JSX.Element;
|
|
52
|
+
propTypes: {
|
|
53
|
+
children: {
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
|
+
};
|
|
59
|
+
inline: {
|
|
60
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
61
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
63
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
64
|
+
};
|
|
65
|
+
orientation: {
|
|
66
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
67
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
69
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
defaultProps: {
|
|
73
|
+
inline: boolean;
|
|
74
|
+
orientation: any;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
Wrapper: {
|
|
78
|
+
({ containerProps, children, className, icon, inverted }: {
|
|
79
|
+
containerProps: any;
|
|
80
|
+
children: any;
|
|
81
|
+
className: any;
|
|
82
|
+
icon: any;
|
|
83
|
+
inverted: any;
|
|
84
|
+
}): JSX.Element;
|
|
85
|
+
propTypes: {
|
|
86
|
+
containerProps: {
|
|
87
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
88
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
89
|
+
};
|
|
90
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
91
|
+
};
|
|
92
|
+
className: {
|
|
93
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
94
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
96
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
97
|
+
};
|
|
98
|
+
icon: {
|
|
99
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
100
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
101
|
+
};
|
|
102
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
103
|
+
};
|
|
104
|
+
inverted: {
|
|
105
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
106
|
+
};
|
|
107
|
+
children: import("react-desc").PropTypesDescValue;
|
|
108
|
+
};
|
|
109
|
+
defaultProps: {
|
|
110
|
+
containerProps: {};
|
|
111
|
+
className: string;
|
|
112
|
+
icon: null;
|
|
113
|
+
inverted: boolean;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
Label: {
|
|
117
|
+
({ children, position: labelPosition, color }: {
|
|
118
|
+
children: any;
|
|
119
|
+
position: any;
|
|
120
|
+
color: any;
|
|
121
|
+
}): JSX.Element;
|
|
122
|
+
propTypes: {
|
|
123
|
+
children: import("react-desc").PropTypesDescValue;
|
|
124
|
+
position: {
|
|
125
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
126
|
+
};
|
|
127
|
+
color: {
|
|
128
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
defaultProps: {
|
|
132
|
+
position: any;
|
|
133
|
+
color: any;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
Value: {
|
|
137
|
+
({ children, position: valuePosition, size, color: valueColor, semibold, }: {
|
|
138
|
+
children: any;
|
|
139
|
+
position: any;
|
|
140
|
+
size: any;
|
|
141
|
+
color: any;
|
|
142
|
+
semibold?: boolean | undefined;
|
|
143
|
+
}): JSX.Element;
|
|
144
|
+
propTypes: {
|
|
145
|
+
children: import("react-desc").PropTypesDescValue;
|
|
146
|
+
size: {
|
|
147
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
148
|
+
};
|
|
149
|
+
position: {
|
|
150
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
151
|
+
};
|
|
152
|
+
color: {
|
|
153
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
154
|
+
};
|
|
155
|
+
semibold: {
|
|
156
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
defaultProps: {
|
|
160
|
+
position: any;
|
|
161
|
+
size: any;
|
|
162
|
+
color: any;
|
|
163
|
+
semibold: boolean;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export { WrapperWithSchema, GroupWithSchema, LabelWithSchema, ValueWithSchema };
|
|
168
|
+
export default DSLabelValue;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const Group: {
|
|
4
|
+
({ children, inline, orientation }: {
|
|
5
|
+
children: any;
|
|
6
|
+
inline: any;
|
|
7
|
+
orientation: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
children: {
|
|
11
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
15
|
+
};
|
|
16
|
+
inline: {
|
|
17
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
|
+
};
|
|
22
|
+
orientation: {
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
defaultProps: {
|
|
30
|
+
inline: boolean;
|
|
31
|
+
orientation: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare const GroupWithSchema: {
|
|
35
|
+
(props?: unknown): JSX.Element;
|
|
36
|
+
propTypes: unknown;
|
|
37
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
38
|
+
};
|
|
39
|
+
export { GroupWithSchema };
|
|
40
|
+
export default Group;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const Label: {
|
|
4
|
+
({ children, position: labelPosition, color }: {
|
|
5
|
+
children: any;
|
|
6
|
+
position: any;
|
|
7
|
+
color: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
children: import("react-desc").PropTypesDescValue;
|
|
11
|
+
position: {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
color: {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
defaultProps: {
|
|
19
|
+
position: any;
|
|
20
|
+
color: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare const LabelWithSchema: {
|
|
24
|
+
(props?: unknown): JSX.Element;
|
|
25
|
+
propTypes: unknown;
|
|
26
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
27
|
+
};
|
|
28
|
+
export { LabelWithSchema };
|
|
29
|
+
export default Label;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const Value: {
|
|
4
|
+
({ children, position: valuePosition, size, color: valueColor, semibold, }: {
|
|
5
|
+
children: any;
|
|
6
|
+
position: any;
|
|
7
|
+
size: any;
|
|
8
|
+
color: any;
|
|
9
|
+
semibold?: boolean | undefined;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
children: import("react-desc").PropTypesDescValue;
|
|
13
|
+
size: {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
position: {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
color: {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
semibold: {
|
|
23
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
defaultProps: {
|
|
27
|
+
position: any;
|
|
28
|
+
size: any;
|
|
29
|
+
color: any;
|
|
30
|
+
semibold: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
declare const ValueWithSchema: {
|
|
34
|
+
(props?: unknown): JSX.Element;
|
|
35
|
+
propTypes: unknown;
|
|
36
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
37
|
+
};
|
|
38
|
+
export { ValueWithSchema };
|
|
39
|
+
export default Value;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const Wrapper: {
|
|
4
|
+
({ containerProps, children, className, icon, inverted }: {
|
|
5
|
+
containerProps: any;
|
|
6
|
+
children: any;
|
|
7
|
+
className: any;
|
|
8
|
+
icon: any;
|
|
9
|
+
inverted: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
containerProps: {
|
|
13
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
17
|
+
};
|
|
18
|
+
className: {
|
|
19
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
29
|
+
};
|
|
30
|
+
inverted: {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
children: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
defaultProps: {
|
|
36
|
+
containerProps: {};
|
|
37
|
+
className: string;
|
|
38
|
+
icon: null;
|
|
39
|
+
inverted: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
declare const WrapperWithSchema: {
|
|
43
|
+
(props?: unknown): JSX.Element;
|
|
44
|
+
propTypes: unknown;
|
|
45
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
46
|
+
};
|
|
47
|
+
export { WrapperWithSchema };
|
|
48
|
+
export default Wrapper;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const groupDefault: {
|
|
2
|
+
inline: boolean;
|
|
3
|
+
orientation: any;
|
|
4
|
+
};
|
|
5
|
+
export declare const labelDefault: {
|
|
6
|
+
position: any;
|
|
7
|
+
color: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const valueDefault: {
|
|
10
|
+
position: any;
|
|
11
|
+
size: any;
|
|
12
|
+
color: any;
|
|
13
|
+
semibold: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const wrapperDefault: {
|
|
16
|
+
containerProps: {};
|
|
17
|
+
className: string;
|
|
18
|
+
icon: null;
|
|
19
|
+
inverted: boolean;
|
|
20
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const groupProps: {
|
|
3
|
+
/**
|
|
4
|
+
* The elements to be wrapped
|
|
5
|
+
*/
|
|
6
|
+
children: {
|
|
7
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
8
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
10
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* If the label value should be inline
|
|
14
|
+
*/
|
|
15
|
+
inline: {
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 'vertical' or 'horizontal'
|
|
23
|
+
*/
|
|
24
|
+
orientation: {
|
|
25
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const labelProps: {
|
|
32
|
+
children: import("react-desc").PropTypesDescValue;
|
|
33
|
+
position: {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
color: {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const wrapperProps: {
|
|
41
|
+
containerProps: {
|
|
42
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
46
|
+
};
|
|
47
|
+
className: {
|
|
48
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
|
+
};
|
|
53
|
+
icon: {
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
|
+
};
|
|
59
|
+
inverted: {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
children: import("react-desc").PropTypesDescValue;
|
|
63
|
+
};
|
|
64
|
+
export declare const valueProps: {
|
|
65
|
+
children: import("react-desc").PropTypesDescValue;
|
|
66
|
+
size: {
|
|
67
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
69
|
+
position: {
|
|
70
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
71
|
+
};
|
|
72
|
+
color: {
|
|
73
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
75
|
+
semibold: {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, default as DSLabelValue, WrapperWithSchema, GroupWithSchema, LabelWithSchema, ValueWithSchema, } from './DSLabelValue';
|
package/dist/cjs/DSLabelValue.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var DSLabelValue_exports = {};
|
|
29
|
-
__export(DSLabelValue_exports, {
|
|
30
|
-
GroupWithSchema: () => import_Group.GroupWithSchema,
|
|
31
|
-
LabelWithSchema: () => import_Label.LabelWithSchema,
|
|
32
|
-
ValueWithSchema: () => import_Value.ValueWithSchema,
|
|
33
|
-
WrapperWithSchema: () => import_Wrapper.WrapperWithSchema,
|
|
34
|
-
default: () => DSLabelValue_default
|
|
35
|
-
});
|
|
36
|
-
var React = __toESM(require("react"));
|
|
37
|
-
var import_Wrapper = __toESM(require("./components/Wrapper"));
|
|
38
|
-
var import_Group = __toESM(require("./components/Group"));
|
|
39
|
-
var import_Label = __toESM(require("./components/Label"));
|
|
40
|
-
var import_Value = __toESM(require("./components/Value"));
|
|
41
|
-
const DSLabelValue = Object.assign(import_Wrapper.default, {
|
|
42
|
-
Group: import_Group.default,
|
|
43
|
-
Wrapper: import_Wrapper.default,
|
|
44
|
-
Label: import_Label.default,
|
|
45
|
-
Value: import_Value.default
|
|
46
|
-
});
|
|
47
|
-
var DSLabelValue_default = DSLabelValue;
|
|
48
|
-
module.exports = __toCommonJS(DSLabelValue_exports);
|
|
49
|
-
//# sourceMappingURL=DSLabelValue.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/DSLabelValue.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import Wrapper, { WrapperWithSchema } from './components/Wrapper';\nimport Group, { GroupWithSchema } from './components/Group';\nimport Label, { LabelWithSchema } from './components/Label';\nimport Value, { ValueWithSchema } from './components/Value';\n\nconst DSLabelValue = Object.assign(Wrapper, {\n Group,\n Wrapper,\n Label,\n Value,\n});\n\nexport { WrapperWithSchema, GroupWithSchema, LabelWithSchema, ValueWithSchema };\nexport default DSLabelValue;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,qBAA2C;AAC3C,mBAAuC;AACvC,mBAAuC;AACvC,mBAAuC;AAEvC,MAAM,eAAe,OAAO,OAAO,wBAAS;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAIF,IAAO,uBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var Group_exports = {};
|
|
29
|
-
__export(Group_exports, {
|
|
30
|
-
GroupWithSchema: () => GroupWithSchema,
|
|
31
|
-
default: () => Group_default
|
|
32
|
-
});
|
|
33
|
-
var React = __toESM(require("react"));
|
|
34
|
-
var import_react = __toESM(require("react"));
|
|
35
|
-
var import_react_desc = require("react-desc");
|
|
36
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
|
-
var import_props = require("./props");
|
|
38
|
-
var import_defaultProps = require("./defaultProps");
|
|
39
|
-
const blockName = "labelValueGroup";
|
|
40
|
-
const WrapperGroup = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ orientation, inline }) => ({
|
|
41
|
-
inline,
|
|
42
|
-
[orientation]: orientation
|
|
43
|
-
}));
|
|
44
|
-
const Group = ({ children, inline, orientation }) => /* @__PURE__ */ import_react.default.createElement(WrapperGroup, {
|
|
45
|
-
classProps: { orientation, inline }
|
|
46
|
-
}, children);
|
|
47
|
-
Group.propTypes = import_props.groupProps;
|
|
48
|
-
Group.defaultProps = import_defaultProps.groupDefault;
|
|
49
|
-
const GroupWithSchema = (0, import_react_desc.describe)(Group);
|
|
50
|
-
GroupWithSchema.propTypes = import_props.groupProps;
|
|
51
|
-
var Group_default = Group;
|
|
52
|
-
module.exports = __toCommonJS(Group_exports);
|
|
53
|
-
//# sourceMappingURL=Group.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/Group.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { groupProps } from './props';\nimport { groupDefault } from './defaultProps';\n\nconst blockName = 'labelValueGroup';\n\nconst WrapperGroup = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ orientation, inline }) => ({\n inline,\n [orientation]: orientation,\n }),\n);\n\nconst Group = ({ children, inline, orientation }) => (\n <WrapperGroup classProps={{ orientation, inline }}>{children}</WrapperGroup>\n);\n\nGroup.propTypes = groupProps;\nGroup.defaultProps = groupDefault;\n\nconst GroupWithSchema = describe(Group);\nGroupWithSchema.propTypes = groupProps;\n\nexport { GroupWithSchema };\nexport default Group;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,eAAe,4CAAkB,OACrC,WACA,WACA,CAAC,EAAE,aAAa,aAAc;AAAA,EAC5B;AAAA,GACC,cAAc;AAAA;AAInB,MAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,kBACjC,mDAAC,cAAD;AAAA,EAAc,YAAY,EAAE,aAAa;AAAA,GAAW;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,gCAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|