@elliemae/ds-spinner 2.3.1 → 3.0.0-alpha.3

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.
@@ -0,0 +1,141 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
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
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __reExport = (target, module2, copyDefault, desc) => {
42
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
43
+ for (let key of __getOwnPropNames(module2))
44
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
45
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
46
+ }
47
+ return target;
48
+ };
49
+ var __toESM = (module2, isNodeMode) => {
50
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
51
+ };
52
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
53
+ return (module2, temp) => {
54
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
55
+ };
56
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
57
+ var DSSpinner_exports = {};
58
+ __export(DSSpinner_exports, {
59
+ DSSpinner: () => DSSpinner,
60
+ SpinnerWithSchema: () => SpinnerWithSchema,
61
+ default: () => DSSpinner_default
62
+ });
63
+ var React = __toESM(require("react"));
64
+ var import_react = __toESM(require("react"));
65
+ var import_react_desc = require("react-desc");
66
+ var import_ds_classnames = require("@elliemae/ds-classnames");
67
+ const blockName = "spinner";
68
+ const SpinnerContainer = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
69
+ const SpinnerMessage = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "message");
70
+ const Spinner = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "spinner");
71
+ const DSSpinner = (_a) => {
72
+ var _b = _a, {
73
+ containerProps = {},
74
+ innerRef,
75
+ message,
76
+ size
77
+ } = _b, otherProps = __objRest(_b, [
78
+ "containerProps",
79
+ "innerRef",
80
+ "message",
81
+ "size"
82
+ ]);
83
+ return /* @__PURE__ */ import_react.default.createElement(SpinnerContainer, __spreadValues(__spreadProps(__spreadValues({}, containerProps), {
84
+ ref: innerRef,
85
+ "aria-busy": true,
86
+ "aria-label": message,
87
+ "aria-live": "polite",
88
+ role: "alert"
89
+ }), otherProps), /* @__PURE__ */ import_react.default.createElement(Spinner, {
90
+ classProps: { size }
91
+ }, /* @__PURE__ */ import_react.default.createElement("svg", {
92
+ className: `${blockName}-tl`,
93
+ viewBox: "0 0 16.6 16.6",
94
+ xmlns: "http://www.w3.org/2000/svg"
95
+ }, /* @__PURE__ */ import_react.default.createElement("path", {
96
+ d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
97
+ fill: "#408a90",
98
+ stroke: "#fbfbfb"
99
+ })), /* @__PURE__ */ import_react.default.createElement("svg", {
100
+ className: `${blockName}-tr`,
101
+ viewBox: "0 0 16.6 16.6",
102
+ xmlns: "http://www.w3.org/2000/svg"
103
+ }, /* @__PURE__ */ import_react.default.createElement("path", {
104
+ d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
105
+ fill: "#f7901e",
106
+ stroke: "#fbfbfb"
107
+ })), /* @__PURE__ */ import_react.default.createElement("svg", {
108
+ className: `${blockName}-br`,
109
+ viewBox: "0 0 16.6 16.6",
110
+ xmlns: "http://www.w3.org/2000/svg"
111
+ }, /* @__PURE__ */ import_react.default.createElement("path", {
112
+ d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
113
+ fill: "#0067ab",
114
+ stroke: "#fbfbfb"
115
+ })), /* @__PURE__ */ import_react.default.createElement("svg", {
116
+ className: `${blockName}-bl`,
117
+ viewBox: "0 0 16.6 16.6",
118
+ xmlns: "http://www.w3.org/2000/svg"
119
+ }, /* @__PURE__ */ import_react.default.createElement("path", {
120
+ d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
121
+ fill: "#00acdc",
122
+ stroke: "#fbfbfb"
123
+ }))), message && /* @__PURE__ */ import_react.default.createElement(SpinnerMessage, null, message));
124
+ };
125
+ DSSpinner.defaultProps = {
126
+ containerProps: {},
127
+ message: "",
128
+ size: "m"
129
+ };
130
+ const spinnerProps = {
131
+ innerRef: import_react_desc.PropTypes.object.description("ref to the component s container"),
132
+ containerProps: import_react_desc.PropTypes.object.description("Set of Properties attached to the main container"),
133
+ message: import_react_desc.PropTypes.string.description("Text below the spinner"),
134
+ size: import_react_desc.PropTypes.oneOf(["s", "m", "l"]).description("Spinner size").defaultValue("m")
135
+ };
136
+ DSSpinner.propTypes = spinnerProps;
137
+ const SpinnerWithSchema = (0, import_react_desc.describe)(DSSpinner);
138
+ SpinnerWithSchema.propTypes = spinnerProps;
139
+ var DSSpinner_default = DSSpinner;
140
+ module.exports = __toCommonJS(DSSpinner_exports);
141
+ //# sourceMappingURL=DSSpinner.js.map
@@ -0,0 +1,7 @@
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,OAMhB;AANgB,eACjB;AAAA,qBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,MAJiB,IAKd,uBALc,IAKd;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,4DAAC,kBAAD,gDACM,iBADN;AAAA,IAEE,KAAK;AAAA,IACL,aAAS;AAAA,IACT,cAAY;AAAA,IACZ,aAAU;AAAA,IACV,MAAK;AAAA,MACD,aAEJ,mDAAC,SAAD;AAAA,IAAS,YAAY,EAAE;AAAA,KACrB,mDAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,mDAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,mDAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,mDAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,mDAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,mDAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,mDAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,mDAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,QAIZ,WAAW,mDAAC,gBAAD,MAAiB;AAAA;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
+ }
@@ -0,0 +1,37 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,114 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import * as React from "react";
33
+ import React2 from "react";
34
+ import { describe, PropTypes } from "react-desc";
35
+ import { aggregatedClasses } from "@elliemae/ds-classnames";
36
+ const blockName = "spinner";
37
+ const SpinnerContainer = aggregatedClasses("div")(blockName);
38
+ const SpinnerMessage = aggregatedClasses("span")(blockName, "message");
39
+ const Spinner = aggregatedClasses("div")(blockName, "spinner");
40
+ const DSSpinner = (_a) => {
41
+ var _b = _a, {
42
+ containerProps = {},
43
+ innerRef,
44
+ message,
45
+ size
46
+ } = _b, otherProps = __objRest(_b, [
47
+ "containerProps",
48
+ "innerRef",
49
+ "message",
50
+ "size"
51
+ ]);
52
+ return /* @__PURE__ */ React2.createElement(SpinnerContainer, __spreadValues(__spreadProps(__spreadValues({}, containerProps), {
53
+ ref: innerRef,
54
+ "aria-busy": true,
55
+ "aria-label": message,
56
+ "aria-live": "polite",
57
+ role: "alert"
58
+ }), otherProps), /* @__PURE__ */ React2.createElement(Spinner, {
59
+ classProps: { size }
60
+ }, /* @__PURE__ */ React2.createElement("svg", {
61
+ className: `${blockName}-tl`,
62
+ viewBox: "0 0 16.6 16.6",
63
+ xmlns: "http://www.w3.org/2000/svg"
64
+ }, /* @__PURE__ */ React2.createElement("path", {
65
+ d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
66
+ fill: "#408a90",
67
+ stroke: "#fbfbfb"
68
+ })), /* @__PURE__ */ React2.createElement("svg", {
69
+ className: `${blockName}-tr`,
70
+ viewBox: "0 0 16.6 16.6",
71
+ xmlns: "http://www.w3.org/2000/svg"
72
+ }, /* @__PURE__ */ React2.createElement("path", {
73
+ d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z",
74
+ fill: "#f7901e",
75
+ stroke: "#fbfbfb"
76
+ })), /* @__PURE__ */ React2.createElement("svg", {
77
+ className: `${blockName}-br`,
78
+ viewBox: "0 0 16.6 16.6",
79
+ xmlns: "http://www.w3.org/2000/svg"
80
+ }, /* @__PURE__ */ React2.createElement("path", {
81
+ d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z",
82
+ fill: "#0067ab",
83
+ stroke: "#fbfbfb"
84
+ })), /* @__PURE__ */ React2.createElement("svg", {
85
+ className: `${blockName}-bl`,
86
+ viewBox: "0 0 16.6 16.6",
87
+ xmlns: "http://www.w3.org/2000/svg"
88
+ }, /* @__PURE__ */ React2.createElement("path", {
89
+ d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z",
90
+ fill: "#00acdc",
91
+ stroke: "#fbfbfb"
92
+ }))), message && /* @__PURE__ */ React2.createElement(SpinnerMessage, null, message));
93
+ };
94
+ DSSpinner.defaultProps = {
95
+ containerProps: {},
96
+ message: "",
97
+ size: "m"
98
+ };
99
+ const spinnerProps = {
100
+ innerRef: PropTypes.object.description("ref to the component s container"),
101
+ containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
102
+ message: PropTypes.string.description("Text below the spinner"),
103
+ size: PropTypes.oneOf(["s", "m", "l"]).description("Spinner size").defaultValue("m")
104
+ };
105
+ DSSpinner.propTypes = spinnerProps;
106
+ const SpinnerWithSchema = describe(DSSpinner);
107
+ SpinnerWithSchema.propTypes = spinnerProps;
108
+ var DSSpinner_default = DSSpinner;
109
+ export {
110
+ DSSpinner,
111
+ SpinnerWithSchema,
112
+ DSSpinner_default as default
113
+ };
114
+ //# sourceMappingURL=DSSpinner.js.map
@@ -0,0 +1,7 @@
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,OAMhB;AANgB,eACjB;AAAA,qBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,MAJiB,IAKd,uBALc,IAKd;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,8CAAC,kBAAD,gDACM,iBADN;AAAA,IAEE,KAAK;AAAA,IACL,aAAS;AAAA,IACT,cAAY;AAAA,IACZ,aAAU;AAAA,IACV,MAAK;AAAA,MACD,aAEJ,qCAAC,SAAD;AAAA,IAAS,YAAY,EAAE;AAAA,KACrB,qCAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,qCAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,qCAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,qCAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,qCAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,qCAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,OAGX,qCAAC,OAAD;AAAA,IACE,WAAW,GAAG;AAAA,IACd,SAAQ;AAAA,IACR,OAAM;AAAA,KAEN,qCAAC,QAAD;AAAA,IACE,GAAE;AAAA,IACF,MAAK;AAAA,IACL,QAAO;AAAA,QAIZ,WAAW,qCAAC,gBAAD,MAAiB;AAAA;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
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { DSSpinner, SpinnerWithSchema, default as default2 } from "./DSSpinner";
3
+ export {
4
+ DSSpinner,
5
+ SpinnerWithSchema,
6
+ default2 as default
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
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
+ }
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@elliemae/ds-spinner",
3
- "version": "2.3.1",
3
+ "version": "3.0.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Spinner",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./DSSpinner": {
15
- "import": "./esm/DSSpinner.js",
16
- "require": "./cjs/DSSpinner.js"
18
+ "import": "./dist/esm/DSSpinner.js",
19
+ "require": "./dist/cjs/DSSpinner.js"
17
20
  }
18
21
  },
19
22
  "sideEffects": [
@@ -25,18 +28,18 @@
25
28
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
26
29
  },
27
30
  "engines": {
28
- "npm": ">=7",
29
- "node": ">=14"
31
+ "pnpm": ">=6",
32
+ "node": ">=16"
30
33
  },
31
34
  "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"
35
+ "jestSonar": {
36
+ "sonar56x": true,
37
+ "reportPath": "reports",
38
+ "reportFile": "tests.xml",
39
+ "indent": 4
37
40
  },
38
41
  "dependencies": {
39
- "@elliemae/ds-classnames": "2.3.1",
42
+ "@elliemae/ds-classnames": "3.0.0-alpha.3",
40
43
  "react-desc": "~4.1.3"
41
44
  },
42
45
  "peerDependencies": {
@@ -46,7 +49,13 @@
46
49
  },
47
50
  "publishConfig": {
48
51
  "access": "public",
49
- "directory": "dist",
50
- "generateSubmodules": true
52
+ "typeSafety": false
53
+ },
54
+ "scripts": {
55
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
56
+ "test": "node ../../scripts/testing/test.mjs",
57
+ "lint": "node ../../scripts/lint.mjs",
58
+ "dts": "node ../../scripts/dts.mjs",
59
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
51
60
  }
52
61
  }
package/cjs/DSSpinner.js DELETED
@@ -1,108 +0,0 @@
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 DELETED
@@ -1,11 +0,0 @@
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 DELETED
@@ -1,96 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- export { DSSpinner, SpinnerWithSchema, DSSpinner as default } from './DSSpinner.js';
@@ -1,46 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- export * from './DSSpinner';
2
- export { default } from './DSSpinner';