@elliemae/ds-spinner 2.0.0-alpha.1 → 2.0.0-alpha.13
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/cjs/DSSpinner.js +22 -17
- package/cjs/index.js +1 -1
- package/esm/DSSpinner.js +9 -4
- package/package.json +3 -3
- package/types/DSSpinner.d.ts +31 -3
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/DSSpinner.js
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
7
12
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -22,7 +27,7 @@ const _excluded = ["containerProps", "innerRef", "message", "size"];
|
|
|
22
27
|
|
|
23
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
24
29
|
|
|
25
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
26
31
|
const blockName = 'spinner';
|
|
27
32
|
const SpinnerContainer = dsClassnames.aggregatedClasses('div')(blockName);
|
|
28
33
|
const SpinnerMessage = dsClassnames.aggregatedClasses('span')(blockName, 'message');
|
|
@@ -35,7 +40,7 @@ const DSSpinner = _ref => {
|
|
|
35
40
|
message,
|
|
36
41
|
size
|
|
37
42
|
} = _ref,
|
|
38
|
-
otherProps = _objectWithoutProperties__default[
|
|
43
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
39
44
|
|
|
40
45
|
return /*#__PURE__*/jsxRuntime.jsxs(SpinnerContainer, _objectSpread(_objectSpread(_objectSpread({}, containerProps), {}, {
|
|
41
46
|
ref: innerRef,
|
|
@@ -44,43 +49,43 @@ const DSSpinner = _ref => {
|
|
|
44
49
|
"aria-live": "polite",
|
|
45
50
|
role: "alert"
|
|
46
51
|
}, otherProps), {}, {
|
|
47
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
52
|
+
children: [/*#__PURE__*/_jsx__default["default"](Spinner, {
|
|
48
53
|
classProps: {
|
|
49
54
|
size
|
|
50
55
|
}
|
|
51
|
-
}, void 0, _svg || (_svg = /*#__PURE__*/_jsx__default[
|
|
52
|
-
className:
|
|
56
|
+
}, void 0, _svg || (_svg = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
57
|
+
className: "".concat(blockName, "-tl"),
|
|
53
58
|
viewBox: "0 0 16.6 16.6",
|
|
54
59
|
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
60
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
56
61
|
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
57
62
|
fill: "#408a90",
|
|
58
63
|
stroke: "#fbfbfb"
|
|
59
|
-
}))), _svg2 || (_svg2 = /*#__PURE__*/_jsx__default[
|
|
60
|
-
className:
|
|
64
|
+
}))), _svg2 || (_svg2 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
65
|
+
className: "".concat(blockName, "-tr"),
|
|
61
66
|
viewBox: "0 0 16.6 16.6",
|
|
62
67
|
xmlns: "http://www.w3.org/2000/svg"
|
|
63
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
68
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
64
69
|
d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
|
|
65
70
|
fill: "#f7901e",
|
|
66
71
|
stroke: "#fbfbfb"
|
|
67
|
-
}))), _svg3 || (_svg3 = /*#__PURE__*/_jsx__default[
|
|
68
|
-
className:
|
|
72
|
+
}))), _svg3 || (_svg3 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
73
|
+
className: "".concat(blockName, "-br"),
|
|
69
74
|
viewBox: "0 0 16.6 16.6",
|
|
70
75
|
xmlns: "http://www.w3.org/2000/svg"
|
|
71
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
76
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
72
77
|
d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
|
|
73
78
|
fill: "#0067ab",
|
|
74
79
|
stroke: "#fbfbfb"
|
|
75
|
-
}))), _svg4 || (_svg4 = /*#__PURE__*/_jsx__default[
|
|
76
|
-
className:
|
|
80
|
+
}))), _svg4 || (_svg4 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
81
|
+
className: "".concat(blockName, "-bl"),
|
|
77
82
|
viewBox: "0 0 16.6 16.6",
|
|
78
83
|
xmlns: "http://www.w3.org/2000/svg"
|
|
79
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
84
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
80
85
|
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
81
86
|
fill: "#00acdc",
|
|
82
87
|
stroke: "#fbfbfb"
|
|
83
|
-
})))), message && /*#__PURE__*/_jsx__default[
|
|
88
|
+
})))), message && /*#__PURE__*/_jsx__default["default"](SpinnerMessage, {}, void 0, message)]
|
|
84
89
|
}));
|
|
85
90
|
};
|
|
86
91
|
|
|
@@ -100,4 +105,4 @@ SpinnerWithSchema.propTypes = spinnerProps;
|
|
|
100
105
|
|
|
101
106
|
exports.DSSpinner = DSSpinner;
|
|
102
107
|
exports.SpinnerWithSchema = SpinnerWithSchema;
|
|
103
|
-
exports[
|
|
108
|
+
exports["default"] = DSSpinner;
|
package/cjs/index.js
CHANGED
package/esm/DSSpinner.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
8
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
@@ -39,7 +44,7 @@ const DSSpinner = _ref => {
|
|
|
39
44
|
size
|
|
40
45
|
}
|
|
41
46
|
}, void 0, _svg || (_svg = /*#__PURE__*/_jsx("svg", {
|
|
42
|
-
className:
|
|
47
|
+
className: "".concat(blockName, "-tl"),
|
|
43
48
|
viewBox: "0 0 16.6 16.6",
|
|
44
49
|
xmlns: "http://www.w3.org/2000/svg"
|
|
45
50
|
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
@@ -47,7 +52,7 @@ const DSSpinner = _ref => {
|
|
|
47
52
|
fill: "#408a90",
|
|
48
53
|
stroke: "#fbfbfb"
|
|
49
54
|
}))), _svg2 || (_svg2 = /*#__PURE__*/_jsx("svg", {
|
|
50
|
-
className:
|
|
55
|
+
className: "".concat(blockName, "-tr"),
|
|
51
56
|
viewBox: "0 0 16.6 16.6",
|
|
52
57
|
xmlns: "http://www.w3.org/2000/svg"
|
|
53
58
|
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
@@ -55,7 +60,7 @@ const DSSpinner = _ref => {
|
|
|
55
60
|
fill: "#f7901e",
|
|
56
61
|
stroke: "#fbfbfb"
|
|
57
62
|
}))), _svg3 || (_svg3 = /*#__PURE__*/_jsx("svg", {
|
|
58
|
-
className:
|
|
63
|
+
className: "".concat(blockName, "-br"),
|
|
59
64
|
viewBox: "0 0 16.6 16.6",
|
|
60
65
|
xmlns: "http://www.w3.org/2000/svg"
|
|
61
66
|
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
@@ -63,7 +68,7 @@ const DSSpinner = _ref => {
|
|
|
63
68
|
fill: "#0067ab",
|
|
64
69
|
stroke: "#fbfbfb"
|
|
65
70
|
}))), _svg4 || (_svg4 = /*#__PURE__*/_jsx("svg", {
|
|
66
|
-
className:
|
|
71
|
+
className: "".concat(blockName, "-bl"),
|
|
67
72
|
viewBox: "0 0 16.6 16.6",
|
|
68
73
|
xmlns: "http://www.w3.org/2000/svg"
|
|
69
74
|
}, void 0, /*#__PURE__*/_jsx("path", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-spinner",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Spinner",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"build": "node ../../scripts/build/build.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-classnames": "2.0.0-alpha.
|
|
40
|
-
"
|
|
39
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.13",
|
|
40
|
+
"react-desc": "~4.1.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"lodash": "^4.17.21",
|
package/types/DSSpinner.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSSpinner: {
|
|
3
4
|
({ containerProps, innerRef, message, size, ...otherProps }: {
|
|
@@ -13,12 +14,39 @@ declare const DSSpinner: {
|
|
|
13
14
|
size: string;
|
|
14
15
|
};
|
|
15
16
|
propTypes: {
|
|
17
|
+
innerRef: {
|
|
18
|
+
defaultValue<T = unknown>(arg: T): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
containerProps: {
|
|
24
|
+
defaultValue<T = unknown>(arg: T): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
message: {
|
|
30
|
+
defaultValue<T = unknown>(arg: T): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
declare const SpinnerWithSchema: {
|
|
41
|
+
(props?: {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
containerProps?: {} | undefined;
|
|
16
44
|
innerRef: any;
|
|
17
|
-
containerProps: any;
|
|
18
45
|
message: any;
|
|
19
46
|
size: any;
|
|
20
|
-
};
|
|
47
|
+
} | undefined): JSX.Element;
|
|
48
|
+
propTypes: unknown;
|
|
49
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
21
50
|
};
|
|
22
|
-
declare const SpinnerWithSchema: any;
|
|
23
51
|
export { DSSpinner, SpinnerWithSchema };
|
|
24
52
|
export default DSSpinner;
|
package/cjs/package.json
DELETED