@linzjs/lui 21.26.3 → 21.27.0

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/lui.esm.js CHANGED
@@ -31462,7 +31462,11 @@ var renderSettings = {
31462
31462
  preserveAspectRatio: 'xMidYMid slice'
31463
31463
  };
31464
31464
  var LuiLoadingSpinnerBase = function (props) {
31465
- return (React__default.createElement("div", { className: "LuiLoadingSpinnerBase", "data-testid": "loading-spinner" },
31465
+ var testId = 'loading-spinner';
31466
+ if (props.dataTestId) {
31467
+ testId += "-".concat(props.dataTestId);
31468
+ }
31469
+ return (React__default.createElement("div", { className: "LuiLoadingSpinnerBase", "data-testid": testId },
31466
31470
  React__default.createElement(LuiLottieLight, { animationData: props.animationData, loop: true, autoplay: autoplay, rendererSettings: renderSettings, style: style })));
31467
31471
  };
31468
31472
  /**
@@ -31480,8 +31484,8 @@ var LuiMiniSpinner = function (props) {
31480
31484
  preserveAspectRatio: 'xMidYMid slice'
31481
31485
  }, style: { height: props.size, width: props.size } })));
31482
31486
  };
31483
- var LuiLoadingSpinner = function () {
31484
- return React__default.createElement(LuiLoadingSpinnerBase, { animationData: loaderData });
31487
+ var LuiLoadingSpinner = function (props) {
31488
+ return (React__default.createElement(LuiLoadingSpinnerBase, { animationData: loaderData, dataTestId: props.dataTestId }));
31485
31489
  };
31486
31490
  // this function was extracted from chromatic/isChromatic. It was causing TS issues for the consumer
31487
31491
  function isChromatic() {