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
@@ -218,211 +218,213 @@ const Time = /*#__PURE__*/React.forwardRef(({
218
218
  disabled: disabled || readOnly
219
219
  })))));
220
220
  });
221
- Time.propTypes = {
222
- "children": PropTypes.node,
223
- "data-element": PropTypes.string,
224
- "data-role": PropTypes.string,
225
- "disabled": PropTypes.bool,
226
- "hoursInputProps": PropTypes.shape({
227
- "aria-label": PropTypes.string,
221
+ if (process.env.NODE_ENV !== "production") {
222
+ Time.propTypes = {
223
+ "children": PropTypes.node,
228
224
  "data-element": PropTypes.string,
229
225
  "data-role": PropTypes.string,
230
- "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
231
- "id": PropTypes.string,
232
- "label": PropTypes.string,
233
- "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
234
- }),
235
- "inputHint": PropTypes.string,
236
- "isOptional": PropTypes.bool,
237
- "label": PropTypes.string,
238
- "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
239
- "__@toStringTag": PropTypes.string.isRequired,
240
- "description": PropTypes.string,
241
- "toString": PropTypes.func.isRequired,
242
- "valueOf": PropTypes.func.isRequired
243
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
244
- "__@toStringTag": PropTypes.string.isRequired,
245
- "description": PropTypes.string,
246
- "toString": PropTypes.func.isRequired,
247
- "valueOf": PropTypes.func.isRequired
248
- }), PropTypes.string]),
249
- "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
250
- "__@toStringTag": PropTypes.string.isRequired,
251
- "description": PropTypes.string,
252
- "toString": PropTypes.func.isRequired,
253
- "valueOf": PropTypes.func.isRequired
254
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
255
- "__@toStringTag": PropTypes.string.isRequired,
256
- "description": PropTypes.string,
257
- "toString": PropTypes.func.isRequired,
258
- "valueOf": PropTypes.func.isRequired
259
- }), PropTypes.string]),
260
- "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
261
- "__@toStringTag": PropTypes.string.isRequired,
262
- "description": PropTypes.string,
263
- "toString": PropTypes.func.isRequired,
264
- "valueOf": PropTypes.func.isRequired
265
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
266
- "__@toStringTag": PropTypes.string.isRequired,
267
- "description": PropTypes.string,
268
- "toString": PropTypes.func.isRequired,
269
- "valueOf": PropTypes.func.isRequired
270
- }), PropTypes.string]),
271
- "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
272
- "__@toStringTag": PropTypes.string.isRequired,
273
- "description": PropTypes.string,
274
- "toString": PropTypes.func.isRequired,
275
- "valueOf": PropTypes.func.isRequired
276
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
277
- "__@toStringTag": PropTypes.string.isRequired,
278
- "description": PropTypes.string,
279
- "toString": PropTypes.func.isRequired,
280
- "valueOf": PropTypes.func.isRequired
281
- }), PropTypes.string]),
282
- "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
283
- "__@toStringTag": PropTypes.string.isRequired,
284
- "description": PropTypes.string,
285
- "toString": PropTypes.func.isRequired,
286
- "valueOf": PropTypes.func.isRequired
287
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
288
- "__@toStringTag": PropTypes.string.isRequired,
289
- "description": PropTypes.string,
290
- "toString": PropTypes.func.isRequired,
291
- "valueOf": PropTypes.func.isRequired
292
- }), PropTypes.string]),
293
- "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
294
- "__@toStringTag": PropTypes.string.isRequired,
295
- "description": PropTypes.string,
296
- "toString": PropTypes.func.isRequired,
297
- "valueOf": PropTypes.func.isRequired
298
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
299
- "__@toStringTag": PropTypes.string.isRequired,
300
- "description": PropTypes.string,
301
- "toString": PropTypes.func.isRequired,
302
- "valueOf": PropTypes.func.isRequired
303
- }), PropTypes.string]),
304
- "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
305
- "__@toStringTag": PropTypes.string.isRequired,
306
- "description": PropTypes.string,
307
- "toString": PropTypes.func.isRequired,
308
- "valueOf": PropTypes.func.isRequired
309
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
310
- "__@toStringTag": PropTypes.string.isRequired,
311
- "description": PropTypes.string,
312
- "toString": PropTypes.func.isRequired,
313
- "valueOf": PropTypes.func.isRequired
314
- }), PropTypes.string]),
315
- "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
316
- "__@toStringTag": PropTypes.string.isRequired,
317
- "description": PropTypes.string,
318
- "toString": PropTypes.func.isRequired,
319
- "valueOf": PropTypes.func.isRequired
320
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
321
- "__@toStringTag": PropTypes.string.isRequired,
322
- "description": PropTypes.string,
323
- "toString": PropTypes.func.isRequired,
324
- "valueOf": PropTypes.func.isRequired
325
- }), PropTypes.string]),
326
- "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
327
- "__@toStringTag": PropTypes.string.isRequired,
328
- "description": PropTypes.string,
329
- "toString": PropTypes.func.isRequired,
330
- "valueOf": PropTypes.func.isRequired
331
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
332
- "__@toStringTag": PropTypes.string.isRequired,
333
- "description": PropTypes.string,
334
- "toString": PropTypes.func.isRequired,
335
- "valueOf": PropTypes.func.isRequired
336
- }), PropTypes.string]),
337
- "minutesInputProps": PropTypes.shape({
338
- "aria-label": PropTypes.string,
339
- "data-element": PropTypes.string,
340
- "data-role": PropTypes.string,
341
- "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
342
- "id": PropTypes.string,
343
- "label": PropTypes.string,
344
- "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
345
- }),
346
- "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
347
- "__@toStringTag": PropTypes.string.isRequired,
348
- "description": PropTypes.string,
349
- "toString": PropTypes.func.isRequired,
350
- "valueOf": PropTypes.func.isRequired
351
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
352
- "__@toStringTag": PropTypes.string.isRequired,
353
- "description": PropTypes.string,
354
- "toString": PropTypes.func.isRequired,
355
- "valueOf": PropTypes.func.isRequired
356
- }), PropTypes.string]),
357
- "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
358
- "__@toStringTag": PropTypes.string.isRequired,
359
- "description": PropTypes.string,
360
- "toString": PropTypes.func.isRequired,
361
- "valueOf": PropTypes.func.isRequired
362
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
363
- "__@toStringTag": PropTypes.string.isRequired,
364
- "description": PropTypes.string,
365
- "toString": PropTypes.func.isRequired,
366
- "valueOf": PropTypes.func.isRequired
367
- }), PropTypes.string]),
368
- "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
369
- "__@toStringTag": PropTypes.string.isRequired,
370
- "description": PropTypes.string,
371
- "toString": PropTypes.func.isRequired,
372
- "valueOf": PropTypes.func.isRequired
373
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
374
- "__@toStringTag": PropTypes.string.isRequired,
375
- "description": PropTypes.string,
376
- "toString": PropTypes.func.isRequired,
377
- "valueOf": PropTypes.func.isRequired
378
- }), PropTypes.string]),
379
- "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
380
- "__@toStringTag": PropTypes.string.isRequired,
381
- "description": PropTypes.string,
382
- "toString": PropTypes.func.isRequired,
383
- "valueOf": PropTypes.func.isRequired
384
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
385
- "__@toStringTag": PropTypes.string.isRequired,
386
- "description": PropTypes.string,
387
- "toString": PropTypes.func.isRequired,
388
- "valueOf": PropTypes.func.isRequired
389
- }), PropTypes.string]),
390
- "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
391
- "__@toStringTag": PropTypes.string.isRequired,
392
- "description": PropTypes.string,
393
- "toString": PropTypes.func.isRequired,
394
- "valueOf": PropTypes.func.isRequired
395
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
396
- "__@toStringTag": PropTypes.string.isRequired,
397
- "description": PropTypes.string,
398
- "toString": PropTypes.func.isRequired,
399
- "valueOf": PropTypes.func.isRequired
400
- }), PropTypes.string]),
401
- "name": PropTypes.string,
402
- "onBlur": PropTypes.func,
403
- "onChange": PropTypes.func.isRequired,
404
- "readOnly": PropTypes.bool,
405
- "required": PropTypes.bool,
406
- "size": PropTypes.oneOf(["large", "medium", "small"]),
407
- "toggleProps": PropTypes.shape({
408
- "amToggleProps": PropTypes.shape({
226
+ "disabled": PropTypes.bool,
227
+ "hoursInputProps": PropTypes.shape({
228
+ "aria-label": PropTypes.string,
409
229
  "data-element": PropTypes.string,
410
- "data-role": PropTypes.string
230
+ "data-role": PropTypes.string,
231
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
232
+ "id": PropTypes.string,
233
+ "label": PropTypes.string,
234
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
411
235
  }),
412
- "pmToggleProps": PropTypes.shape({
236
+ "inputHint": PropTypes.string,
237
+ "isOptional": PropTypes.bool,
238
+ "label": PropTypes.string,
239
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
240
+ "__@toStringTag": PropTypes.string.isRequired,
241
+ "description": PropTypes.string,
242
+ "toString": PropTypes.func.isRequired,
243
+ "valueOf": PropTypes.func.isRequired
244
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
245
+ "__@toStringTag": PropTypes.string.isRequired,
246
+ "description": PropTypes.string,
247
+ "toString": PropTypes.func.isRequired,
248
+ "valueOf": PropTypes.func.isRequired
249
+ }), PropTypes.string]),
250
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
251
+ "__@toStringTag": PropTypes.string.isRequired,
252
+ "description": PropTypes.string,
253
+ "toString": PropTypes.func.isRequired,
254
+ "valueOf": PropTypes.func.isRequired
255
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
256
+ "__@toStringTag": PropTypes.string.isRequired,
257
+ "description": PropTypes.string,
258
+ "toString": PropTypes.func.isRequired,
259
+ "valueOf": PropTypes.func.isRequired
260
+ }), PropTypes.string]),
261
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
262
+ "__@toStringTag": PropTypes.string.isRequired,
263
+ "description": PropTypes.string,
264
+ "toString": PropTypes.func.isRequired,
265
+ "valueOf": PropTypes.func.isRequired
266
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
267
+ "__@toStringTag": PropTypes.string.isRequired,
268
+ "description": PropTypes.string,
269
+ "toString": PropTypes.func.isRequired,
270
+ "valueOf": PropTypes.func.isRequired
271
+ }), PropTypes.string]),
272
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
273
+ "__@toStringTag": PropTypes.string.isRequired,
274
+ "description": PropTypes.string,
275
+ "toString": PropTypes.func.isRequired,
276
+ "valueOf": PropTypes.func.isRequired
277
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
278
+ "__@toStringTag": PropTypes.string.isRequired,
279
+ "description": PropTypes.string,
280
+ "toString": PropTypes.func.isRequired,
281
+ "valueOf": PropTypes.func.isRequired
282
+ }), PropTypes.string]),
283
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
284
+ "__@toStringTag": PropTypes.string.isRequired,
285
+ "description": PropTypes.string,
286
+ "toString": PropTypes.func.isRequired,
287
+ "valueOf": PropTypes.func.isRequired
288
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
289
+ "__@toStringTag": PropTypes.string.isRequired,
290
+ "description": PropTypes.string,
291
+ "toString": PropTypes.func.isRequired,
292
+ "valueOf": PropTypes.func.isRequired
293
+ }), PropTypes.string]),
294
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
295
+ "__@toStringTag": PropTypes.string.isRequired,
296
+ "description": PropTypes.string,
297
+ "toString": PropTypes.func.isRequired,
298
+ "valueOf": PropTypes.func.isRequired
299
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
300
+ "__@toStringTag": PropTypes.string.isRequired,
301
+ "description": PropTypes.string,
302
+ "toString": PropTypes.func.isRequired,
303
+ "valueOf": PropTypes.func.isRequired
304
+ }), PropTypes.string]),
305
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
306
+ "__@toStringTag": PropTypes.string.isRequired,
307
+ "description": PropTypes.string,
308
+ "toString": PropTypes.func.isRequired,
309
+ "valueOf": PropTypes.func.isRequired
310
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
311
+ "__@toStringTag": PropTypes.string.isRequired,
312
+ "description": PropTypes.string,
313
+ "toString": PropTypes.func.isRequired,
314
+ "valueOf": PropTypes.func.isRequired
315
+ }), PropTypes.string]),
316
+ "marginY": 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
+ "mb": 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
+ "minutesInputProps": PropTypes.shape({
339
+ "aria-label": PropTypes.string,
413
340
  "data-element": PropTypes.string,
414
- "data-role": PropTypes.string
341
+ "data-role": PropTypes.string,
342
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
343
+ "id": PropTypes.string,
344
+ "label": PropTypes.string,
345
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool])
415
346
  }),
416
- "wrapperProps": PropTypes.shape({
417
- "data-element": PropTypes.string,
418
- "data-role": PropTypes.string
419
- })
420
- }),
421
- "value": PropTypes.shape({
422
- "hours": PropTypes.string.isRequired,
423
- "minutes": PropTypes.string.isRequired,
424
- "period": PropTypes.oneOf(["AM", "PM"])
425
- }).isRequired
426
- };
347
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
348
+ "__@toStringTag": PropTypes.string.isRequired,
349
+ "description": PropTypes.string,
350
+ "toString": PropTypes.func.isRequired,
351
+ "valueOf": PropTypes.func.isRequired
352
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
353
+ "__@toStringTag": PropTypes.string.isRequired,
354
+ "description": PropTypes.string,
355
+ "toString": PropTypes.func.isRequired,
356
+ "valueOf": PropTypes.func.isRequired
357
+ }), PropTypes.string]),
358
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
359
+ "__@toStringTag": PropTypes.string.isRequired,
360
+ "description": PropTypes.string,
361
+ "toString": PropTypes.func.isRequired,
362
+ "valueOf": PropTypes.func.isRequired
363
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
364
+ "__@toStringTag": PropTypes.string.isRequired,
365
+ "description": PropTypes.string,
366
+ "toString": PropTypes.func.isRequired,
367
+ "valueOf": PropTypes.func.isRequired
368
+ }), PropTypes.string]),
369
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
370
+ "__@toStringTag": PropTypes.string.isRequired,
371
+ "description": PropTypes.string,
372
+ "toString": PropTypes.func.isRequired,
373
+ "valueOf": PropTypes.func.isRequired
374
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
375
+ "__@toStringTag": PropTypes.string.isRequired,
376
+ "description": PropTypes.string,
377
+ "toString": PropTypes.func.isRequired,
378
+ "valueOf": PropTypes.func.isRequired
379
+ }), PropTypes.string]),
380
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
381
+ "__@toStringTag": PropTypes.string.isRequired,
382
+ "description": PropTypes.string,
383
+ "toString": PropTypes.func.isRequired,
384
+ "valueOf": PropTypes.func.isRequired
385
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
386
+ "__@toStringTag": PropTypes.string.isRequired,
387
+ "description": PropTypes.string,
388
+ "toString": PropTypes.func.isRequired,
389
+ "valueOf": PropTypes.func.isRequired
390
+ }), PropTypes.string]),
391
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
392
+ "__@toStringTag": PropTypes.string.isRequired,
393
+ "description": PropTypes.string,
394
+ "toString": PropTypes.func.isRequired,
395
+ "valueOf": PropTypes.func.isRequired
396
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
397
+ "__@toStringTag": PropTypes.string.isRequired,
398
+ "description": PropTypes.string,
399
+ "toString": PropTypes.func.isRequired,
400
+ "valueOf": PropTypes.func.isRequired
401
+ }), PropTypes.string]),
402
+ "name": PropTypes.string,
403
+ "onBlur": PropTypes.func,
404
+ "onChange": PropTypes.func.isRequired,
405
+ "readOnly": PropTypes.bool,
406
+ "required": PropTypes.bool,
407
+ "size": PropTypes.oneOf(["large", "medium", "small"]),
408
+ "toggleProps": PropTypes.shape({
409
+ "amToggleProps": PropTypes.shape({
410
+ "data-element": PropTypes.string,
411
+ "data-role": PropTypes.string
412
+ }),
413
+ "pmToggleProps": PropTypes.shape({
414
+ "data-element": PropTypes.string,
415
+ "data-role": PropTypes.string
416
+ }),
417
+ "wrapperProps": PropTypes.shape({
418
+ "data-element": PropTypes.string,
419
+ "data-role": PropTypes.string
420
+ })
421
+ }),
422
+ "value": PropTypes.shape({
423
+ "hours": PropTypes.string.isRequired,
424
+ "minutes": PropTypes.string.isRequired,
425
+ "period": PropTypes.oneOf(["AM", "PM"])
426
+ }).isRequired
427
+ };
428
+ }
427
429
  Time.displayName = "Time";
428
430
  export default Time;
@@ -158,22 +158,24 @@ const Toast = /*#__PURE__*/React.forwardRef(({
158
158
  isNotice: isNotice
159
159
  }, /*#__PURE__*/React.createElement(TransitionGroup, null, renderToastContent())));
160
160
  });
161
- Toast.propTypes = {
162
- "align": PropTypes.oneOf(["center", "left", "right"]),
163
- "alignY": PropTypes.oneOf(["bottom", "center", "top"]),
164
- "children": PropTypes.node,
165
- "className": PropTypes.string,
166
- "data-component": PropTypes.string,
167
- "disableAutoFocus": PropTypes.bool,
168
- "id": PropTypes.string,
169
- "isCenter": PropTypes.bool,
170
- "maxWidth": PropTypes.string,
171
- "onDismiss": PropTypes.func,
172
- "open": PropTypes.bool,
173
- "targetPortalId": PropTypes.string,
174
- "timeout": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
175
- "variant": PropTypes.oneOf(["error", "info", "neutral", "notice", "notification", "success", "warning"])
176
- };
161
+ if (process.env.NODE_ENV !== "production") {
162
+ Toast.propTypes = {
163
+ "align": PropTypes.oneOf(["center", "left", "right"]),
164
+ "alignY": PropTypes.oneOf(["bottom", "center", "top"]),
165
+ "children": PropTypes.node,
166
+ "className": PropTypes.string,
167
+ "data-component": PropTypes.string,
168
+ "disableAutoFocus": PropTypes.bool,
169
+ "id": PropTypes.string,
170
+ "isCenter": PropTypes.bool,
171
+ "maxWidth": PropTypes.string,
172
+ "onDismiss": PropTypes.func,
173
+ "open": PropTypes.bool,
174
+ "targetPortalId": PropTypes.string,
175
+ "timeout": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
176
+ "variant": PropTypes.oneOf(["error", "info", "neutral", "notice", "notification", "success", "warning"])
177
+ };
178
+ }
177
179
  export { Toast };
178
180
  Toast.displayName = "Toast";
179
181
  export default Toast;
@@ -180,27 +180,29 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
180
180
  style: arrowStyle
181
181
  }), message)) : null);
182
182
  });
183
- Tooltip.propTypes = {
184
- "bgColor": PropTypes.string,
185
- "children": PropTypes.element.isRequired,
186
- "flipOverrides": PropTypes.arrayOf(PropTypes.oneOf(["bottom", "left", "right", "top"])),
187
- "fontColor": PropTypes.string,
188
- "id": PropTypes.string,
189
- "inputSize": PropTypes.oneOf(["large", "medium", "small"]),
190
- "isPartOfInput": PropTypes.bool,
191
- "isVisible": PropTypes.bool,
192
- "message": PropTypes.node,
193
- "position": PropTypes.oneOf(["bottom", "left", "right", "top"]),
194
- "size": PropTypes.oneOf(["large", "medium"]),
195
- "target": function (props, propName) {
196
- if (props[propName] == null) {
197
- return null;
198
- } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
199
- return new Error("Expected prop '" + propName + "' to be of type Element");
200
- }
201
- },
202
- "type": PropTypes.string
203
- };
183
+ if (process.env.NODE_ENV !== "production") {
184
+ Tooltip.propTypes = {
185
+ "bgColor": PropTypes.string,
186
+ "children": PropTypes.element.isRequired,
187
+ "flipOverrides": PropTypes.arrayOf(PropTypes.oneOf(["bottom", "left", "right", "top"])),
188
+ "fontColor": PropTypes.string,
189
+ "id": PropTypes.string,
190
+ "inputSize": PropTypes.oneOf(["large", "medium", "small"]),
191
+ "isPartOfInput": PropTypes.bool,
192
+ "isVisible": PropTypes.bool,
193
+ "message": PropTypes.node,
194
+ "position": PropTypes.oneOf(["bottom", "left", "right", "top"]),
195
+ "size": PropTypes.oneOf(["large", "medium"]),
196
+ "target": function (props, propName) {
197
+ if (props[propName] == null) {
198
+ return null;
199
+ } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
200
+ return new Error("Expected prop '" + propName + "' to be of type Element");
201
+ }
202
+ },
203
+ "type": PropTypes.string
204
+ };
205
+ }
204
206
  export { Tooltip };
205
207
  Tooltip.displayName = "Tooltip";
206
208
  export default Tooltip;