@elliemae/ds-label-value 3.0.0-next.9 → 3.0.0-rc.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/dist/cjs/DSLabelValue.js +9 -16
- package/dist/cjs/DSLabelValue.js.map +1 -1
- package/dist/cjs/components/Group.js +10 -16
- package/dist/cjs/components/Group.js.map +2 -2
- package/dist/cjs/components/Label.js +10 -16
- package/dist/cjs/components/Label.js.map +2 -2
- package/dist/cjs/components/Value.js +10 -16
- package/dist/cjs/components/Value.js.map +2 -2
- package/dist/cjs/components/Wrapper.js +10 -16
- package/dist/cjs/components/Wrapper.js.map +2 -2
- package/dist/cjs/components/defaultProps.js +16 -23
- package/dist/cjs/components/defaultProps.js.map +2 -2
- package/dist/cjs/components/props.js +17 -32
- package/dist/cjs/components/props.js.map +2 -2
- package/dist/cjs/index.js +9 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/DSLabelValue.js.map +1 -1
- package/dist/esm/components/Group.js +1 -0
- package/dist/esm/components/Group.js.map +2 -2
- package/dist/esm/components/Label.js +1 -0
- package/dist/esm/components/Label.js.map +2 -2
- package/dist/esm/components/Value.js +1 -0
- package/dist/esm/components/Value.js.map +2 -2
- package/dist/esm/components/Wrapper.js +1 -0
- package/dist/esm/components/Wrapper.js.map +2 -2
- package/dist/esm/components/defaultProps.js +1 -6
- package/dist/esm/components/defaultProps.js.map +2 -2
- package/dist/esm/components/props.js +3 -15
- package/dist/esm/components/props.js.map +2 -2
- package/package.json +11 -11
package/dist/cjs/DSLabelValue.js
CHANGED
|
@@ -4,27 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var DSLabelValue_exports = {};
|
|
29
22
|
__export(DSLabelValue_exports, {
|
|
30
23
|
GroupWithSchema: () => import_Group.GroupWithSchema,
|
|
@@ -33,6 +26,7 @@ __export(DSLabelValue_exports, {
|
|
|
33
26
|
WrapperWithSchema: () => import_Wrapper.WrapperWithSchema,
|
|
34
27
|
default: () => DSLabelValue_default
|
|
35
28
|
});
|
|
29
|
+
module.exports = __toCommonJS(DSLabelValue_exports);
|
|
36
30
|
var React = __toESM(require("react"));
|
|
37
31
|
var import_Wrapper = __toESM(require("./components/Wrapper"));
|
|
38
32
|
var import_Group = __toESM(require("./components/Group"));
|
|
@@ -45,5 +39,4 @@ const DSLabelValue = Object.assign(import_Wrapper.default, {
|
|
|
45
39
|
Value: import_Value.default
|
|
46
40
|
});
|
|
47
41
|
var DSLabelValue_default = DSLabelValue;
|
|
48
|
-
module.exports = __toCommonJS(DSLabelValue_exports);
|
|
49
42
|
//# sourceMappingURL=DSLabelValue.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSLabelValue.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;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;AACF,CAAC;AAGD,IAAO,uBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var Group_exports = {};
|
|
29
22
|
__export(Group_exports, {
|
|
30
23
|
GroupWithSchema: () => GroupWithSchema,
|
|
31
24
|
default: () => Group_default
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(Group_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
var import_react = __toESM(require("react"));
|
|
35
29
|
var import_react_desc = require("react-desc");
|
|
@@ -46,8 +40,8 @@ const Group = ({ children, inline, orientation }) => /* @__PURE__ */ import_reac
|
|
|
46
40
|
}, children);
|
|
47
41
|
Group.propTypes = import_props.groupProps;
|
|
48
42
|
Group.defaultProps = import_defaultProps.groupDefault;
|
|
43
|
+
Group.displayName = "Group";
|
|
49
44
|
const GroupWithSchema = (0, import_react_desc.describe)(Group);
|
|
50
45
|
GroupWithSchema.propTypes = import_props.groupProps;
|
|
51
46
|
var Group_default = Group;
|
|
52
|
-
module.exports = __toCommonJS(Group_exports);
|
|
53
47
|
//# sourceMappingURL=Group.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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;\
|
|
5
|
-
"mappings": "
|
|
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;\nGroup.displayName = 'Group';\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;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,eAAe,4CAAkB,KAAK,EAC1C,WACA,WACA,CAAC,EAAE,aAAa,aAAc;AAAA,EAC5B;AAAA,GACC,cAAc;AACjB,EACF;AAEA,MAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,kBACjC,mDAAC;AAAA,EAAa,YAAY,EAAE,aAAa,OAAO;AAAA,GAAI,QAAS;AAG/D,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,gCAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var Label_exports = {};
|
|
29
22
|
__export(Label_exports, {
|
|
30
23
|
LabelWithSchema: () => LabelWithSchema,
|
|
31
24
|
default: () => Label_default
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(Label_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
var import_react = __toESM(require("react"));
|
|
35
29
|
var import_react_desc = require("react-desc");
|
|
@@ -46,8 +40,8 @@ const Label = ({ children, position: labelPosition, color }) => /* @__PURE__ */
|
|
|
46
40
|
}, children);
|
|
47
41
|
Label.propTypes = import_props.labelProps;
|
|
48
42
|
Label.defaultProps = import_defaultProps.labelDefault;
|
|
43
|
+
Label.displayName = "Label";
|
|
49
44
|
const LabelWithSchema = (0, import_react_desc.describe)(Label);
|
|
50
45
|
LabelWithSchema.propTypes = import_props.labelProps;
|
|
51
46
|
var Label_default = Label;
|
|
52
|
-
module.exports = __toCommonJS(Label_exports);
|
|
53
47
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/Label.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 { labelProps } from './props';\nimport { labelDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelStyled = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ labelPosition, labelColor }) => ({\n [labelPosition]: labelPosition,\n [labelColor]: labelColor,\n }),\n);\n\nconst Label = ({ children, position: labelPosition, color }) => (\n <LabelStyled classProps={{ labelPosition, color }}>{children}</LabelStyled>\n);\n\nLabel.propTypes = labelProps;\nLabel.defaultProps = labelDefault;\
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { labelProps } from './props';\nimport { labelDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelStyled = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ labelPosition, labelColor }) => ({\n [labelPosition]: labelPosition,\n [labelColor]: labelColor,\n }),\n);\n\nconst Label = ({ children, position: labelPosition, color }) => (\n <LabelStyled classProps={{ labelPosition, color }}>{children}</LabelStyled>\n);\n\nLabel.propTypes = labelProps;\nLabel.defaultProps = labelDefault;\nLabel.displayName = 'Label';\nconst LabelWithSchema = describe(Label);\nLabelWithSchema.propTypes = labelProps;\n\nexport { LabelWithSchema };\nexport default Label;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,cAAc,4CAAkB,KAAK,EACzC,WACA,SACA,CAAC,EAAE,eAAe,iBAAkB;AAAA,GACjC,gBAAgB;AAAA,GAChB,aAAa;AAChB,EACF;AAEA,MAAM,QAAQ,CAAC,EAAE,UAAU,UAAU,eAAe,YAClD,mDAAC;AAAA,EAAY,YAAY,EAAE,eAAe,MAAM;AAAA,GAAI,QAAS;AAG/D,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,gCAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var Value_exports = {};
|
|
29
22
|
__export(Value_exports, {
|
|
30
23
|
ValueWithSchema: () => ValueWithSchema,
|
|
31
24
|
default: () => Value_default
|
|
32
25
|
});
|
|
26
|
+
module.exports = __toCommonJS(Value_exports);
|
|
33
27
|
var React = __toESM(require("react"));
|
|
34
28
|
var import_react = __toESM(require("react"));
|
|
35
29
|
var import_react_desc = require("react-desc");
|
|
@@ -59,8 +53,8 @@ const Value = ({
|
|
|
59
53
|
}, /* @__PURE__ */ import_react.default.createElement("span", null, children));
|
|
60
54
|
Value.propTypes = import_props.valueProps;
|
|
61
55
|
Value.defaultProps = import_defaultProps.valueDefault;
|
|
56
|
+
Value.displayName = "Value";
|
|
62
57
|
const ValueWithSchema = (0, import_react_desc.describe)(Value);
|
|
63
58
|
ValueWithSchema.propTypes = import_props.valueProps;
|
|
64
59
|
var Value_default = Value;
|
|
65
|
-
module.exports = __toCommonJS(Value_exports);
|
|
66
60
|
//# sourceMappingURL=Value.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/Value.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 { valueProps } from './props';\nimport { valueDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst ValueStyled = aggregatedClasses('div')(\n blockName,\n 'value',\n ({ size, valuePosition, valueColor, semibold }) => ({\n [size]: size,\n [valuePosition]: valuePosition,\n [valueColor]: valueColor,\n semibold,\n }),\n);\n\nconst Value = ({\n children,\n position: valuePosition,\n size,\n color: valueColor,\n semibold = false,\n}) => (\n <ValueStyled\n classProps={{\n size,\n valuePosition,\n valueColor,\n semibold,\n }}\n >\n <span>{children}</span>\n </ValueStyled>\n);\n\nValue.propTypes = valueProps;\nValue.defaultProps = valueDefault;\
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { valueProps } from './props';\nimport { valueDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst ValueStyled = aggregatedClasses('div')(\n blockName,\n 'value',\n ({ size, valuePosition, valueColor, semibold }) => ({\n [size]: size,\n [valuePosition]: valuePosition,\n [valueColor]: valueColor,\n semibold,\n }),\n);\n\nconst Value = ({\n children,\n position: valuePosition,\n size,\n color: valueColor,\n semibold = false,\n}) => (\n <ValueStyled\n classProps={{\n size,\n valuePosition,\n valueColor,\n semibold,\n }}\n >\n <span>{children}</span>\n </ValueStyled>\n);\n\nValue.propTypes = valueProps;\nValue.defaultProps = valueDefault;\nValue.displayName = 'Value';\nconst ValueWithSchema = describe(Value);\nValueWithSchema.propTypes = valueProps;\n\nexport { ValueWithSchema };\nexport default Value;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,cAAc,4CAAkB,KAAK,EACzC,WACA,SACA,CAAC,EAAE,MAAM,eAAe,YAAY,eAAgB;AAAA,GACjD,OAAO;AAAA,GACP,gBAAgB;AAAA,GAChB,aAAa;AAAA,EACd;AACF,EACF;AAEA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,OAAO;AAAA,EACP,WAAW;AAAA,MAEX,mDAAC;AAAA,EACC,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,GAEA,mDAAC,cAAM,QAAS,CAClB;AAGF,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,gCAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -18,32 +18,26 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
}
|
|
19
19
|
return a;
|
|
20
20
|
};
|
|
21
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
21
|
var __export = (target, all) => {
|
|
23
22
|
for (var name in all)
|
|
24
23
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
24
|
};
|
|
26
|
-
var
|
|
27
|
-
if (
|
|
28
|
-
for (let key of __getOwnPropNames(
|
|
29
|
-
if (!__hasOwnProp.call(
|
|
30
|
-
__defProp(
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
30
|
}
|
|
32
|
-
return
|
|
31
|
+
return to;
|
|
33
32
|
};
|
|
34
|
-
var __toESM = (
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
38
|
-
return (module2, temp) => {
|
|
39
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
40
|
-
};
|
|
41
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
34
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
35
|
var Wrapper_exports = {};
|
|
43
36
|
__export(Wrapper_exports, {
|
|
44
37
|
WrapperWithSchema: () => WrapperWithSchema,
|
|
45
38
|
default: () => Wrapper_default
|
|
46
39
|
});
|
|
40
|
+
module.exports = __toCommonJS(Wrapper_exports);
|
|
47
41
|
var React = __toESM(require("react"));
|
|
48
42
|
var import_react = __toESM(require("react"));
|
|
49
43
|
var import_react_desc = require("react-desc");
|
|
@@ -62,8 +56,8 @@ const Wrapper = ({ containerProps, children, className, icon, inverted }) => /*
|
|
|
62
56
|
}, containerProps), children));
|
|
63
57
|
Wrapper.propTypes = import_props.wrapperProps;
|
|
64
58
|
Wrapper.defaultProps = import_defaultProps.wrapperDefault;
|
|
59
|
+
Wrapper.displayName = "Wrapper";
|
|
65
60
|
const WrapperWithSchema = (0, import_react_desc.describe)(Wrapper);
|
|
66
61
|
WrapperWithSchema.propTypes = import_props.wrapperProps;
|
|
67
62
|
var Wrapper_default = Wrapper;
|
|
68
|
-
module.exports = __toCommonJS(Wrapper_exports);
|
|
69
63
|
//# sourceMappingURL=Wrapper.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/Wrapper.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 { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\nWrapper.displayName = 'Wrapper';\nconst WrapperWithSchema = describe(Wrapper);\nWrapperWithSchema.propTypes = wrapperProps;\n\nexport { WrapperWithSchema };\nexport default Wrapper;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA6B;AAC7B,0BAA+B;AAE/B,MAAM,YAAY;AAElB,MAAM,oBAAoB,4CAAkB,KAAK,EAC/C,WACA,uBACA,MAAM,IACR;AACA,MAAM,YAAY,4CAAkB,KAAK,EACvC,WACA,WACA,CAAC,EAAE,eAAgB;AAAA,EACjB;AACF,EACF;AAEA,MAAM,UAAU,CAAC,EAAE,gBAAgB,UAAU,WAAW,MAAM,eAC5D,mDAAC;AAAA,EAAU,YAAY,EAAE,SAAS;AAAA,GAC/B,MACD,mDAAC;AAAA,EAAkB;AAAA,GAA0B,iBAC1C,QACH,CACF;AAGF,QAAQ,YAAY;AACpB,QAAQ,eAAe;AACvB,QAAQ,cAAc;AACtB,MAAM,oBAAoB,gCAAS,OAAO;AAC1C,kBAAkB,YAAY;AAG9B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,27 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var defaultProps_exports = {};
|
|
29
22
|
__export(defaultProps_exports, {
|
|
30
23
|
groupDefault: () => groupDefault,
|
|
@@ -32,20 +25,21 @@ __export(defaultProps_exports, {
|
|
|
32
25
|
valueDefault: () => valueDefault,
|
|
33
26
|
wrapperDefault: () => wrapperDefault
|
|
34
27
|
});
|
|
28
|
+
module.exports = __toCommonJS(defaultProps_exports);
|
|
35
29
|
var React = __toESM(require("react"));
|
|
36
|
-
var
|
|
30
|
+
var import_ds_shared = require("@elliemae/ds-shared");
|
|
37
31
|
const groupDefault = {
|
|
38
32
|
inline: false,
|
|
39
|
-
orientation:
|
|
33
|
+
orientation: import_ds_shared.orientationVariants.VERTICAL
|
|
40
34
|
};
|
|
41
35
|
const labelDefault = {
|
|
42
|
-
position:
|
|
43
|
-
color:
|
|
36
|
+
position: import_ds_shared.position.LEFT,
|
|
37
|
+
color: import_ds_shared.fontColor.NEUTRAL500
|
|
44
38
|
};
|
|
45
39
|
const valueDefault = {
|
|
46
|
-
position:
|
|
47
|
-
size:
|
|
48
|
-
color:
|
|
40
|
+
position: import_ds_shared.position.LEFT,
|
|
41
|
+
size: import_ds_shared.sizeVariants.M,
|
|
42
|
+
color: import_ds_shared.fontColor.NEUTRAL700,
|
|
49
43
|
semibold: false
|
|
50
44
|
};
|
|
51
45
|
const wrapperDefault = {
|
|
@@ -54,5 +48,4 @@ const wrapperDefault = {
|
|
|
54
48
|
icon: null,
|
|
55
49
|
inverted: false
|
|
56
50
|
};
|
|
57
|
-
module.exports = __toCommonJS(defaultProps_exports);
|
|
58
51
|
//# sourceMappingURL=defaultProps.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/defaultProps.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { orientationVariants, position, sizeVariants, fontColor } from '@elliemae/ds-shared';\n\nexport const groupDefault = {\n inline: false,\n orientation: orientationVariants.VERTICAL,\n};\n\nexport const labelDefault = {\n position: position.LEFT,\n color: fontColor.NEUTRAL500,\n};\n\nexport const valueDefault = {\n position: position.LEFT,\n size: sizeVariants.M,\n color: fontColor.NEUTRAL700,\n semibold: false,\n};\n\nexport const wrapperDefault = {\n containerProps: {},\n className: '',\n icon: null,\n inverted: false,\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuE;AAEhE,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,aAAa,qCAAoB;AACnC;AAEO,MAAM,eAAe;AAAA,EAC1B,UAAU,0BAAS;AAAA,EACnB,OAAO,2BAAU;AACnB;AAEO,MAAM,eAAe;AAAA,EAC1B,UAAU,0BAAS;AAAA,EACnB,MAAM,8BAAa;AAAA,EACnB,OAAO,2BAAU;AAAA,EACjB,UAAU;AACZ;AAEO,MAAM,iBAAiB;AAAA,EAC5B,gBAAgB,CAAC;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AACZ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,27 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var props_exports = {};
|
|
29
22
|
__export(props_exports, {
|
|
30
23
|
groupProps: () => groupProps,
|
|
@@ -32,22 +25,19 @@ __export(props_exports, {
|
|
|
32
25
|
valueProps: () => valueProps,
|
|
33
26
|
wrapperProps: () => wrapperProps
|
|
34
27
|
});
|
|
28
|
+
module.exports = __toCommonJS(props_exports);
|
|
35
29
|
var React = __toESM(require("react"));
|
|
36
30
|
var import_react_desc = require("react-desc");
|
|
37
|
-
var
|
|
31
|
+
var import_ds_shared = require("@elliemae/ds-shared");
|
|
38
32
|
const groupProps = {
|
|
39
33
|
children: import_react_desc.PropTypes.element.description("The elements to be wrapped"),
|
|
40
34
|
inline: import_react_desc.PropTypes.bool.description("If the label value should be inline"),
|
|
41
35
|
orientation: import_react_desc.PropTypes.string.description("'vertical' or 'horizontal'")
|
|
42
36
|
};
|
|
43
37
|
const labelProps = {
|
|
44
|
-
children: import_react_desc.PropTypes.oneOfType([
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
import_react_desc.PropTypes.number
|
|
48
|
-
]).description("Label element").isRequired,
|
|
49
|
-
position: import_react_desc.PropTypes.string.description("labels position").defaultValue(import_prop_types.position.LEFT),
|
|
50
|
-
color: import_react_desc.PropTypes.string.description("labels color").defaultValue(import_prop_types.fontColor.NEUTRAL500)
|
|
38
|
+
children: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.element, import_react_desc.PropTypes.string, import_react_desc.PropTypes.number]).description("Label element").isRequired,
|
|
39
|
+
position: import_react_desc.PropTypes.string.description("labels position").defaultValue(import_ds_shared.position.LEFT),
|
|
40
|
+
color: import_react_desc.PropTypes.string.description("labels color").defaultValue(import_ds_shared.fontColor.NEUTRAL500)
|
|
51
41
|
};
|
|
52
42
|
const wrapperProps = {
|
|
53
43
|
containerProps: import_react_desc.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
@@ -57,15 +47,10 @@ const wrapperProps = {
|
|
|
57
47
|
children: import_react_desc.PropTypes.element.description("label value").isRequired
|
|
58
48
|
};
|
|
59
49
|
const valueProps = {
|
|
60
|
-
children: import_react_desc.PropTypes.oneOfType([
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
]).description("value element").isRequired,
|
|
65
|
-
size: import_react_desc.PropTypes.func.description("values size").defaultValue(import_prop_types.sizeVariants.M),
|
|
66
|
-
position: import_react_desc.PropTypes.string.description("position of the value").defaultValue(import_prop_types.position.LEFT),
|
|
67
|
-
color: import_react_desc.PropTypes.string.description("value color").defaultValue(import_prop_types.fontColor.NEUTRAL700),
|
|
50
|
+
children: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.element, import_react_desc.PropTypes.string, import_react_desc.PropTypes.number]).description("value element").isRequired,
|
|
51
|
+
size: import_react_desc.PropTypes.func.description("values size").defaultValue(import_ds_shared.sizeVariants.M),
|
|
52
|
+
position: import_react_desc.PropTypes.string.description("position of the value").defaultValue(import_ds_shared.position.LEFT),
|
|
53
|
+
color: import_react_desc.PropTypes.string.description("value color").defaultValue(import_ds_shared.fontColor.NEUTRAL700),
|
|
68
54
|
semibold: import_react_desc.PropTypes.bool.description("semibold or not").defaultValue(false)
|
|
69
55
|
};
|
|
70
|
-
module.exports = __toCommonJS(props_exports);
|
|
71
56
|
//# sourceMappingURL=props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from 'react-desc';\nimport {
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from 'react-desc';\nimport { position, fontColor, sizeVariants } from '@elliemae/ds-shared';\n\nexport const groupProps = {\n /**\n * The elements to be wrapped\n */\n children: PropTypes.element.description('The elements to be wrapped'),\n /**\n * If the label value should be inline\n */\n inline: PropTypes.bool.description('If the label value should be inline'),\n /**\n * 'vertical' or 'horizontal'\n */\n orientation: PropTypes.string.description(\"'vertical' or 'horizontal'\"),\n};\n\nexport const labelProps = {\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description('Label element')\n .isRequired,\n position: PropTypes.string.description('labels position').defaultValue(position.LEFT),\n color: PropTypes.string.description('labels color').defaultValue(fontColor.NEUTRAL500),\n};\n\nexport const wrapperProps = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n className: PropTypes.string.description('html class attribute'),\n icon: PropTypes.element.description('Icon to be attached near value'),\n inverted: PropTypes.bool.description('Changes the position of the label').defaultValue(false),\n children: PropTypes.element.description('label value').isRequired,\n};\n\nexport const valueProps = {\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description('value element')\n .isRequired,\n size: PropTypes.func.description('values size').defaultValue(sizeVariants.M),\n position: PropTypes.string.description('position of the value').defaultValue(position.LEFT),\n color: PropTypes.string.description('value color').defaultValue(fontColor.NEUTRAL700),\n semibold: PropTypes.bool.description('semibold or not').defaultValue(false),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,uBAAkD;AAE3C,MAAM,aAAa;AAAA,EAIxB,UAAU,4BAAU,QAAQ,YAAY,4BAA4B;AAAA,EAIpE,QAAQ,4BAAU,KAAK,YAAY,qCAAqC;AAAA,EAIxE,aAAa,4BAAU,OAAO,YAAY,4BAA4B;AACxE;AAEO,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU,CAAC,4BAAU,SAAS,4BAAU,QAAQ,4BAAU,MAAM,CAAC,EAAE,YAAY,eAAe,EAC/G;AAAA,EACH,UAAU,4BAAU,OAAO,YAAY,iBAAiB,EAAE,aAAa,0BAAS,IAAI;AAAA,EACpF,OAAO,4BAAU,OAAO,YAAY,cAAc,EAAE,aAAa,2BAAU,UAAU;AACvF;AAEO,MAAM,eAAe;AAAA,EAC1B,gBAAgB,4BAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,WAAW,4BAAU,OAAO,YAAY,sBAAsB;AAAA,EAC9D,MAAM,4BAAU,QAAQ,YAAY,gCAAgC;AAAA,EACpE,UAAU,4BAAU,KAAK,YAAY,mCAAmC,EAAE,aAAa,KAAK;AAAA,EAC5F,UAAU,4BAAU,QAAQ,YAAY,aAAa,EAAE;AACzD;AAEO,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU,CAAC,4BAAU,SAAS,4BAAU,QAAQ,4BAAU,MAAM,CAAC,EAAE,YAAY,eAAe,EAC/G;AAAA,EACH,MAAM,4BAAU,KAAK,YAAY,aAAa,EAAE,aAAa,8BAAa,CAAC;AAAA,EAC3E,UAAU,4BAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,0BAAS,IAAI;AAAA,EAC1F,OAAO,4BAAU,OAAO,YAAY,aAAa,EAAE,aAAa,2BAAU,UAAU;AAAA,EACpF,UAAU,4BAAU,KAAK,YAAY,iBAAiB,EAAE,aAAa,KAAK;AAC5E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,27 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
7
|
var __export = (target, all) => {
|
|
9
8
|
for (var name in all)
|
|
10
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
10
|
};
|
|
12
|
-
var
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
16
|
}
|
|
18
|
-
return
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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);
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
21
|
var src_exports = {};
|
|
29
22
|
__export(src_exports, {
|
|
30
23
|
DSLabelValue: () => import_DSLabelValue.default,
|
|
@@ -34,7 +27,7 @@ __export(src_exports, {
|
|
|
34
27
|
WrapperWithSchema: () => import_DSLabelValue.WrapperWithSchema,
|
|
35
28
|
default: () => import_DSLabelValue.default
|
|
36
29
|
});
|
|
30
|
+
module.exports = __toCommonJS(src_exports);
|
|
37
31
|
var React = __toESM(require("react"));
|
|
38
32
|
var import_DSLabelValue = __toESM(require("./DSLabelValue"));
|
|
39
|
-
module.exports = __toCommonJS(src_exports);
|
|
40
33
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["export {\n default,\n default as DSLabelValue,\n WrapperWithSchema,\n GroupWithSchema,\n LabelWithSchema,\n ValueWithSchema,\n} from './DSLabelValue';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAOO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLabelValue.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,eAAe,OAAO,OAAO,SAAS;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,eAAe,OAAO,OAAO,SAAS;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGD,IAAO,uBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -14,6 +14,7 @@ const Group = ({ children, inline, orientation }) => /* @__PURE__ */ React2.crea
|
|
|
14
14
|
}, children);
|
|
15
15
|
Group.propTypes = groupProps;
|
|
16
16
|
Group.defaultProps = groupDefault;
|
|
17
|
+
Group.displayName = "Group";
|
|
17
18
|
const GroupWithSchema = describe(Group);
|
|
18
19
|
GroupWithSchema.propTypes = groupProps;
|
|
19
20
|
var Group_default = Group;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Group.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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;\
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,eAAe,kBAAkB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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;\nGroup.displayName = 'Group';\nconst GroupWithSchema = describe(Group);\nGroupWithSchema.propTypes = groupProps;\n\nexport { GroupWithSchema };\nexport default Group;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,eAAe,kBAAkB,KAAK,EAC1C,WACA,WACA,CAAC,EAAE,aAAa,aAAc;AAAA,EAC5B;AAAA,GACC,cAAc;AACjB,EACF;AAEA,MAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,kBACjC,qCAAC;AAAA,EAAa,YAAY,EAAE,aAAa,OAAO;AAAA,GAAI,QAAS;AAG/D,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,SAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -14,6 +14,7 @@ const Label = ({ children, position: labelPosition, color }) => /* @__PURE__ */
|
|
|
14
14
|
}, children);
|
|
15
15
|
Label.propTypes = labelProps;
|
|
16
16
|
Label.defaultProps = labelDefault;
|
|
17
|
+
Label.displayName = "Label";
|
|
17
18
|
const LabelWithSchema = describe(Label);
|
|
18
19
|
LabelWithSchema.propTypes = labelProps;
|
|
19
20
|
var Label_default = Label;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Label.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { labelProps } from './props';\nimport { labelDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelStyled = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ labelPosition, labelColor }) => ({\n [labelPosition]: labelPosition,\n [labelColor]: labelColor,\n }),\n);\n\nconst Label = ({ children, position: labelPosition, color }) => (\n <LabelStyled classProps={{ labelPosition, color }}>{children}</LabelStyled>\n);\n\nLabel.propTypes = labelProps;\nLabel.defaultProps = labelDefault;\
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { labelProps } from './props';\nimport { labelDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelStyled = aggregatedClasses('div')(\n blockName,\n 'label',\n ({ labelPosition, labelColor }) => ({\n [labelPosition]: labelPosition,\n [labelColor]: labelColor,\n }),\n);\n\nconst Label = ({ children, position: labelPosition, color }) => (\n <LabelStyled classProps={{ labelPosition, color }}>{children}</LabelStyled>\n);\n\nLabel.propTypes = labelProps;\nLabel.defaultProps = labelDefault;\nLabel.displayName = 'Label';\nconst LabelWithSchema = describe(Label);\nLabelWithSchema.propTypes = labelProps;\n\nexport { LabelWithSchema };\nexport default Label;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,KAAK,EACzC,WACA,SACA,CAAC,EAAE,eAAe,iBAAkB;AAAA,GACjC,gBAAgB;AAAA,GAChB,aAAa;AAChB,EACF;AAEA,MAAM,QAAQ,CAAC,EAAE,UAAU,UAAU,eAAe,YAClD,qCAAC;AAAA,EAAY,YAAY,EAAE,eAAe,MAAM;AAAA,GAAI,QAAS;AAG/D,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,SAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -27,6 +27,7 @@ const Value = ({
|
|
|
27
27
|
}, /* @__PURE__ */ React2.createElement("span", null, children));
|
|
28
28
|
Value.propTypes = valueProps;
|
|
29
29
|
Value.defaultProps = valueDefault;
|
|
30
|
+
Value.displayName = "Value";
|
|
30
31
|
const ValueWithSchema = describe(Value);
|
|
31
32
|
ValueWithSchema.propTypes = valueProps;
|
|
32
33
|
var Value_default = Value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Value.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { valueProps } from './props';\nimport { valueDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst ValueStyled = aggregatedClasses('div')(\n blockName,\n 'value',\n ({ size, valuePosition, valueColor, semibold }) => ({\n [size]: size,\n [valuePosition]: valuePosition,\n [valueColor]: valueColor,\n semibold,\n }),\n);\n\nconst Value = ({\n children,\n position: valuePosition,\n size,\n color: valueColor,\n semibold = false,\n}) => (\n <ValueStyled\n classProps={{\n size,\n valuePosition,\n valueColor,\n semibold,\n }}\n >\n <span>{children}</span>\n </ValueStyled>\n);\n\nValue.propTypes = valueProps;\nValue.defaultProps = valueDefault;\
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { valueProps } from './props';\nimport { valueDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst ValueStyled = aggregatedClasses('div')(\n blockName,\n 'value',\n ({ size, valuePosition, valueColor, semibold }) => ({\n [size]: size,\n [valuePosition]: valuePosition,\n [valueColor]: valueColor,\n semibold,\n }),\n);\n\nconst Value = ({\n children,\n position: valuePosition,\n size,\n color: valueColor,\n semibold = false,\n}) => (\n <ValueStyled\n classProps={{\n size,\n valuePosition,\n valueColor,\n semibold,\n }}\n >\n <span>{children}</span>\n </ValueStyled>\n);\n\nValue.propTypes = valueProps;\nValue.defaultProps = valueDefault;\nValue.displayName = 'Value';\nconst ValueWithSchema = describe(Value);\nValueWithSchema.propTypes = valueProps;\n\nexport { ValueWithSchema };\nexport default Value;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,cAAc,kBAAkB,KAAK,EACzC,WACA,SACA,CAAC,EAAE,MAAM,eAAe,YAAY,eAAgB;AAAA,GACjD,OAAO;AAAA,GACP,gBAAgB;AAAA,GAChB,aAAa;AAAA,EACd;AACF,EACF;AAEA,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,OAAO;AAAA,EACP,WAAW;AAAA,MAEX,qCAAC;AAAA,EACC,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,GAEA,qCAAC,cAAM,QAAS,CAClB;AAGF,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,kBAAkB,SAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -32,6 +32,7 @@ const Wrapper = ({ containerProps, children, className, icon, inverted }) => /*
|
|
|
32
32
|
}, containerProps), children));
|
|
33
33
|
Wrapper.propTypes = wrapperProps;
|
|
34
34
|
Wrapper.defaultProps = wrapperDefault;
|
|
35
|
+
Wrapper.displayName = "Wrapper";
|
|
35
36
|
const WrapperWithSchema = describe(Wrapper);
|
|
36
37
|
WrapperWithSchema.propTypes = wrapperProps;
|
|
37
38
|
var Wrapper_default = Wrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Wrapper.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,oBAAoB,kBAAkB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { wrapperProps } from './props';\nimport { wrapperDefault } from './defaultProps';\n\nconst blockName = 'labelValue';\n\nconst LabelValueWrapper = aggregatedClasses('div')(\n blockName,\n 'label-value-wrapper',\n () => null,\n);\nconst Container = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ inverted }) => ({\n inverted,\n }),\n);\n\nconst Wrapper = ({ containerProps, children, className, icon, inverted }) => (\n <Container classProps={{ inverted }}>\n {icon}\n <LabelValueWrapper className={className} {...containerProps}>\n {children}\n </LabelValueWrapper>\n </Container>\n);\n\nWrapper.propTypes = wrapperProps;\nWrapper.defaultProps = wrapperDefault;\nWrapper.displayName = 'Wrapper';\nconst WrapperWithSchema = describe(Wrapper);\nWrapperWithSchema.propTypes = wrapperProps;\n\nexport { WrapperWithSchema };\nexport default Wrapper;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,oBAAoB,kBAAkB,KAAK,EAC/C,WACA,uBACA,MAAM,IACR;AACA,MAAM,YAAY,kBAAkB,KAAK,EACvC,WACA,WACA,CAAC,EAAE,eAAgB;AAAA,EACjB;AACF,EACF;AAEA,MAAM,UAAU,CAAC,EAAE,gBAAgB,UAAU,WAAW,MAAM,eAC5D,qCAAC;AAAA,EAAU,YAAY,EAAE,SAAS;AAAA,GAC/B,MACD,qCAAC;AAAA,EAAkB;AAAA,GAA0B,iBAC1C,QACH,CACF;AAGF,QAAQ,YAAY;AACpB,QAAQ,eAAe;AACvB,QAAQ,cAAc;AACtB,MAAM,oBAAoB,SAAS,OAAO;AAC1C,kBAAkB,YAAY;AAG9B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
orientationVariants,
|
|
4
|
-
position,
|
|
5
|
-
sizeVariants,
|
|
6
|
-
fontColor
|
|
7
|
-
} from "@elliemae/ds-shared/prop-types";
|
|
2
|
+
import { orientationVariants, position, sizeVariants, fontColor } from "@elliemae/ds-shared";
|
|
8
3
|
const groupDefault = {
|
|
9
4
|
inline: false,
|
|
10
5
|
orientation: orientationVariants.VERTICAL
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/defaultProps.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {
|
|
5
|
-
"mappings": "AAAA;ACAA;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { orientationVariants, position, sizeVariants, fontColor } from '@elliemae/ds-shared';\n\nexport const groupDefault = {\n inline: false,\n orientation: orientationVariants.VERTICAL,\n};\n\nexport const labelDefault = {\n position: position.LEFT,\n color: fontColor.NEUTRAL500,\n};\n\nexport const valueDefault = {\n position: position.LEFT,\n size: sizeVariants.M,\n color: fontColor.NEUTRAL700,\n semibold: false,\n};\n\nexport const wrapperDefault = {\n containerProps: {},\n className: '',\n icon: null,\n inverted: false,\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,aAAa,oBAAoB;AACnC;AAEO,MAAM,eAAe;AAAA,EAC1B,UAAU,SAAS;AAAA,EACnB,OAAO,UAAU;AACnB;AAEO,MAAM,eAAe;AAAA,EAC1B,UAAU,SAAS;AAAA,EACnB,MAAM,aAAa;AAAA,EACnB,OAAO,UAAU;AAAA,EACjB,UAAU;AACZ;AAEO,MAAM,iBAAiB;AAAA,EAC5B,gBAAgB,CAAC;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AACZ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PropTypes } from "react-desc";
|
|
3
|
-
import {
|
|
4
|
-
position,
|
|
5
|
-
fontColor,
|
|
6
|
-
sizeVariants
|
|
7
|
-
} from "@elliemae/ds-shared/prop-types";
|
|
3
|
+
import { position, fontColor, sizeVariants } from "@elliemae/ds-shared";
|
|
8
4
|
const groupProps = {
|
|
9
5
|
children: PropTypes.element.description("The elements to be wrapped"),
|
|
10
6
|
inline: PropTypes.bool.description("If the label value should be inline"),
|
|
11
7
|
orientation: PropTypes.string.description("'vertical' or 'horizontal'")
|
|
12
8
|
};
|
|
13
9
|
const labelProps = {
|
|
14
|
-
children: PropTypes.oneOfType([
|
|
15
|
-
PropTypes.element,
|
|
16
|
-
PropTypes.string,
|
|
17
|
-
PropTypes.number
|
|
18
|
-
]).description("Label element").isRequired,
|
|
10
|
+
children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description("Label element").isRequired,
|
|
19
11
|
position: PropTypes.string.description("labels position").defaultValue(position.LEFT),
|
|
20
12
|
color: PropTypes.string.description("labels color").defaultValue(fontColor.NEUTRAL500)
|
|
21
13
|
};
|
|
@@ -27,11 +19,7 @@ const wrapperProps = {
|
|
|
27
19
|
children: PropTypes.element.description("label value").isRequired
|
|
28
20
|
};
|
|
29
21
|
const valueProps = {
|
|
30
|
-
children: PropTypes.oneOfType([
|
|
31
|
-
PropTypes.element,
|
|
32
|
-
PropTypes.string,
|
|
33
|
-
PropTypes.number
|
|
34
|
-
]).description("value element").isRequired,
|
|
22
|
+
children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description("value element").isRequired,
|
|
35
23
|
size: PropTypes.func.description("values size").defaultValue(sizeVariants.M),
|
|
36
24
|
position: PropTypes.string.description("position of the value").defaultValue(position.LEFT),
|
|
37
25
|
color: PropTypes.string.description("value color").defaultValue(fontColor.NEUTRAL700),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/props.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from 'react-desc';\nimport {
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from 'react-desc';\nimport { position, fontColor, sizeVariants } from '@elliemae/ds-shared';\n\nexport const groupProps = {\n /**\n * The elements to be wrapped\n */\n children: PropTypes.element.description('The elements to be wrapped'),\n /**\n * If the label value should be inline\n */\n inline: PropTypes.bool.description('If the label value should be inline'),\n /**\n * 'vertical' or 'horizontal'\n */\n orientation: PropTypes.string.description(\"'vertical' or 'horizontal'\"),\n};\n\nexport const labelProps = {\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description('Label element')\n .isRequired,\n position: PropTypes.string.description('labels position').defaultValue(position.LEFT),\n color: PropTypes.string.description('labels color').defaultValue(fontColor.NEUTRAL500),\n};\n\nexport const wrapperProps = {\n containerProps: PropTypes.object.description('Set of Properties attached to the main container'),\n className: PropTypes.string.description('html class attribute'),\n icon: PropTypes.element.description('Icon to be attached near value'),\n inverted: PropTypes.bool.description('Changes the position of the label').defaultValue(false),\n children: PropTypes.element.description('label value').isRequired,\n};\n\nexport const valueProps = {\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number]).description('value element')\n .isRequired,\n size: PropTypes.func.description('values size').defaultValue(sizeVariants.M),\n position: PropTypes.string.description('position of the value').defaultValue(position.LEFT),\n color: PropTypes.string.description('value color').defaultValue(fontColor.NEUTRAL700),\n semibold: PropTypes.bool.description('semibold or not').defaultValue(false),\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEO,MAAM,aAAa;AAAA,EAIxB,UAAU,UAAU,QAAQ,YAAY,4BAA4B;AAAA,EAIpE,QAAQ,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAIxE,aAAa,UAAU,OAAO,YAAY,4BAA4B;AACxE;AAEO,MAAM,aAAa;AAAA,EACxB,UAAU,UAAU,UAAU,CAAC,UAAU,SAAS,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe,EAC/G;AAAA,EACH,UAAU,UAAU,OAAO,YAAY,iBAAiB,EAAE,aAAa,SAAS,IAAI;AAAA,EACpF,OAAO,UAAU,OAAO,YAAY,cAAc,EAAE,aAAa,UAAU,UAAU;AACvF;AAEO,MAAM,eAAe;AAAA,EAC1B,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,WAAW,UAAU,OAAO,YAAY,sBAAsB;AAAA,EAC9D,MAAM,UAAU,QAAQ,YAAY,gCAAgC;AAAA,EACpE,UAAU,UAAU,KAAK,YAAY,mCAAmC,EAAE,aAAa,KAAK;AAAA,EAC5F,UAAU,UAAU,QAAQ,YAAY,aAAa,EAAE;AACzD;AAEO,MAAM,aAAa;AAAA,EACxB,UAAU,UAAU,UAAU,CAAC,UAAU,SAAS,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,eAAe,EAC/G;AAAA,EACH,MAAM,UAAU,KAAK,YAAY,aAAa,EAAE,aAAa,aAAa,CAAC;AAAA,EAC3E,UAAU,UAAU,OAAO,YAAY,uBAAuB,EAAE,aAAa,SAAS,IAAI;AAAA,EAC1F,OAAO,UAAU,OAAO,YAAY,aAAa,EAAE,aAAa,UAAU,UAAU;AAAA,EACpF,UAAU,UAAU,KAAK,YAAY,iBAAiB,EAAE,aAAa,KAAK;AAC5E;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-label-value",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Label value",
|
|
6
6
|
"files": [
|
|
@@ -62,9 +62,16 @@
|
|
|
62
62
|
"reportFile": "tests.xml",
|
|
63
63
|
"indent": 4
|
|
64
64
|
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
67
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
68
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
69
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
70
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
71
|
+
},
|
|
65
72
|
"dependencies": {
|
|
66
|
-
"@elliemae/ds-classnames": "
|
|
67
|
-
"@elliemae/ds-shared": "
|
|
73
|
+
"@elliemae/ds-classnames": "workspace:*",
|
|
74
|
+
"@elliemae/ds-shared": "workspace:*",
|
|
68
75
|
"react-desc": "~4.1.3"
|
|
69
76
|
},
|
|
70
77
|
"peerDependencies": {
|
|
@@ -75,12 +82,5 @@
|
|
|
75
82
|
"publishConfig": {
|
|
76
83
|
"access": "public",
|
|
77
84
|
"typeSafety": false
|
|
78
|
-
},
|
|
79
|
-
"scripts": {
|
|
80
|
-
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
81
|
-
"test": "node ../../scripts/testing/test.mjs",
|
|
82
|
-
"lint": "node ../../scripts/lint.mjs",
|
|
83
|
-
"dts": "node ../../scripts/dts.mjs",
|
|
84
|
-
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|