carbon-react 126.10.1 → 127.0.0

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 (135) 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/components/accordion/accordion.component.js +338 -336
  7. package/esm/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  8. package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  9. package/esm/components/anchor-navigation/anchor-navigation.component.js +6 -4
  10. package/esm/components/box/box.component.js +3785 -3783
  11. package/esm/components/breadcrumbs/breadcrumbs.component.js +316 -314
  12. package/esm/components/breadcrumbs/crumb/crumb.component.js +64 -62
  13. package/esm/components/button/button.component.js +688 -684
  14. package/esm/components/checkbox/checkbox.component.js +524 -522
  15. package/esm/components/date/date.component.js +722 -720
  16. package/esm/components/decimal/decimal.component.js +536 -534
  17. package/esm/components/dialog/dialog.component.js +56 -54
  18. package/esm/components/draggable/draggable-container.component.js +160 -158
  19. package/esm/components/draggable/draggable-item.component.js +162 -160
  20. package/esm/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  21. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  22. package/esm/components/file-input/file-input.component.js +191 -189
  23. package/esm/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  24. package/esm/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  25. package/esm/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  26. package/esm/components/grouped-character/grouped-character.component.js +538 -536
  27. package/esm/components/help/help.component.js +172 -170
  28. package/esm/components/hr/hr.component.js +159 -157
  29. package/esm/components/icon/icon.component.js +181 -179
  30. package/esm/components/icon-button/icon-button.component.js +321 -319
  31. package/esm/components/link/link.component.js +72 -70
  32. package/esm/components/menu/__internal__/submenu/submenu.component.js +120 -118
  33. package/esm/components/menu/menu-divider/menu-divider.component.js +8 -6
  34. package/esm/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  35. package/esm/components/message/message.component.js +168 -166
  36. package/esm/components/navigation-bar/navigation-bar.component.js +1279 -1277
  37. package/esm/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  38. package/esm/components/number/number.component.js +536 -534
  39. package/esm/components/pod/pod.component.js +178 -176
  40. package/esm/components/radio-button/radio-button.component.js +523 -521
  41. package/esm/components/search/search.component.js +183 -181
  42. package/esm/components/select/filterable-select/filterable-select.component.js +554 -552
  43. package/esm/components/select/list-action-button/list-action-button.component.js +6 -4
  44. package/esm/components/select/multi-select/multi-select.component.js +551 -549
  45. package/esm/components/select/option/option.component.js +402 -400
  46. package/esm/components/select/option-group-header/option-group-header.component.js +11 -9
  47. package/esm/components/select/option-row/option-row.component.js +16 -14
  48. package/esm/components/select/select-list/select-list.component.js +34 -32
  49. package/esm/components/select/select-textbox/select-textbox.component.js +543 -541
  50. package/esm/components/select/simple-select/simple-select.component.js +550 -548
  51. package/esm/components/sidebar/sidebar.component.js +297 -295
  52. package/esm/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  53. package/esm/components/simple-color-picker/simple-color-picker.component.js +173 -171
  54. package/esm/components/step-flow/step-flow.component.js +170 -168
  55. package/esm/components/switch/switch.component.js +524 -522
  56. package/esm/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  57. package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  58. package/esm/components/text-editor/text-editor.component.js +171 -169
  59. package/esm/components/textarea/textarea.component.js +532 -530
  60. package/esm/components/textbox/textbox.component.js +536 -534
  61. package/esm/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  62. package/esm/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  63. package/esm/components/tile-select/tile-select.component.js +180 -178
  64. package/esm/components/time/time.component.js +202 -200
  65. package/esm/components/toast/toast.component.js +18 -16
  66. package/esm/components/tooltip/tooltip.component.js +23 -21
  67. package/esm/components/vertical-divider/vertical-divider.component.js +316 -314
  68. package/lib/__internal__/checkable-input/checkable-input.component.js +362 -360
  69. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +297 -295
  70. package/lib/__internal__/full-screen-heading/full-screen-heading.component.js +6 -4
  71. package/lib/__internal__/input/input-presentation.component.js +19 -17
  72. package/lib/__internal__/input/input.component.js +355 -353
  73. package/lib/components/accordion/accordion.component.js +338 -336
  74. package/lib/components/action-popover/action-popover-menu/action-popover-menu.component.js +22 -20
  75. package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.component.js +19 -17
  76. package/lib/components/anchor-navigation/anchor-navigation.component.js +6 -4
  77. package/lib/components/box/box.component.js +3785 -3783
  78. package/lib/components/breadcrumbs/breadcrumbs.component.js +316 -314
  79. package/lib/components/breadcrumbs/crumb/crumb.component.js +64 -62
  80. package/lib/components/button/button.component.js +688 -684
  81. package/lib/components/checkbox/checkbox.component.js +524 -522
  82. package/lib/components/date/date.component.js +722 -720
  83. package/lib/components/decimal/decimal.component.js +536 -534
  84. package/lib/components/dialog/dialog.component.js +56 -54
  85. package/lib/components/draggable/draggable-container.component.js +160 -158
  86. package/lib/components/draggable/draggable-item.component.js +162 -160
  87. package/lib/components/duelling-picklist/picklist-group/picklist-group.component.js +11 -9
  88. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +15 -13
  89. package/lib/components/file-input/file-input.component.js +191 -189
  90. package/lib/components/flat-table/flat-table-body/flat-table-body.component.js +5 -3
  91. package/lib/components/flat-table/flat-table-row/__internal__/flat-table-row-draggable.component.js +12 -10
  92. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +19 -17
  93. package/lib/components/grouped-character/grouped-character.component.js +538 -536
  94. package/lib/components/help/help.component.js +172 -170
  95. package/lib/components/hr/hr.component.js +159 -157
  96. package/lib/components/icon/icon.component.js +181 -179
  97. package/lib/components/icon-button/icon-button.component.js +321 -319
  98. package/lib/components/link/link.component.js +72 -70
  99. package/lib/components/menu/__internal__/submenu/submenu.component.js +120 -118
  100. package/lib/components/menu/menu-divider/menu-divider.component.js +8 -6
  101. package/lib/components/menu/menu-segment-title/menu-segment-title.component.js +11 -9
  102. package/lib/components/message/message.component.js +168 -166
  103. package/lib/components/navigation-bar/navigation-bar.component.js +1279 -1277
  104. package/lib/components/note/__internal__/status-icon/status-icon.component.js +6 -4
  105. package/lib/components/number/number.component.js +536 -534
  106. package/lib/components/pod/pod.component.js +178 -176
  107. package/lib/components/radio-button/radio-button.component.js +523 -521
  108. package/lib/components/search/search.component.js +183 -181
  109. package/lib/components/select/filterable-select/filterable-select.component.js +554 -552
  110. package/lib/components/select/list-action-button/list-action-button.component.js +6 -4
  111. package/lib/components/select/multi-select/multi-select.component.js +551 -549
  112. package/lib/components/select/option/option.component.js +402 -400
  113. package/lib/components/select/option-group-header/option-group-header.component.js +11 -9
  114. package/lib/components/select/option-row/option-row.component.js +16 -14
  115. package/lib/components/select/select-list/select-list.component.js +34 -32
  116. package/lib/components/select/select-textbox/select-textbox.component.js +543 -541
  117. package/lib/components/select/simple-select/simple-select.component.js +550 -548
  118. package/lib/components/sidebar/sidebar.component.js +297 -295
  119. package/lib/components/simple-color-picker/simple-color/simple-color.component.js +14 -12
  120. package/lib/components/simple-color-picker/simple-color-picker.component.js +173 -171
  121. package/lib/components/step-flow/step-flow.component.js +170 -168
  122. package/lib/components/switch/switch.component.js +524 -522
  123. package/lib/components/tabs/__internal__/tab-title/tab-title.component.js +32 -30
  124. package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.component.js +14 -12
  125. package/lib/components/text-editor/text-editor.component.js +171 -169
  126. package/lib/components/textarea/textarea.component.js +532 -530
  127. package/lib/components/textbox/textbox.component.js +536 -534
  128. package/lib/components/tile/flex-tile-cell/flex-tile-cell.component.js +3785 -3783
  129. package/lib/components/tile/flex-tile-container/flex-tile-container.component.js +6 -4
  130. package/lib/components/tile-select/tile-select.component.js +180 -178
  131. package/lib/components/time/time.component.js +202 -200
  132. package/lib/components/toast/toast.component.js +18 -16
  133. package/lib/components/tooltip/tooltip.component.js +23 -21
  134. package/lib/components/vertical-divider/vertical-divider.component.js +316 -314
  135. package/package.json +1 -1
@@ -184,64 +184,66 @@ const Dialog = /*#__PURE__*/forwardRef(({
184
184
  ref: innerContentRef
185
185
  }, contentPadding), children)))));
186
186
  });
187
- Dialog.propTypes = {
188
- "aria-describedby": PropTypes.string,
189
- "aria-label": PropTypes.string,
190
- "aria-labelledby": PropTypes.string,
191
- "ariaRole": PropTypes.string,
192
- "bespokeFocusTrap": PropTypes.func,
193
- "children": PropTypes.node,
194
- "className": PropTypes.string,
195
- "contentPadding": PropTypes.shape({
196
- "p": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8]),
197
- "px": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8]),
198
- "py": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8])
199
- }),
200
- "data-component": PropTypes.string,
201
- "data-element": PropTypes.string,
202
- "data-role": PropTypes.string,
203
- "disableAutoFocus": PropTypes.bool,
204
- "disableClose": PropTypes.bool,
205
- "disableEscKey": PropTypes.bool,
206
- "disableFocusTrap": PropTypes.bool,
207
- "enableBackgroundUI": PropTypes.bool,
208
- "focusableContainers": PropTypes.arrayOf(PropTypes.shape({
209
- "current": function (props, propName) {
210
- if (props[propName] == null) {
211
- return null;
212
- } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
213
- return new Error("Expected prop '" + propName + "' to be of type Element");
187
+ if (process.env.NODE_ENV !== "production") {
188
+ Dialog.propTypes = {
189
+ "aria-describedby": PropTypes.string,
190
+ "aria-label": PropTypes.string,
191
+ "aria-labelledby": PropTypes.string,
192
+ "ariaRole": PropTypes.string,
193
+ "bespokeFocusTrap": PropTypes.func,
194
+ "children": PropTypes.node,
195
+ "className": PropTypes.string,
196
+ "contentPadding": PropTypes.shape({
197
+ "p": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8]),
198
+ "px": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8]),
199
+ "py": PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8])
200
+ }),
201
+ "data-component": PropTypes.string,
202
+ "data-element": PropTypes.string,
203
+ "data-role": PropTypes.string,
204
+ "disableAutoFocus": PropTypes.bool,
205
+ "disableClose": PropTypes.bool,
206
+ "disableEscKey": PropTypes.bool,
207
+ "disableFocusTrap": PropTypes.bool,
208
+ "enableBackgroundUI": PropTypes.bool,
209
+ "focusableContainers": PropTypes.arrayOf(PropTypes.shape({
210
+ "current": function (props, propName) {
211
+ if (props[propName] == null) {
212
+ return null;
213
+ } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
214
+ return new Error("Expected prop '" + propName + "' to be of type Element");
215
+ }
214
216
  }
215
- }
216
- })),
217
- "focusableSelectors": PropTypes.string,
218
- "focusFirstElement": PropTypes.oneOfType([function (props, propName) {
219
- if (props[propName] == null) {
220
- return new Error("Prop '" + propName + "' is required but wasn't specified");
221
- } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
222
- return new Error("Expected prop '" + propName + "' to be of type Element");
223
- }
224
- }, PropTypes.shape({
225
- "current": function (props, propName) {
217
+ })),
218
+ "focusableSelectors": PropTypes.string,
219
+ "focusFirstElement": PropTypes.oneOfType([function (props, propName) {
226
220
  if (props[propName] == null) {
227
- return null;
221
+ return new Error("Prop '" + propName + "' is required but wasn't specified");
228
222
  } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
229
223
  return new Error("Expected prop '" + propName + "' to be of type Element");
230
224
  }
231
- }
232
- })]),
233
- "greyBackground": PropTypes.bool,
234
- "height": PropTypes.string,
235
- "help": PropTypes.string,
236
- "onCancel": PropTypes.func,
237
- "open": PropTypes.bool.isRequired,
238
- "role": PropTypes.string,
239
- "showCloseIcon": PropTypes.bool,
240
- "size": PropTypes.oneOf(["auto", "extra-large", "extra-small", "large", "medium-large", "medium-small", "medium", "small"]),
241
- "subtitle": PropTypes.string,
242
- "timeout": PropTypes.number,
243
- "title": PropTypes.node,
244
- "topModalOverride": PropTypes.bool
245
- };
225
+ }, PropTypes.shape({
226
+ "current": function (props, propName) {
227
+ if (props[propName] == null) {
228
+ return null;
229
+ } else if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
230
+ return new Error("Expected prop '" + propName + "' to be of type Element");
231
+ }
232
+ }
233
+ })]),
234
+ "greyBackground": PropTypes.bool,
235
+ "height": PropTypes.string,
236
+ "help": PropTypes.string,
237
+ "onCancel": PropTypes.func,
238
+ "open": PropTypes.bool.isRequired,
239
+ "role": PropTypes.string,
240
+ "showCloseIcon": PropTypes.bool,
241
+ "size": PropTypes.oneOf(["auto", "extra-large", "extra-small", "large", "medium-large", "medium-small", "medium", "small"]),
242
+ "subtitle": PropTypes.string,
243
+ "timeout": PropTypes.number,
244
+ "title": PropTypes.node,
245
+ "topModalOverride": PropTypes.bool
246
+ };
247
+ }
246
248
  export { Dialog };
247
249
  export default Dialog;
@@ -65,163 +65,165 @@ const DraggableContainer = ({
65
65
  }, [item.props.children]);
66
66
  })));
67
67
  };
68
- DraggableContainer.propTypes = {
69
- "children": PropTypes.node,
70
- "getOrder": PropTypes.func,
71
- "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
72
- "__@toStringTag": PropTypes.string.isRequired,
73
- "description": PropTypes.string,
74
- "toString": PropTypes.func.isRequired,
75
- "valueOf": PropTypes.func.isRequired
76
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
77
- "__@toStringTag": PropTypes.string.isRequired,
78
- "description": PropTypes.string,
79
- "toString": PropTypes.func.isRequired,
80
- "valueOf": PropTypes.func.isRequired
81
- }), PropTypes.string]),
82
- "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
83
- "__@toStringTag": PropTypes.string.isRequired,
84
- "description": PropTypes.string,
85
- "toString": PropTypes.func.isRequired,
86
- "valueOf": PropTypes.func.isRequired
87
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
88
- "__@toStringTag": PropTypes.string.isRequired,
89
- "description": PropTypes.string,
90
- "toString": PropTypes.func.isRequired,
91
- "valueOf": PropTypes.func.isRequired
92
- }), PropTypes.string]),
93
- "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
94
- "__@toStringTag": PropTypes.string.isRequired,
95
- "description": PropTypes.string,
96
- "toString": PropTypes.func.isRequired,
97
- "valueOf": PropTypes.func.isRequired
98
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
99
- "__@toStringTag": PropTypes.string.isRequired,
100
- "description": PropTypes.string,
101
- "toString": PropTypes.func.isRequired,
102
- "valueOf": PropTypes.func.isRequired
103
- }), PropTypes.string]),
104
- "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
105
- "__@toStringTag": PropTypes.string.isRequired,
106
- "description": PropTypes.string,
107
- "toString": PropTypes.func.isRequired,
108
- "valueOf": PropTypes.func.isRequired
109
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
110
- "__@toStringTag": PropTypes.string.isRequired,
111
- "description": PropTypes.string,
112
- "toString": PropTypes.func.isRequired,
113
- "valueOf": PropTypes.func.isRequired
114
- }), PropTypes.string]),
115
- "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
116
- "__@toStringTag": PropTypes.string.isRequired,
117
- "description": PropTypes.string,
118
- "toString": PropTypes.func.isRequired,
119
- "valueOf": PropTypes.func.isRequired
120
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
121
- "__@toStringTag": PropTypes.string.isRequired,
122
- "description": PropTypes.string,
123
- "toString": PropTypes.func.isRequired,
124
- "valueOf": PropTypes.func.isRequired
125
- }), PropTypes.string]),
126
- "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
127
- "__@toStringTag": PropTypes.string.isRequired,
128
- "description": PropTypes.string,
129
- "toString": PropTypes.func.isRequired,
130
- "valueOf": PropTypes.func.isRequired
131
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
132
- "__@toStringTag": PropTypes.string.isRequired,
133
- "description": PropTypes.string,
134
- "toString": PropTypes.func.isRequired,
135
- "valueOf": PropTypes.func.isRequired
136
- }), PropTypes.string]),
137
- "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
138
- "__@toStringTag": PropTypes.string.isRequired,
139
- "description": PropTypes.string,
140
- "toString": PropTypes.func.isRequired,
141
- "valueOf": PropTypes.func.isRequired
142
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
143
- "__@toStringTag": PropTypes.string.isRequired,
144
- "description": PropTypes.string,
145
- "toString": PropTypes.func.isRequired,
146
- "valueOf": PropTypes.func.isRequired
147
- }), PropTypes.string]),
148
- "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
149
- "__@toStringTag": PropTypes.string.isRequired,
150
- "description": PropTypes.string,
151
- "toString": PropTypes.func.isRequired,
152
- "valueOf": PropTypes.func.isRequired
153
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
154
- "__@toStringTag": PropTypes.string.isRequired,
155
- "description": PropTypes.string,
156
- "toString": PropTypes.func.isRequired,
157
- "valueOf": PropTypes.func.isRequired
158
- }), PropTypes.string]),
159
- "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
160
- "__@toStringTag": PropTypes.string.isRequired,
161
- "description": PropTypes.string,
162
- "toString": PropTypes.func.isRequired,
163
- "valueOf": PropTypes.func.isRequired
164
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
165
- "__@toStringTag": PropTypes.string.isRequired,
166
- "description": PropTypes.string,
167
- "toString": PropTypes.func.isRequired,
168
- "valueOf": PropTypes.func.isRequired
169
- }), PropTypes.string]),
170
- "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
171
- "__@toStringTag": PropTypes.string.isRequired,
172
- "description": PropTypes.string,
173
- "toString": PropTypes.func.isRequired,
174
- "valueOf": PropTypes.func.isRequired
175
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
176
- "__@toStringTag": PropTypes.string.isRequired,
177
- "description": PropTypes.string,
178
- "toString": PropTypes.func.isRequired,
179
- "valueOf": PropTypes.func.isRequired
180
- }), PropTypes.string]),
181
- "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
182
- "__@toStringTag": PropTypes.string.isRequired,
183
- "description": PropTypes.string,
184
- "toString": PropTypes.func.isRequired,
185
- "valueOf": PropTypes.func.isRequired
186
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
187
- "__@toStringTag": PropTypes.string.isRequired,
188
- "description": PropTypes.string,
189
- "toString": PropTypes.func.isRequired,
190
- "valueOf": PropTypes.func.isRequired
191
- }), PropTypes.string]),
192
- "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
193
- "__@toStringTag": PropTypes.string.isRequired,
194
- "description": PropTypes.string,
195
- "toString": PropTypes.func.isRequired,
196
- "valueOf": PropTypes.func.isRequired
197
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
198
- "__@toStringTag": PropTypes.string.isRequired,
199
- "description": PropTypes.string,
200
- "toString": PropTypes.func.isRequired,
201
- "valueOf": PropTypes.func.isRequired
202
- }), PropTypes.string]),
203
- "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
204
- "__@toStringTag": PropTypes.string.isRequired,
205
- "description": PropTypes.string,
206
- "toString": PropTypes.func.isRequired,
207
- "valueOf": PropTypes.func.isRequired
208
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
209
- "__@toStringTag": PropTypes.string.isRequired,
210
- "description": PropTypes.string,
211
- "toString": PropTypes.func.isRequired,
212
- "valueOf": PropTypes.func.isRequired
213
- }), PropTypes.string]),
214
- "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
215
- "__@toStringTag": PropTypes.string.isRequired,
216
- "description": PropTypes.string,
217
- "toString": PropTypes.func.isRequired,
218
- "valueOf": PropTypes.func.isRequired
219
- }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
220
- "__@toStringTag": PropTypes.string.isRequired,
221
- "description": PropTypes.string,
222
- "toString": PropTypes.func.isRequired,
223
- "valueOf": PropTypes.func.isRequired
224
- }), PropTypes.string])
225
- };
68
+ if (process.env.NODE_ENV !== "production") {
69
+ DraggableContainer.propTypes = {
70
+ "children": PropTypes.node,
71
+ "getOrder": PropTypes.func,
72
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
73
+ "__@toStringTag": PropTypes.string.isRequired,
74
+ "description": PropTypes.string,
75
+ "toString": PropTypes.func.isRequired,
76
+ "valueOf": PropTypes.func.isRequired
77
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
78
+ "__@toStringTag": PropTypes.string.isRequired,
79
+ "description": PropTypes.string,
80
+ "toString": PropTypes.func.isRequired,
81
+ "valueOf": PropTypes.func.isRequired
82
+ }), PropTypes.string]),
83
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
84
+ "__@toStringTag": PropTypes.string.isRequired,
85
+ "description": PropTypes.string,
86
+ "toString": PropTypes.func.isRequired,
87
+ "valueOf": PropTypes.func.isRequired
88
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
89
+ "__@toStringTag": PropTypes.string.isRequired,
90
+ "description": PropTypes.string,
91
+ "toString": PropTypes.func.isRequired,
92
+ "valueOf": PropTypes.func.isRequired
93
+ }), PropTypes.string]),
94
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
95
+ "__@toStringTag": PropTypes.string.isRequired,
96
+ "description": PropTypes.string,
97
+ "toString": PropTypes.func.isRequired,
98
+ "valueOf": PropTypes.func.isRequired
99
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
100
+ "__@toStringTag": PropTypes.string.isRequired,
101
+ "description": PropTypes.string,
102
+ "toString": PropTypes.func.isRequired,
103
+ "valueOf": PropTypes.func.isRequired
104
+ }), PropTypes.string]),
105
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
106
+ "__@toStringTag": PropTypes.string.isRequired,
107
+ "description": PropTypes.string,
108
+ "toString": PropTypes.func.isRequired,
109
+ "valueOf": PropTypes.func.isRequired
110
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
111
+ "__@toStringTag": PropTypes.string.isRequired,
112
+ "description": PropTypes.string,
113
+ "toString": PropTypes.func.isRequired,
114
+ "valueOf": PropTypes.func.isRequired
115
+ }), PropTypes.string]),
116
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
117
+ "__@toStringTag": PropTypes.string.isRequired,
118
+ "description": PropTypes.string,
119
+ "toString": PropTypes.func.isRequired,
120
+ "valueOf": PropTypes.func.isRequired
121
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
122
+ "__@toStringTag": PropTypes.string.isRequired,
123
+ "description": PropTypes.string,
124
+ "toString": PropTypes.func.isRequired,
125
+ "valueOf": PropTypes.func.isRequired
126
+ }), PropTypes.string]),
127
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
128
+ "__@toStringTag": PropTypes.string.isRequired,
129
+ "description": PropTypes.string,
130
+ "toString": PropTypes.func.isRequired,
131
+ "valueOf": PropTypes.func.isRequired
132
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
133
+ "__@toStringTag": PropTypes.string.isRequired,
134
+ "description": PropTypes.string,
135
+ "toString": PropTypes.func.isRequired,
136
+ "valueOf": PropTypes.func.isRequired
137
+ }), PropTypes.string]),
138
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
139
+ "__@toStringTag": PropTypes.string.isRequired,
140
+ "description": PropTypes.string,
141
+ "toString": PropTypes.func.isRequired,
142
+ "valueOf": PropTypes.func.isRequired
143
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
144
+ "__@toStringTag": PropTypes.string.isRequired,
145
+ "description": PropTypes.string,
146
+ "toString": PropTypes.func.isRequired,
147
+ "valueOf": PropTypes.func.isRequired
148
+ }), PropTypes.string]),
149
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
150
+ "__@toStringTag": PropTypes.string.isRequired,
151
+ "description": PropTypes.string,
152
+ "toString": PropTypes.func.isRequired,
153
+ "valueOf": PropTypes.func.isRequired
154
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
155
+ "__@toStringTag": PropTypes.string.isRequired,
156
+ "description": PropTypes.string,
157
+ "toString": PropTypes.func.isRequired,
158
+ "valueOf": PropTypes.func.isRequired
159
+ }), PropTypes.string]),
160
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
161
+ "__@toStringTag": PropTypes.string.isRequired,
162
+ "description": PropTypes.string,
163
+ "toString": PropTypes.func.isRequired,
164
+ "valueOf": PropTypes.func.isRequired
165
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
166
+ "__@toStringTag": PropTypes.string.isRequired,
167
+ "description": PropTypes.string,
168
+ "toString": PropTypes.func.isRequired,
169
+ "valueOf": PropTypes.func.isRequired
170
+ }), PropTypes.string]),
171
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
172
+ "__@toStringTag": PropTypes.string.isRequired,
173
+ "description": PropTypes.string,
174
+ "toString": PropTypes.func.isRequired,
175
+ "valueOf": PropTypes.func.isRequired
176
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
177
+ "__@toStringTag": PropTypes.string.isRequired,
178
+ "description": PropTypes.string,
179
+ "toString": PropTypes.func.isRequired,
180
+ "valueOf": PropTypes.func.isRequired
181
+ }), PropTypes.string]),
182
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
183
+ "__@toStringTag": PropTypes.string.isRequired,
184
+ "description": PropTypes.string,
185
+ "toString": PropTypes.func.isRequired,
186
+ "valueOf": PropTypes.func.isRequired
187
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
188
+ "__@toStringTag": PropTypes.string.isRequired,
189
+ "description": PropTypes.string,
190
+ "toString": PropTypes.func.isRequired,
191
+ "valueOf": PropTypes.func.isRequired
192
+ }), PropTypes.string]),
193
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
194
+ "__@toStringTag": PropTypes.string.isRequired,
195
+ "description": PropTypes.string,
196
+ "toString": PropTypes.func.isRequired,
197
+ "valueOf": PropTypes.func.isRequired
198
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
199
+ "__@toStringTag": PropTypes.string.isRequired,
200
+ "description": PropTypes.string,
201
+ "toString": PropTypes.func.isRequired,
202
+ "valueOf": PropTypes.func.isRequired
203
+ }), PropTypes.string]),
204
+ "mx": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
205
+ "__@toStringTag": PropTypes.string.isRequired,
206
+ "description": PropTypes.string,
207
+ "toString": PropTypes.func.isRequired,
208
+ "valueOf": PropTypes.func.isRequired
209
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
210
+ "__@toStringTag": PropTypes.string.isRequired,
211
+ "description": PropTypes.string,
212
+ "toString": PropTypes.func.isRequired,
213
+ "valueOf": PropTypes.func.isRequired
214
+ }), PropTypes.string]),
215
+ "my": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
216
+ "__@toStringTag": PropTypes.string.isRequired,
217
+ "description": PropTypes.string,
218
+ "toString": PropTypes.func.isRequired,
219
+ "valueOf": PropTypes.func.isRequired
220
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
221
+ "__@toStringTag": PropTypes.string.isRequired,
222
+ "description": PropTypes.string,
223
+ "toString": PropTypes.func.isRequired,
224
+ "valueOf": PropTypes.func.isRequired
225
+ }), PropTypes.string])
226
+ };
227
+ }
226
228
  DraggableContainer.displayName = "DraggableContainer";
227
229
  export default DraggableContainer;