@aristobyte-ui/spinner 2.11.2 → 2.13.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.
@@ -33,34 +33,34 @@
33
33
  }
34
34
 
35
35
  @mixin spinner-variant-default($name, $color) {
36
- .spinner-type--default.spinner-variant--#{$name} {
36
+ .spinner-appearance--default.spinner-variant--#{$name} {
37
37
  border: 3px solid rgba($color, 0.25);
38
38
  border-top-color: rgba($color, 1);
39
39
  }
40
40
  }
41
41
 
42
42
  @mixin spinner-variant-duo($name, $color) {
43
- .spinner-type--duo.spinner-variant--#{$name} {
43
+ .spinner-appearance--duo.spinner-variant--#{$name} {
44
44
  border-bottom-color: rgba($color, 1);
45
45
  border-top-color: rgba($color, 1);
46
46
  }
47
47
  }
48
48
 
49
49
  @mixin spinner-variant-gradient($name, $color) {
50
- .spinner-type--gradient.spinner-variant--#{$name} {
50
+ .spinner-appearance--gradient.spinner-variant--#{$name} {
51
51
  border-top: 3px solid rgba($color, 1);
52
52
  }
53
53
  }
54
54
 
55
55
  @mixin spinner-variant-pulse($name, $color) {
56
- .spinner-type--pulse.spinner-variant--#{$name} {
56
+ .spinner-appearance--pulse.spinner-variant--#{$name} {
57
57
  background-color: $color;
58
58
  }
59
59
  }
60
60
 
61
61
  @mixin spinner-variant-pulse-duo($name, $color) {
62
- .spinner-type--pulse-duo.spinner-variant--#{$name}::after,
63
- .spinner-type--pulse-duo.spinner-variant--#{$name}::before {
62
+ .spinner-appearance--pulse-duo.spinner-variant--#{$name}::after,
63
+ .spinner-appearance--pulse-duo.spinner-variant--#{$name}::before {
64
64
  background-color: $color;
65
65
  }
66
66
  }
@@ -93,7 +93,7 @@
93
93
  }
94
94
  }
95
95
 
96
- &-type {
96
+ &-appearance {
97
97
  &--default {
98
98
  animation: rotation 800ms ease infinite;
99
99
  border-radius: 50%;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import './Spinner.scss';
3
3
  export interface ISpinner {
4
- type?: 'default' | 'duo' | 'gradient' | 'pulse' | 'pulse-duo';
4
+ appearance?: 'default' | 'duo' | 'gradient' | 'pulse' | 'pulse-duo';
5
5
  variant?: 'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning';
6
6
  size?: 'xsm' | 'sm' | 'md' | 'lg' | 'xlg';
7
7
  className?: string;
@@ -2,6 +2,6 @@
2
2
  import * as React from 'react';
3
3
  import './Spinner.scss';
4
4
  export var Spinner = function (_a) {
5
- var _b = _a.type, type = _b === void 0 ? 'default' : _b, _c = _a.variant, variant = _c === void 0 ? 'default' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.className, className = _e === void 0 ? '' : _e;
6
- return (React.createElement("div", { className: "spinner spinner-type--".concat(type, " spinner-variant--").concat(variant, " spinner-size--").concat(size, " ").concat(className) }));
5
+ var _b = _a.appearance, appearance = _b === void 0 ? 'default' : _b, _c = _a.variant, variant = _c === void 0 ? 'default' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.className, className = _e === void 0 ? '' : _e;
6
+ return (React.createElement("div", { className: "spinner spinner-appearance--".concat(appearance, " spinner-variant--").concat(variant, " spinner-size--").concat(size, " ").concat(className) }));
7
7
  };