@elliemae/ds-label-value 3.0.0-next.2 → 3.0.0-next.6
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 +49 -0
- package/dist/cjs/DSLabelValue.js.map +7 -0
- package/dist/cjs/components/Group.js +53 -0
- package/dist/cjs/components/Group.js.map +7 -0
- package/dist/cjs/components/Label.js +53 -0
- package/dist/cjs/components/Label.js.map +7 -0
- package/dist/cjs/components/Value.js +66 -0
- package/dist/cjs/components/Value.js.map +7 -0
- package/dist/cjs/components/Wrapper.js +69 -0
- package/dist/cjs/components/Wrapper.js.map +7 -0
- package/dist/cjs/components/defaultProps.js +58 -0
- package/dist/cjs/components/defaultProps.js.map +7 -0
- package/dist/cjs/components/props.js +71 -0
- package/dist/cjs/components/props.js.map +7 -0
- package/dist/cjs/index.js +40 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/esm/DSLabelValue.js +20 -0
- package/dist/esm/DSLabelValue.js.map +7 -0
- package/dist/esm/components/Group.js +24 -0
- package/dist/esm/components/Group.js.map +7 -0
- package/dist/esm/components/Label.js +24 -0
- package/dist/esm/components/Label.js.map +7 -0
- package/dist/esm/components/Value.js +37 -0
- package/dist/esm/components/Value.js.map +7 -0
- package/dist/esm/components/Wrapper.js +42 -0
- package/dist/esm/components/Wrapper.js.map +7 -0
- package/{esm → dist/esm}/components/defaultProps.js +15 -5
- package/dist/esm/components/defaultProps.js.map +7 -0
- package/dist/esm/components/props.js +46 -0
- package/dist/esm/components/props.js.map +7 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +7 -0
- package/package.json +40 -31
- package/cjs/DSLabelValue.js +0 -21
- package/cjs/components/Group.js +0 -47
- package/cjs/components/Label.js +0 -47
- package/cjs/components/Value.js +0 -55
- package/cjs/components/Wrapper.js +0 -62
- package/cjs/components/defaultProps.js +0 -31
- package/cjs/components/props.js +0 -47
- package/cjs/index.js +0 -18
- package/esm/DSLabelValue.js +0 -17
- package/esm/components/Group.js +0 -38
- package/esm/components/Label.js +0 -38
- package/esm/components/Value.js +0 -46
- package/esm/components/Wrapper.js +0 -52
- package/esm/components/props.js +0 -40
- package/esm/index.js +0 -5
- package/types/DSLabelValue.d.ts +0 -168
- package/types/components/Group.d.ts +0 -44
- package/types/components/Label.d.ts +0 -33
- package/types/components/Value.d.ts +0 -45
- package/types/components/Wrapper.d.ts +0 -54
- package/types/components/defaultProps.d.ts +0 -20
- package/types/components/props.d.ts +0 -78
- package/types/index.d.ts +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var DSLabelValue_exports = {};
|
|
29
|
+
__export(DSLabelValue_exports, {
|
|
30
|
+
GroupWithSchema: () => import_Group.GroupWithSchema,
|
|
31
|
+
LabelWithSchema: () => import_Label.LabelWithSchema,
|
|
32
|
+
ValueWithSchema: () => import_Value.ValueWithSchema,
|
|
33
|
+
WrapperWithSchema: () => import_Wrapper.WrapperWithSchema,
|
|
34
|
+
default: () => DSLabelValue_default
|
|
35
|
+
});
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_Wrapper = __toESM(require("./components/Wrapper"));
|
|
38
|
+
var import_Group = __toESM(require("./components/Group"));
|
|
39
|
+
var import_Label = __toESM(require("./components/Label"));
|
|
40
|
+
var import_Value = __toESM(require("./components/Value"));
|
|
41
|
+
const DSLabelValue = Object.assign(import_Wrapper.default, {
|
|
42
|
+
Group: import_Group.default,
|
|
43
|
+
Wrapper: import_Wrapper.default,
|
|
44
|
+
Label: import_Label.default,
|
|
45
|
+
Value: import_Value.default
|
|
46
|
+
});
|
|
47
|
+
var DSLabelValue_default = DSLabelValue;
|
|
48
|
+
module.exports = __toCommonJS(DSLabelValue_exports);
|
|
49
|
+
//# sourceMappingURL=DSLabelValue.js.map
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var Group_exports = {};
|
|
29
|
+
__export(Group_exports, {
|
|
30
|
+
GroupWithSchema: () => GroupWithSchema,
|
|
31
|
+
default: () => Group_default
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react_desc = require("react-desc");
|
|
36
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
|
+
var import_props = require("./props");
|
|
38
|
+
var import_defaultProps = require("./defaultProps");
|
|
39
|
+
const blockName = "labelValueGroup";
|
|
40
|
+
const WrapperGroup = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ orientation, inline }) => ({
|
|
41
|
+
inline,
|
|
42
|
+
[orientation]: orientation
|
|
43
|
+
}));
|
|
44
|
+
const Group = ({ children, inline, orientation }) => /* @__PURE__ */ import_react.default.createElement(WrapperGroup, {
|
|
45
|
+
classProps: { orientation, inline }
|
|
46
|
+
}, children);
|
|
47
|
+
Group.propTypes = import_props.groupProps;
|
|
48
|
+
Group.defaultProps = import_defaultProps.groupDefault;
|
|
49
|
+
const GroupWithSchema = (0, import_react_desc.describe)(Group);
|
|
50
|
+
GroupWithSchema.propTypes = import_props.groupProps;
|
|
51
|
+
var Group_default = Group;
|
|
52
|
+
module.exports = __toCommonJS(Group_exports);
|
|
53
|
+
//# sourceMappingURL=Group.js.map
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Label_exports = {};
|
|
29
|
+
__export(Label_exports, {
|
|
30
|
+
LabelWithSchema: () => LabelWithSchema,
|
|
31
|
+
default: () => Label_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 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
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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: {
|
|
54
|
+
size,
|
|
55
|
+
valuePosition,
|
|
56
|
+
valueColor,
|
|
57
|
+
semibold
|
|
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
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
22
|
+
var __export = (target, all) => {
|
|
23
|
+
for (var name in all)
|
|
24
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
|
+
};
|
|
26
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
27
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
28
|
+
for (let key of __getOwnPropNames(module2))
|
|
29
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
30
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
31
|
+
}
|
|
32
|
+
return target;
|
|
33
|
+
};
|
|
34
|
+
var __toESM = (module2, isNodeMode) => {
|
|
35
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
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);
|
|
42
|
+
var Wrapper_exports = {};
|
|
43
|
+
__export(Wrapper_exports, {
|
|
44
|
+
WrapperWithSchema: () => WrapperWithSchema,
|
|
45
|
+
default: () => Wrapper_default
|
|
46
|
+
});
|
|
47
|
+
var React = __toESM(require("react"));
|
|
48
|
+
var import_react = __toESM(require("react"));
|
|
49
|
+
var import_react_desc = require("react-desc");
|
|
50
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
51
|
+
var import_props = require("./props");
|
|
52
|
+
var import_defaultProps = require("./defaultProps");
|
|
53
|
+
const blockName = "labelValue";
|
|
54
|
+
const LabelValueWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "label-value-wrapper", () => null);
|
|
55
|
+
const Container = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ inverted }) => ({
|
|
56
|
+
inverted
|
|
57
|
+
}));
|
|
58
|
+
const Wrapper = ({ containerProps, children, className, icon, inverted }) => /* @__PURE__ */ import_react.default.createElement(Container, {
|
|
59
|
+
classProps: { inverted }
|
|
60
|
+
}, icon, /* @__PURE__ */ import_react.default.createElement(LabelValueWrapper, __spreadValues({
|
|
61
|
+
className
|
|
62
|
+
}, containerProps), children));
|
|
63
|
+
Wrapper.propTypes = import_props.wrapperProps;
|
|
64
|
+
Wrapper.defaultProps = import_defaultProps.wrapperDefault;
|
|
65
|
+
const WrapperWithSchema = (0, import_react_desc.describe)(Wrapper);
|
|
66
|
+
WrapperWithSchema.propTypes = import_props.wrapperProps;
|
|
67
|
+
var Wrapper_default = Wrapper;
|
|
68
|
+
module.exports = __toCommonJS(Wrapper_exports);
|
|
69
|
+
//# 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,GAA0B,iBAC1C;AAKP,QAAQ,YAAY;AACpB,QAAQ,eAAe;AAEvB,MAAM,oBAAoB,gCAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,kBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 defaultProps_exports = {};
|
|
29
|
+
__export(defaultProps_exports, {
|
|
30
|
+
groupDefault: () => groupDefault,
|
|
31
|
+
labelDefault: () => labelDefault,
|
|
32
|
+
valueDefault: () => valueDefault,
|
|
33
|
+
wrapperDefault: () => wrapperDefault
|
|
34
|
+
});
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_prop_types = require("@elliemae/ds-shared/prop-types");
|
|
37
|
+
const groupDefault = {
|
|
38
|
+
inline: false,
|
|
39
|
+
orientation: import_prop_types.orientationVariants.VERTICAL
|
|
40
|
+
};
|
|
41
|
+
const labelDefault = {
|
|
42
|
+
position: import_prop_types.position.LEFT,
|
|
43
|
+
color: import_prop_types.fontColor.NEUTRAL500
|
|
44
|
+
};
|
|
45
|
+
const valueDefault = {
|
|
46
|
+
position: import_prop_types.position.LEFT,
|
|
47
|
+
size: import_prop_types.sizeVariants.M,
|
|
48
|
+
color: import_prop_types.fontColor.NEUTRAL700,
|
|
49
|
+
semibold: false
|
|
50
|
+
};
|
|
51
|
+
const wrapperDefault = {
|
|
52
|
+
containerProps: {},
|
|
53
|
+
className: "",
|
|
54
|
+
icon: null,
|
|
55
|
+
inverted: false
|
|
56
|
+
};
|
|
57
|
+
module.exports = __toCommonJS(defaultProps_exports);
|
|
58
|
+
//# sourceMappingURL=defaultProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/defaultProps.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import {\n orientationVariants,\n position,\n sizeVariants,\n fontColor,\n} from '@elliemae/ds-shared/prop-types';\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;ACAA,YAAuB;ADAvB,wBAKO;AAEA,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,aAAa,sCAAoB;AAAA;AAG5B,MAAM,eAAe;AAAA,EAC1B,UAAU,2BAAS;AAAA,EACnB,OAAO,4BAAU;AAAA;AAGZ,MAAM,eAAe;AAAA,EAC1B,UAAU,2BAAS;AAAA,EACnB,MAAM,+BAAa;AAAA,EACnB,OAAO,4BAAU;AAAA,EACjB,UAAU;AAAA;AAGL,MAAM,iBAAiB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 props_exports = {};
|
|
29
|
+
__export(props_exports, {
|
|
30
|
+
groupProps: () => groupProps,
|
|
31
|
+
labelProps: () => labelProps,
|
|
32
|
+
valueProps: () => valueProps,
|
|
33
|
+
wrapperProps: () => wrapperProps
|
|
34
|
+
});
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_react_desc = require("react-desc");
|
|
37
|
+
var import_prop_types = require("@elliemae/ds-shared/prop-types");
|
|
38
|
+
const groupProps = {
|
|
39
|
+
children: import_react_desc.PropTypes.element.description("The elements to be wrapped"),
|
|
40
|
+
inline: import_react_desc.PropTypes.bool.description("If the label value should be inline"),
|
|
41
|
+
orientation: import_react_desc.PropTypes.string.description("'vertical' or 'horizontal'")
|
|
42
|
+
};
|
|
43
|
+
const labelProps = {
|
|
44
|
+
children: import_react_desc.PropTypes.oneOfType([
|
|
45
|
+
import_react_desc.PropTypes.element,
|
|
46
|
+
import_react_desc.PropTypes.string,
|
|
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)
|
|
51
|
+
};
|
|
52
|
+
const wrapperProps = {
|
|
53
|
+
containerProps: import_react_desc.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
54
|
+
className: import_react_desc.PropTypes.string.description("html class attribute"),
|
|
55
|
+
icon: import_react_desc.PropTypes.element.description("Icon to be attached near value"),
|
|
56
|
+
inverted: import_react_desc.PropTypes.bool.description("Changes the position of the label").defaultValue(false),
|
|
57
|
+
children: import_react_desc.PropTypes.element.description("label value").isRequired
|
|
58
|
+
};
|
|
59
|
+
const valueProps = {
|
|
60
|
+
children: import_react_desc.PropTypes.oneOfType([
|
|
61
|
+
import_react_desc.PropTypes.element,
|
|
62
|
+
import_react_desc.PropTypes.string,
|
|
63
|
+
import_react_desc.PropTypes.number
|
|
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),
|
|
68
|
+
semibold: import_react_desc.PropTypes.bool.description("semibold or not").defaultValue(false)
|
|
69
|
+
};
|
|
70
|
+
module.exports = __toCommonJS(props_exports);
|
|
71
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from 'react-desc';\nimport {\n position,\n fontColor,\n sizeVariants,\n} from '@elliemae/ds-shared/prop-types';\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([\n PropTypes.element,\n PropTypes.string,\n PropTypes.number,\n ]).description('Label element').isRequired,\n position: PropTypes.string\n .description('labels position')\n .defaultValue(position.LEFT),\n color: PropTypes.string\n .description('labels color')\n .defaultValue(fontColor.NEUTRAL500),\n};\n\nexport const wrapperProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n className: PropTypes.string.description('html class attribute'),\n icon: PropTypes.element.description('Icon to be attached near value'),\n inverted: PropTypes.bool\n .description('Changes the position of the label')\n .defaultValue(false),\n children: PropTypes.element.description('label value').isRequired,\n};\n\nexport const valueProps = {\n children: PropTypes.oneOfType([\n PropTypes.element,\n PropTypes.string,\n PropTypes.number,\n ]).description('value element').isRequired,\n size: PropTypes.func.description('values size').defaultValue(sizeVariants.M),\n position: PropTypes.string\n .description('position of the value')\n .defaultValue(position.LEFT),\n color: PropTypes.string\n .description('value color')\n .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;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,wBAIO;AAEA,MAAM,aAAa;AAAA,EAIxB,UAAU,4BAAU,QAAQ,YAAY;AAAA,EAIxC,QAAQ,4BAAU,KAAK,YAAY;AAAA,EAInC,aAAa,4BAAU,OAAO,YAAY;AAAA;AAGrC,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU;AAAA,IACV,4BAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,UAAU,4BAAU,OACjB,YAAY,mBACZ,aAAa,2BAAS;AAAA,EACzB,OAAO,4BAAU,OACd,YAAY,gBACZ,aAAa,4BAAU;AAAA;AAGrB,MAAM,eAAe;AAAA,EAC1B,gBAAgB,4BAAU,OAAO,YAC/B;AAAA,EAEF,WAAW,4BAAU,OAAO,YAAY;AAAA,EACxC,MAAM,4BAAU,QAAQ,YAAY;AAAA,EACpC,UAAU,4BAAU,KACjB,YAAY,qCACZ,aAAa;AAAA,EAChB,UAAU,4BAAU,QAAQ,YAAY,eAAe;AAAA;AAGlD,MAAM,aAAa;AAAA,EACxB,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU;AAAA,IACV,4BAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,MAAM,4BAAU,KAAK,YAAY,eAAe,aAAa,+BAAa;AAAA,EAC1E,UAAU,4BAAU,OACjB,YAAY,yBACZ,aAAa,2BAAS;AAAA,EACzB,OAAO,4BAAU,OACd,YAAY,eACZ,aAAa,4BAAU;AAAA,EAC1B,UAAU,4BAAU,KAAK,YAAY,mBAAmB,aAAa;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 src_exports = {};
|
|
29
|
+
__export(src_exports, {
|
|
30
|
+
DSLabelValue: () => import_DSLabelValue.default,
|
|
31
|
+
GroupWithSchema: () => import_DSLabelValue.GroupWithSchema,
|
|
32
|
+
LabelWithSchema: () => import_DSLabelValue.LabelWithSchema,
|
|
33
|
+
ValueWithSchema: () => import_DSLabelValue.ValueWithSchema,
|
|
34
|
+
WrapperWithSchema: () => import_DSLabelValue.WrapperWithSchema,
|
|
35
|
+
default: () => import_DSLabelValue.default
|
|
36
|
+
});
|
|
37
|
+
var React = __toESM(require("react"));
|
|
38
|
+
var import_DSLabelValue = __toESM(require("./DSLabelValue"));
|
|
39
|
+
module.exports = __toCommonJS(src_exports);
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAOO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Wrapper, { WrapperWithSchema } from "./components/Wrapper";
|
|
3
|
+
import Group, { GroupWithSchema } from "./components/Group";
|
|
4
|
+
import Label, { LabelWithSchema } from "./components/Label";
|
|
5
|
+
import Value, { ValueWithSchema } from "./components/Value";
|
|
6
|
+
const DSLabelValue = Object.assign(Wrapper, {
|
|
7
|
+
Group,
|
|
8
|
+
Wrapper,
|
|
9
|
+
Label,
|
|
10
|
+
Value
|
|
11
|
+
});
|
|
12
|
+
var DSLabelValue_default = DSLabelValue;
|
|
13
|
+
export {
|
|
14
|
+
GroupWithSchema,
|
|
15
|
+
LabelWithSchema,
|
|
16
|
+
ValueWithSchema,
|
|
17
|
+
WrapperWithSchema,
|
|
18
|
+
DSLabelValue_default as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=DSLabelValue.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLabelValue.tsx"],
|
|
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;AAAA;AAIF,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { describe } from "react-desc";
|
|
4
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
5
|
+
import { groupProps } from "./props";
|
|
6
|
+
import { groupDefault } from "./defaultProps";
|
|
7
|
+
const blockName = "labelValueGroup";
|
|
8
|
+
const WrapperGroup = aggregatedClasses("div")(blockName, "wrapper", ({ orientation, inline }) => ({
|
|
9
|
+
inline,
|
|
10
|
+
[orientation]: orientation
|
|
11
|
+
}));
|
|
12
|
+
const Group = ({ children, inline, orientation }) => /* @__PURE__ */ React2.createElement(WrapperGroup, {
|
|
13
|
+
classProps: { orientation, inline }
|
|
14
|
+
}, children);
|
|
15
|
+
Group.propTypes = groupProps;
|
|
16
|
+
Group.defaultProps = groupDefault;
|
|
17
|
+
const GroupWithSchema = describe(Group);
|
|
18
|
+
GroupWithSchema.propTypes = groupProps;
|
|
19
|
+
var Group_default = Group;
|
|
20
|
+
export {
|
|
21
|
+
GroupWithSchema,
|
|
22
|
+
Group_default as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Group.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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;\n\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,OACrC,WACA,WACA,CAAC,EAAE,aAAa,aAAc;AAAA,EAC5B;AAAA,GACC,cAAc;AAAA;AAInB,MAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,kBACjC,qCAAC,cAAD;AAAA,EAAc,YAAY,EAAE,aAAa;AAAA,GAAW;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|