@woosmap/ui 4.17.0 → 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.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,18 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
6
+ <option name="ignoredPackages">
7
+ <value>
8
+ <list size="4">
9
+ <item index="0" class="java.lang.String" itemvalue="Fabric" />
10
+ <item index="1" class="java.lang.String" itemvalue="PyYAML" />
11
+ <item index="2" class="java.lang.String" itemvalue="Jinja2" />
12
+ <item index="3" class="java.lang.String" itemvalue="github3.py" />
13
+ </list>
14
+ </value>
15
+ </option>
16
+ </inspection_tool>
17
+ </profile>
18
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ui.iml" filepath="$PROJECT_DIR$/.idea/ui.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myRunOnReformat" value="true" />
5
+ </component>
6
+ </project>
package/.idea/ui.iml ADDED
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ <component name="TemplatesService">
9
+ <option name="TEMPLATE_FOLDERS">
10
+ <list>
11
+ <option value="$MODULE_DIR$/node_modules/@storybook/core/dist/server/templates" />
12
+ </list>
13
+ </option>
14
+ </component>
15
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.17.0",
3
+ "version": "4.17.1",
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,
@@ -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,