@woosmap/ui 3.123.0 → 3.124.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.js +4 -0
- package/src/components/Button/Button.stories.js +1 -1
- package/src/components/Card/Card.js +1 -0
- package/src/components/Card/Card.styl +6 -0
- package/src/styles/console/button.styl +19 -0
- package/.idea/encodings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- package/.idea/misc.xml +0 -4
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/ui.iml +0 -15
- package/.idea/vcs.xml +0 -6
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ export default class Button extends Component {
|
|
|
26
26
|
children,
|
|
27
27
|
testId,
|
|
28
28
|
iconRight,
|
|
29
|
+
isNotification,
|
|
29
30
|
...rest
|
|
30
31
|
} = this.props;
|
|
31
32
|
const classes = cl(
|
|
@@ -36,6 +37,7 @@ export default class Button extends Component {
|
|
|
36
37
|
size ? `btn--${size}` : null,
|
|
37
38
|
type ? `btn--${type}` : null,
|
|
38
39
|
{ active },
|
|
40
|
+
isNotification ? 'btn--notification' : null,
|
|
39
41
|
{ 'btn--loading': isLoading },
|
|
40
42
|
{ 'btn--no-label': !label },
|
|
41
43
|
{ 'btn--custom-icon-size': iconSize && iconSize !== 24 },
|
|
@@ -80,6 +82,7 @@ Button.defaultProps = {
|
|
|
80
82
|
active: false,
|
|
81
83
|
onClick: null,
|
|
82
84
|
iconRight: false,
|
|
85
|
+
isNotification: false,
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
Button.propTypes = {
|
|
@@ -115,4 +118,5 @@ Button.propTypes = {
|
|
|
115
118
|
onClick: PropTypes.func,
|
|
116
119
|
children: PropTypes.node,
|
|
117
120
|
iconRight: PropTypes.bool,
|
|
121
|
+
isNotification: PropTypes.bool,
|
|
118
122
|
};
|
|
@@ -28,7 +28,7 @@ const Template = (args) => {
|
|
|
28
28
|
<Button label={label} disabled />
|
|
29
29
|
</div>
|
|
30
30
|
<div className="flex mbi">
|
|
31
|
-
<Button icon="
|
|
31
|
+
<Button icon="puzzle" isNotification label="4" type="secondary" />
|
|
32
32
|
<Button label={label} type="secondary" />
|
|
33
33
|
<Button label={label} type="secondary" icon="marker" />
|
|
34
34
|
<Button label={label} type="secondary" isLoading />
|
|
@@ -600,6 +600,25 @@
|
|
|
600
600
|
background-color $dark20
|
|
601
601
|
.icon
|
|
602
602
|
fill $light
|
|
603
|
+
&--notification
|
|
604
|
+
position relative
|
|
605
|
+
padding 0 .6rem !important
|
|
606
|
+
.icon
|
|
607
|
+
margin 0 !important
|
|
608
|
+
.btn__label
|
|
609
|
+
sq(1.7)
|
|
610
|
+
br(50)
|
|
611
|
+
textShadow()
|
|
612
|
+
border .1rem solid darken($success2, 20%)
|
|
613
|
+
display flex
|
|
614
|
+
align-items center
|
|
615
|
+
justify-content center
|
|
616
|
+
background-color $success2
|
|
617
|
+
font-size $fontSizeSmall
|
|
618
|
+
position absolute
|
|
619
|
+
color $light
|
|
620
|
+
top -.85rem
|
|
621
|
+
right -.85rem
|
|
603
622
|
&--small
|
|
604
623
|
buttonSmall()
|
|
605
624
|
&.btn--group
|
package/.idea/encodings.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
-
<option name="ignoredPackages">
|
|
7
|
-
<value>
|
|
8
|
-
<list size="4">
|
|
9
|
-
<item index="0" class="java.lang.String" itemvalue="Fabric" />
|
|
10
|
-
<item index="1" class="java.lang.String" itemvalue="PyYAML" />
|
|
11
|
-
<item index="2" class="java.lang.String" itemvalue="Jinja2" />
|
|
12
|
-
<item index="3" class="java.lang.String" itemvalue="github3.py" />
|
|
13
|
-
</list>
|
|
14
|
-
</value>
|
|
15
|
-
</option>
|
|
16
|
-
</inspection_tool>
|
|
17
|
-
</profile>
|
|
18
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/prettier.xml
DELETED
package/.idea/ui.iml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="PYTHON_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
<component name="TemplatesService">
|
|
9
|
-
<option name="TEMPLATE_FOLDERS">
|
|
10
|
-
<list>
|
|
11
|
-
<option value="$MODULE_DIR$/node_modules/@storybook/core/dist/server/templates" />
|
|
12
|
-
</list>
|
|
13
|
-
</option>
|
|
14
|
-
</component>
|
|
15
|
-
</module>
|