@linzjs/lui 17.53.0 → 17.55.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 +15 -0
- package/dist/components/LuiAccordion/LuiAccordion.d.ts +12 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +4 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [17.55.0](https://github.com/linz/lui/compare/v17.54.0...v17.55.0) (2023-05-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add LUI Accordion component ([57bb446](https://github.com/linz/lui/commit/57bb4465d9159e60164f6d014f3a4c660a557a23))
|
|
7
|
+
* Add LUI Accordion component ([39c5dc7](https://github.com/linz/lui/commit/39c5dc74218e09c77e1f694b2725454dd05501c6))
|
|
8
|
+
|
|
9
|
+
# [17.54.0](https://github.com/linz/lui/compare/v17.53.0...v17.54.0) (2023-05-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **LuiSelectInput:** Implement the disabled flag for select options ([#939](https://github.com/linz/lui/issues/939)) ([a38b7bc](https://github.com/linz/lui/commit/a38b7bc869dac8f70264e1781d82a50313e13c89))
|
|
15
|
+
|
|
1
16
|
# [17.53.0](https://github.com/linz/lui/compare/v17.52.3...v17.53.0) (2023-05-05)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import './LuiAccordion.scss';
|
|
3
|
+
export interface ILuiAccordion {
|
|
4
|
+
heading: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const LuiAccordion: (props: ILuiAccordion) => JSX.Element;
|
|
12
|
+
export default LuiAccordion;
|
package/dist/index.js
CHANGED
|
@@ -28306,7 +28306,10 @@ var LuiSelectInput = function (props) {
|
|
|
28306
28306
|
React__default["default"].createElement("div", { className: "LuiSelect-wrapper" },
|
|
28307
28307
|
React__default["default"].createElement("select", __assign({ name: id, id: id, onChange: props.onChange, value: props.value, className: "LuiSelect-select" }, props.selectProps),
|
|
28308
28308
|
props.placeholderText && (React__default["default"].createElement("option", { value: "", disabled: true }, props.placeholderText)),
|
|
28309
|
-
props.options.map(function (selection) {
|
|
28309
|
+
props.options.map(function (selection) {
|
|
28310
|
+
return selection.disabled === true ? (React__default["default"].createElement("option", { key: selection.value, value: selection.value, disabled: true }, selection.label)) : (React__default["default"].createElement("option", { key: selection.value, value: selection.value }, selection.label));
|
|
28311
|
+
}),
|
|
28312
|
+
")"),
|
|
28310
28313
|
React__default["default"].createElement(LuiIcon, { alt: 'Error', name: "ic_keyboard_arrow_down", className: "LuiSelect-chevron-icon", size: "md" })),
|
|
28311
28314
|
props.error && (React__default["default"].createElement("span", { className: "LuiSelect-error" },
|
|
28312
28315
|
React__default["default"].createElement(LuiIcon, { alt: 'Error', name: "ic_error", className: "LuiSelect-error-icon", size: "sm", status: "error" }),
|