carbon-react 111.5.0 → 111.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/esm/__internal__/utils/helpers/tags/tags.d.ts +7 -7
  2. package/esm/components/alert/alert.component.js +3 -3
  3. package/esm/components/carbon-provider/carbon-provider.component.js +2 -1
  4. package/esm/components/carbon-provider/top-modal-context.d.ts +9 -0
  5. package/esm/components/carbon-provider/top-modal-context.js +36 -0
  6. package/esm/components/checkbox/checkbox-group.component.d.ts +29 -0
  7. package/esm/components/checkbox/checkbox-group.component.js +169 -47
  8. package/esm/components/checkbox/checkbox-group.style.d.ts +4 -0
  9. package/esm/components/checkbox/checkbox-group.style.js +46 -0
  10. package/esm/components/checkbox/checkbox-svg.component.d.ts +3 -0
  11. package/esm/components/checkbox/checkbox-svg.component.js +11 -12
  12. package/esm/components/checkbox/checkbox.component.d.ts +30 -0
  13. package/esm/components/checkbox/checkbox.component.js +519 -103
  14. package/esm/components/checkbox/checkbox.style.d.ts +13 -3
  15. package/esm/components/checkbox/checkbox.style.js +3 -61
  16. package/esm/components/checkbox/index.d.ts +4 -2
  17. package/esm/components/checkbox/index.js +2 -2
  18. package/esm/components/dialog/dialog.component.d.ts +4 -1
  19. package/esm/components/dialog/dialog.component.js +9 -5
  20. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +6 -2
  21. package/esm/components/dialog-full-screen/dialog-full-screen.d.ts +1 -1
  22. package/esm/components/modal/__internal__/modal-manager.d.ts +2 -0
  23. package/esm/components/modal/__internal__/modal-manager.js +16 -0
  24. package/esm/components/sidebar/sidebar.component.d.ts +8 -5
  25. package/esm/components/sidebar/sidebar.component.js +11 -6
  26. package/esm/components/textbox/textbox.component.js +1 -3
  27. package/lib/__internal__/utils/helpers/tags/tags.d.ts +7 -7
  28. package/lib/components/alert/alert.component.js +3 -3
  29. package/lib/components/carbon-provider/carbon-provider.component.js +3 -1
  30. package/lib/components/carbon-provider/top-modal-context.d.ts +9 -0
  31. package/lib/components/carbon-provider/top-modal-context.js +52 -0
  32. package/lib/components/checkbox/checkbox-group.component.d.ts +29 -0
  33. package/lib/components/checkbox/checkbox-group.component.js +171 -51
  34. package/lib/components/checkbox/checkbox-group.style.d.ts +4 -0
  35. package/lib/components/checkbox/checkbox-group.style.js +66 -0
  36. package/lib/components/checkbox/checkbox-svg.component.d.ts +3 -0
  37. package/lib/components/checkbox/checkbox-svg.component.js +12 -12
  38. package/lib/components/checkbox/checkbox.component.d.ts +30 -0
  39. package/lib/components/checkbox/checkbox.component.js +520 -106
  40. package/lib/components/checkbox/checkbox.style.d.ts +13 -3
  41. package/lib/components/checkbox/checkbox.style.js +4 -65
  42. package/lib/components/checkbox/index.d.ts +4 -2
  43. package/lib/components/checkbox/index.js +6 -6
  44. package/lib/components/dialog/dialog.component.d.ts +4 -1
  45. package/lib/components/dialog/dialog.component.js +9 -4
  46. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +6 -1
  47. package/lib/components/dialog-full-screen/dialog-full-screen.d.ts +1 -1
  48. package/lib/components/modal/__internal__/modal-manager.d.ts +2 -0
  49. package/lib/components/modal/__internal__/modal-manager.js +16 -0
  50. package/lib/components/sidebar/sidebar.component.d.ts +8 -5
  51. package/lib/components/sidebar/sidebar.component.js +10 -5
  52. package/lib/components/textbox/textbox.component.js +1 -3
  53. package/package.json +1 -1
  54. package/esm/components/checkbox/checkbox-group.d.ts +0 -28
  55. package/esm/components/checkbox/checkbox.d.ts +0 -24
  56. package/lib/components/checkbox/checkbox-group.d.ts +0 -28
  57. package/lib/components/checkbox/checkbox.d.ts +0 -24
@@ -2,7 +2,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useContext } from "react";
4
4
  import PropTypes from "prop-types";
5
- import styledSystemPropTypes from "@styled-system/prop-types";
6
5
  import CheckboxStyle from "./checkbox.style";
7
6
  import CheckableInput from "../../__internal__/checkable-input/checkable-input.component";
8
7
  import CheckboxSvg from "./checkbox-svg.component";
@@ -10,7 +9,6 @@ import useIsAboveBreakpoint from "../../hooks/__internal__/useIsAboveBreakpoint"
10
9
  import { filterStyledSystemMarginProps } from "../../style/utils";
11
10
  import { TooltipProvider } from "../../__internal__/tooltip-provider";
12
11
  import { CheckboxGroupContext } from "./checkbox-group.component";
13
- const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
14
12
 
15
13
  const Checkbox = ({
16
14
  id,
@@ -34,13 +32,13 @@ const Checkbox = ({
34
32
  warning,
35
33
  info,
36
34
  fieldHelpInline,
37
- reverse,
35
+ reverse = false,
38
36
  checked,
39
37
  disabled,
40
38
  inputWidth,
41
39
  size,
42
40
  tooltipPosition,
43
- "data-component": dataComponent,
41
+ "data-component": dataComponent = "checkbox",
44
42
  "data-element": dataElement,
45
43
  "data-role": dataRole,
46
44
  helpAriaLabel,
@@ -102,107 +100,525 @@ const Checkbox = ({
102
100
  };
103
101
 
104
102
  Checkbox.propTypes = {
105
- /** Filtered styled system margin props */
106
- ...marginPropTypes,
107
-
108
- /** Identifier used for testing purposes, applied to the root element of the component. */
103
+ "about": PropTypes.string,
104
+ "accept": PropTypes.string,
105
+ "accessKey": PropTypes.string,
106
+ "adaptiveSpacingBreakpoint": PropTypes.number,
107
+ "alt": PropTypes.string,
108
+ "aria-activedescendant": PropTypes.string,
109
+ "aria-atomic": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
110
+ "aria-autocomplete": PropTypes.oneOf(["both", "inline", "list", "none"]),
111
+ "aria-busy": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
112
+ "aria-checked": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
113
+ "aria-colcount": PropTypes.number,
114
+ "aria-colindex": PropTypes.number,
115
+ "aria-colspan": PropTypes.number,
116
+ "aria-controls": PropTypes.string,
117
+ "aria-current": PropTypes.oneOfType([PropTypes.oneOf(["date", "false", "location", "page", "step", "time", "true"]), PropTypes.bool]),
118
+ "aria-describedby": PropTypes.string,
119
+ "aria-details": PropTypes.string,
120
+ "aria-disabled": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
121
+ "aria-dropeffect": PropTypes.oneOf(["copy", "execute", "link", "move", "none", "popup"]),
122
+ "aria-errormessage": PropTypes.string,
123
+ "aria-expanded": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
124
+ "aria-flowto": PropTypes.string,
125
+ "aria-grabbed": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
126
+ "aria-haspopup": PropTypes.oneOfType([PropTypes.oneOf(["dialog", "false", "grid", "listbox", "menu", "tree", "true"]), PropTypes.bool]),
127
+ "aria-hidden": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
128
+ "aria-invalid": PropTypes.oneOfType([PropTypes.oneOf(["false", "grammar", "spelling", "true"]), PropTypes.bool]),
129
+ "aria-keyshortcuts": PropTypes.string,
130
+ "aria-label": PropTypes.string,
131
+ "aria-labelledby": PropTypes.string,
132
+ "aria-level": PropTypes.number,
133
+ "aria-live": PropTypes.oneOf(["assertive", "off", "polite"]),
134
+ "aria-modal": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
135
+ "aria-multiline": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
136
+ "aria-multiselectable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
137
+ "aria-orientation": PropTypes.oneOf(["horizontal", "vertical"]),
138
+ "aria-owns": PropTypes.string,
139
+ "aria-placeholder": PropTypes.string,
140
+ "aria-posinset": PropTypes.number,
141
+ "aria-pressed": PropTypes.oneOfType([PropTypes.oneOf(["false", "mixed", "true"]), PropTypes.bool]),
142
+ "aria-readonly": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
143
+ "aria-relevant": PropTypes.oneOf(["additions removals", "additions text", "additions", "all", "removals additions", "removals text", "removals", "text additions", "text removals", "text"]),
144
+ "aria-required": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
145
+ "aria-roledescription": PropTypes.string,
146
+ "aria-rowcount": PropTypes.number,
147
+ "aria-rowindex": PropTypes.number,
148
+ "aria-rowspan": PropTypes.number,
149
+ "aria-selected": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
150
+ "aria-setsize": PropTypes.number,
151
+ "aria-sort": PropTypes.oneOf(["ascending", "descending", "none", "other"]),
152
+ "aria-valuemax": PropTypes.number,
153
+ "aria-valuemin": PropTypes.number,
154
+ "aria-valuenow": PropTypes.number,
155
+ "aria-valuetext": PropTypes.string,
156
+ "ariaLabelledBy": PropTypes.string,
157
+ "autoCapitalize": PropTypes.string,
158
+ "autoComplete": PropTypes.string,
159
+ "autoCorrect": PropTypes.string,
160
+ "autoFocus": PropTypes.bool,
161
+ "autoSave": PropTypes.string,
162
+ "capture": PropTypes.oneOfType([PropTypes.oneOf(["environment", "user"]), PropTypes.bool]),
163
+ "checked": PropTypes.bool,
164
+ "children": PropTypes.node,
165
+ "className": PropTypes.string,
166
+ "color": PropTypes.string,
167
+ "contentEditable": PropTypes.oneOfType([PropTypes.oneOf(["false", "inherit", "true"]), PropTypes.bool]),
168
+ "contextMenu": PropTypes.string,
169
+ "crossOrigin": PropTypes.string,
170
+ "css": PropTypes.oneOfType([PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
171
+ "__emotion_styles": PropTypes.any.isRequired
172
+ }), PropTypes.string, PropTypes.bool]),
173
+ "dangerouslySetInnerHTML": PropTypes.shape({
174
+ "__html": PropTypes.string.isRequired
175
+ }),
109
176
  "data-component": PropTypes.string,
110
-
111
- /** Identifier used for testing purposes, applied to the root element of the component. */
112
177
  "data-element": PropTypes.string,
113
-
114
- /** Identifier used for testing purposes, applied to the root element of the component. */
115
178
  "data-role": PropTypes.string,
116
-
117
- /** Checked state of the input */
118
- checked: PropTypes.bool,
119
-
120
- /** Toggles disabling of input */
121
- disabled: PropTypes.bool,
122
-
123
- /** The fieldHelp content to display for the input */
124
- fieldHelp: PropTypes.node,
125
-
126
- /** Displays fieldHelp inline with the checkbox */
127
- fieldHelpInline: PropTypes.bool,
128
-
129
- /** Unique Identifier for the input. Will use a randomly generated GUID if none is provided */
130
- id: PropTypes.string,
131
-
132
- /** Sets percentage-based input width */
133
- inputWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
134
-
135
- /** The content of the label for the input */
136
- label: PropTypes.string,
137
-
138
- /** Spacing between label and a field for inline label, given number will be multiplied by base spacing unit (8) */
139
- labelSpacing: PropTypes.oneOf([1, 2]),
140
-
141
- /** Sets percentage-based label width */
142
- labelWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
143
-
144
- /** The name of the the Checkbox input */
145
- name: PropTypes.string,
146
-
147
- /** Accepts a callback function which can be used to update parent state on change */
148
- onChange: PropTypes.func,
149
-
150
- /** Accepts a callback function which is triggered on blur event */
151
- onBlur: PropTypes.func,
152
-
153
- /** Accepts a callback function which is triggered on focus event */
154
- onFocus: PropTypes.func,
155
-
156
- /** Accepts a callback function which is triggered on click event */
157
- onClick: PropTypes.func,
158
-
159
- /** Reverses label and checkbox display */
160
- reverse: PropTypes.bool,
161
-
162
- /**
163
- * Set the size of the checkbox to 'small' (16x16 - default) or 'large' (24x24).
164
- * No effect when using Classic theme.
165
- */
166
- size: PropTypes.oneOf(["small", "large"]),
167
-
168
- /** the value of the checkbox, passed on form submit */
169
- value: PropTypes.string,
170
-
171
- /** Indicate that error has occurred
172
- Pass string to display icon, tooltip and red border
173
- Pass true boolean to only display red border */
174
- error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
175
-
176
- /** Indicate that warning has occurred
177
- Pass string to display icon, tooltip and orange border
178
- Pass true boolean to only display orange border */
179
- warning: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
180
-
181
- /** Indicate additional information
182
- Pass string to display icon, tooltip and blue border
183
- Pass true boolean to only display blue border */
184
- info: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
185
-
186
- /** If true the Component will be focused when page load */
187
- autoFocus: PropTypes.bool,
188
-
189
- /** The content for the help tooltip, to appear next to the Label */
190
- labelHelp: PropTypes.node,
191
-
192
- /** Breakpoint for adaptive spacing (left margin changes to 0). Enables the adaptive behaviour when set */
193
- adaptiveSpacingBreakpoint: PropTypes.number,
194
-
195
- /** Flag to configure component as mandatory */
196
- required: PropTypes.bool,
197
-
198
- /** Overrides the default tooltip position */
199
- tooltipPosition: PropTypes.oneOf(["top", "bottom", "left", "right"]),
200
-
201
- /** Aria label for rendered help component */
202
- helpAriaLabel: PropTypes.string
203
- };
204
- Checkbox.defaultProps = {
205
- reverse: false,
206
- "data-component": "checkbox"
179
+ "datatype": PropTypes.string,
180
+ "defaultChecked": PropTypes.bool,
181
+ "defaultValue": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.number, PropTypes.string]),
182
+ "dir": PropTypes.string,
183
+ "disabled": PropTypes.bool,
184
+ "draggable": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
185
+ "enterKeyHint": PropTypes.oneOf(["done", "enter", "go", "next", "previous", "search", "send"]),
186
+ "error": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
187
+ "fieldHelp": PropTypes.node,
188
+ "fieldHelpInline": PropTypes.bool,
189
+ "form": PropTypes.string,
190
+ "formAction": PropTypes.string,
191
+ "formEncType": PropTypes.string,
192
+ "formMethod": PropTypes.string,
193
+ "formNoValidate": PropTypes.bool,
194
+ "formTarget": PropTypes.string,
195
+ "height": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
196
+ "helpAriaLabel": PropTypes.string,
197
+ "hidden": PropTypes.bool,
198
+ "id": PropTypes.string,
199
+ "info": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
200
+ "inlist": PropTypes.any,
201
+ "inputMode": PropTypes.oneOf(["decimal", "email", "none", "numeric", "search", "tel", "text", "url"]),
202
+ "inputRef": PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
203
+ "current": PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.object]).isRequired
204
+ })]),
205
+ "inputWidth": PropTypes.number,
206
+ "is": PropTypes.string,
207
+ "itemID": PropTypes.string,
208
+ "itemProp": PropTypes.string,
209
+ "itemRef": PropTypes.string,
210
+ "itemScope": PropTypes.bool,
211
+ "itemType": PropTypes.string,
212
+ "label": PropTypes.node,
213
+ "labelAlign": PropTypes.oneOf(["left", "right"]),
214
+ "labelHelp": PropTypes.node,
215
+ "labelInline": PropTypes.bool,
216
+ "labelSpacing": PropTypes.oneOf([1, 2]),
217
+ "labelWidth": PropTypes.number,
218
+ "lang": PropTypes.string,
219
+ "list": PropTypes.string,
220
+ "m": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
221
+ "__@toStringTag": PropTypes.string.isRequired,
222
+ "description": PropTypes.string,
223
+ "toString": PropTypes.func.isRequired,
224
+ "valueOf": PropTypes.func.isRequired
225
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
226
+ "__@toStringTag": PropTypes.string.isRequired,
227
+ "description": PropTypes.string,
228
+ "toString": PropTypes.func.isRequired,
229
+ "valueOf": PropTypes.func.isRequired
230
+ }), PropTypes.string]),
231
+ "margin": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
232
+ "__@toStringTag": PropTypes.string.isRequired,
233
+ "description": PropTypes.string,
234
+ "toString": PropTypes.func.isRequired,
235
+ "valueOf": PropTypes.func.isRequired
236
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
237
+ "__@toStringTag": PropTypes.string.isRequired,
238
+ "description": PropTypes.string,
239
+ "toString": PropTypes.func.isRequired,
240
+ "valueOf": PropTypes.func.isRequired
241
+ }), PropTypes.string]),
242
+ "marginBottom": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
243
+ "__@toStringTag": PropTypes.string.isRequired,
244
+ "description": PropTypes.string,
245
+ "toString": PropTypes.func.isRequired,
246
+ "valueOf": PropTypes.func.isRequired
247
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
248
+ "__@toStringTag": PropTypes.string.isRequired,
249
+ "description": PropTypes.string,
250
+ "toString": PropTypes.func.isRequired,
251
+ "valueOf": PropTypes.func.isRequired
252
+ }), PropTypes.string]),
253
+ "marginLeft": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
254
+ "__@toStringTag": PropTypes.string.isRequired,
255
+ "description": PropTypes.string,
256
+ "toString": PropTypes.func.isRequired,
257
+ "valueOf": PropTypes.func.isRequired
258
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
259
+ "__@toStringTag": PropTypes.string.isRequired,
260
+ "description": PropTypes.string,
261
+ "toString": PropTypes.func.isRequired,
262
+ "valueOf": PropTypes.func.isRequired
263
+ }), PropTypes.string]),
264
+ "marginRight": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
265
+ "__@toStringTag": PropTypes.string.isRequired,
266
+ "description": PropTypes.string,
267
+ "toString": PropTypes.func.isRequired,
268
+ "valueOf": PropTypes.func.isRequired
269
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
270
+ "__@toStringTag": PropTypes.string.isRequired,
271
+ "description": PropTypes.string,
272
+ "toString": PropTypes.func.isRequired,
273
+ "valueOf": PropTypes.func.isRequired
274
+ }), PropTypes.string]),
275
+ "marginTop": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
276
+ "__@toStringTag": PropTypes.string.isRequired,
277
+ "description": PropTypes.string,
278
+ "toString": PropTypes.func.isRequired,
279
+ "valueOf": PropTypes.func.isRequired
280
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
281
+ "__@toStringTag": PropTypes.string.isRequired,
282
+ "description": PropTypes.string,
283
+ "toString": PropTypes.func.isRequired,
284
+ "valueOf": PropTypes.func.isRequired
285
+ }), PropTypes.string]),
286
+ "marginX": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
287
+ "__@toStringTag": PropTypes.string.isRequired,
288
+ "description": PropTypes.string,
289
+ "toString": PropTypes.func.isRequired,
290
+ "valueOf": PropTypes.func.isRequired
291
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
292
+ "__@toStringTag": PropTypes.string.isRequired,
293
+ "description": PropTypes.string,
294
+ "toString": PropTypes.func.isRequired,
295
+ "valueOf": PropTypes.func.isRequired
296
+ }), PropTypes.string]),
297
+ "marginY": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
298
+ "__@toStringTag": PropTypes.string.isRequired,
299
+ "description": PropTypes.string,
300
+ "toString": PropTypes.func.isRequired,
301
+ "valueOf": PropTypes.func.isRequired
302
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
303
+ "__@toStringTag": PropTypes.string.isRequired,
304
+ "description": PropTypes.string,
305
+ "toString": PropTypes.func.isRequired,
306
+ "valueOf": PropTypes.func.isRequired
307
+ }), PropTypes.string]),
308
+ "max": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
309
+ "maxLength": PropTypes.number,
310
+ "mb": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
311
+ "__@toStringTag": PropTypes.string.isRequired,
312
+ "description": PropTypes.string,
313
+ "toString": PropTypes.func.isRequired,
314
+ "valueOf": PropTypes.func.isRequired
315
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
316
+ "__@toStringTag": PropTypes.string.isRequired,
317
+ "description": PropTypes.string,
318
+ "toString": PropTypes.func.isRequired,
319
+ "valueOf": PropTypes.func.isRequired
320
+ }), PropTypes.string]),
321
+ "min": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
322
+ "minLength": PropTypes.number,
323
+ "ml": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
324
+ "__@toStringTag": PropTypes.string.isRequired,
325
+ "description": PropTypes.string,
326
+ "toString": PropTypes.func.isRequired,
327
+ "valueOf": PropTypes.func.isRequired
328
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
329
+ "__@toStringTag": PropTypes.string.isRequired,
330
+ "description": PropTypes.string,
331
+ "toString": PropTypes.func.isRequired,
332
+ "valueOf": PropTypes.func.isRequired
333
+ }), PropTypes.string]),
334
+ "mr": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
335
+ "__@toStringTag": PropTypes.string.isRequired,
336
+ "description": PropTypes.string,
337
+ "toString": PropTypes.func.isRequired,
338
+ "valueOf": PropTypes.func.isRequired
339
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
340
+ "__@toStringTag": PropTypes.string.isRequired,
341
+ "description": PropTypes.string,
342
+ "toString": PropTypes.func.isRequired,
343
+ "valueOf": PropTypes.func.isRequired
344
+ }), PropTypes.string]),
345
+ "mt": PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf([null]), PropTypes.number, PropTypes.shape({
346
+ "__@toStringTag": PropTypes.string.isRequired,
347
+ "description": PropTypes.string,
348
+ "toString": PropTypes.func.isRequired,
349
+ "valueOf": PropTypes.func.isRequired
350
+ }), PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.shape({
351
+ "__@toStringTag": PropTypes.string.isRequired,
352
+ "description": PropTypes.string,
353
+ "toString": PropTypes.func.isRequired,
354
+ "valueOf": PropTypes.func.isRequired
355
+ }), PropTypes.string]),
356
+ "multiple": PropTypes.bool,
357
+ "mx": 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
+ "my": 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
+ "name": PropTypes.string,
380
+ "onAbort": PropTypes.func,
381
+ "onAbortCapture": PropTypes.func,
382
+ "onAnimationEnd": PropTypes.func,
383
+ "onAnimationEndCapture": PropTypes.func,
384
+ "onAnimationIteration": PropTypes.func,
385
+ "onAnimationIterationCapture": PropTypes.func,
386
+ "onAnimationStart": PropTypes.func,
387
+ "onAnimationStartCapture": PropTypes.func,
388
+ "onAuxClick": PropTypes.func,
389
+ "onAuxClickCapture": PropTypes.func,
390
+ "onBeforeInput": PropTypes.func,
391
+ "onBeforeInputCapture": PropTypes.func,
392
+ "onBlur": PropTypes.func,
393
+ "onBlurCapture": PropTypes.func,
394
+ "onCanPlay": PropTypes.func,
395
+ "onCanPlayCapture": PropTypes.func,
396
+ "onCanPlayThrough": PropTypes.func,
397
+ "onCanPlayThroughCapture": PropTypes.func,
398
+ "onChange": PropTypes.func,
399
+ "onChangeCapture": PropTypes.func,
400
+ "onClick": PropTypes.func,
401
+ "onClickCapture": PropTypes.func,
402
+ "onCompositionEnd": PropTypes.func,
403
+ "onCompositionEndCapture": PropTypes.func,
404
+ "onCompositionStart": PropTypes.func,
405
+ "onCompositionStartCapture": PropTypes.func,
406
+ "onCompositionUpdate": PropTypes.func,
407
+ "onCompositionUpdateCapture": PropTypes.func,
408
+ "onContextMenu": PropTypes.func,
409
+ "onContextMenuCapture": PropTypes.func,
410
+ "onCopy": PropTypes.func,
411
+ "onCopyCapture": PropTypes.func,
412
+ "onCut": PropTypes.func,
413
+ "onCutCapture": PropTypes.func,
414
+ "onDoubleClick": PropTypes.func,
415
+ "onDoubleClickCapture": PropTypes.func,
416
+ "onDrag": PropTypes.func,
417
+ "onDragCapture": PropTypes.func,
418
+ "onDragEnd": PropTypes.func,
419
+ "onDragEndCapture": PropTypes.func,
420
+ "onDragEnter": PropTypes.func,
421
+ "onDragEnterCapture": PropTypes.func,
422
+ "onDragExit": PropTypes.func,
423
+ "onDragExitCapture": PropTypes.func,
424
+ "onDragLeave": PropTypes.func,
425
+ "onDragLeaveCapture": PropTypes.func,
426
+ "onDragOver": PropTypes.func,
427
+ "onDragOverCapture": PropTypes.func,
428
+ "onDragStart": PropTypes.func,
429
+ "onDragStartCapture": PropTypes.func,
430
+ "onDrop": PropTypes.func,
431
+ "onDropCapture": PropTypes.func,
432
+ "onDurationChange": PropTypes.func,
433
+ "onDurationChangeCapture": PropTypes.func,
434
+ "onEmptied": PropTypes.func,
435
+ "onEmptiedCapture": PropTypes.func,
436
+ "onEncrypted": PropTypes.func,
437
+ "onEncryptedCapture": PropTypes.func,
438
+ "onEnded": PropTypes.func,
439
+ "onEndedCapture": PropTypes.func,
440
+ "onError": PropTypes.func,
441
+ "onErrorCapture": PropTypes.func,
442
+ "onFocus": PropTypes.func,
443
+ "onFocusCapture": PropTypes.func,
444
+ "onGotPointerCapture": PropTypes.func,
445
+ "onGotPointerCaptureCapture": PropTypes.func,
446
+ "onInput": PropTypes.func,
447
+ "onInputCapture": PropTypes.func,
448
+ "onInvalid": PropTypes.func,
449
+ "onInvalidCapture": PropTypes.func,
450
+ "onKeyDown": PropTypes.func,
451
+ "onKeyDownCapture": PropTypes.func,
452
+ "onKeyPress": PropTypes.func,
453
+ "onKeyPressCapture": PropTypes.func,
454
+ "onKeyUp": PropTypes.func,
455
+ "onKeyUpCapture": PropTypes.func,
456
+ "onLoad": PropTypes.func,
457
+ "onLoadCapture": PropTypes.func,
458
+ "onLoadedData": PropTypes.func,
459
+ "onLoadedDataCapture": PropTypes.func,
460
+ "onLoadedMetadata": PropTypes.func,
461
+ "onLoadedMetadataCapture": PropTypes.func,
462
+ "onLoadStart": PropTypes.func,
463
+ "onLoadStartCapture": PropTypes.func,
464
+ "onLostPointerCapture": PropTypes.func,
465
+ "onLostPointerCaptureCapture": PropTypes.func,
466
+ "onMouseDown": PropTypes.func,
467
+ "onMouseDownCapture": PropTypes.func,
468
+ "onMouseEnter": PropTypes.func,
469
+ "onMouseLeave": PropTypes.func,
470
+ "onMouseMove": PropTypes.func,
471
+ "onMouseMoveCapture": PropTypes.func,
472
+ "onMouseOut": PropTypes.func,
473
+ "onMouseOutCapture": PropTypes.func,
474
+ "onMouseOver": PropTypes.func,
475
+ "onMouseOverCapture": PropTypes.func,
476
+ "onMouseUp": PropTypes.func,
477
+ "onMouseUpCapture": PropTypes.func,
478
+ "onPaste": PropTypes.func,
479
+ "onPasteCapture": PropTypes.func,
480
+ "onPause": PropTypes.func,
481
+ "onPauseCapture": PropTypes.func,
482
+ "onPlay": PropTypes.func,
483
+ "onPlayCapture": PropTypes.func,
484
+ "onPlaying": PropTypes.func,
485
+ "onPlayingCapture": PropTypes.func,
486
+ "onPointerCancel": PropTypes.func,
487
+ "onPointerCancelCapture": PropTypes.func,
488
+ "onPointerDown": PropTypes.func,
489
+ "onPointerDownCapture": PropTypes.func,
490
+ "onPointerEnter": PropTypes.func,
491
+ "onPointerEnterCapture": PropTypes.func,
492
+ "onPointerLeave": PropTypes.func,
493
+ "onPointerLeaveCapture": PropTypes.func,
494
+ "onPointerMove": PropTypes.func,
495
+ "onPointerMoveCapture": PropTypes.func,
496
+ "onPointerOut": PropTypes.func,
497
+ "onPointerOutCapture": PropTypes.func,
498
+ "onPointerOver": PropTypes.func,
499
+ "onPointerOverCapture": PropTypes.func,
500
+ "onPointerUp": PropTypes.func,
501
+ "onPointerUpCapture": PropTypes.func,
502
+ "onProgress": PropTypes.func,
503
+ "onProgressCapture": PropTypes.func,
504
+ "onRateChange": PropTypes.func,
505
+ "onRateChangeCapture": PropTypes.func,
506
+ "onReset": PropTypes.func,
507
+ "onResetCapture": PropTypes.func,
508
+ "onScroll": PropTypes.func,
509
+ "onScrollCapture": PropTypes.func,
510
+ "onSeeked": PropTypes.func,
511
+ "onSeekedCapture": PropTypes.func,
512
+ "onSeeking": PropTypes.func,
513
+ "onSeekingCapture": PropTypes.func,
514
+ "onSelect": PropTypes.func,
515
+ "onSelectCapture": PropTypes.func,
516
+ "onStalled": PropTypes.func,
517
+ "onStalledCapture": PropTypes.func,
518
+ "onSubmit": PropTypes.func,
519
+ "onSubmitCapture": PropTypes.func,
520
+ "onSuspend": PropTypes.func,
521
+ "onSuspendCapture": PropTypes.func,
522
+ "onTimeUpdate": PropTypes.func,
523
+ "onTimeUpdateCapture": PropTypes.func,
524
+ "onTouchCancel": PropTypes.func,
525
+ "onTouchCancelCapture": PropTypes.func,
526
+ "onTouchEnd": PropTypes.func,
527
+ "onTouchEndCapture": PropTypes.func,
528
+ "onTouchMove": PropTypes.func,
529
+ "onTouchMoveCapture": PropTypes.func,
530
+ "onTouchStart": PropTypes.func,
531
+ "onTouchStartCapture": PropTypes.func,
532
+ "onTransitionEnd": PropTypes.func,
533
+ "onTransitionEndCapture": PropTypes.func,
534
+ "onVolumeChange": PropTypes.func,
535
+ "onVolumeChangeCapture": PropTypes.func,
536
+ "onWaiting": PropTypes.func,
537
+ "onWaitingCapture": PropTypes.func,
538
+ "onWheel": PropTypes.func,
539
+ "onWheelCapture": PropTypes.func,
540
+ "pattern": PropTypes.string,
541
+ "placeholder": PropTypes.string,
542
+ "prefix": PropTypes.string,
543
+ "property": PropTypes.string,
544
+ "radioGroup": PropTypes.string,
545
+ "readOnly": PropTypes.bool,
546
+ "required": PropTypes.bool,
547
+ "resource": PropTypes.string,
548
+ "results": PropTypes.number,
549
+ "reverse": PropTypes.bool,
550
+ "role": PropTypes.oneOfType([PropTypes.oneOf(["alert", "alertdialog", "application", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo", "definition", "dialog", "directory", "document", "feed", "figure", "form", "grid", "gridcell", "group", "heading", "img", "link", "list", "listbox", "listitem", "log", "main", "marquee", "math", "menu", "menubar", "menuitem", "menuitemcheckbox", "menuitemradio", "navigation", "none", "note", "option", "presentation", "progressbar", "radio", "radiogroup", "region", "row", "rowgroup", "rowheader", "scrollbar", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist", "tabpanel", "term", "textbox", "timer", "toolbar", "tooltip", "tree", "treegrid", "treeitem"]), PropTypes.shape({
551
+ "__@iterator": PropTypes.func.isRequired,
552
+ "anchor": PropTypes.func.isRequired,
553
+ "at": PropTypes.func.isRequired,
554
+ "big": PropTypes.func.isRequired,
555
+ "blink": PropTypes.func.isRequired,
556
+ "bold": PropTypes.func.isRequired,
557
+ "charAt": PropTypes.func.isRequired,
558
+ "charCodeAt": PropTypes.func.isRequired,
559
+ "codePointAt": PropTypes.func.isRequired,
560
+ "concat": PropTypes.func.isRequired,
561
+ "endsWith": PropTypes.func.isRequired,
562
+ "fixed": PropTypes.func.isRequired,
563
+ "fontcolor": PropTypes.func.isRequired,
564
+ "fontsize": PropTypes.func.isRequired,
565
+ "includes": PropTypes.func.isRequired,
566
+ "indexOf": PropTypes.func.isRequired,
567
+ "italics": PropTypes.func.isRequired,
568
+ "lastIndexOf": PropTypes.func.isRequired,
569
+ "length": PropTypes.number.isRequired,
570
+ "link": PropTypes.func.isRequired,
571
+ "localeCompare": PropTypes.func.isRequired,
572
+ "match": PropTypes.func.isRequired,
573
+ "matchAll": PropTypes.func.isRequired,
574
+ "normalize": PropTypes.func.isRequired,
575
+ "padEnd": PropTypes.func.isRequired,
576
+ "padStart": PropTypes.func.isRequired,
577
+ "repeat": PropTypes.func.isRequired,
578
+ "replace": PropTypes.func.isRequired,
579
+ "search": PropTypes.func.isRequired,
580
+ "slice": PropTypes.func.isRequired,
581
+ "small": PropTypes.func.isRequired,
582
+ "split": PropTypes.func.isRequired,
583
+ "startsWith": PropTypes.func.isRequired,
584
+ "strike": PropTypes.func.isRequired,
585
+ "sub": PropTypes.func.isRequired,
586
+ "substr": PropTypes.func.isRequired,
587
+ "substring": PropTypes.func.isRequired,
588
+ "sup": PropTypes.func.isRequired,
589
+ "toLocaleLowerCase": PropTypes.func.isRequired,
590
+ "toLocaleUpperCase": PropTypes.func.isRequired,
591
+ "toLowerCase": PropTypes.func.isRequired,
592
+ "toString": PropTypes.func.isRequired,
593
+ "toUpperCase": PropTypes.func.isRequired,
594
+ "trim": PropTypes.func.isRequired,
595
+ "trimEnd": PropTypes.func.isRequired,
596
+ "trimLeft": PropTypes.func.isRequired,
597
+ "trimRight": PropTypes.func.isRequired,
598
+ "trimStart": PropTypes.func.isRequired,
599
+ "valueOf": PropTypes.func.isRequired
600
+ })]),
601
+ "security": PropTypes.string,
602
+ "size": PropTypes.oneOf(["large", "small"]),
603
+ "slot": PropTypes.string,
604
+ "spellCheck": PropTypes.oneOfType([PropTypes.oneOf(["false", "true"]), PropTypes.bool]),
605
+ "src": PropTypes.string,
606
+ "step": PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
607
+ "style": PropTypes.object,
608
+ "suppressContentEditableWarning": PropTypes.bool,
609
+ "suppressHydrationWarning": PropTypes.bool,
610
+ "tabIndex": PropTypes.number,
611
+ "title": PropTypes.string,
612
+ "tooltipPosition": PropTypes.oneOf(["bottom", "left", "right", "top"]),
613
+ "translate": PropTypes.oneOf(["no", "yes"]),
614
+ "typeof": PropTypes.string,
615
+ "unselectable": PropTypes.oneOf(["off", "on"]),
616
+ "validationOnLabel": PropTypes.bool,
617
+ "value": PropTypes.string,
618
+ "vocab": PropTypes.string,
619
+ "warning": PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
620
+ "width": PropTypes.oneOfType([PropTypes.number, PropTypes.string])
207
621
  };
622
+ export { Checkbox };
623
+ Checkbox.displayName = "Checkbox";
208
624
  export default Checkbox;