@woosmap/ui 3.116.0 → 3.117.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": "3.116.0",
3
+ "version": "3.117.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable jsx-a11y/label-has-associated-control */
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
+ import cl from 'classnames';
4
5
 
5
6
  export default class Switch extends Component {
6
7
  handleKeyPress = (e) => {
@@ -49,7 +50,7 @@ export default class Switch extends Component {
49
50
  <span className="switch__controller" tabIndex={-1} />
50
51
  </label>
51
52
  </div>
52
- <span>{text}</span>
53
+ <span className={cl('switch__text', { 'switch__text--disabled': disabled })}>{text}</span>
53
54
  </div>
54
55
  );
55
56
  }
@@ -25,6 +25,9 @@
25
25
  > span
26
26
  &:focus
27
27
  outline none
28
+ &__text
29
+ &--disabled
30
+ opacity .4
28
31
  &__inner
29
32
  display block
30
33
  width 200%