@linzjs/lui 16.1.1 → 16.2.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,24 @@
1
+ ## [16.2.2](https://github.com/linz/lui/compare/v16.2.1...v16.2.2) (2022-03-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Adding conditional class name ([#636](https://github.com/linz/lui/issues/636)) ([5bd6858](https://github.com/linz/lui/commit/5bd6858d8d579622ba23aac64a27e8b4c7d1ae79))
7
+
8
+ ## [16.2.1](https://github.com/linz/lui/compare/v16.2.0...v16.2.1) (2022-03-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * issues with content blowing out from .Main class resolved as per… ([#635](https://github.com/linz/lui/issues/635)) ([c4cb253](https://github.com/linz/lui/commit/c4cb2538f99d8d080bfc3a6a69521e4cd5bf38fc))
14
+
15
+ # [16.2.0](https://github.com/linz/lui/compare/v16.1.1...v16.2.0) (2022-03-23)
16
+
17
+
18
+ ### Features
19
+
20
+ * hideLabel ([#634](https://github.com/linz/lui/issues/634)) ([003a187](https://github.com/linz/lui/commit/003a187b2c95fb62a6410d660acfcca74ac20f62))
21
+
1
22
  ## [16.1.1](https://github.com/linz/lui/compare/v16.1.0...v16.1.1) (2022-03-23)
2
23
 
3
24
 
@@ -13,6 +13,7 @@ export interface LuiTextInputProps {
13
13
  * A padlock will be displayed on right side of input
14
14
  */
15
15
  showPadlockIcon?: boolean;
16
+ className?: string;
16
17
  value: string;
17
18
  icon?: JSX.Element;
18
19
  }
package/dist/index.js CHANGED
@@ -867,7 +867,7 @@ function useGenerateOrDefaultId(idFromProps) {
867
867
  var LuiTextInput = function (props) {
868
868
  var _a;
869
869
  var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
870
- return (React__default["default"].createElement("div", { className: clsx('LuiTextInput', props.error && 'hasError') },
870
+ return (React__default["default"].createElement("div", { className: clsx('LuiTextInput', props.error && 'hasError', props.className) },
871
871
  React__default["default"].createElement("label", { className: 'LuiTextInput-label', htmlFor: id },
872
872
  props.mandatory && React__default["default"].createElement("span", { className: "LuiTextInput-mandatory" }, "*"),
873
873
  React__default["default"].createElement("span", { className: 'LuiTextInput-label-text ' +
@@ -55861,7 +55861,7 @@ var LuiFilterContainer = function (props) {
55861
55861
  showFilter && (React__default["default"].createElement("div", { className: 'LuiFilterContainer-filter-container LuiDeprecatedForms' },
55862
55862
  isFilterClearable && (React__default["default"].createElement(ClearableLuiTextInput, { label: 'Filter', inputProps: {
55863
55863
  placeholder: 'Type to filter',
55864
- }, onValueChange: function (value) { return setFilter(value); } })),
55864
+ }, hideLabel: true, onValueChange: function (value) { return setFilter(value); } })),
55865
55865
  !isFilterClearable && (React__default["default"].createElement("input", { type: "text", placeholder: "Type to filter", value: filter, onChange: function (e) { return setFilter(e.target.value); } })))),
55866
55866
  renderFunction(filterFunction(filter))));
55867
55867
  };