@elliemae/ds-spinner 3.26.1-rc.1 → 3.27.0-next.11

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/index.js CHANGED
@@ -17,6 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
21
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
22
  // If the importer is in node compatibility mode or this is not an ESM
22
23
  // file that has been converted to a CommonJS file using a Babel-
@@ -28,11 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
30
  var src_exports = {};
30
31
  __export(src_exports, {
31
- DSSpinner: () => import_DSSpinner.DSSpinner,
32
- SpinnerWithSchema: () => import_DSSpinner.SpinnerWithSchema,
33
- default: () => import_DSSpinner.default
32
+ default: () => import_ds_legacy_spinner.default
34
33
  });
35
34
  module.exports = __toCommonJS(src_exports);
36
35
  var React = __toESM(require("react"));
37
- var import_DSSpinner = __toESM(require("./DSSpinner.js"));
36
+ __reExport(src_exports, require("@elliemae/ds-legacy-spinner"), module.exports);
37
+ var import_ds_legacy_spinner = __toESM(require("@elliemae/ds-legacy-spinner"));
38
38
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export { DSSpinner, SpinnerWithSchema, default } from './DSSpinner.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAsD;",
4
+ "sourcesContent": ["export * from '@elliemae/ds-legacy-spinner';\nexport { default } from '@elliemae/ds-legacy-spinner';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,wCAAd;AACA,+BAAwB;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as React from "react";
2
- import { DSSpinner, SpinnerWithSchema, default as default2 } from "./DSSpinner.js";
2
+ export * from "@elliemae/ds-legacy-spinner";
3
+ import { default as default2 } from "@elliemae/ds-legacy-spinner";
3
4
  export {
4
- DSSpinner,
5
- SpinnerWithSchema,
6
5
  default2 as default
7
6
  };
8
7
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,mBAAmB,WAAAA,gBAAe;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-spinner';\nexport { default } from '@elliemae/ds-legacy-spinner';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
6
6
  "names": ["default"]
7
7
  }
@@ -1 +1,2 @@
1
- export { DSSpinner, SpinnerWithSchema, default } from './DSSpinner.js';
1
+ export * from '@elliemae/ds-legacy-spinner';
2
+ export { default } from '@elliemae/ds-legacy-spinner';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-spinner",
3
- "version": "3.26.1-rc.1",
3
+ "version": "3.27.0-next.11",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Spinner",
6
6
  "files": [
@@ -13,10 +13,6 @@
13
13
  ".": {
14
14
  "import": "./dist/esm/index.js",
15
15
  "require": "./dist/cjs/index.js"
16
- },
17
- "./DSSpinner": {
18
- "import": "./dist/esm/DSSpinner.js",
19
- "require": "./dist/cjs/DSSpinner.js"
20
16
  }
21
17
  },
22
18
  "sideEffects": [
@@ -39,14 +35,12 @@
39
35
  "indent": 4
40
36
  },
41
37
  "dependencies": {
42
- "@elliemae/ds-classnames": "3.26.1-rc.1",
43
- "@elliemae/ds-props-helpers": "3.26.1-rc.1",
44
- "@elliemae/ds-system": "3.26.1-rc.1"
38
+ "@elliemae/ds-legacy-spinner": "1.0.1"
45
39
  },
46
40
  "devDependencies": {
47
41
  "@elliemae/pui-cli": "~9.0.0-next.31",
48
42
  "styled-components": "~5.3.9",
49
- "@elliemae/ds-monorepo-devops": "3.26.1-rc.1"
43
+ "@elliemae/ds-monorepo-devops": "3.27.0-next.11"
50
44
  },
51
45
  "peerDependencies": {
52
46
  "lodash": "^4.17.21",
@@ -59,13 +53,13 @@
59
53
  },
60
54
  "scripts": {
61
55
  "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
62
- "test": "pui-cli test --passWithNoTests",
63
- "lint": "node ../../../scripts/lint.mjs",
64
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
65
- "dts": "node ../../../scripts/dts.mjs",
56
+ "test": "exit 0 | echo",
57
+ "lint": "exit 0 | echo",
58
+ "eslint:fix": "exit 0 | echo",
59
+ "dts": "exit 0 | echo",
66
60
  "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
67
61
  "dev:build": "pnpm --filter {.}... build",
68
62
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
69
- "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
63
+ "checkDeps": "exit 0 | echo"
70
64
  }
71
65
  }
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var DSSpinner_exports = {};
30
- __export(DSSpinner_exports, {
31
- DSSpinner: () => DSSpinner,
32
- SpinnerWithSchema: () => SpinnerWithSchema,
33
- default: () => DSSpinner_default
34
- });
35
- module.exports = __toCommonJS(DSSpinner_exports);
36
- var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_react = require("react");
39
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
40
- var import_ds_classnames = require("@elliemae/ds-classnames");
41
- const blockName = "spinner";
42
- const SpinnerContainer = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
43
- const SpinnerMessage = (0, import_ds_classnames.aggregatedClasses)("span")(blockName, "message");
44
- const Spinner = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "spinner");
45
- const DSSpinner = ({ containerProps = {}, ariaLabel, spinner, innerRef, message, size, ...otherProps }) => {
46
- const render = (0, import_react.useMemo)(
47
- () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
48
- spinner ?? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Spinner, { classProps: { size }, children: [
49
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: `${blockName}-tl`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z", fill: "#408a90", stroke: "#fbfbfb" }) }),
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: `${blockName}-tr`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z", fill: "#f7901e", stroke: "#fbfbfb" }) }),
51
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: `${blockName}-br`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z", fill: "#0067ab", stroke: "#fbfbfb" }) }),
52
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { className: `${blockName}-bl`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z", fill: "#00acdc", stroke: "#fbfbfb" }) })
53
- ] }),
54
- message && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SpinnerMessage, { "aria-hidden": "true", children: message }),
55
- (ariaLabel || message) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { role: "alert", "aria-live": "polite", "aria-label": ariaLabel || message })
56
- ] }),
57
- [ariaLabel, message, size, spinner]
58
- );
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SpinnerContainer, { ...containerProps, ref: innerRef, "aria-busy": "true", ...otherProps, children: render });
60
- };
61
- DSSpinner.defaultProps = {
62
- containerProps: {},
63
- message: "",
64
- size: "m"
65
- };
66
- const spinnerProps = {
67
- innerRef: import_ds_props_helpers.PropTypes.object.description("ref to the component s container"),
68
- containerProps: import_ds_props_helpers.PropTypes.object.description("Set of Properties attached to the main container"),
69
- message: import_ds_props_helpers.PropTypes.string.description("Text below the spinner"),
70
- size: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("Spinner size").defaultValue("m")
71
- };
72
- DSSpinner.propTypes = spinnerProps;
73
- DSSpinner.displayName = "DSSpinner";
74
- const SpinnerWithSchema = (0, import_ds_props_helpers.describe)(DSSpinner);
75
- SpinnerWithSchema.propTypes = spinnerProps;
76
- var DSSpinner_default = DSSpinner;
77
- //# 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, { useMemo } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\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)?\nconst DSSpinner = ({ containerProps = {}, ariaLabel, spinner, innerRef, message, size, ...otherProps }) => {\n const render = useMemo(\n () => (\n <>\n {spinner ?? (\n <Spinner classProps={{ size }}>\n <svg className={`${blockName}-tl`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\" fill=\"#408a90\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-tr`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z\" fill=\"#f7901e\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-br`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z\" fill=\"#0067ab\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-bl`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\" fill=\"#00acdc\" stroke=\"#fbfbfb\" />\n </svg>\n </Spinner>\n )}\n {message && <SpinnerMessage aria-hidden=\"true\">{message}</SpinnerMessage>}\n {(ariaLabel || message) && <span role=\"alert\" aria-live=\"polite\" aria-label={ariaLabel || message} />}\n </>\n ),\n [ariaLabel, message, size, spinner],\n );\n return (\n <SpinnerContainer {...containerProps} ref={innerRef} aria-busy=\"true\" {...otherProps}>\n {render}\n </SpinnerContainer>\n );\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('Set of Properties attached to the main container'),\n message: PropTypes.string.description('Text below the spinner'),\n size: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('Spinner size').defaultValue('m'),\n};\n\nDSSpinner.propTypes = spinnerProps;\nDSSpinner.displayName = 'DSSpinner';\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;AAAA;ACAA,YAAuB;ADejB;AAdN,mBAA+B;AAC/B,8BAAoC;AACpC,2BAAkC;AAElC,MAAM,YAAY;AAElB,MAAM,uBAAmB,wCAAkB,KAAK,EAAE,SAAS;AAC3D,MAAM,qBAAiB,wCAAkB,MAAM,EAAE,WAAW,SAAS;AACrE,MAAM,cAAU,wCAAkB,KAAK,EAAE,WAAW,SAAS;AAG7D,MAAM,YAAY,CAAC,EAAE,iBAAiB,CAAC,GAAG,WAAW,SAAS,UAAU,SAAS,MAAM,GAAG,WAAW,MAAM;AACzG,QAAM,aAAS;AAAA,IACb,MACE,4EACG;AAAA,iBACC,6CAAC,WAAQ,YAAY,EAAE,KAAK,GAC1B;AAAA,oDAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,sDAAC,UAAK,GAAE,2DAA0D,MAAK,WAAU,QAAO,WAAU,GACpG;AAAA,QACA,4CAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,sDAAC,UAAK,GAAE,8DAA6D,MAAK,WAAU,QAAO,WAAU,GACvG;AAAA,QACA,4CAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,sDAAC,UAAK,GAAE,yDAAwD,MAAK,WAAU,QAAO,WAAU,GAClG;AAAA,QACA,4CAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,sDAAC,UAAK,GAAE,2DAA0D,MAAK,WAAU,QAAO,WAAU,GACpG;AAAA,SACF;AAAA,MAED,WAAW,4CAAC,kBAAe,eAAY,QAAQ,mBAAQ;AAAA,OACtD,aAAa,YAAY,4CAAC,UAAK,MAAK,SAAQ,aAAU,UAAS,cAAY,aAAa,SAAS;AAAA,OACrG;AAAA,IAEF,CAAC,WAAW,SAAS,MAAM,OAAO;AAAA,EACpC;AACA,SACE,4CAAC,oBAAkB,GAAG,gBAAgB,KAAK,UAAU,aAAU,QAAQ,GAAG,YACvE,kBACH;AAEJ;AAEA,UAAU,eAAe;AAAA,EACvB,gBAAgB,CAAC;AAAA,EACjB,SAAS;AAAA,EACT,MAAM;AACR;AAEA,MAAM,eAAe;AAAA,EACnB,UAAU,kCAAU,OAAO,YAAY,kCAAkC;AAAA,EACzE,gBAAgB,kCAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,SAAS,kCAAU,OAAO,YAAY,wBAAwB;AAAA,EAC9D,MAAM,kCAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,cAAc,EAAE,aAAa,GAAG;AAC/G;AAEA,UAAU,YAAY;AACtB,UAAU,cAAc;AACxB,MAAM,wBAAoB,kCAAS,SAAS;AAC5C,kBAAkB,YAAY;AAG9B,IAAO,oBAAQ;",
6
- "names": []
7
- }
@@ -1,47 +0,0 @@
1
- import * as React from "react";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { useMemo } from "react";
4
- import { describe, PropTypes } from "@elliemae/ds-props-helpers";
5
- import { aggregatedClasses } from "@elliemae/ds-classnames";
6
- const blockName = "spinner";
7
- const SpinnerContainer = aggregatedClasses("div")(blockName);
8
- const SpinnerMessage = aggregatedClasses("span")(blockName, "message");
9
- const Spinner = aggregatedClasses("div")(blockName, "spinner");
10
- const DSSpinner = ({ containerProps = {}, ariaLabel, spinner, innerRef, message, size, ...otherProps }) => {
11
- const render = useMemo(
12
- () => /* @__PURE__ */ jsxs(Fragment, { children: [
13
- spinner ?? /* @__PURE__ */ jsxs(Spinner, { classProps: { size }, children: [
14
- /* @__PURE__ */ jsx("svg", { className: `${blockName}-tl`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z", fill: "#408a90", stroke: "#fbfbfb" }) }),
15
- /* @__PURE__ */ jsx("svg", { className: `${blockName}-tr`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z", fill: "#f7901e", stroke: "#fbfbfb" }) }),
16
- /* @__PURE__ */ jsx("svg", { className: `${blockName}-br`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z", fill: "#0067ab", stroke: "#fbfbfb" }) }),
17
- /* @__PURE__ */ jsx("svg", { className: `${blockName}-bl`, viewBox: "0 0 16.6 16.6", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z", fill: "#00acdc", stroke: "#fbfbfb" }) })
18
- ] }),
19
- message && /* @__PURE__ */ jsx(SpinnerMessage, { "aria-hidden": "true", children: message }),
20
- (ariaLabel || message) && /* @__PURE__ */ jsx("span", { role: "alert", "aria-live": "polite", "aria-label": ariaLabel || message })
21
- ] }),
22
- [ariaLabel, message, size, spinner]
23
- );
24
- return /* @__PURE__ */ jsx(SpinnerContainer, { ...containerProps, ref: innerRef, "aria-busy": "true", ...otherProps, children: render });
25
- };
26
- DSSpinner.defaultProps = {
27
- containerProps: {},
28
- message: "",
29
- size: "m"
30
- };
31
- const spinnerProps = {
32
- innerRef: PropTypes.object.description("ref to the component s container"),
33
- containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
34
- message: PropTypes.string.description("Text below the spinner"),
35
- size: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("Spinner size").defaultValue("m")
36
- };
37
- DSSpinner.propTypes = spinnerProps;
38
- DSSpinner.displayName = "DSSpinner";
39
- const SpinnerWithSchema = describe(DSSpinner);
40
- SpinnerWithSchema.propTypes = spinnerProps;
41
- var DSSpinner_default = DSSpinner;
42
- export {
43
- DSSpinner,
44
- SpinnerWithSchema,
45
- DSSpinner_default as default
46
- };
47
- //# 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, { useMemo } from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\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)?\nconst DSSpinner = ({ containerProps = {}, ariaLabel, spinner, innerRef, message, size, ...otherProps }) => {\n const render = useMemo(\n () => (\n <>\n {spinner ?? (\n <Spinner classProps={{ size }}>\n <svg className={`${blockName}-tl`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\" fill=\"#408a90\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-tr`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1,16.1A15.6,15.6,0,0,0,.5.5,15.6,15.6,0,0,0,16.1,16.1Z\" fill=\"#f7901e\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-br`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M.5.5A15.6,15.6,0,0,0,16.1,16.1,15.6,15.6,0,0,0,.5.5Z\" fill=\"#0067ab\" stroke=\"#fbfbfb\" />\n </svg>\n <svg className={`${blockName}-bl`} viewBox=\"0 0 16.6 16.6\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16.1.5A15.6,15.6,0,0,0,.5,16.1,15.6,15.6,0,0,0,16.1.5Z\" fill=\"#00acdc\" stroke=\"#fbfbfb\" />\n </svg>\n </Spinner>\n )}\n {message && <SpinnerMessage aria-hidden=\"true\">{message}</SpinnerMessage>}\n {(ariaLabel || message) && <span role=\"alert\" aria-live=\"polite\" aria-label={ariaLabel || message} />}\n </>\n ),\n [ariaLabel, message, size, spinner],\n );\n return (\n <SpinnerContainer {...containerProps} ref={innerRef} aria-busy=\"true\" {...otherProps}>\n {render}\n </SpinnerContainer>\n );\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('Set of Properties attached to the main container'),\n message: PropTypes.string.description('Text below the spinner'),\n size: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('Spinner size').defaultValue('m'),\n};\n\nDSSpinner.propTypes = spinnerProps;\nDSSpinner.displayName = 'DSSpinner';\nconst SpinnerWithSchema = describe(DSSpinner);\nSpinnerWithSchema.propTypes = spinnerProps;\n\nexport { DSSpinner, SpinnerWithSchema };\nexport default DSSpinner;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACejB,mBAIQ,KAFJ,YAFJ;AAdN,SAAgB,eAAe;AAC/B,SAAS,UAAU,iBAAiB;AACpC,SAAS,yBAAyB;AAElC,MAAM,YAAY;AAElB,MAAM,mBAAmB,kBAAkB,KAAK,EAAE,SAAS;AAC3D,MAAM,iBAAiB,kBAAkB,MAAM,EAAE,WAAW,SAAS;AACrE,MAAM,UAAU,kBAAkB,KAAK,EAAE,WAAW,SAAS;AAG7D,MAAM,YAAY,CAAC,EAAE,iBAAiB,CAAC,GAAG,WAAW,SAAS,UAAU,SAAS,MAAM,GAAG,WAAW,MAAM;AACzG,QAAM,SAAS;AAAA,IACb,MACE,iCACG;AAAA,iBACC,qBAAC,WAAQ,YAAY,EAAE,KAAK,GAC1B;AAAA,4BAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,8BAAC,UAAK,GAAE,2DAA0D,MAAK,WAAU,QAAO,WAAU,GACpG;AAAA,QACA,oBAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,8BAAC,UAAK,GAAE,8DAA6D,MAAK,WAAU,QAAO,WAAU,GACvG;AAAA,QACA,oBAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,8BAAC,UAAK,GAAE,yDAAwD,MAAK,WAAU,QAAO,WAAU,GAClG;AAAA,QACA,oBAAC,SAAI,WAAW,GAAG,gBAAgB,SAAQ,iBAAgB,OAAM,8BAC/D,8BAAC,UAAK,GAAE,2DAA0D,MAAK,WAAU,QAAO,WAAU,GACpG;AAAA,SACF;AAAA,MAED,WAAW,oBAAC,kBAAe,eAAY,QAAQ,mBAAQ;AAAA,OACtD,aAAa,YAAY,oBAAC,UAAK,MAAK,SAAQ,aAAU,UAAS,cAAY,aAAa,SAAS;AAAA,OACrG;AAAA,IAEF,CAAC,WAAW,SAAS,MAAM,OAAO;AAAA,EACpC;AACA,SACE,oBAAC,oBAAkB,GAAG,gBAAgB,KAAK,UAAU,aAAU,QAAQ,GAAG,YACvE,kBACH;AAEJ;AAEA,UAAU,eAAe;AAAA,EACvB,gBAAgB,CAAC;AAAA,EACjB,SAAS;AAAA,EACT,MAAM;AACR;AAEA,MAAM,eAAe;AAAA,EACnB,UAAU,UAAU,OAAO,YAAY,kCAAkC;AAAA,EACzE,gBAAgB,UAAU,OAAO,YAAY,kDAAkD;AAAA,EAC/F,SAAS,UAAU,OAAO,YAAY,wBAAwB;AAAA,EAC9D,MAAM,UAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,cAAc,EAAE,aAAa,GAAG;AAC/G;AAEA,UAAU,YAAY;AACtB,UAAU,cAAc;AACxB,MAAM,oBAAoB,SAAS,SAAS;AAC5C,kBAAkB,YAAY;AAG9B,IAAO,oBAAQ;",
6
- "names": []
7
- }
@@ -1,34 +0,0 @@
1
- declare const DSSpinner: {
2
- ({ containerProps, ariaLabel, spinner, innerRef, message, size, ...otherProps }: {
3
- [x: string]: any;
4
- containerProps?: {} | undefined;
5
- ariaLabel: any;
6
- spinner: any;
7
- innerRef: any;
8
- message: any;
9
- size: any;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- defaultProps: {
12
- containerProps: {};
13
- message: string;
14
- size: string;
15
- };
16
- propTypes: {
17
- innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
18
- containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
19
- message: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
20
- size: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
21
- };
22
- displayName: string;
23
- };
24
- declare const SpinnerWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
25
- [x: string]: any;
26
- containerProps?: {} | undefined;
27
- ariaLabel: any;
28
- spinner: any;
29
- innerRef: any;
30
- message: any;
31
- size: any;
32
- }>;
33
- export { DSSpinner, SpinnerWithSchema };
34
- export default DSSpinner;
@@ -1 +0,0 @@
1
- export {};