@woosmap/ui 4.17.0 → 4.18.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.17.0",
3
+ "version": "4.18.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -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
- 'INDOOR_MAP',
308
- 'INDOOR_SEARCH',
309
- 'INDOOR_DISTANCE',
310
- 'INDOOR_DATABASE',
306
+ 'INDOOR',
311
307
  ]),
312
308
  iconSize: PropTypes.number,
313
309
  isClickable: PropTypes.bool,
@@ -62,8 +62,9 @@
62
62
  &.active
63
63
  background $primary10
64
64
  &__img
65
- display block
66
65
  br(1)
66
+ display block
67
+ overflow hidden
67
68
  &__status
68
69
  display flex
69
70
  align-items center
@@ -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' }}>aside</Card.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' }}>aside</Card.Aside>
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
- 'indoor_map',
106
- 'indoor_distance',
107
- 'indoor_search',
105
+ 'indoor',
108
106
  undefined,
109
107
  ]),
110
108
  plan: PropTypes.oneOf(['free', 'standard', 'enterprise', 'enterprise--free', undefined]),
@@ -50,9 +50,7 @@ Tooltip.propTypes = {
50
50
  'mapping',
51
51
  'distance',
52
52
  'traffic',
53
- 'indoor_map',
54
- 'indoor_distance',
55
- 'indoor_search',
53
+ 'indoor',
56
54
  undefined,
57
55
  ]),
58
56
  text: PropTypes.string,