@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "3.123.0",
3
+ "version": "3.126.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -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="add" type="secondary" />
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,
@@ -155,6 +155,12 @@
155
155
  -webkit-line-clamp 3
156
156
  -webkit-box-orient vertical
157
157
  margin-bottom 0
158
+ &__footer
159
+ .card--normal &
160
+ width 100%
161
+ display flex
162
+ align-items center
163
+ justify-content space-between
158
164
  &__new-label
159
165
  flexAxis()
160
166
  br()
@@ -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
@@ -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>