@elliemae/ds-label-value 2.3.0-alpha.9 → 2.3.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DSLabelValue.js +21 -0
- package/cjs/components/Group.js +47 -0
- package/cjs/components/Label.js +47 -0
- package/cjs/components/Value.js +55 -0
- package/cjs/components/Wrapper.js +62 -0
- package/cjs/components/defaultProps.js +31 -0
- package/cjs/components/props.js +47 -0
- package/cjs/index.js +18 -0
- package/esm/DSLabelValue.js +17 -0
- package/esm/components/Group.js +38 -0
- package/esm/components/Label.js +38 -0
- package/esm/components/Value.js +46 -0
- package/esm/components/Wrapper.js +52 -0
- package/{dist/esm → esm}/components/defaultProps.js +5 -15
- package/esm/components/props.js +40 -0
- package/esm/index.js +5 -0
- package/package.json +32 -34
- package/{dist/types → types}/DSLabelValue.d.ts +0 -0
- package/{dist/types → types}/components/Group.d.ts +0 -0
- package/{dist/types → types}/components/Label.d.ts +0 -0
- package/{dist/types → types}/components/Value.d.ts +0 -0
- package/{dist/types → types}/components/Wrapper.d.ts +0 -0
- package/{dist/types → types}/components/defaultProps.d.ts +0 -0
- package/{dist/types → types}/components/props.d.ts +0 -0
- package/{dist/types → types}/index.d.ts +0 -0
- package/dist/cjs/DSLabelValue.js +0 -49
- package/dist/cjs/DSLabelValue.js.map +0 -7
- package/dist/cjs/components/Group.js +0 -53
- package/dist/cjs/components/Group.js.map +0 -7
- package/dist/cjs/components/Label.js +0 -53
- package/dist/cjs/components/Label.js.map +0 -7
- package/dist/cjs/components/Value.js +0 -66
- package/dist/cjs/components/Value.js.map +0 -7
- package/dist/cjs/components/Wrapper.js +0 -56
- package/dist/cjs/components/Wrapper.js.map +0 -7
- package/dist/cjs/components/defaultProps.js +0 -58
- package/dist/cjs/components/defaultProps.js.map +0 -7
- package/dist/cjs/components/props.js +0 -71
- package/dist/cjs/components/props.js.map +0 -7
- package/dist/cjs/index.js +0 -40
- package/dist/cjs/index.js.map +0 -7
- package/dist/esm/DSLabelValue.js +0 -20
- package/dist/esm/DSLabelValue.js.map +0 -7
- package/dist/esm/components/Group.js +0 -24
- package/dist/esm/components/Group.js.map +0 -7
- package/dist/esm/components/Label.js +0 -24
- package/dist/esm/components/Label.js.map +0 -7
- package/dist/esm/components/Value.js +0 -37
- package/dist/esm/components/Value.js.map +0 -7
- package/dist/esm/components/Wrapper.js +0 -27
- package/dist/esm/components/Wrapper.js.map +0 -7
- package/dist/esm/components/defaultProps.js.map +0 -7
- package/dist/esm/components/props.js +0 -46
- package/dist/esm/components/props.js.map +0 -7
- package/dist/esm/index.js +0 -18
- package/dist/esm/index.js.map +0 -7
package/dist/cjs/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var 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
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/esm/DSLabelValue.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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 { labelProps } from "./props";
|
|
6
|
-
import { labelDefault } from "./defaultProps";
|
|
7
|
-
const blockName = "labelValue";
|
|
8
|
-
const LabelStyled = aggregatedClasses("div")(blockName, "label", ({ labelPosition, labelColor }) => ({
|
|
9
|
-
[labelPosition]: labelPosition,
|
|
10
|
-
[labelColor]: labelColor
|
|
11
|
-
}));
|
|
12
|
-
const Label = ({ children, position: labelPosition, color }) => /* @__PURE__ */ React2.createElement(LabelStyled, {
|
|
13
|
-
classProps: { labelPosition, color }
|
|
14
|
-
}, children);
|
|
15
|
-
Label.propTypes = labelProps;
|
|
16
|
-
Label.defaultProps = labelDefault;
|
|
17
|
-
const LabelWithSchema = describe(Label);
|
|
18
|
-
LabelWithSchema.propTypes = labelProps;
|
|
19
|
-
var Label_default = Label;
|
|
20
|
-
export {
|
|
21
|
-
LabelWithSchema,
|
|
22
|
-
Label_default as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=Label.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 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;\n\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,OACpC,WACA,SACA,CAAC,EAAE,eAAe,iBAAkB;AAAA,GACjC,gBAAgB;AAAA,GAChB,aAAa;AAAA;AAIlB,MAAM,QAAQ,CAAC,EAAE,UAAU,UAAU,eAAe,YAClD,qCAAC,aAAD;AAAA,EAAa,YAAY,EAAE,eAAe;AAAA,GAAU;AAGtD,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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 { valueProps } from "./props";
|
|
6
|
-
import { valueDefault } from "./defaultProps";
|
|
7
|
-
const blockName = "labelValue";
|
|
8
|
-
const ValueStyled = aggregatedClasses("div")(blockName, "value", ({ size, valuePosition, valueColor, semibold }) => ({
|
|
9
|
-
[size]: size,
|
|
10
|
-
[valuePosition]: valuePosition,
|
|
11
|
-
[valueColor]: valueColor,
|
|
12
|
-
semibold
|
|
13
|
-
}));
|
|
14
|
-
const Value = ({
|
|
15
|
-
children,
|
|
16
|
-
position: valuePosition,
|
|
17
|
-
size,
|
|
18
|
-
color: valueColor,
|
|
19
|
-
semibold = false
|
|
20
|
-
}) => /* @__PURE__ */ React2.createElement(ValueStyled, {
|
|
21
|
-
classProps: {
|
|
22
|
-
size,
|
|
23
|
-
valuePosition,
|
|
24
|
-
valueColor,
|
|
25
|
-
semibold
|
|
26
|
-
}
|
|
27
|
-
}, /* @__PURE__ */ React2.createElement("span", null, children));
|
|
28
|
-
Value.propTypes = valueProps;
|
|
29
|
-
Value.defaultProps = valueDefault;
|
|
30
|
-
const ValueWithSchema = describe(Value);
|
|
31
|
-
ValueWithSchema.propTypes = valueProps;
|
|
32
|
-
var Value_default = Value;
|
|
33
|
-
export {
|
|
34
|
-
ValueWithSchema,
|
|
35
|
-
Value_default as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=Value.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 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;\n\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,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,qCAAC,aAAD;AAAA,EACE,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,GAGF,qCAAC,QAAD,MAAO;AAIX,MAAM,YAAY;AAClB,MAAM,eAAe;AAErB,MAAM,kBAAkB,SAAS;AACjC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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 { wrapperProps } from "./props";
|
|
6
|
-
import { wrapperDefault } from "./defaultProps";
|
|
7
|
-
const blockName = "labelValue";
|
|
8
|
-
const LabelValueWrapper = aggregatedClasses("div")(blockName, "label-value-wrapper", () => null);
|
|
9
|
-
const Container = aggregatedClasses("div")(blockName, "wrapper", ({ inverted }) => ({
|
|
10
|
-
inverted
|
|
11
|
-
}));
|
|
12
|
-
const Wrapper = ({ containerProps, children, className, icon, inverted }) => /* @__PURE__ */ React2.createElement(Container, {
|
|
13
|
-
classProps: { inverted }
|
|
14
|
-
}, icon, /* @__PURE__ */ React2.createElement(LabelValueWrapper, {
|
|
15
|
-
className,
|
|
16
|
-
...containerProps
|
|
17
|
-
}, children));
|
|
18
|
-
Wrapper.propTypes = wrapperProps;
|
|
19
|
-
Wrapper.defaultProps = wrapperDefault;
|
|
20
|
-
const WrapperWithSchema = describe(Wrapper);
|
|
21
|
-
WrapperWithSchema.propTypes = wrapperProps;
|
|
22
|
-
var Wrapper_default = Wrapper;
|
|
23
|
-
export {
|
|
24
|
-
WrapperWithSchema,
|
|
25
|
-
Wrapper_default as default
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=Wrapper.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 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;\n\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,OAC1C,WACA,uBACA,MAAM;AAER,MAAM,YAAY,kBAAkB,OAClC,WACA,WACA,CAAC,EAAE,eAAgB;AAAA,EACjB;AAAA;AAIJ,MAAM,UAAU,CAAC,EAAE,gBAAgB,UAAU,WAAW,MAAM,eAC5D,qCAAC,WAAD;AAAA,EAAW,YAAY,EAAE;AAAA,GACtB,MACD,qCAAC,mBAAD;AAAA,EAAmB;AAAA,KAA0B;AAAA,GAC1C;AAKP,QAAQ,YAAY;AACpB,QAAQ,eAAe;AAEvB,MAAM,oBAAoB,SAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,kBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/defaultProps.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,aAAa,oBAAoB;AAAA;AAG5B,MAAM,eAAe;AAAA,EAC1B,UAAU,SAAS;AAAA,EACnB,OAAO,UAAU;AAAA;AAGZ,MAAM,eAAe;AAAA,EAC1B,UAAU,SAAS;AAAA,EACnB,MAAM,aAAa;AAAA,EACnB,OAAO,UAAU;AAAA,EACjB,UAAU;AAAA;AAGL,MAAM,iBAAiB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { PropTypes } from "react-desc";
|
|
3
|
-
import {
|
|
4
|
-
position,
|
|
5
|
-
fontColor,
|
|
6
|
-
sizeVariants
|
|
7
|
-
} from "@elliemae/ds-shared/prop-types";
|
|
8
|
-
const groupProps = {
|
|
9
|
-
children: PropTypes.element.description("The elements to be wrapped"),
|
|
10
|
-
inline: PropTypes.bool.description("If the label value should be inline"),
|
|
11
|
-
orientation: PropTypes.string.description("'vertical' or 'horizontal'")
|
|
12
|
-
};
|
|
13
|
-
const labelProps = {
|
|
14
|
-
children: PropTypes.oneOfType([
|
|
15
|
-
PropTypes.element,
|
|
16
|
-
PropTypes.string,
|
|
17
|
-
PropTypes.number
|
|
18
|
-
]).description("Label element").isRequired,
|
|
19
|
-
position: PropTypes.string.description("labels position").defaultValue(position.LEFT),
|
|
20
|
-
color: PropTypes.string.description("labels color").defaultValue(fontColor.NEUTRAL500)
|
|
21
|
-
};
|
|
22
|
-
const wrapperProps = {
|
|
23
|
-
containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
|
|
24
|
-
className: PropTypes.string.description("html class attribute"),
|
|
25
|
-
icon: PropTypes.element.description("Icon to be attached near value"),
|
|
26
|
-
inverted: PropTypes.bool.description("Changes the position of the label").defaultValue(false),
|
|
27
|
-
children: PropTypes.element.description("label value").isRequired
|
|
28
|
-
};
|
|
29
|
-
const valueProps = {
|
|
30
|
-
children: PropTypes.oneOfType([
|
|
31
|
-
PropTypes.element,
|
|
32
|
-
PropTypes.string,
|
|
33
|
-
PropTypes.number
|
|
34
|
-
]).description("value element").isRequired,
|
|
35
|
-
size: PropTypes.func.description("values size").defaultValue(sizeVariants.M),
|
|
36
|
-
position: PropTypes.string.description("position of the value").defaultValue(position.LEFT),
|
|
37
|
-
color: PropTypes.string.description("value color").defaultValue(fontColor.NEUTRAL700),
|
|
38
|
-
semibold: PropTypes.bool.description("semibold or not").defaultValue(false)
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
groupProps,
|
|
42
|
-
labelProps,
|
|
43
|
-
valueProps,
|
|
44
|
-
wrapperProps
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 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 {\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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,aAAa;AAAA,EAIxB,UAAU,UAAU,QAAQ,YAAY;AAAA,EAIxC,QAAQ,UAAU,KAAK,YAAY;AAAA,EAInC,aAAa,UAAU,OAAO,YAAY;AAAA;AAGrC,MAAM,aAAa;AAAA,EACxB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,UAAU,UAAU,OACjB,YAAY,mBACZ,aAAa,SAAS;AAAA,EACzB,OAAO,UAAU,OACd,YAAY,gBACZ,aAAa,UAAU;AAAA;AAGrB,MAAM,eAAe;AAAA,EAC1B,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAEF,WAAW,UAAU,OAAO,YAAY;AAAA,EACxC,MAAM,UAAU,QAAQ,YAAY;AAAA,EACpC,UAAU,UAAU,KACjB,YAAY,qCACZ,aAAa;AAAA,EAChB,UAAU,UAAU,QAAQ,YAAY,eAAe;AAAA;AAGlD,MAAM,aAAa;AAAA,EACxB,UAAU,UAAU,UAAU;AAAA,IAC5B,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,KACT,YAAY,iBAAiB;AAAA,EAChC,MAAM,UAAU,KAAK,YAAY,eAAe,aAAa,aAAa;AAAA,EAC1E,UAAU,UAAU,OACjB,YAAY,yBACZ,aAAa,SAAS;AAAA,EACzB,OAAO,UAAU,OACd,YAAY,eACZ,aAAa,UAAU;AAAA,EAC1B,UAAU,UAAU,KAAK,YAAY,mBAAmB,aAAa;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
default as default2,
|
|
4
|
-
default as default3,
|
|
5
|
-
WrapperWithSchema,
|
|
6
|
-
GroupWithSchema,
|
|
7
|
-
LabelWithSchema,
|
|
8
|
-
ValueWithSchema
|
|
9
|
-
} from "./DSLabelValue";
|
|
10
|
-
export {
|
|
11
|
-
default3 as DSLabelValue,
|
|
12
|
-
GroupWithSchema,
|
|
13
|
-
LabelWithSchema,
|
|
14
|
-
ValueWithSchema,
|
|
15
|
-
WrapperWithSchema,
|
|
16
|
-
default2 as default
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n default,\n default as DSLabelValue,\n WrapperWithSchema,\n GroupWithSchema,\n LabelWithSchema,\n ValueWithSchema,\n} from './DSLabelValue';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|