@woosmap/ui 4.40.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/UseCase/UseCase.styl +3 -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')
|