@antv/dumi-theme-antv 0.3.0-beta.1 → 0.3.0-beta.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.
Files changed (61) hide show
  1. package/dist/builtins/Playground/index.d.ts +2 -5
  2. package/dist/builtins/Playground/index.js +17 -3
  3. package/dist/context.d.ts +2 -1
  4. package/dist/layouts/DocLayout.js +26 -16
  5. package/dist/layouts/entry/Index.js +10 -2
  6. package/dist/layouts/entry/Manual.js +1 -2
  7. package/dist/pages/404.js +5 -1
  8. package/dist/pages/Example/index.js +28 -52
  9. package/dist/pages/Example/index.module.less +50 -8
  10. package/dist/pages/Example/utils.d.ts +1 -0
  11. package/dist/pages/Example/utils.js +9 -0
  12. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.js +1 -1
  13. package/dist/pages/Examples/index.js +22 -2
  14. package/dist/pages/Examples/index.module.less +2 -0
  15. package/dist/pages/Examples/types.d.ts +7 -6
  16. package/dist/plugin/examples.d.ts +16 -2
  17. package/dist/plugin/examples.js +32 -10
  18. package/dist/plugin/index.js +30 -20
  19. package/dist/plugin/utils.d.ts +5 -0
  20. package/dist/plugin/utils.js +46 -0
  21. package/dist/slots/Cases/index.d.ts +1 -0
  22. package/dist/slots/CodeEditor/Toolbar.js +4 -16
  23. package/dist/slots/CodeEditor/index.js +40 -14
  24. package/dist/slots/CodeEditor/utils.js +1 -1
  25. package/dist/slots/CodePreview/CodeHeader.js +2 -2
  26. package/dist/slots/CodePreview/index.js +1 -1
  27. package/dist/slots/CodePreview/index.module.less +7 -6
  28. package/dist/slots/CodeRunner/index.d.ts +3 -2
  29. package/dist/slots/CodeRunner/index.js +6 -3
  30. package/dist/slots/CodeRunner/utils.d.ts +3 -2
  31. package/dist/slots/CodeRunner/utils.js +1 -1
  32. package/dist/slots/Detail/News.d.ts +1 -0
  33. package/dist/slots/Detail/index.d.ts +1 -0
  34. package/dist/slots/Detail/index.js +1 -1
  35. package/dist/slots/ExampleSider/index.d.ts +4 -38
  36. package/dist/slots/ExampleSider/index.js +22 -44
  37. package/dist/slots/ExampleSider/index.module.less +1 -1
  38. package/dist/slots/Features/FeatureCard.d.ts +1 -0
  39. package/dist/slots/Features/index.js +2 -1
  40. package/dist/slots/Footer/index.js +3 -2
  41. package/dist/slots/Footer/index.module.less +1 -0
  42. package/dist/slots/Header/Navs.d.ts +10 -1
  43. package/dist/slots/Header/Navs.js +35 -18
  44. package/dist/slots/Header/index.js +8 -7
  45. package/dist/slots/Loading/index.d.ts +6 -1
  46. package/dist/slots/Loading/index.js +24 -10
  47. package/dist/slots/Loading/index.module.less +276 -9
  48. package/dist/slots/ManualContent/index.js +136 -113
  49. package/dist/slots/ManualContent/index.module.less +43 -31
  50. package/dist/slots/ManualContent/utils.d.ts +3 -0
  51. package/dist/slots/ManualContent/utils.js +35 -0
  52. package/dist/slots/SEO.d.ts +10 -0
  53. package/dist/slots/SEO.js +59 -0
  54. package/dist/slots/hooks.d.ts +3 -3
  55. package/dist/slots/utils.d.ts +4 -19
  56. package/dist/slots/utils.js +77 -119
  57. package/dist/types.d.ts +83 -0
  58. package/dist/typings.d.ts +0 -113
  59. package/package.json +6 -4
  60. package/dist/slots/Loading.d.ts +0 -5
  61. package/dist/slots/Loading.js +0 -8
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IC } from '../../types';
2
3
  interface FeatureProps {
3
4
  icon: string;
4
5
  title: IC;
@@ -3,6 +3,7 @@ import { Row, Col } from 'antd';
3
3
  import cx from 'classnames';
4
4
  import FeatureCard from "./FeatureCard";
5
5
  import styles from "./index.module.less";
6
+ import { ic } from "../hooks";
6
7
  export var Features = function Features(_ref) {
7
8
  var title = _ref.title,
8
9
  _ref$features = _ref.features,
@@ -15,7 +16,7 @@ export var Features = function Features(_ref) {
15
16
  var children = features.map(function (card) {
16
17
  return /*#__PURE__*/React.createElement(Col, {
17
18
  className: styles.cardWrapper,
18
- key: card.title,
19
+ key: ic(card.title),
19
20
  md: 8,
20
21
  xs: 24
21
22
  }, /*#__PURE__*/React.createElement(FeatureCard, card));
@@ -1,4 +1,4 @@
1
- var _excluded = ["columns", "bottom", "theme", "language", "isDynamicFooter", "rootDomain"];
1
+ var _excluded = ["columns", "bottom", "theme", "language", "isDynamicFooter", "rootDomain", "className"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -31,6 +31,7 @@ export var Footer = function Footer(props) {
31
31
  isDynamicFooter = props.isDynamicFooter,
32
32
  _props$rootDomain = props.rootDomain,
33
33
  rootDomain = _props$rootDomain === void 0 ? '' : _props$rootDomain,
34
+ className = props.className,
34
35
  restProps = _objectWithoutProperties(props, _excluded);
35
36
 
36
37
  var locale = useLocale();
@@ -163,7 +164,7 @@ export var Footer = function Footer(props) {
163
164
  maxColumnsPerRow: 5,
164
165
  theme: theme,
165
166
  columns: columns || getColumns(),
166
- className: classnames(styles.footer, _defineProperty({}, styles.withMenu, isDynamicFooter)),
167
+ className: classnames(styles.footer, className, _defineProperty({}, styles.withMenu, isDynamicFooter)),
167
168
  bottom: bottom || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
168
169
  className: styles.bottom
169
170
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
@@ -2,6 +2,7 @@
2
2
  @import '../_.less';
3
3
 
4
4
  .footer {
5
+ width: 100%;
5
6
  font-family: Avenir, @font-family;
6
7
 
7
8
  :global(.rc-footer-container),
@@ -1,11 +1,19 @@
1
1
  import React from 'react';
2
+ declare type dropdownItem = {
3
+ label: {
4
+ [key: string]: string;
5
+ };
6
+ key: string;
7
+ };
2
8
  export declare type INav = {
3
- slug: string;
9
+ slug?: string;
4
10
  order: number;
5
11
  title: {
6
12
  [key: string]: string;
7
13
  };
8
14
  target?: '_blank';
15
+ notPage?: boolean;
16
+ dropdownItems?: dropdownItem[];
9
17
  };
10
18
  export declare type NavProps = {
11
19
  navs: INav[];
@@ -15,3 +23,4 @@ export declare type NavProps = {
15
23
  * Header 中的导航菜单
16
24
  */
17
25
  export declare const Navs: React.FC<NavProps>;
26
+ export {};
@@ -3,42 +3,59 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3
3
  import React from 'react';
4
4
  import cx from 'classnames';
5
5
  import { isEqual } from 'lodash-es';
6
- import { LinkOutlined } from '@ant-design/icons';
7
6
  import { Link, useLocale } from 'dumi';
7
+ import { Dropdown, Menu } from 'antd';
8
+ import { DownOutlined, LinkOutlined } from '@ant-design/icons';
8
9
  import styles from "./index.module.less";
9
10
 
10
- var getDocument = function getDocument(navs) {
11
- var slug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
12
- return navs.find(function (doc) {
13
- return doc.slug === slug;
14
- }) || {
15
- title: {}
16
- };
17
- };
18
11
  /**
19
12
  * Header 中的导航菜单
20
13
  */
21
-
22
-
23
14
  export var Navs = function Navs(_ref) {
24
15
  var navs = _ref.navs,
25
16
  path = _ref.path;
26
17
  var locale = useLocale();
27
18
  return /*#__PURE__*/React.createElement(React.Fragment, null, navs.map(function (nav) {
28
- var href = nav.slug.startsWith('http') ? nav.slug : "/".concat(nav.slug);
29
- var title = getDocument(navs, nav.slug).title[locale.id];
19
+ var title = nav.title[locale.id];
20
+ var href = '';
21
+ var className = '';
22
+
23
+ if (nav.slug) {
24
+ href = nav.slug.startsWith('http') ? nav.slug : "/".concat(nav.slug);
25
+
26
+ if (locale.id == 'en' && !href.startsWith('http')) {
27
+ href = "/en".concat(href);
28
+ } // 去除 docs 防止二次点击相同nav跳转出现04
30
29
 
31
- if (window.location.pathname.includes('en')) {
32
- href = "/en".concat(href);
30
+
31
+ href = href.replace('/docs/', '/');
32
+ className = cx('header-menu-item-active', _defineProperty({}, styles.activeItem, path.startsWith(href) || isEqual(path.split('/').slice(0, 4), href.split('/').slice(0, 4))));
33
33
  }
34
34
 
35
- var className = cx('header-menu-item-active', _defineProperty({}, styles.activeItem, path.startsWith(href) || isEqual(path.split('/').slice(0, 4), href.split('/').slice(0, 4))));
36
- return /*#__PURE__*/React.createElement("li", {
35
+ return nav.notPage ? /*#__PURE__*/React.createElement("li", {
36
+ key: title,
37
+ className: className
38
+ }, /*#__PURE__*/React.createElement(Dropdown, {
39
+ className: styles.ecoSystems,
40
+ placement: "bottom",
41
+ overlay: /*#__PURE__*/React.createElement(Menu, null, nav.dropdownItems.map(function (_ref2) {
42
+ var label = _ref2.label,
43
+ key = _ref2.key;
44
+ return /*#__PURE__*/React.createElement(Menu.Item, {
45
+ key: key
46
+ }, /*#__PURE__*/React.createElement("a", {
47
+ target: "_blank",
48
+ rel: "noreferrer",
49
+ href: key
50
+ }, label[locale.id], " ", /*#__PURE__*/React.createElement(LinkOutlined, null)));
51
+ }))
52
+ }, /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(DownOutlined, null)))) : /*#__PURE__*/React.createElement("li", {
37
53
  key: title,
38
54
  className: className
39
55
  }, nav.target === '_blank' || href.startsWith('http') ? /*#__PURE__*/React.createElement("a", {
40
56
  href: href,
41
- target: "_blank"
57
+ target: "_blank",
58
+ rel: "noreferrer"
42
59
  }, title, /*#__PURE__*/React.createElement(LinkOutlined, null)) : /*#__PURE__*/React.createElement(Link, {
43
60
  to: href
44
61
  }, title));
@@ -22,7 +22,7 @@ import { useMedia } from 'react-use';
22
22
  import { useNavigate } from "react-router-dom";
23
23
  import cx from 'classnames';
24
24
  import { useSiteData, useLocale } from 'dumi';
25
- import { GithubOutlined, MenuOutlined, CaretDownFilled, DownOutlined, WechatOutlined, LikeOutlined, CheckOutlined } from '@ant-design/icons';
25
+ import { GithubOutlined, MenuOutlined, CaretDownFilled, DownOutlined, WechatOutlined, LinkOutlined, CheckOutlined } from '@ant-design/icons';
26
26
  import { Popover, Menu, Dropdown, Select } from 'antd';
27
27
  import { map, size } from 'lodash-es';
28
28
  import { Search } from "./Search";
@@ -173,12 +173,12 @@ var HeaderComponent = function HeaderComponent(_ref) {
173
173
  className: cx(styles.menu, (_cx = {}, _defineProperty(_cx, styles.popup, !isWide), _defineProperty(_cx, styles.popupHidden, !popupMenuVisible), _cx))
174
174
  },
175
175
  /** 最左侧的菜单,一般是 教程、API、示例,或者其他自定义,有配置文件中的 `navs` 决定 */
176
- size(navs) && /*#__PURE__*/React.createElement(Navs, {
176
+ size(navs) ? /*#__PURE__*/React.createElement(Navs, {
177
177
  navs: navs,
178
178
  path: window.location.pathname
179
- }),
179
+ }) : null,
180
180
  /** 生态产品 */
181
- size(ecosystems) && /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Dropdown, {
181
+ size(ecosystems) ? /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Dropdown, {
182
182
  className: styles.ecoSystems,
183
183
  overlay: /*#__PURE__*/React.createElement(Menu, null, map(ecosystems, function (_ref2) {
184
184
  var url = _ref2.url,
@@ -189,13 +189,13 @@ var HeaderComponent = function HeaderComponent(_ref) {
189
189
  target: "_blank",
190
190
  rel: "noreferrer",
191
191
  href: url
192
- }, ecosystemName === null || ecosystemName === void 0 ? void 0 : ecosystemName[lang], " ", /*#__PURE__*/React.createElement(LikeOutlined, null)));
192
+ }, ecosystemName === null || ecosystemName === void 0 ? void 0 : ecosystemName[lang], " ", /*#__PURE__*/React.createElement(LinkOutlined, null)));
193
193
  }))
194
194
  }, /*#__PURE__*/React.createElement("span", null, useT('周边生态'), /*#__PURE__*/React.createElement(DownOutlined, {
195
195
  style: {
196
196
  marginLeft: '6px'
197
197
  }
198
- })))),
198
+ })))) : null,
199
199
  /** 产品列表 */
200
200
  showAntVProductsCard && /*#__PURE__*/React.createElement("li", productItemProps, /*#__PURE__*/React.createElement("a", null, useT('所有产品'), !isAntVHome ? /*#__PURE__*/React.createElement("img", {
201
201
  src: "https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png",
@@ -312,7 +312,8 @@ var HeaderComponent = function HeaderComponent(_ref) {
312
312
  className: styles.githubCorner
313
313
  }, /*#__PURE__*/React.createElement("a", {
314
314
  href: githubUrl,
315
- target: "_blank"
315
+ target: "_blank",
316
+ rel: "noreferrer"
316
317
  }, /*#__PURE__*/React.createElement(GithubOutlined, null))));
317
318
  return /*#__PURE__*/React.createElement("header", {
318
319
  className: cx(styles.header, (_cx4 = {}, _defineProperty(_cx4, styles.transparent, !!transparent && !productMenuVisible), _defineProperty(_cx4, styles.isHomePage, !!isHomePage && !isAntVHome), _defineProperty(_cx4, styles.lightTheme, !!isAntVHome && !productMenuVisible && isWide), _defineProperty(_cx4, styles.fixed, popupMenuVisible), _cx4))
@@ -1,2 +1,7 @@
1
1
  import React from 'react';
2
- export declare const Loading: React.FC;
2
+ /**
3
+ * Loading
4
+ */
5
+ declare const Loading: React.FC;
6
+ declare const PageLoading: React.FC;
7
+ export { Loading, PageLoading };
@@ -1,17 +1,21 @@
1
1
  import React from 'react';
2
- export var Loading = function Loading() {
2
+ import styles from "./index.module.less";
3
+ /**
4
+ * Loading
5
+ */
6
+
7
+ var Loading = function Loading() {
3
8
  return /*#__PURE__*/React.createElement("div", {
4
- style: {
5
- height: '100vh'
6
- }
7
- }, /*#__PURE__*/React.createElement("div", {
8
9
  style: {
9
10
  position: 'relative',
10
- height: '100%'
11
+ height: '100%',
12
+ width: '100%'
11
13
  }
12
14
  }, /*#__PURE__*/React.createElement("div", {
13
- className: "code-loading"
14
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
15
+ className: styles.loading
16
+ }, /*#__PURE__*/React.createElement("div", {
17
+ className: "container"
18
+ }, /*#__PURE__*/React.createElement("div", {
15
19
  className: "loader"
16
20
  }, /*#__PURE__*/React.createElement("svg", {
17
21
  viewBox: "0 0 80 80"
@@ -61,5 +65,15 @@ export var Loading = function Loading() {
61
65
  stroke: "url(#gradient)"
62
66
  }))), /*#__PURE__*/React.createElement("div", {
63
67
  className: "loading-text"
64
- }, /*#__PURE__*/React.createElement("p", null, "Loading..."))))));
65
- };
68
+ }, /*#__PURE__*/React.createElement("p", null, "Loading...")))));
69
+ };
70
+
71
+ var PageLoading = function PageLoading() {
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ style: {
74
+ height: '100vh'
75
+ }
76
+ }, /*#__PURE__*/React.createElement(Loading, null));
77
+ };
78
+
79
+ export { Loading, PageLoading };
@@ -1,12 +1,279 @@
1
- @import '~antd/es/style/themes/default.less';
1
+ .loading {
2
+ position: absolute;
3
+ left: 0;
4
+ top: 0;
5
+ z-index: 9999;
6
+ width: 100%;
7
+ height: 100%;
8
+ background-color: #fff;
9
+ border: 1px solid #f0f0f0;
2
10
 
3
- .container {
4
- padding: 30vh 0 0;
5
- text-align: center;
11
+ :global {
12
+ .container {
13
+ display: inline-block;
14
+ position: absolute;
15
+ left: 50%;
16
+ top: 50%;
17
+ margin: -50px 0 0 -120px;
18
+ }
19
+ .loader {
20
+ --duration: 3s;
21
+ width: 44px;
22
+ height: 44px;
23
+ position: relative;
24
+ display: inline-block;
25
+ margin: 0 16px;
26
+ }
27
+
28
+ .loader:before {
29
+ content: ' ';
30
+ width: 6px;
31
+ height: 6px;
32
+ border-radius: 50%;
33
+ position: absolute;
34
+ display: block;
35
+ background: #ff700a;
36
+ top: 37px;
37
+ left: 19px;
38
+ -webkit-transform: translate(-18px, -18px);
39
+ transform: translate(-18px, -18px);
40
+ -webkit-animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
41
+ animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
42
+ }
43
+
44
+ .loader svg {
45
+ display: block;
46
+ width: 100%;
47
+ height: 100%;
48
+ }
49
+
50
+ .loader svg rect,
51
+ .loader svg polygon,
52
+ .loader svg circle {
53
+ fill: none;
54
+ stroke-width: 10px;
55
+ stroke-linejoin: round;
56
+ stroke-linecap: round;
57
+ }
58
+
59
+ .loader svg polygon {
60
+ stroke-dasharray: 145 76 145 76;
61
+ stroke-dashoffset: 0;
62
+ -webkit-animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
63
+ animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
64
+ }
65
+
66
+ .loader svg rect {
67
+ stroke-dasharray: 192 64 192 64;
68
+ stroke-dashoffset: 0;
69
+ -webkit-animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
70
+ animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
71
+ }
72
+
73
+ .loader svg circle {
74
+ stroke-dasharray: 150 50 150 50;
75
+ stroke-dashoffset: 75;
76
+ -webkit-animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
77
+ animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
78
+ }
79
+
80
+ .loader.triangle {
81
+ width: 48px;
82
+ }
83
+
84
+ .loader.triangle:before {
85
+ left: 21px;
86
+ -webkit-transform: translate(-10px, -18px);
87
+ transform: translate(-10px, -18px);
88
+ -webkit-animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
89
+ animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
90
+ }
91
+
92
+ .loading-text {
93
+ text-align: center;
94
+ height: 40px;
95
+ line-height: 40px;
96
+ font-size: 12px;
97
+ letter-spacing: 0.1em;
98
+ color: #666;
99
+ }
100
+ }
101
+ }
102
+
103
+ @-webkit-keyframes ~":global(pathTriangle)" {
104
+ 33% {
105
+ stroke-dashoffset: 74;
106
+ }
107
+
108
+ 66% {
109
+ stroke-dashoffset: 147;
110
+ }
111
+
112
+ 100% {
113
+ stroke-dashoffset: 221;
114
+ }
115
+ }
116
+
117
+ @keyframes ~":global(pathTriangle)" {
118
+ 33% {
119
+ stroke-dashoffset: 74;
120
+ }
121
+
122
+ 66% {
123
+ stroke-dashoffset: 147;
124
+ }
125
+
126
+ 100% {
127
+ stroke-dashoffset: 221;
128
+ }
129
+ }
130
+
131
+ @-webkit-keyframes ~":global(dotTriangle)" {
132
+ 33% {
133
+ -webkit-transform: translate(0, 0);
134
+ transform: translate(0, 0);
135
+ }
136
+
137
+ 66% {
138
+ -webkit-transform: translate(10px, -18px);
139
+ transform: translate(10px, -18px);
140
+ }
141
+
142
+ 100% {
143
+ -webkit-transform: translate(-10px, -18px);
144
+ transform: translate(-10px, -18px);
145
+ }
146
+ }
147
+
148
+ @keyframes ~":global(dotTriangle)" {
149
+ 33% {
150
+ -webkit-transform: translate(0, 0);
151
+ transform: translate(0, 0);
152
+ }
153
+
154
+ 66% {
155
+ -webkit-transform: translate(10px, -18px);
156
+ transform: translate(10px, -18px);
157
+ }
158
+
159
+ 100% {
160
+ -webkit-transform: translate(-10px, -18px);
161
+ transform: translate(-10px, -18px);
162
+ }
163
+ }
164
+
165
+ @-webkit-keyframes ~":global(pathRect)" {
166
+ 25% {
167
+ stroke-dashoffset: 64;
168
+ }
169
+
170
+ 50% {
171
+ stroke-dashoffset: 128;
172
+ }
173
+
174
+ 75% {
175
+ stroke-dashoffset: 192;
176
+ }
177
+
178
+ 100% {
179
+ stroke-dashoffset: 256;
180
+ }
181
+ }
182
+
183
+ @keyframes ~":global(pathRect)" {
184
+ 25% {
185
+ stroke-dashoffset: 64;
186
+ }
187
+
188
+ 50% {
189
+ stroke-dashoffset: 128;
190
+ }
191
+
192
+ 75% {
193
+ stroke-dashoffset: 192;
194
+ }
195
+
196
+ 100% {
197
+ stroke-dashoffset: 256;
198
+ }
199
+ }
200
+
201
+ @-webkit-keyframes ~":global(dotRect)" {
202
+ 25% {
203
+ -webkit-transform: translate(0, 0);
204
+ transform: translate(0, 0);
205
+ }
206
+
207
+ 50% {
208
+ -webkit-transform: translate(18px, -18px);
209
+ transform: translate(18px, -18px);
210
+ }
211
+
212
+ 75% {
213
+ -webkit-transform: translate(0, -36px);
214
+ transform: translate(0, -36px);
215
+ }
216
+
217
+ 100% {
218
+ -webkit-transform: translate(-18px, -18px);
219
+ transform: translate(-18px, -18px);
220
+ }
221
+ }
222
+
223
+ @keyframes ~":global(dotRect)" {
224
+ 25% {
225
+ -webkit-transform: translate(0, 0);
226
+ transform: translate(0, 0);
227
+ }
228
+
229
+ 50% {
230
+ -webkit-transform: translate(18px, -18px);
231
+ transform: translate(18px, -18px);
232
+ }
233
+
234
+ 75% {
235
+ -webkit-transform: translate(0, -36px);
236
+ transform: translate(0, -36px);
237
+ }
238
+
239
+ 100% {
240
+ -webkit-transform: translate(-18px, -18px);
241
+ transform: translate(-18px, -18px);
242
+ }
243
+ }
244
+
245
+ @-webkit-keyframes ~":global(pathCircle)" {
246
+ 25% {
247
+ stroke-dashoffset: 125;
248
+ }
249
+
250
+ 50% {
251
+ stroke-dashoffset: 175;
252
+ }
253
+
254
+ 75% {
255
+ stroke-dashoffset: 225;
256
+ }
257
+
258
+ 100% {
259
+ stroke-dashoffset: 275;
260
+ }
261
+ }
262
+
263
+ @keyframes ~":global(pathCircle)" {
264
+ 25% {
265
+ stroke-dashoffset: 125;
266
+ }
267
+
268
+ 50% {
269
+ stroke-dashoffset: 175;
270
+ }
271
+
272
+ 75% {
273
+ stroke-dashoffset: 225;
274
+ }
6
275
 
7
- .loading {
8
- font-size: 36px;
9
- color: @primary-color;
10
- text-align: center;
276
+ 100% {
277
+ stroke-dashoffset: 275;
11
278
  }
12
- }
279
+ }