@elliemae/ds-card 2.0.1 → 2.1.0-rc.10

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
@@ -23,9 +23,9 @@ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_obje
23
23
 
24
24
  const _excluded = ["innerRef", "children", "containerProps"];
25
25
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
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
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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__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; }
29
29
 
30
30
  const DSCard = _ref => {
31
31
  let {
package/esm/DSCard.js CHANGED
@@ -14,9 +14,9 @@ import { jsx } from 'react/jsx-runtime';
14
14
 
15
15
  const _excluded = ["innerRef", "children", "containerProps"];
16
16
 
17
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
17
+ 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; }
18
18
 
19
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
19
+ 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; }
20
20
 
21
21
  const DSCard = _ref => {
22
22
  let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-card",
3
- "version": "2.0.1",
3
+ "version": "2.1.0-rc.10",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card",
6
6
  "module": "./esm/index.js",
@@ -68,15 +68,15 @@
68
68
  "build": "node ../../scripts/build/build.js"
69
69
  },
70
70
  "dependencies": {
71
- "@elliemae/ds-button": "2.0.1",
72
- "@elliemae/ds-classnames": "2.0.1",
73
- "@elliemae/ds-form": "2.0.1",
74
- "@elliemae/ds-grid": "2.0.1",
75
- "@elliemae/ds-header": "2.0.1",
76
- "@elliemae/ds-icons": "2.0.1",
77
- "@elliemae/ds-separator": "2.0.1",
78
- "@elliemae/ds-system": "2.0.1",
79
- "@elliemae/ds-truncated-tooltip-text": "2.0.1",
71
+ "@elliemae/ds-button": "2.1.0-rc.10",
72
+ "@elliemae/ds-classnames": "2.1.0-rc.10",
73
+ "@elliemae/ds-form": "2.1.0-rc.10",
74
+ "@elliemae/ds-grid": "2.1.0-rc.10",
75
+ "@elliemae/ds-header": "2.1.0-rc.10",
76
+ "@elliemae/ds-icons": "2.1.0-rc.10",
77
+ "@elliemae/ds-separator": "2.1.0-rc.10",
78
+ "@elliemae/ds-system": "2.1.0-rc.10",
79
+ "@elliemae/ds-truncated-tooltip-text": "2.1.0-rc.10",
80
80
  "react-desc": "~4.1.3"
81
81
  },
82
82
  "devDependencies": {
package/types/DSCard.d.ts CHANGED
@@ -10,28 +10,28 @@ declare const DSCard: {
10
10
  propTypes: {
11
11
  /** inject props to component wrapper */
12
12
  containerProps: {
13
- defaultValue<T = unknown>(arg: T): {
13
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
14
14
  deprecated: import("react-desc").PropTypesDescValidator;
15
15
  };
16
- isRequired: import("react-desc").PropTypesDescValidator;
16
+ isRequired: import("react-desc").PropTypesDescValue;
17
17
  };
18
18
  /**
19
19
  * Get reference for the button
20
20
  */
21
21
  innerRef: {
22
- defaultValue<T = unknown>(arg: T): {
22
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
23
  deprecated: import("react-desc").PropTypesDescValidator;
24
24
  };
25
- isRequired: import("react-desc").PropTypesDescValidator;
25
+ isRequired: import("react-desc").PropTypesDescValue;
26
26
  };
27
27
  /**
28
28
  * DSCardBody and DSCardHeader
29
29
  */
30
30
  children: {
31
- defaultValue<T = unknown>(arg: T): {
31
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
32
32
  deprecated: import("react-desc").PropTypesDescValidator;
33
33
  };
34
- isRequired: import("react-desc").PropTypesDescValidator;
34
+ isRequired: import("react-desc").PropTypesDescValue;
35
35
  };
36
36
  };
37
37
  };
@@ -7,10 +7,10 @@ declare const DSCardBody: {
7
7
  propTypes: {
8
8
  /** children */
9
9
  children: {
10
- defaultValue<T = unknown>(arg: T): {
10
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
11
11
  deprecated: import("react-desc").PropTypesDescValidator;
12
12
  };
13
- isRequired: import("react-desc").PropTypesDescValidator;
13
+ isRequired: import("react-desc").PropTypesDescValue;
14
14
  };
15
15
  };
16
16
  };
@@ -8,17 +8,17 @@ declare const DSCardHeader: {
8
8
  propTypes: {
9
9
  /** card header title */
10
10
  title: {
11
- defaultValue<T = unknown>(arg: T): {
11
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
12
12
  deprecated: import("react-desc").PropTypesDescValidator;
13
13
  };
14
- isRequired: import("react-desc").PropTypesDescValidator;
14
+ isRequired: import("react-desc").PropTypesDescValue;
15
15
  };
16
16
  /** action */
17
17
  action: {
18
- defaultValue<T = unknown>(arg: T): {
18
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
19
19
  deprecated: import("react-desc").PropTypesDescValidator;
20
20
  };
21
- isRequired: import("react-desc").PropTypesDescValidator;
21
+ isRequired: import("react-desc").PropTypesDescValue;
22
22
  };
23
23
  };
24
24
  };
@@ -27,127 +27,127 @@ declare const DetailCard: {
27
27
  * Description of the card.
28
28
  */
29
29
  description: {
30
- defaultValue<T = unknown>(arg: T): {
30
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
31
31
  deprecated: import("react-desc").PropTypesDescValidator;
32
32
  };
33
- isRequired: import("react-desc").PropTypesDescValidator;
33
+ isRequired: import("react-desc").PropTypesDescValue;
34
34
  };
35
35
  /**
36
36
  * Description color.
37
37
  */
38
38
  descriptionColor: {
39
- defaultValue<T = unknown>(arg: T): {
39
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
40
40
  deprecated: import("react-desc").PropTypesDescValidator;
41
41
  };
42
- isRequired: import("react-desc").PropTypesDescValidator;
42
+ isRequired: import("react-desc").PropTypesDescValue;
43
43
  };
44
44
  /**
45
45
  * Right value (should be used with `rightDescription`)
46
46
  */
47
47
  rightValue: {
48
- defaultValue<T = unknown>(arg: T): {
48
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
49
49
  deprecated: import("react-desc").PropTypesDescValidator;
50
50
  };
51
- isRequired: import("react-desc").PropTypesDescValidator;
51
+ isRequired: import("react-desc").PropTypesDescValue;
52
52
  };
53
53
  /**
54
54
  * Right description (should be used with `rightValue`)
55
55
  */
56
56
  rightDescription: {
57
- defaultValue<T = unknown>(arg: T): {
57
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
58
58
  deprecated: import("react-desc").PropTypesDescValidator;
59
59
  };
60
- isRequired: import("react-desc").PropTypesDescValidator;
60
+ isRequired: import("react-desc").PropTypesDescValue;
61
61
  };
62
62
  /**
63
63
  * Right addon array, max elements: 2
64
64
  */
65
65
  rightAddon: {
66
- defaultValue<T = unknown>(arg: T): {
66
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
67
67
  deprecated: import("react-desc").PropTypesDescValidator;
68
68
  };
69
- isRequired: import("react-desc").PropTypesDescValidator;
69
+ isRequired: import("react-desc").PropTypesDescValue;
70
70
  };
71
71
  /**
72
72
  * Whether if the card is selectable or not
73
73
  */
74
74
  selectable: {
75
- defaultValue<T = unknown>(arg: T): {
75
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
76
76
  deprecated: import("react-desc").PropTypesDescValidator;
77
77
  };
78
- isRequired: import("react-desc").PropTypesDescValidator;
78
+ isRequired: import("react-desc").PropTypesDescValue;
79
79
  };
80
80
  /**
81
81
  * Whether if the card is selected or not
82
82
  */
83
83
  isSelected: {
84
- defaultValue<T = unknown>(arg: T): {
84
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
85
85
  deprecated: import("react-desc").PropTypesDescValidator;
86
86
  };
87
- isRequired: import("react-desc").PropTypesDescValidator;
87
+ isRequired: import("react-desc").PropTypesDescValue;
88
88
  };
89
89
  /**
90
90
  * Callback on selection
91
91
  */
92
92
  onSelect: {
93
- defaultValue<T = unknown>(arg: T): {
93
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
94
94
  deprecated: import("react-desc").PropTypesDescValidator;
95
95
  };
96
- isRequired: import("react-desc").PropTypesDescValidator;
96
+ isRequired: import("react-desc").PropTypesDescValue;
97
97
  };
98
98
  /**
99
99
  * Whether if the card is expandable or not
100
100
  */
101
101
  expandable: {
102
- defaultValue<T = unknown>(arg: T): {
102
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
103
103
  deprecated: import("react-desc").PropTypesDescValidator;
104
104
  };
105
- isRequired: import("react-desc").PropTypesDescValidator;
105
+ isRequired: import("react-desc").PropTypesDescValue;
106
106
  };
107
107
  /**
108
108
  * Whether if the card is expanded or not
109
109
  */
110
110
  isExpanded: {
111
- defaultValue<T = unknown>(arg: T): {
111
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
112
112
  deprecated: import("react-desc").PropTypesDescValidator;
113
113
  };
114
- isRequired: import("react-desc").PropTypesDescValidator;
114
+ isRequired: import("react-desc").PropTypesDescValue;
115
115
  };
116
116
  /**
117
117
  * Callback on expand
118
118
  */
119
119
  onExpand: {
120
- defaultValue<T = unknown>(arg: T): {
120
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
121
121
  deprecated: import("react-desc").PropTypesDescValidator;
122
122
  };
123
- isRequired: import("react-desc").PropTypesDescValidator;
123
+ isRequired: import("react-desc").PropTypesDescValue;
124
124
  };
125
125
  /**
126
126
  * Content
127
127
  */
128
128
  expandContent: {
129
- defaultValue<T = unknown>(arg: T): {
129
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
130
130
  deprecated: import("react-desc").PropTypesDescValidator;
131
131
  };
132
- isRequired: import("react-desc").PropTypesDescValidator;
132
+ isRequired: import("react-desc").PropTypesDescValue;
133
133
  };
134
134
  /**
135
135
  * Read only
136
136
  */
137
137
  readOnly: {
138
- defaultValue<T = unknown>(arg: T): {
138
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
139
139
  deprecated: import("react-desc").PropTypesDescValidator;
140
140
  };
141
- isRequired: import("react-desc").PropTypesDescValidator;
141
+ isRequired: import("react-desc").PropTypesDescValue;
142
142
  };
143
143
  /**
144
144
  * Disabled
145
145
  */
146
146
  disabled: {
147
- defaultValue<T = unknown>(arg: T): {
147
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
148
148
  deprecated: import("react-desc").PropTypesDescValidator;
149
149
  };
150
- isRequired: import("react-desc").PropTypesDescValidator;
150
+ isRequired: import("react-desc").PropTypesDescValue;
151
151
  };
152
152
  };
153
153
  };
@@ -11,28 +11,28 @@ declare const ActionAddon: {
11
11
  * Addon label
12
12
  */
13
13
  label: {
14
- defaultValue<T = unknown>(arg: T): {
14
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
15
15
  deprecated: import("react-desc").PropTypesDescValidator;
16
16
  };
17
- isRequired: import("react-desc").PropTypesDescValidator;
17
+ isRequired: import("react-desc").PropTypesDescValue;
18
18
  };
19
19
  /**
20
20
  * On click callback
21
21
  */
22
22
  onClick: {
23
- defaultValue<T = unknown>(arg: T): {
23
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
24
  deprecated: import("react-desc").PropTypesDescValidator;
25
25
  };
26
- isRequired: import("react-desc").PropTypesDescValidator;
26
+ isRequired: import("react-desc").PropTypesDescValue;
27
27
  };
28
28
  /**
29
29
  * Icon to display after the label
30
30
  */
31
31
  icon: {
32
- defaultValue<T = unknown>(arg: T): {
32
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
33
33
  deprecated: import("react-desc").PropTypesDescValidator;
34
34
  };
35
- isRequired: import("react-desc").PropTypesDescValidator;
35
+ isRequired: import("react-desc").PropTypesDescValue;
36
36
  };
37
37
  };
38
38
  };
@@ -17,37 +17,37 @@ declare const CustomCard: {
17
17
  * Description of the card. not requiered
18
18
  */
19
19
  description: {
20
- defaultValue<T = unknown>(arg: T): {
20
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
21
21
  deprecated: import("react-desc").PropTypesDescValidator;
22
22
  };
23
- isRequired: import("react-desc").PropTypesDescValidator;
23
+ isRequired: import("react-desc").PropTypesDescValue;
24
24
  };
25
25
  /**
26
26
  * Left Addon
27
27
  */
28
28
  leftAddon: {
29
- defaultValue<T = unknown>(arg: T): {
29
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
30
30
  deprecated: import("react-desc").PropTypesDescValidator;
31
31
  };
32
- isRequired: import("react-desc").PropTypesDescValidator;
32
+ isRequired: import("react-desc").PropTypesDescValue;
33
33
  };
34
34
  /**
35
35
  * Right addon array, max elements: 2
36
36
  */
37
37
  rightAddon: {
38
- defaultValue<T = unknown>(arg: T): {
38
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
39
39
  deprecated: import("react-desc").PropTypesDescValidator;
40
40
  };
41
- isRequired: import("react-desc").PropTypesDescValidator;
41
+ isRequired: import("react-desc").PropTypesDescValue;
42
42
  };
43
43
  /**
44
44
  * Wheter if the card has border or not
45
45
  */
46
46
  hasBorder: {
47
- defaultValue<T = unknown>(arg: T): {
47
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
48
48
  deprecated: import("react-desc").PropTypesDescValidator;
49
49
  };
50
- isRequired: import("react-desc").PropTypesDescValidator;
50
+ isRequired: import("react-desc").PropTypesDescValue;
51
51
  };
52
52
  };
53
53
  };
@@ -19,10 +19,10 @@ declare const CardGroup: {
19
19
  * Right addon action
20
20
  */
21
21
  action: {
22
- defaultValue<T = unknown>(arg: T): {
22
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
23
  deprecated: import("react-desc").PropTypesDescValidator;
24
24
  };
25
- isRequired: import("react-desc").PropTypesDescValidator;
25
+ isRequired: import("react-desc").PropTypesDescValue;
26
26
  };
27
27
  };
28
28
  };