@elliemae/ds-legacy-card-navigation 1.0.0-rc.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/DSCardNavigation.js +93 -0
- package/dist/cjs/DSCardNavigation.js.map +7 -0
- package/dist/cjs/components/types.js +43 -0
- package/dist/cjs/components/types.js.map +7 -0
- package/dist/cjs/index.js +38 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +7 -0
- package/dist/cjs/style.js +135 -0
- package/dist/cjs/style.js.map +7 -0
- package/dist/esm/DSCardNavigation.js +73 -0
- package/dist/esm/DSCardNavigation.js.map +7 -0
- package/dist/esm/components/types.js +13 -0
- package/dist/esm/components/types.js.map +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/package.json +7 -0
- package/dist/esm/style.js +105 -0
- package/dist/esm/style.js.map +7 -0
- package/dist/types/DSCardNavigation.d.ts +42 -0
- package/dist/types/components/types.d.ts +7 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/style.d.ts +9 -0
- package/dist/types/tests/DSCardNavigation.axe.test.d.ts +1 -0
- package/dist/types/tests/DSCardNavigation.test.d.ts +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSCardNavigation_exports = {};
|
|
30
|
+
__export(DSCardNavigation_exports, {
|
|
31
|
+
CardNavigationTypes: () => import_types.CardNavigationTypes,
|
|
32
|
+
CardNavigationTypesValues: () => import_types.CardNavigationTypesValues,
|
|
33
|
+
DSCardNavigation: () => DSCardNavigation,
|
|
34
|
+
DSCardNavigationWithSchema: () => DSCardNavigationWithSchema,
|
|
35
|
+
default: () => DSCardNavigation_default
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(DSCardNavigation_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
|
|
41
|
+
var import_ds_legacy_truncated_tooltip_text = require("@elliemae/ds-legacy-truncated-tooltip-text");
|
|
42
|
+
var import_ds_legacy_icons = require("@elliemae/ds-legacy-icons");
|
|
43
|
+
var import_ds_legacy_button_v2 = require("@elliemae/ds-legacy-button-v2");
|
|
44
|
+
var import_style = require("./style.js");
|
|
45
|
+
var import_types = require("./components/types.js");
|
|
46
|
+
const DSCardNavigation = ({ containerProps = {}, title = "", description = "", type, Icon, actions = [], ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_style.StyledCardNavigationBoxWrapper, { tabIndex: 0, ...rest, ...containerProps, children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationIcon, { role: "button", "aria-label": title, type, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size: "l", color: ["neutral", 0] }) }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_style.StyledCardNavigationCentralContent, { children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_style.StyledCardNavigationContentTitleWrapper, { children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationContentTitle, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_truncated_tooltip_text.DSTruncatedTooltipText, { value: title }) }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationContentDescription, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_truncated_tooltip_text.DSTruncatedTooltipText, { value: description, "data-testid": "ds-card-navigation--description" }) })
|
|
52
|
+
] }) }),
|
|
53
|
+
actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationActions, { children: actions.map(({ icon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_icons.MoreOptionsVert, { "aria-label": "More options" }), ...otherProps }, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.StyledCardNavigationAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
import_ds_legacy_button_v2.DSButtonV2,
|
|
55
|
+
{
|
|
56
|
+
...otherProps,
|
|
57
|
+
"aria-label": "More options",
|
|
58
|
+
buttonType: import_ds_legacy_button_v2.BUTTON_TYPES.ICON,
|
|
59
|
+
size: import_ds_legacy_button_v2.BUTTON_SIZES.L,
|
|
60
|
+
children: icon
|
|
61
|
+
}
|
|
62
|
+
) }, key)) })
|
|
63
|
+
] })
|
|
64
|
+
] }) });
|
|
65
|
+
DSCardNavigation.defaultProps = {
|
|
66
|
+
type: import_types.CardNavigationTypes.BORROWER,
|
|
67
|
+
Icon: import_ds_legacy_icons.LoanProducts
|
|
68
|
+
};
|
|
69
|
+
const props = {
|
|
70
|
+
/** props to inject to card navigation wrapper */
|
|
71
|
+
containerProps: import_ds_legacy_props_helpers.PropTypes.object.description("props to inject to card navigation wrapper"),
|
|
72
|
+
/** card navigation title */
|
|
73
|
+
title: import_ds_legacy_props_helpers.PropTypes.string.description("card navigation title"),
|
|
74
|
+
/** card navigation main icon */
|
|
75
|
+
Icon: import_ds_legacy_props_helpers.PropTypes.func.description("card navigation main icon"),
|
|
76
|
+
/** card navigation description */
|
|
77
|
+
description: import_ds_legacy_props_helpers.PropTypes.string.description("card navigation description"),
|
|
78
|
+
/** card navigation type */
|
|
79
|
+
type: import_ds_legacy_props_helpers.PropTypes.oneOf(import_types.CardNavigationTypesValues).description("card navigation type"),
|
|
80
|
+
/** card navigation actions array */
|
|
81
|
+
actions: import_ds_legacy_props_helpers.PropTypes.arrayOf(
|
|
82
|
+
import_ds_legacy_props_helpers.PropTypes.shape({
|
|
83
|
+
icon: import_ds_legacy_props_helpers.PropTypes.element,
|
|
84
|
+
onClick: import_ds_legacy_props_helpers.PropTypes.func
|
|
85
|
+
})
|
|
86
|
+
).description("card navigation actions array")
|
|
87
|
+
};
|
|
88
|
+
DSCardNavigation.propTypes = props;
|
|
89
|
+
DSCardNavigation.displayName = "DSCardNavigation";
|
|
90
|
+
const DSCardNavigationWithSchema = (0, import_ds_legacy_props_helpers.describe)(DSCardNavigation);
|
|
91
|
+
DSCardNavigationWithSchema.propTypes = props;
|
|
92
|
+
var DSCardNavigation_default = DSCardNavigation;
|
|
93
|
+
//# sourceMappingURL=DSCardNavigation.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSCardNavigation.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-legacy-props-helpers';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-legacy-truncated-tooltip-text';\nimport { MoreOptionsVert, LoanProducts } from '@elliemae/ds-legacy-icons';\nimport { DSButtonV2, BUTTON_SIZES, BUTTON_TYPES } from '@elliemae/ds-legacy-button-v2';\nimport {\n StyledCardNavigationContentTitle,\n StyledCardNavigationContentDescription,\n StyledCardNavigationContentTitleWrapper,\n StyledCardNavigationContent,\n StyledCardNavigationCentralContent,\n StyledCardNavigationBoxWrapper,\n StyledCardNavigationIcon,\n StyledCardNavigationAction,\n StyledCardNavigationActions,\n} from './style.js';\nimport { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';\n\nconst DSCardNavigation = ({ containerProps = {}, title = '', description = '', type, Icon, actions = [], ...rest }) => (\n <TooltipTextProvider>\n <StyledCardNavigationBoxWrapper tabIndex={0} {...rest} {...containerProps}>\n <StyledCardNavigationIcon role=\"button\" aria-label={title} type={type}>\n <Icon size=\"l\" color={['neutral', 0]} />\n </StyledCardNavigationIcon>\n <StyledCardNavigationCentralContent>\n <StyledCardNavigationContent>\n <StyledCardNavigationContentTitleWrapper>\n <StyledCardNavigationContentTitle>\n <DSTruncatedTooltipText value={title} />\n </StyledCardNavigationContentTitle>\n <StyledCardNavigationContentDescription>\n <DSTruncatedTooltipText value={description} data-testid=\"ds-card-navigation--description\" />\n </StyledCardNavigationContentDescription>\n </StyledCardNavigationContentTitleWrapper>\n </StyledCardNavigationContent>\n {actions.length > 0 && (\n <StyledCardNavigationActions>\n {actions.map(({ icon = <MoreOptionsVert aria-label=\"More options\" />, ...otherProps }, key) => (\n <StyledCardNavigationAction key={key}>\n <DSButtonV2\n {...otherProps}\n aria-label=\"More options\"\n buttonType={BUTTON_TYPES.ICON}\n size={BUTTON_SIZES.L}\n >\n {icon}\n </DSButtonV2>\n </StyledCardNavigationAction>\n ))}\n </StyledCardNavigationActions>\n )}\n </StyledCardNavigationCentralContent>\n </StyledCardNavigationBoxWrapper>\n </TooltipTextProvider>\n);\n\nDSCardNavigation.defaultProps = {\n type: CardNavigationTypes.BORROWER,\n Icon: LoanProducts,\n};\n\nconst props = {\n /** props to inject to card navigation wrapper */\n containerProps: PropTypes.object.description('props to inject to card navigation wrapper'),\n /** card navigation title */\n title: PropTypes.string.description('card navigation title'),\n /** card navigation main icon */\n Icon: PropTypes.func.description('card navigation main icon'),\n /** card navigation description */\n description: PropTypes.string.description('card navigation description'),\n /** card navigation type */\n type: PropTypes.oneOf(CardNavigationTypesValues).description('card navigation type'),\n /** card navigation actions array */\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n onClick: PropTypes.func,\n }),\n ).description('card navigation actions array'),\n};\n\nDSCardNavigation.propTypes = props;\nDSCardNavigation.displayName = 'DSCardNavigation';\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = props;\n\nexport { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema, DSCardNavigation };\n\nexport default DSCardNavigation;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBf;AArBR,qCAAoC;AACpC,8CAA4D;AAC5D,6BAA8C;AAC9C,iCAAuD;AACvD,mBAUO;AACP,mBAA+D;AAE/D,MAAM,mBAAmB,CAAC,EAAE,iBAAiB,CAAC,GAAG,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,CAAC,GAAG,GAAG,KAAK,MAC/G,4CAAC,+DACC,uDAAC,+CAA+B,UAAU,GAAI,GAAG,MAAO,GAAG,gBACzD;AAAA,8CAAC,yCAAyB,MAAK,UAAS,cAAY,OAAO,MACzD,sDAAC,QAAK,MAAK,KAAI,OAAO,CAAC,WAAW,CAAC,GAAG,GACxC;AAAA,EACA,6CAAC,mDACC;AAAA,gDAAC,4CACC,uDAAC,wDACC;AAAA,kDAAC,iDACC,sDAAC,kEAAuB,OAAO,OAAO,GACxC;AAAA,MACA,4CAAC,uDACC,sDAAC,kEAAuB,OAAO,aAAa,eAAY,mCAAkC,GAC5F;AAAA,OACF,GACF;AAAA,IACC,QAAQ,SAAS,KAChB,4CAAC,4CACE,kBAAQ,IAAI,CAAC,EAAE,OAAO,4CAAC,0CAAgB,cAAW,gBAAe,GAAI,GAAG,WAAW,GAAG,QACrF,4CAAC,2CACC;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,cAAW;AAAA,QACX,YAAY,wCAAa;AAAA,QACzB,MAAM,wCAAa;AAAA,QAElB;AAAA;AAAA,IACH,KAR+B,GASjC,CACD,GACH;AAAA,KAEJ;AAAA,GACF,GACF;AAGF,iBAAiB,eAAe;AAAA,EAC9B,MAAM,iCAAoB;AAAA,EAC1B,MAAM;AACR;AAEA,MAAM,QAAQ;AAAA;AAAA,EAEZ,gBAAgB,yCAAU,OAAO,YAAY,4CAA4C;AAAA;AAAA,EAEzF,OAAO,yCAAU,OAAO,YAAY,uBAAuB;AAAA;AAAA,EAE3D,MAAM,yCAAU,KAAK,YAAY,2BAA2B;AAAA;AAAA,EAE5D,aAAa,yCAAU,OAAO,YAAY,6BAA6B;AAAA;AAAA,EAEvE,MAAM,yCAAU,MAAM,sCAAyB,EAAE,YAAY,sBAAsB;AAAA;AAAA,EAEnF,SAAS,yCAAU;AAAA,IACjB,yCAAU,MAAM;AAAA,MACd,MAAM,yCAAU;AAAA,MAChB,SAAS,yCAAU;AAAA,IACrB,CAAC;AAAA,EACH,EAAE,YAAY,+BAA+B;AAC/C;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,yCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAIvC,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var types_exports = {};
|
|
30
|
+
__export(types_exports, {
|
|
31
|
+
CardNavigationTypes: () => CardNavigationTypes,
|
|
32
|
+
CardNavigationTypesValues: () => CardNavigationTypesValues
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(types_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
const CardNavigationTypes = {
|
|
37
|
+
BORROWER: "borrower",
|
|
38
|
+
FINANCIAL: "financial",
|
|
39
|
+
LOAN: "loan",
|
|
40
|
+
REGULATORY: "regulatory"
|
|
41
|
+
};
|
|
42
|
+
const CardNavigationTypesValues = Object.values(CardNavigationTypes);
|
|
43
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/types.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const CardNavigationTypes = {\n BORROWER: 'borrower',\n FINANCIAL: 'financial',\n LOAN: 'loan',\n REGULATORY: 'regulatory',\n};\n\nexport const CardNavigationTypesValues = Object.values(CardNavigationTypes);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,sBAAsB;AAAA,EACjC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AACd;AAEO,MAAM,4BAA4B,OAAO,OAAO,mBAAmB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var src_exports = {};
|
|
31
|
+
__export(src_exports, {
|
|
32
|
+
default: () => import_DSCardNavigation.default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(src_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_DSCardNavigation = __toESM(require("./DSCardNavigation.js"));
|
|
37
|
+
__reExport(src_exports, require("./DSCardNavigation.js"), module.exports);
|
|
38
|
+
//# 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 { default } from './DSCardNavigation.js';\nexport * from './DSCardNavigation.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAwB;AACxB,wBAAc,kCADd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var style_exports = {};
|
|
30
|
+
__export(style_exports, {
|
|
31
|
+
StyledCardNavigationAction: () => StyledCardNavigationAction,
|
|
32
|
+
StyledCardNavigationActions: () => StyledCardNavigationActions,
|
|
33
|
+
StyledCardNavigationBoxWrapper: () => StyledCardNavigationBoxWrapper,
|
|
34
|
+
StyledCardNavigationCentralContent: () => StyledCardNavigationCentralContent,
|
|
35
|
+
StyledCardNavigationContent: () => StyledCardNavigationContent,
|
|
36
|
+
StyledCardNavigationContentDescription: () => StyledCardNavigationContentDescription,
|
|
37
|
+
StyledCardNavigationContentTitle: () => StyledCardNavigationContentTitle,
|
|
38
|
+
StyledCardNavigationContentTitleWrapper: () => StyledCardNavigationContentTitleWrapper,
|
|
39
|
+
StyledCardNavigationIcon: () => StyledCardNavigationIcon
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(style_exports);
|
|
42
|
+
var React = __toESM(require("react"));
|
|
43
|
+
var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
|
|
44
|
+
var import_types = require("./components/types.js");
|
|
45
|
+
const StyledCardNavigationContentTitle = import_ds_legacy_system.styled.div`
|
|
46
|
+
padding-top: ${(props) => props.theme.space.xxs};
|
|
47
|
+
font-weight: ${(props) => props.theme.fontWeights.semibold};
|
|
48
|
+
font-size: 18px;
|
|
49
|
+
color: ${(props) => props.theme.colors.neutral["700"]};
|
|
50
|
+
`;
|
|
51
|
+
const StyledCardNavigationContentDescription = import_ds_legacy_system.styled.div`
|
|
52
|
+
color: ${(props) => props.theme.colors.neutral["500"]};
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
`;
|
|
55
|
+
const StyledCardNavigationContentTitleWrapper = import_ds_legacy_system.styled.div`
|
|
56
|
+
width: 100%;
|
|
57
|
+
`;
|
|
58
|
+
const StyledCardNavigationContent = import_ds_legacy_system.styled.div`
|
|
59
|
+
padding-right: ${(props) => props.theme.space.xs};
|
|
60
|
+
padding-left: ${(props) => props.theme.space.xs};
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
flex: 1;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
`;
|
|
66
|
+
const StyledCardNavigationCentralContent = import_ds_legacy_system.styled.div`
|
|
67
|
+
width: 273px;
|
|
68
|
+
display: flex;
|
|
69
|
+
@media (max-width: ${(props) => props.theme.breakpoints.small}) {
|
|
70
|
+
width: 336px;
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const StyledCardNavigationBoxWrapper = import_ds_legacy_system.styled.div`
|
|
74
|
+
width: 337px;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
flex-wrap: nowrap;
|
|
78
|
+
box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);
|
|
79
|
+
border-radius: 2px;
|
|
80
|
+
position: relative;
|
|
81
|
+
outline: none;
|
|
82
|
+
${(props) => props.fluid ? "width: 100%" : ""};
|
|
83
|
+
@media (max-width: ${(props) => props.theme.breakpoints.small}) {
|
|
84
|
+
width: ${(props) => props.fluid ? "width: 100%" : "414px"};
|
|
85
|
+
}
|
|
86
|
+
:after {
|
|
87
|
+
display: block;
|
|
88
|
+
content: '';
|
|
89
|
+
position: absolute;
|
|
90
|
+
height: 100%;
|
|
91
|
+
width: 100%;
|
|
92
|
+
top: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
border: solid ${(props) => props.theme.space.xxs} transparent;
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
&:hover,
|
|
99
|
+
&:focus {
|
|
100
|
+
box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
const StyledCardNavigationIcon = import_ds_legacy_system.styled.div`
|
|
104
|
+
width: 64px;
|
|
105
|
+
height: 64px;
|
|
106
|
+
background-color: #32aad1;
|
|
107
|
+
border-top-left-radius: 2px;
|
|
108
|
+
border-bottom-left-radius: 2px;
|
|
109
|
+
padding: ${(props) => props.theme.space.xxs};
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
fill: #ffffff;
|
|
114
|
+
/* fill: color(neutral, 0); */
|
|
115
|
+
background-color: ${({ type }) => type === import_types.CardNavigationTypes.BORROWER && "#32aad1" || type === import_types.CardNavigationTypes.FINANCIAL && "#1ba88d" || type === import_types.CardNavigationTypes.LOAN && "#8e49b2" || type === import_types.CardNavigationTypes.REGULATORY && "#db5575"};
|
|
116
|
+
`;
|
|
117
|
+
const StyledCardNavigationActions = import_ds_legacy_system.styled.div`
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
align-items: center;
|
|
121
|
+
padding-right: ${(props) => props.theme.space.xxs};
|
|
122
|
+
`;
|
|
123
|
+
const StyledCardNavigationAction = import_ds_legacy_system.styled.div`
|
|
124
|
+
margin-left: ${(props) => props.theme.space.xxs};
|
|
125
|
+
span {
|
|
126
|
+
height: ${(props) => props.theme.space.s};
|
|
127
|
+
width: ${(props) => props.theme.space.s};
|
|
128
|
+
svg {
|
|
129
|
+
fill: ${(props) => props.theme.colors.neutral[500]};
|
|
130
|
+
height: ${(props) => props.theme.space.s};
|
|
131
|
+
width: ${(props) => props.theme.space.s};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/style.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { styled } from '@elliemae/ds-legacy-system';\nimport { CardNavigationTypes } from './components/types.js';\n\nexport const StyledCardNavigationContentTitle = styled.div`\n padding-top: ${(props) => props.theme.space.xxs};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n font-size: 18px;\n color: ${(props) => props.theme.colors.neutral['700']};\n`;\n\nexport const StyledCardNavigationContentDescription = styled.div`\n color: ${(props) => props.theme.colors.neutral['500']};\n font-size: 12px;\n`;\n\nexport const StyledCardNavigationContentTitleWrapper = styled.div`\n width: 100%;\n`;\n\nexport const StyledCardNavigationContent = styled.div`\n padding-right: ${(props) => props.theme.space.xs};\n padding-left: ${(props) => props.theme.space.xs};\n display: flex;\n align-items: center;\n flex: 1;\n overflow: hidden;\n`;\n\nexport const StyledCardNavigationCentralContent = styled.div`\n width: 273px;\n display: flex;\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n width: 336px;\n }\n`;\n\nexport const StyledCardNavigationBoxWrapper = styled.div`\n width: 337px;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);\n border-radius: 2px;\n position: relative;\n outline: none;\n ${(props) => (props.fluid ? 'width: 100%' : '')};\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n width: ${(props) => (props.fluid ? 'width: 100%' : '414px')};\n }\n :after {\n display: block;\n content: '';\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n border: solid ${(props) => props.theme.space.xxs} transparent;\n border-radius: 2px;\n pointer-events: none;\n }\n &:hover,\n &:focus {\n box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);\n }\n`;\n\nexport const StyledCardNavigationIcon = styled.div`\n width: 64px;\n height: 64px;\n background-color: #32aad1;\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n padding: ${(props) => props.theme.space.xxs};\n display: flex;\n align-items: center;\n justify-content: center;\n fill: #ffffff;\n /* fill: color(neutral, 0); */\n background-color: ${({ type }) =>\n (type === CardNavigationTypes.BORROWER && '#32aad1') ||\n (type === CardNavigationTypes.FINANCIAL && '#1ba88d') ||\n (type === CardNavigationTypes.LOAN && '#8e49b2') ||\n (type === CardNavigationTypes.REGULATORY && '#db5575')};\n`;\n\nexport const StyledCardNavigationActions = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-right: ${(props) => props.theme.space.xxs};\n`;\n\nexport const StyledCardNavigationAction = styled.div`\n margin-left: ${(props) => props.theme.space.xxs};\n span {\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n svg {\n fill: ${(props) => props.theme.colors.neutral[500]};\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n }\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAuB;AACvB,mBAAoC;AAE7B,MAAM,mCAAmC,+BAAO;AAAA,iBACtC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC7B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,WAEzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAG/C,MAAM,yCAAyC,+BAAO;AAAA,WAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAAA;AAI/C,MAAM,0CAA0C,+BAAO;AAAA;AAAA;AAIvD,MAAM,8BAA8B,+BAAO;AAAA,mBAC/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,kBAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAOxC,MAAM,qCAAqC,+BAAO;AAAA;AAAA;AAAA,uBAGlC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAKnD,MAAM,iCAAiC,+BAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASjD,CAAC,UAAW,MAAM,QAAQ,gBAAgB;AAAA,uBACvB,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,aAC7C,CAAC,UAAW,MAAM,QAAQ,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAUnC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU1C,MAAM,2BAA2B,+BAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMlC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMpB,CAAC,EAAE,KAAK,MACzB,SAAS,iCAAoB,YAAY,aACzC,SAAS,iCAAoB,aAAa,aAC1C,SAAS,iCAAoB,QAAQ,aACrC,SAAS,iCAAoB,cAAc;AAAA;AAGzC,MAAM,8BAA8B,+BAAO;AAAA;AAAA;AAAA;AAAA,mBAI/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGzC,MAAM,6BAA6B,+BAAO;AAAA,iBAChC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,cAEhC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,aAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,cAE5B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,gBACvC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,eAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-legacy-props-helpers";
|
|
4
|
+
import { DSTruncatedTooltipText, TooltipTextProvider } from "@elliemae/ds-legacy-truncated-tooltip-text";
|
|
5
|
+
import { MoreOptionsVert, LoanProducts } from "@elliemae/ds-legacy-icons";
|
|
6
|
+
import { DSButtonV2, BUTTON_SIZES, BUTTON_TYPES } from "@elliemae/ds-legacy-button-v2";
|
|
7
|
+
import {
|
|
8
|
+
StyledCardNavigationContentTitle,
|
|
9
|
+
StyledCardNavigationContentDescription,
|
|
10
|
+
StyledCardNavigationContentTitleWrapper,
|
|
11
|
+
StyledCardNavigationContent,
|
|
12
|
+
StyledCardNavigationCentralContent,
|
|
13
|
+
StyledCardNavigationBoxWrapper,
|
|
14
|
+
StyledCardNavigationIcon,
|
|
15
|
+
StyledCardNavigationAction,
|
|
16
|
+
StyledCardNavigationActions
|
|
17
|
+
} from "./style.js";
|
|
18
|
+
import { CardNavigationTypes, CardNavigationTypesValues } from "./components/types.js";
|
|
19
|
+
const DSCardNavigation = ({ containerProps = {}, title = "", description = "", type, Icon, actions = [], ...rest }) => /* @__PURE__ */ jsx(TooltipTextProvider, { children: /* @__PURE__ */ jsxs(StyledCardNavigationBoxWrapper, { tabIndex: 0, ...rest, ...containerProps, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(StyledCardNavigationIcon, { role: "button", "aria-label": title, type, children: /* @__PURE__ */ jsx(Icon, { size: "l", color: ["neutral", 0] }) }),
|
|
21
|
+
/* @__PURE__ */ jsxs(StyledCardNavigationCentralContent, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx(StyledCardNavigationContent, { children: /* @__PURE__ */ jsxs(StyledCardNavigationContentTitleWrapper, { children: [
|
|
23
|
+
/* @__PURE__ */ jsx(StyledCardNavigationContentTitle, { children: /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: title }) }),
|
|
24
|
+
/* @__PURE__ */ jsx(StyledCardNavigationContentDescription, { children: /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value: description, "data-testid": "ds-card-navigation--description" }) })
|
|
25
|
+
] }) }),
|
|
26
|
+
actions.length > 0 && /* @__PURE__ */ jsx(StyledCardNavigationActions, { children: actions.map(({ icon = /* @__PURE__ */ jsx(MoreOptionsVert, { "aria-label": "More options" }), ...otherProps }, key) => /* @__PURE__ */ jsx(StyledCardNavigationAction, { children: /* @__PURE__ */ jsx(
|
|
27
|
+
DSButtonV2,
|
|
28
|
+
{
|
|
29
|
+
...otherProps,
|
|
30
|
+
"aria-label": "More options",
|
|
31
|
+
buttonType: BUTTON_TYPES.ICON,
|
|
32
|
+
size: BUTTON_SIZES.L,
|
|
33
|
+
children: icon
|
|
34
|
+
}
|
|
35
|
+
) }, key)) })
|
|
36
|
+
] })
|
|
37
|
+
] }) });
|
|
38
|
+
DSCardNavigation.defaultProps = {
|
|
39
|
+
type: CardNavigationTypes.BORROWER,
|
|
40
|
+
Icon: LoanProducts
|
|
41
|
+
};
|
|
42
|
+
const props = {
|
|
43
|
+
/** props to inject to card navigation wrapper */
|
|
44
|
+
containerProps: PropTypes.object.description("props to inject to card navigation wrapper"),
|
|
45
|
+
/** card navigation title */
|
|
46
|
+
title: PropTypes.string.description("card navigation title"),
|
|
47
|
+
/** card navigation main icon */
|
|
48
|
+
Icon: PropTypes.func.description("card navigation main icon"),
|
|
49
|
+
/** card navigation description */
|
|
50
|
+
description: PropTypes.string.description("card navigation description"),
|
|
51
|
+
/** card navigation type */
|
|
52
|
+
type: PropTypes.oneOf(CardNavigationTypesValues).description("card navigation type"),
|
|
53
|
+
/** card navigation actions array */
|
|
54
|
+
actions: PropTypes.arrayOf(
|
|
55
|
+
PropTypes.shape({
|
|
56
|
+
icon: PropTypes.element,
|
|
57
|
+
onClick: PropTypes.func
|
|
58
|
+
})
|
|
59
|
+
).description("card navigation actions array")
|
|
60
|
+
};
|
|
61
|
+
DSCardNavigation.propTypes = props;
|
|
62
|
+
DSCardNavigation.displayName = "DSCardNavigation";
|
|
63
|
+
const DSCardNavigationWithSchema = describe(DSCardNavigation);
|
|
64
|
+
DSCardNavigationWithSchema.propTypes = props;
|
|
65
|
+
var DSCardNavigation_default = DSCardNavigation;
|
|
66
|
+
export {
|
|
67
|
+
CardNavigationTypes,
|
|
68
|
+
CardNavigationTypesValues,
|
|
69
|
+
DSCardNavigation,
|
|
70
|
+
DSCardNavigationWithSchema,
|
|
71
|
+
DSCardNavigation_default as default
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=DSCardNavigation.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardNavigation.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-legacy-props-helpers';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-legacy-truncated-tooltip-text';\nimport { MoreOptionsVert, LoanProducts } from '@elliemae/ds-legacy-icons';\nimport { DSButtonV2, BUTTON_SIZES, BUTTON_TYPES } from '@elliemae/ds-legacy-button-v2';\nimport {\n StyledCardNavigationContentTitle,\n StyledCardNavigationContentDescription,\n StyledCardNavigationContentTitleWrapper,\n StyledCardNavigationContent,\n StyledCardNavigationCentralContent,\n StyledCardNavigationBoxWrapper,\n StyledCardNavigationIcon,\n StyledCardNavigationAction,\n StyledCardNavigationActions,\n} from './style.js';\nimport { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';\n\nconst DSCardNavigation = ({ containerProps = {}, title = '', description = '', type, Icon, actions = [], ...rest }) => (\n <TooltipTextProvider>\n <StyledCardNavigationBoxWrapper tabIndex={0} {...rest} {...containerProps}>\n <StyledCardNavigationIcon role=\"button\" aria-label={title} type={type}>\n <Icon size=\"l\" color={['neutral', 0]} />\n </StyledCardNavigationIcon>\n <StyledCardNavigationCentralContent>\n <StyledCardNavigationContent>\n <StyledCardNavigationContentTitleWrapper>\n <StyledCardNavigationContentTitle>\n <DSTruncatedTooltipText value={title} />\n </StyledCardNavigationContentTitle>\n <StyledCardNavigationContentDescription>\n <DSTruncatedTooltipText value={description} data-testid=\"ds-card-navigation--description\" />\n </StyledCardNavigationContentDescription>\n </StyledCardNavigationContentTitleWrapper>\n </StyledCardNavigationContent>\n {actions.length > 0 && (\n <StyledCardNavigationActions>\n {actions.map(({ icon = <MoreOptionsVert aria-label=\"More options\" />, ...otherProps }, key) => (\n <StyledCardNavigationAction key={key}>\n <DSButtonV2\n {...otherProps}\n aria-label=\"More options\"\n buttonType={BUTTON_TYPES.ICON}\n size={BUTTON_SIZES.L}\n >\n {icon}\n </DSButtonV2>\n </StyledCardNavigationAction>\n ))}\n </StyledCardNavigationActions>\n )}\n </StyledCardNavigationCentralContent>\n </StyledCardNavigationBoxWrapper>\n </TooltipTextProvider>\n);\n\nDSCardNavigation.defaultProps = {\n type: CardNavigationTypes.BORROWER,\n Icon: LoanProducts,\n};\n\nconst props = {\n /** props to inject to card navigation wrapper */\n containerProps: PropTypes.object.description('props to inject to card navigation wrapper'),\n /** card navigation title */\n title: PropTypes.string.description('card navigation title'),\n /** card navigation main icon */\n Icon: PropTypes.func.description('card navigation main icon'),\n /** card navigation description */\n description: PropTypes.string.description('card navigation description'),\n /** card navigation type */\n type: PropTypes.oneOf(CardNavigationTypesValues).description('card navigation type'),\n /** card navigation actions array */\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n icon: PropTypes.element,\n onClick: PropTypes.func,\n }),\n ).description('card navigation actions array'),\n};\n\nDSCardNavigation.propTypes = props;\nDSCardNavigation.displayName = 'DSCardNavigation';\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = props;\n\nexport { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema, DSCardNavigation };\n\nexport default DSCardNavigation;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACsBf,cAIE,YAJF;AArBR,SAAS,WAAW,gBAAgB;AACpC,SAAS,wBAAwB,2BAA2B;AAC5D,SAAS,iBAAiB,oBAAoB;AAC9C,SAAS,YAAY,cAAc,oBAAoB;AACvD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,qBAAqB,iCAAiC;AAE/D,MAAM,mBAAmB,CAAC,EAAE,iBAAiB,CAAC,GAAG,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,CAAC,GAAG,GAAG,KAAK,MAC/G,oBAAC,uBACC,+BAAC,kCAA+B,UAAU,GAAI,GAAG,MAAO,GAAG,gBACzD;AAAA,sBAAC,4BAAyB,MAAK,UAAS,cAAY,OAAO,MACzD,8BAAC,QAAK,MAAK,KAAI,OAAO,CAAC,WAAW,CAAC,GAAG,GACxC;AAAA,EACA,qBAAC,sCACC;AAAA,wBAAC,+BACC,+BAAC,2CACC;AAAA,0BAAC,oCACC,8BAAC,0BAAuB,OAAO,OAAO,GACxC;AAAA,MACA,oBAAC,0CACC,8BAAC,0BAAuB,OAAO,aAAa,eAAY,mCAAkC,GAC5F;AAAA,OACF,GACF;AAAA,IACC,QAAQ,SAAS,KAChB,oBAAC,+BACE,kBAAQ,IAAI,CAAC,EAAE,OAAO,oBAAC,mBAAgB,cAAW,gBAAe,GAAI,GAAG,WAAW,GAAG,QACrF,oBAAC,8BACC;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,cAAW;AAAA,QACX,YAAY,aAAa;AAAA,QACzB,MAAM,aAAa;AAAA,QAElB;AAAA;AAAA,IACH,KAR+B,GASjC,CACD,GACH;AAAA,KAEJ;AAAA,GACF,GACF;AAGF,iBAAiB,eAAe;AAAA,EAC9B,MAAM,oBAAoB;AAAA,EAC1B,MAAM;AACR;AAEA,MAAM,QAAQ;AAAA;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY,4CAA4C;AAAA;AAAA,EAEzF,OAAO,UAAU,OAAO,YAAY,uBAAuB;AAAA;AAAA,EAE3D,MAAM,UAAU,KAAK,YAAY,2BAA2B;AAAA;AAAA,EAE5D,aAAa,UAAU,OAAO,YAAY,6BAA6B;AAAA;AAAA,EAEvE,MAAM,UAAU,MAAM,yBAAyB,EAAE,YAAY,sBAAsB;AAAA;AAAA,EAEnF,SAAS,UAAU;AAAA,IACjB,UAAU,MAAM;AAAA,MACd,MAAM,UAAU;AAAA,MAChB,SAAS,UAAU;AAAA,IACrB,CAAC;AAAA,EACH,EAAE,YAAY,+BAA+B;AAC/C;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,SAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAIvC,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const CardNavigationTypes = {
|
|
3
|
+
BORROWER: "borrower",
|
|
4
|
+
FINANCIAL: "financial",
|
|
5
|
+
LOAN: "loan",
|
|
6
|
+
REGULATORY: "regulatory"
|
|
7
|
+
};
|
|
8
|
+
const CardNavigationTypesValues = Object.values(CardNavigationTypes);
|
|
9
|
+
export {
|
|
10
|
+
CardNavigationTypes,
|
|
11
|
+
CardNavigationTypesValues
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/types.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const CardNavigationTypes = {\n BORROWER: 'borrower',\n FINANCIAL: 'financial',\n LOAN: 'loan',\n REGULATORY: 'regulatory',\n};\n\nexport const CardNavigationTypesValues = Object.values(CardNavigationTypes);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,sBAAsB;AAAA,EACjC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AACd;AAEO,MAAM,4BAA4B,OAAO,OAAO,mBAAmB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 { default } from './DSCardNavigation.js';\nexport * from './DSCardNavigation.js';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAAA,gBAAe;AACxB,cAAc;",
|
|
6
|
+
"names": ["default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { styled } from "@elliemae/ds-legacy-system";
|
|
3
|
+
import { CardNavigationTypes } from "./components/types.js";
|
|
4
|
+
const StyledCardNavigationContentTitle = styled.div`
|
|
5
|
+
padding-top: ${(props) => props.theme.space.xxs};
|
|
6
|
+
font-weight: ${(props) => props.theme.fontWeights.semibold};
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
color: ${(props) => props.theme.colors.neutral["700"]};
|
|
9
|
+
`;
|
|
10
|
+
const StyledCardNavigationContentDescription = styled.div`
|
|
11
|
+
color: ${(props) => props.theme.colors.neutral["500"]};
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
`;
|
|
14
|
+
const StyledCardNavigationContentTitleWrapper = styled.div`
|
|
15
|
+
width: 100%;
|
|
16
|
+
`;
|
|
17
|
+
const StyledCardNavigationContent = styled.div`
|
|
18
|
+
padding-right: ${(props) => props.theme.space.xs};
|
|
19
|
+
padding-left: ${(props) => props.theme.space.xs};
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
flex: 1;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
`;
|
|
25
|
+
const StyledCardNavigationCentralContent = styled.div`
|
|
26
|
+
width: 273px;
|
|
27
|
+
display: flex;
|
|
28
|
+
@media (max-width: ${(props) => props.theme.breakpoints.small}) {
|
|
29
|
+
width: 336px;
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const StyledCardNavigationBoxWrapper = styled.div`
|
|
33
|
+
width: 337px;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
flex-wrap: nowrap;
|
|
37
|
+
box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);
|
|
38
|
+
border-radius: 2px;
|
|
39
|
+
position: relative;
|
|
40
|
+
outline: none;
|
|
41
|
+
${(props) => props.fluid ? "width: 100%" : ""};
|
|
42
|
+
@media (max-width: ${(props) => props.theme.breakpoints.small}) {
|
|
43
|
+
width: ${(props) => props.fluid ? "width: 100%" : "414px"};
|
|
44
|
+
}
|
|
45
|
+
:after {
|
|
46
|
+
display: block;
|
|
47
|
+
content: '';
|
|
48
|
+
position: absolute;
|
|
49
|
+
height: 100%;
|
|
50
|
+
width: 100%;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
border: solid ${(props) => props.theme.space.xxs} transparent;
|
|
54
|
+
border-radius: 2px;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
&:hover,
|
|
58
|
+
&:focus {
|
|
59
|
+
box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const StyledCardNavigationIcon = styled.div`
|
|
63
|
+
width: 64px;
|
|
64
|
+
height: 64px;
|
|
65
|
+
background-color: #32aad1;
|
|
66
|
+
border-top-left-radius: 2px;
|
|
67
|
+
border-bottom-left-radius: 2px;
|
|
68
|
+
padding: ${(props) => props.theme.space.xxs};
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
fill: #ffffff;
|
|
73
|
+
/* fill: color(neutral, 0); */
|
|
74
|
+
background-color: ${({ type }) => type === CardNavigationTypes.BORROWER && "#32aad1" || type === CardNavigationTypes.FINANCIAL && "#1ba88d" || type === CardNavigationTypes.LOAN && "#8e49b2" || type === CardNavigationTypes.REGULATORY && "#db5575"};
|
|
75
|
+
`;
|
|
76
|
+
const StyledCardNavigationActions = styled.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
align-items: center;
|
|
80
|
+
padding-right: ${(props) => props.theme.space.xxs};
|
|
81
|
+
`;
|
|
82
|
+
const StyledCardNavigationAction = styled.div`
|
|
83
|
+
margin-left: ${(props) => props.theme.space.xxs};
|
|
84
|
+
span {
|
|
85
|
+
height: ${(props) => props.theme.space.s};
|
|
86
|
+
width: ${(props) => props.theme.space.s};
|
|
87
|
+
svg {
|
|
88
|
+
fill: ${(props) => props.theme.colors.neutral[500]};
|
|
89
|
+
height: ${(props) => props.theme.space.s};
|
|
90
|
+
width: ${(props) => props.theme.space.s};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
export {
|
|
95
|
+
StyledCardNavigationAction,
|
|
96
|
+
StyledCardNavigationActions,
|
|
97
|
+
StyledCardNavigationBoxWrapper,
|
|
98
|
+
StyledCardNavigationCentralContent,
|
|
99
|
+
StyledCardNavigationContent,
|
|
100
|
+
StyledCardNavigationContentDescription,
|
|
101
|
+
StyledCardNavigationContentTitle,
|
|
102
|
+
StyledCardNavigationContentTitleWrapper,
|
|
103
|
+
StyledCardNavigationIcon
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/style.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-legacy-system';\nimport { CardNavigationTypes } from './components/types.js';\n\nexport const StyledCardNavigationContentTitle = styled.div`\n padding-top: ${(props) => props.theme.space.xxs};\n font-weight: ${(props) => props.theme.fontWeights.semibold};\n font-size: 18px;\n color: ${(props) => props.theme.colors.neutral['700']};\n`;\n\nexport const StyledCardNavigationContentDescription = styled.div`\n color: ${(props) => props.theme.colors.neutral['500']};\n font-size: 12px;\n`;\n\nexport const StyledCardNavigationContentTitleWrapper = styled.div`\n width: 100%;\n`;\n\nexport const StyledCardNavigationContent = styled.div`\n padding-right: ${(props) => props.theme.space.xs};\n padding-left: ${(props) => props.theme.space.xs};\n display: flex;\n align-items: center;\n flex: 1;\n overflow: hidden;\n`;\n\nexport const StyledCardNavigationCentralContent = styled.div`\n width: 273px;\n display: flex;\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n width: 336px;\n }\n`;\n\nexport const StyledCardNavigationBoxWrapper = styled.div`\n width: 337px;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);\n border-radius: 2px;\n position: relative;\n outline: none;\n ${(props) => (props.fluid ? 'width: 100%' : '')};\n @media (max-width: ${(props) => props.theme.breakpoints.small}) {\n width: ${(props) => (props.fluid ? 'width: 100%' : '414px')};\n }\n :after {\n display: block;\n content: '';\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n border: solid ${(props) => props.theme.space.xxs} transparent;\n border-radius: 2px;\n pointer-events: none;\n }\n &:hover,\n &:focus {\n box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);\n }\n`;\n\nexport const StyledCardNavigationIcon = styled.div`\n width: 64px;\n height: 64px;\n background-color: #32aad1;\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n padding: ${(props) => props.theme.space.xxs};\n display: flex;\n align-items: center;\n justify-content: center;\n fill: #ffffff;\n /* fill: color(neutral, 0); */\n background-color: ${({ type }) =>\n (type === CardNavigationTypes.BORROWER && '#32aad1') ||\n (type === CardNavigationTypes.FINANCIAL && '#1ba88d') ||\n (type === CardNavigationTypes.LOAN && '#8e49b2') ||\n (type === CardNavigationTypes.REGULATORY && '#db5575')};\n`;\n\nexport const StyledCardNavigationActions = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-right: ${(props) => props.theme.space.xxs};\n`;\n\nexport const StyledCardNavigationAction = styled.div`\n margin-left: ${(props) => props.theme.space.xxs};\n span {\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n svg {\n fill: ${(props) => props.theme.colors.neutral[500]};\n height: ${(props) => props.theme.space.s};\n width: ${(props) => props.theme.space.s};\n }\n }\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,2BAA2B;AAE7B,MAAM,mCAAmC,OAAO;AAAA,iBACtC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC7B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,WAEzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAG/C,MAAM,yCAAyC,OAAO;AAAA,WAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAAA;AAI/C,MAAM,0CAA0C,OAAO;AAAA;AAAA;AAIvD,MAAM,8BAA8B,OAAO;AAAA,mBAC/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,kBAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAOxC,MAAM,qCAAqC,OAAO;AAAA;AAAA;AAAA,uBAGlC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAKnD,MAAM,iCAAiC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASjD,CAAC,UAAW,MAAM,QAAQ,gBAAgB;AAAA,uBACvB,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,aAC7C,CAAC,UAAW,MAAM,QAAQ,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAUnC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU1C,MAAM,2BAA2B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMlC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMpB,CAAC,EAAE,KAAK,MACzB,SAAS,oBAAoB,YAAY,aACzC,SAAS,oBAAoB,aAAa,aAC1C,SAAS,oBAAoB,QAAQ,aACrC,SAAS,oBAAoB,cAAc;AAAA;AAGzC,MAAM,8BAA8B,OAAO;AAAA;AAAA;AAAA;AAAA,mBAI/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGzC,MAAM,6BAA6B,OAAO;AAAA,iBAChC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,cAEhC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,aAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,cAE5B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,gBACvC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,eAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';
|
|
2
|
+
declare const DSCardNavigation: {
|
|
3
|
+
({ containerProps, title, description, type, Icon, actions, ...rest }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
type: any;
|
|
9
|
+
Icon: any;
|
|
10
|
+
actions?: never[] | undefined;
|
|
11
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
type: string;
|
|
14
|
+
Icon: (rest: import("@elliemae/ds-legacy-icons").SvgIconT.Props) => import("react/jsx-runtime.js").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
propTypes: {
|
|
17
|
+
/** props to inject to card navigation wrapper */
|
|
18
|
+
containerProps: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
+
/** card navigation title */
|
|
20
|
+
title: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
21
|
+
/** card navigation main icon */
|
|
22
|
+
Icon: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
23
|
+
/** card navigation description */
|
|
24
|
+
description: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
25
|
+
/** card navigation type */
|
|
26
|
+
type: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
27
|
+
/** card navigation actions array */
|
|
28
|
+
actions: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
29
|
+
};
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
declare const DSCardNavigationWithSchema: import("@elliemae/ds-legacy-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
containerProps?: {} | undefined;
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
type: any;
|
|
38
|
+
Icon: any;
|
|
39
|
+
actions?: never[] | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema, DSCardNavigation };
|
|
42
|
+
export default DSCardNavigation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledCardNavigationContentTitle: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
2
|
+
export declare const StyledCardNavigationContentDescription: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
3
|
+
export declare const StyledCardNavigationContentTitleWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
4
|
+
export declare const StyledCardNavigationContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
5
|
+
export declare const StyledCardNavigationCentralContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
6
|
+
export declare const StyledCardNavigationBoxWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
7
|
+
export declare const StyledCardNavigationIcon: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
8
|
+
export declare const StyledCardNavigationActions: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
9
|
+
export declare const StyledCardNavigationAction: import("styled-components").StyledComponent<"div", import("@elliemae/ds-legacy-system").Theme, object & import("@elliemae/ds-legacy-system").OwnerInterface, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elliemae/ds-legacy-card-navigation",
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "ICE MT - Dimsum - Card Navigation",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./style": {
|
|
18
|
+
"import": "./dist/esm/style.js",
|
|
19
|
+
"require": "./dist/cjs/style.js"
|
|
20
|
+
},
|
|
21
|
+
"./DSCardNavigation": {
|
|
22
|
+
"import": "./dist/esm/DSCardNavigation.js",
|
|
23
|
+
"require": "./dist/cjs/DSCardNavigation.js"
|
|
24
|
+
},
|
|
25
|
+
"./components/types": {
|
|
26
|
+
"import": "./dist/esm/components/types.js",
|
|
27
|
+
"require": "./dist/cjs/components/types.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"*.css",
|
|
32
|
+
"*.scss"
|
|
33
|
+
],
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum-legacy.git"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"pnpm": ">=6",
|
|
40
|
+
"node": ">=16"
|
|
41
|
+
},
|
|
42
|
+
"author": "ICE MT",
|
|
43
|
+
"jestSonar": {
|
|
44
|
+
"sonar56x": true,
|
|
45
|
+
"reportPath": "reports",
|
|
46
|
+
"reportFile": "tests.xml",
|
|
47
|
+
"indent": 4
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@elliemae/ds-legacy-button-v2": "1.0.0-rc.1",
|
|
51
|
+
"@elliemae/ds-legacy-icons": "1.0.0-rc.1",
|
|
52
|
+
"@elliemae/ds-legacy-props-helpers": "1.0.0-rc.1",
|
|
53
|
+
"@elliemae/ds-legacy-system": "1.0.0-rc.1",
|
|
54
|
+
"@elliemae/ds-legacy-truncated-tooltip-text": "1.0.0-rc.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
58
|
+
"@elliemae/pui-theme": "~2.7.0",
|
|
59
|
+
"styled-components": "~5.3.9",
|
|
60
|
+
"@elliemae/ds-legacy-monorepo-devops": "1.0.0-rc.1"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@elliemae/pui-theme": "^2.6.0",
|
|
64
|
+
"lodash": "^4.17.21",
|
|
65
|
+
"react": "~17.0.2",
|
|
66
|
+
"react-dom": "^17.0.2",
|
|
67
|
+
"styled-components": "~5.3.9"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public",
|
|
71
|
+
"typeSafety": false
|
|
72
|
+
},
|
|
73
|
+
"scripts": {
|
|
74
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
75
|
+
"test": "pui-cli test --passWithNoTests",
|
|
76
|
+
"lint": "node ../../../scripts/lint.mjs",
|
|
77
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
78
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
79
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
80
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
81
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
82
|
+
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
83
|
+
}
|
|
84
|
+
}
|