@atlaskit/radio 5.4.1 → 5.4.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/radio.js +4 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/radio.js +4 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/radio.js +4 -3
- package/dist/esm/version.json +1 -1
- package/package.json +7 -5
- package/report.api.md +46 -14
package/CHANGELOG.md
CHANGED
package/dist/cjs/radio.js
CHANGED
|
@@ -29,11 +29,11 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
29
29
|
|
|
30
30
|
var _excluded = ["ariaLabel", "isDisabled", "isRequired", "isInvalid", "isChecked", "label", "mode", "name", "onChange", "value", "testId", "analyticsContext"];
|
|
31
31
|
var packageName = "@atlaskit/radio";
|
|
32
|
-
var packageVersion = "5.4.
|
|
32
|
+
var packageVersion = "5.4.2";
|
|
33
33
|
var fontFamily = (0, _constants.fontFamily)();
|
|
34
34
|
var noop = _noop.default;
|
|
35
35
|
var labelPaddingStyles = (0, _react2.css)({
|
|
36
|
-
padding:
|
|
36
|
+
padding: "var(--ds-scale-025, 2px)".concat(" ", "var(--ds-scale-050, 4px)")
|
|
37
37
|
});
|
|
38
38
|
var labelStyles = (0, _react2.css)({
|
|
39
39
|
display: 'flex',
|
|
@@ -65,7 +65,8 @@ var radioStyles = (0, _react2.css)({
|
|
|
65
65
|
*/
|
|
66
66
|
width: '24px',
|
|
67
67
|
height: '24px',
|
|
68
|
-
|
|
68
|
+
// TODO Delete this comment after verifying spacing token -> previous value `0`
|
|
69
|
+
margin: "var(--ds-scale-0, 0px)",
|
|
69
70
|
position: 'relative',
|
|
70
71
|
alignItems: 'center',
|
|
71
72
|
justifyContent: 'center',
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/radio.js
CHANGED
|
@@ -10,11 +10,11 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
10
10
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
11
11
|
import getRadioCustomProperties from './styles';
|
|
12
12
|
const packageName = "@atlaskit/radio";
|
|
13
|
-
const packageVersion = "5.4.
|
|
13
|
+
const packageVersion = "5.4.2";
|
|
14
14
|
const fontFamily = getFontFamily();
|
|
15
15
|
const noop = __noop;
|
|
16
16
|
const labelPaddingStyles = css({
|
|
17
|
-
padding:
|
|
17
|
+
padding: `${"var(--ds-scale-025, 2px)"} ${"var(--ds-scale-050, 4px)"}`
|
|
18
18
|
});
|
|
19
19
|
const labelStyles = css({
|
|
20
20
|
display: 'flex',
|
|
@@ -46,7 +46,8 @@ const radioStyles = css({
|
|
|
46
46
|
*/
|
|
47
47
|
width: '24px',
|
|
48
48
|
height: '24px',
|
|
49
|
-
|
|
49
|
+
// TODO Delete this comment after verifying spacing token -> previous value `0`
|
|
50
|
+
margin: "var(--ds-scale-0, 0px)",
|
|
50
51
|
position: 'relative',
|
|
51
52
|
alignItems: 'center',
|
|
52
53
|
justifyContent: 'center',
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/radio.js
CHANGED
|
@@ -12,11 +12,11 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
12
12
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
13
13
|
import getRadioCustomProperties from './styles';
|
|
14
14
|
var packageName = "@atlaskit/radio";
|
|
15
|
-
var packageVersion = "5.4.
|
|
15
|
+
var packageVersion = "5.4.2";
|
|
16
16
|
var fontFamily = getFontFamily();
|
|
17
17
|
var noop = __noop;
|
|
18
18
|
var labelPaddingStyles = css({
|
|
19
|
-
padding:
|
|
19
|
+
padding: "var(--ds-scale-025, 2px)".concat(" ", "var(--ds-scale-050, 4px)")
|
|
20
20
|
});
|
|
21
21
|
var labelStyles = css({
|
|
22
22
|
display: 'flex',
|
|
@@ -48,7 +48,8 @@ var radioStyles = css({
|
|
|
48
48
|
*/
|
|
49
49
|
width: '24px',
|
|
50
50
|
height: '24px',
|
|
51
|
-
|
|
51
|
+
// TODO Delete this comment after verifying spacing token -> previous value `0`
|
|
52
|
+
margin: "var(--ds-scale-0, 0px)",
|
|
52
53
|
position: 'relative',
|
|
53
54
|
alignItems: 'center',
|
|
54
55
|
justifyContent: 'center',
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/radio",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,13 +15,15 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
"sideEffects": false,
|
|
23
24
|
"atlaskit:src": "src/index.tsx",
|
|
24
25
|
"atlassian": {
|
|
26
|
+
"disableProductCI": true,
|
|
25
27
|
"team": "Design System Team",
|
|
26
28
|
"releaseModel": "scheduled",
|
|
27
29
|
"website": {
|
|
@@ -48,10 +50,10 @@
|
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
52
|
"@atlaskit/button": "^16.3.0",
|
|
51
|
-
"@atlaskit/checkbox": "^12.
|
|
53
|
+
"@atlaskit/checkbox": "^12.4.0",
|
|
52
54
|
"@atlaskit/docs": "^9.0.0",
|
|
53
|
-
"@atlaskit/form": "^8.
|
|
54
|
-
"@atlaskit/section-message": "^6.
|
|
55
|
+
"@atlaskit/form": "^8.6.0",
|
|
56
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
55
57
|
"@atlaskit/ssr": "*",
|
|
56
58
|
"@atlaskit/visual-regression": "*",
|
|
57
59
|
"@atlaskit/webdriver-runner": "*",
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/radio"
|
|
1
|
+
## API Report File for "@atlaskit/radio".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|
|
@@ -26,6 +28,15 @@ declare type OptionPropType = {
|
|
|
26
28
|
|
|
27
29
|
declare type OptionsPropType = Array<OptionPropType>;
|
|
28
30
|
|
|
31
|
+
/**
|
|
32
|
+
* __Radio__
|
|
33
|
+
*
|
|
34
|
+
* A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.
|
|
35
|
+
*
|
|
36
|
+
* - [Examples](https://atlassian.design/components/radio/examples)
|
|
37
|
+
* - [Code](https://atlassian.design/components/radio/code)
|
|
38
|
+
* - [Usage](https://atlassian.design/components/radio/usage)
|
|
39
|
+
*/
|
|
29
40
|
export declare const Radio: MemoExoticComponent<ForwardRefExoticComponent<
|
|
30
41
|
Pick<
|
|
31
42
|
Omit<
|
|
@@ -345,7 +356,6 @@ export declare const Radio: MemoExoticComponent<ForwardRefExoticComponent<
|
|
|
345
356
|
| 'onAnimationIterationCapture'
|
|
346
357
|
| 'onTransitionEnd'
|
|
347
358
|
| 'onTransitionEndCapture'
|
|
348
|
-
| 'css'
|
|
349
359
|
| keyof {
|
|
350
360
|
ariaLabel?: string | undefined;
|
|
351
361
|
isDisabled?: boolean | undefined;
|
|
@@ -371,30 +381,52 @@ export declare const Radio: MemoExoticComponent<ForwardRefExoticComponent<
|
|
|
371
381
|
export declare function RadioGroup(props: RadioGroupProps): JSX.Element;
|
|
372
382
|
|
|
373
383
|
declare interface RadioGroupProps {
|
|
374
|
-
/**
|
|
384
|
+
/**
|
|
385
|
+
* Once set, controls the selected value on the `RadioGroup`
|
|
386
|
+
*/
|
|
375
387
|
value?: RadioValue | null;
|
|
376
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* Sets the initial selected value on the `RadioGroup`
|
|
390
|
+
*/
|
|
377
391
|
defaultValue?: RadioValue | null;
|
|
378
|
-
/**
|
|
392
|
+
/**
|
|
393
|
+
* Sets the disabled state of all `Radio` elements in the group. Overrides the `isDisabled` setting of all child `Radio` items.
|
|
394
|
+
*/
|
|
379
395
|
isDisabled?: boolean;
|
|
380
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* Sets the required state of all `Radio` elements in the group
|
|
398
|
+
*/
|
|
381
399
|
isRequired?: boolean;
|
|
382
|
-
/**
|
|
400
|
+
/**
|
|
401
|
+
* Sets the invalid state of all `Radio` elements in the group
|
|
402
|
+
*/
|
|
383
403
|
isInvalid?: boolean;
|
|
384
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* An array of objects, each object is mapped onto a `Radio` element within the group. Name must be unique to the group.
|
|
406
|
+
*/
|
|
385
407
|
options: OptionsPropType;
|
|
386
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* Function that gets fired after each invalid event
|
|
410
|
+
*/
|
|
387
411
|
onInvalid?: (event: SyntheticEvent<any>) => void;
|
|
388
|
-
/**
|
|
412
|
+
/**
|
|
413
|
+
* Function that gets after each change event
|
|
414
|
+
*/
|
|
389
415
|
onChange?: (
|
|
390
416
|
e: React_2.ChangeEvent<HTMLInputElement>,
|
|
391
417
|
analyticsEvent: UIAnalyticsEvent,
|
|
392
418
|
) => void;
|
|
393
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* Sets the `name` prop on each of the `Radio` elements in the group
|
|
421
|
+
*/
|
|
394
422
|
name?: string;
|
|
395
|
-
/**
|
|
423
|
+
/**
|
|
424
|
+
* Additional information to be included in the `context` of analytics events that come from radio
|
|
425
|
+
*/
|
|
396
426
|
analyticsContext?: Record<string, any>;
|
|
397
|
-
/**
|
|
427
|
+
/**
|
|
428
|
+
* The id of the element that links to this radiogroup.
|
|
429
|
+
*/
|
|
398
430
|
'aria-labelledby'?: string;
|
|
399
431
|
}
|
|
400
432
|
|