@woosmap/ui 4.28.5 → 4.30.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.28.5",
3
+ "version": "4.30.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -17,7 +17,7 @@
17
17
  "@storybook/manager-webpack5": "^6.5.15",
18
18
  "axios": "^0.21.1",
19
19
  "classnames": "^2.3.2",
20
- "framer-motion": "^8.5.5",
20
+ "framer-motion": "^8.1.9",
21
21
  "google-map-react": "^2.2.0",
22
22
  "i18next": "^22.4.8",
23
23
  "moment": "^2.29.4",
@@ -58,7 +58,7 @@ class UseCase extends Component {
58
58
  };
59
59
 
60
60
  render() {
61
- const { className, children, isSelectable, testId, useCaseStory, ...rest } = this.props;
61
+ const { className, children, isSelectable, testId, useCaseStory, productId, ...rest } = this.props;
62
62
  const { stateSelected } = this.state;
63
63
  const classes = cl(
64
64
  'use-case',
@@ -75,6 +75,7 @@ class UseCase extends Component {
75
75
  onClick={this.onClick}
76
76
  onKeyDown={() => {}}
77
77
  tabIndex="-1"
78
+ id={productId}
78
79
  {...rest}
79
80
  >
80
81
  <div className="use-case__image" />
@@ -88,6 +89,7 @@ UseCase.defaultProps = {
88
89
  testId: 'usecase',
89
90
  className: '',
90
91
  isSelectable: false,
92
+ productId: '',
91
93
  useCaseStory: PropTypes.oneOf([
92
94
  'storeLocator',
93
95
  'productLocator',
@@ -98,28 +100,15 @@ UseCase.defaultProps = {
98
100
  'indoorMapping',
99
101
  'products',
100
102
  ]),
101
- product: PropTypes.oneOf([
102
- 'LOCALITIES',
103
- 'LOCALITIES_ADDRESS_UK',
104
- 'GEOLOCATION',
105
- 'STORES',
106
- 'DISTANCE',
107
- 'ADDRESS',
108
- 'MAP',
109
- 'TRAFFIC',
110
- 'MERCHANTS',
111
- 'LOCALITIES',
112
- 'INDOOR',
113
- ]),
114
103
  };
115
104
 
116
105
  UseCase.propTypes = {
117
106
  children: PropTypes.node.isRequired,
118
107
  testId: PropTypes.string,
119
108
  className: PropTypes.string,
120
- product: PropTypes.string,
121
109
  isSelectable: PropTypes.bool,
122
110
  useCaseStory: PropTypes.string,
111
+ productId: PropTypes.string,
123
112
  };
124
113
 
125
114
  export default Object.assign(UseCase, {
@@ -13,7 +13,7 @@ export default Story;
13
13
 
14
14
  const Template = () => (
15
15
  <div className="mbib flex-column">
16
- <UseCase isSelectable useCaseStory="ecommerceCheckout">
16
+ <UseCase isSelectable productId="ecommerceCheckout" useCaseStory="ecommerceCheckout">
17
17
  <div className="use-case__header">Store Locator</div>
18
18
  <div className="use-case__body">
19
19
  Help your visitors searching for your stores and increase your store footfall
@@ -32,6 +32,8 @@
32
32
  flex-direction column
33
33
  border-left .1rem solid $dark10
34
34
  flex-grow 1
35
+ max-width 35rem
36
+ width 100%
35
37
  &__story
36
38
  &--storeLocator
37
39
  .use-case__image
@@ -1,6 +0,0 @@
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>
@@ -1,18 +0,0 @@
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>
@@ -1,6 +0,0 @@
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 DELETED
@@ -1,4 +0,0 @@
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>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
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>
@@ -1,6 +0,0 @@
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 DELETED
@@ -1,15 +0,0 @@
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 DELETED
@@ -1,6 +0,0 @@
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>