@elliemae/ds-label-value 2.2.1 → 2.3.0-alpha.4
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 +48 -20
- package/cjs/DSLabelValue.js.map +7 -0
- package/cjs/components/Group.js +51 -45
- package/cjs/components/Group.js.map +7 -0
- package/cjs/components/Label.js +51 -45
- package/cjs/components/Label.js.map +7 -0
- package/cjs/components/Value.js +62 -51
- package/cjs/components/Value.js.map +7 -0
- package/cjs/components/Wrapper.js +54 -60
- package/cjs/components/Wrapper.js.map +7 -0
- package/cjs/components/defaultProps.js +45 -18
- package/cjs/components/defaultProps.js.map +7 -0
- package/cjs/components/props.js +63 -39
- package/cjs/components/props.js.map +7 -0
- package/cjs/index.js +40 -18
- package/cjs/index.js.map +7 -0
- package/esm/DSLabelValue.js +14 -11
- package/esm/DSLabelValue.js.map +7 -0
- package/esm/components/Group.js +21 -35
- package/esm/components/Group.js.map +7 -0
- package/esm/components/Label.js +21 -35
- package/esm/components/Label.js.map +7 -0
- package/esm/components/Value.js +30 -39
- package/esm/components/Value.js.map +7 -0
- package/esm/components/Wrapper.js +24 -49
- package/esm/components/Wrapper.js.map +7 -0
- package/esm/components/defaultProps.js +15 -5
- package/esm/components/defaultProps.js.map +7 -0
- package/esm/components/props.js +37 -31
- package/esm/components/props.js.map +7 -0
- package/esm/index.js +18 -5
- package/esm/index.js.map +7 -0
- package/package.json +3 -3
package/cjs/DSLabelValue.js
CHANGED
|
@@ -1,21 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
15
35
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
package/cjs/components/Group.js
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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);
|
|
25
26
|
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var Group_exports = {};
|
|
29
|
+
__export(Group_exports, {
|
|
30
|
+
GroupWithSchema: () => GroupWithSchema,
|
|
31
|
+
default: () => Group_default
|
|
26
32
|
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
Group.defaultProps =
|
|
43
|
-
const GroupWithSchema =
|
|
44
|
-
GroupWithSchema.propTypes =
|
|
45
|
-
|
|
46
|
-
exports
|
|
47
|
-
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
package/cjs/components/Label.js
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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);
|
|
25
26
|
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var Label_exports = {};
|
|
29
|
+
__export(Label_exports, {
|
|
30
|
+
LabelWithSchema: () => LabelWithSchema,
|
|
31
|
+
default: () => Label_default
|
|
26
32
|
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
Label.defaultProps =
|
|
43
|
-
const LabelWithSchema =
|
|
44
|
-
LabelWithSchema.propTypes =
|
|
45
|
-
|
|
46
|
-
exports
|
|
47
|
-
|
|
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 = "labelValue";
|
|
40
|
+
const LabelStyled = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "label", ({ labelPosition, labelColor }) => ({
|
|
41
|
+
[labelPosition]: labelPosition,
|
|
42
|
+
[labelColor]: labelColor
|
|
43
|
+
}));
|
|
44
|
+
const Label = ({ children, position: labelPosition, color }) => /* @__PURE__ */ import_react.default.createElement(LabelStyled, {
|
|
45
|
+
classProps: { labelPosition, color }
|
|
46
|
+
}, children);
|
|
47
|
+
Label.propTypes = import_props.labelProps;
|
|
48
|
+
Label.defaultProps = import_defaultProps.labelDefault;
|
|
49
|
+
const LabelWithSchema = (0, import_react_desc.describe)(Label);
|
|
50
|
+
LabelWithSchema.propTypes = import_props.labelProps;
|
|
51
|
+
var Label_default = Label;
|
|
52
|
+
module.exports = __toCommonJS(Label_exports);
|
|
53
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;\n\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;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,cAAc,4CAAkB,OACpC,WACA,SACA,CAAC,EAAE,eAAe,iBAAkB;AAAA,GACjC,gBAAgB;AAAA,GAChB,aAAa;AAAA;AAIlB,MAAM,QAAQ,CAAC,EAAE,UAAU,UAAU,eAAe,YAClD,mDAAC,aAAD;AAAA,EAAa,YAAY,EAAE,eAAe;AAAA,GAAU;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,gCAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/cjs/components/Value.js
CHANGED
|
@@ -1,55 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 Value_exports = {};
|
|
29
|
+
__export(Value_exports, {
|
|
30
|
+
ValueWithSchema: () => ValueWithSchema,
|
|
31
|
+
default: () => Value_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 = "labelValue";
|
|
40
|
+
const ValueStyled = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "value", ({ size, valuePosition, valueColor, semibold }) => ({
|
|
41
|
+
[size]: size,
|
|
42
|
+
[valuePosition]: valuePosition,
|
|
43
|
+
[valueColor]: valueColor,
|
|
44
|
+
semibold
|
|
45
|
+
}));
|
|
46
|
+
const Value = ({
|
|
47
|
+
children,
|
|
48
|
+
position: valuePosition,
|
|
49
|
+
size,
|
|
50
|
+
color: valueColor,
|
|
51
|
+
semibold = false
|
|
52
|
+
}) => /* @__PURE__ */ import_react.default.createElement(ValueStyled, {
|
|
53
|
+
classProps: {
|
|
19
54
|
size,
|
|
20
55
|
valuePosition,
|
|
21
56
|
valueColor,
|
|
22
57
|
semibold
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const Value = _ref2 => {
|
|
33
|
-
let {
|
|
34
|
-
children,
|
|
35
|
-
position: valuePosition,
|
|
36
|
-
size,
|
|
37
|
-
color: valueColor,
|
|
38
|
-
semibold = false
|
|
39
|
-
} = _ref2;
|
|
40
|
-
return /*#__PURE__*/_jsx__default["default"](ValueStyled, {
|
|
41
|
-
classProps: {
|
|
42
|
-
size,
|
|
43
|
-
valuePosition,
|
|
44
|
-
valueColor,
|
|
45
|
-
semibold
|
|
46
|
-
}
|
|
47
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, children));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
Value.defaultProps = defaultProps.valueDefault;
|
|
51
|
-
const ValueWithSchema = reactDesc.describe(Value);
|
|
52
|
-
ValueWithSchema.propTypes = props.valueProps;
|
|
53
|
-
|
|
54
|
-
exports.ValueWithSchema = ValueWithSchema;
|
|
55
|
-
exports["default"] = Value;
|
|
58
|
+
}
|
|
59
|
+
}, /* @__PURE__ */ import_react.default.createElement("span", null, children));
|
|
60
|
+
Value.propTypes = import_props.valueProps;
|
|
61
|
+
Value.defaultProps = import_defaultProps.valueDefault;
|
|
62
|
+
const ValueWithSchema = (0, import_react_desc.describe)(Value);
|
|
63
|
+
ValueWithSchema.propTypes = import_props.valueProps;
|
|
64
|
+
var Value_default = Value;
|
|
65
|
+
module.exports = __toCommonJS(Value_exports);
|
|
66
|
+
//# sourceMappingURL=Value.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;\n\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;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA2B;AAC3B,0BAA6B;AAE7B,MAAM,YAAY;AAElB,MAAM,cAAc,4CAAkB,OACpC,WACA,SACA,CAAC,EAAE,MAAM,eAAe,YAAY,eAAgB;AAAA,GACjD,OAAO;AAAA,GACP,gBAAgB;AAAA,GAChB,aAAa;AAAA,EACd;AAAA;AAIJ,MAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA,OAAO;AAAA,EACP,WAAW;AAAA,MAEX,mDAAC,aAAD;AAAA,EACE,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,GAGF,mDAAC,QAAD,MAAO;AAIX,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,gCAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,62 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
-
const blockName = 'labelValue';
|
|
28
|
-
const LabelValueWrapper = dsClassnames.aggregatedClasses('div')(blockName, 'label-value-wrapper', () => null);
|
|
29
|
-
const Container = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
30
|
-
let {
|
|
31
|
-
inverted
|
|
32
|
-
} = _ref;
|
|
33
|
-
return {
|
|
34
|
-
inverted
|
|
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);
|
|
35
26
|
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var Wrapper_exports = {};
|
|
29
|
+
__export(Wrapper_exports, {
|
|
30
|
+
WrapperWithSchema: () => WrapperWithSchema,
|
|
31
|
+
default: () => Wrapper_default
|
|
36
32
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
exports.WrapperWithSchema = WrapperWithSchema;
|
|
62
|
-
exports["default"] = Wrapper;
|
|
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 = "labelValue";
|
|
40
|
+
const LabelValueWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "label-value-wrapper", () => null);
|
|
41
|
+
const Container = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ inverted }) => ({
|
|
42
|
+
inverted
|
|
43
|
+
}));
|
|
44
|
+
const Wrapper = ({ containerProps, children, className, icon, inverted }) => /* @__PURE__ */ import_react.default.createElement(Container, {
|
|
45
|
+
classProps: { inverted }
|
|
46
|
+
}, icon, /* @__PURE__ */ import_react.default.createElement(LabelValueWrapper, {
|
|
47
|
+
className,
|
|
48
|
+
...containerProps
|
|
49
|
+
}, children));
|
|
50
|
+
Wrapper.propTypes = import_props.wrapperProps;
|
|
51
|
+
Wrapper.defaultProps = import_defaultProps.wrapperDefault;
|
|
52
|
+
const WrapperWithSchema = (0, import_react_desc.describe)(Wrapper);
|
|
53
|
+
WrapperWithSchema.propTypes = import_props.wrapperProps;
|
|
54
|
+
var Wrapper_default = Wrapper;
|
|
55
|
+
module.exports = __toCommonJS(Wrapper_exports);
|
|
56
|
+
//# sourceMappingURL=Wrapper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;\n\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;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,mBAA6B;AAC7B,0BAA+B;AAE/B,MAAM,YAAY;AAElB,MAAM,oBAAoB,4CAAkB,OAC1C,WACA,uBACA,MAAM;AAER,MAAM,YAAY,4CAAkB,OAClC,WACA,WACA,CAAC,EAAE,eAAgB;AAAA,EACjB;AAAA;AAIJ,MAAM,UAAU,CAAC,EAAE,gBAAgB,UAAU,WAAW,MAAM,eAC5D,mDAAC,WAAD;AAAA,EAAW,YAAY,EAAE;AAAA,GACtB,MACD,mDAAC,mBAAD;AAAA,EAAmB;AAAA,KAA0B;AAAA,GAC1C;AAKP,QAAQ,YAAY;AACpB,QAAQ,eAAe;AAEvB,MAAM,oBAAoB,gCAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,kBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|