@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 +2 -2
- package/src/components/UseCase/UseCase.js +4 -15
- package/src/components/UseCase/UseCase.stories.js +1 -1
- package/src/components/UseCase/UseCase.styl +2 -0
- package/.idea/encodings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- package/.idea/misc.xml +0 -4
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/ui.iml +0 -15
- package/.idea/vcs.xml +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woosmap/ui",
|
|
3
|
-
"version": "4.
|
|
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.
|
|
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
|
package/.idea/encodings.xml
DELETED
|
@@ -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>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/prettier.xml
DELETED
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>
|