@commercetools-uikit/input-utils 13.0.2 → 13.0.4

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.
@@ -193,6 +193,8 @@ var MultilineInput = function MultilineInput(props) {
193
193
  ,
194
194
  "aria-readonly": props.isReadOnly,
195
195
  "aria-multiline": "true",
196
+ "aria-invalid": props['aria-invalid'],
197
+ "aria-errormessage": props['aria-errormessage'],
196
198
  role: "textbox",
197
199
  minRows: MIN_ROW_COUNT,
198
200
  maxRows: props.isOpen ? undefined : MIN_ROW_COUNT,
@@ -216,7 +218,9 @@ MultilineInput.propTypes = process.env.NODE_ENV !== "production" ? {
216
218
  placeholder: _pt__default["default"].string,
217
219
  value: _pt__default["default"].string.isRequired,
218
220
  isOpen: _pt__default["default"].bool.isRequired,
219
- onHeightChange: _pt__default["default"].func
221
+ onHeightChange: _pt__default["default"].func,
222
+ 'aria-invalid': _pt__default["default"].bool,
223
+ 'aria-errormessage': _pt__default["default"].string
220
224
  } : {};
221
225
  MultilineInput.displayName = 'MultilineInput';
222
226
  var MultilineInput$1 = MultilineInput;
@@ -247,7 +251,7 @@ var accessibleHiddenInputStyles = process.env.NODE_ENV === "production" ? {
247
251
  var accessibleHiddenInputStyles$1 = accessibleHiddenInputStyles;
248
252
 
249
253
  // NOTE: This string will be replaced on build time with the package version.
250
- var version = "13.0.2";
254
+ var version = "13.0.4";
251
255
 
252
256
  exports.LocalizedInputToggle = LocalizedInputToggle$1;
253
257
  exports.MultilineInput = MultilineInput$1;
@@ -182,6 +182,8 @@ var MultilineInput = function MultilineInput(props) {
182
182
  ,
183
183
  "aria-readonly": props.isReadOnly,
184
184
  "aria-multiline": "true",
185
+ "aria-invalid": props['aria-invalid'],
186
+ "aria-errormessage": props['aria-errormessage'],
185
187
  role: "textbox",
186
188
  minRows: MIN_ROW_COUNT,
187
189
  maxRows: props.isOpen ? undefined : MIN_ROW_COUNT,
@@ -213,7 +215,7 @@ var accessibleHiddenInputStyles = {
213
215
  var accessibleHiddenInputStyles$1 = accessibleHiddenInputStyles;
214
216
 
215
217
  // NOTE: This string will be replaced on build time with the package version.
216
- var version = "13.0.2";
218
+ var version = "13.0.4";
217
219
 
218
220
  exports.LocalizedInputToggle = LocalizedInputToggle$1;
219
221
  exports.MultilineInput = MultilineInput$1;
@@ -175,6 +175,8 @@ var MultilineInput = function MultilineInput(props) {
175
175
  ,
176
176
  "aria-readonly": props.isReadOnly,
177
177
  "aria-multiline": "true",
178
+ "aria-invalid": props['aria-invalid'],
179
+ "aria-errormessage": props['aria-errormessage'],
178
180
  role: "textbox",
179
181
  minRows: MIN_ROW_COUNT,
180
182
  maxRows: props.isOpen ? undefined : MIN_ROW_COUNT,
@@ -198,7 +200,9 @@ MultilineInput.propTypes = process.env.NODE_ENV !== "production" ? {
198
200
  placeholder: _pt.string,
199
201
  value: _pt.string.isRequired,
200
202
  isOpen: _pt.bool.isRequired,
201
- onHeightChange: _pt.func
203
+ onHeightChange: _pt.func,
204
+ 'aria-invalid': _pt.bool,
205
+ 'aria-errormessage': _pt.string
202
206
  } : {};
203
207
  MultilineInput.displayName = 'MultilineInput';
204
208
  var MultilineInput$1 = MultilineInput;
@@ -229,6 +233,6 @@ var accessibleHiddenInputStyles = process.env.NODE_ENV === "production" ? {
229
233
  var accessibleHiddenInputStyles$1 = accessibleHiddenInputStyles;
230
234
 
231
235
  // NOTE: This string will be replaced on build time with the package version.
232
- var version = "13.0.2";
236
+ var version = "13.0.4";
233
237
 
234
238
  export { LocalizedInputToggle$1 as LocalizedInputToggle, MultilineInput$1 as MultilineInput, accessibleHiddenInputStyles$1 as accessibleHiddenInputStyles, getInputStyles, messages$1 as messagesLocalizedInput, messages as messagesMultilineInput, version };
@@ -3,7 +3,7 @@ import { MouseEvent, KeyboardEvent, ReactElement } from 'react';
3
3
  export declare type TLocalizedInputToggleProps = {
4
4
  icon?: ReactElement;
5
5
  isOpen?: boolean;
6
- onClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
6
+ onClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement> | boolean) => void;
7
7
  isDisabled?: boolean;
8
8
  showMessage: string | MessageDescriptor;
9
9
  hideMessage: string | MessageDescriptor;
@@ -16,6 +16,8 @@ export declare type TMultiLineInputProps = {
16
16
  value: string;
17
17
  isOpen: boolean;
18
18
  onHeightChange?: (height: number, rowCount: number) => void;
19
+ 'aria-invalid'?: boolean;
20
+ 'aria-errormessage'?: string;
19
21
  };
20
22
  declare const MultilineInput: {
21
23
  (props: TMultiLineInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/input-utils",
3
3
  "description": "Utilities for working with input components.",
4
- "version": "13.0.2",
4
+ "version": "13.0.4",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,17 +22,16 @@
22
22
  "@babel/runtime": "7.17.2",
23
23
  "@babel/runtime-corejs3": "7.17.2",
24
24
  "@commercetools-uikit/design-system": "13.0.0",
25
- "@commercetools-uikit/flat-button": "13.0.2",
25
+ "@commercetools-uikit/flat-button": "13.0.4",
26
26
  "@commercetools-uikit/icons": "13.0.2",
27
27
  "@commercetools-uikit/utils": "13.0.2",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "prop-types": "15.8.1",
30
- "react-required-if": "1.0.3",
31
30
  "react-textarea-autosize": "8.3.3"
32
31
  },
33
32
  "devDependencies": {
34
33
  "react": "17.0.2",
35
- "react-intl": "5.24.6"
34
+ "react-intl": "^5.24.6"
36
35
  },
37
36
  "peerDependencies": {
38
37
  "react": "17.x",