@woosmap/ui 3.108.0 → 3.109.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.109.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
@@ -32,7 +32,7 @@
32
32
  &__title
33
33
  font-weight 600
34
34
  margin-bottom .2rem
35
- .view-list &
35
+ .inline &
36
36
  ellipsis()
37
37
  order 1
38
38
  margin-right 1.2rem
@@ -40,7 +40,7 @@
40
40
  &__subtitle
41
41
  font-size $fontSizeSmall
42
42
  color $secondary60
43
- .view-list &
43
+ .inline &
44
44
  order 3
45
45
  margin-left auto
46
46
  white-space nowrap
@@ -55,7 +55,7 @@
55
55
  right 1rem
56
56
  top 1.3rem
57
57
  fill $favorite
58
- .view-list &
58
+ .inline &
59
59
  sq(1.8)
60
60
  position unset
61
61
  top unset