@elliemae/ds-card 2.0.0-next.9 → 2.0.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/DSCard.js CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/esnext.async-iterator.filter.js');
6
+ require('core-js/modules/esnext.iterator.constructor.js');
7
+ require('core-js/modules/esnext.iterator.filter.js');
8
+ require('core-js/modules/esnext.async-iterator.for-each.js');
9
+ require('core-js/modules/esnext.iterator.for-each.js');
5
10
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
11
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
12
  require('react');
package/cjs/DSCardBody.js CHANGED
@@ -10,12 +10,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
12
12
 
13
- const DSCardBody = ({
14
- children
15
- }) => /*#__PURE__*/_jsx__default["default"]("div", {
16
- className: "em-ds-card-body",
17
- "data-testid": "card-body"
18
- }, void 0, children);
13
+ const DSCardBody = _ref => {
14
+ let {
15
+ children
16
+ } = _ref;
17
+ return /*#__PURE__*/_jsx__default["default"]("div", {
18
+ className: "em-ds-card-body",
19
+ "data-testid": "card-body"
20
+ }, void 0, children);
21
+ };
19
22
 
20
23
  const bodyProps = {
21
24
  /** children */
@@ -11,10 +11,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
 
12
12
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
13
13
 
14
- const DSCardHeader = ({
15
- title,
16
- action
17
- }) => {
14
+ const DSCardHeader = _ref => {
15
+ let {
16
+ title,
17
+ action
18
+ } = _ref;
18
19
  const {
19
20
  cssClassName,
20
21
  classNameElement
@@ -6,47 +6,44 @@ var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var lodash = require('lodash');
8
8
  var reactDesc = require('react-desc');
9
- var ArrowheadRight = require('@elliemae/ds-icons/ArrowheadRight');
10
- var ArrowheadDown = require('@elliemae/ds-icons/ArrowheadDown');
9
+ var dsIcons = require('@elliemae/ds-icons');
11
10
  var dsSystem = require('@elliemae/ds-system');
12
11
  var DSButton = require('@elliemae/ds-button');
13
12
  var DSSeparator = require('@elliemae/ds-separator');
14
13
  var dsGrid = require('@elliemae/ds-grid');
15
- var DSCheckbox = require('@elliemae/ds-form/Checkbox');
14
+ var dsForm = require('@elliemae/ds-form');
16
15
  var styled = require('./styled.js');
17
16
  var jsxRuntime = require('react/jsx-runtime');
18
17
 
19
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
19
 
21
20
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
22
- var ArrowheadRight__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadRight);
23
- var ArrowheadDown__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadDown);
24
21
  var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
25
22
  var DSSeparator__default = /*#__PURE__*/_interopDefaultLegacy(DSSeparator);
26
- var DSCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(DSCheckbox);
27
23
 
28
24
  var _Grid, _DSSeparator;
29
25
 
30
- const DetailCard = ({
31
- title,
32
- description,
33
- descriptionColor = 'neutral',
34
- rightValue,
35
- rightDescription,
36
- rightAddon,
37
- // select props
38
- selectable = false,
39
- isSelected = false,
40
- onSelect = lodash.noop,
41
- // expand props
42
- expandable = false,
43
- isExpanded = false,
44
- onExpand = lodash.noop,
45
- expandContent,
46
- // state props
47
- readOnly = false,
48
- disabled = false
49
- }) => {
26
+ const DetailCard = _ref => {
27
+ let {
28
+ title,
29
+ description,
30
+ descriptionColor = 'neutral',
31
+ rightValue,
32
+ rightDescription,
33
+ rightAddon,
34
+ // select props
35
+ selectable = false,
36
+ isSelected = false,
37
+ onSelect = lodash.noop,
38
+ // expand props
39
+ expandable = false,
40
+ isExpanded = false,
41
+ onExpand = lodash.noop,
42
+ expandContent,
43
+ // state props
44
+ readOnly = false,
45
+ disabled = false
46
+ } = _ref;
50
47
  const theme = dsSystem.useTheme();
51
48
  const hasRightLegend = rightValue && rightDescription;
52
49
  const hasRightPosition = hasRightLegend || rightAddon;
@@ -64,7 +61,7 @@ const DetailCard = ({
64
61
  alignItems: !description && 'center'
65
62
  }, void 0, selectable && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
66
63
  pt: description && '9px'
67
- }, void 0, /*#__PURE__*/_jsx__default["default"](DSCheckbox__default["default"], {
64
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsForm.DSCheckbox, {
68
65
  checked: isSelected,
69
66
  onChange: onSelect,
70
67
  readOnly: readOnly,
@@ -81,10 +78,10 @@ const DetailCard = ({
81
78
  'data-testid': 'expand-button'
82
79
  },
83
80
  onClick: onExpand,
84
- icon: isExpanded ? /*#__PURE__*/_jsx__default["default"](ArrowheadDown__default["default"], {
81
+ icon: isExpanded ? /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadDown, {
85
82
  color: ['neutral', 500],
86
83
  size: "s"
87
- }) : /*#__PURE__*/_jsx__default["default"](ArrowheadRight__default["default"], {
84
+ }) : /*#__PURE__*/_jsx__default["default"](dsIcons.ArrowheadRight, {
88
85
  color: ['neutral', 500],
89
86
  size: "s"
90
87
  }),
@@ -31,15 +31,21 @@ const ExpandContent = /*#__PURE__*/styled__default["default"].div.withConfig({
31
31
  componentId: "sc-nx8lwv-6"
32
32
  })(["font-size:12px;"]);
33
33
 
34
- const border = ({
35
- active,
36
- theme
37
- }) => active ? theme.colors.brand['600'] : theme.colors.neutral['200'];
38
-
39
- const background = ({
40
- active,
41
- theme
42
- }) => active ? theme.colors.brand['100'] : theme.colors.neutral['000'];
34
+ const border = _ref => {
35
+ let {
36
+ active,
37
+ theme
38
+ } = _ref;
39
+ return active ? theme.colors.brand['600'] : theme.colors.neutral['200'];
40
+ };
41
+
42
+ const background = _ref2 => {
43
+ let {
44
+ active,
45
+ theme
46
+ } = _ref2;
47
+ return active ? theme.colors.brand['100'] : theme.colors.neutral['000'];
48
+ };
43
49
 
44
50
  const Container = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
45
51
  componentId: "sc-nx8lwv-7"
@@ -6,31 +6,33 @@ var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var reactDesc = require('react-desc');
8
8
  var styled = require('styled-components');
9
- var Chevron = require('@elliemae/ds-icons/ChevronSmallDown');
9
+ var dsIcons = require('@elliemae/ds-icons');
10
10
  var DSButton = require('@elliemae/ds-button');
11
11
 
12
12
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
13
 
14
14
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
15
15
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
16
- var Chevron__default = /*#__PURE__*/_interopDefaultLegacy(Chevron);
17
16
  var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
18
17
 
19
18
  const Addon = /*#__PURE__*/styled__default["default"](DSButton__default["default"]).withConfig({
20
19
  componentId: "sc-1pazs35-0"
21
20
  })(["background-color:transparent;padding-right:4px;height:100%;border:none;font-size:12px;font-weight:", ";color:", ";cursor:pointer;&:focus,&::after{background-color:transparent;box-shadow:none !important;border:none !important;}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['700']);
22
21
 
23
- const ActionAddon = ({
24
- label,
25
- onClick,
26
- icon
27
- }) => /*#__PURE__*/_jsx__default["default"](Addon, {
28
- onClick: onClick,
29
- labelText: label,
30
- icon: icon || /*#__PURE__*/_jsx__default["default"](Chevron__default["default"], {
31
- color: ['brand-primary', 700]
32
- })
33
- });
22
+ const ActionAddon = _ref => {
23
+ let {
24
+ label,
25
+ onClick,
26
+ icon
27
+ } = _ref;
28
+ return /*#__PURE__*/_jsx__default["default"](Addon, {
29
+ onClick: onClick,
30
+ labelText: label,
31
+ icon: icon || /*#__PURE__*/_jsx__default["default"](dsIcons.ChevronSmallDown, {
32
+ color: ['brand-primary', 700]
33
+ })
34
+ });
35
+ };
34
36
 
35
37
  const actionProps = {
36
38
  /**
package/cjs/v2/Card.js CHANGED
@@ -22,34 +22,37 @@ const getCol = rightAddon => {
22
22
  return [1, 'auto'];
23
23
  };
24
24
 
25
- const CustomCard = ({
26
- title,
27
- description,
28
- leftAddon,
29
- rightAddon,
30
- // array. max 2 elements
31
- hasBorder = false
32
- }) => /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText.TooltipTextProvider, {}, void 0, /*#__PURE__*/_jsx__default["default"](components.CardContainer, {
33
- hasBorder: hasBorder,
34
- cols: getCol(rightAddon),
35
- "data-testid": "em-ds-card"
36
- }, void 0, /*#__PURE__*/_jsx__default["default"](components.LeftSection, {}, void 0, leftAddon && /*#__PURE__*/_jsx__default["default"](components.LeftAddon, {}, void 0, leftAddon), /*#__PURE__*/_jsx__default["default"](components.MainSection, {
37
- style: {
38
- maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%'
39
- }
40
- }, void 0, /*#__PURE__*/_jsx__default["default"](dsHeader.DSHeader, {
41
- fontSize: "16px",
42
- "data-testid": "em-ds-card-header",
43
- fontWeight: "regular",
44
- color: "neutral.800",
45
- text: /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
46
- value: title
47
- })
48
- }), description && /*#__PURE__*/_jsx__default["default"](components.Description, {}, void 0, /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
49
- value: description
50
- })))), rightAddon && /*#__PURE__*/_jsx__default["default"](components.RightAddonSection, {}, void 0, rightAddon[0] && /*#__PURE__*/_jsx__default["default"](components.RightAddon, {}, void 0, rightAddon[0]), rightAddon[1] && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
51
- children: [rightAddon.length > 1 && (_Separator || (_Separator = /*#__PURE__*/_jsx__default["default"](components.Separator, {}))), /*#__PURE__*/_jsx__default["default"](components.RightAddon, {}, void 0, rightAddon[1])]
52
- }))));
25
+ const CustomCard = _ref => {
26
+ let {
27
+ title,
28
+ description,
29
+ leftAddon,
30
+ rightAddon,
31
+ // array. max 2 elements
32
+ hasBorder = false
33
+ } = _ref;
34
+ return /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText.TooltipTextProvider, {}, void 0, /*#__PURE__*/_jsx__default["default"](components.CardContainer, {
35
+ hasBorder: hasBorder,
36
+ cols: getCol(rightAddon),
37
+ "data-testid": "em-ds-card"
38
+ }, void 0, /*#__PURE__*/_jsx__default["default"](components.LeftSection, {}, void 0, leftAddon && /*#__PURE__*/_jsx__default["default"](components.LeftAddon, {}, void 0, leftAddon), /*#__PURE__*/_jsx__default["default"](components.MainSection, {
39
+ style: {
40
+ maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%'
41
+ }
42
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsHeader.DSHeader, {
43
+ fontSize: "16px",
44
+ "data-testid": "em-ds-card-header",
45
+ fontWeight: "regular",
46
+ color: "neutral.800",
47
+ text: /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
48
+ value: title
49
+ })
50
+ }), description && /*#__PURE__*/_jsx__default["default"](components.Description, {}, void 0, /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
51
+ value: description
52
+ })))), rightAddon && /*#__PURE__*/_jsx__default["default"](components.RightAddonSection, {}, void 0, rightAddon[0] && /*#__PURE__*/_jsx__default["default"](components.RightAddon, {}, void 0, rightAddon[0]), rightAddon[1] && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
53
+ children: [rightAddon.length > 1 && (_Separator || (_Separator = /*#__PURE__*/_jsx__default["default"](components.Separator, {}))), /*#__PURE__*/_jsx__default["default"](components.RightAddon, {}, void 0, rightAddon[1])]
54
+ }))));
55
+ };
53
56
 
54
57
  const cardProps = {
55
58
  /**
package/cjs/v2/Group.js CHANGED
@@ -16,10 +16,13 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
16
16
 
17
17
  const Group = /*#__PURE__*/styled__default["default"].div.withConfig({
18
18
  componentId: "sc-1y2lfoo-0"
19
- })(["display:flex;flex-direction:column;width:100%;max-width:100%;", "{border-top:none;}", ""], Card.CustomCard, ({
20
- theme,
21
- withTopBorder
22
- }) => withTopBorder ? "border-top: ".concat(theme.colors.neutral['100']) : '');
19
+ })(["display:flex;flex-direction:column;width:100%;max-width:100%;", "{border-top:none;}", ""], Card.CustomCard, _ref => {
20
+ let {
21
+ theme,
22
+ withTopBorder
23
+ } = _ref;
24
+ return withTopBorder ? "border-top: ".concat(theme.colors.neutral['100']) : '';
25
+ });
23
26
  const GroupTitle = /*#__PURE__*/styled__default["default"].span.withConfig({
24
27
  componentId: "sc-1y2lfoo-1"
25
28
  })(["", ""], dsSystem.truncate());
@@ -30,13 +33,16 @@ const Items = /*#__PURE__*/styled__default["default"].div.withConfig({
30
33
  componentId: "sc-1y2lfoo-3"
31
34
  })(["display:flex;flex-direction:column;"]);
32
35
 
33
- const CardGroup = ({
34
- children,
35
- title,
36
- action
37
- }) => /*#__PURE__*/_jsx__default["default"](Group, {
38
- withTopBorder: !title
39
- }, void 0, !!title && /*#__PURE__*/_jsx__default["default"](TitleWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](GroupTitle, {}, void 0, title), action), /*#__PURE__*/_jsx__default["default"](Items, {}, void 0, children));
36
+ const CardGroup = _ref2 => {
37
+ let {
38
+ children,
39
+ title,
40
+ action
41
+ } = _ref2;
42
+ return /*#__PURE__*/_jsx__default["default"](Group, {
43
+ withTopBorder: !title
44
+ }, void 0, !!title && /*#__PURE__*/_jsx__default["default"](TitleWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](GroupTitle, {}, void 0, title), action), /*#__PURE__*/_jsx__default["default"](Items, {}, void 0, children));
45
+ };
40
46
 
41
47
  const cardgroupProps = {
42
48
  /**
@@ -11,10 +11,13 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
12
  const CardContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
13
13
  componentId: "sc-1cjakml-0"
14
- })(["align-items:center;justify-content:space-between;width:100%;height:56px;padding:8px 16px;position:relative;border:", ";&:before{content:'';border-bottom:1px solid ", ";position:absolute;margin:0 auto;width:90%;bottom:0;}&:last-child::before{content:none;}"], ({
15
- theme,
16
- hasBorder
17
- }) => hasBorder ? "1px solid ".concat(theme.colors.neutral['100']) : '', props => props.theme.colors.neutral['100']);
14
+ })(["align-items:center;justify-content:space-between;width:100%;height:56px;padding:8px 16px;position:relative;border:", ";&:before{content:'';border-bottom:1px solid ", ";position:absolute;margin:0 auto;width:90%;bottom:0;}&:last-child::before{content:none;}"], _ref => {
15
+ let {
16
+ theme,
17
+ hasBorder
18
+ } = _ref;
19
+ return hasBorder ? "1px solid ".concat(theme.colors.neutral['100']) : '';
20
+ }, props => props.theme.colors.neutral['100']);
18
21
  const LeftSection = /*#__PURE__*/styled__default["default"].div.withConfig({
19
22
  componentId: "sc-1cjakml-1"
20
23
  })(["display:flex;align-items:center;"]);
package/esm/DSCard.js CHANGED
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import 'react';
package/esm/DSCardBody.js CHANGED
@@ -2,12 +2,15 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
4
 
5
- const DSCardBody = ({
6
- children
7
- }) => /*#__PURE__*/_jsx("div", {
8
- className: "em-ds-card-body",
9
- "data-testid": "card-body"
10
- }, void 0, children);
5
+ const DSCardBody = _ref => {
6
+ let {
7
+ children
8
+ } = _ref;
9
+ return /*#__PURE__*/_jsx("div", {
10
+ className: "em-ds-card-body",
11
+ "data-testid": "card-body"
12
+ }, void 0, children);
13
+ };
11
14
 
12
15
  const bodyProps = {
13
16
  /** children */
@@ -3,10 +3,11 @@ import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
4
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
5
5
 
6
- const DSCardHeader = ({
7
- title,
8
- action
9
- }) => {
6
+ const DSCardHeader = _ref => {
7
+ let {
8
+ title,
9
+ action
10
+ } = _ref;
10
11
  const {
11
12
  cssClassName,
12
13
  classNameElement
@@ -1,39 +1,39 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { noop, compact } from 'lodash';
3
+ import { compact, noop } from 'lodash';
4
4
  import { PropTypes, describe } from 'react-desc';
5
- import ArrowheadRight from '@elliemae/ds-icons/ArrowheadRight';
6
- import ArrowheadDown from '@elliemae/ds-icons/ArrowheadDown';
5
+ import { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';
7
6
  import { useTheme } from '@elliemae/ds-system';
8
7
  import DSButton from '@elliemae/ds-button';
9
8
  import DSSeparator from '@elliemae/ds-separator';
10
9
  import { Grid } from '@elliemae/ds-grid';
11
- import DSCheckbox from '@elliemae/ds-form/Checkbox';
10
+ import { DSCheckbox } from '@elliemae/ds-form';
12
11
  import { Container, Title, Description, RightDescription, RightValue, RightAddon } from './styled.js';
13
12
  import { jsx, Fragment } from 'react/jsx-runtime';
14
13
 
15
14
  var _Grid, _DSSeparator;
16
15
 
17
- const DetailCard = ({
18
- title,
19
- description,
20
- descriptionColor = 'neutral',
21
- rightValue,
22
- rightDescription,
23
- rightAddon,
24
- // select props
25
- selectable = false,
26
- isSelected = false,
27
- onSelect = noop,
28
- // expand props
29
- expandable = false,
30
- isExpanded = false,
31
- onExpand = noop,
32
- expandContent,
33
- // state props
34
- readOnly = false,
35
- disabled = false
36
- }) => {
16
+ const DetailCard = _ref => {
17
+ let {
18
+ title,
19
+ description,
20
+ descriptionColor = 'neutral',
21
+ rightValue,
22
+ rightDescription,
23
+ rightAddon,
24
+ // select props
25
+ selectable = false,
26
+ isSelected = false,
27
+ onSelect = noop,
28
+ // expand props
29
+ expandable = false,
30
+ isExpanded = false,
31
+ onExpand = noop,
32
+ expandContent,
33
+ // state props
34
+ readOnly = false,
35
+ disabled = false
36
+ } = _ref;
37
37
  const theme = useTheme();
38
38
  const hasRightLegend = rightValue && rightDescription;
39
39
  const hasRightPosition = hasRightLegend || rightAddon;
@@ -23,15 +23,21 @@ const ExpandContent = /*#__PURE__*/styled.div.withConfig({
23
23
  componentId: "sc-nx8lwv-6"
24
24
  })(["font-size:12px;"]);
25
25
 
26
- const border = ({
27
- active,
28
- theme
29
- }) => active ? theme.colors.brand['600'] : theme.colors.neutral['200'];
26
+ const border = _ref => {
27
+ let {
28
+ active,
29
+ theme
30
+ } = _ref;
31
+ return active ? theme.colors.brand['600'] : theme.colors.neutral['200'];
32
+ };
30
33
 
31
- const background = ({
32
- active,
33
- theme
34
- }) => active ? theme.colors.brand['100'] : theme.colors.neutral['000'];
34
+ const background = _ref2 => {
35
+ let {
36
+ active,
37
+ theme
38
+ } = _ref2;
39
+ return active ? theme.colors.brand['100'] : theme.colors.neutral['000'];
40
+ };
35
41
 
36
42
  const Container = /*#__PURE__*/styled(Grid).withConfig({
37
43
  componentId: "sc-nx8lwv-7"
@@ -2,24 +2,27 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
4
  import styled from 'styled-components';
5
- import Chevron from '@elliemae/ds-icons/ChevronSmallDown';
5
+ import { ChevronSmallDown } from '@elliemae/ds-icons';
6
6
  import DSButton from '@elliemae/ds-button';
7
7
 
8
8
  const Addon = /*#__PURE__*/styled(DSButton).withConfig({
9
9
  componentId: "sc-1pazs35-0"
10
10
  })(["background-color:transparent;padding-right:4px;height:100%;border:none;font-size:12px;font-weight:", ";color:", ";cursor:pointer;&:focus,&::after{background-color:transparent;box-shadow:none !important;border:none !important;}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['700']);
11
11
 
12
- const ActionAddon = ({
13
- label,
14
- onClick,
15
- icon
16
- }) => /*#__PURE__*/_jsx(Addon, {
17
- onClick: onClick,
18
- labelText: label,
19
- icon: icon || /*#__PURE__*/_jsx(Chevron, {
20
- color: ['brand-primary', 700]
21
- })
22
- });
12
+ const ActionAddon = _ref => {
13
+ let {
14
+ label,
15
+ onClick,
16
+ icon
17
+ } = _ref;
18
+ return /*#__PURE__*/_jsx(Addon, {
19
+ onClick: onClick,
20
+ labelText: label,
21
+ icon: icon || /*#__PURE__*/_jsx(ChevronSmallDown, {
22
+ color: ['brand-primary', 700]
23
+ })
24
+ });
25
+ };
23
26
 
24
27
  const actionProps = {
25
28
  /**
package/esm/v2/Card.js CHANGED
@@ -13,34 +13,37 @@ const getCol = rightAddon => {
13
13
  return [1, 'auto'];
14
14
  };
15
15
 
16
- const CustomCard = ({
17
- title,
18
- description,
19
- leftAddon,
20
- rightAddon,
21
- // array. max 2 elements
22
- hasBorder = false
23
- }) => /*#__PURE__*/_jsx(TooltipTextProvider, {}, void 0, /*#__PURE__*/_jsx(CardContainer, {
24
- hasBorder: hasBorder,
25
- cols: getCol(rightAddon),
26
- "data-testid": "em-ds-card"
27
- }, void 0, /*#__PURE__*/_jsx(LeftSection, {}, void 0, leftAddon && /*#__PURE__*/_jsx(LeftAddon, {}, void 0, leftAddon), /*#__PURE__*/_jsx(MainSection, {
28
- style: {
29
- maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%'
30
- }
31
- }, void 0, /*#__PURE__*/_jsx(DSHeader, {
32
- fontSize: "16px",
33
- "data-testid": "em-ds-card-header",
34
- fontWeight: "regular",
35
- color: "neutral.800",
36
- text: /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
37
- value: title
38
- })
39
- }), description && /*#__PURE__*/_jsx(Description, {}, void 0, /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
40
- value: description
41
- })))), rightAddon && /*#__PURE__*/_jsx(RightAddonSection, {}, void 0, rightAddon[0] && /*#__PURE__*/_jsx(RightAddon, {}, void 0, rightAddon[0]), rightAddon[1] && /*#__PURE__*/jsxs(Fragment, {
42
- children: [rightAddon.length > 1 && (_Separator || (_Separator = /*#__PURE__*/_jsx(Separator, {}))), /*#__PURE__*/_jsx(RightAddon, {}, void 0, rightAddon[1])]
43
- }))));
16
+ const CustomCard = _ref => {
17
+ let {
18
+ title,
19
+ description,
20
+ leftAddon,
21
+ rightAddon,
22
+ // array. max 2 elements
23
+ hasBorder = false
24
+ } = _ref;
25
+ return /*#__PURE__*/_jsx(TooltipTextProvider, {}, void 0, /*#__PURE__*/_jsx(CardContainer, {
26
+ hasBorder: hasBorder,
27
+ cols: getCol(rightAddon),
28
+ "data-testid": "em-ds-card"
29
+ }, void 0, /*#__PURE__*/_jsx(LeftSection, {}, void 0, leftAddon && /*#__PURE__*/_jsx(LeftAddon, {}, void 0, leftAddon), /*#__PURE__*/_jsx(MainSection, {
30
+ style: {
31
+ maxWidth: leftAddon ? 'calc(100% - 40px)' : '100%'
32
+ }
33
+ }, void 0, /*#__PURE__*/_jsx(DSHeader, {
34
+ fontSize: "16px",
35
+ "data-testid": "em-ds-card-header",
36
+ fontWeight: "regular",
37
+ color: "neutral.800",
38
+ text: /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
39
+ value: title
40
+ })
41
+ }), description && /*#__PURE__*/_jsx(Description, {}, void 0, /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
42
+ value: description
43
+ })))), rightAddon && /*#__PURE__*/_jsx(RightAddonSection, {}, void 0, rightAddon[0] && /*#__PURE__*/_jsx(RightAddon, {}, void 0, rightAddon[0]), rightAddon[1] && /*#__PURE__*/jsxs(Fragment, {
44
+ children: [rightAddon.length > 1 && (_Separator || (_Separator = /*#__PURE__*/_jsx(Separator, {}))), /*#__PURE__*/_jsx(RightAddon, {}, void 0, rightAddon[1])]
45
+ }))));
46
+ };
44
47
 
45
48
  const cardProps = {
46
49
  /**
package/esm/v2/Group.js CHANGED
@@ -7,10 +7,13 @@ import { CustomCard } from './Card.js';
7
7
 
8
8
  const Group = /*#__PURE__*/styled.div.withConfig({
9
9
  componentId: "sc-1y2lfoo-0"
10
- })(["display:flex;flex-direction:column;width:100%;max-width:100%;", "{border-top:none;}", ""], CustomCard, ({
11
- theme,
12
- withTopBorder
13
- }) => withTopBorder ? "border-top: ".concat(theme.colors.neutral['100']) : '');
10
+ })(["display:flex;flex-direction:column;width:100%;max-width:100%;", "{border-top:none;}", ""], CustomCard, _ref => {
11
+ let {
12
+ theme,
13
+ withTopBorder
14
+ } = _ref;
15
+ return withTopBorder ? "border-top: ".concat(theme.colors.neutral['100']) : '';
16
+ });
14
17
  const GroupTitle = /*#__PURE__*/styled.span.withConfig({
15
18
  componentId: "sc-1y2lfoo-1"
16
19
  })(["", ""], truncate());
@@ -21,13 +24,16 @@ const Items = /*#__PURE__*/styled.div.withConfig({
21
24
  componentId: "sc-1y2lfoo-3"
22
25
  })(["display:flex;flex-direction:column;"]);
23
26
 
24
- const CardGroup = ({
25
- children,
26
- title,
27
- action
28
- }) => /*#__PURE__*/_jsx(Group, {
29
- withTopBorder: !title
30
- }, void 0, !!title && /*#__PURE__*/_jsx(TitleWrapper, {}, void 0, /*#__PURE__*/_jsx(GroupTitle, {}, void 0, title), action), /*#__PURE__*/_jsx(Items, {}, void 0, children));
27
+ const CardGroup = _ref2 => {
28
+ let {
29
+ children,
30
+ title,
31
+ action
32
+ } = _ref2;
33
+ return /*#__PURE__*/_jsx(Group, {
34
+ withTopBorder: !title
35
+ }, void 0, !!title && /*#__PURE__*/_jsx(TitleWrapper, {}, void 0, /*#__PURE__*/_jsx(GroupTitle, {}, void 0, title), action), /*#__PURE__*/_jsx(Items, {}, void 0, children));
36
+ };
31
37
 
32
38
  const cardgroupProps = {
33
39
  /**
@@ -3,10 +3,13 @@ import { Grid } from '@elliemae/ds-grid';
3
3
 
4
4
  const CardContainer = /*#__PURE__*/styled(Grid).withConfig({
5
5
  componentId: "sc-1cjakml-0"
6
- })(["align-items:center;justify-content:space-between;width:100%;height:56px;padding:8px 16px;position:relative;border:", ";&:before{content:'';border-bottom:1px solid ", ";position:absolute;margin:0 auto;width:90%;bottom:0;}&:last-child::before{content:none;}"], ({
7
- theme,
8
- hasBorder
9
- }) => hasBorder ? "1px solid ".concat(theme.colors.neutral['100']) : '', props => props.theme.colors.neutral['100']);
6
+ })(["align-items:center;justify-content:space-between;width:100%;height:56px;padding:8px 16px;position:relative;border:", ";&:before{content:'';border-bottom:1px solid ", ";position:absolute;margin:0 auto;width:90%;bottom:0;}&:last-child::before{content:none;}"], _ref => {
7
+ let {
8
+ theme,
9
+ hasBorder
10
+ } = _ref;
11
+ return hasBorder ? "1px solid ".concat(theme.colors.neutral['100']) : '';
12
+ }, props => props.theme.colors.neutral['100']);
10
13
  const LeftSection = /*#__PURE__*/styled.div.withConfig({
11
14
  componentId: "sc-1cjakml-1"
12
15
  })(["display:flex;align-items:center;"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card",
3
- "version": "2.0.0-next.9",
3
+ "version": "2.0.0-rc.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card",
6
6
  "module": "./esm/index.js",
@@ -68,25 +68,27 @@
68
68
  "build": "node ../../scripts/build/build.js"
69
69
  },
70
70
  "dependencies": {
71
- "@elliemae/ds-button": "2.0.0-next.9",
72
- "@elliemae/ds-classnames": "2.0.0-next.9",
73
- "@elliemae/ds-form": "2.0.0-next.9",
74
- "@elliemae/ds-grid": "2.0.0-next.9",
75
- "@elliemae/ds-header": "2.0.0-next.9",
76
- "@elliemae/ds-icons": "2.0.0-next.9",
77
- "@elliemae/ds-separator": "2.0.0-next.9",
78
- "@elliemae/ds-system": "2.0.0-next.9",
79
- "@elliemae/ds-truncated-tooltip-text": "2.0.0-next.9",
71
+ "@elliemae/ds-button": "2.0.0-rc.12",
72
+ "@elliemae/ds-classnames": "2.0.0-rc.12",
73
+ "@elliemae/ds-form": "2.0.0-rc.12",
74
+ "@elliemae/ds-grid": "2.0.0-rc.12",
75
+ "@elliemae/ds-header": "2.0.0-rc.12",
76
+ "@elliemae/ds-icons": "2.0.0-rc.12",
77
+ "@elliemae/ds-separator": "2.0.0-rc.12",
78
+ "@elliemae/ds-system": "2.0.0-rc.12",
79
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.12",
80
80
  "react-desc": "~4.1.3"
81
81
  },
82
82
  "devDependencies": {
83
- "styled-components": "~5.3.1"
83
+ "@testing-library/jest-dom": "~5.15.0",
84
+ "@testing-library/react": "~12.1.2",
85
+ "styled-components": "~5.3.3"
84
86
  },
85
87
  "peerDependencies": {
86
88
  "lodash": "^4.17.21",
87
89
  "react": "^17.0.2",
88
90
  "react-dom": "^17.0.2",
89
- "styled-components": "^5.3.1"
91
+ "styled-components": "^5.3.3"
90
92
  },
91
93
  "publishConfig": {
92
94
  "access": "public",
package/types/DSCard.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCard: {
3
4
  ({ innerRef, children, containerProps, ...otherProps }: {
@@ -8,17 +9,41 @@ declare const DSCard: {
8
9
  }): JSX.Element;
9
10
  propTypes: {
10
11
  /** inject props to component wrapper */
11
- containerProps: any;
12
+ containerProps: {
13
+ defaultValue<T = unknown>(arg: T): {
14
+ deprecated: import("react-desc").PropTypesDescValidator;
15
+ };
16
+ isRequired: import("react-desc").PropTypesDescValidator;
17
+ };
12
18
  /**
13
19
  * Get reference for the button
14
20
  */
15
- innerRef: any;
21
+ innerRef: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
16
27
  /**
17
28
  * DSCardBody and DSCardHeader
18
29
  */
19
- children: any;
30
+ children: {
31
+ defaultValue<T = unknown>(arg: T): {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ isRequired: import("react-desc").PropTypesDescValidator;
35
+ };
20
36
  };
21
37
  };
22
- declare const DSCardWithSchema: any;
38
+ declare const DSCardWithSchema: {
39
+ (props?: {
40
+ [x: string]: any;
41
+ innerRef?: undefined;
42
+ children?: null | undefined;
43
+ containerProps?: {} | undefined;
44
+ } | undefined): JSX.Element;
45
+ propTypes: unknown;
46
+ toTypescript: () => import("react-desc").TypescriptSchema;
47
+ };
23
48
  export { DSCard, DSCardWithSchema };
24
49
  export default DSCard;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCardBody: {
3
4
  ({ children }: {
@@ -5,9 +6,20 @@ declare const DSCardBody: {
5
6
  }): JSX.Element;
6
7
  propTypes: {
7
8
  /** children */
8
- children: any;
9
+ children: {
10
+ defaultValue<T = unknown>(arg: T): {
11
+ deprecated: import("react-desc").PropTypesDescValidator;
12
+ };
13
+ isRequired: import("react-desc").PropTypesDescValidator;
14
+ };
9
15
  };
10
16
  };
11
- declare const DSCardBodyWithSchema: any;
17
+ declare const DSCardBodyWithSchema: {
18
+ (props?: {
19
+ children: any;
20
+ } | undefined): JSX.Element;
21
+ propTypes: unknown;
22
+ toTypescript: () => import("react-desc").TypescriptSchema;
23
+ };
12
24
  export { DSCardBody, DSCardBodyWithSchema };
13
25
  export default DSCardBody;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCardHeader: {
3
4
  ({ title, action }: {
@@ -6,11 +7,28 @@ declare const DSCardHeader: {
6
7
  }): JSX.Element;
7
8
  propTypes: {
8
9
  /** card header title */
9
- title: any;
10
+ title: {
11
+ defaultValue<T = unknown>(arg: T): {
12
+ deprecated: import("react-desc").PropTypesDescValidator;
13
+ };
14
+ isRequired: import("react-desc").PropTypesDescValidator;
15
+ };
10
16
  /** action */
11
- action: any;
17
+ action: {
18
+ defaultValue<T = unknown>(arg: T): {
19
+ deprecated: import("react-desc").PropTypesDescValidator;
20
+ };
21
+ isRequired: import("react-desc").PropTypesDescValidator;
22
+ };
12
23
  };
13
24
  };
14
- declare const DSCardHeaderWithSchema: any;
25
+ declare const DSCardHeaderWithSchema: {
26
+ (props?: {
27
+ title: any;
28
+ action: any;
29
+ } | undefined): JSX.Element;
30
+ propTypes: unknown;
31
+ toTypescript: () => import("react-desc").TypescriptSchema;
32
+ };
15
33
  export { DSCardHeader, DSCardHeaderWithSchema };
16
34
  export default DSCardHeader;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DetailCard: {
3
4
  ({ title, description, descriptionColor, rightValue, rightDescription, rightAddon, selectable, isSelected, onSelect, expandable, isExpanded, onExpand, expandContent, readOnly, disabled, }: {
@@ -25,61 +26,151 @@ declare const DetailCard: {
25
26
  /**
26
27
  * Description of the card.
27
28
  */
28
- description: any;
29
+ description: {
30
+ defaultValue<T = unknown>(arg: T): {
31
+ deprecated: import("react-desc").PropTypesDescValidator;
32
+ };
33
+ isRequired: import("react-desc").PropTypesDescValidator;
34
+ };
29
35
  /**
30
36
  * Description color.
31
37
  */
32
- descriptionColor: any;
38
+ descriptionColor: {
39
+ defaultValue<T = unknown>(arg: T): {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ isRequired: import("react-desc").PropTypesDescValidator;
43
+ };
33
44
  /**
34
45
  * Right value (should be used with `rightDescription`)
35
46
  */
36
- rightValue: any;
47
+ rightValue: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
37
53
  /**
38
54
  * Right description (should be used with `rightValue`)
39
55
  */
40
- rightDescription: any;
56
+ rightDescription: {
57
+ defaultValue<T = unknown>(arg: T): {
58
+ deprecated: import("react-desc").PropTypesDescValidator;
59
+ };
60
+ isRequired: import("react-desc").PropTypesDescValidator;
61
+ };
41
62
  /**
42
63
  * Right addon array, max elements: 2
43
64
  */
44
- rightAddon: any;
65
+ rightAddon: {
66
+ defaultValue<T = unknown>(arg: T): {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ isRequired: import("react-desc").PropTypesDescValidator;
70
+ };
45
71
  /**
46
72
  * Whether if the card is selectable or not
47
73
  */
48
- selectable: any;
74
+ selectable: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
49
80
  /**
50
81
  * Whether if the card is selected or not
51
82
  */
52
- isSelected: any;
83
+ isSelected: {
84
+ defaultValue<T = unknown>(arg: T): {
85
+ deprecated: import("react-desc").PropTypesDescValidator;
86
+ };
87
+ isRequired: import("react-desc").PropTypesDescValidator;
88
+ };
53
89
  /**
54
90
  * Callback on selection
55
91
  */
56
- onSelect: any;
92
+ onSelect: {
93
+ defaultValue<T = unknown>(arg: T): {
94
+ deprecated: import("react-desc").PropTypesDescValidator;
95
+ };
96
+ isRequired: import("react-desc").PropTypesDescValidator;
97
+ };
57
98
  /**
58
99
  * Whether if the card is expandable or not
59
100
  */
60
- expandable: any;
101
+ expandable: {
102
+ defaultValue<T = unknown>(arg: T): {
103
+ deprecated: import("react-desc").PropTypesDescValidator;
104
+ };
105
+ isRequired: import("react-desc").PropTypesDescValidator;
106
+ };
61
107
  /**
62
108
  * Whether if the card is expanded or not
63
109
  */
64
- isExpanded: any;
110
+ isExpanded: {
111
+ defaultValue<T = unknown>(arg: T): {
112
+ deprecated: import("react-desc").PropTypesDescValidator;
113
+ };
114
+ isRequired: import("react-desc").PropTypesDescValidator;
115
+ };
65
116
  /**
66
117
  * Callback on expand
67
118
  */
68
- onExpand: any;
119
+ onExpand: {
120
+ defaultValue<T = unknown>(arg: T): {
121
+ deprecated: import("react-desc").PropTypesDescValidator;
122
+ };
123
+ isRequired: import("react-desc").PropTypesDescValidator;
124
+ };
69
125
  /**
70
126
  * Content
71
127
  */
72
- expandContent: any;
128
+ expandContent: {
129
+ defaultValue<T = unknown>(arg: T): {
130
+ deprecated: import("react-desc").PropTypesDescValidator;
131
+ };
132
+ isRequired: import("react-desc").PropTypesDescValidator;
133
+ };
73
134
  /**
74
135
  * Read only
75
136
  */
76
- readOnly: any;
137
+ readOnly: {
138
+ defaultValue<T = unknown>(arg: T): {
139
+ deprecated: import("react-desc").PropTypesDescValidator;
140
+ };
141
+ isRequired: import("react-desc").PropTypesDescValidator;
142
+ };
77
143
  /**
78
144
  * Disabled
79
145
  */
80
- disabled: any;
146
+ disabled: {
147
+ defaultValue<T = unknown>(arg: T): {
148
+ deprecated: import("react-desc").PropTypesDescValidator;
149
+ };
150
+ isRequired: import("react-desc").PropTypesDescValidator;
151
+ };
81
152
  };
82
153
  };
83
- declare const DSCardDetailWithSchema: any;
154
+ declare const DSCardDetailWithSchema: {
155
+ (props?: {
156
+ title: any;
157
+ description: any;
158
+ descriptionColor?: string | undefined;
159
+ rightValue: any;
160
+ rightDescription: any;
161
+ rightAddon: any;
162
+ selectable?: boolean | undefined;
163
+ isSelected?: boolean | undefined;
164
+ onSelect?: ((...args: any[]) => void) | undefined;
165
+ expandable?: boolean | undefined;
166
+ isExpanded?: boolean | undefined;
167
+ onExpand?: ((...args: any[]) => void) | undefined;
168
+ expandContent: any;
169
+ readOnly?: boolean | undefined;
170
+ disabled?: boolean | undefined;
171
+ } | undefined): JSX.Element;
172
+ propTypes: unknown;
173
+ toTypescript: () => import("react-desc").TypescriptSchema;
174
+ };
84
175
  export { DetailCard, DSCardDetailWithSchema };
85
176
  export default DetailCard;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
4
- export declare const Description: import("styled-components").StyledComponent<"p", any, {}, never>;
5
- export declare const RightAddon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
6
- export declare const RightDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
7
- export declare const RightValue: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
8
- export declare const ExpandContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const RightAddon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const RightDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const RightValue: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const ExpandContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const Container: any;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const ActionAddon: {
3
4
  ({ label, onClick, icon }: {
@@ -9,17 +10,40 @@ declare const ActionAddon: {
9
10
  /**
10
11
  * Addon label
11
12
  */
12
- label: any;
13
+ label: {
14
+ defaultValue<T = unknown>(arg: T): {
15
+ deprecated: import("react-desc").PropTypesDescValidator;
16
+ };
17
+ isRequired: import("react-desc").PropTypesDescValidator;
18
+ };
13
19
  /**
14
20
  * On click callback
15
21
  */
16
- onClick: any;
22
+ onClick: {
23
+ defaultValue<T = unknown>(arg: T): {
24
+ deprecated: import("react-desc").PropTypesDescValidator;
25
+ };
26
+ isRequired: import("react-desc").PropTypesDescValidator;
27
+ };
17
28
  /**
18
29
  * Icon to display after the label
19
30
  */
20
- icon: any;
31
+ icon: {
32
+ defaultValue<T = unknown>(arg: T): {
33
+ deprecated: import("react-desc").PropTypesDescValidator;
34
+ };
35
+ isRequired: import("react-desc").PropTypesDescValidator;
36
+ };
21
37
  };
22
38
  };
23
- declare const DSCardActionAddonWithSchema: any;
39
+ declare const DSCardActionAddonWithSchema: {
40
+ (props?: {
41
+ label: any;
42
+ onClick: any;
43
+ icon: any;
44
+ } | undefined): JSX.Element;
45
+ propTypes: unknown;
46
+ toTypescript: () => import("react-desc").TypescriptSchema;
47
+ };
24
48
  export { ActionAddon, DSCardActionAddonWithSchema };
25
49
  export default ActionAddon;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const CustomCard: {
3
4
  ({ title, description, leftAddon, rightAddon, hasBorder, }: {
@@ -15,21 +16,51 @@ declare const CustomCard: {
15
16
  /**
16
17
  * Description of the card. not requiered
17
18
  */
18
- description: any;
19
+ description: {
20
+ defaultValue<T = unknown>(arg: T): {
21
+ deprecated: import("react-desc").PropTypesDescValidator;
22
+ };
23
+ isRequired: import("react-desc").PropTypesDescValidator;
24
+ };
19
25
  /**
20
26
  * Left Addon
21
27
  */
22
- leftAddon: any;
28
+ leftAddon: {
29
+ defaultValue<T = unknown>(arg: T): {
30
+ deprecated: import("react-desc").PropTypesDescValidator;
31
+ };
32
+ isRequired: import("react-desc").PropTypesDescValidator;
33
+ };
23
34
  /**
24
35
  * Right addon array, max elements: 2
25
36
  */
26
- rightAddon: any;
37
+ rightAddon: {
38
+ defaultValue<T = unknown>(arg: T): {
39
+ deprecated: import("react-desc").PropTypesDescValidator;
40
+ };
41
+ isRequired: import("react-desc").PropTypesDescValidator;
42
+ };
27
43
  /**
28
44
  * Wheter if the card has border or not
29
45
  */
30
- hasBorder: any;
46
+ hasBorder: {
47
+ defaultValue<T = unknown>(arg: T): {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ isRequired: import("react-desc").PropTypesDescValidator;
51
+ };
31
52
  };
32
53
  };
33
- declare const DSCardCustomWithSchema: any;
54
+ declare const DSCardCustomWithSchema: {
55
+ (props?: {
56
+ title: any;
57
+ description: any;
58
+ leftAddon: any;
59
+ rightAddon: any;
60
+ hasBorder?: boolean | undefined;
61
+ } | undefined): JSX.Element;
62
+ propTypes: unknown;
63
+ toTypescript: () => import("react-desc").TypescriptSchema;
64
+ };
34
65
  export { CustomCard, DSCardCustomWithSchema };
35
66
  export default CustomCard;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const CardGroup: {
3
4
  ({ children, title, action }: {
@@ -17,9 +18,22 @@ declare const CardGroup: {
17
18
  /**
18
19
  * Right addon action
19
20
  */
20
- action: any;
21
+ action: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
21
27
  };
22
28
  };
23
- declare const DSCardGroupWithSchema: any;
29
+ declare const DSCardGroupWithSchema: {
30
+ (props?: {
31
+ children: any;
32
+ title: any;
33
+ action: any;
34
+ } | undefined): JSX.Element;
35
+ propTypes: unknown;
36
+ toTypescript: () => import("react-desc").TypescriptSchema;
37
+ };
24
38
  export { CardGroup, DSCardGroupWithSchema };
25
39
  export default CardGroup;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>, any, {}, never>;
3
- declare const LeftSection: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- declare const LeftAddon: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- declare const RightAddonSection: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- declare const RightAddon: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- declare const MainSection: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
10
- declare const Description: import("styled-components").StyledComponent<"p", any, {}, never>;
2
+ declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const LeftSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ declare const LeftAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ declare const RightAddonSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ declare const RightAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ declare const MainSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
10
+ declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
11
11
  export { CardContainer, LeftSection, LeftAddon, RightAddonSection, RightAddon, Separator, MainSection, Title, Description, };