@linzjs/lui 23.13.0 → 23.13.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 +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +8 -7
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
- /package/dist/components/{LuiForms → LuiFormElements}/LuiComboSelect/LuiComboSelect.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [23.13.1](https://github.com/linz/lui/compare/v23.13.0...v23.13.1) (2025-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **LuiComboSelect:** Fix LuiComboSelect to properly set custom classnames ([#1254](https://github.com/linz/lui/issues/1254)) ([8fdc579](https://github.com/linz/lui/commit/8fdc579e44bb496295a4acfa4b1d069641a694da))
|
|
7
|
+
|
|
1
8
|
# [23.13.0](https://github.com/linz/lui/compare/v23.12.0...v23.13.0) (2025-10-08)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { LuiIcon } from './components/LuiIcon/LuiIcon';
|
|
|
29
29
|
export { LuiBearingInput } from './components/LuiBearingInput/LuiBearingInput';
|
|
30
30
|
export { LuiFooter } from './components/LuiFooter/LuiFooter';
|
|
31
31
|
export { LuiAppFooterSml } from './components/LuiFooter/LuiAppFooterSml';
|
|
32
|
-
export { LuiComboSelect, type LuiComboSelectProps, type LuiComboSelectOption, } from './components/
|
|
32
|
+
export { LuiComboSelect, type LuiComboSelectProps, type LuiComboSelectOption, } from './components/LuiFormElements/LuiComboSelect/LuiComboSelect';
|
|
33
33
|
export { LuiFormSectionHeader, type IFormSectionHeaderProps, } from './components/LuiForms/LuiFormSection/LuiFormSectionHeader';
|
|
34
34
|
export * from './components/LuiHeader/LuiHeader';
|
|
35
35
|
export * from './components/LuiHeaderV2/LuiHeaderV2';
|
package/dist/index.js
CHANGED
|
@@ -15042,7 +15042,7 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
15042
15042
|
// box-shadow: "-8px 0px 0 0 #cc0000";
|
|
15043
15043
|
// border-radius: "4px";
|
|
15044
15044
|
var id = useGenerateOrDefaultId(props === null || props === void 0 ? void 0 : props.id);
|
|
15045
|
-
var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', 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: {
|
|
15045
|
+
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: {
|
|
15046
15046
|
control: function (provided, state) { return (__assign(__assign({}, provided), {
|
|
15047
15047
|
/* matches style of .LuiTextInput-input */
|
|
15048
15048
|
boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {
|
|
@@ -15062,12 +15062,13 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
15062
15062
|
return (__assign(__assign({}, provided), { color: colors['input-text'], backgroundColor: isSelected ? colors['selection'] : colors['white'] }));
|
|
15063
15063
|
}
|
|
15064
15064
|
} });
|
|
15065
|
-
return (React__default["default"].createElement("
|
|
15066
|
-
React__default["default"].createElement("
|
|
15067
|
-
|
|
15068
|
-
|
|
15069
|
-
React__default["default"].createElement(
|
|
15070
|
-
|
|
15065
|
+
return (React__default["default"].createElement("div", { className: clsx('LuiComboSelect', props.className) },
|
|
15066
|
+
React__default["default"].createElement("label", { htmlFor: id, className: clsx('LuiComboSelect-label', props.error && 'hasError') },
|
|
15067
|
+
React__default["default"].createElement("span", { className: clsx('LuiSelect-label-text', props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
|
|
15068
|
+
props.isCreateable ? (React__default["default"].createElement(CreatableSelect, __assign({ formatCreateLabel: function (inputValue) { return inputValue; }, createOptionPosition: "first", ref: ref }, selectProp))) : (React__default["default"].createElement(Select, __assign({ ref: ref }, selectProp))),
|
|
15069
|
+
props.error && (React__default["default"].createElement("span", { className: "LuiComboSelect-error" },
|
|
15070
|
+
React__default["default"].createElement(LuiIcon, { alt: 'Error', name: "ic_error", className: "LuiComboSelect-error-icon", size: "sm", status: "error" }),
|
|
15071
|
+
props.error)))));
|
|
15071
15072
|
}
|
|
15072
15073
|
|
|
15073
15074
|
var LuiShadow = function (props) {
|