@woosmap/ui 3.123.0 → 3.126.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 +1 -1
- package/src/components/Button/Button.js +4 -0
- package/src/components/Button/Button.stories.js +1 -1
- package/src/components/Card/Card.js +4 -0
- package/src/components/Card/Card.styl +6 -0
- package/src/images/products/product-localities-uk.png +0 -0
- package/src/styles/console/button.styl +19 -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
|
@@ -26,6 +26,7 @@ export default class Button extends Component {
|
|
|
26
26
|
children,
|
|
27
27
|
testId,
|
|
28
28
|
iconRight,
|
|
29
|
+
isNotification,
|
|
29
30
|
...rest
|
|
30
31
|
} = this.props;
|
|
31
32
|
const classes = cl(
|
|
@@ -36,6 +37,7 @@ export default class Button extends Component {
|
|
|
36
37
|
size ? `btn--${size}` : null,
|
|
37
38
|
type ? `btn--${type}` : null,
|
|
38
39
|
{ active },
|
|
40
|
+
isNotification ? 'btn--notification' : null,
|
|
39
41
|
{ 'btn--loading': isLoading },
|
|
40
42
|
{ 'btn--no-label': !label },
|
|
41
43
|
{ 'btn--custom-icon-size': iconSize && iconSize !== 24 },
|
|
@@ -80,6 +82,7 @@ Button.defaultProps = {
|
|
|
80
82
|
active: false,
|
|
81
83
|
onClick: null,
|
|
82
84
|
iconRight: false,
|
|
85
|
+
isNotification: false,
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
Button.propTypes = {
|
|
@@ -115,4 +118,5 @@ Button.propTypes = {
|
|
|
115
118
|
onClick: PropTypes.func,
|
|
116
119
|
children: PropTypes.node,
|
|
117
120
|
iconRight: PropTypes.bool,
|
|
121
|
+
isNotification: PropTypes.bool,
|
|
118
122
|
};
|
|
@@ -28,7 +28,7 @@ const Template = (args) => {
|
|
|
28
28
|
<Button label={label} disabled />
|
|
29
29
|
</div>
|
|
30
30
|
<div className="flex mbi">
|
|
31
|
-
<Button icon="
|
|
31
|
+
<Button icon="puzzle" isNotification label="4" type="secondary" />
|
|
32
32
|
<Button label={label} type="secondary" />
|
|
33
33
|
<Button label={label} type="secondary" icon="marker" />
|
|
34
34
|
<Button label={label} type="secondary" isLoading />
|
|
@@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { tr } from '../utils/locale';
|
|
6
6
|
import Icon from '../Icon/Icon';
|
|
7
7
|
import localitiesImg from '../../images/products/product-localities.png';
|
|
8
|
+
import localitiesUkImg from '../../images/products/product-localities-uk.png';
|
|
8
9
|
import geolocationImg from '../../images/products/product-geolocation.png';
|
|
9
10
|
import storesImg from '../../images/products/product-stores.png';
|
|
10
11
|
import distanceImg from '../../images/products/product-distance.png';
|
|
@@ -23,6 +24,7 @@ import merchantImgSq from '../../images/products/product-merchant-sq.png';
|
|
|
23
24
|
|
|
24
25
|
const productImg = {
|
|
25
26
|
LOCALITIES: localitiesImg,
|
|
27
|
+
LOCALITIES_ADDRESS_UK: localitiesUkImg,
|
|
26
28
|
GEOLOCATION: geolocationImg,
|
|
27
29
|
STORES: storesImg,
|
|
28
30
|
DISTANCE: distanceImg,
|
|
@@ -183,6 +185,7 @@ Card.propTypes = {
|
|
|
183
185
|
onClick: PropTypes.func,
|
|
184
186
|
product: PropTypes.oneOf([
|
|
185
187
|
'LOCALITIES',
|
|
188
|
+
'LOCALITIES_ADDRESS_UK',
|
|
186
189
|
'GEOLOCATION',
|
|
187
190
|
'STORES',
|
|
188
191
|
'DISTANCE',
|
|
@@ -190,6 +193,7 @@ Card.propTypes = {
|
|
|
190
193
|
'MAP',
|
|
191
194
|
'TRAFFIC',
|
|
192
195
|
'MERCHANTS',
|
|
196
|
+
'LOCALITIES',
|
|
193
197
|
]),
|
|
194
198
|
iconSize: PropTypes.number,
|
|
195
199
|
isClickable: PropTypes.bool,
|
|
Binary file
|
|
@@ -600,6 +600,25 @@
|
|
|
600
600
|
background-color $dark20
|
|
601
601
|
.icon
|
|
602
602
|
fill $light
|
|
603
|
+
&--notification
|
|
604
|
+
position relative
|
|
605
|
+
padding 0 .6rem !important
|
|
606
|
+
.icon
|
|
607
|
+
margin 0 !important
|
|
608
|
+
.btn__label
|
|
609
|
+
sq(1.7)
|
|
610
|
+
br(50)
|
|
611
|
+
textShadow()
|
|
612
|
+
border .1rem solid darken($success2, 20%)
|
|
613
|
+
display flex
|
|
614
|
+
align-items center
|
|
615
|
+
justify-content center
|
|
616
|
+
background-color $success2
|
|
617
|
+
font-size $fontSizeSmall
|
|
618
|
+
position absolute
|
|
619
|
+
color $light
|
|
620
|
+
top -.85rem
|
|
621
|
+
right -.85rem
|
|
603
622
|
&--small
|
|
604
623
|
buttonSmall()
|
|
605
624
|
&.btn--group
|
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>
|