@woosmap/ui 4.16.1 → 4.17.1
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/package.json
CHANGED
|
@@ -15,7 +15,6 @@ import addressImg from '../../images/products/product-address.png';
|
|
|
15
15
|
import mapImg from '../../images/products/product-map.png';
|
|
16
16
|
import trafficImg from '../../images/products/product-traffic.png';
|
|
17
17
|
import merchantImg from '../../images/products/product-merchant.png';
|
|
18
|
-
import indoorImg from '../../images/products/product-indoor.png';
|
|
19
18
|
|
|
20
19
|
import localitiesImgSq from '../../images/products/product-localities-sq.png';
|
|
21
20
|
import localitiesUkImgSq from '../../images/products/product-localities-uk-sq.png';
|
|
@@ -38,7 +37,6 @@ const productImg = {
|
|
|
38
37
|
MAP: mapImg,
|
|
39
38
|
TRAFFIC: trafficImg,
|
|
40
39
|
MERCHANTS: merchantImg,
|
|
41
|
-
INDOOR_MAP: indoorImg,
|
|
42
40
|
};
|
|
43
41
|
const productImgSq = {
|
|
44
42
|
LOCALITIES: localitiesImgSq,
|
|
@@ -179,6 +177,7 @@ Aside.propTypes = {
|
|
|
179
177
|
Aside.defaultProps = {
|
|
180
178
|
children: null,
|
|
181
179
|
};
|
|
180
|
+
|
|
182
181
|
class Card extends Component {
|
|
183
182
|
render() {
|
|
184
183
|
const {
|
|
@@ -304,10 +303,7 @@ Card.propTypes = {
|
|
|
304
303
|
'TRAFFIC',
|
|
305
304
|
'MERCHANTS',
|
|
306
305
|
'LOCALITIES',
|
|
307
|
-
'
|
|
308
|
-
'INDOOR_SEARCH',
|
|
309
|
-
'INDOOR_DISTANCE',
|
|
310
|
-
'INDOOR_DATABASE',
|
|
306
|
+
'INDOOR',
|
|
311
307
|
]),
|
|
312
308
|
iconSize: PropTypes.number,
|
|
313
309
|
isClickable: PropTypes.bool,
|
|
@@ -10,7 +10,9 @@ it('renders a Card component ', () => {
|
|
|
10
10
|
<Card.Header>header</Card.Header>
|
|
11
11
|
<Card.Body>body</Card.Body>
|
|
12
12
|
<Card.Footer>footer</Card.Footer>
|
|
13
|
-
<Card.Aside product={{ id: 'LOCALITIES', name: 'aside' }}>
|
|
13
|
+
<Card.Aside mode="worksWith" product={{ id: 'LOCALITIES', name: 'aside' }}>
|
|
14
|
+
aside
|
|
15
|
+
</Card.Aside>
|
|
14
16
|
</Card>
|
|
15
17
|
);
|
|
16
18
|
expect(getByTestId('card')).toHaveClass('card');
|
|
@@ -27,7 +29,9 @@ it('renders a Card component in list ', () => {
|
|
|
27
29
|
<Card.Header>header</Card.Header>
|
|
28
30
|
<Card.Body>body</Card.Body>
|
|
29
31
|
<Card.Footer>footer</Card.Footer>
|
|
30
|
-
<Card.Aside product={{ id: 'LOCALITIES', name: 'Localities' }}>
|
|
32
|
+
<Card.Aside mode="addon" product={{ id: 'LOCALITIES', name: 'Localities' }}>
|
|
33
|
+
aside
|
|
34
|
+
</Card.Aside>
|
|
31
35
|
</Card>
|
|
32
36
|
);
|
|
33
37
|
expect(container.firstChild).toHaveClass('card--list');
|
|
@@ -102,9 +102,7 @@ Label.propTypes = {
|
|
|
102
102
|
'mapping',
|
|
103
103
|
'merchants',
|
|
104
104
|
'traffic',
|
|
105
|
-
'
|
|
106
|
-
'indoor_distance',
|
|
107
|
-
'indoor_search',
|
|
105
|
+
'indoor',
|
|
108
106
|
undefined,
|
|
109
107
|
]),
|
|
110
108
|
plan: PropTypes.oneOf(['free', 'standard', 'enterprise', 'enterprise--free', undefined]),
|