carbon-react 111.12.4 → 111.12.5

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