@woosmap/ui 4.71.0 → 4.73.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
|
@@ -39,13 +39,13 @@ export default class Tab extends Component {
|
|
|
39
39
|
|
|
40
40
|
renderHeader(childrenOfTab) {
|
|
41
41
|
return Children.toArray(childrenOfTab).map((childTab, index) => {
|
|
42
|
-
const { title, icon, iconSize, className } = childTab.props;
|
|
42
|
+
const { title, icon, iconSize, className, disabled } = childTab.props;
|
|
43
43
|
const { type, testId } = this.props;
|
|
44
44
|
const btnType = !type || undefined ? 'tab' : `tab--${type}`;
|
|
45
45
|
return (
|
|
46
46
|
<li key={`header_${title}`}>
|
|
47
47
|
<Button
|
|
48
|
-
onClick={() => this.onSelect(title)}
|
|
48
|
+
onClick={() => !disabled && this.onSelect(title)}
|
|
49
49
|
active={this.isActive(title, index)}
|
|
50
50
|
type={btnType}
|
|
51
51
|
className={cl(className)}
|
|
@@ -53,6 +53,7 @@ export default class Tab extends Component {
|
|
|
53
53
|
icon={icon}
|
|
54
54
|
iconSize={iconSize}
|
|
55
55
|
testId={`${testId}-header-button`}
|
|
56
|
+
disabled={disabled}
|
|
56
57
|
/>
|
|
57
58
|
</li>
|
|
58
59
|
);
|
|
@@ -500,7 +500,11 @@
|
|
|
500
500
|
.btn__label
|
|
501
501
|
ellipsis()
|
|
502
502
|
&:disabled
|
|
503
|
-
color $secondary
|
|
503
|
+
color $secondary
|
|
504
|
+
&:hover
|
|
505
|
+
color $secondary
|
|
506
|
+
&:after
|
|
507
|
+
content unset
|
|
504
508
|
&.active
|
|
505
509
|
color $secondary
|
|
506
510
|
background-image url('../../images/texture.png')
|
|
@@ -619,23 +623,17 @@
|
|
|
619
623
|
stroke $light
|
|
620
624
|
&--notification
|
|
621
625
|
position relative
|
|
622
|
-
padding 0 .6rem !important
|
|
623
|
-
.icon
|
|
624
|
-
margin 0 !important
|
|
625
626
|
.btn__label
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
color $light
|
|
637
|
-
top -.85rem
|
|
638
|
-
right -.85rem
|
|
627
|
+
position relative
|
|
628
|
+
&:before
|
|
629
|
+
content ''
|
|
630
|
+
position absolute
|
|
631
|
+
top 0
|
|
632
|
+
right -.8rem
|
|
633
|
+
width .8rem
|
|
634
|
+
height .8rem
|
|
635
|
+
background-color $warning
|
|
636
|
+
br(5)
|
|
639
637
|
&--demo
|
|
640
638
|
&.btn.btn--primary
|
|
641
639
|
background-color $demo
|