@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 +1 -1
- package/src/components/Button/Button.stories.js +1 -1
- package/src/components/Card/Card.stories.js +1 -1
- package/src/components/Card/SimpleCard.js +4 -0
- package/src/components/Card/SimpleCard.styl +5 -0
- package/src/components/Icon/Icon.js +2 -0
- package/src/components/UseCase/UseCase.styl +3 -0
- package/src/icons/play.svg +1 -0
- package/src/styles/console/button.styl +3 -0
- package/src/styles/console/colors.styl +1 -0
- package/src/styles/website/colors.styl +2 -0
package/package.json
CHANGED
|
@@ -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
|
|
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,
|
|
@@ -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>
|