carbon-react 126.10.1 → 127.0.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.
Files changed (143) hide show
  1. package/esm/__internal__/checkable-input/checkable-input.component.js +362 -360
  2. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +297 -295
  3. package/esm/__internal__/full-screen-heading/full-screen-heading.component.js +6 -4
  4. package/esm/__internal__/input/input-presentation.component.js +19 -17
  5. package/esm/__internal__/input/input.component.js +355 -353
  6. package/esm/__internal__/input/input.style.d.ts +1 -1
  7. package/esm/__internal__/input/input.style.js +1 -7
  8. package/esm/__spec_helper__/index.js +5 -1
  9. package/esm/components/accordion/accordion.component.js +338 -336
  10. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  11. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  12. package/esm/components/anchor-navigation/anchor-navigation.component.js +6 -4
  13. package/esm/components/box/box.component.js +3785 -3783
  14. package/esm/components/breadcrumbs/breadcrumbs.component.js +316 -314
  15. package/esm/components/breadcrumbs/crumb/crumb.component.js +64 -62
  16. package/esm/components/button/button.component.js +688 -684
  17. package/esm/components/checkbox/checkbox.component.js +524 -522
  18. package/esm/components/date/date.component.js +722 -720
  19. package/esm/components/decimal/decimal.component.js +536 -534
  20. package/esm/components/dialog/dialog.component.js +56 -54
  21. package/esm/components/draggable/draggable-container.component.js +160 -158
  22. package/esm/components/draggable/draggable-item.component.js +162 -160
  23. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  24. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  25. package/esm/components/file-input/file-input.component.js +191 -189
  26. package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  27. package/esm/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +1 -1
  28. package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  29. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  30. package/esm/components/grouped-character/grouped-character.component.js +538 -536
  31. package/esm/components/help/help.component.js +172 -170
  32. package/esm/components/hr/hr.component.js +159 -157
  33. package/esm/components/icon/icon.component.js +181 -179
  34. package/esm/components/icon-button/icon-button.component.js +321 -319
  35. package/esm/components/link/link.component.js +72 -70
  36. package/esm/components/menu/__internal__/submenu/submenu.component.js +120 -118
  37. package/esm/components/menu/menu-divider/menu-divider.component.js +8 -6
  38. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  39. package/esm/components/message/message.component.js +168 -166
  40. package/esm/components/navigation-bar/navigation-bar.component.js +1279 -1277
  41. package/esm/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  42. package/esm/components/number/number.component.js +536 -534
  43. package/esm/components/pod/pod.component.js +178 -176
  44. package/esm/components/radio-button/radio-button.component.js +523 -521
  45. package/esm/components/search/search.component.js +183 -181
  46. package/esm/components/select/filterable-select/filterable-select.component.js +554 -552
  47. package/esm/components/select/list-action-button/list-action-button.component.js +6 -4
  48. package/esm/components/select/multi-select/multi-select.component.js +551 -549
  49. package/esm/components/select/option/option.component.js +402 -400
  50. package/esm/components/select/option-group-header/option-group-header.component.js +11 -9
  51. package/esm/components/select/option-row/option-row.component.js +16 -14
  52. package/esm/components/select/select-list/select-list.component.js +34 -32
  53. package/esm/components/select/select-textbox/select-textbox.component.js +543 -541
  54. package/esm/components/select/simple-select/simple-select.component.js +550 -548
  55. package/esm/components/sidebar/sidebar.component.js +297 -295
  56. package/esm/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  57. package/esm/components/simple-color-picker/simple-color-picker.component.js +173 -171
  58. package/esm/components/step-flow/step-flow.component.js +170 -168
  59. package/esm/components/switch/switch.component.js +524 -522
  60. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  61. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  62. package/esm/components/text-editor/text-editor.component.js +171 -169
  63. package/esm/components/textarea/textarea.component.js +532 -530
  64. package/esm/components/textbox/textbox.component.js +536 -534
  65. package/esm/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  66. package/esm/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  67. package/esm/components/tile-select/tile-select.component.js +180 -178
  68. package/esm/components/time/time.component.js +202 -200
  69. package/esm/components/toast/toast.component.js +18 -16
  70. package/esm/components/tooltip/tooltip.component.js +23 -21
  71. package/esm/components/vertical-divider/vertical-divider.component.js +316 -314
  72. package/lib/__internal__/checkable-input/checkable-input.component.js +362 -360
  73. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +297 -295
  74. package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +6 -4
  75. package/lib/__internal__/input/input-presentation.component.js +19 -17
  76. package/lib/__internal__/input/input.component.js +355 -353
  77. package/lib/__internal__/input/input.style.d.ts +1 -1
  78. package/lib/__internal__/input/input.style.js +1 -7
  79. package/lib/__spec_helper__/index.js +5 -1
  80. package/lib/components/accordion/accordion.component.js +338 -336
  81. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  82. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  83. package/lib/components/anchor-navigation/anchor-navigation.component.js +6 -4
  84. package/lib/components/box/box.component.js +3785 -3783
  85. package/lib/components/breadcrumbs/breadcrumbs.component.js +316 -314
  86. package/lib/components/breadcrumbs/crumb/crumb.component.js +64 -62
  87. package/lib/components/button/button.component.js +688 -684
  88. package/lib/components/checkbox/checkbox.component.js +524 -522
  89. package/lib/components/date/date.component.js +722 -720
  90. package/lib/components/decimal/decimal.component.js +536 -534
  91. package/lib/components/dialog/dialog.component.js +56 -54
  92. package/lib/components/draggable/draggable-container.component.js +160 -158
  93. package/lib/components/draggable/draggable-item.component.js +162 -160
  94. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  95. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  96. package/lib/components/file-input/file-input.component.js +191 -189
  97. package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  98. package/lib/components/flat-table/flat-table-body-draggable/flat-table-body-draggable.component.js +1 -1
  99. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  100. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  101. package/lib/components/grouped-character/grouped-character.component.js +538 -536
  102. package/lib/components/help/help.component.js +172 -170
  103. package/lib/components/hr/hr.component.js +159 -157
  104. package/lib/components/icon/icon.component.js +181 -179
  105. package/lib/components/icon-button/icon-button.component.js +321 -319
  106. package/lib/components/link/link.component.js +72 -70
  107. package/lib/components/menu/__internal__/submenu/submenu.component.js +120 -118
  108. package/lib/components/menu/menu-divider/menu-divider.component.js +8 -6
  109. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  110. package/lib/components/message/message.component.js +168 -166
  111. package/lib/components/navigation-bar/navigation-bar.component.js +1279 -1277
  112. package/lib/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  113. package/lib/components/number/number.component.js +536 -534
  114. package/lib/components/pod/pod.component.js +178 -176
  115. package/lib/components/radio-button/radio-button.component.js +523 -521
  116. package/lib/components/search/search.component.js +183 -181
  117. package/lib/components/select/filterable-select/filterable-select.component.js +554 -552
  118. package/lib/components/select/list-action-button/list-action-button.component.js +6 -4
  119. package/lib/components/select/multi-select/multi-select.component.js +551 -549
  120. package/lib/components/select/option/option.component.js +402 -400
  121. package/lib/components/select/option-group-header/option-group-header.component.js +11 -9
  122. package/lib/components/select/option-row/option-row.component.js +16 -14
  123. package/lib/components/select/select-list/select-list.component.js +34 -32
  124. package/lib/components/select/select-textbox/select-textbox.component.js +543 -541
  125. package/lib/components/select/simple-select/simple-select.component.js +550 -548
  126. package/lib/components/sidebar/sidebar.component.js +297 -295
  127. package/lib/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  128. package/lib/components/simple-color-picker/simple-color-picker.component.js +173 -171
  129. package/lib/components/step-flow/step-flow.component.js +170 -168
  130. package/lib/components/switch/switch.component.js +524 -522
  131. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  132. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  133. package/lib/components/text-editor/text-editor.component.js +171 -169
  134. package/lib/components/textarea/textarea.component.js +532 -530
  135. package/lib/components/textbox/textbox.component.js +536 -534
  136. package/lib/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  137. package/lib/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  138. package/lib/components/tile-select/tile-select.component.js +180 -178
  139. package/lib/components/time/time.component.js +202 -200
  140. package/lib/components/toast/toast.component.js +18 -16
  141. package/lib/components/tooltip/tooltip.component.js +23 -21
  142. package/lib/components/vertical-divider/vertical-divider.component.js +316 -314
  143. package/package.json +1 -1
@@ -188,35 +188,37 @@ const TabTitle = /*#__PURE__*/React.forwardRef(({
188
188
  }
189
189
  }, tabTitle));
190
190
  });
191
- TabTitle.propTypes = {
192
- "align": PropTypes.oneOf(["left", "right"]),
193
- "alternateStyling": PropTypes.bool,
194
- "borders": PropTypes.bool,
195
- "children": PropTypes.node,
196
- "className": PropTypes.string,
197
- "customLayout": PropTypes.node,
198
- "data-role": PropTypes.string,
199
- "dataTabId": PropTypes.string,
200
- "error": PropTypes.bool,
201
- "errorMessage": PropTypes.string,
202
- "href": PropTypes.string,
203
- "id": PropTypes.string,
204
- "info": PropTypes.bool,
205
- "infoMessage": PropTypes.string,
206
- "isInSidebar": PropTypes.bool,
207
- "isTabSelected": PropTypes.bool,
208
- "noLeftBorder": PropTypes.bool,
209
- "noRightBorder": PropTypes.bool,
210
- "onClick": PropTypes.func.isRequired,
211
- "onKeyDown": PropTypes.func.isRequired,
212
- "position": PropTypes.oneOf(["left", "top"]),
213
- "siblings": PropTypes.node,
214
- "size": PropTypes.oneOf(["default", "large"]),
215
- "tabIndex": PropTypes.number,
216
- "title": PropTypes.string,
217
- "titlePosition": PropTypes.oneOf(["after", "before"]),
218
- "warning": PropTypes.bool,
219
- "warningMessage": PropTypes.string
220
- };
191
+ if (process.env.NODE_ENV !== "production") {
192
+ TabTitle.propTypes = {
193
+ "align": PropTypes.oneOf(["left", "right"]),
194
+ "alternateStyling": PropTypes.bool,
195
+ "borders": PropTypes.bool,
196
+ "children": PropTypes.node,
197
+ "className": PropTypes.string,
198
+ "customLayout": PropTypes.node,
199
+ "data-role": PropTypes.string,
200
+ "dataTabId": PropTypes.string,
201
+ "error": PropTypes.bool,
202
+ "errorMessage": PropTypes.string,
203
+ "href": PropTypes.string,
204
+ "id": PropTypes.string,
205
+ "info": PropTypes.bool,
206
+ "infoMessage": PropTypes.string,
207
+ "isInSidebar": PropTypes.bool,
208
+ "isTabSelected": PropTypes.bool,
209
+ "noLeftBorder": PropTypes.bool,
210
+ "noRightBorder": PropTypes.bool,
211
+ "onClick": PropTypes.func.isRequired,
212
+ "onKeyDown": PropTypes.func.isRequired,
213
+ "position": PropTypes.oneOf(["left", "top"]),
214
+ "siblings": PropTypes.node,
215
+ "size": PropTypes.oneOf(["default", "large"]),
216
+ "tabIndex": PropTypes.number,
217
+ "title": PropTypes.string,
218
+ "titlePosition": PropTypes.oneOf(["after", "before"]),
219
+ "warning": PropTypes.bool,
220
+ "warningMessage": PropTypes.string
221
+ };
222
+ }
221
223
  TabTitle.displayName = "TabTitle";
222
224
  export default TabTitle;
@@ -30,18 +30,20 @@ const ToolbarButton = /*#__PURE__*/React.forwardRef(({
30
30
  onBlur: onBlur
31
31
  }), children);
32
32
  });
33
- ToolbarButton.propTypes = {
34
- "activated": PropTypes.bool,
35
- "ariaLabel": PropTypes.string.isRequired,
36
- "children": PropTypes.node,
37
- "onBlur": PropTypes.func,
38
- "onFocus": PropTypes.func,
39
- "onKeyDown": PropTypes.func.isRequired,
40
- "onMouseDown": PropTypes.func.isRequired,
41
- "onMouseLeave": PropTypes.func,
42
- "onMouseOver": PropTypes.func,
43
- "tabbable": PropTypes.bool
44
- };
33
+ if (process.env.NODE_ENV !== "production") {
34
+ ToolbarButton.propTypes = {
35
+ "activated": PropTypes.bool,
36
+ "ariaLabel": PropTypes.string.isRequired,
37
+ "children": PropTypes.node,
38
+ "onBlur": PropTypes.func,
39
+ "onFocus": PropTypes.func,
40
+ "onKeyDown": PropTypes.func.isRequired,
41
+ "onMouseDown": PropTypes.func.isRequired,
42
+ "onMouseLeave": PropTypes.func,
43
+ "onMouseOver": PropTypes.func,
44
+ "tabbable": PropTypes.bool
45
+ };
46
+ }
45
47
  export { ToolbarButton };
46
48
  ToolbarButton.displayName = "ToolbarButton";
47
49
  export default ToolbarButton;
@@ -307,175 +307,177 @@ const TextEditor = /*#__PURE__*/React.forwardRef(({
307
307
  toolbarElements: toolbarElements
308
308
  }))), characterCount)));
309
309
  });
310
- TextEditor.propTypes = {
311
- "characterLimit": PropTypes.number,
312
- "error": PropTypes.string,
313
- "info": PropTypes.string,
314
- "inputHint": PropTypes.string,
315
- "labelText": PropTypes.string.isRequired,
316
- "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
317
- "__@toStringTag": PropTypes.string.isRequired,
318
- "description": PropTypes.string,
319
- "toString": PropTypes.func.isRequired,
320
- "valueOf": PropTypes.func.isRequired
321
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
322
- "__@toStringTag": PropTypes.string.isRequired,
323
- "description": PropTypes.string,
324
- "toString": PropTypes.func.isRequired,
325
- "valueOf": PropTypes.func.isRequired
326
- }), PropTypes.string]),
327
- "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
328
- "__@toStringTag": PropTypes.string.isRequired,
329
- "description": PropTypes.string,
330
- "toString": PropTypes.func.isRequired,
331
- "valueOf": PropTypes.func.isRequired
332
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
333
- "__@toStringTag": PropTypes.string.isRequired,
334
- "description": PropTypes.string,
335
- "toString": PropTypes.func.isRequired,
336
- "valueOf": PropTypes.func.isRequired
337
- }), PropTypes.string]),
338
- "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
339
- "__@toStringTag": PropTypes.string.isRequired,
340
- "description": PropTypes.string,
341
- "toString": PropTypes.func.isRequired,
342
- "valueOf": PropTypes.func.isRequired
343
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
344
- "__@toStringTag": PropTypes.string.isRequired,
345
- "description": PropTypes.string,
346
- "toString": PropTypes.func.isRequired,
347
- "valueOf": PropTypes.func.isRequired
348
- }), PropTypes.string]),
349
- "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
350
- "__@toStringTag": PropTypes.string.isRequired,
351
- "description": PropTypes.string,
352
- "toString": PropTypes.func.isRequired,
353
- "valueOf": PropTypes.func.isRequired
354
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
355
- "__@toStringTag": PropTypes.string.isRequired,
356
- "description": PropTypes.string,
357
- "toString": PropTypes.func.isRequired,
358
- "valueOf": PropTypes.func.isRequired
359
- }), PropTypes.string]),
360
- "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
361
- "__@toStringTag": PropTypes.string.isRequired,
362
- "description": PropTypes.string,
363
- "toString": PropTypes.func.isRequired,
364
- "valueOf": PropTypes.func.isRequired
365
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
366
- "__@toStringTag": PropTypes.string.isRequired,
367
- "description": PropTypes.string,
368
- "toString": PropTypes.func.isRequired,
369
- "valueOf": PropTypes.func.isRequired
370
- }), PropTypes.string]),
371
- "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
372
- "__@toStringTag": PropTypes.string.isRequired,
373
- "description": PropTypes.string,
374
- "toString": PropTypes.func.isRequired,
375
- "valueOf": PropTypes.func.isRequired
376
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
377
- "__@toStringTag": PropTypes.string.isRequired,
378
- "description": PropTypes.string,
379
- "toString": PropTypes.func.isRequired,
380
- "valueOf": PropTypes.func.isRequired
381
- }), PropTypes.string]),
382
- "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
383
- "__@toStringTag": PropTypes.string.isRequired,
384
- "description": PropTypes.string,
385
- "toString": PropTypes.func.isRequired,
386
- "valueOf": PropTypes.func.isRequired
387
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
388
- "__@toStringTag": PropTypes.string.isRequired,
389
- "description": PropTypes.string,
390
- "toString": PropTypes.func.isRequired,
391
- "valueOf": PropTypes.func.isRequired
392
- }), PropTypes.string]),
393
- "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
394
- "__@toStringTag": PropTypes.string.isRequired,
395
- "description": PropTypes.string,
396
- "toString": PropTypes.func.isRequired,
397
- "valueOf": PropTypes.func.isRequired
398
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
399
- "__@toStringTag": PropTypes.string.isRequired,
400
- "description": PropTypes.string,
401
- "toString": PropTypes.func.isRequired,
402
- "valueOf": PropTypes.func.isRequired
403
- }), PropTypes.string]),
404
- "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
405
- "__@toStringTag": PropTypes.string.isRequired,
406
- "description": PropTypes.string,
407
- "toString": PropTypes.func.isRequired,
408
- "valueOf": PropTypes.func.isRequired
409
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
410
- "__@toStringTag": PropTypes.string.isRequired,
411
- "description": PropTypes.string,
412
- "toString": PropTypes.func.isRequired,
413
- "valueOf": PropTypes.func.isRequired
414
- }), PropTypes.string]),
415
- "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
416
- "__@toStringTag": PropTypes.string.isRequired,
417
- "description": PropTypes.string,
418
- "toString": PropTypes.func.isRequired,
419
- "valueOf": PropTypes.func.isRequired
420
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
421
- "__@toStringTag": PropTypes.string.isRequired,
422
- "description": PropTypes.string,
423
- "toString": PropTypes.func.isRequired,
424
- "valueOf": PropTypes.func.isRequired
425
- }), PropTypes.string]),
426
- "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
427
- "__@toStringTag": PropTypes.string.isRequired,
428
- "description": PropTypes.string,
429
- "toString": PropTypes.func.isRequired,
430
- "valueOf": PropTypes.func.isRequired
431
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
432
- "__@toStringTag": PropTypes.string.isRequired,
433
- "description": PropTypes.string,
434
- "toString": PropTypes.func.isRequired,
435
- "valueOf": PropTypes.func.isRequired
436
- }), PropTypes.string]),
437
- "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
438
- "__@toStringTag": PropTypes.string.isRequired,
439
- "description": PropTypes.string,
440
- "toString": PropTypes.func.isRequired,
441
- "valueOf": PropTypes.func.isRequired
442
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
443
- "__@toStringTag": PropTypes.string.isRequired,
444
- "description": PropTypes.string,
445
- "toString": PropTypes.func.isRequired,
446
- "valueOf": PropTypes.func.isRequired
447
- }), PropTypes.string]),
448
- "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
449
- "__@toStringTag": PropTypes.string.isRequired,
450
- "description": PropTypes.string,
451
- "toString": PropTypes.func.isRequired,
452
- "valueOf": PropTypes.func.isRequired
453
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
454
- "__@toStringTag": PropTypes.string.isRequired,
455
- "description": PropTypes.string,
456
- "toString": PropTypes.func.isRequired,
457
- "valueOf": PropTypes.func.isRequired
458
- }), PropTypes.string]),
459
- "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
460
- "__@toStringTag": PropTypes.string.isRequired,
461
- "description": PropTypes.string,
462
- "toString": PropTypes.func.isRequired,
463
- "valueOf": PropTypes.func.isRequired
464
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
465
- "__@toStringTag": PropTypes.string.isRequired,
466
- "description": PropTypes.string,
467
- "toString": PropTypes.func.isRequired,
468
- "valueOf": PropTypes.func.isRequired
469
- }), PropTypes.string]),
470
- "onChange": PropTypes.func.isRequired,
471
- "onLinkAdded": PropTypes.func,
472
- "previews": PropTypes.node,
473
- "required": PropTypes.bool,
474
- "rows": PropTypes.number,
475
- "toolbarElements": PropTypes.node,
476
- "value": PropTypes.object.isRequired,
477
- "warning": PropTypes.string
478
- };
310
+ if (process.env.NODE_ENV !== "production") {
311
+ TextEditor.propTypes = {
312
+ "characterLimit": PropTypes.number,
313
+ "error": PropTypes.string,
314
+ "info": PropTypes.string,
315
+ "inputHint": PropTypes.string,
316
+ "labelText": PropTypes.string.isRequired,
317
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
318
+ "__@toStringTag": PropTypes.string.isRequired,
319
+ "description": PropTypes.string,
320
+ "toString": PropTypes.func.isRequired,
321
+ "valueOf": PropTypes.func.isRequired
322
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
323
+ "__@toStringTag": PropTypes.string.isRequired,
324
+ "description": PropTypes.string,
325
+ "toString": PropTypes.func.isRequired,
326
+ "valueOf": PropTypes.func.isRequired
327
+ }), PropTypes.string]),
328
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
329
+ "__@toStringTag": PropTypes.string.isRequired,
330
+ "description": PropTypes.string,
331
+ "toString": PropTypes.func.isRequired,
332
+ "valueOf": PropTypes.func.isRequired
333
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
334
+ "__@toStringTag": PropTypes.string.isRequired,
335
+ "description": PropTypes.string,
336
+ "toString": PropTypes.func.isRequired,
337
+ "valueOf": PropTypes.func.isRequired
338
+ }), PropTypes.string]),
339
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
340
+ "__@toStringTag": PropTypes.string.isRequired,
341
+ "description": PropTypes.string,
342
+ "toString": PropTypes.func.isRequired,
343
+ "valueOf": PropTypes.func.isRequired
344
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
345
+ "__@toStringTag": PropTypes.string.isRequired,
346
+ "description": PropTypes.string,
347
+ "toString": PropTypes.func.isRequired,
348
+ "valueOf": PropTypes.func.isRequired
349
+ }), PropTypes.string]),
350
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
351
+ "__@toStringTag": PropTypes.string.isRequired,
352
+ "description": PropTypes.string,
353
+ "toString": PropTypes.func.isRequired,
354
+ "valueOf": PropTypes.func.isRequired
355
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
356
+ "__@toStringTag": PropTypes.string.isRequired,
357
+ "description": PropTypes.string,
358
+ "toString": PropTypes.func.isRequired,
359
+ "valueOf": PropTypes.func.isRequired
360
+ }), PropTypes.string]),
361
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
362
+ "__@toStringTag": PropTypes.string.isRequired,
363
+ "description": PropTypes.string,
364
+ "toString": PropTypes.func.isRequired,
365
+ "valueOf": PropTypes.func.isRequired
366
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
367
+ "__@toStringTag": PropTypes.string.isRequired,
368
+ "description": PropTypes.string,
369
+ "toString": PropTypes.func.isRequired,
370
+ "valueOf": PropTypes.func.isRequired
371
+ }), PropTypes.string]),
372
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
373
+ "__@toStringTag": PropTypes.string.isRequired,
374
+ "description": PropTypes.string,
375
+ "toString": PropTypes.func.isRequired,
376
+ "valueOf": PropTypes.func.isRequired
377
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
378
+ "__@toStringTag": PropTypes.string.isRequired,
379
+ "description": PropTypes.string,
380
+ "toString": PropTypes.func.isRequired,
381
+ "valueOf": PropTypes.func.isRequired
382
+ }), PropTypes.string]),
383
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
384
+ "__@toStringTag": PropTypes.string.isRequired,
385
+ "description": PropTypes.string,
386
+ "toString": PropTypes.func.isRequired,
387
+ "valueOf": PropTypes.func.isRequired
388
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
389
+ "__@toStringTag": PropTypes.string.isRequired,
390
+ "description": PropTypes.string,
391
+ "toString": PropTypes.func.isRequired,
392
+ "valueOf": PropTypes.func.isRequired
393
+ }), PropTypes.string]),
394
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
395
+ "__@toStringTag": PropTypes.string.isRequired,
396
+ "description": PropTypes.string,
397
+ "toString": PropTypes.func.isRequired,
398
+ "valueOf": PropTypes.func.isRequired
399
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
400
+ "__@toStringTag": PropTypes.string.isRequired,
401
+ "description": PropTypes.string,
402
+ "toString": PropTypes.func.isRequired,
403
+ "valueOf": PropTypes.func.isRequired
404
+ }), PropTypes.string]),
405
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
406
+ "__@toStringTag": PropTypes.string.isRequired,
407
+ "description": PropTypes.string,
408
+ "toString": PropTypes.func.isRequired,
409
+ "valueOf": PropTypes.func.isRequired
410
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
411
+ "__@toStringTag": PropTypes.string.isRequired,
412
+ "description": PropTypes.string,
413
+ "toString": PropTypes.func.isRequired,
414
+ "valueOf": PropTypes.func.isRequired
415
+ }), PropTypes.string]),
416
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
417
+ "__@toStringTag": PropTypes.string.isRequired,
418
+ "description": PropTypes.string,
419
+ "toString": PropTypes.func.isRequired,
420
+ "valueOf": PropTypes.func.isRequired
421
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
422
+ "__@toStringTag": PropTypes.string.isRequired,
423
+ "description": PropTypes.string,
424
+ "toString": PropTypes.func.isRequired,
425
+ "valueOf": PropTypes.func.isRequired
426
+ }), PropTypes.string]),
427
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
428
+ "__@toStringTag": PropTypes.string.isRequired,
429
+ "description": PropTypes.string,
430
+ "toString": PropTypes.func.isRequired,
431
+ "valueOf": PropTypes.func.isRequired
432
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
433
+ "__@toStringTag": PropTypes.string.isRequired,
434
+ "description": PropTypes.string,
435
+ "toString": PropTypes.func.isRequired,
436
+ "valueOf": PropTypes.func.isRequired
437
+ }), PropTypes.string]),
438
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
439
+ "__@toStringTag": PropTypes.string.isRequired,
440
+ "description": PropTypes.string,
441
+ "toString": PropTypes.func.isRequired,
442
+ "valueOf": PropTypes.func.isRequired
443
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
444
+ "__@toStringTag": PropTypes.string.isRequired,
445
+ "description": PropTypes.string,
446
+ "toString": PropTypes.func.isRequired,
447
+ "valueOf": PropTypes.func.isRequired
448
+ }), PropTypes.string]),
449
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
450
+ "__@toStringTag": PropTypes.string.isRequired,
451
+ "description": PropTypes.string,
452
+ "toString": PropTypes.func.isRequired,
453
+ "valueOf": PropTypes.func.isRequired
454
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
455
+ "__@toStringTag": PropTypes.string.isRequired,
456
+ "description": PropTypes.string,
457
+ "toString": PropTypes.func.isRequired,
458
+ "valueOf": PropTypes.func.isRequired
459
+ }), PropTypes.string]),
460
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
461
+ "__@toStringTag": PropTypes.string.isRequired,
462
+ "description": PropTypes.string,
463
+ "toString": PropTypes.func.isRequired,
464
+ "valueOf": PropTypes.func.isRequired
465
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
466
+ "__@toStringTag": PropTypes.string.isRequired,
467
+ "description": PropTypes.string,
468
+ "toString": PropTypes.func.isRequired,
469
+ "valueOf": PropTypes.func.isRequired
470
+ }), PropTypes.string]),
471
+ "onChange": PropTypes.func.isRequired,
472
+ "onLinkAdded": PropTypes.func,
473
+ "previews": PropTypes.node,
474
+ "required": PropTypes.bool,
475
+ "rows": PropTypes.number,
476
+ "toolbarElements": PropTypes.node,
477
+ "value": PropTypes.object.isRequired,
478
+ "warning": PropTypes.string
479
+ };
480
+ }
479
481
  export { TextEditor };
480
482
  export const TextEditorState = EditorState;
481
483
  export const TextEditorContentState = ContentState;