@stellar-expert/ui-framework 1.14.8 → 1.14.10

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.
@@ -3,10 +3,11 @@ import PropTypes from 'prop-types'
3
3
  import cn from 'classnames'
4
4
  import './button.scss'
5
5
 
6
- export const Button = React.memo(function Button({href, onClick, block, outline, clear, stackable, small, disabled, className, children, ...op}) {
6
+ export const Button = React.memo(function Button({href, onClick, block, outline, clear, stackable, small, disabled, loading, className, children, ...op}) {
7
7
  const c = cn('button', {
8
8
  small,
9
9
  disabled,
10
+ loading,
10
11
  'button-block': block,
11
12
  'button-outline': outline,
12
13
  'button-clear': clear,
@@ -135,6 +135,32 @@ button {
135
135
  }
136
136
  }
137
137
  }
138
+
139
+ .loading:after {
140
+ content: "";
141
+ display: block;
142
+ position: absolute;
143
+ top: 0;
144
+ left: 0;
145
+ width: 20%;
146
+ height: 100%;
147
+ opacity: 0.4;
148
+ background: linear-gradient(to right, transparent, var(--color-text) 50%, transparent);
149
+ transform: skew(-20deg) translateX(0);
150
+ animation: loading-button 3s infinite ease-in-out;
151
+ }
152
+
153
+ @keyframes loading-button {
154
+ 0% {
155
+ left: 0;
156
+ }
157
+ 50% {
158
+ left: 80%;
159
+ }
160
+ 100% {
161
+ left: 0;
162
+ }
163
+ }
138
164
  }
139
165
 
140
166
  @media (max-width: $responsive-mobile-browser-width) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.14.8",
3
+ "version": "1.14.10",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",