@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.71.0",
3
+ "version": "4.73.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -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-medium40
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
- sq(1.7)
627
- br(50)
628
- textShadow()
629
- border .1rem solid darken($success2, 20%)
630
- display flex
631
- align-items center
632
- justify-content center
633
- background-color $success2
634
- font-size $fontSizeSmall
635
- position absolute
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