myrentokil-components-library 1.0.44 → 1.0.45

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.
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
- const LoadingSpinner = ({ show = false, text = '' }) => {
7
+ const spinner = require('../../../assets/images/svg/spinner.svg');
8
+ const LoadingSpinner = ({ show = false }) => {
8
9
  return show ? (react_1.default.createElement("div", null,
9
- react_1.default.createElement("div", null, text))) : null;
10
+ react_1.default.createElement("img", { src: spinner, alt: "spinner" }))) : null;
10
11
  };
11
12
  // const LoadingSpinnerWrapper = styled.div`
12
13
  // align-items: center;
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../../../src/components/atoms/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAY1B,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,EAAE,EAAuB,EAAE,EAAE;IACxE,OAAO,IAAI,CAAC,CAAC,CAAC,CACV;QAEI,2CAAM,IAAI,CAAO,CACf,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,4CAA4C;AAC5C,2BAA2B;AAC3B,iBAAiB;AACjB,qBAAqB;AACrB,oBAAoB;AACpB,+BAA+B;AAC/B,eAAe;AACf,0BAA0B;AAC1B,gBAAgB;AAChB,cAAc;AACd,mBAAmB;AACnB,qBAAqB;AACrB,KAAK;AAEL,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../../../src/components/atoms/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,MAAM,OAAO,GAAG,OAAO,CAAC,wCAAwC,CAAW,CAAC;AAU5E,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,EAAuB,EAAE,EAAE;IAC7D,OAAO,IAAI,CAAC,CAAC,CAAC,CACV;QACI,uCAAK,GAAG,EAAE,OAAO,EAAE,GAAG,EAAC,SAAS,GAAG,CACjC,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,4CAA4C;AAC5C,2BAA2B;AAC3B,iBAAiB;AACjB,qBAAqB;AACrB,oBAAoB;AACpB,+BAA+B;AAC/B,eAAe;AACf,0BAA0B;AAC1B,gBAAgB;AAChB,cAAc;AACd,mBAAmB;AACnB,qBAAqB;AACrB,KAAK;AAEL,kBAAe,cAAc,CAAC"}
@@ -13,8 +13,7 @@ const meta = {
13
13
  exports.default = meta;
14
14
  exports.PrimaryLoadingSpinner = {
15
15
  args: {
16
- show: true,
17
- text: 'spinner'
16
+ show: true
18
17
  }
19
18
  };
20
19
  //# sourceMappingURL=LoadingSpinner.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.stories.js","sourceRoot":"","sources":["../../../../../src/components/atoms/LoadingSpinner/LoadingSpinner.stories.ts"],"names":[],"mappings":";;;;;;AAEA,sEAA8C;AAE9C,MAAM,IAAI,GAAgC;IACtC,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,wBAAc;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;CACrB,CAAC;AAEF,kBAAe,IAAI,CAAC;AAGP,QAAA,qBAAqB,GAAU;IACxC,IAAI,EAAE;QACF,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"}
1
+ {"version":3,"file":"LoadingSpinner.stories.js","sourceRoot":"","sources":["../../../../../src/components/atoms/LoadingSpinner/LoadingSpinner.stories.ts"],"names":[],"mappings":";;;;;;AAEA,sEAA8C;AAE9C,MAAM,IAAI,GAAgC;IACtC,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,wBAAc;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;CACrB,CAAC;AAEF,kBAAe,IAAI,CAAC;AAGP,QAAA,qBAAqB,GAAU;IACxC,IAAI,EAAE;QACF,IAAI,EAAE,IAAI;KACb;CACJ,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -2782,9 +2782,10 @@ if (process.env.NODE_ENV === 'production') {
2782
2782
 
2783
2783
  var React = react.exports;
2784
2784
 
2785
- const LoadingSpinner = ({ show = false, text = '' }) => {
2785
+ const spinner = require('../../../assets/images/svg/spinner.svg');
2786
+ const LoadingSpinner = ({ show = false }) => {
2786
2787
  return show ? (React.createElement("div", null,
2787
- React.createElement("div", null, text))) : null;
2788
+ React.createElement("img", { src: spinner, alt: "spinner" }))) : null;
2788
2789
  };
2789
2790
 
2790
2791
  exports.LoadingSpinner = LoadingSpinner;