@woosmap/ui 4.55.0 → 4.57.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.55.0",
3
+ "version": "4.57.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -47,7 +47,7 @@ export default class Button extends Component {
47
47
  );
48
48
  let iconComponent = icon ? <Icon isFill={isFillIcon} size={iconSize} icon={icon} /> : null;
49
49
  if (isLoading) {
50
- iconComponent = <Icon isFill isLoad icon="load" />;
50
+ iconComponent = <Icon isLoad icon="load" />;
51
51
  }
52
52
  return (
53
53
  <button
@@ -24,7 +24,7 @@ const Template = (args) => {
24
24
  <Button icon="add" />
25
25
  <Button label={label} />
26
26
  <Button label={label} icon="marker" iconRight />
27
- <Button label={label} isLoading />
27
+ <Button label={label} className="btn--demo" isLoading />
28
28
  <Button label={label} disabled />
29
29
  </div>
30
30
  <div className="flex mbi">
@@ -646,7 +646,7 @@ class Icon extends Component {
646
646
  render() {
647
647
  const { icon, size, className, isFill, isLoad, title, testId } = this.props;
648
648
  const IconComponent = Object.keys(Icons).includes(icon) ? Icons[icon] : Woosmap;
649
- const classes = cl('icon', { 'icon--fill': isFill }, { 'icon--load': isLoad }, className);
649
+ const classes = cl('icon', { 'icon--fill': isFill }, { 'icon--load icon--fill': isLoad }, className);
650
650
  return (
651
651
  <IconComponent
652
652
  className={classes}
@@ -642,6 +642,10 @@
642
642
  &:disabled
643
643
  &:hover
644
644
  background-color $demo
645
+ &.btn--loading
646
+ &:hover
647
+ background-color $demo !important
648
+
645
649
  &--small
646
650
  buttonSmall()
647
651
  &.btn--group