@elliemae/ds-card-navigation 3.3.0-next.3 → 3.3.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __objRest = (source, exclude) => {
26
- var target = {};
27
- for (var prop in source)
28
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
- target[prop] = source[prop];
30
- if (source != null && __getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(source)) {
32
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
- target[prop] = source[prop];
34
- }
35
- return target;
36
- };
37
8
  var __export = (target, all) => {
38
9
  for (var name in all)
39
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -65,34 +36,30 @@ var import_ds_icons = require("@elliemae/ds-icons");
65
36
  var import_ds_button = __toESM(require("@elliemae/ds-button"));
66
37
  var import_style = require("./style");
67
38
  var import_types = require("./components/types");
68
- const DSCardNavigation = (_a) => {
69
- var _b = _a, { containerProps = {}, title = "", description = "", type, Icon, actions = [] } = _b, rest = __objRest(_b, ["containerProps", "title", "description", "type", "Icon", "actions"]);
70
- return /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.TooltipTextProvider, null, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationBoxWrapper, __spreadValues(__spreadValues({
71
- role: "button",
72
- tabIndex: 0
73
- }, rest), containerProps), /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationIcon, {
74
- type
75
- }, /* @__PURE__ */ import_react.default.createElement(Icon, {
76
- size: "l"
77
- })), /* @__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, {
78
- value: title
79
- })), /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContentDescription, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
80
- value: description,
81
- "data-testid": "ds-card-navigation--description"
82
- })))), actions.length > 0 && /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationActions, null, actions.map((_a2, key) => {
83
- var _b2 = _a2, { icon = /* @__PURE__ */ import_react.default.createElement(import_ds_icons.MoreOptionsVert, {
84
- "aria-label": "More options"
85
- }) } = _b2, otherProps = __objRest(_b2, ["icon"]);
86
- return /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationAction, {
87
- key
88
- }, /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, __spreadProps(__spreadValues({
89
- icon
90
- }, otherProps), {
91
- buttonType: import_ds_button.BUTTON_TYPE.TEXT,
92
- size: import_ds_button.BUTTON_SIZE.L
93
- })));
94
- })))));
95
- };
39
+ 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, {
40
+ role: "button",
41
+ tabIndex: 0,
42
+ ...rest,
43
+ ...containerProps
44
+ }, /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationIcon, {
45
+ type
46
+ }, /* @__PURE__ */ import_react.default.createElement(Icon, {
47
+ size: "l"
48
+ })), /* @__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, {
49
+ value: title
50
+ })), /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationContentDescription, null, /* @__PURE__ */ import_react.default.createElement(import_ds_truncated_tooltip_text.DSTruncatedTooltipText, {
51
+ value: description,
52
+ "data-testid": "ds-card-navigation--description"
53
+ })))), actions.length > 0 && /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationActions, null, actions.map(({ icon = /* @__PURE__ */ import_react.default.createElement(import_ds_icons.MoreOptionsVert, {
54
+ "aria-label": "More options"
55
+ }), ...otherProps }, key) => /* @__PURE__ */ import_react.default.createElement(import_style.StyledCardNavigationAction, {
56
+ key
57
+ }, /* @__PURE__ */ import_react.default.createElement(import_ds_button.default, {
58
+ icon,
59
+ ...otherProps,
60
+ buttonType: import_ds_button.BUTTON_TYPE.TEXT,
61
+ size: import_ds_button.BUTTON_SIZE.L
62
+ })))))));
96
63
  DSCardNavigation.defaultProps = {
97
64
  type: import_types.CardNavigationTypes.BORROWER,
98
65
  Icon: import_ds_icons.LoanProducts
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSCardNavigation.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\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;\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;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,uCAA4D;AAC5D,sBAA8C;AAC9C,uBAAmD;AACnD,mBAUO;AACP,mBAA+D;AAE/D,MAAM,mBAAmB,CAAC,OAA0F;AAA1F,eAAE,mBAAiB,CAAC,GAAG,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,CAAC,MAA5E,IAAkF,iBAAlF,IAA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Z,gBAAgB,8BAAU,OAAO,YAAY,4CAA4C;AAAA,EAEzF,OAAO,8BAAU,OAAO,YAAY,uBAAuB;AAAA,EAE3D,MAAM,8BAAU,KAAK,YAAY,2BAA2B;AAAA,EAE5D,aAAa,8BAAU,OAAO,YAAY,6BAA6B;AAAA,EAEvE,MAAM,8BAAU,MAAM,sCAAyB,EAAE,YAAY,sBAAsB;AAAA,EAEnF,SAAS,8BAAU,QACjB,8BAAU,MAAM;AAAA,IACd,MAAM,8BAAU;AAAA,IAChB,SAAS,8BAAU;AAAA,EACrB,CAAC,CACH,EAAE,YAAY,+BAA+B;AAC/C;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,kCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAIvC,IAAO,2BAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,35 +1,4 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
2
  import * as React from "react";
34
3
  import React2 from "react";
35
4
  import { PropTypes, describe } from "@elliemae/ds-utilities";
@@ -48,34 +17,30 @@ import {
48
17
  StyledCardNavigationActions
49
18
  } from "./style";
50
19
  import { CardNavigationTypes, CardNavigationTypesValues } from "./components/types";
51
- const DSCardNavigation = (_a) => {
52
- var _b = _a, { containerProps = {}, title = "", description = "", type, Icon, actions = [] } = _b, rest = __objRest(_b, ["containerProps", "title", "description", "type", "Icon", "actions"]);
53
- return /* @__PURE__ */ React2.createElement(TooltipTextProvider, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationBoxWrapper, __spreadValues(__spreadValues({
54
- role: "button",
55
- tabIndex: 0
56
- }, rest), containerProps), /* @__PURE__ */ React2.createElement(StyledCardNavigationIcon, {
57
- type
58
- }, /* @__PURE__ */ React2.createElement(Icon, {
59
- size: "l"
60
- })), /* @__PURE__ */ React2.createElement(StyledCardNavigationCentralContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitleWrapper, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitle, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
61
- value: title
62
- })), /* @__PURE__ */ React2.createElement(StyledCardNavigationContentDescription, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
63
- value: description,
64
- "data-testid": "ds-card-navigation--description"
65
- })))), actions.length > 0 && /* @__PURE__ */ React2.createElement(StyledCardNavigationActions, null, actions.map((_a2, key) => {
66
- var _b2 = _a2, { icon = /* @__PURE__ */ React2.createElement(MoreOptionsVert, {
67
- "aria-label": "More options"
68
- }) } = _b2, otherProps = __objRest(_b2, ["icon"]);
69
- return /* @__PURE__ */ React2.createElement(StyledCardNavigationAction, {
70
- key
71
- }, /* @__PURE__ */ React2.createElement(DSButton, __spreadProps(__spreadValues({
72
- icon
73
- }, otherProps), {
74
- buttonType: BUTTON_TYPE.TEXT,
75
- size: BUTTON_SIZE.L
76
- })));
77
- })))));
78
- };
20
+ const DSCardNavigation = ({ containerProps = {}, title = "", description = "", type, Icon, actions = [], ...rest }) => /* @__PURE__ */ React2.createElement(TooltipTextProvider, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationBoxWrapper, {
21
+ role: "button",
22
+ tabIndex: 0,
23
+ ...rest,
24
+ ...containerProps
25
+ }, /* @__PURE__ */ React2.createElement(StyledCardNavigationIcon, {
26
+ type
27
+ }, /* @__PURE__ */ React2.createElement(Icon, {
28
+ size: "l"
29
+ })), /* @__PURE__ */ React2.createElement(StyledCardNavigationCentralContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContent, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitleWrapper, null, /* @__PURE__ */ React2.createElement(StyledCardNavigationContentTitle, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
30
+ value: title
31
+ })), /* @__PURE__ */ React2.createElement(StyledCardNavigationContentDescription, null, /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
32
+ value: description,
33
+ "data-testid": "ds-card-navigation--description"
34
+ })))), actions.length > 0 && /* @__PURE__ */ React2.createElement(StyledCardNavigationActions, null, actions.map(({ icon = /* @__PURE__ */ React2.createElement(MoreOptionsVert, {
35
+ "aria-label": "More options"
36
+ }), ...otherProps }, key) => /* @__PURE__ */ React2.createElement(StyledCardNavigationAction, {
37
+ key
38
+ }, /* @__PURE__ */ React2.createElement(DSButton, {
39
+ icon,
40
+ ...otherProps,
41
+ buttonType: BUTTON_TYPE.TEXT,
42
+ size: BUTTON_SIZE.L
43
+ })))))));
79
44
  DSCardNavigation.defaultProps = {
80
45
  type: CardNavigationTypes.BORROWER,
81
46
  Icon: LoanProducts
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSCardNavigation.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\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;\nDSCardNavigation.displayName = 'DSCardNavigation';\nconst DSCardNavigationWithSchema = describe(DSCardNavigation);\nDSCardNavigationWithSchema.propTypes = props;\n\nexport { CardNavigationTypes, CardNavigationTypesValues, DSCardNavigationWithSchema, DSCardNavigation };\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,OAA0F;AAA1F,eAAE,mBAAiB,CAAC,GAAG,QAAQ,IAAI,cAAc,IAAI,MAAM,MAAM,UAAU,CAAC,MAA5E,IAAkF,iBAAlF,IAAkF,CAAhF,kBAAqB,SAAY,eAAkB,QAAM,QAAM;AACzF,8CAAC,2BACC,qCAAC;AAAA,IAA+B,MAAK;AAAA,IAAS,UAAU;AAAA,KAAO,OAAU,iBACvE,qCAAC;AAAA,IAAyB;AAAA,KACxB,qCAAC;AAAA,IAAK,MAAK;AAAA,GAAI,CACjB,GACA,qCAAC,0CACC,qCAA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C,CACH,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
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card-navigation",
3
- "version": "3.3.0-next.3",
3
+ "version": "3.3.0-next.6",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card Navigation",
6
6
  "files": [
@@ -47,11 +47,11 @@
47
47
  "indent": 4
48
48
  },
49
49
  "dependencies": {
50
- "@elliemae/ds-button": "3.3.0-next.3",
51
- "@elliemae/ds-icons": "3.3.0-next.3",
52
- "@elliemae/ds-system": "3.3.0-next.3",
53
- "@elliemae/ds-truncated-tooltip-text": "3.3.0-next.3",
54
- "@elliemae/ds-utilities": "3.3.0-next.3"
50
+ "@elliemae/ds-button": "3.3.0-next.6",
51
+ "@elliemae/ds-icons": "3.3.0-next.6",
52
+ "@elliemae/ds-system": "3.3.0-next.6",
53
+ "@elliemae/ds-truncated-tooltip-text": "3.3.0-next.6",
54
+ "@elliemae/ds-utilities": "3.3.0-next.6"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@elliemae/pui-theme": "~2.6.0",