@cloudtower/eagle 0.30.3 → 0.30.5
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/dist/cjs/core/Loading/index.js +23 -2
- package/dist/cjs/coreX/CircleLoading/index.js +66 -0
- package/dist/cjs/index.js +3 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/styles/token/animation.js +11 -1
- package/dist/components.css +2471 -2451
- package/dist/esm/core/Loading/index.js +22 -2
- package/dist/esm/coreX/CircleLoading/index.js +59 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/styles/token/animation.js +11 -2
- package/dist/src/core/Loading/loading.type.d.ts +2 -2
- package/dist/src/coreX/CircleLoading/index.d.ts +3 -0
- package/dist/src/coreX/index.d.ts +2 -0
- package/dist/src/styles/token/animation.d.ts +4 -0
- package/dist/stories/docs/core/Loading.stories.d.ts +2 -2
- package/dist/stories/docs/coreX/CircleLoading.stories.d.ts +20 -0
- package/dist/style.css +2254 -2235
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LoadingWrapper, LoadingLine1, LoadingLine2, LoadingLine3 } from './style.js';
|
|
2
2
|
import { FullView } from '../Styled/index.js';
|
|
3
3
|
import React__default, { Fragment } from 'react';
|
|
4
|
+
import cs from 'classnames';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __defProps = Object.defineProperties;
|
|
@@ -21,10 +22,29 @@ var __spreadValues = (a, b) => {
|
|
|
21
22
|
return a;
|
|
22
23
|
};
|
|
23
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
const Loading = (_a) => {
|
|
38
|
+
var _b = _a, {
|
|
39
|
+
fullView = true,
|
|
40
|
+
className
|
|
41
|
+
} = _b, restProps = __objRest(_b, [
|
|
42
|
+
"fullView",
|
|
43
|
+
"className"
|
|
44
|
+
]);
|
|
25
45
|
const Wrapper = fullView ? FullView : Fragment;
|
|
26
46
|
const props = fullView ? { className: "loading-full-view" } : {};
|
|
27
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
47
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), { "data-testid": "loading" }), /* @__PURE__ */ React__default.createElement("div", __spreadValues({ className: cs(LoadingWrapper, className) }, restProps), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
|
|
28
48
|
};
|
|
29
49
|
var Loading$1 = Loading;
|
|
30
50
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FullView } from '../../core/Styled/index.js';
|
|
2
|
+
import Icon from '../../core/Icon/index.js';
|
|
3
|
+
import React__default, { Fragment } from 'react';
|
|
4
|
+
import cs from 'classnames';
|
|
5
|
+
import { Loading64GradientBlueIcon } from '@cloudtower/icons-react';
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __defProps = Object.defineProperties;
|
|
9
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
10
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value
|
|
18
|
+
}) : obj[key] = value;
|
|
19
|
+
var __spreadValues = (a, b) => {
|
|
20
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
22
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __objRest = (source, exclude) => {
|
|
28
|
+
var target = {};
|
|
29
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
31
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
const LoadingWrapper = "E_l12xdkhl";
|
|
36
|
+
const CircleLoading = _a => {
|
|
37
|
+
var _b = _a,
|
|
38
|
+
{
|
|
39
|
+
fullView = true,
|
|
40
|
+
className
|
|
41
|
+
} = _b,
|
|
42
|
+
restProps = __objRest(_b, ["fullView", "className"]);
|
|
43
|
+
const Wrapper = fullView ? FullView : Fragment;
|
|
44
|
+
const props = fullView ? {
|
|
45
|
+
className: "loading-full-view"
|
|
46
|
+
} : {};
|
|
47
|
+
return /* @__PURE__ */React__default.createElement(Wrapper, __spreadProps(__spreadValues({}, props), {
|
|
48
|
+
"data-testid": "loading"
|
|
49
|
+
}), /* @__PURE__ */React__default.createElement("div", __spreadValues({
|
|
50
|
+
className: cs(LoadingWrapper, className)
|
|
51
|
+
}, restProps), /* @__PURE__ */React__default.createElement(Icon, {
|
|
52
|
+
src: Loading64GradientBlueIcon,
|
|
53
|
+
iconWidth: 64,
|
|
54
|
+
iconHeight: 64
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
var CircleLoading$1 = CircleLoading;
|
|
58
|
+
|
|
59
|
+
export { CircleLoading$1 as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -123,11 +123,12 @@ export { default as SummaryTable, SummaryTableRow } from './coreX/SummaryTable/i
|
|
|
123
123
|
export { default as SwitchWithText } from './coreX/SwitchWithText/index.js';
|
|
124
124
|
export { default as TabMenu } from './coreX/TabMenu/index.js';
|
|
125
125
|
export { default as UnitWithChart, UnitWrapper } from './coreX/UnitWithChart/index.js';
|
|
126
|
+
export { default as CircleLoading } from './coreX/CircleLoading/index.js';
|
|
126
127
|
export { getCalendarTitle } from './coreX/common/getCalendarTitle.js';
|
|
127
128
|
export { default as AbsoluteDate } from './coreX/DateRangePicker/AbsoluteDate.js';
|
|
128
129
|
export { default as DateRangePickerCalendar } from './coreX/DateRangePicker/Calendar.js';
|
|
129
130
|
export { default as InputTime } from './coreX/DateRangePicker/InputTime.js';
|
|
130
131
|
export { default as RelativeTime } from './coreX/DateRangePicker/RelativeTime.js';
|
|
131
|
-
export { Animation } from './styles/token/animation.js';
|
|
132
|
+
export { Animation, Keyframes } from './styles/token/animation.js';
|
|
132
133
|
export { Color } from './styles/token/color.js';
|
|
133
134
|
export { zIndices } from './styles/token/zIndices.js';
|