myrentokil-components-library 1.0.44 → 1.0.49

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,11 @@ 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') as string;
8
+ const spinner_svg_1 = __importDefault(require("../../../assets/images/svg/spinner.svg"));
9
+ const LoadingSpinner = ({ show = false }) => {
8
10
  return show ? (react_1.default.createElement("div", null,
9
- react_1.default.createElement("div", null, text))) : null;
11
+ react_1.default.createElement("img", { src: spinner_svg_1.default, alt: "spinner" }))) : null;
10
12
  };
11
13
  // const LoadingSpinnerWrapper = styled.div`
12
14
  // 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,+EAA+E;AAC/E,yFAA6D;AAU7D,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,EAAuB,EAAE,EAAE;IAC7D,OAAO,IAAI,CAAC,CAAC,CAAC,CACV;QACI,uCAAK,GAAG,EAAE,qBAAO,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,11 @@ if (process.env.NODE_ENV === 'production') {
2782
2782
 
2783
2783
  var React = react.exports;
2784
2784
 
2785
- const LoadingSpinner = ({ show = false, text = '' }) => {
2785
+ var spinner = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"margin: auto; background: none; display: block; shape-rendering: auto;\" width=\"30px\" height=\"30px\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n<g transform=\"translate(82,50)\">\n<g transform=\"rotate(0)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"1\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.3888888888888889s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.3888888888888889s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(72.62741699796952,72.62741699796952)\">\n<g transform=\"rotate(45)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.875\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.3333333333333333s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.3333333333333333s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(50,82)\">\n<g transform=\"rotate(90)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.75\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.2777777777777778s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.2777777777777778s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(27.37258300203048,72.62741699796952)\">\n<g transform=\"rotate(135)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.625\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.2222222222222222s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.2222222222222222s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(18,50.00000000000001)\">\n<g transform=\"rotate(180)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.5\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.16666666666666666s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.16666666666666666s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(27.372583002030474,27.37258300203048)\">\n<g transform=\"rotate(225)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.375\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.1111111111111111s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.1111111111111111s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(49.99999999999999,18)\">\n<g transform=\"rotate(270)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.25\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"-0.05555555555555555s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"-0.05555555555555555s\"></animate>\n</circle>\n</g>\n</g><g transform=\"translate(72.62741699796952,27.372583002030474)\">\n<g transform=\"rotate(315)\">\n<circle cx=\"0\" cy=\"0\" r=\"6\" fill=\"#e22323\" fill-opacity=\"0.125\">\n <animateTransform attributeName=\"transform\" type=\"scale\" begin=\"0s\" values=\"1.7 1.7;1 1\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\"></animateTransform>\n <animate attributeName=\"fill-opacity\" keyTimes=\"0;1\" dur=\"0.4444444444444444s\" repeatCount=\"indefinite\" values=\"1;0\" begin=\"0s\"></animate>\n</circle>\n</g>\n</g>\n<!-- [ldio] generated by https://loading.io/ --></svg>";
2786
+
2787
+ const LoadingSpinner = ({ show = false }) => {
2786
2788
  return show ? (React.createElement("div", null,
2787
- React.createElement("div", null, text))) : null;
2789
+ React.createElement("img", { src: spinner, alt: "spinner" }))) : null;
2788
2790
  };
2789
2791
 
2790
2792
  exports.LoadingSpinner = LoadingSpinner;