@antscorp/antsomi-ui 1.3.5-beta.330 → 1.3.5-beta.331

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.
@@ -23,7 +23,6 @@ export const Spin = (props) => {
23
23
  return (React.createElement(StyledSpin, Object.assign({ indicator: (React.createElement(LoadingIcon, { style: {
24
24
  fontSize: indicatorSize || 40,
25
25
  color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorPrimary,
26
- animation: `loadingCircle 1s infinite linear`,
27
26
  }, backgroundColor: showIndicatorBackground ? indicatorBackground || (globalToken === null || globalToken === void 0 ? void 0 : globalToken.blue1_1) : 'transparent' })) }, restOf), children));
28
27
  };
29
28
  Spin.defaultProps = {};
@@ -10,9 +10,44 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React, { forwardRef } from 'react';
13
+ import styled from 'styled-components';
14
+ const StyleSvg = styled.svg `
15
+ animation: 1.4s linear 0s infinite normal none running spin;
16
+
17
+ circle.circle {
18
+ stroke: currentcolor;
19
+ stroke-dasharray: 80px, 200px;
20
+ stroke-dashoffset: 0;
21
+ animation: 1.4s ease-in-out 0s infinite normal none running animation-loading;
22
+ }
23
+
24
+ @keyframes animation-loading {
25
+ 0% {
26
+ stroke-dasharray: 1px, 200px;
27
+ stroke-dashoffset: 0;
28
+ }
29
+ 50% {
30
+ stroke-dasharray: 100px, 200px;
31
+ stroke-dashoffset: -15px;
32
+ }
33
+ 100% {
34
+ stroke-dasharray: 100px, 200px;
35
+ stroke-dashoffset: -125px;
36
+ }
37
+ }
38
+
39
+ @keyframes spin {
40
+ 0% {
41
+ transform: rotate(0deg);
42
+ }
43
+ 100% {
44
+ transform: rotate(360deg);
45
+ }
46
+ }
47
+ `;
13
48
  export const LoadingIcon = forwardRef((_a, ref) => {
14
49
  var { backgroundColor } = _a, restOfProps = __rest(_a, ["backgroundColor"]);
15
- return (React.createElement("svg", Object.assign({ width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restOfProps, { ref: ref }),
50
+ return (React.createElement(StyleSvg, Object.assign({ width: "41", height: "41", viewBox: "0 0 41 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, restOfProps, { ref: ref }),
16
51
  React.createElement("path", { d: "M40.5 20.5C40.5 31.5457 31.5457 40.5 20.5 40.5C9.4543 40.5 0.5 31.5457 0.5 20.5C0.5 9.4543 9.4543 0.5 20.5 0.5C31.5457 0.5 40.5 9.4543 40.5 20.5ZM2.5 20.5C2.5 30.4411 10.5589 38.5 20.5 38.5C30.4411 38.5 38.5 30.4411 38.5 20.5C38.5 10.5589 30.4411 2.5 20.5 2.5C10.5589 2.5 2.5 10.5589 2.5 20.5Z", fill: backgroundColor || 'transparent' }),
17
- React.createElement("path", { d: "M37.9236 28.0774C38.4301 28.2977 39.0217 28.0665 39.2164 27.5496C40.3036 24.6631 40.7101 21.5595 40.3979 18.4817C40.052 15.0718 38.8357 11.808 36.8655 9.00346C34.8953 6.1989 32.2375 3.94771 29.147 2.46587C26.0565 0.984039 22.637 0.321291 19.2167 0.541216C15.7963 0.761142 12.4899 1.85636 9.61461 3.72179C6.73932 5.58722 4.39168 8.16027 2.79691 11.194C1.20215 14.2278 0.413791 17.6205 0.507472 21.0467C0.592029 24.1391 1.3926 27.165 2.84058 29.8886C3.09984 30.3762 3.71622 30.5298 4.1903 30.2465C4.66438 29.9632 4.81636 29.3503 4.55981 28.8613C3.28613 26.4331 2.58191 23.7417 2.50673 20.992C2.42241 17.9085 3.13194 14.855 4.56722 12.1246C6.00251 9.39424 8.11539 7.0785 10.7031 5.39961C13.2909 3.72073 16.2667 2.73503 19.345 2.53709C22.4233 2.33916 25.5008 2.93564 28.2823 4.26929C31.0637 5.60294 33.4558 7.62901 35.2289 10.1531C37.0021 12.6772 38.0968 15.6146 38.4081 18.6836C38.6857 21.4203 38.332 24.1797 37.3797 26.751C37.1879 27.2689 37.4172 27.8572 37.9236 28.0774Z", fill: "currentColor" })));
52
+ React.createElement("circle", { className: "circle", cx: "20.5", cy: "20.5", r: "19", fill: "none", strokeWidth: "2" })));
18
53
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.330",
3
+ "version": "1.3.5-beta.331",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",