@atlaskit/radio 5.4.5 → 5.4.7

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.
package/report.api.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- API Report Version: 2.2 -->
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
3
  ## API Report File for "@atlaskit/radio"
4
4
 
@@ -8,6 +8,7 @@
8
8
  ### Table of contents
9
9
 
10
10
  - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
11
12
 
12
13
  ### Main Entry Types
13
14
 
@@ -44,10 +45,28 @@ export const Radio: MemoExoticComponent<
44
45
  ForwardRefExoticComponent<
45
46
  Pick<
46
47
  Omit<
47
- InputHTMLAttributes<HTMLInputElement>,
48
- 'aria-label' | 'checked' | 'disabled' | 'required' | 'value'
49
- >,
50
- keyof {
48
+ Omit<
49
+ InputHTMLAttributes<HTMLInputElement>,
50
+ 'aria-label' | 'checked' | 'disabled' | 'required' | 'value'
51
+ >,
52
+ keyof {
53
+ ariaLabel?: string | undefined;
54
+ isDisabled?: boolean | undefined;
55
+ isRequired?: boolean | undefined;
56
+ isInvalid?: boolean | undefined;
57
+ isChecked?: boolean | undefined;
58
+ label?: ReactNode;
59
+ onChange?:
60
+ | ((
61
+ e: ChangeEvent<HTMLInputElement>,
62
+ analyticsEvent: UIAnalyticsEvent,
63
+ ) => void)
64
+ | undefined;
65
+ value?: string | undefined;
66
+ testId?: string | undefined;
67
+ analyticsContext?: Record<string, any> | undefined;
68
+ }
69
+ > & {
51
70
  ariaLabel?: string | undefined;
52
71
  isDisabled?: boolean | undefined;
53
72
  isRequired?: boolean | undefined;
@@ -63,323 +82,307 @@ export const Radio: MemoExoticComponent<
63
82
  value?: string | undefined;
64
83
  testId?: string | undefined;
65
84
  analyticsContext?: Record<string, any> | undefined;
66
- }
67
- > & {
68
- ariaLabel?: string | undefined;
69
- isDisabled?: boolean | undefined;
70
- isRequired?: boolean | undefined;
71
- isInvalid?: boolean | undefined;
72
- isChecked?: boolean | undefined;
73
- label?: ReactNode;
74
- onChange?:
75
- | ((
76
- e: ChangeEvent<HTMLInputElement>,
77
- analyticsEvent: UIAnalyticsEvent,
78
- ) => void)
79
- | undefined;
80
- value?: string | undefined;
81
- testId?: string | undefined;
82
- analyticsContext?: Record<string, any> | undefined;
83
- } & WithAnalyticsEventsProps,
84
- | 'about'
85
- | 'accept'
86
- | 'accessKey'
87
- | 'alt'
88
- | 'aria-activedescendant'
89
- | 'aria-atomic'
90
- | 'aria-autocomplete'
91
- | 'aria-busy'
92
- | 'aria-checked'
93
- | 'aria-colcount'
94
- | 'aria-colindex'
95
- | 'aria-colspan'
96
- | 'aria-controls'
97
- | 'aria-current'
98
- | 'aria-describedby'
99
- | 'aria-details'
100
- | 'aria-disabled'
101
- | 'aria-dropeffect'
102
- | 'aria-errormessage'
103
- | 'aria-expanded'
104
- | 'aria-flowto'
105
- | 'aria-grabbed'
106
- | 'aria-haspopup'
107
- | 'aria-hidden'
108
- | 'aria-invalid'
109
- | 'aria-keyshortcuts'
110
- | 'aria-labelledby'
111
- | 'aria-level'
112
- | 'aria-live'
113
- | 'aria-modal'
114
- | 'aria-multiline'
115
- | 'aria-multiselectable'
116
- | 'aria-orientation'
117
- | 'aria-owns'
118
- | 'aria-placeholder'
119
- | 'aria-posinset'
120
- | 'aria-pressed'
121
- | 'aria-readonly'
122
- | 'aria-relevant'
123
- | 'aria-required'
124
- | 'aria-roledescription'
125
- | 'aria-rowcount'
126
- | 'aria-rowindex'
127
- | 'aria-rowspan'
128
- | 'aria-selected'
129
- | 'aria-setsize'
130
- | 'aria-sort'
131
- | 'aria-valuemax'
132
- | 'aria-valuemin'
133
- | 'aria-valuenow'
134
- | 'aria-valuetext'
135
- | 'autoCapitalize'
136
- | 'autoComplete'
137
- | 'autoCorrect'
138
- | 'autoFocus'
139
- | 'autoSave'
140
- | 'capture'
141
- | 'children'
142
- | 'className'
143
- | 'color'
144
- | 'contentEditable'
145
- | 'contextMenu'
146
- | 'createAnalyticsEvent'
147
- | 'crossOrigin'
148
- | 'dangerouslySetInnerHTML'
149
- | 'datatype'
150
- | 'defaultChecked'
151
- | 'defaultValue'
152
- | 'dir'
153
- | 'draggable'
154
- | 'form'
155
- | 'formAction'
156
- | 'formEncType'
157
- | 'formMethod'
158
- | 'formNoValidate'
159
- | 'formTarget'
160
- | 'height'
161
- | 'hidden'
162
- | 'id'
163
- | 'inlist'
164
- | 'inputMode'
165
- | 'is'
166
- | 'itemID'
167
- | 'itemProp'
168
- | 'itemRef'
169
- | 'itemScope'
170
- | 'itemType'
171
- | 'lang'
172
- | 'list'
173
- | 'max'
174
- | 'maxLength'
175
- | 'min'
176
- | 'minLength'
177
- | 'multiple'
178
- | 'name'
179
- | 'onAbort'
180
- | 'onAbortCapture'
181
- | 'onAnimationEnd'
182
- | 'onAnimationEndCapture'
183
- | 'onAnimationIteration'
184
- | 'onAnimationIterationCapture'
185
- | 'onAnimationStart'
186
- | 'onAnimationStartCapture'
187
- | 'onAuxClick'
188
- | 'onAuxClickCapture'
189
- | 'onBeforeInput'
190
- | 'onBeforeInputCapture'
191
- | 'onBlur'
192
- | 'onBlurCapture'
193
- | 'onCanPlay'
194
- | 'onCanPlayCapture'
195
- | 'onCanPlayThrough'
196
- | 'onCanPlayThroughCapture'
197
- | 'onChangeCapture'
198
- | 'onClick'
199
- | 'onClickCapture'
200
- | 'onCompositionEnd'
201
- | 'onCompositionEndCapture'
202
- | 'onCompositionStart'
203
- | 'onCompositionStartCapture'
204
- | 'onCompositionUpdate'
205
- | 'onCompositionUpdateCapture'
206
- | 'onContextMenu'
207
- | 'onContextMenuCapture'
208
- | 'onCopy'
209
- | 'onCopyCapture'
210
- | 'onCut'
211
- | 'onCutCapture'
212
- | 'onDoubleClick'
213
- | 'onDoubleClickCapture'
214
- | 'onDrag'
215
- | 'onDragCapture'
216
- | 'onDragEnd'
217
- | 'onDragEndCapture'
218
- | 'onDragEnter'
219
- | 'onDragEnterCapture'
220
- | 'onDragExit'
221
- | 'onDragExitCapture'
222
- | 'onDragLeave'
223
- | 'onDragLeaveCapture'
224
- | 'onDragOver'
225
- | 'onDragOverCapture'
226
- | 'onDragStart'
227
- | 'onDragStartCapture'
228
- | 'onDrop'
229
- | 'onDropCapture'
230
- | 'onDurationChange'
231
- | 'onDurationChangeCapture'
232
- | 'onEmptied'
233
- | 'onEmptiedCapture'
234
- | 'onEncrypted'
235
- | 'onEncryptedCapture'
236
- | 'onEnded'
237
- | 'onEndedCapture'
238
- | 'onError'
239
- | 'onErrorCapture'
240
- | 'onFocus'
241
- | 'onFocusCapture'
242
- | 'onGotPointerCapture'
243
- | 'onGotPointerCaptureCapture'
244
- | 'onInput'
245
- | 'onInputCapture'
246
- | 'onInvalid'
247
- | 'onInvalidCapture'
248
- | 'onKeyDown'
249
- | 'onKeyDownCapture'
250
- | 'onKeyPress'
251
- | 'onKeyPressCapture'
252
- | 'onKeyUp'
253
- | 'onKeyUpCapture'
254
- | 'onLoad'
255
- | 'onLoadCapture'
256
- | 'onLoadStart'
257
- | 'onLoadStartCapture'
258
- | 'onLoadedData'
259
- | 'onLoadedDataCapture'
260
- | 'onLoadedMetadata'
261
- | 'onLoadedMetadataCapture'
262
- | 'onLostPointerCapture'
263
- | 'onLostPointerCaptureCapture'
264
- | 'onMouseDown'
265
- | 'onMouseDownCapture'
266
- | 'onMouseEnter'
267
- | 'onMouseLeave'
268
- | 'onMouseMove'
269
- | 'onMouseMoveCapture'
270
- | 'onMouseOut'
271
- | 'onMouseOutCapture'
272
- | 'onMouseOver'
273
- | 'onMouseOverCapture'
274
- | 'onMouseUp'
275
- | 'onMouseUpCapture'
276
- | 'onPaste'
277
- | 'onPasteCapture'
278
- | 'onPause'
279
- | 'onPauseCapture'
280
- | 'onPlay'
281
- | 'onPlayCapture'
282
- | 'onPlaying'
283
- | 'onPlayingCapture'
284
- | 'onPointerCancel'
285
- | 'onPointerCancelCapture'
286
- | 'onPointerDown'
287
- | 'onPointerDownCapture'
288
- | 'onPointerEnter'
289
- | 'onPointerEnterCapture'
290
- | 'onPointerLeave'
291
- | 'onPointerLeaveCapture'
292
- | 'onPointerMove'
293
- | 'onPointerMoveCapture'
294
- | 'onPointerOut'
295
- | 'onPointerOutCapture'
296
- | 'onPointerOver'
297
- | 'onPointerOverCapture'
298
- | 'onPointerUp'
299
- | 'onPointerUpCapture'
300
- | 'onProgress'
301
- | 'onProgressCapture'
302
- | 'onRateChange'
303
- | 'onRateChangeCapture'
304
- | 'onReset'
305
- | 'onResetCapture'
306
- | 'onScroll'
307
- | 'onScrollCapture'
308
- | 'onSeeked'
309
- | 'onSeekedCapture'
310
- | 'onSeeking'
311
- | 'onSeekingCapture'
312
- | 'onSelect'
313
- | 'onSelectCapture'
314
- | 'onStalled'
315
- | 'onStalledCapture'
316
- | 'onSubmit'
317
- | 'onSubmitCapture'
318
- | 'onSuspend'
319
- | 'onSuspendCapture'
320
- | 'onTimeUpdate'
321
- | 'onTimeUpdateCapture'
322
- | 'onTouchCancel'
323
- | 'onTouchCancelCapture'
324
- | 'onTouchEnd'
325
- | 'onTouchEndCapture'
326
- | 'onTouchMove'
327
- | 'onTouchMoveCapture'
328
- | 'onTouchStart'
329
- | 'onTouchStartCapture'
330
- | 'onTransitionEnd'
331
- | 'onTransitionEndCapture'
332
- | 'onVolumeChange'
333
- | 'onVolumeChangeCapture'
334
- | 'onWaiting'
335
- | 'onWaitingCapture'
336
- | 'onWheel'
337
- | 'onWheelCapture'
338
- | 'pattern'
339
- | 'placeholder'
340
- | 'prefix'
341
- | 'property'
342
- | 'radioGroup'
343
- | 'readOnly'
344
- | 'resource'
345
- | 'results'
346
- | 'role'
347
- | 'security'
348
- | 'size'
349
- | 'slot'
350
- | 'spellCheck'
351
- | 'src'
352
- | 'step'
353
- | 'style'
354
- | 'suppressContentEditableWarning'
355
- | 'suppressHydrationWarning'
356
- | 'tabIndex'
357
- | 'title'
358
- | 'type'
359
- | 'typeof'
360
- | 'unselectable'
361
- | 'vocab'
362
- | 'width'
363
- | keyof {
364
- ariaLabel?: string | undefined;
365
- isDisabled?: boolean | undefined;
366
- isRequired?: boolean | undefined;
367
- isInvalid?: boolean | undefined;
368
- isChecked?: boolean | undefined;
369
- label?: ReactNode;
370
- onChange?:
371
- | ((
372
- e: ChangeEvent<HTMLInputElement>,
373
- analyticsEvent: UIAnalyticsEvent,
374
- ) => void)
375
- | undefined;
376
- value?: string | undefined;
377
- testId?: string | undefined;
378
- analyticsContext?: Record<string, any> | undefined;
379
- }
380
- > &
381
- RefAttributes<HTMLInputElement>
382
- >>;
85
+ } & WithAnalyticsEventsProps,
86
+ | 'about'
87
+ | 'accept'
88
+ | 'accessKey'
89
+ | 'alt'
90
+ | 'aria-activedescendant'
91
+ | 'aria-atomic'
92
+ | 'aria-autocomplete'
93
+ | 'aria-busy'
94
+ | 'aria-checked'
95
+ | 'aria-colcount'
96
+ | 'aria-colindex'
97
+ | 'aria-colspan'
98
+ | 'aria-controls'
99
+ | 'aria-current'
100
+ | 'aria-describedby'
101
+ | 'aria-details'
102
+ | 'aria-disabled'
103
+ | 'aria-dropeffect'
104
+ | 'aria-errormessage'
105
+ | 'aria-expanded'
106
+ | 'aria-flowto'
107
+ | 'aria-grabbed'
108
+ | 'aria-haspopup'
109
+ | 'aria-hidden'
110
+ | 'aria-invalid'
111
+ | 'aria-keyshortcuts'
112
+ | 'aria-labelledby'
113
+ | 'aria-level'
114
+ | 'aria-live'
115
+ | 'aria-modal'
116
+ | 'aria-multiline'
117
+ | 'aria-multiselectable'
118
+ | 'aria-orientation'
119
+ | 'aria-owns'
120
+ | 'aria-placeholder'
121
+ | 'aria-posinset'
122
+ | 'aria-pressed'
123
+ | 'aria-readonly'
124
+ | 'aria-relevant'
125
+ | 'aria-required'
126
+ | 'aria-roledescription'
127
+ | 'aria-rowcount'
128
+ | 'aria-rowindex'
129
+ | 'aria-rowspan'
130
+ | 'aria-selected'
131
+ | 'aria-setsize'
132
+ | 'aria-sort'
133
+ | 'aria-valuemax'
134
+ | 'aria-valuemin'
135
+ | 'aria-valuenow'
136
+ | 'aria-valuetext'
137
+ | 'autoCapitalize'
138
+ | 'autoComplete'
139
+ | 'autoCorrect'
140
+ | 'autoFocus'
141
+ | 'autoSave'
142
+ | 'capture'
143
+ | 'children'
144
+ | 'className'
145
+ | 'color'
146
+ | 'contentEditable'
147
+ | 'contextMenu'
148
+ | 'createAnalyticsEvent'
149
+ | 'crossOrigin'
150
+ | 'dangerouslySetInnerHTML'
151
+ | 'datatype'
152
+ | 'defaultChecked'
153
+ | 'defaultValue'
154
+ | 'dir'
155
+ | 'draggable'
156
+ | 'form'
157
+ | 'formAction'
158
+ | 'formEncType'
159
+ | 'formMethod'
160
+ | 'formNoValidate'
161
+ | 'formTarget'
162
+ | 'height'
163
+ | 'hidden'
164
+ | 'id'
165
+ | 'inlist'
166
+ | 'inputMode'
167
+ | 'is'
168
+ | 'itemID'
169
+ | 'itemProp'
170
+ | 'itemRef'
171
+ | 'itemScope'
172
+ | 'itemType'
173
+ | 'lang'
174
+ | 'list'
175
+ | 'max'
176
+ | 'maxLength'
177
+ | 'min'
178
+ | 'minLength'
179
+ | 'multiple'
180
+ | 'name'
181
+ | 'onAbort'
182
+ | 'onAbortCapture'
183
+ | 'onAnimationEnd'
184
+ | 'onAnimationEndCapture'
185
+ | 'onAnimationIteration'
186
+ | 'onAnimationIterationCapture'
187
+ | 'onAnimationStart'
188
+ | 'onAnimationStartCapture'
189
+ | 'onAuxClick'
190
+ | 'onAuxClickCapture'
191
+ | 'onBeforeInput'
192
+ | 'onBeforeInputCapture'
193
+ | 'onBlur'
194
+ | 'onBlurCapture'
195
+ | 'onCanPlay'
196
+ | 'onCanPlayCapture'
197
+ | 'onCanPlayThrough'
198
+ | 'onCanPlayThroughCapture'
199
+ | 'onChangeCapture'
200
+ | 'onClick'
201
+ | 'onClickCapture'
202
+ | 'onCompositionEnd'
203
+ | 'onCompositionEndCapture'
204
+ | 'onCompositionStart'
205
+ | 'onCompositionStartCapture'
206
+ | 'onCompositionUpdate'
207
+ | 'onCompositionUpdateCapture'
208
+ | 'onContextMenu'
209
+ | 'onContextMenuCapture'
210
+ | 'onCopy'
211
+ | 'onCopyCapture'
212
+ | 'onCut'
213
+ | 'onCutCapture'
214
+ | 'onDoubleClick'
215
+ | 'onDoubleClickCapture'
216
+ | 'onDrag'
217
+ | 'onDragCapture'
218
+ | 'onDragEnd'
219
+ | 'onDragEndCapture'
220
+ | 'onDragEnter'
221
+ | 'onDragEnterCapture'
222
+ | 'onDragExit'
223
+ | 'onDragExitCapture'
224
+ | 'onDragLeave'
225
+ | 'onDragLeaveCapture'
226
+ | 'onDragOver'
227
+ | 'onDragOverCapture'
228
+ | 'onDragStart'
229
+ | 'onDragStartCapture'
230
+ | 'onDrop'
231
+ | 'onDropCapture'
232
+ | 'onDurationChange'
233
+ | 'onDurationChangeCapture'
234
+ | 'onEmptied'
235
+ | 'onEmptiedCapture'
236
+ | 'onEncrypted'
237
+ | 'onEncryptedCapture'
238
+ | 'onEnded'
239
+ | 'onEndedCapture'
240
+ | 'onError'
241
+ | 'onErrorCapture'
242
+ | 'onFocus'
243
+ | 'onFocusCapture'
244
+ | 'onGotPointerCapture'
245
+ | 'onGotPointerCaptureCapture'
246
+ | 'onInput'
247
+ | 'onInputCapture'
248
+ | 'onInvalid'
249
+ | 'onInvalidCapture'
250
+ | 'onKeyDown'
251
+ | 'onKeyDownCapture'
252
+ | 'onKeyPress'
253
+ | 'onKeyPressCapture'
254
+ | 'onKeyUp'
255
+ | 'onKeyUpCapture'
256
+ | 'onLoad'
257
+ | 'onLoadCapture'
258
+ | 'onLoadStart'
259
+ | 'onLoadStartCapture'
260
+ | 'onLoadedData'
261
+ | 'onLoadedDataCapture'
262
+ | 'onLoadedMetadata'
263
+ | 'onLoadedMetadataCapture'
264
+ | 'onLostPointerCapture'
265
+ | 'onLostPointerCaptureCapture'
266
+ | 'onMouseDown'
267
+ | 'onMouseDownCapture'
268
+ | 'onMouseEnter'
269
+ | 'onMouseLeave'
270
+ | 'onMouseMove'
271
+ | 'onMouseMoveCapture'
272
+ | 'onMouseOut'
273
+ | 'onMouseOutCapture'
274
+ | 'onMouseOver'
275
+ | 'onMouseOverCapture'
276
+ | 'onMouseUp'
277
+ | 'onMouseUpCapture'
278
+ | 'onPaste'
279
+ | 'onPasteCapture'
280
+ | 'onPause'
281
+ | 'onPauseCapture'
282
+ | 'onPlay'
283
+ | 'onPlayCapture'
284
+ | 'onPlaying'
285
+ | 'onPlayingCapture'
286
+ | 'onPointerCancel'
287
+ | 'onPointerCancelCapture'
288
+ | 'onPointerDown'
289
+ | 'onPointerDownCapture'
290
+ | 'onPointerEnter'
291
+ | 'onPointerEnterCapture'
292
+ | 'onPointerLeave'
293
+ | 'onPointerLeaveCapture'
294
+ | 'onPointerMove'
295
+ | 'onPointerMoveCapture'
296
+ | 'onPointerOut'
297
+ | 'onPointerOutCapture'
298
+ | 'onPointerOver'
299
+ | 'onPointerOverCapture'
300
+ | 'onPointerUp'
301
+ | 'onPointerUpCapture'
302
+ | 'onProgress'
303
+ | 'onProgressCapture'
304
+ | 'onRateChange'
305
+ | 'onRateChangeCapture'
306
+ | 'onReset'
307
+ | 'onResetCapture'
308
+ | 'onScroll'
309
+ | 'onScrollCapture'
310
+ | 'onSeeked'
311
+ | 'onSeekedCapture'
312
+ | 'onSeeking'
313
+ | 'onSeekingCapture'
314
+ | 'onSelect'
315
+ | 'onSelectCapture'
316
+ | 'onStalled'
317
+ | 'onStalledCapture'
318
+ | 'onSubmit'
319
+ | 'onSubmitCapture'
320
+ | 'onSuspend'
321
+ | 'onSuspendCapture'
322
+ | 'onTimeUpdate'
323
+ | 'onTimeUpdateCapture'
324
+ | 'onTouchCancel'
325
+ | 'onTouchCancelCapture'
326
+ | 'onTouchEnd'
327
+ | 'onTouchEndCapture'
328
+ | 'onTouchMove'
329
+ | 'onTouchMoveCapture'
330
+ | 'onTouchStart'
331
+ | 'onTouchStartCapture'
332
+ | 'onTransitionEnd'
333
+ | 'onTransitionEndCapture'
334
+ | 'onVolumeChange'
335
+ | 'onVolumeChangeCapture'
336
+ | 'onWaiting'
337
+ | 'onWaitingCapture'
338
+ | 'onWheel'
339
+ | 'onWheelCapture'
340
+ | 'pattern'
341
+ | 'placeholder'
342
+ | 'prefix'
343
+ | 'property'
344
+ | 'radioGroup'
345
+ | 'readOnly'
346
+ | 'resource'
347
+ | 'results'
348
+ | 'role'
349
+ | 'security'
350
+ | 'size'
351
+ | 'slot'
352
+ | 'spellCheck'
353
+ | 'src'
354
+ | 'step'
355
+ | 'style'
356
+ | 'suppressContentEditableWarning'
357
+ | 'suppressHydrationWarning'
358
+ | 'tabIndex'
359
+ | 'title'
360
+ | 'type'
361
+ | 'typeof'
362
+ | 'unselectable'
363
+ | 'vocab'
364
+ | 'width'
365
+ | keyof {
366
+ ariaLabel?: string | undefined;
367
+ isDisabled?: boolean | undefined;
368
+ isRequired?: boolean | undefined;
369
+ isInvalid?: boolean | undefined;
370
+ isChecked?: boolean | undefined;
371
+ label?: ReactNode;
372
+ onChange?:
373
+ | ((
374
+ e: ChangeEvent<HTMLInputElement>,
375
+ analyticsEvent: UIAnalyticsEvent,
376
+ ) => void)
377
+ | undefined;
378
+ value?: string | undefined;
379
+ testId?: string | undefined;
380
+ analyticsContext?: Record<string, any> | undefined;
381
+ }
382
+ > &
383
+ RefAttributes<HTMLInputElement>
384
+ >
385
+ >;
383
386
 
384
387
  // @public (undocumented)
385
388
  export function RadioGroup(props: RadioGroupProps): JSX.Element;
@@ -409,3 +412,15 @@ type RadioValue = string;
409
412
  ```
410
413
 
411
414
  <!--SECTION END: Main Entry Types-->
415
+
416
+ ### Peer Dependencies
417
+
418
+ <!--SECTION START: Peer Dependencies-->
419
+
420
+ ```json
421
+ {
422
+ "react": "^16.8.0"
423
+ }
424
+ ```
425
+
426
+ <!--SECTION END: Peer Dependencies-->