@linzjs/lui 22.11.0 → 22.12.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [22.12.0](https://github.com/linz/lui/compare/v22.11.0...v22.12.0) (2025-04-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **LuiTab:** Adds warning state to lui tab ([#1215](https://github.com/linz/lui/issues/1215)) ([08768ca](https://github.com/linz/lui/commit/08768ca5b2d8bdac1dd66b140aaeebcb45c5e59b))
7
+
1
8
  # [22.11.0](https://github.com/linz/lui/compare/v22.10.3...v22.11.0) (2025-04-22)
2
9
 
3
10
 
@@ -3,6 +3,7 @@ export interface LuiTabProps {
3
3
  onClick: (e: MouseEvent) => void | (() => void);
4
4
  active: boolean;
5
5
  inError?: boolean;
6
+ inWarning?: boolean;
6
7
  id: string;
7
8
  ariaControls: string;
8
9
  titleAttribute?: string;
package/dist/index.js CHANGED
@@ -31662,8 +31662,9 @@ var LuiTabs = function (props) {
31662
31662
  };
31663
31663
 
31664
31664
  var LuiTab = function (props) {
31665
- return (React__default["default"].createElement("button", __assign({ className: clsx('LuiTab', props.active && 'LuiTab--active', props.inError && 'LuiTab--error'), id: props.id, role: "tab", type: "button", "aria-selected": props.active, "aria-controls": "".concat(props.ariaControls), title: props.titleAttribute, onClick: props.onClick }, props.buttonProps),
31665
+ return (React__default["default"].createElement("button", __assign({ className: clsx('LuiTab', props.active && 'LuiTab--active', props.inError && 'LuiTab--error', props.inWarning && 'LuiTab--warning'), id: props.id, role: "tab", type: "button", "aria-selected": props.active, "aria-controls": "".concat(props.ariaControls), title: props.titleAttribute, onClick: props.onClick }, props.buttonProps),
31666
31666
  props.inError && (React__default["default"].createElement(LuiIcon, { name: "ic_error_outline", size: "md", className: "tabErrorIcon", alt: "There is an error in this tabs content" })),
31667
+ props.inWarning && (React__default["default"].createElement(LuiIcon, { name: "ic_warning_outline", size: "md", className: "tabWarningIcon", alt: "There is a warning in this tabs content" })),
31667
31668
  props.children));
31668
31669
  };
31669
31670