@elliemae/ds-card-navigation 2.2.0 → 2.3.0-alpha.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.
@@ -1,114 +1,87 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- var _jsx = require('@babel/runtime/helpers/jsx');
7
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
8
- require('core-js/modules/esnext.async-iterator.map.js');
9
- require('core-js/modules/esnext.iterator.map.js');
10
- require('core-js/modules/esnext.async-iterator.filter.js');
11
- require('core-js/modules/esnext.iterator.constructor.js');
12
- require('core-js/modules/esnext.iterator.filter.js');
13
- require('core-js/modules/esnext.async-iterator.for-each.js');
14
- require('core-js/modules/esnext.iterator.for-each.js');
15
- require('react');
16
- var reactDesc = require('react-desc');
17
- var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
18
- var dsIcons = require('@elliemae/ds-icons');
19
- var DSButton = require('@elliemae/ds-button');
20
- var style = require('./style.js');
21
- var types = require('./components/types.js');
22
- var jsxRuntime = require('react/jsx-runtime');
23
-
24
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
-
26
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
27
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
28
- var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
29
- var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
30
-
31
- var _MoreOptionsVert;
32
-
33
- const _excluded = ["containerProps", "title", "description", "type", "Icon", "actions"],
34
- _excluded2 = ["icon"];
35
-
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
-
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
-
40
- const DSCardNavigation = _ref => {
41
- let {
42
- containerProps = {},
43
- title = '',
44
- description = '',
45
- type,
46
- Icon,
47
- actions = []
48
- } = _ref,
49
- rest = _objectWithoutProperties__default["default"](_ref, _excluded);
50
-
51
- return /*#__PURE__*/_jsx__default["default"](dsTruncatedTooltipText.TooltipTextProvider, {}, void 0, /*#__PURE__*/jsxRuntime.jsxs(style.StyledCardNavigationBoxWrapper, _objectSpread(_objectSpread(_objectSpread({
52
- role: "button",
53
- tabIndex: 0
54
- }, rest), containerProps), {}, {
55
- children: [/*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationIcon, {
56
- type: type
57
- }, void 0, /*#__PURE__*/_jsx__default["default"](Icon, {
58
- size: "l"
59
- })), /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationCentralContent, {}, void 0, /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationContent, {}, void 0, /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationContentTitleWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationContentTitle, {}, void 0, /*#__PURE__*/_jsx__default["default"](dsTruncatedTooltipText.DSTruncatedTooltipText, {
60
- value: title
61
- })), /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationContentDescription, {}, void 0, /*#__PURE__*/_jsx__default["default"](dsTruncatedTooltipText.DSTruncatedTooltipText, {
62
- value: description,
63
- "data-testid": "ds-card-navigation--description"
64
- })))), actions.length > 0 && /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationActions, {}, void 0, actions.map((_ref2, key) => {
65
- let {
66
- icon = _MoreOptionsVert || (_MoreOptionsVert = /*#__PURE__*/_jsx__default["default"](dsIcons.MoreOptionsVert, {
67
- "aria-label": "More options"
68
- }))
69
- } = _ref2,
70
- otherProps = _objectWithoutProperties__default["default"](_ref2, _excluded2);
71
-
72
- return /*#__PURE__*/_jsx__default["default"](style.StyledCardNavigationAction, {}, key, /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread(_objectSpread({
73
- icon: icon
74
- }, otherProps), {}, {
75
- buttonType: DSButton.BUTTON_TYPE.TEXT,
76
- size: DSButton.BUTTON_SIZE.L
77
- })));
78
- })))]
79
- })));
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 });
80
11
  };
81
-
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 DSCardNavigation_exports = {};
29
+ __export(DSCardNavigation_exports, {
30
+ CardNavigationTypes: () => import_types.CardNavigationTypes,
31
+ CardNavigationTypesValues: () => import_types.CardNavigationTypesValues,
32
+ DSCardNavigationWithSchema: () => DSCardNavigationWithSchema,
33
+ default: () => DSCardNavigation_default
34
+ });
35
+ var React = __toESM(require("react"));
36
+ var import_react = __toESM(require("react"));
37
+ var import_react_desc = require("react-desc");
38
+ var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
39
+ var import_ds_icons = require("@elliemae/ds-icons");
40
+ var import_ds_button = __toESM(require("@elliemae/ds-button"));
41
+ var import_style = require("./style");
42
+ var import_types = require("./components/types");
43
+ const DSCardNavigation = ({ containerProps = {}, title = "", description = "", type, Icon, actions = [], ...rest }) => /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.TooltipTextProvider, null, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationBoxWrapper, {
44
+ role: "button",
45
+ tabIndex: 0,
46
+ ...rest,
47
+ ...containerProps
48
+ }, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationIcon, {
49
+ type
50
+ }, /* @__PURE__ */ import_react.default.createElement(Icon, {
51
+ size: "l"
52
+ })), /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationCentralContent, null, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContent, null, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContentTitleWrapper, null, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContentTitle, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
53
+ value: title
54
+ })), /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContentDescription, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
55
+ value: description,
56
+ "data-testid": "ds-card-navigation--description"
57
+ })))), actions.length > 0 && /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationActions, null, actions.map(({ icon = /* @__PURE__ */ import_react.default.createElement(import_ds_icons.MoreOptionsVert, {
58
+ "aria-label": "More options"
59
+ }), ...otherProps }, key) => /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationAction, {
60
+ key
61
+ }, /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, {
62
+ icon,
63
+ ...otherProps,
64
+ buttonType: import_ds_button.BUTTON_TYPE.TEXT,
65
+ size: import_ds_button.BUTTON_SIZE.L
66
+ })))))));
82
67
  DSCardNavigation.defaultProps = {
83
- type: types.CardNavigationTypes.BORROWER,
84
- Icon: dsIcons.LoanProducts
68
+ type: import_types.CardNavigationTypes.BORROWER,
69
+ Icon: import_ds_icons.LoanProducts
85
70
  };
86
71
  const props = {
87
- /** props to inject to card navigation wrapper */
88
- containerProps: reactDesc.PropTypes.object.description('props to inject to card navigation wrapper'),
89
-
90
- /** card navigation title */
91
- title: reactDesc.PropTypes.string.description('card navigation title'),
92
-
93
- /** card navigation main icon */
94
- Icon: reactDesc.PropTypes.node.description('card navigation main icon'),
95
-
96
- /** card navigation description */
97
- description: reactDesc.PropTypes.string.description('card navigation description'),
98
-
99
- /** card navigation type */
100
- type: reactDesc.PropTypes.oneOf(types.CardNavigationTypesValues).description('card navigation type'),
101
-
102
- /** card navigation actions array */
103
- actions: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.shape({
104
- icon: reactDesc.PropTypes.element,
105
- onClick: reactDesc.PropTypes.func
106
- })).description('card navigation actions array')
72
+ containerProps: import_react_desc.PropTypes.object.description("props to inject to card navigation wrapper"),
73
+ title: import_react_desc.PropTypes.string.description("card navigation title"),
74
+ Icon: import_react_desc.PropTypes.node.description("card navigation main icon"),
75
+ description: import_react_desc.PropTypes.string.description("card navigation description"),
76
+ type: import_react_desc.PropTypes.oneOf(import_types.CardNavigationTypesValues).description("card navigation type"),
77
+ actions: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.shape({
78
+ icon: import_react_desc.PropTypes.element,
79
+ onClick: import_react_desc.PropTypes.func
80
+ })).description("card navigation actions array")
107
81
  };
108
- const DSCardNavigationWithSchema = reactDesc.describe(DSCardNavigation);
82
+ DSCardNavigation.propTypes = props;
83
+ const DSCardNavigationWithSchema = (0, import_react_desc.describe)(DSCardNavigation);
109
84
  DSCardNavigationWithSchema.propTypes = props;
110
-
111
- exports.CardNavigationTypes = types.CardNavigationTypes;
112
- exports.CardNavigationTypesValues = types.CardNavigationTypesValues;
113
- exports.DSCardNavigationWithSchema = DSCardNavigationWithSchema;
114
- exports["default"] = DSCardNavigation;
85
+ var DSCardNavigation_default = DSCardNavigation;
86
+ module.exports = __toCommonJS(DSCardNavigation_exports);
87
+ //# 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 'react-desc';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { MoreOptionsVert, LoanProducts } from '@elliemae/ds-icons';\nimport DSButton, { BUTTON_SIZE, BUTTON_TYPE } from '@elliemae/ds-button';\nimport {\n StyledCardNavigationContentTitle,\n StyledCardNavigationContentDescription,\n StyledCardNavigationContentTitleWrapper,\n StyledCardNavigationContent,\n StyledCardNavigationCentralContent,\n StyledCardNavigationBoxWrapper,\n StyledCardNavigationIcon,\n StyledCardNavigationAction,\n StyledCardNavigationActions,\n} from './style';\nimport { CardNavigationTypes, CardNavigationTypesValues } from './components/types';\n\nconst DSCardNavigation = ({ containerProps = {}, title = '', description = '', type, Icon, actions = [], ...rest }) => (\n <TooltipTextProvider>\n <StyledCardNavigationBoxWrapper role=\"button\" tabIndex={0} {...rest} {...containerProps}>\n <StyledCardNavigationIcon type={type}>\n <Icon size=\"l\" />\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 <DSButton icon={icon} {...otherProps} buttonType={BUTTON_TYPE.TEXT} size={BUTTON_SIZE.L} />\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.node.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;\n\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = props;\n\nexport { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema };\n\nexport default DSCardNavigation;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,uCAA4D;AAC5D,sBAA8C;AAC9C,uBAAmD;AACnD,mBAUO;AACP,mBAA+D;AAE/D,MAAM,mBAAmB,CAAC,EAAE,iBAAiB,IAAI,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,OAAO,WAC1G,mDAAC,sDAAD,MACE,mDAAC,6CAAD;AAAA,EAAgC,MAAK;AAAA,EAAS,UAAU;AAAA,KAAO;AAAA,KAAU;AAAA,GACvE,mDAAC,uCAAD;AAAA,EAA0B;AAAA,GACxB,mDAAC,MAAD;AAAA,EAAM,MAAK;AAAA,KAEb,mDAAC,iDAAD,MACE,mDAAC,0CAAD,MACE,mDAAC,sDAAD,MACE,mDAAC,+CAAD,MACE,mDAAC,yDAAD;AAAA,EAAwB,OAAO;AAAA,KAEjC,mDAAC,qDAAD,MACE,mDAAC,yDAAD;AAAA,EAAwB,OAAO;AAAA,EAAa,eAAY;AAAA,OAI7D,QAAQ,SAAS,KAChB,mDAAC,0CAAD,MACG,QAAQ,IAAI,CAAC,EAAE,OAAO,mDAAC,iCAAD;AAAA,EAAiB,cAAW;AAAA,OAAsB,cAAc,QACrF,mDAAC,yCAAD;AAAA,EAA4B;AAAA,GAC1B,mDAAC,0BAAD;AAAA,EAAU;AAAA,KAAgB;AAAA,EAAY,YAAY,6BAAY;AAAA,EAAM,MAAM,6BAAY;AAAA;AAUtG,iBAAiB,eAAe;AAAA,EAC9B,MAAM,iCAAoB;AAAA,EAC1B,MAAM;AAAA;AAGR,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,4BAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,4BAAU,OAAO,YAAY;AAAA,EAEpC,MAAM,4BAAU,KAAK,YAAY;AAAA,EAEjC,aAAa,4BAAU,OAAO,YAAY;AAAA,EAE1C,MAAM,4BAAU,MAAM,wCAA2B,YAAY;AAAA,EAE7D,SAAS,4BAAU,QACjB,4BAAU,MAAM;AAAA,IACd,MAAM,4BAAU;AAAA,IAChB,SAAS,4BAAU;AAAA,MAErB,YAAY;AAAA;AAGhB,iBAAiB,YAAY;AAE7B,MAAM,6BAA6B,gCAAS;AAC5C,2BAA2B,YAAY;AAIvC,IAAO,2BAAQ;",
6
+ "names": []
7
+ }
@@ -1,14 +1,42 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
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 types_exports = {};
29
+ __export(types_exports, {
30
+ CardNavigationTypes: () => CardNavigationTypes,
31
+ CardNavigationTypesValues: () => CardNavigationTypesValues
32
+ });
33
+ var React = __toESM(require("react"));
5
34
  const CardNavigationTypes = {
6
- BORROWER: 'borrower',
7
- FINANCIAL: 'financial',
8
- LOAN: 'loan',
9
- REGULATORY: 'regulatory'
35
+ BORROWER: "borrower",
36
+ FINANCIAL: "financial",
37
+ LOAN: "loan",
38
+ REGULATORY: "regulatory"
10
39
  };
11
40
  const CardNavigationTypesValues = Object.values(CardNavigationTypes);
12
-
13
- exports.CardNavigationTypes = CardNavigationTypes;
14
- exports.CardNavigationTypesValues = CardNavigationTypesValues;
41
+ module.exports = __toCommonJS(types_exports);
42
+ //# 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;ACAA,YAAuB;ADAhB,MAAM,sBAAsB;AAAA,EACjC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA;AAGP,MAAM,4BAA4B,OAAO,OAAO;",
6
+ "names": []
7
+ }
package/cjs/index.js CHANGED
@@ -1,13 +1,36 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var DSCardNavigation = require('./DSCardNavigation.js');
6
- var types = require('./components/types.js');
7
-
8
-
9
-
10
- exports.DSCardNavigationWithSchema = DSCardNavigation.DSCardNavigationWithSchema;
11
- exports["default"] = DSCardNavigation["default"];
12
- exports.CardNavigationTypes = types.CardNavigationTypes;
13
- exports.CardNavigationTypesValues = types.CardNavigationTypesValues;
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
+ default: () => import_DSCardNavigation.default
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_DSCardNavigation = __toESM(require("./DSCardNavigation"));
34
+ __reExport(src_exports, require("./DSCardNavigation"));
35
+ module.exports = __toCommonJS(src_exports);
36
+ //# 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';\nexport * from './DSCardNavigation';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAwB;AACxB,wBAAc;",
6
+ "names": []
7
+ }
package/cjs/style.js CHANGED
@@ -1,53 +1,134 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var styled = require('styled-components');
6
- var types = require('./components/types.js');
7
-
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
-
12
- const StyledCardNavigationContentTitle = /*#__PURE__*/styled__default["default"].div.withConfig({
13
- componentId: "sc-jb13pp-0"
14
- })(["padding-top:", ";font-weight:", ";font-size:18px;color:", ";"], props => props.theme.space.xxs, props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['700']);
15
- const StyledCardNavigationContentDescription = /*#__PURE__*/styled__default["default"].div.withConfig({
16
- componentId: "sc-jb13pp-1"
17
- })(["color:", ";font-size:12px;"], props => props.theme.colors.neutral['500']);
18
- const StyledCardNavigationContentTitleWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
19
- componentId: "sc-jb13pp-2"
20
- })(["width:100%;"]);
21
- const StyledCardNavigationContent = /*#__PURE__*/styled__default["default"].div.withConfig({
22
- componentId: "sc-jb13pp-3"
23
- })(["padding-right:", ";padding-left:", ";display:flex;align-items:center;flex:1;overflow:hidden;"], props => props.theme.space.xs, props => props.theme.space.xs);
24
- const StyledCardNavigationCentralContent = /*#__PURE__*/styled__default["default"].div.withConfig({
25
- componentId: "sc-jb13pp-4"
26
- })(["width:273px;display:flex;@media (max-width:", "){width:336px;}"], props => props.theme.breakpoints.small);
27
- const StyledCardNavigationBoxWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
28
- componentId: "sc-jb13pp-5"
29
- })(["width:337px;display:flex;flex-direction:row;flex-wrap:nowrap;box-shadow:0 1px 4px 0px rgba(37,41,47,0.5);border-radius:2px;position:relative;outline:none;", ";@media (max-width:", "){width:", ";}:after{display:block;content:'';position:absolute;height:100%;width:100%;top:0;left:0;border:solid ", " transparent;border-radius:2px;pointer-events:none;}&:hover,&:focus{box-shadow:0 3px 8px 0px rgba(37,41,47,0.4);}"], props => props.fluid ? 'width: 100%' : '', props => props.theme.breakpoints.small, props => props.fluid ? 'width: 100%' : '414px', props => props.theme.space.xxs);
30
- const StyledCardNavigationIcon = /*#__PURE__*/styled__default["default"].div.withConfig({
31
- componentId: "sc-jb13pp-6"
32
- })(["width:64px;height:64px;background-color:#32aad1;border-top-left-radius:2px;border-bottom-left-radius:2px;padding:", ";display:flex;align-items:center;justify-content:center;fill:#ffffff;background-color:", ";"], props => props.theme.space.xxs, _ref => {
33
- let {
34
- type
35
- } = _ref;
36
- return type === types.CardNavigationTypes.BORROWER && '#32aad1' || type === types.CardNavigationTypes.FINANCIAL && '#1ba88d' || type === types.CardNavigationTypes.LOAN && '#8e49b2' || type === types.CardNavigationTypes.REGULATORY && '#db5575';
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 style_exports = {};
29
+ __export(style_exports, {
30
+ StyledCardNavigationAction: () => StyledCardNavigationAction,
31
+ StyledCardNavigationActions: () => StyledCardNavigationActions,
32
+ StyledCardNavigationBoxWrapper: () => StyledCardNavigationBoxWrapper,
33
+ StyledCardNavigationCentralContent: () => StyledCardNavigationCentralContent,
34
+ StyledCardNavigationContent: () => StyledCardNavigationContent,
35
+ StyledCardNavigationContentDescription: () => StyledCardNavigationContentDescription,
36
+ StyledCardNavigationContentTitle: () => StyledCardNavigationContentTitle,
37
+ StyledCardNavigationContentTitleWrapper: () => StyledCardNavigationContentTitleWrapper,
38
+ StyledCardNavigationIcon: () => StyledCardNavigationIcon
37
39
  });
38
- const StyledCardNavigationActions = /*#__PURE__*/styled__default["default"].div.withConfig({
39
- componentId: "sc-jb13pp-7"
40
- })(["display:flex;flex-direction:row;align-items:center;padding-right:", ";"], props => props.theme.space.xxs);
41
- const StyledCardNavigationAction = /*#__PURE__*/styled__default["default"].div.withConfig({
42
- componentId: "sc-jb13pp-8"
43
- })(["margin-left:", ";span{height:", ";width:", ";svg{fill:", ";height:", ";width:", ";}}"], props => props.theme.space.xxs, props => props.theme.space.s, props => props.theme.space.s, props => props.theme.colors.neutral[500], props => props.theme.space.s, props => props.theme.space.s);
44
-
45
- exports.StyledCardNavigationAction = StyledCardNavigationAction;
46
- exports.StyledCardNavigationActions = StyledCardNavigationActions;
47
- exports.StyledCardNavigationBoxWrapper = StyledCardNavigationBoxWrapper;
48
- exports.StyledCardNavigationCentralContent = StyledCardNavigationCentralContent;
49
- exports.StyledCardNavigationContent = StyledCardNavigationContent;
50
- exports.StyledCardNavigationContentDescription = StyledCardNavigationContentDescription;
51
- exports.StyledCardNavigationContentTitle = StyledCardNavigationContentTitle;
52
- exports.StyledCardNavigationContentTitleWrapper = StyledCardNavigationContentTitleWrapper;
53
- exports.StyledCardNavigationIcon = StyledCardNavigationIcon;
40
+ var React = __toESM(require("react"));
41
+ var import_styled_components = __toESM(require("styled-components"));
42
+ var import_types = require("./components/types");
43
+ const StyledCardNavigationContentTitle = import_styled_components.default.div`
44
+ padding-top: ${(props) => props.theme.space.xxs};
45
+ font-weight: ${(props) => props.theme.fontWeights.semibold};
46
+ font-size: 18px;
47
+ color: ${(props) => props.theme.colors.neutral["700"]};
48
+ `;
49
+ const StyledCardNavigationContentDescription = import_styled_components.default.div`
50
+ color: ${(props) => props.theme.colors.neutral["500"]};
51
+ font-size: 12px;
52
+ `;
53
+ const StyledCardNavigationContentTitleWrapper = import_styled_components.default.div`
54
+ width: 100%;
55
+ `;
56
+ const StyledCardNavigationContent = import_styled_components.default.div`
57
+ padding-right: ${(props) => props.theme.space.xs};
58
+ padding-left: ${(props) => props.theme.space.xs};
59
+ display: flex;
60
+ align-items: center;
61
+ flex: 1;
62
+ overflow: hidden;
63
+ `;
64
+ const StyledCardNavigationCentralContent = import_styled_components.default.div`
65
+ width: 273px;
66
+ display: flex;
67
+ @media (max-width: ${(props) => props.theme.breakpoints.small}) {
68
+ width: 336px;
69
+ }
70
+ `;
71
+ const StyledCardNavigationBoxWrapper = import_styled_components.default.div`
72
+ width: 337px;
73
+ display: flex;
74
+ flex-direction: row;
75
+ flex-wrap: nowrap;
76
+ box-shadow: 0 1px 4px 0px rgba(37, 41, 47, 0.5);
77
+ border-radius: 2px;
78
+ position: relative;
79
+ outline: none;
80
+ ${(props) => props.fluid ? "width: 100%" : ""};
81
+ @media (max-width: ${(props) => props.theme.breakpoints.small}) {
82
+ width: ${(props) => props.fluid ? "width: 100%" : "414px"};
83
+ }
84
+ :after {
85
+ display: block;
86
+ content: '';
87
+ position: absolute;
88
+ height: 100%;
89
+ width: 100%;
90
+ top: 0;
91
+ left: 0;
92
+ border: solid ${(props) => props.theme.space.xxs} transparent;
93
+ border-radius: 2px;
94
+ pointer-events: none;
95
+ }
96
+ &:hover,
97
+ &:focus {
98
+ box-shadow: 0 3px 8px 0px rgba(37, 41, 47, 0.4);
99
+ }
100
+ `;
101
+ const StyledCardNavigationIcon = import_styled_components.default.div`
102
+ width: 64px;
103
+ height: 64px;
104
+ background-color: #32aad1;
105
+ border-top-left-radius: 2px;
106
+ border-bottom-left-radius: 2px;
107
+ padding: ${(props) => props.theme.space.xxs};
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ fill: #ffffff;
112
+ /* fill: color(neutral, 0); */
113
+ 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"};
114
+ `;
115
+ const StyledCardNavigationActions = import_styled_components.default.div`
116
+ display: flex;
117
+ flex-direction: row;
118
+ align-items: center;
119
+ padding-right: ${(props) => props.theme.space.xxs};
120
+ `;
121
+ const StyledCardNavigationAction = import_styled_components.default.div`
122
+ margin-left: ${(props) => props.theme.space.xxs};
123
+ span {
124
+ height: ${(props) => props.theme.space.s};
125
+ width: ${(props) => props.theme.space.s};
126
+ svg {
127
+ fill: ${(props) => props.theme.colors.neutral[500]};
128
+ height: ${(props) => props.theme.space.s};
129
+ width: ${(props) => props.theme.space.s};
130
+ }
131
+ }
132
+ `;
133
+ module.exports = __toCommonJS(style_exports);
134
+ //# 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 'styled-components';\nimport { CardNavigationTypes } from './components/types';\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;ACAA,YAAuB;ADAvB,+BAAmB;AACnB,mBAAoC;AAE7B,MAAM,mCAAmC,iCAAO;AAAA,iBACtC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC7B,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA,WAEzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAG1C,MAAM,yCAAyC,iCAAO;AAAA,WAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAI1C,MAAM,0CAA0C,iCAAO;AAAA;AAAA;AAIvD,MAAM,8BAA8B,iCAAO;AAAA,mBAC/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,kBAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAOxC,MAAM,qCAAqC,iCAAO;AAAA;AAAA;AAAA,uBAGlC,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA;AAAA;AAAA;AAKnD,MAAM,iCAAiC,iCAAO;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,iCAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMlC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMpB,CAAC,EAAE,WACpB,SAAS,iCAAoB,YAAY,aACzC,SAAS,iCAAoB,aAAa,aAC1C,SAAS,iCAAoB,QAAQ,aACrC,SAAS,iCAAoB,cAAc;AAAA;AAGzC,MAAM,8BAA8B,iCAAO;AAAA;AAAA;AAAA;AAAA,mBAI/B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGzC,MAAM,6BAA6B,iCAAO;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;AAAA,gBACpC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,eAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,101 +1,68 @@
1
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
- import _jsx from '@babel/runtime/helpers/esm/jsx';
3
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
- import 'core-js/modules/esnext.async-iterator.map.js';
5
- import 'core-js/modules/esnext.iterator.map.js';
6
- import 'core-js/modules/esnext.async-iterator.filter.js';
7
- import 'core-js/modules/esnext.iterator.constructor.js';
8
- import 'core-js/modules/esnext.iterator.filter.js';
9
- import 'core-js/modules/esnext.async-iterator.for-each.js';
10
- import 'core-js/modules/esnext.iterator.for-each.js';
11
- import 'react';
12
- import { PropTypes, describe } from 'react-desc';
13
- import { TooltipTextProvider, DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
14
- import { LoanProducts, MoreOptionsVert } from '@elliemae/ds-icons';
15
- import DSButton, { BUTTON_TYPE, BUTTON_SIZE } from '@elliemae/ds-button';
16
- import { StyledCardNavigationBoxWrapper, StyledCardNavigationIcon, StyledCardNavigationCentralContent, StyledCardNavigationContent, StyledCardNavigationContentTitleWrapper, StyledCardNavigationContentTitle, StyledCardNavigationContentDescription, StyledCardNavigationActions, StyledCardNavigationAction } from './style.js';
17
- import { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';
18
- export { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';
19
- import { jsxs, jsx } from 'react/jsx-runtime';
20
-
21
- var _MoreOptionsVert;
22
-
23
- const _excluded = ["containerProps", "title", "description", "type", "Icon", "actions"],
24
- _excluded2 = ["icon"];
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- const DSCardNavigation = _ref => {
31
- let {
32
- containerProps = {},
33
- title = '',
34
- description = '',
35
- type,
36
- Icon,
37
- actions = []
38
- } = _ref,
39
- rest = _objectWithoutProperties(_ref, _excluded);
40
-
41
- return /*#__PURE__*/_jsx(TooltipTextProvider, {}, void 0, /*#__PURE__*/jsxs(StyledCardNavigationBoxWrapper, _objectSpread(_objectSpread(_objectSpread({
42
- role: "button",
43
- tabIndex: 0
44
- }, rest), containerProps), {}, {
45
- children: [/*#__PURE__*/_jsx(StyledCardNavigationIcon, {
46
- type: type
47
- }, void 0, /*#__PURE__*/_jsx(Icon, {
48
- size: "l"
49
- })), /*#__PURE__*/_jsx(StyledCardNavigationCentralContent, {}, void 0, /*#__PURE__*/_jsx(StyledCardNavigationContent, {}, void 0, /*#__PURE__*/_jsx(StyledCardNavigationContentTitleWrapper, {}, void 0, /*#__PURE__*/_jsx(StyledCardNavigationContentTitle, {}, void 0, /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
50
- value: title
51
- })), /*#__PURE__*/_jsx(StyledCardNavigationContentDescription, {}, void 0, /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
52
- value: description,
53
- "data-testid": "ds-card-navigation--description"
54
- })))), actions.length > 0 && /*#__PURE__*/_jsx(StyledCardNavigationActions, {}, void 0, actions.map((_ref2, key) => {
55
- let {
56
- icon = _MoreOptionsVert || (_MoreOptionsVert = /*#__PURE__*/_jsx(MoreOptionsVert, {
57
- "aria-label": "More options"
58
- }))
59
- } = _ref2,
60
- otherProps = _objectWithoutProperties(_ref2, _excluded2);
61
-
62
- return /*#__PURE__*/_jsx(StyledCardNavigationAction, {}, key, /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({
63
- icon: icon
64
- }, otherProps), {}, {
65
- buttonType: BUTTON_TYPE.TEXT,
66
- size: BUTTON_SIZE.L
67
- })));
68
- })))]
69
- })));
70
- };
71
-
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { PropTypes, describe } from "react-desc";
4
+ import { DSTruncatedTooltipText, TooltipTextProvider } from "@elliemae/ds-truncated-tooltip-text";
5
+ import { MoreOptionsVert, LoanProducts } from "@elliemae/ds-icons";
6
+ import DSButton, { BUTTON_SIZE, BUTTON_TYPE } from "@elliemae/ds-button";
7
+ import {
8
+ StyledCardNavigationContentTitle,
9
+ StyledCardNavigationContentDescription,
10
+ StyledCardNavigationContentTitleWrapper,
11
+ StyledCardNavigationContent,
12
+ StyledCardNavigationCentralContent,
13
+ StyledCardNavigationBoxWrapper,
14
+ StyledCardNavigationIcon,
15
+ StyledCardNavigationAction,
16
+ StyledCardNavigationActions
17
+ } from "./style";
18
+ import { CardNavigationTypes, CardNavigationTypesValues } from "./components/types";
19
+ const DSCardNavigation = ({ containerProps = {}, title = "", description = "", type, Icon, actions = [], ...rest }) => /* @__PURE__ */ React2.createElement(TooltipTextProvider, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationBoxWrapper, {
20
+ role: "button",
21
+ tabIndex: 0,
22
+ ...rest,
23
+ ...containerProps
24
+ }, /* @__PURE__ */ React2.createElement(StyledCardNavigationIcon, {
25
+ type
26
+ }, /* @__PURE__ */ React2.createElement(Icon, {
27
+ size: "l"
28
+ })), /* @__PURE__ */ React2.createElement(StyledCardNavigationCentralContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitleWrapper, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitle, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
29
+ value: title
30
+ })), /* @__PURE__ */ React2.createElement(StyledCardNavigationContentDescription, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
31
+ value: description,
32
+ "data-testid": "ds-card-navigation--description"
33
+ })))), actions.length > 0 && /* @__PURE__ */ React2.createElement(StyledCardNavigationActions, null, actions.map(({ icon = /* @__PURE__ */ React2.createElement(MoreOptionsVert, {
34
+ "aria-label": "More options"
35
+ }), ...otherProps }, key) => /* @__PURE__ */ React2.createElement(StyledCardNavigationAction, {
36
+ key
37
+ }, /* @__PURE__ */ React2.createElement(DSButton, {
38
+ icon,
39
+ ...otherProps,
40
+ buttonType: BUTTON_TYPE.TEXT,
41
+ size: BUTTON_SIZE.L
42
+ })))))));
72
43
  DSCardNavigation.defaultProps = {
73
44
  type: CardNavigationTypes.BORROWER,
74
45
  Icon: LoanProducts
75
46
  };
76
47
  const props = {
77
- /** props to inject to card navigation wrapper */
78
- containerProps: PropTypes.object.description('props to inject to card navigation wrapper'),
79
-
80
- /** card navigation title */
81
- title: PropTypes.string.description('card navigation title'),
82
-
83
- /** card navigation main icon */
84
- Icon: PropTypes.node.description('card navigation main icon'),
85
-
86
- /** card navigation description */
87
- description: PropTypes.string.description('card navigation description'),
88
-
89
- /** card navigation type */
90
- type: PropTypes.oneOf(CardNavigationTypesValues).description('card navigation type'),
91
-
92
- /** card navigation actions array */
48
+ containerProps: PropTypes.object.description("props to inject to card navigation wrapper"),
49
+ title: PropTypes.string.description("card navigation title"),
50
+ Icon: PropTypes.node.description("card navigation main icon"),
51
+ description: PropTypes.string.description("card navigation description"),
52
+ type: PropTypes.oneOf(CardNavigationTypesValues).description("card navigation type"),
93
53
  actions: PropTypes.arrayOf(PropTypes.shape({
94
54
  icon: PropTypes.element,
95
55
  onClick: PropTypes.func
96
- })).description('card navigation actions array')
56
+ })).description("card navigation actions array")
97
57
  };
58
+ DSCardNavigation.propTypes = props;
98
59
  const DSCardNavigationWithSchema = describe(DSCardNavigation);
99
60
  DSCardNavigationWithSchema.propTypes = props;
100
-
101
- export { DSCardNavigationWithSchema, DSCardNavigation as default };
61
+ var DSCardNavigation_default = DSCardNavigation;
62
+ export {
63
+ CardNavigationTypes,
64
+ CardNavigationTypesValues,
65
+ DSCardNavigationWithSchema,
66
+ DSCardNavigation_default as default
67
+ };
68
+ //# 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 'react-desc';\nimport { DSTruncatedTooltipText, TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { MoreOptionsVert, LoanProducts } from '@elliemae/ds-icons';\nimport DSButton, { BUTTON_SIZE, BUTTON_TYPE } from '@elliemae/ds-button';\nimport {\n StyledCardNavigationContentTitle,\n StyledCardNavigationContentDescription,\n StyledCardNavigationContentTitleWrapper,\n StyledCardNavigationContent,\n StyledCardNavigationCentralContent,\n StyledCardNavigationBoxWrapper,\n StyledCardNavigationIcon,\n StyledCardNavigationAction,\n StyledCardNavigationActions,\n} from './style';\nimport { CardNavigationTypes, CardNavigationTypesValues } from './components/types';\n\nconst DSCardNavigation = ({ containerProps = {}, title = '', description = '', type, Icon, actions = [], ...rest }) => (\n <TooltipTextProvider>\n <StyledCardNavigationBoxWrapper role=\"button\" tabIndex={0} {...rest} {...containerProps}>\n <StyledCardNavigationIcon type={type}>\n <Icon size=\"l\" />\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 <DSButton icon={icon} {...otherProps} buttonType={BUTTON_TYPE.TEXT} size={BUTTON_SIZE.L} />\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.node.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;\n\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = props;\n\nexport { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema };\n\nexport default DSCardNavigation;\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA;AAEA,MAAM,mBAAmB,CAAC,EAAE,iBAAiB,IAAI,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,OAAO,WAC1G,qCAAC,qBAAD,MACE,qCAAC,gCAAD;AAAA,EAAgC,MAAK;AAAA,EAAS,UAAU;AAAA,KAAO;AAAA,KAAU;AAAA,GACvE,qCAAC,0BAAD;AAAA,EAA0B;AAAA,GACxB,qCAAC,MAAD;AAAA,EAAM,MAAK;AAAA,KAEb,qCAAC,oCAAD,MACE,qCAAC,6BAAD,MACE,qCAAC,yCAAD,MACE,qCAAC,kCAAD,MACE,qCAAC,wBAAD;AAAA,EAAwB,OAAO;AAAA,KAEjC,qCAAC,wCAAD,MACE,qCAAC,wBAAD;AAAA,EAAwB,OAAO;AAAA,EAAa,eAAY;AAAA,OAI7D,QAAQ,SAAS,KAChB,qCAAC,6BAAD,MACG,QAAQ,IAAI,CAAC,EAAE,OAAO,qCAAC,iBAAD;AAAA,EAAiB,cAAW;AAAA,OAAsB,cAAc,QACrF,qCAAC,4BAAD;AAAA,EAA4B;AAAA,GAC1B,qCAAC,UAAD;AAAA,EAAU;AAAA,KAAgB;AAAA,EAAY,YAAY,YAAY;AAAA,EAAM,MAAM,YAAY;AAAA;AAUtG,iBAAiB,eAAe;AAAA,EAC9B,MAAM,oBAAoB;AAAA,EAC1B,MAAM;AAAA;AAGR,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY;AAAA,EAE7C,OAAO,UAAU,OAAO,YAAY;AAAA,EAEpC,MAAM,UAAU,KAAK,YAAY;AAAA,EAEjC,aAAa,UAAU,OAAO,YAAY;AAAA,EAE1C,MAAM,UAAU,MAAM,2BAA2B,YAAY;AAAA,EAE7D,SAAS,UAAU,QACjB,UAAU,MAAM;AAAA,IACd,MAAM,UAAU;AAAA,IAChB,SAAS,UAAU;AAAA,MAErB,YAAY;AAAA;AAGhB,iBAAiB,YAAY;AAE7B,MAAM,6BAA6B,SAAS;AAC5C,2BAA2B,YAAY;AAIvC,IAAO,2BAAQ;",
6
+ "names": []
7
+ }
@@ -1,9 +1,13 @@
1
+ import * as React from "react";
1
2
  const CardNavigationTypes = {
2
- BORROWER: 'borrower',
3
- FINANCIAL: 'financial',
4
- LOAN: 'loan',
5
- REGULATORY: 'regulatory'
3
+ BORROWER: "borrower",
4
+ FINANCIAL: "financial",
5
+ LOAN: "loan",
6
+ REGULATORY: "regulatory"
6
7
  };
7
8
  const CardNavigationTypesValues = Object.values(CardNavigationTypes);
8
-
9
- export { CardNavigationTypes, CardNavigationTypesValues };
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;ACAO,MAAM,sBAAsB;AAAA,EACjC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,MAAM;AAAA,EACN,YAAY;AAAA;AAGP,MAAM,4BAA4B,OAAO,OAAO;",
6
+ "names": []
7
+ }
package/esm/index.js CHANGED
@@ -1,2 +1,7 @@
1
- export { DSCardNavigationWithSchema, default } from './DSCardNavigation.js';
2
- export { CardNavigationTypes, CardNavigationTypesValues } from './components/types.js';
1
+ import * as React from "react";
2
+ import { default as default2 } from "./DSCardNavigation";
3
+ export * from "./DSCardNavigation";
4
+ export {
5
+ default2 as default
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -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';\nexport * from './DSCardNavigation';\n"],
5
+ "mappings": "AAAA;ACAA;AACA;",
6
+ "names": []
7
+ }
package/esm/style.js CHANGED
@@ -1,37 +1,105 @@
1
- import styled from 'styled-components';
2
- import { CardNavigationTypes } from './components/types.js';
3
-
4
- const StyledCardNavigationContentTitle = /*#__PURE__*/styled.div.withConfig({
5
- componentId: "sc-jb13pp-0"
6
- })(["padding-top:", ";font-weight:", ";font-size:18px;color:", ";"], props => props.theme.space.xxs, props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['700']);
7
- const StyledCardNavigationContentDescription = /*#__PURE__*/styled.div.withConfig({
8
- componentId: "sc-jb13pp-1"
9
- })(["color:", ";font-size:12px;"], props => props.theme.colors.neutral['500']);
10
- const StyledCardNavigationContentTitleWrapper = /*#__PURE__*/styled.div.withConfig({
11
- componentId: "sc-jb13pp-2"
12
- })(["width:100%;"]);
13
- const StyledCardNavigationContent = /*#__PURE__*/styled.div.withConfig({
14
- componentId: "sc-jb13pp-3"
15
- })(["padding-right:", ";padding-left:", ";display:flex;align-items:center;flex:1;overflow:hidden;"], props => props.theme.space.xs, props => props.theme.space.xs);
16
- const StyledCardNavigationCentralContent = /*#__PURE__*/styled.div.withConfig({
17
- componentId: "sc-jb13pp-4"
18
- })(["width:273px;display:flex;@media (max-width:", "){width:336px;}"], props => props.theme.breakpoints.small);
19
- const StyledCardNavigationBoxWrapper = /*#__PURE__*/styled.div.withConfig({
20
- componentId: "sc-jb13pp-5"
21
- })(["width:337px;display:flex;flex-direction:row;flex-wrap:nowrap;box-shadow:0 1px 4px 0px rgba(37,41,47,0.5);border-radius:2px;position:relative;outline:none;", ";@media (max-width:", "){width:", ";}:after{display:block;content:'';position:absolute;height:100%;width:100%;top:0;left:0;border:solid ", " transparent;border-radius:2px;pointer-events:none;}&:hover,&:focus{box-shadow:0 3px 8px 0px rgba(37,41,47,0.4);}"], props => props.fluid ? 'width: 100%' : '', props => props.theme.breakpoints.small, props => props.fluid ? 'width: 100%' : '414px', props => props.theme.space.xxs);
22
- const StyledCardNavigationIcon = /*#__PURE__*/styled.div.withConfig({
23
- componentId: "sc-jb13pp-6"
24
- })(["width:64px;height:64px;background-color:#32aad1;border-top-left-radius:2px;border-bottom-left-radius:2px;padding:", ";display:flex;align-items:center;justify-content:center;fill:#ffffff;background-color:", ";"], props => props.theme.space.xxs, _ref => {
25
- let {
26
- type
27
- } = _ref;
28
- return type === CardNavigationTypes.BORROWER && '#32aad1' || type === CardNavigationTypes.FINANCIAL && '#1ba88d' || type === CardNavigationTypes.LOAN && '#8e49b2' || type === CardNavigationTypes.REGULATORY && '#db5575';
29
- });
30
- const StyledCardNavigationActions = /*#__PURE__*/styled.div.withConfig({
31
- componentId: "sc-jb13pp-7"
32
- })(["display:flex;flex-direction:row;align-items:center;padding-right:", ";"], props => props.theme.space.xxs);
33
- const StyledCardNavigationAction = /*#__PURE__*/styled.div.withConfig({
34
- componentId: "sc-jb13pp-8"
35
- })(["margin-left:", ";span{height:", ";width:", ";svg{fill:", ";height:", ";width:", ";}}"], props => props.theme.space.xxs, props => props.theme.space.s, props => props.theme.space.s, props => props.theme.colors.neutral[500], props => props.theme.space.s, props => props.theme.space.s);
36
-
37
- export { StyledCardNavigationAction, StyledCardNavigationActions, StyledCardNavigationBoxWrapper, StyledCardNavigationCentralContent, StyledCardNavigationContent, StyledCardNavigationContentDescription, StyledCardNavigationContentTitle, StyledCardNavigationContentTitleWrapper, StyledCardNavigationIcon };
1
+ import * as React from "react";
2
+ import styled from "styled-components";
3
+ import { CardNavigationTypes } from "./components/types";
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 'styled-components';\nimport { CardNavigationTypes } from './components/types';\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;ACAA;AACA;AAEO,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;AAAA;AAG1C,MAAM,yCAAyC,OAAO;AAAA,WAClD,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAI1C,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,WACpB,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;AAAA,gBACpC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,eAC9B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card-navigation",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card Navigation",
6
6
  "module": "./esm/index.js",
@@ -44,9 +44,9 @@
44
44
  "build": "node ../../scripts/build/build.js"
45
45
  },
46
46
  "dependencies": {
47
- "@elliemae/ds-button": "2.2.0",
48
- "@elliemae/ds-icons": "2.2.0",
49
- "@elliemae/ds-truncated-tooltip-text": "2.2.0",
47
+ "@elliemae/ds-button": "2.3.0-alpha.3",
48
+ "@elliemae/ds-icons": "2.3.0-alpha.3",
49
+ "@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.3",
50
50
  "react-desc": "~4.1.3"
51
51
  },
52
52
  "devDependencies": {