@woosmap/ui 3.108.0 → 3.111.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.108.0",
3
+ "version": "3.111.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -7,8 +7,19 @@ import { tr } from '../utils/locale';
7
7
 
8
8
  class SimpleCard extends Component {
9
9
  render() {
10
- const { title, subtitle, className, testId, children, isSelected, isActive, isDisabled, isFavorite, ...rest } =
11
- this.props;
10
+ const {
11
+ title,
12
+ subtitle,
13
+ className,
14
+ testId,
15
+ children,
16
+ isSelected,
17
+ isActive,
18
+ isDisabled,
19
+ isFavorite,
20
+ isInline,
21
+ ...rest
22
+ } = this.props;
12
23
  return (
13
24
  <div
14
25
  className={cl(
@@ -16,6 +27,7 @@ class SimpleCard extends Component {
16
27
  { active: isActive },
17
28
  { disabled: isDisabled },
18
29
  { 'simplecard--selected': isSelected },
30
+ { inline: isInline },
19
31
  className
20
32
  )}
21
33
  data-testid={testId}
@@ -59,6 +71,7 @@ SimpleCard.defaultProps = {
59
71
  isActive: false,
60
72
  isDisabled: false,
61
73
  isFavorite: false,
74
+ isInline: false,
62
75
  };
63
76
 
64
77
  SimpleCard.propTypes = {
@@ -71,6 +84,7 @@ SimpleCard.propTypes = {
71
84
  className: PropTypes.string,
72
85
  testId: PropTypes.string,
73
86
  isFavorite: PropTypes.bool,
87
+ isInline: PropTypes.bool,
74
88
  };
75
89
 
76
90
  export default SimpleCard;
@@ -7,7 +7,7 @@
7
7
  padding 1.6rem
8
8
  border .1rem solid $secondary20
9
9
  cursor pointer
10
- .view-list &
10
+ &.inline
11
11
  flex-direction row
12
12
  align-items center
13
13
  &:hover
@@ -30,18 +30,19 @@
30
30
  background $primary6 url('../../images/texture.png')
31
31
 
32
32
  &__title
33
+ ellipsis()
33
34
  font-weight 600
34
35
  margin-bottom .2rem
35
- .view-list &
36
- ellipsis()
36
+ .inline &
37
37
  order 1
38
38
  margin-right 1.2rem
39
39
  margin-bottom 0
40
40
  &__subtitle
41
41
  font-size $fontSizeSmall
42
42
  color $secondary60
43
- .view-list &
43
+ .inline &
44
44
  order 3
45
+ ellipsis()
45
46
  margin-left auto
46
47
  white-space nowrap
47
48
  &__content
@@ -55,7 +56,7 @@
55
56
  right 1rem
56
57
  top 1.3rem
57
58
  fill $favorite
58
- .view-list &
59
+ .inline &
59
60
  sq(1.8)
60
61
  position unset
61
62
  top unset