carbon-react 110.2.2 → 110.3.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 (84) hide show
  1. package/esm/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +1 -1
  2. package/esm/__internal__/checkable-input/checkable-input.component.d.ts +50 -0
  3. package/esm/__internal__/checkable-input/checkable-input.component.js +360 -98
  4. package/esm/__internal__/checkable-input/checkable-input.style.d.ts +11 -2
  5. package/esm/__internal__/checkable-input/checkable-input.style.js +0 -7
  6. package/esm/__internal__/checkable-input/hidden-checkable-input.component.d.ts +31 -0
  7. package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +301 -45
  8. package/esm/__internal__/checkable-input/hidden-checkable-input.style.d.ts +1 -1
  9. package/esm/__internal__/checkable-input/index.d.ts +2 -5
  10. package/esm/__internal__/input/input-presentation.style.d.ts +1 -1
  11. package/esm/__internal__/input/input.style.d.ts +1 -1
  12. package/esm/__internal__/sticky-footer/index.d.ts +1 -0
  13. package/esm/__internal__/sticky-footer/sticky-footer.component.d.ts +15 -0
  14. package/esm/__internal__/sticky-footer/sticky-footer.style.d.ts +2 -0
  15. package/esm/__spec_helper__/mock-resize-observer.d.ts +1 -1
  16. package/esm/__spec_helper__/mock-resize-observer.js +2 -2
  17. package/esm/components/definition-list/dd.component.d.ts +4 -1
  18. package/esm/components/definition-list/dd.component.js +1 -0
  19. package/esm/components/definition-list/dl.component.d.ts +4 -1
  20. package/esm/components/definition-list/dl.component.js +1 -0
  21. package/esm/components/definition-list/dt.component.d.ts +4 -1
  22. package/esm/components/definition-list/dt.component.js +1 -0
  23. package/esm/components/drawer/drawer.component.d.ts +37 -0
  24. package/esm/components/drawer/drawer.component.js +43 -54
  25. package/esm/components/drawer/drawer.style.d.ts +27 -0
  26. package/esm/components/drawer/drawer.style.js +2 -2
  27. package/esm/components/drawer/index.d.ts +2 -1
  28. package/esm/components/drawer/index.js +1 -2
  29. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +1 -0
  30. package/esm/components/menu/__internal__/submenu/submenu.component.js +22 -4
  31. package/esm/components/menu/menu-item/menu-item.component.js +6 -1
  32. package/esm/components/menu/menu-item/menu-item.d.ts +4 -0
  33. package/esm/components/menu/menu-item/menu-item.style.js +158 -149
  34. package/esm/components/menu/scrollable-block/scrollable-block.component.js +21 -5
  35. package/esm/components/menu/scrollable-block/scrollable-block.d.ts +6 -0
  36. package/esm/components/menu/scrollable-block/scrollable-block.style.js +1 -1
  37. package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +6 -0
  38. package/esm/components/tabs/tab/tab.style.d.ts +2 -0
  39. package/esm/components/tabs/tabs.style.d.ts +2 -0
  40. package/lib/__internal__/checkable-input/checkable-input-svg-wrapper.style.d.ts +1 -1
  41. package/lib/__internal__/checkable-input/checkable-input.component.d.ts +50 -0
  42. package/lib/__internal__/checkable-input/checkable-input.component.js +360 -98
  43. package/lib/__internal__/checkable-input/checkable-input.style.d.ts +11 -2
  44. package/lib/__internal__/checkable-input/checkable-input.style.js +1 -9
  45. package/lib/__internal__/checkable-input/hidden-checkable-input.component.d.ts +31 -0
  46. package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +301 -45
  47. package/lib/__internal__/checkable-input/hidden-checkable-input.style.d.ts +1 -1
  48. package/lib/__internal__/checkable-input/index.d.ts +2 -5
  49. package/lib/__internal__/input/input-presentation.style.d.ts +1 -1
  50. package/lib/__internal__/input/input.style.d.ts +1 -1
  51. package/lib/__internal__/sticky-footer/index.d.ts +1 -0
  52. package/lib/__internal__/sticky-footer/sticky-footer.component.d.ts +15 -0
  53. package/lib/__internal__/sticky-footer/sticky-footer.style.d.ts +2 -0
  54. package/lib/__spec_helper__/mock-resize-observer.d.ts +1 -1
  55. package/lib/__spec_helper__/mock-resize-observer.js +2 -2
  56. package/lib/components/definition-list/dd.component.d.ts +4 -1
  57. package/lib/components/definition-list/dd.component.js +1 -0
  58. package/lib/components/definition-list/dl.component.d.ts +4 -1
  59. package/lib/components/definition-list/dl.component.js +1 -0
  60. package/lib/components/definition-list/dt.component.d.ts +4 -1
  61. package/lib/components/definition-list/dt.component.js +1 -0
  62. package/lib/components/drawer/drawer.component.d.ts +37 -0
  63. package/lib/components/drawer/drawer.component.js +43 -55
  64. package/lib/components/drawer/drawer.style.d.ts +27 -0
  65. package/lib/components/drawer/drawer.style.js +3 -3
  66. package/lib/components/drawer/index.d.ts +2 -1
  67. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +1 -0
  68. package/lib/components/menu/__internal__/submenu/submenu.component.js +23 -4
  69. package/lib/components/menu/menu-item/menu-item.component.js +6 -1
  70. package/lib/components/menu/menu-item/menu-item.d.ts +4 -0
  71. package/lib/components/menu/menu-item/menu-item.style.js +158 -149
  72. package/lib/components/menu/scrollable-block/scrollable-block.component.js +22 -5
  73. package/lib/components/menu/scrollable-block/scrollable-block.d.ts +6 -0
  74. package/lib/components/menu/scrollable-block/scrollable-block.style.js +1 -1
  75. package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.d.ts +6 -0
  76. package/lib/components/tabs/tab/tab.style.d.ts +2 -0
  77. package/lib/components/tabs/tabs.style.d.ts +2 -0
  78. package/package.json +1 -1
  79. package/esm/__internal__/checkable-input/checkable-input.d.ts +0 -55
  80. package/esm/__internal__/checkable-input/hidden-checkable-input.d.ts +0 -42
  81. package/esm/components/drawer/drawer.d.ts +0 -44
  82. package/lib/__internal__/checkable-input/checkable-input.d.ts +0 -55
  83. package/lib/__internal__/checkable-input/hidden-checkable-input.d.ts +0 -42
  84. package/lib/components/drawer/drawer.d.ts +0 -44
@@ -32,26 +32,26 @@ const HiddenCheckableInput = ({
32
32
 
33
33
  const handleFocus = ev => {
34
34
  if (props.onFocus) props.onFocus(ev);
35
- if (onFocus) onFocus(ev);
36
- if (onFocusGroup) onFocusGroup(ev);
35
+ if (onFocus) onFocus();
36
+ if (onFocusGroup) onFocusGroup();
37
37
  };
38
38
 
39
39
  const handleBlur = ev => {
40
40
  if (props.onBlur) props.onBlur(ev);
41
- if (onBlur) onBlur(ev);
42
- if (onBlurGroup) onBlurGroup(ev);
41
+ if (onBlur) onBlur();
42
+ if (onBlurGroup) onBlurGroup();
43
43
  };
44
44
 
45
45
  const handleMouseEnter = ev => {
46
46
  if (props.onMouseEnter) props.onMouseEnter(ev);
47
- if (onMouseEnter) onMouseEnter(ev);
48
- if (onMouseEnterGroup) onMouseEnterGroup(ev);
47
+ if (onMouseEnter) onMouseEnter();
48
+ if (onMouseEnterGroup) onMouseEnterGroup();
49
49
  };
50
50
 
51
51
  const handleMouseLeave = ev => {
52
52
  if (props.onMouseLeave) props.onMouseLeave(ev);
53
- if (onMouseLeave) onMouseLeave(ev);
54
- if (onMouseLeaveGroup) onMouseLeaveGroup(ev);
53
+ if (onMouseLeave) onMouseLeave();
54
+ if (onMouseLeaveGroup) onMouseLeaveGroup();
55
55
  };
56
56
 
57
57
  return /*#__PURE__*/React.createElement(HiddenCheckableInputStyle, _extends({
@@ -75,42 +75,298 @@ const HiddenCheckableInput = ({
75
75
  };
76
76
 
77
77
  HiddenCheckableInput.propTypes = {
78
- /** Allows component to be focused on page load */
79
- autoFocus: PropTypes.bool,
80
-
81
- /** Checked state of the input */
82
- checked: PropTypes.bool,
83
-
84
- /** Input name */
85
- name: PropTypes.string,
86
-
87
- /** OnChange event handler */
88
- onChange: PropTypes.func,
89
-
90
- /** OnFocus event handler */
91
- onFocus: PropTypes.func,
92
-
93
- /** Blur event handler */
94
- onBlur: PropTypes.func,
95
-
96
- /** OnMouseLeave event handler */
97
- onMouseLeave: PropTypes.func,
98
-
99
- /** OnMouseEnter event handler */
100
- onMouseEnter: PropTypes.func,
101
-
102
- /** HTML type attribute of the input */
103
- type: PropTypes.string.isRequired,
104
-
105
- /** Role attribute of the input */
106
- role: PropTypes.string,
107
-
108
- /** Value of the input */
109
- value: PropTypes.string,
110
-
111
- /** A callback to retrieve the input reference */
112
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
113
- current: PropTypes.instanceOf(Element)
114
- })])
78
+ "about": PropTypes.string,
79
+ "accept": PropTypes.string,
80
+ "accessKey": PropTypes.string,
81
+ "alt": PropTypes.string,
82
+ "aria-activedescendant": PropTypes.string,
83
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
84
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
85
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
86
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
87
+ "aria-colcount": PropTypes.number,
88
+ "aria-colindex": PropTypes.number,
89
+ "aria-colspan": PropTypes.number,
90
+ "aria-controls": PropTypes.string,
91
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
92
+ "aria-describedby": PropTypes.string,
93
+ "aria-details": PropTypes.string,
94
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
95
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
96
+ "aria-errormessage": PropTypes.string,
97
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
98
+ "aria-flowto": PropTypes.string,
99
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
100
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
101
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
102
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
103
+ "aria-keyshortcuts": PropTypes.string,
104
+ "aria-label": PropTypes.string,
105
+ "aria-labelledby": PropTypes.string,
106
+ "aria-level": PropTypes.number,
107
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
108
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
109
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
110
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
111
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
112
+ "aria-owns": PropTypes.string,
113
+ "aria-placeholder": PropTypes.string,
114
+ "aria-posinset": PropTypes.number,
115
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
116
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
117
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
118
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
119
+ "aria-roledescription": PropTypes.string,
120
+ "aria-rowcount": PropTypes.number,
121
+ "aria-rowindex": PropTypes.number,
122
+ "aria-rowspan": PropTypes.number,
123
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
124
+ "aria-setsize": PropTypes.number,
125
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
126
+ "aria-valuemax": PropTypes.number,
127
+ "aria-valuemin": PropTypes.number,
128
+ "aria-valuenow": PropTypes.number,
129
+ "aria-valuetext": PropTypes.string,
130
+ "autoCapitalize": PropTypes.string,
131
+ "autoComplete": PropTypes.string,
132
+ "autoCorrect": PropTypes.string,
133
+ "autoFocus": PropTypes.bool,
134
+ "autoSave": PropTypes.string,
135
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
136
+ "checked": PropTypes.bool,
137
+ "children": PropTypes.node,
138
+ "className": PropTypes.string,
139
+ "color": PropTypes.string,
140
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
141
+ "contextMenu": PropTypes.string,
142
+ "crossOrigin": PropTypes.string,
143
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
144
+ "__emotion_styles": PropTypes.any.isRequired
145
+ }), PropTypes.string, PropTypes.bool]),
146
+ "dangerouslySetInnerHTML": PropTypes.shape({
147
+ "__html": PropTypes.string.isRequired
148
+ }),
149
+ "datatype": PropTypes.string,
150
+ "defaultChecked": PropTypes.bool,
151
+ "defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
152
+ "dir": PropTypes.string,
153
+ "disabled": PropTypes.bool,
154
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
155
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
156
+ "form": PropTypes.string,
157
+ "formAction": PropTypes.string,
158
+ "formEncType": PropTypes.string,
159
+ "formMethod": PropTypes.string,
160
+ "formNoValidate": PropTypes.bool,
161
+ "formTarget": PropTypes.string,
162
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
163
+ "hidden": PropTypes.bool,
164
+ "id": PropTypes.string,
165
+ "inlist": PropTypes.any,
166
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
167
+ "inputRef": PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
168
+ "current": PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.object]).isRequired
169
+ })]),
170
+ "is": PropTypes.string,
171
+ "itemID": PropTypes.string,
172
+ "itemProp": PropTypes.string,
173
+ "itemRef": PropTypes.string,
174
+ "itemScope": PropTypes.bool,
175
+ "itemType": PropTypes.string,
176
+ "lang": PropTypes.string,
177
+ "list": PropTypes.string,
178
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
179
+ "maxLength": PropTypes.number,
180
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
181
+ "minLength": PropTypes.number,
182
+ "multiple": PropTypes.bool,
183
+ "name": PropTypes.string,
184
+ "onAbort": PropTypes.func,
185
+ "onAbortCapture": PropTypes.func,
186
+ "onAnimationEnd": PropTypes.func,
187
+ "onAnimationEndCapture": PropTypes.func,
188
+ "onAnimationIteration": PropTypes.func,
189
+ "onAnimationIterationCapture": PropTypes.func,
190
+ "onAnimationStart": PropTypes.func,
191
+ "onAnimationStartCapture": PropTypes.func,
192
+ "onAuxClick": PropTypes.func,
193
+ "onAuxClickCapture": PropTypes.func,
194
+ "onBeforeInput": PropTypes.func,
195
+ "onBeforeInputCapture": PropTypes.func,
196
+ "onBlur": PropTypes.func,
197
+ "onBlurCapture": PropTypes.func,
198
+ "onCanPlay": PropTypes.func,
199
+ "onCanPlayCapture": PropTypes.func,
200
+ "onCanPlayThrough": PropTypes.func,
201
+ "onCanPlayThroughCapture": PropTypes.func,
202
+ "onChange": PropTypes.func,
203
+ "onChangeCapture": PropTypes.func,
204
+ "onClick": PropTypes.func,
205
+ "onClickCapture": PropTypes.func,
206
+ "onCompositionEnd": PropTypes.func,
207
+ "onCompositionEndCapture": PropTypes.func,
208
+ "onCompositionStart": PropTypes.func,
209
+ "onCompositionStartCapture": PropTypes.func,
210
+ "onCompositionUpdate": PropTypes.func,
211
+ "onCompositionUpdateCapture": PropTypes.func,
212
+ "onContextMenu": PropTypes.func,
213
+ "onContextMenuCapture": PropTypes.func,
214
+ "onCopy": PropTypes.func,
215
+ "onCopyCapture": PropTypes.func,
216
+ "onCut": PropTypes.func,
217
+ "onCutCapture": PropTypes.func,
218
+ "onDoubleClick": PropTypes.func,
219
+ "onDoubleClickCapture": PropTypes.func,
220
+ "onDrag": PropTypes.func,
221
+ "onDragCapture": PropTypes.func,
222
+ "onDragEnd": PropTypes.func,
223
+ "onDragEndCapture": PropTypes.func,
224
+ "onDragEnter": PropTypes.func,
225
+ "onDragEnterCapture": PropTypes.func,
226
+ "onDragExit": PropTypes.func,
227
+ "onDragExitCapture": PropTypes.func,
228
+ "onDragLeave": PropTypes.func,
229
+ "onDragLeaveCapture": PropTypes.func,
230
+ "onDragOver": PropTypes.func,
231
+ "onDragOverCapture": PropTypes.func,
232
+ "onDragStart": PropTypes.func,
233
+ "onDragStartCapture": PropTypes.func,
234
+ "onDrop": PropTypes.func,
235
+ "onDropCapture": PropTypes.func,
236
+ "onDurationChange": PropTypes.func,
237
+ "onDurationChangeCapture": PropTypes.func,
238
+ "onEmptied": PropTypes.func,
239
+ "onEmptiedCapture": PropTypes.func,
240
+ "onEncrypted": PropTypes.func,
241
+ "onEncryptedCapture": PropTypes.func,
242
+ "onEnded": PropTypes.func,
243
+ "onEndedCapture": PropTypes.func,
244
+ "onError": PropTypes.func,
245
+ "onErrorCapture": PropTypes.func,
246
+ "onFocus": PropTypes.func,
247
+ "onFocusCapture": PropTypes.func,
248
+ "onGotPointerCapture": PropTypes.func,
249
+ "onGotPointerCaptureCapture": PropTypes.func,
250
+ "onInput": PropTypes.func,
251
+ "onInputCapture": PropTypes.func,
252
+ "onInvalid": PropTypes.func,
253
+ "onInvalidCapture": PropTypes.func,
254
+ "onKeyDown": PropTypes.func,
255
+ "onKeyDownCapture": PropTypes.func,
256
+ "onKeyPress": PropTypes.func,
257
+ "onKeyPressCapture": PropTypes.func,
258
+ "onKeyUp": PropTypes.func,
259
+ "onKeyUpCapture": PropTypes.func,
260
+ "onLoad": PropTypes.func,
261
+ "onLoadCapture": PropTypes.func,
262
+ "onLoadedData": PropTypes.func,
263
+ "onLoadedDataCapture": PropTypes.func,
264
+ "onLoadedMetadata": PropTypes.func,
265
+ "onLoadedMetadataCapture": PropTypes.func,
266
+ "onLoadStart": PropTypes.func,
267
+ "onLoadStartCapture": PropTypes.func,
268
+ "onLostPointerCapture": PropTypes.func,
269
+ "onLostPointerCaptureCapture": PropTypes.func,
270
+ "onMouseDown": PropTypes.func,
271
+ "onMouseDownCapture": PropTypes.func,
272
+ "onMouseEnter": PropTypes.func,
273
+ "onMouseLeave": PropTypes.func,
274
+ "onMouseMove": PropTypes.func,
275
+ "onMouseMoveCapture": PropTypes.func,
276
+ "onMouseOut": PropTypes.func,
277
+ "onMouseOutCapture": PropTypes.func,
278
+ "onMouseOver": PropTypes.func,
279
+ "onMouseOverCapture": PropTypes.func,
280
+ "onMouseUp": PropTypes.func,
281
+ "onMouseUpCapture": PropTypes.func,
282
+ "onPaste": PropTypes.func,
283
+ "onPasteCapture": PropTypes.func,
284
+ "onPause": PropTypes.func,
285
+ "onPauseCapture": PropTypes.func,
286
+ "onPlay": PropTypes.func,
287
+ "onPlayCapture": PropTypes.func,
288
+ "onPlaying": PropTypes.func,
289
+ "onPlayingCapture": PropTypes.func,
290
+ "onPointerCancel": PropTypes.func,
291
+ "onPointerCancelCapture": PropTypes.func,
292
+ "onPointerDown": PropTypes.func,
293
+ "onPointerDownCapture": PropTypes.func,
294
+ "onPointerEnter": PropTypes.func,
295
+ "onPointerEnterCapture": PropTypes.func,
296
+ "onPointerLeave": PropTypes.func,
297
+ "onPointerLeaveCapture": PropTypes.func,
298
+ "onPointerMove": PropTypes.func,
299
+ "onPointerMoveCapture": PropTypes.func,
300
+ "onPointerOut": PropTypes.func,
301
+ "onPointerOutCapture": PropTypes.func,
302
+ "onPointerOver": PropTypes.func,
303
+ "onPointerOverCapture": PropTypes.func,
304
+ "onPointerUp": PropTypes.func,
305
+ "onPointerUpCapture": PropTypes.func,
306
+ "onProgress": PropTypes.func,
307
+ "onProgressCapture": PropTypes.func,
308
+ "onRateChange": PropTypes.func,
309
+ "onRateChangeCapture": PropTypes.func,
310
+ "onReset": PropTypes.func,
311
+ "onResetCapture": PropTypes.func,
312
+ "onScroll": PropTypes.func,
313
+ "onScrollCapture": PropTypes.func,
314
+ "onSeeked": PropTypes.func,
315
+ "onSeekedCapture": PropTypes.func,
316
+ "onSeeking": PropTypes.func,
317
+ "onSeekingCapture": PropTypes.func,
318
+ "onSelect": PropTypes.func,
319
+ "onSelectCapture": PropTypes.func,
320
+ "onStalled": PropTypes.func,
321
+ "onStalledCapture": PropTypes.func,
322
+ "onSubmit": PropTypes.func,
323
+ "onSubmitCapture": PropTypes.func,
324
+ "onSuspend": PropTypes.func,
325
+ "onSuspendCapture": PropTypes.func,
326
+ "onTimeUpdate": PropTypes.func,
327
+ "onTimeUpdateCapture": PropTypes.func,
328
+ "onTouchCancel": PropTypes.func,
329
+ "onTouchCancelCapture": PropTypes.func,
330
+ "onTouchEnd": PropTypes.func,
331
+ "onTouchEndCapture": PropTypes.func,
332
+ "onTouchMove": PropTypes.func,
333
+ "onTouchMoveCapture": PropTypes.func,
334
+ "onTouchStart": PropTypes.func,
335
+ "onTouchStartCapture": PropTypes.func,
336
+ "onTransitionEnd": PropTypes.func,
337
+ "onTransitionEndCapture": PropTypes.func,
338
+ "onVolumeChange": PropTypes.func,
339
+ "onVolumeChangeCapture": PropTypes.func,
340
+ "onWaiting": PropTypes.func,
341
+ "onWaitingCapture": PropTypes.func,
342
+ "onWheel": PropTypes.func,
343
+ "onWheelCapture": PropTypes.func,
344
+ "pattern": PropTypes.string,
345
+ "placeholder": PropTypes.string,
346
+ "prefix": PropTypes.string,
347
+ "property": PropTypes.string,
348
+ "radioGroup": PropTypes.string,
349
+ "readOnly": PropTypes.bool,
350
+ "required": PropTypes.bool,
351
+ "resource": PropTypes.string,
352
+ "results": PropTypes.number,
353
+ "role": PropTypes.string,
354
+ "security": PropTypes.string,
355
+ "slot": PropTypes.string,
356
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
357
+ "src": PropTypes.string,
358
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
359
+ "style": PropTypes.object,
360
+ "suppressContentEditableWarning": PropTypes.bool,
361
+ "suppressHydrationWarning": PropTypes.bool,
362
+ "tabIndex": PropTypes.number,
363
+ "title": PropTypes.string,
364
+ "translate": PropTypes.oneOf(["no", "yes"]),
365
+ "type": PropTypes.string.isRequired,
366
+ "typeof": PropTypes.string,
367
+ "unselectable": PropTypes.oneOf(["off", "on"]),
368
+ "value": PropTypes.string,
369
+ "vocab": PropTypes.string,
370
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
115
371
  };
116
372
  export default /*#__PURE__*/React.memo(HiddenCheckableInput);
@@ -1,2 +1,2 @@
1
- export default HiddenCheckableInputStyle;
2
1
  declare const HiddenCheckableInputStyle: import("styled-components").StyledComponent<"input", any, {}, never>;
2
+ export default HiddenCheckableInputStyle;
@@ -1,5 +1,2 @@
1
- export {
2
- default,
3
- CheckableInputProps,
4
- CommonCheckableInputProps,
5
- } from "./checkable-input";
1
+ export { default } from "./checkable-input.component";
2
+ export type { CheckableInputProps, CommonCheckableInputProps, } from "./checkable-input.component";
@@ -2,5 +2,5 @@ import { CommonInputPresentationProps } from "./input-presentation.component";
2
2
  import { InputContextProps } from "../input-behaviour";
3
3
  import { CarbonProviderProps } from "../../components/carbon-provider";
4
4
  export declare const StyledInputPresentationContainer: import("styled-components").StyledComponent<"div", any, Pick<CommonInputPresentationProps, "inputWidth">, never>;
5
- declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "size" | "readOnly" | "align"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
5
+ declare const InputPresentationStyle: import("styled-components").StyledComponent<"div", any, Pick<InputContextProps, "hasFocus"> & Pick<CommonInputPresentationProps, "disabled" | "error" | "info" | "warning" | "align" | "readOnly" | "size"> & Pick<CarbonProviderProps, "validationRedesignOptIn">, never>;
6
6
  export default InputPresentationStyle;
@@ -1,3 +1,3 @@
1
1
  import { CommonInputProps } from "./input.component";
2
- declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "readOnly" | "align">, never>;
2
+ declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly">, never>;
3
3
  export default StyledInput;
@@ -0,0 +1 @@
1
+ export { default } from "./sticky-footer.component";
@@ -0,0 +1,15 @@
1
+ export default StickyFooter;
2
+ declare function StickyFooter({ children, containerRef, disableSticky, ...rest }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ containerRef: any;
6
+ disableSticky: any;
7
+ }): JSX.Element;
8
+ declare namespace StickyFooter {
9
+ namespace propTypes {
10
+ const children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
11
+ const containerRef: PropTypes.Validator<any>;
12
+ const disableSticky: PropTypes.Requireable<boolean>;
13
+ }
14
+ }
15
+ import PropTypes from "prop-types";
@@ -0,0 +1,2 @@
1
+ export default StyledStickyFooter;
2
+ declare const StyledStickyFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +1,2 @@
1
+ declare const setupResizeObserverMock: () => void;
1
2
  export default setupResizeObserverMock;
2
- declare function setupResizeObserverMock(): void;
@@ -1,9 +1,9 @@
1
1
  const setupResizeObserverMock = () => {
2
- if (!global.window) {
2
+ if (!window) {
3
3
  return;
4
4
  }
5
5
 
6
- global.window.ResizeObserver = global.window.ResizeObserver || jest.fn().mockImplementation(() => ({
6
+ window.ResizeObserver = window.ResizeObserver || jest.fn().mockImplementation(() => ({
7
7
  disconnect: jest.fn(),
8
8
  observe: jest.fn(),
9
9
  unobserve: jest.fn()
@@ -4,5 +4,8 @@ export interface DdProps extends SpaceProps {
4
4
  /** Prop for what will render in the `<Dd></Dd>` tags */
5
5
  children: React.ReactNode;
6
6
  }
7
- declare const Dd: ({ children, ...rest }: DdProps) => JSX.Element;
7
+ declare const Dd: {
8
+ ({ children, ...rest }: DdProps): JSX.Element;
9
+ displayName: string;
10
+ };
8
11
  export default Dd;
@@ -327,4 +327,5 @@ Dd.propTypes = {
327
327
  "valueOf": PropTypes.func.isRequired
328
328
  }), PropTypes.string])
329
329
  };
330
+ Dd.displayName = "Dd";
330
331
  export default Dd;
@@ -5,5 +5,8 @@ export interface DlProps extends SpaceProps, StyledDlProps, StyledDtDivProps, St
5
5
  /** prop to render children. */
6
6
  children: React.ReactNode;
7
7
  }
8
- declare const Dl: ({ children, w, dtTextAlign, ddTextAlign, asSingleColumn, ...rest }: DlProps) => JSX.Element;
8
+ declare const Dl: {
9
+ ({ children, w, dtTextAlign, ddTextAlign, asSingleColumn, ...rest }: DlProps): JSX.Element;
10
+ displayName: string;
11
+ };
9
12
  export default Dl;
@@ -385,4 +385,5 @@ Dl.propTypes = {
385
385
  }), PropTypes.string]),
386
386
  "w": PropTypes.number
387
387
  };
388
+ Dl.displayName = "Dl";
388
389
  export default Dl;
@@ -4,5 +4,8 @@ export interface DtProps extends SpaceProps {
4
4
  /** Prop for what will render in the `<Dd></Dd>` tags */
5
5
  children: React.ReactNode;
6
6
  }
7
- declare const Dt: ({ children, ...rest }: DtProps) => JSX.Element;
7
+ declare const Dt: {
8
+ ({ children, ...rest }: DtProps): JSX.Element;
9
+ displayName: string;
10
+ };
8
11
  export default Dt;
@@ -334,4 +334,5 @@ Dt.propTypes = {
334
334
  "valueOf": PropTypes.func.isRequired
335
335
  }), PropTypes.string])
336
336
  };
337
+ Dt.displayName = "Dt";
337
338
  export default Dt;
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ export interface DrawerSidebarContextProps {
3
+ isInSidebar: boolean;
4
+ }
5
+ export interface DrawerProps {
6
+ /** Duration of a animation */
7
+ animationDuration?: string;
8
+ /** Specify an aria-label for the Drawer component */
9
+ "aria-label"?: string;
10
+ /** Sets color of sidebar's background */
11
+ backgroundColor?: string;
12
+ children: React.ReactNode;
13
+ /** Set the default state of expansion of the Drawer if component is meant to be used as uncontrolled */
14
+ defaultExpanded?: boolean;
15
+ /** Sets the expansion state of the Drawer if component is meant to be used as controlled */
16
+ expanded?: boolean;
17
+ expandedWidth?: string;
18
+ /** Sets custom height to Drawer component */
19
+ height?: string;
20
+ /** Callback fired when expansion state changes, onChange(event: object, isExpanded: boolean) */
21
+ onChange?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, isExpanded: boolean) => void;
22
+ sidebar?: React.ReactNode;
23
+ /** Enables expand/collapse button that controls drawer */
24
+ showControls?: boolean;
25
+ /** Sets the heading of the drawer */
26
+ title?: React.ReactNode;
27
+ /** Content to display inside of a footer */
28
+ footer?: React.ReactNode;
29
+ /** Makes the header of the drawer sticky. Title prop must also be set. */
30
+ stickyHeader?: boolean;
31
+ /** Makes the footer of the drawer sticky. Footer prop must also be set. */
32
+ stickyFooter?: boolean;
33
+ }
34
+ declare const DrawerSidebarContext: React.Context<{}>;
35
+ export declare const Drawer: ({ defaultExpanded, expanded, onChange, children, expandedWidth, sidebar, animationDuration, backgroundColor, title, footer, showControls, height, stickyHeader, stickyFooter, ...rest }: DrawerProps) => JSX.Element;
36
+ export { DrawerSidebarContext };
37
+ export default Drawer;