@linzjs/lui 15.1.5 → 15.1.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [15.1.6](https://github.com/linz/lui/compare/v15.1.5...v15.1.6) (2022-03-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Make consumer aware where log is coming from ([#606](https://github.com/linz/lui/issues/606)) ([c0a0baa](https://github.com/linz/lui/commit/c0a0baa75d2aec45e4072d1ebb0f9e4f80fceb47))
7
+
1
8
  ## [15.1.5](https://github.com/linz/lui/compare/v15.1.4...v15.1.5) (2022-03-04)
2
9
 
3
10
 
@@ -4,5 +4,6 @@ export interface ILuiBadge {
4
4
  size?: 'sm' | 'default' | 'lg';
5
5
  backgroundFill?: boolean;
6
6
  variation?: 'default' | 'warning';
7
+ ariaRoleDescription: string;
7
8
  }
8
9
  export declare const LuiBadge: (props: ILuiBadge) => JSX.Element;
package/dist/index.js CHANGED
@@ -770,7 +770,7 @@ var LuiIcon = function (_a) {
770
770
  var name = _a.name, className = _a.className, _b = _a.size, size = _b === void 0 ? 'ns' : _b, title = _a.title, alt = _a.alt, _c = _a.status, status = _c === void 0 ? 'none' : _c, spanProps = _a.spanProps;
771
771
  var iconSVG = ICONS[name];
772
772
  if (!iconSVG) {
773
- console.warn("No icon found for: " + iconSVG);
773
+ console.warn("<LuiIcon>: No icon found for: " + iconSVG);
774
774
  return null;
775
775
  }
776
776
  return (React__namespace.createElement("span", __assign({ className: clsx('LuiIcon', className, size && ICON_SIZES[size], status && ICON_STATUS[status]), "data-icon": name, title: title, "aria-label": alt }, spanProps), iconSVG));
@@ -59772,7 +59772,7 @@ function useClickedOutsideElement(refElement, handleClickOutside) {
59772
59772
  }, []);
59773
59773
  }
59774
59774
 
59775
- var LuiBadge = function (props) { return (React__default["default"].createElement("p", { className: clsx('LuiBadge', props.size === 'sm' && 'LuiBadge--sm', props.size === 'lg' && 'LuiBadge--lg', props.backgroundFill && 'LuiBadge--fill', props.variation === 'warning' && 'LuiBadge--warning') }, props.children)); };
59775
+ var LuiBadge = function (props) { return (React__default["default"].createElement("p", { className: clsx('LuiBadge', props.size === 'sm' && 'LuiBadge--sm', props.size === 'lg' && 'LuiBadge--lg', props.backgroundFill && 'LuiBadge--fill', props.variation === 'warning' && 'LuiBadge--warning'), "aria-roledescription": props.ariaRoleDescription }, props.children)); };
59776
59776
 
59777
59777
  exports.FIRM_KEY = FIRM_KEY;
59778
59778
  exports.FIRM_NAME_KEY = FIRM_NAME_KEY;