@woosmap/ui 4.39.0 → 4.41.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": "4.39.0",
3
+ "version": "4.41.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -63,7 +63,7 @@ const Template = (args) => {
63
63
  <Button label={label} size="large" disabled />
64
64
  </div>
65
65
  <div className="flex mbi">
66
- <Button icon="settings" />
66
+ <Button icon="settings" label="settings" className="btn--demo" />
67
67
  <Button icon="settings" isLoading />
68
68
  <Button icon="settings" disabled />
69
69
  </div>
@@ -66,7 +66,7 @@ export const Default = Template.bind({});
66
66
  Default.args = {};
67
67
 
68
68
  const SimpleCardTemplate = () => (
69
- <SimpleCard isDisabled isActive isFavorite title="My hotels in France" subtitle="18 assets - 12K queries">
69
+ <SimpleCard isDemo title="My hotels in France" subtitle="18 assets - 12K queries">
70
70
  <Tooltip text="Localities" direction="n" product="LOCALITIES">
71
71
  <Label round size="nano" label="L" product="LOCALITIES" />
72
72
  </Tooltip>
@@ -18,6 +18,7 @@ class SimpleCard extends Component {
18
18
  isDisabled,
19
19
  isFavorite,
20
20
  isInline,
21
+ isDemo,
21
22
  ...rest
22
23
  } = this.props;
23
24
  return (
@@ -25,6 +26,7 @@ class SimpleCard extends Component {
25
26
  className={cl(
26
27
  'simplecard',
27
28
  { active: isActive },
29
+ { 'simplecard--demo': isDemo },
28
30
  { disabled: isDisabled },
29
31
  { 'simplecard--selected': isSelected },
30
32
  { inline: isInline },
@@ -74,6 +76,7 @@ SimpleCard.defaultProps = {
74
76
  isDisabled: false,
75
77
  isFavorite: false,
76
78
  isInline: false,
79
+ isDemo: false,
77
80
  };
78
81
 
79
82
  SimpleCard.propTypes = {
@@ -87,6 +90,7 @@ SimpleCard.propTypes = {
87
90
  testId: PropTypes.string,
88
91
  isFavorite: PropTypes.bool,
89
92
  isInline: PropTypes.bool,
93
+ isDemo: PropTypes.bool,
90
94
  };
91
95
 
92
96
  export default SimpleCard;
@@ -13,6 +13,7 @@
13
13
  &:hover
14
14
  box-shadow 0 0 .6rem $secondary20
15
15
  border .1rem solid $secondary60
16
+
16
17
  &.active
17
18
  &.selected
18
19
  &--selected
@@ -22,6 +23,10 @@
22
23
  &:hover
23
24
  box-shadow none
24
25
  border .1rem solid $secondary60
26
+ &--demo
27
+ &
28
+ &.active
29
+ background-color rgba($demo, .1)
25
30
  .row-inactive &
26
31
  &.disabled
27
32
  background #fff url('../../images/texture.png')
@@ -170,6 +170,7 @@ import { ReactComponent as Members } from '../../icons/members.svg';
170
170
  import { ReactComponent as Member } from '../../icons/member.svg';
171
171
  import { ReactComponent as MenuVertical } from '../../icons/menu-vertical.svg';
172
172
  import { ReactComponent as Phone } from '../../icons/phone.svg';
173
+ import { ReactComponent as Play } from '../../icons/play.svg';
173
174
  import { ReactComponent as ProductActivated } from '../../icons/product-activated.svg';
174
175
  import { ReactComponent as ProductAdd } from '../../icons/product-add.svg';
175
176
  import { ReactComponent as Products } from '../../icons/products.svg';
@@ -487,6 +488,7 @@ const ConsoleIcons = {
487
488
  members: Members,
488
489
  'menu-vertical': MenuVertical,
489
490
  phone: Phone,
491
+ play: Play,
490
492
  'product-activated': ProductActivated,
491
493
  'product-add': ProductAdd,
492
494
  products: Products,
@@ -73,6 +73,9 @@
73
73
  flex-direction column
74
74
  &__cta
75
75
  margin 2rem 0 0 0
76
+ display flex
77
+ align-items center
78
+ justify-content space-between
76
79
  &__product-item
77
80
  mbi()
78
81
  display flex
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="m3.121,18.869V5.131c0-1.59,1.673-2.625,3.096-1.915l13.756,6.869c1.579.788,1.579,3.041,0,3.829l-13.756,6.869c-1.423.711-3.096-.324-3.096-1.915Z"/></svg>
@@ -636,6 +636,9 @@
636
636
  color $light
637
637
  top -.85rem
638
638
  right -.85rem
639
+ &--demo
640
+ &.btn.btn--primary
641
+ background-color $demo
639
642
  &--small
640
643
  buttonSmall()
641
644
  &.btn--group
@@ -109,6 +109,7 @@ $favorite = #ffc200
109
109
 
110
110
  $modalBg = rgba(0, 11, 31, .85)
111
111
 
112
+ $demo = #6f5dff
112
113
 
113
114
  // Last activity
114
115
  $lastActivityUser = #FDA78D
@@ -81,6 +81,8 @@ $buttonHover = $success2
81
81
  $buttonBorderColor = #454545
82
82
  $borderColor = rgba($secondary, .24)
83
83
 
84
+ $demo = #6f5dff
85
+
84
86
  $special = #FF368B
85
87
  $special2 = #ff3260
86
88
  $special3 = #46cebc