@linzjs/lui 22.11.0 → 22.12.1

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,17 @@
1
+ ## [22.12.1](https://github.com/linz/lui/compare/v22.12.0...v22.12.1) (2025-05-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **ColorPalette:** export default colours array ([#1216](https://github.com/linz/lui/issues/1216)) ([2869dd5](https://github.com/linz/lui/commit/2869dd5bd2e0e6f7ecbdceaa839a73f1571fafdc))
7
+
8
+ # [22.12.0](https://github.com/linz/lui/compare/v22.11.0...v22.12.0) (2025-04-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * **LuiTab:** Adds warning state to lui tab ([#1215](https://github.com/linz/lui/issues/1215)) ([08768ca](https://github.com/linz/lui/commit/08768ca5b2d8bdac1dd66b140aaeebcb45c5e59b))
14
+
1
15
  # [22.11.0](https://github.com/linz/lui/compare/v22.10.3...v22.11.0) (2025-04-22)
2
16
 
3
17
 
@@ -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.d.ts CHANGED
@@ -76,6 +76,7 @@ export { Splitter } from './components/Splitter/Splitter';
76
76
  export { useSplitterRef } from './components/Splitter/useSplitterRef';
77
77
  export { LuiBannerV2 } from './components/LuiBannerV2/LuiBannerV2';
78
78
  export { ColorPalette } from './components/LuiColourPicker/ColorPalette';
79
+ export { defaultColours } from './components/LuiColourPicker/ColourPaletteConstants';
79
80
  export { ColorInput, ColorInputGroup, } from './components/LuiColourPicker/ColorInput';
80
81
  export { useToast } from './components/Toast';
81
82
  export { LuiMessagingContextProvider, useShowLUIMessage, LuiToastMessage, } from './components/Toast/Upgrade';
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
 
@@ -60283,6 +60284,7 @@ exports.ToolbarItem = ToolbarItem;
60283
60284
  exports.ToolbarItemSeparator = ToolbarItemSeparator;
60284
60285
  exports.breakpointQuery = breakpointQuery;
60285
60286
  exports.breakpoints = breakpoints;
60287
+ exports.defaultColours = defaultColours;
60286
60288
  exports.isChromatic = isChromatic;
60287
60289
  exports.useClickedOutsideElement = useClickedOutsideElement;
60288
60290
  exports.useEscapeFunction = useEscapeFunction;