carbon-react 106.3.1 → 106.3.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.
Files changed (57) hide show
  1. package/esm/__internal__/input/input-presentation.component.js +13 -0
  2. package/esm/__internal__/input/input.component.js +294 -0
  3. package/esm/__internal__/input-behaviour/input-behaviour.component.js +4 -0
  4. package/esm/__internal__/input-behaviour/input-group-behaviour.component.js +5 -0
  5. package/esm/__internal__/validation-message/validation-message.component.js +5 -0
  6. package/esm/__internal__/validations/validation-icon.component.js +41 -1
  7. package/esm/components/alert/alert.component.js +38 -252
  8. package/esm/components/alert/index.d.ts +1 -0
  9. package/esm/components/badge/badge.component.js +20 -60
  10. package/esm/components/button/button.component.js +760 -3310
  11. package/esm/components/carbon-provider/carbon-provider.component.js +48 -106
  12. package/esm/components/heading/heading.style.d.ts +2 -2
  13. package/esm/components/hr/hr.component.js +171 -1305
  14. package/esm/components/hr/index.d.ts +1 -0
  15. package/esm/components/inline-inputs/inline-inputs.component.js +35 -90
  16. package/esm/components/link/index.d.ts +1 -0
  17. package/esm/components/link/link.component.js +123 -1228
  18. package/esm/components/navigation-bar/index.d.ts +1 -0
  19. package/esm/components/navigation-bar/navigation-bar.component.js +1018 -10761
  20. package/esm/components/pager/pager.style.d.ts +1 -1
  21. package/esm/components/pod/pod.style.d.ts +1 -1
  22. package/esm/components/radio-button/radio-button-svg.component.js +16 -29
  23. package/esm/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
  24. package/esm/components/tooltip/tooltip.component.js +85 -254
  25. package/esm/components/vertical-divider/index.d.ts +1 -0
  26. package/esm/components/vertical-divider/vertical-divider.component.d.ts +2 -2
  27. package/esm/components/vertical-divider/vertical-divider.component.js +328 -1406
  28. package/esm/components/vertical-divider/vertical-divider.style.d.ts +3 -3
  29. package/lib/__internal__/input/input-presentation.component.js +16 -0
  30. package/lib/__internal__/input/input.component.js +295 -0
  31. package/lib/__internal__/input-behaviour/input-behaviour.component.js +6 -1
  32. package/lib/__internal__/input-behaviour/input-group-behaviour.component.js +7 -1
  33. package/lib/__internal__/validation-message/validation-message.component.js +6 -0
  34. package/lib/__internal__/validations/validation-icon.component.js +39 -0
  35. package/lib/components/alert/alert.component.js +42 -143
  36. package/lib/components/alert/index.d.ts +1 -0
  37. package/lib/components/badge/badge.component.js +24 -50
  38. package/lib/components/button/button.component.js +768 -3378
  39. package/lib/components/carbon-provider/carbon-provider.component.js +54 -110
  40. package/lib/components/heading/heading.style.d.ts +2 -2
  41. package/lib/components/hr/hr.component.js +175 -676
  42. package/lib/components/hr/index.d.ts +1 -0
  43. package/lib/components/inline-inputs/inline-inputs.component.js +43 -137
  44. package/lib/components/link/index.d.ts +1 -0
  45. package/lib/components/link/link.component.js +142 -746
  46. package/lib/components/navigation-bar/index.d.ts +1 -0
  47. package/lib/components/navigation-bar/navigation-bar.component.js +1022 -5426
  48. package/lib/components/pager/pager.style.d.ts +1 -1
  49. package/lib/components/pod/pod.style.d.ts +1 -1
  50. package/lib/components/radio-button/radio-button-svg.component.js +20 -38
  51. package/lib/components/text-editor/__internal__/editor-link/editor-link.style.d.ts +1 -1
  52. package/lib/components/tooltip/tooltip.component.js +98 -215
  53. package/lib/components/vertical-divider/index.d.ts +1 -0
  54. package/lib/components/vertical-divider/vertical-divider.component.d.ts +2 -2
  55. package/lib/components/vertical-divider/vertical-divider.component.js +334 -1457
  56. package/lib/components/vertical-divider/vertical-divider.style.d.ts +3 -3
  57. package/package.json +4 -3
@@ -1,4 +1,5 @@
1
1
  import React, { useContext } from "react";
2
+ import PropTypes from "prop-types";
2
3
  import InputPresentationStyle, { StyledInputPresentationContainer } from "./input-presentation.style";
3
4
  import { InputContext, InputGroupContext } from "../input-behaviour";
4
5
  import { NewValidationContext } from "../../components/carbon-provider/carbon-provider.component";
@@ -58,4 +59,16 @@ const InputPresentation = ({
58
59
  }, children));
59
60
  };
60
61
 
62
+ InputPresentation.propTypes = {
63
+ "align": PropTypes.string,
64
+ "children": PropTypes.node,
65
+ "disabled": PropTypes.bool,
66
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
67
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
68
+ "inputWidth": PropTypes.number,
69
+ "positionedChildren": PropTypes.node,
70
+ "readOnly": PropTypes.bool,
71
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
72
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
73
+ };
61
74
  export default InputPresentation;
@@ -1,6 +1,7 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { useEffect, useContext, useRef } from "react";
4
+ import PropTypes from "prop-types";
4
5
  import StyledInput from "./input.style";
5
6
  import { InputContext, InputGroupContext } from "../input-behaviour";
6
7
 
@@ -153,5 +154,298 @@ const Input = /*#__PURE__*/React.forwardRef(({
153
154
  onChange: handleChange
154
155
  }));
155
156
  });
157
+ Input.propTypes = {
158
+ "about": PropTypes.string,
159
+ "accept": PropTypes.string,
160
+ "accessKey": PropTypes.string,
161
+ "align": PropTypes.oneOf(["left", "right"]),
162
+ "alt": PropTypes.string,
163
+ "aria-activedescendant": PropTypes.string,
164
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
165
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
166
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
167
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
168
+ "aria-colcount": PropTypes.number,
169
+ "aria-colindex": PropTypes.number,
170
+ "aria-colspan": PropTypes.number,
171
+ "aria-controls": PropTypes.string,
172
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
173
+ "aria-describedby": PropTypes.string,
174
+ "aria-details": PropTypes.string,
175
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
176
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
177
+ "aria-errormessage": PropTypes.string,
178
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
179
+ "aria-flowto": PropTypes.string,
180
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
181
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
182
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
183
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
184
+ "aria-keyshortcuts": PropTypes.string,
185
+ "aria-label": PropTypes.string,
186
+ "aria-labelledby": PropTypes.string,
187
+ "aria-level": PropTypes.number,
188
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
189
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
190
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
191
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
192
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
193
+ "aria-owns": PropTypes.string,
194
+ "aria-placeholder": PropTypes.string,
195
+ "aria-posinset": PropTypes.number,
196
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
197
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
198
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
199
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
200
+ "aria-roledescription": PropTypes.string,
201
+ "aria-rowcount": PropTypes.number,
202
+ "aria-rowindex": PropTypes.number,
203
+ "aria-rowspan": PropTypes.number,
204
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
205
+ "aria-setsize": PropTypes.number,
206
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
207
+ "aria-valuemax": PropTypes.number,
208
+ "aria-valuemin": PropTypes.number,
209
+ "aria-valuenow": PropTypes.number,
210
+ "aria-valuetext": PropTypes.string,
211
+ "autoCapitalize": PropTypes.string,
212
+ "autoComplete": PropTypes.string,
213
+ "autoCorrect": PropTypes.string,
214
+ "autoFocus": PropTypes.bool,
215
+ "autoSave": PropTypes.string,
216
+ "capture": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
217
+ "checked": PropTypes.bool,
218
+ "children": PropTypes.node,
219
+ "className": PropTypes.string,
220
+ "color": PropTypes.string,
221
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
222
+ "contextMenu": PropTypes.string,
223
+ "crossOrigin": PropTypes.string,
224
+ "dangerouslySetInnerHTML": PropTypes.shape({
225
+ "__html": PropTypes.string.isRequired
226
+ }),
227
+ "datatype": PropTypes.string,
228
+ "defaultChecked": PropTypes.bool,
229
+ "defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
230
+ "deferTimeout": PropTypes.number,
231
+ "dir": PropTypes.string,
232
+ "disabled": PropTypes.bool,
233
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
234
+ "form": PropTypes.string,
235
+ "formAction": PropTypes.string,
236
+ "formEncType": PropTypes.string,
237
+ "formMethod": PropTypes.string,
238
+ "formNoValidate": PropTypes.bool,
239
+ "formTarget": PropTypes.string,
240
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
241
+ "hidden": PropTypes.bool,
242
+ "id": PropTypes.string,
243
+ "inlist": PropTypes.any,
244
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
245
+ "inputRef": PropTypes.func,
246
+ "is": PropTypes.string,
247
+ "itemID": PropTypes.string,
248
+ "itemProp": PropTypes.string,
249
+ "itemRef": PropTypes.string,
250
+ "itemScope": PropTypes.bool,
251
+ "itemType": PropTypes.string,
252
+ "lang": PropTypes.string,
253
+ "list": PropTypes.string,
254
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
255
+ "maxLength": PropTypes.number,
256
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
257
+ "minLength": PropTypes.number,
258
+ "multiple": PropTypes.bool,
259
+ "name": PropTypes.string,
260
+ "onAbort": PropTypes.func,
261
+ "onAbortCapture": PropTypes.func,
262
+ "onAnimationEnd": PropTypes.func,
263
+ "onAnimationEndCapture": PropTypes.func,
264
+ "onAnimationIteration": PropTypes.func,
265
+ "onAnimationIterationCapture": PropTypes.func,
266
+ "onAnimationStart": PropTypes.func,
267
+ "onAnimationStartCapture": PropTypes.func,
268
+ "onAuxClick": PropTypes.func,
269
+ "onAuxClickCapture": PropTypes.func,
270
+ "onBeforeInput": PropTypes.func,
271
+ "onBeforeInputCapture": PropTypes.func,
272
+ "onBlur": PropTypes.func,
273
+ "onBlurCapture": PropTypes.func,
274
+ "onCanPlay": PropTypes.func,
275
+ "onCanPlayCapture": PropTypes.func,
276
+ "onCanPlayThrough": PropTypes.func,
277
+ "onCanPlayThroughCapture": PropTypes.func,
278
+ "onChange": PropTypes.func,
279
+ "onChangeCapture": PropTypes.func,
280
+ "onChangeDeferred": PropTypes.func,
281
+ "onClick": PropTypes.func,
282
+ "onClickCapture": PropTypes.func,
283
+ "onCompositionEnd": PropTypes.func,
284
+ "onCompositionEndCapture": PropTypes.func,
285
+ "onCompositionStart": PropTypes.func,
286
+ "onCompositionStartCapture": PropTypes.func,
287
+ "onCompositionUpdate": PropTypes.func,
288
+ "onCompositionUpdateCapture": PropTypes.func,
289
+ "onContextMenu": PropTypes.func,
290
+ "onContextMenuCapture": PropTypes.func,
291
+ "onCopy": PropTypes.func,
292
+ "onCopyCapture": PropTypes.func,
293
+ "onCut": PropTypes.func,
294
+ "onCutCapture": PropTypes.func,
295
+ "onDoubleClick": PropTypes.func,
296
+ "onDoubleClickCapture": PropTypes.func,
297
+ "onDrag": PropTypes.func,
298
+ "onDragCapture": PropTypes.func,
299
+ "onDragEnd": PropTypes.func,
300
+ "onDragEndCapture": PropTypes.func,
301
+ "onDragEnter": PropTypes.func,
302
+ "onDragEnterCapture": PropTypes.func,
303
+ "onDragExit": PropTypes.func,
304
+ "onDragExitCapture": PropTypes.func,
305
+ "onDragLeave": PropTypes.func,
306
+ "onDragLeaveCapture": PropTypes.func,
307
+ "onDragOver": PropTypes.func,
308
+ "onDragOverCapture": PropTypes.func,
309
+ "onDragStart": PropTypes.func,
310
+ "onDragStartCapture": PropTypes.func,
311
+ "onDrop": PropTypes.func,
312
+ "onDropCapture": PropTypes.func,
313
+ "onDurationChange": PropTypes.func,
314
+ "onDurationChangeCapture": PropTypes.func,
315
+ "onEmptied": PropTypes.func,
316
+ "onEmptiedCapture": PropTypes.func,
317
+ "onEncrypted": PropTypes.func,
318
+ "onEncryptedCapture": PropTypes.func,
319
+ "onEnded": PropTypes.func,
320
+ "onEndedCapture": PropTypes.func,
321
+ "onError": PropTypes.func,
322
+ "onErrorCapture": PropTypes.func,
323
+ "onFocus": PropTypes.func,
324
+ "onFocusCapture": PropTypes.func,
325
+ "onGotPointerCapture": PropTypes.func,
326
+ "onGotPointerCaptureCapture": PropTypes.func,
327
+ "onInput": PropTypes.func,
328
+ "onInputCapture": PropTypes.func,
329
+ "onInvalid": PropTypes.func,
330
+ "onInvalidCapture": PropTypes.func,
331
+ "onKeyDown": PropTypes.func,
332
+ "onKeyDownCapture": PropTypes.func,
333
+ "onKeyPress": PropTypes.func,
334
+ "onKeyPressCapture": PropTypes.func,
335
+ "onKeyUp": PropTypes.func,
336
+ "onKeyUpCapture": PropTypes.func,
337
+ "onLoad": PropTypes.func,
338
+ "onLoadCapture": PropTypes.func,
339
+ "onLoadedData": PropTypes.func,
340
+ "onLoadedDataCapture": PropTypes.func,
341
+ "onLoadedMetadata": PropTypes.func,
342
+ "onLoadedMetadataCapture": PropTypes.func,
343
+ "onLoadStart": PropTypes.func,
344
+ "onLoadStartCapture": PropTypes.func,
345
+ "onLostPointerCapture": PropTypes.func,
346
+ "onLostPointerCaptureCapture": PropTypes.func,
347
+ "onMouseDown": PropTypes.func,
348
+ "onMouseDownCapture": PropTypes.func,
349
+ "onMouseEnter": PropTypes.func,
350
+ "onMouseLeave": PropTypes.func,
351
+ "onMouseMove": PropTypes.func,
352
+ "onMouseMoveCapture": PropTypes.func,
353
+ "onMouseOut": PropTypes.func,
354
+ "onMouseOutCapture": PropTypes.func,
355
+ "onMouseOver": PropTypes.func,
356
+ "onMouseOverCapture": PropTypes.func,
357
+ "onMouseUp": PropTypes.func,
358
+ "onMouseUpCapture": PropTypes.func,
359
+ "onPaste": PropTypes.func,
360
+ "onPasteCapture": PropTypes.func,
361
+ "onPause": PropTypes.func,
362
+ "onPauseCapture": PropTypes.func,
363
+ "onPlay": PropTypes.func,
364
+ "onPlayCapture": PropTypes.func,
365
+ "onPlaying": PropTypes.func,
366
+ "onPlayingCapture": PropTypes.func,
367
+ "onPointerCancel": PropTypes.func,
368
+ "onPointerCancelCapture": PropTypes.func,
369
+ "onPointerDown": PropTypes.func,
370
+ "onPointerDownCapture": PropTypes.func,
371
+ "onPointerEnter": PropTypes.func,
372
+ "onPointerEnterCapture": PropTypes.func,
373
+ "onPointerLeave": PropTypes.func,
374
+ "onPointerLeaveCapture": PropTypes.func,
375
+ "onPointerMove": PropTypes.func,
376
+ "onPointerMoveCapture": PropTypes.func,
377
+ "onPointerOut": PropTypes.func,
378
+ "onPointerOutCapture": PropTypes.func,
379
+ "onPointerOver": PropTypes.func,
380
+ "onPointerOverCapture": PropTypes.func,
381
+ "onPointerUp": PropTypes.func,
382
+ "onPointerUpCapture": PropTypes.func,
383
+ "onProgress": PropTypes.func,
384
+ "onProgressCapture": PropTypes.func,
385
+ "onRateChange": PropTypes.func,
386
+ "onRateChangeCapture": PropTypes.func,
387
+ "onReset": PropTypes.func,
388
+ "onResetCapture": PropTypes.func,
389
+ "onScroll": PropTypes.func,
390
+ "onScrollCapture": PropTypes.func,
391
+ "onSeeked": PropTypes.func,
392
+ "onSeekedCapture": PropTypes.func,
393
+ "onSeeking": PropTypes.func,
394
+ "onSeekingCapture": PropTypes.func,
395
+ "onSelect": PropTypes.func,
396
+ "onSelectCapture": PropTypes.func,
397
+ "onStalled": PropTypes.func,
398
+ "onStalledCapture": PropTypes.func,
399
+ "onSubmit": PropTypes.func,
400
+ "onSubmitCapture": PropTypes.func,
401
+ "onSuspend": PropTypes.func,
402
+ "onSuspendCapture": PropTypes.func,
403
+ "onTimeUpdate": PropTypes.func,
404
+ "onTimeUpdateCapture": PropTypes.func,
405
+ "onTouchCancel": PropTypes.func,
406
+ "onTouchCancelCapture": PropTypes.func,
407
+ "onTouchEnd": PropTypes.func,
408
+ "onTouchEndCapture": PropTypes.func,
409
+ "onTouchMove": PropTypes.func,
410
+ "onTouchMoveCapture": PropTypes.func,
411
+ "onTouchStart": PropTypes.func,
412
+ "onTouchStartCapture": PropTypes.func,
413
+ "onTransitionEnd": PropTypes.func,
414
+ "onTransitionEndCapture": PropTypes.func,
415
+ "onVolumeChange": PropTypes.func,
416
+ "onVolumeChangeCapture": PropTypes.func,
417
+ "onWaiting": PropTypes.func,
418
+ "onWaitingCapture": PropTypes.func,
419
+ "onWheel": PropTypes.func,
420
+ "onWheelCapture": PropTypes.func,
421
+ "pattern": PropTypes.string,
422
+ "placeholder": PropTypes.string,
423
+ "prefix": PropTypes.string,
424
+ "property": PropTypes.string,
425
+ "radioGroup": PropTypes.string,
426
+ "readOnly": PropTypes.bool,
427
+ "required": PropTypes.bool,
428
+ "resource": PropTypes.string,
429
+ "results": PropTypes.number,
430
+ "role": PropTypes.string,
431
+ "security": PropTypes.string,
432
+ "size": PropTypes.number,
433
+ "slot": PropTypes.string,
434
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
435
+ "src": PropTypes.string,
436
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
437
+ "style": PropTypes.object,
438
+ "suppressContentEditableWarning": PropTypes.bool,
439
+ "suppressHydrationWarning": PropTypes.bool,
440
+ "tabIndex": PropTypes.number,
441
+ "title": PropTypes.string,
442
+ "translate": PropTypes.oneOf(["no", "yes"]),
443
+ "type": PropTypes.string,
444
+ "typeof": PropTypes.string,
445
+ "unselectable": PropTypes.oneOf(["off", "on"]),
446
+ "value": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
447
+ "vocab": PropTypes.string,
448
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
449
+ };
156
450
  Input.displayName = "Input";
157
451
  export default Input;
@@ -1,4 +1,5 @@
1
1
  import React, { useContext } from "react";
2
+ import PropTypes from "prop-types";
2
3
  import { InlineInputsContext } from "../../components/inline-inputs";
3
4
  import useInputBehaviour from "./useInputBehaviour";
4
5
  const InputContext = /*#__PURE__*/React.createContext({});
@@ -17,4 +18,7 @@ const InputBehaviour = ({
17
18
  }, children);
18
19
  };
19
20
 
21
+ InputBehaviour.propTypes = {
22
+ "children": PropTypes.node
23
+ };
20
24
  export { InputContext, InputBehaviour };
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import useInputBehaviour from "./useInputBehaviour";
3
4
  const InputGroupContext = /*#__PURE__*/React.createContext({});
4
5
 
@@ -12,4 +13,8 @@ const InputGroupBehaviour = ({
12
13
  }, children);
13
14
  };
14
15
 
16
+ InputGroupBehaviour.propTypes = {
17
+ "blockGroupBehaviour": PropTypes.bool,
18
+ "children": PropTypes.node
19
+ };
15
20
  export { InputGroupContext, InputGroupBehaviour };
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import StyledValidationMessage from "./validation-message.style";
3
4
 
4
5
  const ValidationMessage = ({
@@ -12,4 +13,8 @@ const ValidationMessage = ({
12
13
  }, validation) : null;
13
14
  };
14
15
 
16
+ ValidationMessage.propTypes = {
17
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
18
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
19
+ };
15
20
  export default ValidationMessage;
@@ -1,6 +1,7 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { useContext, useState } from "react";
4
+ import PropTypes from "prop-types";
4
5
  import invariant from "invariant";
5
6
  import Icon from "../../components/icon";
6
7
  import ValidationIconStyle from "./validation-icon.style";
@@ -18,7 +19,7 @@ const getValidationType = ({
18
19
  return null;
19
20
  };
20
21
 
21
- export const ValidationIcon = ({
22
+ const ValidationIcon = ({
22
23
  error,
23
24
  warning,
24
25
  info,
@@ -90,4 +91,43 @@ export const ValidationIcon = ({
90
91
  focusable: tabIndex !== -1
91
92
  }));
92
93
  };
94
+
95
+ ValidationIcon.propTypes = {
96
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
97
+ "iconId": PropTypes.string,
98
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
99
+ "isPartOfInput": PropTypes.bool,
100
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
101
+ "__@toStringTag": PropTypes.string.isRequired,
102
+ "description": PropTypes.string,
103
+ "toString": PropTypes.func.isRequired,
104
+ "valueOf": PropTypes.func.isRequired
105
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
106
+ "__@toStringTag": PropTypes.string.isRequired,
107
+ "description": PropTypes.string,
108
+ "toString": PropTypes.func.isRequired,
109
+ "valueOf": PropTypes.func.isRequired
110
+ }), PropTypes.string]),
111
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
112
+ "__@toStringTag": PropTypes.string.isRequired,
113
+ "description": PropTypes.string,
114
+ "toString": PropTypes.func.isRequired,
115
+ "valueOf": PropTypes.func.isRequired
116
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
117
+ "__@toStringTag": PropTypes.string.isRequired,
118
+ "description": PropTypes.string,
119
+ "toString": PropTypes.func.isRequired,
120
+ "valueOf": PropTypes.func.isRequired
121
+ }), PropTypes.string]),
122
+ "onBlur": PropTypes.func,
123
+ "onClick": PropTypes.func,
124
+ "onFocus": PropTypes.func,
125
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
126
+ "tabIndex": PropTypes.number,
127
+ "tooltipFlipOverrides": PropTypes.arrayOf(PropTypes.oneOf(["bottom", "left", "right", "top"])),
128
+ "tooltipId": PropTypes.string,
129
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
130
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
131
+ };
132
+ export { ValidationIcon };
93
133
  export default ValidationIcon;