@elliemae/ds-mobile 2.0.0-rc.9 → 2.0.2
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/FullPageContainer/FullPageContainer.js +2 -2
- package/cjs/FullPageContainer/FullPageContainerScroll.js +2 -2
- package/cjs/GlobalHeader/MobileGlobalHeader.js +2 -2
- package/cjs/LoadingPage/Page.js +2 -2
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +2 -2
- package/cjs/MobileBanner/MobileBanner.js +2 -2
- package/cjs/MobileCard/Card.js +9 -60
- package/cjs/MobileCard/props.js +62 -0
- package/cjs/MobileContextMenu/MobileContextMenu.js +2 -2
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +2 -2
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +2 -2
- package/cjs/MobileDatePicker/Input.js +2 -2
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +2 -2
- package/cjs/MobileSelectList/MobileSelectList.js +2 -2
- package/cjs/MobileSeparator/Separator.js +2 -2
- package/cjs/MobileTimePicker/Input.js +2 -2
- package/cjs/MobileTouchable/MobileTouchable.js +2 -2
- package/cjs/Modal/Modal.js +2 -2
- package/cjs/Tabs/index.js +10 -4
- package/cjs/Tabs/propTypes.js +28 -0
- package/cjs/index.js +2 -0
- package/esm/FullPageContainer/FullPageContainer.js +2 -2
- package/esm/FullPageContainer/FullPageContainerScroll.js +2 -2
- package/esm/GlobalHeader/MobileGlobalHeader.js +2 -2
- package/esm/LoadingPage/Page.js +2 -2
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js +2 -2
- package/esm/MobileBanner/MobileBanner.js +2 -2
- package/esm/MobileCard/Card.js +10 -61
- package/esm/MobileCard/props.js +58 -0
- package/esm/MobileContextMenu/MobileContextMenu.js +2 -2
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +2 -2
- package/esm/MobileContextMenu/MobileContextMenuItem.js +2 -2
- package/esm/MobileDatePicker/Input.js +2 -2
- package/esm/MobileDropdownMenu/MobileDropdownInput.js +2 -2
- package/esm/MobileSelectList/MobileSelectList.js +2 -2
- package/esm/MobileSeparator/Separator.js +2 -2
- package/esm/MobileTimePicker/Input.js +2 -2
- package/esm/MobileTouchable/MobileTouchable.js +2 -2
- package/esm/Modal/Modal.js +2 -2
- package/esm/Tabs/index.js +9 -5
- package/esm/Tabs/propTypes.js +23 -0
- package/esm/index.js +1 -1
- package/package.json +23 -15
- package/types/MobileCard/Card.d.ts +14 -17
- package/types/MobileCard/ExpandableRegion.d.ts +2 -2
- package/types/MobileCard/StyledCard.d.ts +3 -1
- package/types/MobileCard/index.d.ts +12 -3
- package/types/MobileCard/props.d.ts +118 -0
- package/types/Tabs/index.d.ts +24 -9
- package/types/Tabs/propTypes.d.ts +42 -0
|
@@ -12,9 +12,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
12
12
|
|
|
13
13
|
const _excluded = ["icon"];
|
|
14
14
|
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
15
|
+
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; }
|
|
16
16
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
17
|
+
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; }
|
|
18
18
|
|
|
19
19
|
const ToolbarItem = _ref => {
|
|
20
20
|
let {
|
|
@@ -17,9 +17,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
17
17
|
|
|
18
18
|
var _CloseX;
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
const DSMobileBanner = _ref => {
|
|
25
25
|
let {
|
package/esm/MobileCard/Card.js
CHANGED
|
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
|
2
2
|
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
3
|
import 'core-js/modules/esnext.iterator.map.js';
|
|
4
4
|
import { useRef } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { describe } from 'react-desc';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { padding } from 'styled-system';
|
|
8
8
|
import { truncate, toMobile, color, __UNSAFE_SPACE_TO_DIMSUM, border, withTheme, op } from '@elliemae/ds-system';
|
|
@@ -12,6 +12,7 @@ import { StyledCard } from './StyledCard.js';
|
|
|
12
12
|
import { ExpandChevron } from './ExpandChevron.js';
|
|
13
13
|
import { useHeight } from './useHeight.js';
|
|
14
14
|
import { ExpandableRegion } from './ExpandableRegion.js';
|
|
15
|
+
import { cardPropsTypes } from './props.js';
|
|
15
16
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
17
|
|
|
17
18
|
const TitleEllipsis = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -19,7 +20,7 @@ const TitleEllipsis = /*#__PURE__*/styled.div.withConfig({
|
|
|
19
20
|
})(["", ""], truncate());
|
|
20
21
|
const Title = /*#__PURE__*/styled.div.withConfig({
|
|
21
22
|
componentId: "sc-10tpzm8-1"
|
|
22
|
-
})(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], padding, truncate(), props => props.theme.fontWeights.semibold, props => toMobile(props.theme.fontSizes.title[600]), color('neutral',
|
|
23
|
+
})(["", " ", " font-weight:", ";font-size:", ";width:100%;", ""], padding, truncate(), props => props.theme.fontWeights.semibold, props => toMobile(props.theme.fontSizes.title[600]), color('neutral', 800));
|
|
23
24
|
const Detail = /*#__PURE__*/styled.span.withConfig({
|
|
24
25
|
componentId: "sc-10tpzm8-2"
|
|
25
26
|
})(["", " ", " font-size:", ";font-weight:", ";"], padding, truncate(), props => toMobile(props.theme.fontSizes.title[500]), props => props.theme.fontWeights.regular);
|
|
@@ -28,7 +29,7 @@ const SubText = /*#__PURE__*/styled.span.withConfig({
|
|
|
28
29
|
})(["margin-top:", ";", " &:nth-child(2){padding-left:", ";}"], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), truncate(), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.s));
|
|
29
30
|
const SubTextWrap = /*#__PURE__*/styled.div.withConfig({
|
|
30
31
|
componentId: "sc-10tpzm8-4"
|
|
31
|
-
})(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], truncate(), props => border(props.theme.colors.neutral['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => toMobile(props.theme.fontSizes.subTitle[400]), color('neutral',
|
|
32
|
+
})(["", " border-top:", ";margin-top:6px;margin-bottom:2px;padding-bottom:", ";font-size:", ";", " font-weight:", ";display:flex;justify-content:space-between;"], truncate(), props => border(props.theme.colors.neutral['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => toMobile(props.theme.fontSizes.subTitle[400]), color('neutral', 500), props => props.theme.fontWeights.regular);
|
|
32
33
|
const LeftIcon = /*#__PURE__*/styled(Grid).withConfig({
|
|
33
34
|
componentId: "sc-10tpzm8-5"
|
|
34
35
|
})(["& > span{height:", ";width:", ";}& > span > svg,svg:not([fill]){height:", ";width:", ";}"], props => props.halfM, props => props.halfM, props => props.halfM, props => props.halfM);
|
|
@@ -37,7 +38,7 @@ const CenterWrap = /*#__PURE__*/styled.div.withConfig({
|
|
|
37
38
|
})(["display:flex;align-items:center;", ""], truncate());
|
|
38
39
|
|
|
39
40
|
const MobileCard = _ref => {
|
|
40
|
-
var _TitleEllipsis, _SubText;
|
|
41
|
+
var _TitleEllipsis, _SubText, _Grid;
|
|
41
42
|
|
|
42
43
|
let {
|
|
43
44
|
children,
|
|
@@ -51,7 +52,8 @@ const MobileCard = _ref => {
|
|
|
51
52
|
theme,
|
|
52
53
|
expandable = false,
|
|
53
54
|
expandedContent,
|
|
54
|
-
value
|
|
55
|
+
value,
|
|
56
|
+
cardContent
|
|
55
57
|
} = _ref;
|
|
56
58
|
const subTextRef = useRef(null);
|
|
57
59
|
const subTextHeight = useHeight(subTextRef);
|
|
@@ -98,7 +100,7 @@ const MobileCard = _ref => {
|
|
|
98
100
|
}, void 0, _TitleEllipsis || (_TitleEllipsis = /*#__PURE__*/_jsx(TitleEllipsis, {}, void 0, children)), details && /*#__PURE__*/_jsx(Grid, {
|
|
99
101
|
"data-testid": "card-details",
|
|
100
102
|
cols: details.map(() => 'min-content'),
|
|
101
|
-
mb: !(subText || subIcons) && halfM,
|
|
103
|
+
mb: !(subText || subIcons) && halfM || 0,
|
|
102
104
|
pt: op('/', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs), 2)
|
|
103
105
|
}, void 0, details.map((d, i) => /*#__PURE__*/_jsx(Detail, {}, i, d, i < details.length - 1 && /*#__PURE__*/_jsx(Detail, {
|
|
104
106
|
px: __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxs)
|
|
@@ -117,66 +119,13 @@ const MobileCard = _ref => {
|
|
|
117
119
|
}), /*#__PURE__*/_jsx(ExpandableRegion, {
|
|
118
120
|
show: selected,
|
|
119
121
|
content: expandedContent
|
|
120
|
-
})));
|
|
122
|
+
}), cardContent && (_Grid || (_Grid = /*#__PURE__*/_jsx(Grid, {}, void 0, cardContent)))));
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
};
|
|
124
126
|
|
|
125
|
-
const props = {
|
|
126
|
-
/**
|
|
127
|
-
* card height
|
|
128
|
-
*/
|
|
129
|
-
height: PropTypes.oneOf(['s', 'm']).description('card height'),
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Defines mobile card title
|
|
133
|
-
*/
|
|
134
|
-
children: PropTypes.string.isRequired.description('Defines mobile card title'),
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Wheter if the card is expandable or not
|
|
138
|
-
*/
|
|
139
|
-
expandable: PropTypes.bool.description('Wheter if the card is expandable or not'),
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* content to display in expand card section
|
|
143
|
-
*/
|
|
144
|
-
expandedContent: PropTypes.element.description('content to display in expand card section'),
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Icon to the left of the card. Size is adjusted automatically.
|
|
148
|
-
*/
|
|
149
|
-
leftAddOn: PropTypes.element.description('Icon to the left of the card. Size is adjusted automatically.'),
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Pass an element to render left. For example a Button with an icon
|
|
153
|
-
*/
|
|
154
|
-
leftProp: PropTypes.element.description('Pass an element to render left. For example a Button with an icon'),
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Pass an array of 1 or 2 elements to render right. For example a Button with an icon
|
|
158
|
-
*/
|
|
159
|
-
rightProp: PropTypes.arrayOf(PropTypes.element).description('Pass an array of 1 or 2 elements to render right. For example a Button with an icon'),
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Pass an array of 1 or 2 strings
|
|
163
|
-
*/
|
|
164
|
-
subText: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1 or 2 strings'),
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* SubIcons component
|
|
168
|
-
*/
|
|
169
|
-
subIcons: PropTypes.element.description('SubIcons component'),
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Pass an array of 1, 2 or 3 strings
|
|
173
|
-
*/
|
|
174
|
-
details: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1, 2 or 3 strings'),
|
|
175
|
-
theme: PropTypes.object.isRequired.description(''),
|
|
176
|
-
value: PropTypes.number.description('')
|
|
177
|
-
};
|
|
178
127
|
const DSMobileCardWithSchema = describe(MobileCard);
|
|
179
|
-
DSMobileCardWithSchema.propTypes =
|
|
128
|
+
DSMobileCardWithSchema.propTypes = cardPropsTypes;
|
|
180
129
|
var MobileCard$1 = withTheme(MobileCard);
|
|
181
130
|
|
|
182
131
|
export { DSMobileCardWithSchema, MobileCard$1 as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
|
|
3
|
+
const cardPropsTypes = {
|
|
4
|
+
/**
|
|
5
|
+
* card height
|
|
6
|
+
*/
|
|
7
|
+
height: PropTypes.oneOf(['s', 'm']).description('card height'),
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Defines mobile card title
|
|
11
|
+
*/
|
|
12
|
+
children: PropTypes.string.description('Defines mobile card title').isRequired,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Wheter if the card is expandable or not
|
|
16
|
+
*/
|
|
17
|
+
expandable: PropTypes.bool.description('Wheter if the card is expandable or not'),
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* content to display in expand card section
|
|
21
|
+
*/
|
|
22
|
+
expandedContent: PropTypes.element.description('content to display in expand card section'),
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Icon to the left of the card. Size is adjusted automatically.
|
|
26
|
+
*/
|
|
27
|
+
leftAddOn: PropTypes.element.description('Icon to the left of the card. Size is adjusted automatically.'),
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Pass an element to render left. For example a Button with an icon
|
|
31
|
+
*/
|
|
32
|
+
leftProp: PropTypes.element.description('Pass an element to render left. For example a Button with an icon'),
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Pass an array of 1 or 2 elements to render right. For example a Button with an icon
|
|
36
|
+
*/
|
|
37
|
+
rightProp: PropTypes.arrayOf(PropTypes.element).description('Pass an array of 1 or 2 elements to render right. For example a Button with an icon'),
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Pass an array of 1 or 2 strings
|
|
41
|
+
*/
|
|
42
|
+
subText: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1 or 2 strings'),
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* SubIcons component
|
|
46
|
+
*/
|
|
47
|
+
subIcons: PropTypes.element.description('SubIcons component'),
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Pass an array of 1, 2 or 3 strings
|
|
51
|
+
*/
|
|
52
|
+
details: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1, 2 or 3 strings'),
|
|
53
|
+
theme: PropTypes.object.description('').isRequired,
|
|
54
|
+
value: PropTypes.number.description(''),
|
|
55
|
+
cardContent: PropTypes.node.description('JSX content for the card')
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { cardPropsTypes };
|
|
@@ -21,9 +21,9 @@ import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
21
21
|
|
|
22
22
|
var _ContextMenuGroup;
|
|
23
23
|
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
24
|
+
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; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
26
|
+
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; }
|
|
27
27
|
const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
28
28
|
componentId: "sc-15ys5tq-0"
|
|
29
29
|
})(["background:", ";z-index:", ";width:", ";position:fixed;bottom:0;left:", ";max-height:90vh;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 0px 24px 0 rgba(0,0,0,0.5),0 0px 11px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.zIndex, props => "calc(100% - ".concat(props.theme.space.xs, ")"), props => props.theme.space.xxs);
|
|
@@ -13,9 +13,9 @@ import { Grid } from '@elliemae/ds-grid';
|
|
|
13
13
|
import { noop } from 'lodash';
|
|
14
14
|
import { PropTypes, describe } from 'react-desc';
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
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; }
|
|
17
17
|
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
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; }
|
|
19
19
|
const Title = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
componentId: "sc-atfpfh-0"
|
|
21
21
|
})(["height:24px;line-height:24px;font-size:12px;border-top:1px solid ", ";background:", ";padding:0 ", ";color:", ";font-weight:", ";"], props => props.theme.colors.brand['300'], props => props.theme.colors.brand['200'], props => props.theme.space.xs, props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
|
|
@@ -18,9 +18,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
18
18
|
|
|
19
19
|
var _CheckMark;
|
|
20
20
|
|
|
21
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
21
|
+
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; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
23
|
+
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; }
|
|
24
24
|
const Wrap = /*#__PURE__*/styled(props => /*#__PURE__*/jsx(DSMobileTouchable, _objectSpread({}, props))).withConfig({
|
|
25
25
|
componentId: "sc-20od94-0"
|
|
26
26
|
})(["border-bottom:none;"]);
|
|
@@ -12,9 +12,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
12
12
|
|
|
13
13
|
const _excluded = ["innerRef"];
|
|
14
14
|
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
15
|
+
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; }
|
|
16
16
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
17
|
+
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; }
|
|
18
18
|
const StyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
19
19
|
componentId: "sc-1djip5a-0"
|
|
20
20
|
})(["input[type=date]&{-webkit-appearance:none;-moz-appearance:none;-webkit-tap-highlight-color:transparent;appearance:none;color:transparent;white-space:nowrap;position:relative;height:", ";width:100%;max-width:calc(100% - 32px);outline:none;box-sizing:border-box;display:flex;background:", ";padding:0 ", ";z-index:1;border-radius:2px;border:solid 1px ", ";}input[type=date]&:active,input[type=date]&:focus{", "}&:before{color:", ";content:'", "';}input[type=date]&::-webkit-datetime-edit,input[type=date]&::-webkit-inner-spin-button,input[type=date]&::-webkit-clear-button{-webkit-appearance:none;display:none;}"], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.l), props => props.theme.colors.neutral['000'], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), props => props.theme.colors.neutral[200], props => focus(props.theme.colors.brand[700]), props => props.value === '' ? props.theme.colors.neutral['500'] : props.theme.colors.neutral['800'], props => props.value === '' ? props.placeholder : props['data-displayvalue']);
|
|
@@ -11,9 +11,9 @@ import { focus } from '@elliemae/ds-system';
|
|
|
11
11
|
import { ChevronDown } from '@elliemae/ds-icons';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
14
|
+
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; }
|
|
15
15
|
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
16
|
+
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; }
|
|
17
17
|
const MobileDropdownInput = /*#__PURE__*/styled.input.withConfig({
|
|
18
18
|
componentId: "sc-1rsc1yn-0"
|
|
19
19
|
})(["-webkit-appearance:none;-moz-appearance:none;-webkit-tap-highlight-color:transparent;caret-color:transparent;padding-right:32px;padding-left:10px;border-radius:2px;width:100%;background:", ";height:32px;line-height:32px;border:solid 1px ", ";&:active,&:focus{", "}"], props => props.theme.colors.neutral['000'], props => props.theme.colors.neutral[200], props => focus(props.theme.colors.brand[700]));
|
|
@@ -17,9 +17,9 @@ import { DSMobileTouchable } from '../MobileTouchable/MobileTouchable.js';
|
|
|
17
17
|
import { StyledContainer, HeaderContainer, ListContainer, Footer, checked, checkbox, selectedMark } from './styled.js';
|
|
18
18
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
const MobileSelectList = _ref => {
|
|
25
25
|
let {
|
|
@@ -10,9 +10,9 @@ import styled from 'styled-components';
|
|
|
10
10
|
import { Grid } from '@elliemae/ds-grid';
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
13
|
+
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; }
|
|
14
14
|
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
15
|
+
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; }
|
|
16
16
|
const Separator = /*#__PURE__*/styled(Grid).withConfig({
|
|
17
17
|
componentId: "sc-lje3kq-0"
|
|
18
18
|
})(["border-top:", ";border-left:", ";"], _ref => {
|
|
@@ -12,9 +12,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
12
12
|
|
|
13
13
|
const _excluded = ["innerRef"];
|
|
14
14
|
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
15
|
+
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; }
|
|
16
16
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
17
|
+
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; }
|
|
18
18
|
const StyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
19
19
|
componentId: "sc-ra7fth-0"
|
|
20
20
|
})(["input[type=time]&{-webkit-appearance:none;-moz-appearance:none;-webkit-tap-highlight-color:transparent;appearance:none;color:transparent;white-space:nowrap;position:relative;height:", ";width:100%;max-width:calc(100% - 32px);outline:none;box-sizing:border-box;display:flex;background:", ";padding:0 ", ";z-index:1;border-radius:2px;border:solid 1px ", ";}input[type=time]&:active,input[type=time]&:focus{", "}&:before{color:", ";content:'", "';}input[type=time]&::-webkit-datetime-edit,input[type=time]&::-webkit-inner-spin-button,input[type=time]&::-webkit-clear-button{-webkit-appearance:none;display:none;}"], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.l), props => props.theme.colors.neutral['000'], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), props => props.theme.colors.neutral[200], props => focus(props.theme.colors.brand[700]), props => props.value === '' ? props.theme.colors.neutral['500'] : props.theme.colors.neutral['800'], props => props.value === '' ? props.placeholder : props['data-displayvalue']);
|
|
@@ -15,9 +15,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
15
15
|
|
|
16
16
|
const _excluded = ["children", "onClick", "theme", "dataTestid", "render"];
|
|
17
17
|
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
18
|
+
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; }
|
|
19
19
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
20
|
+
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; }
|
|
21
21
|
const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
22
22
|
componentId: "sc-6cxve6-0"
|
|
23
23
|
})(["cursor:pointer;background:", ";"], props => props.touching ? props.theme.colors.brand['100'] : props.theme.colors.neutral['000']);
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -17,9 +17,9 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
17
17
|
|
|
18
18
|
var _ModalIcon;
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
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; }
|
|
23
23
|
|
|
24
24
|
const Modal = _ref => {
|
|
25
25
|
let {
|
package/esm/Tabs/index.js
CHANGED
|
@@ -5,16 +5,17 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
|
5
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
8
|
-
import 'react';
|
|
8
|
+
import { describe } from 'react-desc';
|
|
9
9
|
import { DSTabs, DSTab } from '@elliemae/ds-tabs';
|
|
10
|
+
import { MobileTabsPropTypes, MobileTabPropTypes } from './propTypes.js';
|
|
10
11
|
import { jsx } from 'react/jsx-runtime';
|
|
11
12
|
|
|
12
13
|
const _excluded = ["children"],
|
|
13
14
|
_excluded2 = ["children"];
|
|
14
15
|
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
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; }
|
|
16
17
|
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
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; }
|
|
18
19
|
const DSMobileTabs = _ref => {
|
|
19
20
|
let {
|
|
20
21
|
children
|
|
@@ -33,9 +34,12 @@ const DSMobileTab = _ref2 => {
|
|
|
33
34
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
34
35
|
|
|
35
36
|
return /*#__PURE__*/jsx(DSTab, _objectSpread(_objectSpread({}, props), {}, {
|
|
36
|
-
isDSMobile: true,
|
|
37
37
|
children: children
|
|
38
38
|
}));
|
|
39
39
|
};
|
|
40
|
+
const DSMobileTabsWithSchema = describe(DSMobileTabs);
|
|
41
|
+
DSMobileTabsWithSchema.propTypes = MobileTabsPropTypes;
|
|
42
|
+
const DSMobileTabWithSchema = describe(DSMobileTab);
|
|
43
|
+
DSMobileTabWithSchema.propTypes = MobileTabPropTypes;
|
|
40
44
|
|
|
41
|
-
export { DSMobileTab, DSMobileTabs };
|
|
45
|
+
export { DSMobileTab, DSMobileTabWithSchema, DSMobileTabs, DSMobileTabsWithSchema };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
|
|
3
|
+
const MobileTabPropTypes = {
|
|
4
|
+
tabId: PropTypes.string.description('Unique Tab id.').defaultValue(''),
|
|
5
|
+
title: PropTypes.string.description('Tab title.').defaultValue(''),
|
|
6
|
+
required: PropTypes.bool.description('Show a required mark next to the title.').defaultValue(false),
|
|
7
|
+
disabled: PropTypes.bool.description('Disables Tab.').defaultValue(false)
|
|
8
|
+
};
|
|
9
|
+
const MobileTabsPropTypes = {
|
|
10
|
+
onTabChange: PropTypes.func.description('Handler when a user clicks on a different Tab.').defaultValue('() => {}'),
|
|
11
|
+
tabBarExtraContent: PropTypes.element.description('Extra content next to the Tabs Bar.').defaultValue(undefined),
|
|
12
|
+
onlyRenderActiveTab: PropTypes.bool.description('Only renders the active Tab in the DOM.').defaultValue(false),
|
|
13
|
+
fixedTabsHeaders: PropTypes.bool.description('Enables fixed Tabs mode. Makes Tab Bar non scrollable and adds equal fixed widths.').defaultValue(false),
|
|
14
|
+
activeTab: PropTypes.string.description('Passing a value makes DSTabs a controlled component.').defaultValue('First DSTab children.'),
|
|
15
|
+
children: PropTypes.node.description('Use DSTab component as children.').isRequired,
|
|
16
|
+
tabsListAriaLabel: PropTypes.string.description('Aria label for the Tab list.').defaultValue('Tab list.'),
|
|
17
|
+
containerProps: PropTypes.object.description('Additional properties for the container.').defaultValue({}),
|
|
18
|
+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
19
|
+
current: PropTypes.any
|
|
20
|
+
})]).description('Ref to the container.').defaultValue(undefined)
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { MobileTabPropTypes, MobileTabsPropTypes };
|
package/esm/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export { DSMobileTimePicker, DSMobileTimePickerWithSchema } from './MobileTimePi
|
|
|
26
26
|
export { DSMobileEmptyState, DSMobileEmptyStateWithSchema } from './MobileEmtpyState/MobileEmptyState.js';
|
|
27
27
|
export { DSMobileDropdownMenu, DSMobileDropdownMenuWithSchema } from './MobileDropdownMenu/MobileDropdownMenu.js';
|
|
28
28
|
export { DSMobileDropdownTriggerInput } from './MobileDropdownMenu/MobileDropdownInput.js';
|
|
29
|
-
export { DSMobileTab, DSMobileTabs } from './Tabs/index.js';
|
|
29
|
+
export { DSMobileTab, DSMobileTabWithSchema, DSMobileTabs, DSMobileTabsWithSchema } from './Tabs/index.js';
|
|
30
30
|
export { DSMobileCard } from './MobileCard/index.js';
|
|
31
31
|
export { DSCollectionBox, DSCollectionBoxWithSchema } from './CollectionBox/CollectionBox.js';
|
|
32
32
|
export { DSCategoryBox, DSCategoryBoxWithSchema } from './CategoryBox/CategoryBox.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-mobile",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - System",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"import": "./esm/index.js",
|
|
12
12
|
"require": "./cjs/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./Tabs/propTypes": {
|
|
15
|
+
"import": "./esm/Tabs/propTypes.js",
|
|
16
|
+
"require": "./cjs/Tabs/propTypes.js"
|
|
17
|
+
},
|
|
14
18
|
"./Tabs": {
|
|
15
19
|
"import": "./esm/Tabs/index.js",
|
|
16
20
|
"require": "./cjs/Tabs/index.js"
|
|
@@ -231,6 +235,10 @@
|
|
|
231
235
|
"import": "./esm/MobileCard/StyledCard.js",
|
|
232
236
|
"require": "./cjs/MobileCard/StyledCard.js"
|
|
233
237
|
},
|
|
238
|
+
"./MobileCard/props": {
|
|
239
|
+
"import": "./esm/MobileCard/props.js",
|
|
240
|
+
"require": "./cjs/MobileCard/props.js"
|
|
241
|
+
},
|
|
234
242
|
"./MobileCard": {
|
|
235
243
|
"import": "./esm/MobileCard/index.js",
|
|
236
244
|
"require": "./cjs/MobileCard/index.js"
|
|
@@ -421,20 +429,20 @@
|
|
|
421
429
|
"generateSubmodules": true
|
|
422
430
|
},
|
|
423
431
|
"dependencies": {
|
|
424
|
-
"@elliemae/ds-accordion": "2.0.
|
|
425
|
-
"@elliemae/ds-backdrop": "2.0.
|
|
426
|
-
"@elliemae/ds-button": "2.0.
|
|
427
|
-
"@elliemae/ds-circular-progress-indicator": "2.0.
|
|
428
|
-
"@elliemae/ds-devutils": "2.0.
|
|
429
|
-
"@elliemae/ds-form": "2.0.
|
|
430
|
-
"@elliemae/ds-grid": "2.0.
|
|
431
|
-
"@elliemae/ds-icon": "2.0.
|
|
432
|
-
"@elliemae/ds-icons": "2.0.
|
|
433
|
-
"@elliemae/ds-indeterminate-progress-indicator": "2.0.
|
|
434
|
-
"@elliemae/ds-shared": "2.0.
|
|
435
|
-
"@elliemae/ds-system": "2.0.
|
|
436
|
-
"@elliemae/ds-tabs": "2.0.
|
|
437
|
-
"@elliemae/ds-truncated-expandable-text": "2.0.
|
|
432
|
+
"@elliemae/ds-accordion": "2.0.2",
|
|
433
|
+
"@elliemae/ds-backdrop": "2.0.2",
|
|
434
|
+
"@elliemae/ds-button": "2.0.2",
|
|
435
|
+
"@elliemae/ds-circular-progress-indicator": "2.0.2",
|
|
436
|
+
"@elliemae/ds-devutils": "2.0.2",
|
|
437
|
+
"@elliemae/ds-form": "2.0.2",
|
|
438
|
+
"@elliemae/ds-grid": "2.0.2",
|
|
439
|
+
"@elliemae/ds-icon": "2.0.2",
|
|
440
|
+
"@elliemae/ds-icons": "2.0.2",
|
|
441
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.0.2",
|
|
442
|
+
"@elliemae/ds-shared": "2.0.2",
|
|
443
|
+
"@elliemae/ds-system": "2.0.2",
|
|
444
|
+
"@elliemae/ds-tabs": "2.0.2",
|
|
445
|
+
"@elliemae/ds-truncated-expandable-text": "2.0.2",
|
|
438
446
|
"polished": "~3.6.7",
|
|
439
447
|
"prop-types": "~15.7.2",
|
|
440
448
|
"react-desc": "~4.1.3",
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { MobileCardProps } from './props';
|
|
3
4
|
declare const DSMobileCardWithSchema: {
|
|
4
|
-
(props?:
|
|
5
|
-
children: any;
|
|
6
|
-
height?: string | undefined;
|
|
7
|
-
leftAddOn: any;
|
|
8
|
-
leftProp: any;
|
|
9
|
-
rightProp: any;
|
|
10
|
-
subText: any;
|
|
11
|
-
subIcons: any;
|
|
12
|
-
details: any;
|
|
13
|
-
theme: any;
|
|
14
|
-
expandable?: boolean | undefined;
|
|
15
|
-
expandedContent: any;
|
|
16
|
-
value: any;
|
|
17
|
-
} | undefined): JSX.Element;
|
|
5
|
+
(props?: React.PropsWithChildren<MobileCardProps> | undefined): JSX.Element;
|
|
18
6
|
propTypes: unknown;
|
|
19
7
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
20
8
|
};
|
|
21
9
|
export { DSMobileCardWithSchema };
|
|
22
10
|
declare const _default: React.ForwardRefExoticComponent<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
height: "s" | "m";
|
|
12
|
+
children: ((string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | React.ReactNode[]) & (boolean | React.ReactChild | React.ReactFragment | React.ReactPortal)) | null | undefined;
|
|
13
|
+
details: string[];
|
|
14
|
+
leftProp: JSX.Element | JSX.Element[];
|
|
15
|
+
rightProp: JSX.Element[];
|
|
16
|
+
value: number;
|
|
17
|
+
leftAddOn: JSX.Element | JSX.Element[];
|
|
18
|
+
subText: string[];
|
|
19
|
+
subIcons: JSX.Element | JSX.Element[];
|
|
20
|
+
expandable: boolean;
|
|
21
|
+
expandedContent: JSX.Element | JSX.Element[];
|
|
22
|
+
cardContent: JSX.Element | JSX.Element[];
|
|
26
23
|
} & {
|
|
27
24
|
theme?: import("styled-components").DefaultTheme | undefined;
|
|
28
25
|
}>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export declare const ExpandableRegion: {
|
|
4
4
|
({ show, content }: {
|
|
5
|
-
show:
|
|
6
|
-
content:
|
|
5
|
+
show: boolean;
|
|
6
|
+
content: JSX.Element | JSX.Element[];
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
propTypes: {
|
|
9
9
|
show: PropTypes.Requireable<boolean>;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const StyledCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
1
|
+
export declare const StyledCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
minHeight: string;
|
|
3
|
+
}, never>;
|
|
@@ -3,9 +3,18 @@ import MobileCard, { DSMobileCardWithSchema } from './Card';
|
|
|
3
3
|
import { DSMobileCardGroupWithSchema } from './Group';
|
|
4
4
|
import { ActionAddon } from './ActionAddon';
|
|
5
5
|
declare const DSMobileCard: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
height: "s" | "m";
|
|
7
|
+
children: ((string | number | boolean | {} | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | import("react").ReactNode[]) & (boolean | import("react").ReactChild | import("react").ReactFragment | import("react").ReactPortal)) | null | undefined;
|
|
8
|
+
details: string[];
|
|
9
|
+
leftProp: JSX.Element | JSX.Element[];
|
|
10
|
+
rightProp: JSX.Element[];
|
|
11
|
+
value: number;
|
|
12
|
+
leftAddOn: JSX.Element | JSX.Element[];
|
|
13
|
+
subText: string[];
|
|
14
|
+
subIcons: JSX.Element | JSX.Element[];
|
|
15
|
+
expandable: boolean;
|
|
16
|
+
expandedContent: JSX.Element | JSX.Element[];
|
|
17
|
+
cardContent: JSX.Element | JSX.Element[];
|
|
9
18
|
} & {
|
|
10
19
|
theme?: import("styled-components").DefaultTheme | undefined;
|
|
11
20
|
}>;
|