@linzjs/lui 24.19.0 → 24.20.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
@@ -918,7 +918,9 @@ var LuiIcon = forwardRef$1(function (props, ref) {
918
918
  var name = props.name, className = props.className, _a = props.size, size = _a === void 0 ? 'ns' : _a, title = props.title, alt = props.alt, _b = props.status, status = _b === void 0 ? 'none' : _b, spanProps = props.spanProps, color = props.color;
919
919
  var iconSVG = ICONS[name];
920
920
  if (!iconSVG) {
921
- console.warn("<LuiIcon>: No icon found for: ".concat(iconSVG));
921
+ if (name) {
922
+ console.warn("<LuiIcon>: No icon found for: ".concat(name));
923
+ }
922
924
  return null;
923
925
  }
924
926
  var customStyle = color
@@ -7051,7 +7053,7 @@ var LuiLoadingSpinnerBase = function (props) {
7051
7053
  if (props.dataTestId) {
7052
7054
  testId += "-".concat(props.dataTestId);
7053
7055
  }
7054
- return (React__default.createElement("div", { className: "LuiLoadingSpinnerBase", "data-testid": testId },
7056
+ return (React__default.createElement("div", { className: "LuiLoadingSpinnerBase", role: 'status', "data-testid": testId },
7055
7057
  React__default.createElement(LuiLottieLight, { animationData: props.animationData, loop: true, autoplay: autoplay, rendererSettings: renderSettings, style: style })));
7056
7058
  };
7057
7059
  /**
@@ -7067,7 +7069,7 @@ var SPINNER_RENDERER_SETTINGS = {
7067
7069
  preserveAspectRatio: 'xMidYMid slice'
7068
7070
  };
7069
7071
  var LuiMiniSpinner = React__default.memo(function (props) {
7070
- return (React__default.createElement("div", __assign({}, props.divProps),
7072
+ return (React__default.createElement("div", __assign({ className: 'LuiMiniSpinner', role: 'status' }, props.divProps),
7071
7073
  React__default.createElement(LuiLottieLight, { animationData: props.highContrast ? highContrastSmallLoaderData : smlLoaderData, loop: true, autoplay: autoplay, rendererSettings: SPINNER_RENDERER_SETTINGS, style: { height: props.size, width: props.size } })));
7072
7074
  });
7073
7075
  var LuiLoadingSpinner = function (props) {