@elliemae/ds-card 3.0.0-alpha.0 → 3.0.0-alpha.1
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/DSCard.js +44 -12
- package/dist/cjs/DSCard.js.map +1 -1
- package/dist/esm/DSCard.js +46 -12
- package/dist/esm/DSCard.js.map +1 -1
- package/package.json +11 -10
- package/dist/types/DSCard.d.ts +0 -44
- package/dist/types/DSCardBody.d.ts +0 -23
- package/dist/types/DSCardHeader.d.ts +0 -31
- package/dist/types/detail/DetailCard.d.ts +0 -160
- package/dist/types/detail/styled.d.ts +0 -12
- package/dist/types/index.d.ts +0 -8
- package/dist/types/tests/DSCard.test.d.ts +0 -1
- package/dist/types/v2/ActionAddon.d.ts +0 -45
- package/dist/types/v2/Card.d.ts +0 -60
- package/dist/types/v2/Group.d.ts +0 -35
- package/dist/types/v2/components.d.ts +0 -11
package/dist/cjs/DSCard.js
CHANGED
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
8
37
|
var __export = (target, all) => {
|
|
9
38
|
for (var name in all)
|
|
10
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -37,20 +66,23 @@ var import_react_desc = require("react-desc");
|
|
|
37
66
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
38
67
|
var import_DSCardBody = __toESM(require("./DSCardBody"));
|
|
39
68
|
var import_DSCardHeader = __toESM(require("./DSCardHeader"));
|
|
40
|
-
const DSCard = ({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
69
|
+
const DSCard = (_a) => {
|
|
70
|
+
var _b = _a, {
|
|
71
|
+
innerRef = void 0,
|
|
72
|
+
children = null,
|
|
73
|
+
containerProps = {}
|
|
74
|
+
} = _b, otherProps = __objRest(_b, [
|
|
75
|
+
"innerRef",
|
|
76
|
+
"children",
|
|
77
|
+
"containerProps"
|
|
78
|
+
]);
|
|
46
79
|
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("card");
|
|
47
|
-
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
48
|
-
"data-testid": "card"
|
|
49
|
-
|
|
80
|
+
return /* @__PURE__ */ import_react.default.createElement("div", __spreadValues(__spreadProps(__spreadValues({
|
|
81
|
+
"data-testid": "card"
|
|
82
|
+
}, containerProps), {
|
|
50
83
|
ref: innerRef,
|
|
51
|
-
className: cssClassName
|
|
52
|
-
|
|
53
|
-
}, children);
|
|
84
|
+
className: cssClassName
|
|
85
|
+
}), otherProps), children);
|
|
54
86
|
};
|
|
55
87
|
const cardProps = {
|
|
56
88
|
containerProps: import_react_desc.PropTypes.object.description("inject props to component wrapper"),
|
package/dist/cjs/DSCard.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSCard.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({\n innerRef = undefined,\n children = null,\n containerProps = {},\n ...otherProps\n}) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div\n data-testid=\"card\"\n {...containerProps}\n ref={innerRef}\n className={cssClassName}\n {...otherProps}\n >\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description(\n 'inject props to component wrapper',\n ),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAA0C;AAC1C,wBAAuB;AACvB,0BAAyB;AAEzB,MAAM,SAAS,CAAC,OAKV;AALU,eACd;AAAA,eAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB;AAAA,MAHH,IAIX,uBAJW,IAIX;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,EAAE,iBAAiB,oDAA0B;AAEnD,SACE,mDAAC,OAAD;AAAA,IACE,eAAY;AAAA,KACR,iBAFN;AAAA,IAGE,KAAK;AAAA,IACL,WAAW;AAAA,MACP,aAEH;AAAA;AAKP,MAAM,YAAY;AAAA,EAEhB,gBAAgB,4BAAU,OAAO,YAC/B;AAAA,EAKF,UAAU,4BAAU,OAAO,YAAY;AAAA,EAIvC,UAAU,4BAAU,QAClB,4BAAU,MAAM;AAAA,IACd,MAAM,4BAAU,MAAM,CAAC,6BAAc;AAAA,MAEvC,YAAY;AAAA;AAGhB,OAAO,YAAY;AACnB,MAAM,mBAAmB,gCAAS;AAClC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/DSCard.js
CHANGED
|
@@ -1,23 +1,57 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
1
32
|
import * as React from "react";
|
|
2
33
|
import React2 from "react";
|
|
3
34
|
import { PropTypes, describe } from "react-desc";
|
|
4
35
|
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
36
|
import DSCardBody from "./DSCardBody";
|
|
6
37
|
import DSCardHeader from "./DSCardHeader";
|
|
7
|
-
const DSCard = ({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
38
|
+
const DSCard = (_a) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
innerRef = void 0,
|
|
41
|
+
children = null,
|
|
42
|
+
containerProps = {}
|
|
43
|
+
} = _b, otherProps = __objRest(_b, [
|
|
44
|
+
"innerRef",
|
|
45
|
+
"children",
|
|
46
|
+
"containerProps"
|
|
47
|
+
]);
|
|
13
48
|
const { cssClassName } = convertPropToCssClassName("card");
|
|
14
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
15
|
-
"data-testid": "card"
|
|
16
|
-
|
|
49
|
+
return /* @__PURE__ */ React2.createElement("div", __spreadValues(__spreadProps(__spreadValues({
|
|
50
|
+
"data-testid": "card"
|
|
51
|
+
}, containerProps), {
|
|
17
52
|
ref: innerRef,
|
|
18
|
-
className: cssClassName
|
|
19
|
-
|
|
20
|
-
}, children);
|
|
53
|
+
className: cssClassName
|
|
54
|
+
}), otherProps), children);
|
|
21
55
|
};
|
|
22
56
|
const cardProps = {
|
|
23
57
|
containerProps: PropTypes.object.description("inject props to component wrapper"),
|
package/dist/esm/DSCard.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCard.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport DSCardBody from './DSCardBody';\nimport DSCardHeader from './DSCardHeader';\n\nconst DSCard = ({\n innerRef = undefined,\n children = null,\n containerProps = {},\n ...otherProps\n}) => {\n const { cssClassName } = convertPropToCssClassName('card');\n\n return (\n <div\n data-testid=\"card\"\n {...containerProps}\n ref={innerRef}\n className={cssClassName}\n {...otherProps}\n >\n {children}\n </div>\n );\n};\n\nconst cardProps = {\n /** inject props to component wrapper */\n containerProps: PropTypes.object.description(\n 'inject props to component wrapper',\n ),\n /**\n * Get reference for the button\n */\n innerRef: PropTypes.string.description('Get reference for the button'),\n /**\n * DSCardBody and DSCardHeader\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCardHeader, DSCardBody]),\n }),\n ).description('DSCardBody and DSCardHeader'),\n};\n\nDSCard.propTypes = cardProps;\nconst DSCardWithSchema = describe(DSCard);\nDSCardWithSchema.propTypes = cardProps;\n\nexport { DSCard, DSCardWithSchema };\nexport default DSCard;\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,SAAS,CAAC;AAAA,
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,SAAS,CAAC,OAKV;AALU,eACd;AAAA,eAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB;AAAA,MAHH,IAIX,uBAJW,IAIX;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,EAAE,iBAAiB,0BAA0B;AAEnD,SACE,qCAAC,OAAD;AAAA,IACE,eAAY;AAAA,KACR,iBAFN;AAAA,IAGE,KAAK;AAAA,IACL,WAAW;AAAA,MACP,aAEH;AAAA;AAKP,MAAM,YAAY;AAAA,EAEhB,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAKF,UAAU,UAAU,OAAO,YAAY;AAAA,EAIvC,UAAU,UAAU,QAClB,UAAU,MAAM;AAAA,IACd,MAAM,UAAU,MAAM,CAAC,cAAc;AAAA,MAEvC,YAAY;AAAA;AAGhB,OAAO,YAAY;AACnB,MAAM,mBAAmB,SAAS;AAClC,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-card",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Card",
|
|
6
6
|
"files": [
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"indent": 4
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@elliemae/ds-button": "3.0.0-alpha.
|
|
75
|
-
"@elliemae/ds-classnames": "3.0.0-alpha.
|
|
76
|
-
"@elliemae/ds-form": "3.0.0-alpha.
|
|
77
|
-
"@elliemae/ds-grid": "3.0.0-alpha.
|
|
78
|
-
"@elliemae/ds-header": "3.0.0-alpha.
|
|
79
|
-
"@elliemae/ds-icons": "3.0.0-alpha.
|
|
80
|
-
"@elliemae/ds-separator": "3.0.0-alpha.
|
|
81
|
-
"@elliemae/ds-system": "3.0.0-alpha.
|
|
82
|
-
"@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.
|
|
74
|
+
"@elliemae/ds-button": "3.0.0-alpha.1",
|
|
75
|
+
"@elliemae/ds-classnames": "3.0.0-alpha.1",
|
|
76
|
+
"@elliemae/ds-form": "3.0.0-alpha.1",
|
|
77
|
+
"@elliemae/ds-grid": "3.0.0-alpha.1",
|
|
78
|
+
"@elliemae/ds-header": "3.0.0-alpha.1",
|
|
79
|
+
"@elliemae/ds-icons": "3.0.0-alpha.1",
|
|
80
|
+
"@elliemae/ds-separator": "3.0.0-alpha.1",
|
|
81
|
+
"@elliemae/ds-system": "3.0.0-alpha.1",
|
|
82
|
+
"@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.1",
|
|
83
83
|
"react-desc": "~4.1.3"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
102
102
|
"test": "node ../../scripts/testing/test.mjs",
|
|
103
103
|
"lint": "node ../../scripts/lint.mjs",
|
|
104
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
104
105
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
105
106
|
}
|
|
106
107
|
}
|
package/dist/types/DSCard.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSCard: {
|
|
4
|
-
({ innerRef, children, containerProps, ...otherProps }: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
innerRef?: undefined;
|
|
7
|
-
children?: null | undefined;
|
|
8
|
-
containerProps?: {} | undefined;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
propTypes: {
|
|
11
|
-
/** inject props to component wrapper */
|
|
12
|
-
containerProps: {
|
|
13
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
14
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
-
};
|
|
16
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Get reference for the button
|
|
20
|
-
*/
|
|
21
|
-
innerRef: {
|
|
22
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
-
};
|
|
25
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* DSCardBody and DSCardHeader
|
|
29
|
-
*/
|
|
30
|
-
children: {
|
|
31
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
32
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
-
};
|
|
34
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
declare const DSCardWithSchema: {
|
|
39
|
-
(props?: unknown): JSX.Element;
|
|
40
|
-
propTypes: unknown;
|
|
41
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
42
|
-
};
|
|
43
|
-
export { DSCard, DSCardWithSchema };
|
|
44
|
-
export default DSCard;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSCardBody: {
|
|
4
|
-
({ children }: {
|
|
5
|
-
children: any;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
propTypes: {
|
|
8
|
-
/** children */
|
|
9
|
-
children: {
|
|
10
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
11
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
-
};
|
|
13
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare const DSCardBodyWithSchema: {
|
|
18
|
-
(props?: unknown): JSX.Element;
|
|
19
|
-
propTypes: unknown;
|
|
20
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
21
|
-
};
|
|
22
|
-
export { DSCardBody, DSCardBodyWithSchema };
|
|
23
|
-
export default DSCardBody;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSCardHeader: {
|
|
4
|
-
({ title, action }: {
|
|
5
|
-
title: any;
|
|
6
|
-
action: any;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
/** card header title */
|
|
10
|
-
title: {
|
|
11
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
12
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
-
};
|
|
14
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
15
|
-
};
|
|
16
|
-
/** action */
|
|
17
|
-
action: {
|
|
18
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
-
};
|
|
21
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
declare const DSCardHeaderWithSchema: {
|
|
26
|
-
(props?: unknown): JSX.Element;
|
|
27
|
-
propTypes: unknown;
|
|
28
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
29
|
-
};
|
|
30
|
-
export { DSCardHeader, DSCardHeaderWithSchema };
|
|
31
|
-
export default DSCardHeader;
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DetailCard: {
|
|
4
|
-
({ title, description, descriptionColor, rightValue, rightDescription, rightAddon, selectable, isSelected, onSelect, expandable, isExpanded, onExpand, expandContent, readOnly, disabled, }: {
|
|
5
|
-
title: any;
|
|
6
|
-
description: any;
|
|
7
|
-
descriptionColor?: string | undefined;
|
|
8
|
-
rightValue: any;
|
|
9
|
-
rightDescription: any;
|
|
10
|
-
rightAddon: any;
|
|
11
|
-
selectable?: boolean | undefined;
|
|
12
|
-
isSelected?: boolean | undefined;
|
|
13
|
-
onSelect?: ((...args: any[]) => void) | undefined;
|
|
14
|
-
expandable?: boolean | undefined;
|
|
15
|
-
isExpanded?: boolean | undefined;
|
|
16
|
-
onExpand?: ((...args: any[]) => void) | undefined;
|
|
17
|
-
expandContent: any;
|
|
18
|
-
readOnly?: boolean | undefined;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
}): JSX.Element;
|
|
21
|
-
propTypes: {
|
|
22
|
-
/**
|
|
23
|
-
* Title of the card.
|
|
24
|
-
*/
|
|
25
|
-
title: any;
|
|
26
|
-
/**
|
|
27
|
-
* Description of the card.
|
|
28
|
-
*/
|
|
29
|
-
description: {
|
|
30
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
-
};
|
|
33
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Description color.
|
|
37
|
-
*/
|
|
38
|
-
descriptionColor: {
|
|
39
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
40
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
-
};
|
|
42
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Right value (should be used with `rightDescription`)
|
|
46
|
-
*/
|
|
47
|
-
rightValue: {
|
|
48
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
-
};
|
|
51
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Right description (should be used with `rightValue`)
|
|
55
|
-
*/
|
|
56
|
-
rightDescription: {
|
|
57
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
58
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
-
};
|
|
60
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Right addon array, max elements: 2
|
|
64
|
-
*/
|
|
65
|
-
rightAddon: {
|
|
66
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
67
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
68
|
-
};
|
|
69
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Whether if the card is selectable or not
|
|
73
|
-
*/
|
|
74
|
-
selectable: {
|
|
75
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
76
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
-
};
|
|
78
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Whether if the card is selected or not
|
|
82
|
-
*/
|
|
83
|
-
isSelected: {
|
|
84
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
85
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
86
|
-
};
|
|
87
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Callback on selection
|
|
91
|
-
*/
|
|
92
|
-
onSelect: {
|
|
93
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
94
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
-
};
|
|
96
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Whether if the card is expandable or not
|
|
100
|
-
*/
|
|
101
|
-
expandable: {
|
|
102
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
103
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
104
|
-
};
|
|
105
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Whether if the card is expanded or not
|
|
109
|
-
*/
|
|
110
|
-
isExpanded: {
|
|
111
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
112
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
113
|
-
};
|
|
114
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Callback on expand
|
|
118
|
-
*/
|
|
119
|
-
onExpand: {
|
|
120
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
121
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
122
|
-
};
|
|
123
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Content
|
|
127
|
-
*/
|
|
128
|
-
expandContent: {
|
|
129
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
130
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
131
|
-
};
|
|
132
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Read only
|
|
136
|
-
*/
|
|
137
|
-
readOnly: {
|
|
138
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
139
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
140
|
-
};
|
|
141
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* Disabled
|
|
145
|
-
*/
|
|
146
|
-
disabled: {
|
|
147
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
148
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
149
|
-
};
|
|
150
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
declare const DSCardDetailWithSchema: {
|
|
155
|
-
(props?: unknown): JSX.Element;
|
|
156
|
-
propTypes: unknown;
|
|
157
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
158
|
-
};
|
|
159
|
-
export { DetailCard, DSCardDetailWithSchema };
|
|
160
|
-
export default DetailCard;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const RightAddon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const RightDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
export declare const RightValue: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
export declare const ExpandContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
10
|
-
active: any;
|
|
11
|
-
theme: any;
|
|
12
|
-
}, never>;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const ActionAddon: {
|
|
4
|
-
({ label, onClick, icon }: {
|
|
5
|
-
label: any;
|
|
6
|
-
onClick: any;
|
|
7
|
-
icon: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
/**
|
|
11
|
-
* Addon label
|
|
12
|
-
*/
|
|
13
|
-
label: {
|
|
14
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
15
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
-
};
|
|
17
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* On click callback
|
|
21
|
-
*/
|
|
22
|
-
onClick: {
|
|
23
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
-
};
|
|
26
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Icon to display after the label
|
|
30
|
-
*/
|
|
31
|
-
icon: {
|
|
32
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
33
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
-
};
|
|
35
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
declare const DSCardActionAddonWithSchema: {
|
|
40
|
-
(props?: unknown): JSX.Element;
|
|
41
|
-
propTypes: unknown;
|
|
42
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
43
|
-
};
|
|
44
|
-
export { ActionAddon, DSCardActionAddonWithSchema };
|
|
45
|
-
export default ActionAddon;
|
package/dist/types/v2/Card.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const CustomCard: {
|
|
4
|
-
({ title, description, leftAddon, rightAddon, hasBorder, }: {
|
|
5
|
-
title: any;
|
|
6
|
-
description: any;
|
|
7
|
-
leftAddon: any;
|
|
8
|
-
rightAddon: any;
|
|
9
|
-
hasBorder?: boolean | undefined;
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
/**
|
|
13
|
-
* Title of the card. requiered
|
|
14
|
-
*/
|
|
15
|
-
title: any;
|
|
16
|
-
/**
|
|
17
|
-
* Description of the card. not requiered
|
|
18
|
-
*/
|
|
19
|
-
description: {
|
|
20
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
21
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
-
};
|
|
23
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Left Addon
|
|
27
|
-
*/
|
|
28
|
-
leftAddon: {
|
|
29
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
-
};
|
|
32
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Right addon array, max elements: 2
|
|
36
|
-
*/
|
|
37
|
-
rightAddon: {
|
|
38
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
39
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
-
};
|
|
41
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Wheter if the card has border or not
|
|
45
|
-
*/
|
|
46
|
-
hasBorder: {
|
|
47
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
-
};
|
|
50
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
declare const DSCardCustomWithSchema: {
|
|
55
|
-
(props?: unknown): JSX.Element;
|
|
56
|
-
propTypes: unknown;
|
|
57
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
58
|
-
};
|
|
59
|
-
export { CustomCard, DSCardCustomWithSchema };
|
|
60
|
-
export default CustomCard;
|
package/dist/types/v2/Group.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const CardGroup: {
|
|
4
|
-
({ children, title, action }: {
|
|
5
|
-
children: any;
|
|
6
|
-
title: any;
|
|
7
|
-
action: any;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
/**
|
|
11
|
-
* Card items
|
|
12
|
-
*/
|
|
13
|
-
children: any;
|
|
14
|
-
/**
|
|
15
|
-
* Title of the group
|
|
16
|
-
*/
|
|
17
|
-
title: any;
|
|
18
|
-
/**
|
|
19
|
-
* Right addon action
|
|
20
|
-
*/
|
|
21
|
-
action: {
|
|
22
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
-
};
|
|
25
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
declare const DSCardGroupWithSchema: {
|
|
30
|
-
(props?: unknown): JSX.Element;
|
|
31
|
-
propTypes: unknown;
|
|
32
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
33
|
-
};
|
|
34
|
-
export { CardGroup, DSCardGroupWithSchema };
|
|
35
|
-
export default CardGroup;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
declare const LeftSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
declare const LeftAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
declare const RightAddonSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
declare const RightAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
-
declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
-
declare const MainSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
-
declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
-
export { CardContainer, LeftSection, LeftAddon, RightAddonSection, RightAddon, Separator, MainSection, Title, Description, };
|