@elliemae/ds-spinner 2.3.0-alpha.8 → 2.3.0-next.2
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 +108 -0
- package/cjs/index.js +11 -0
- package/esm/DSSpinner.js +96 -0
- package/esm/index.js +1 -0
- package/package.json +19 -21
- package/types/DSSpinner.d.ts +46 -0
- package/types/index.d.ts +2 -0
- package/dist/cjs/DSSpinner.js +0 -107
- package/dist/cjs/DSSpinner.js.map +0 -7
- package/dist/cjs/index.js +0 -37
- package/dist/cjs/index.js.map +0 -7
- package/dist/esm/DSSpinner.js +0 -78
- package/dist/esm/DSSpinner.js.map +0 -7
- package/dist/esm/index.js +0 -8
- package/dist/esm/index.js.map +0 -7
package/cjs/DSSpinner.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
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');
|
|
10
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
11
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
12
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
|
+
require('react');
|
|
14
|
+
var reactDesc = require('react-desc');
|
|
15
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
16
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
22
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
23
|
+
|
|
24
|
+
var _svg, _svg2, _svg3, _svg4;
|
|
25
|
+
|
|
26
|
+
const _excluded = ["containerProps", "innerRef", "message", "size"];
|
|
27
|
+
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
+
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
+
const blockName = 'spinner';
|
|
32
|
+
const SpinnerContainer = dsClassnames.aggregatedClasses('div')(blockName);
|
|
33
|
+
const SpinnerMessage = dsClassnames.aggregatedClasses('span')(blockName, 'message');
|
|
34
|
+
const Spinner = dsClassnames.aggregatedClasses('div')(blockName, 'spinner'); // TODO: do we want dynamic position of the text (top, right, bottom, left)?
|
|
35
|
+
|
|
36
|
+
const DSSpinner = _ref => {
|
|
37
|
+
let {
|
|
38
|
+
containerProps = {},
|
|
39
|
+
innerRef,
|
|
40
|
+
message,
|
|
41
|
+
size
|
|
42
|
+
} = _ref,
|
|
43
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
44
|
+
|
|
45
|
+
return /*#__PURE__*/jsxRuntime.jsxs(SpinnerContainer, _objectSpread(_objectSpread(_objectSpread({}, containerProps), {}, {
|
|
46
|
+
ref: innerRef,
|
|
47
|
+
"aria-busy": true,
|
|
48
|
+
"aria-label": message,
|
|
49
|
+
"aria-live": "polite",
|
|
50
|
+
role: "alert"
|
|
51
|
+
}, otherProps), {}, {
|
|
52
|
+
children: [/*#__PURE__*/_jsx__default["default"](Spinner, {
|
|
53
|
+
classProps: {
|
|
54
|
+
size
|
|
55
|
+
}
|
|
56
|
+
}, void 0, _svg || (_svg = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
57
|
+
className: "".concat(blockName, "-tl"),
|
|
58
|
+
viewBox: "0 0 16.6 16.6",
|
|
59
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
60
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
61
|
+
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
62
|
+
fill: "#408a90",
|
|
63
|
+
stroke: "#fbfbfb"
|
|
64
|
+
}))), _svg2 || (_svg2 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
65
|
+
className: "".concat(blockName, "-tr"),
|
|
66
|
+
viewBox: "0 0 16.6 16.6",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
68
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
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",
|
|
70
|
+
fill: "#f7901e",
|
|
71
|
+
stroke: "#fbfbfb"
|
|
72
|
+
}))), _svg3 || (_svg3 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
73
|
+
className: "".concat(blockName, "-br"),
|
|
74
|
+
viewBox: "0 0 16.6 16.6",
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
76
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
77
|
+
d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
|
|
78
|
+
fill: "#0067ab",
|
|
79
|
+
stroke: "#fbfbfb"
|
|
80
|
+
}))), _svg4 || (_svg4 = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
81
|
+
className: "".concat(blockName, "-bl"),
|
|
82
|
+
viewBox: "0 0 16.6 16.6",
|
|
83
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
84
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
85
|
+
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
86
|
+
fill: "#00acdc",
|
|
87
|
+
stroke: "#fbfbfb"
|
|
88
|
+
})))), message && /*#__PURE__*/_jsx__default["default"](SpinnerMessage, {}, void 0, message)]
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
DSSpinner.defaultProps = {
|
|
93
|
+
containerProps: {},
|
|
94
|
+
message: '',
|
|
95
|
+
size: 'm'
|
|
96
|
+
};
|
|
97
|
+
const spinnerProps = {
|
|
98
|
+
innerRef: reactDesc.PropTypes.object.description('ref to the component s container'),
|
|
99
|
+
containerProps: reactDesc.PropTypes.object.description('Set of Properties attached to the main container'),
|
|
100
|
+
message: reactDesc.PropTypes.string.description('Text below the spinner'),
|
|
101
|
+
size: reactDesc.PropTypes.oneOf(['s', 'm', 'l']).description('Spinner size').defaultValue('m')
|
|
102
|
+
};
|
|
103
|
+
const SpinnerWithSchema = reactDesc.describe(DSSpinner);
|
|
104
|
+
SpinnerWithSchema.propTypes = spinnerProps;
|
|
105
|
+
|
|
106
|
+
exports.DSSpinner = DSSpinner;
|
|
107
|
+
exports.SpinnerWithSchema = SpinnerWithSchema;
|
|
108
|
+
exports["default"] = DSSpinner;
|
package/cjs/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var DSSpinner = require('./DSSpinner.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.DSSpinner = DSSpinner.DSSpinner;
|
|
10
|
+
exports.SpinnerWithSchema = DSSpinner.SpinnerWithSchema;
|
|
11
|
+
exports["default"] = DSSpinner.DSSpinner;
|
package/esm/DSSpinner.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
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';
|
|
6
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
8
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
9
|
+
import 'react';
|
|
10
|
+
import { PropTypes, describe } from 'react-desc';
|
|
11
|
+
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
12
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
13
|
+
|
|
14
|
+
var _svg, _svg2, _svg3, _svg4;
|
|
15
|
+
|
|
16
|
+
const _excluded = ["containerProps", "innerRef", "message", "size"];
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
const blockName = 'spinner';
|
|
22
|
+
const SpinnerContainer = aggregatedClasses('div')(blockName);
|
|
23
|
+
const SpinnerMessage = aggregatedClasses('span')(blockName, 'message');
|
|
24
|
+
const Spinner = aggregatedClasses('div')(blockName, 'spinner'); // TODO: do we want dynamic position of the text (top, right, bottom, left)?
|
|
25
|
+
|
|
26
|
+
const DSSpinner = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
containerProps = {},
|
|
29
|
+
innerRef,
|
|
30
|
+
message,
|
|
31
|
+
size
|
|
32
|
+
} = _ref,
|
|
33
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
|
|
35
|
+
return /*#__PURE__*/jsxs(SpinnerContainer, _objectSpread(_objectSpread(_objectSpread({}, containerProps), {}, {
|
|
36
|
+
ref: innerRef,
|
|
37
|
+
"aria-busy": true,
|
|
38
|
+
"aria-label": message,
|
|
39
|
+
"aria-live": "polite",
|
|
40
|
+
role: "alert"
|
|
41
|
+
}, otherProps), {}, {
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Spinner, {
|
|
43
|
+
classProps: {
|
|
44
|
+
size
|
|
45
|
+
}
|
|
46
|
+
}, void 0, _svg || (_svg = /*#__PURE__*/_jsx("svg", {
|
|
47
|
+
className: "".concat(blockName, "-tl"),
|
|
48
|
+
viewBox: "0 0 16.6 16.6",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
50
|
+
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
51
|
+
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
52
|
+
fill: "#408a90",
|
|
53
|
+
stroke: "#fbfbfb"
|
|
54
|
+
}))), _svg2 || (_svg2 = /*#__PURE__*/_jsx("svg", {
|
|
55
|
+
className: "".concat(blockName, "-tr"),
|
|
56
|
+
viewBox: "0 0 16.6 16.6",
|
|
57
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
58
|
+
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
59
|
+
d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
|
|
60
|
+
fill: "#f7901e",
|
|
61
|
+
stroke: "#fbfbfb"
|
|
62
|
+
}))), _svg3 || (_svg3 = /*#__PURE__*/_jsx("svg", {
|
|
63
|
+
className: "".concat(blockName, "-br"),
|
|
64
|
+
viewBox: "0 0 16.6 16.6",
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
66
|
+
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
67
|
+
d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
|
|
68
|
+
fill: "#0067ab",
|
|
69
|
+
stroke: "#fbfbfb"
|
|
70
|
+
}))), _svg4 || (_svg4 = /*#__PURE__*/_jsx("svg", {
|
|
71
|
+
className: "".concat(blockName, "-bl"),
|
|
72
|
+
viewBox: "0 0 16.6 16.6",
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
74
|
+
}, void 0, /*#__PURE__*/_jsx("path", {
|
|
75
|
+
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
76
|
+
fill: "#00acdc",
|
|
77
|
+
stroke: "#fbfbfb"
|
|
78
|
+
})))), message && /*#__PURE__*/_jsx(SpinnerMessage, {}, void 0, message)]
|
|
79
|
+
}));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
DSSpinner.defaultProps = {
|
|
83
|
+
containerProps: {},
|
|
84
|
+
message: '',
|
|
85
|
+
size: 'm'
|
|
86
|
+
};
|
|
87
|
+
const spinnerProps = {
|
|
88
|
+
innerRef: PropTypes.object.description('ref to the component s container'),
|
|
89
|
+
containerProps: PropTypes.object.description('Set of Properties attached to the main container'),
|
|
90
|
+
message: PropTypes.string.description('Text below the spinner'),
|
|
91
|
+
size: PropTypes.oneOf(['s', 'm', 'l']).description('Spinner size').defaultValue('m')
|
|
92
|
+
};
|
|
93
|
+
const SpinnerWithSchema = describe(DSSpinner);
|
|
94
|
+
SpinnerWithSchema.propTypes = spinnerProps;
|
|
95
|
+
|
|
96
|
+
export { DSSpinner, SpinnerWithSchema, DSSpinner as default };
|
package/esm/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DSSpinner, SpinnerWithSchema, DSSpinner as default } from './DSSpinner.js';
|
package/package.json
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-spinner",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Spinner",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"module": "./dist/esm/index.js",
|
|
10
|
-
"main": "./dist/cjs/index.js",
|
|
11
|
-
"types": "./dist/types/index.d.ts",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
12
9
|
"exports": {
|
|
13
10
|
".": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
16
13
|
},
|
|
17
14
|
"./DSSpinner": {
|
|
18
|
-
"import": "./
|
|
19
|
-
"require": "./
|
|
15
|
+
"import": "./esm/DSSpinner.js",
|
|
16
|
+
"require": "./cjs/DSSpinner.js"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
19
|
"sideEffects": [
|
|
@@ -28,12 +25,18 @@
|
|
|
28
25
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
29
26
|
},
|
|
30
27
|
"engines": {
|
|
31
|
-
"
|
|
32
|
-
"node": ">=
|
|
28
|
+
"npm": ">=7",
|
|
29
|
+
"node": ">=14"
|
|
33
30
|
},
|
|
34
31
|
"author": "ICE MT",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
34
|
+
"prebuild": "exit 0",
|
|
35
|
+
"predev": "exit 0",
|
|
36
|
+
"build": "node ../../scripts/build/build.js"
|
|
37
|
+
},
|
|
35
38
|
"dependencies": {
|
|
36
|
-
"@elliemae/ds-classnames": "2.3.0-
|
|
39
|
+
"@elliemae/ds-classnames": "2.3.0-next.2",
|
|
37
40
|
"react-desc": "~4.1.3"
|
|
38
41
|
},
|
|
39
42
|
"peerDependencies": {
|
|
@@ -43,12 +46,7 @@
|
|
|
43
46
|
},
|
|
44
47
|
"publishConfig": {
|
|
45
48
|
"access": "public",
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"scripts": {
|
|
49
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
50
|
-
"prebuild": "exit 0",
|
|
51
|
-
"predev": "exit 0",
|
|
52
|
-
"build": "node ../../scripts/build/build.js"
|
|
49
|
+
"directory": "dist",
|
|
50
|
+
"generateSubmodules": true
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const DSSpinner: {
|
|
4
|
+
({ containerProps, innerRef, message, size, ...otherProps }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
innerRef: any;
|
|
8
|
+
message: any;
|
|
9
|
+
size: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
containerProps: {};
|
|
13
|
+
message: string;
|
|
14
|
+
size: string;
|
|
15
|
+
};
|
|
16
|
+
propTypes: {
|
|
17
|
+
innerRef: {
|
|
18
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
+
};
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
+
};
|
|
23
|
+
containerProps: {
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
+
};
|
|
29
|
+
message: {
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
declare const SpinnerWithSchema: {
|
|
41
|
+
(props?: unknown): JSX.Element;
|
|
42
|
+
propTypes: unknown;
|
|
43
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
44
|
+
};
|
|
45
|
+
export { DSSpinner, SpinnerWithSchema };
|
|
46
|
+
export default DSSpinner;
|
package/types/index.d.ts
ADDED
package/dist/cjs/DSSpinner.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var DSSpinner_exports = {};
|
|
29
|
-
__export(DSSpinner_exports, {
|
|
30
|
-
DSSpinner: () => DSSpinner,
|
|
31
|
-
SpinnerWithSchema: () => SpinnerWithSchema,
|
|
32
|
-
default: () => DSSpinner_default
|
|
33
|
-
});
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_react_desc = require("react-desc");
|
|
37
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
38
|
-
const blockName = "spinner";
|
|
39
|
-
const SpinnerContainer = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
|
|
40
|
-
const SpinnerMessage = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "message");
|
|
41
|
-
const Spinner = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "spinner");
|
|
42
|
-
const DSSpinner = ({
|
|
43
|
-
containerProps = {},
|
|
44
|
-
innerRef,
|
|
45
|
-
message,
|
|
46
|
-
size,
|
|
47
|
-
...otherProps
|
|
48
|
-
}) => /* @__PURE__ */ import_react.default.createElement(SpinnerContainer, {
|
|
49
|
-
...containerProps,
|
|
50
|
-
ref: innerRef,
|
|
51
|
-
"aria-busy": true,
|
|
52
|
-
"aria-label": message,
|
|
53
|
-
"aria-live": "polite",
|
|
54
|
-
role: "alert",
|
|
55
|
-
...otherProps
|
|
56
|
-
}, /* @__PURE__ */ import_react.default.createElement(Spinner, {
|
|
57
|
-
classProps: { size }
|
|
58
|
-
}, /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
59
|
-
className: `${blockName}-tl`,
|
|
60
|
-
viewBox: "0 0 16.6 16.6",
|
|
61
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
62
|
-
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
63
|
-
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
64
|
-
fill: "#408a90",
|
|
65
|
-
stroke: "#fbfbfb"
|
|
66
|
-
})), /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
67
|
-
className: `${blockName}-tr`,
|
|
68
|
-
viewBox: "0 0 16.6 16.6",
|
|
69
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
70
|
-
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
71
|
-
d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
|
|
72
|
-
fill: "#f7901e",
|
|
73
|
-
stroke: "#fbfbfb"
|
|
74
|
-
})), /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
75
|
-
className: `${blockName}-br`,
|
|
76
|
-
viewBox: "0 0 16.6 16.6",
|
|
77
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
78
|
-
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
79
|
-
d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
|
|
80
|
-
fill: "#0067ab",
|
|
81
|
-
stroke: "#fbfbfb"
|
|
82
|
-
})), /* @__PURE__ */ import_react.default.createElement("svg", {
|
|
83
|
-
className: `${blockName}-bl`,
|
|
84
|
-
viewBox: "0 0 16.6 16.6",
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
86
|
-
}, /* @__PURE__ */ import_react.default.createElement("path", {
|
|
87
|
-
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
88
|
-
fill: "#00acdc",
|
|
89
|
-
stroke: "#fbfbfb"
|
|
90
|
-
}))), message && /* @__PURE__ */ import_react.default.createElement(SpinnerMessage, null, message));
|
|
91
|
-
DSSpinner.defaultProps = {
|
|
92
|
-
containerProps: {},
|
|
93
|
-
message: "",
|
|
94
|
-
size: "m"
|
|
95
|
-
};
|
|
96
|
-
const spinnerProps = {
|
|
97
|
-
innerRef: import_react_desc.PropTypes.object.description("ref to the component s container"),
|
|
98
|
-
containerProps: import_react_desc.PropTypes.object.description("Set of Properties attached to the main container"),
|
|
99
|
-
message: import_react_desc.PropTypes.string.description("Text below the spinner"),
|
|
100
|
-
size: import_react_desc.PropTypes.oneOf(["s", "m", "l"]).description("Spinner size").defaultValue("m")
|
|
101
|
-
};
|
|
102
|
-
DSSpinner.propTypes = spinnerProps;
|
|
103
|
-
const SpinnerWithSchema = (0, import_react_desc.describe)(DSSpinner);
|
|
104
|
-
SpinnerWithSchema.propTypes = spinnerProps;
|
|
105
|
-
var DSSpinner_default = DSSpinner;
|
|
106
|
-
module.exports = __toCommonJS(DSSpinner_exports);
|
|
107
|
-
//# sourceMappingURL=DSSpinner.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/DSSpinner.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable import/no-unresolved */\nimport React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'spinner';\n\nconst SpinnerContainer = aggregatedClasses('div')(blockName);\nconst SpinnerMessage = aggregatedClasses('span')(blockName, 'message');\nconst Spinner = aggregatedClasses('div')(blockName, 'spinner');\n\n// TODO: do we want dynamic position of the text (top, right, bottom, left)?\n\nconst DSSpinner = ({\n containerProps = {},\n innerRef,\n message,\n size,\n ...otherProps\n}) => (\n <SpinnerContainer\n {...containerProps}\n ref={innerRef}\n aria-busy\n aria-label={message}\n aria-live=\"polite\"\n role=\"alert\"\n {...otherProps}\n >\n <Spinner classProps={{ size }}>\n <svg\n className={`${blockName}-tl`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\"\n fill=\"#408a90\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-tr`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z\"\n fill=\"#f7901e\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-br`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z\"\n fill=\"#0067ab\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-bl`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\"\n fill=\"#00acdc\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n </Spinner>\n {message && <SpinnerMessage>{message}</SpinnerMessage>}\n </SpinnerContainer>\n);\n\nDSSpinner.defaultProps = {\n containerProps: {},\n message: '',\n size: 'm',\n};\n\nconst spinnerProps = {\n innerRef: PropTypes.object.description('ref to the component s container'),\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n message: PropTypes.string.description('Text below the spinner'),\n size: PropTypes.oneOf(['s', 'm', 'l'])\n .description('Spinner size')\n .defaultValue('m'),\n};\n\nDSSpinner.propTypes = spinnerProps;\n\nconst SpinnerWithSchema = describe(DSSpinner);\nSpinnerWithSchema.propTypes = spinnerProps;\n\nexport { DSSpinner, SpinnerWithSchema };\nexport default DSSpinner;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAAkC;AAElC,MAAM,YAAY;AAElB,MAAM,mBAAmB,4CAAkB,OAAO;AAClD,MAAM,iBAAiB,4CAAkB,QAAQ,WAAW;AAC5D,MAAM,UAAU,4CAAkB,OAAO,WAAW;AAIpD,MAAM,YAAY,CAAC;AAAA,EACjB,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MAEH,mDAAC,kBAAD;AAAA,KACM;AAAA,EACJ,KAAK;AAAA,EACL,aAAS;AAAA,EACT,cAAY;AAAA,EACZ,aAAU;AAAA,EACV,MAAK;AAAA,KACD;AAAA,GAEJ,mDAAC,SAAD;AAAA,EAAS,YAAY,EAAE;AAAA,GACrB,mDAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,mDAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,mDAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,mDAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,mDAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,MAIZ,WAAW,mDAAC,gBAAD,MAAiB;AAIjC,UAAU,eAAe;AAAA,EACvB,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,MAAM;AAAA;AAGR,MAAM,eAAe;AAAA,EACnB,UAAU,4BAAU,OAAO,YAAY;AAAA,EACvC,gBAAgB,4BAAU,OAAO,YAC/B;AAAA,EAEF,SAAS,4BAAU,OAAO,YAAY;AAAA,EACtC,MAAM,4BAAU,MAAM,CAAC,KAAK,KAAK,MAC9B,YAAY,gBACZ,aAAa;AAAA;AAGlB,UAAU,YAAY;AAEtB,MAAM,oBAAoB,gCAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,oBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var src_exports = {};
|
|
29
|
-
__export(src_exports, {
|
|
30
|
-
DSSpinner: () => import_DSSpinner.DSSpinner,
|
|
31
|
-
SpinnerWithSchema: () => import_DSSpinner.SpinnerWithSchema,
|
|
32
|
-
default: () => import_DSSpinner.default
|
|
33
|
-
});
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_DSSpinner = __toESM(require("./DSSpinner"));
|
|
36
|
-
module.exports = __toCommonJS(src_exports);
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export { DSSpinner, SpinnerWithSchema, default } from './DSSpinner';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAsD;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/DSSpinner.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { describe, PropTypes } from "react-desc";
|
|
4
|
-
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
5
|
-
const blockName = "spinner";
|
|
6
|
-
const SpinnerContainer = aggregatedClasses("div")(blockName);
|
|
7
|
-
const SpinnerMessage = aggregatedClasses("span")(blockName, "message");
|
|
8
|
-
const Spinner = aggregatedClasses("div")(blockName, "spinner");
|
|
9
|
-
const DSSpinner = ({
|
|
10
|
-
containerProps = {},
|
|
11
|
-
innerRef,
|
|
12
|
-
message,
|
|
13
|
-
size,
|
|
14
|
-
...otherProps
|
|
15
|
-
}) => /* @__PURE__ */ React2.createElement(SpinnerContainer, {
|
|
16
|
-
...containerProps,
|
|
17
|
-
ref: innerRef,
|
|
18
|
-
"aria-busy": true,
|
|
19
|
-
"aria-label": message,
|
|
20
|
-
"aria-live": "polite",
|
|
21
|
-
role: "alert",
|
|
22
|
-
...otherProps
|
|
23
|
-
}, /* @__PURE__ */ React2.createElement(Spinner, {
|
|
24
|
-
classProps: { size }
|
|
25
|
-
}, /* @__PURE__ */ React2.createElement("svg", {
|
|
26
|
-
className: `${blockName}-tl`,
|
|
27
|
-
viewBox: "0 0 16.6 16.6",
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
29
|
-
}, /* @__PURE__ */ React2.createElement("path", {
|
|
30
|
-
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
31
|
-
fill: "#408a90",
|
|
32
|
-
stroke: "#fbfbfb"
|
|
33
|
-
})), /* @__PURE__ */ React2.createElement("svg", {
|
|
34
|
-
className: `${blockName}-tr`,
|
|
35
|
-
viewBox: "0 0 16.6 16.6",
|
|
36
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
37
|
-
}, /* @__PURE__ */ React2.createElement("path", {
|
|
38
|
-
d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
|
|
39
|
-
fill: "#f7901e",
|
|
40
|
-
stroke: "#fbfbfb"
|
|
41
|
-
})), /* @__PURE__ */ React2.createElement("svg", {
|
|
42
|
-
className: `${blockName}-br`,
|
|
43
|
-
viewBox: "0 0 16.6 16.6",
|
|
44
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
45
|
-
}, /* @__PURE__ */ React2.createElement("path", {
|
|
46
|
-
d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
|
|
47
|
-
fill: "#0067ab",
|
|
48
|
-
stroke: "#fbfbfb"
|
|
49
|
-
})), /* @__PURE__ */ React2.createElement("svg", {
|
|
50
|
-
className: `${blockName}-bl`,
|
|
51
|
-
viewBox: "0 0 16.6 16.6",
|
|
52
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
53
|
-
}, /* @__PURE__ */ React2.createElement("path", {
|
|
54
|
-
d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
|
|
55
|
-
fill: "#00acdc",
|
|
56
|
-
stroke: "#fbfbfb"
|
|
57
|
-
}))), message && /* @__PURE__ */ React2.createElement(SpinnerMessage, null, message));
|
|
58
|
-
DSSpinner.defaultProps = {
|
|
59
|
-
containerProps: {},
|
|
60
|
-
message: "",
|
|
61
|
-
size: "m"
|
|
62
|
-
};
|
|
63
|
-
const spinnerProps = {
|
|
64
|
-
innerRef: PropTypes.object.description("ref to the component s container"),
|
|
65
|
-
containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
|
|
66
|
-
message: PropTypes.string.description("Text below the spinner"),
|
|
67
|
-
size: PropTypes.oneOf(["s", "m", "l"]).description("Spinner size").defaultValue("m")
|
|
68
|
-
};
|
|
69
|
-
DSSpinner.propTypes = spinnerProps;
|
|
70
|
-
const SpinnerWithSchema = describe(DSSpinner);
|
|
71
|
-
SpinnerWithSchema.propTypes = spinnerProps;
|
|
72
|
-
var DSSpinner_default = DSSpinner;
|
|
73
|
-
export {
|
|
74
|
-
DSSpinner,
|
|
75
|
-
SpinnerWithSchema,
|
|
76
|
-
DSSpinner_default as default
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=DSSpinner.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSSpinner.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable import/no-unresolved */\nimport React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'spinner';\n\nconst SpinnerContainer = aggregatedClasses('div')(blockName);\nconst SpinnerMessage = aggregatedClasses('span')(blockName, 'message');\nconst Spinner = aggregatedClasses('div')(blockName, 'spinner');\n\n// TODO: do we want dynamic position of the text (top, right, bottom, left)?\n\nconst DSSpinner = ({\n containerProps = {},\n innerRef,\n message,\n size,\n ...otherProps\n}) => (\n <SpinnerContainer\n {...containerProps}\n ref={innerRef}\n aria-busy\n aria-label={message}\n aria-live=\"polite\"\n role=\"alert\"\n {...otherProps}\n >\n <Spinner classProps={{ size }}>\n <svg\n className={`${blockName}-tl`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\"\n fill=\"#408a90\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-tr`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z\"\n fill=\"#f7901e\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-br`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z\"\n fill=\"#0067ab\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n <svg\n className={`${blockName}-bl`}\n viewBox=\"0 0 16.6 16.6\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\"\n fill=\"#00acdc\"\n stroke=\"#fbfbfb\"\n />\n </svg>\n </Spinner>\n {message && <SpinnerMessage>{message}</SpinnerMessage>}\n </SpinnerContainer>\n);\n\nDSSpinner.defaultProps = {\n containerProps: {},\n message: '',\n size: 'm',\n};\n\nconst spinnerProps = {\n innerRef: PropTypes.object.description('ref to the component s container'),\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n message: PropTypes.string.description('Text below the spinner'),\n size: PropTypes.oneOf(['s', 'm', 'l'])\n .description('Spinner size')\n .defaultValue('m'),\n};\n\nDSSpinner.propTypes = spinnerProps;\n\nconst SpinnerWithSchema = describe(DSSpinner);\nSpinnerWithSchema.propTypes = spinnerProps;\n\nexport { DSSpinner, SpinnerWithSchema };\nexport default DSSpinner;\n"],
|
|
5
|
-
"mappings": "AAAA;ACCA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,mBAAmB,kBAAkB,OAAO;AAClD,MAAM,iBAAiB,kBAAkB,QAAQ,WAAW;AAC5D,MAAM,UAAU,kBAAkB,OAAO,WAAW;AAIpD,MAAM,YAAY,CAAC;AAAA,EACjB,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,KACG;AAAA,MAEH,qCAAC,kBAAD;AAAA,KACM;AAAA,EACJ,KAAK;AAAA,EACL,aAAS;AAAA,EACT,cAAY;AAAA,EACZ,aAAU;AAAA,EACV,MAAK;AAAA,KACD;AAAA,GAEJ,qCAAC,SAAD;AAAA,EAAS,YAAY,EAAE;AAAA,GACrB,qCAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,qCAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,qCAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,KAGX,qCAAC,OAAD;AAAA,EACE,WAAW,GAAG;AAAA,EACd,SAAQ;AAAA,EACR,OAAM;AAAA,GAEN,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,MAAK;AAAA,EACL,QAAO;AAAA,MAIZ,WAAW,qCAAC,gBAAD,MAAiB;AAIjC,UAAU,eAAe;AAAA,EACvB,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,MAAM;AAAA;AAGR,MAAM,eAAe;AAAA,EACnB,UAAU,UAAU,OAAO,YAAY;AAAA,EACvC,gBAAgB,UAAU,OAAO,YAC/B;AAAA,EAEF,SAAS,UAAU,OAAO,YAAY;AAAA,EACtC,MAAM,UAAU,MAAM,CAAC,KAAK,KAAK,MAC9B,YAAY,gBACZ,aAAa;AAAA;AAGlB,UAAU,YAAY;AAEtB,MAAM,oBAAoB,SAAS;AACnC,kBAAkB,YAAY;AAG9B,IAAO,oBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/index.js
DELETED
package/dist/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { DSSpinner, SpinnerWithSchema, default } from './DSSpinner';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|