@linzjs/lui 24.0.1 → 24.0.2

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
+ ## [24.0.2](https://github.com/linz/lui/compare/v24.0.1...v24.0.2) (2025-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **LuiComboSelect:** restore interface to support styling of the input element. ([#1270](https://github.com/linz/lui/issues/1270)) ([7ce6a13](https://github.com/linz/lui/commit/7ce6a137c7f16ffa3acbe4357569a6eb59ef47db))
7
+
1
8
  ## [24.0.1](https://github.com/linz/lui/compare/v24.0.0...v24.0.1) (2025-11-03)
2
9
 
3
10
 
@@ -5,6 +5,9 @@ export type LuiComboSelectProps<Option extends LuiComboSelectOption = LuiComboSe
5
5
  hideLabel?: boolean;
6
6
  isCreateable?: boolean;
7
7
  error?: string;
8
+ selectProps?: {
9
+ className?: string;
10
+ };
8
11
  };
9
12
  export type LuiComboSelectOption = Partial<OptionProps> & {
10
13
  label: string;
@@ -18,4 +21,7 @@ export declare const LuiComboSelect: React.ForwardRefExoticComponent<Partial<Pro
18
21
  hideLabel?: boolean | undefined;
19
22
  isCreateable?: boolean | undefined;
20
23
  error?: string | undefined;
24
+ selectProps?: {
25
+ className?: string | undefined;
26
+ } | undefined;
21
27
  } & React.RefAttributes<SelectInstance<LuiComboSelectOption, boolean, GroupBase<LuiComboSelectOption>>>>;
package/dist/index.js CHANGED
@@ -15706,6 +15706,7 @@ var LuiComboSelect = React.forwardRef(LuiComboSelectActual);
15706
15706
  // the function declaration
15707
15707
  var LuiLoadingIndicator = function () { return React__default["default"].createElement(LuiMiniSpinner, { size: 25 }); };
15708
15708
  function LuiComboSelectActual(givenProps, ref) {
15709
+ var _a;
15709
15710
  var props = Object.assign({
15710
15711
  noOptionsMessage: function (i) {
15711
15712
  return "No options found containing '".concat(i.inputValue, "'");
@@ -15715,7 +15716,7 @@ function LuiComboSelectActual(givenProps, ref) {
15715
15716
  // box-shadow: "-8px 0px 0 0 #cc0000";
15716
15717
  // border-radius: "4px";
15717
15718
  var id = useGenerateOrDefaultId(props === null || props === void 0 ? void 0 : props.id);
15718
- var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', className: undefined, theme: function (theme) { return (__assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primary: colors['sea'], primary75: colors['electric'], primary50: colors['spray'], primary25: colors['polar'], neutral90: colors['charcoal'], neutral80: colors['charcoal'], neutral70: colors['charcoal'], neutral60: colors['fuscous'], neutral50: colors['fuscous'], neutral40: colors['gray'], neutral30: colors['gray'], neutral20: colors['silver'], neutral10: colors['lily'], neutral5: colors['hint'], danger: colors['error'], dangerLight: colors['error-bg'] }) })); }, styles: {
15719
+ var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', className: (_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.className, theme: function (theme) { return (__assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primary: colors['sea'], primary75: colors['electric'], primary50: colors['spray'], primary25: colors['polar'], neutral90: colors['charcoal'], neutral80: colors['charcoal'], neutral70: colors['charcoal'], neutral60: colors['fuscous'], neutral50: colors['fuscous'], neutral40: colors['gray'], neutral30: colors['gray'], neutral20: colors['silver'], neutral10: colors['lily'], neutral5: colors['hint'], danger: colors['error'], dangerLight: colors['error-bg'] }) })); }, styles: {
15719
15720
  control: function (provided, state) { return (__assign(__assign({}, provided), {
15720
15721
  /* matches style of .LuiTextInput-input */
15721
15722
  boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {