@atlaskit/radio 5.5.0 → 5.5.1
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/Radio/package.json +2 -2
- package/RadioGroup/package.json +2 -2
- package/dist/cjs/radio.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/radio.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/radio.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +6 -6
- package/package.json +12 -4
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/Radio/package.json
CHANGED
package/RadioGroup/package.json
CHANGED
package/dist/cjs/radio.js
CHANGED
|
@@ -18,7 +18,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
18
18
|
var _excluded = ["ariaLabel", "isDisabled", "isRequired", "isInvalid", "isChecked", "label", "mode", "name", "onChange", "value", "testId", "analyticsContext"];
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
var packageName = "@atlaskit/radio";
|
|
21
|
-
var packageVersion = "5.5.
|
|
21
|
+
var packageVersion = "5.5.1";
|
|
22
22
|
var fontFamily = (0, _constants.fontFamily)();
|
|
23
23
|
var noop = _noop.default;
|
|
24
24
|
var labelPaddingStyles = (0, _react2.css)({
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/radio.js
CHANGED
|
@@ -9,7 +9,7 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
9
9
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
10
10
|
import getRadioCustomProperties from './styles';
|
|
11
11
|
const packageName = "@atlaskit/radio";
|
|
12
|
-
const packageVersion = "5.5.
|
|
12
|
+
const packageVersion = "5.5.1";
|
|
13
13
|
const fontFamily = getFontFamily();
|
|
14
14
|
const noop = __noop;
|
|
15
15
|
const labelPaddingStyles = css({
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/radio.js
CHANGED
|
@@ -11,7 +11,7 @@ import GlobalTheme from '@atlaskit/theme/components';
|
|
|
11
11
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
12
12
|
import getRadioCustomProperties from './styles';
|
|
13
13
|
var packageName = "@atlaskit/radio";
|
|
14
|
-
var packageVersion = "5.5.
|
|
14
|
+
var packageVersion = "5.5.1";
|
|
15
15
|
var fontFamily = getFontFamily();
|
|
16
16
|
var noop = __noop;
|
|
17
17
|
var labelPaddingStyles = css({
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
export
|
|
3
|
+
export type OptionPropType = {
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
label?: ReactNode;
|
|
6
6
|
name?: string;
|
|
7
7
|
value?: RadioValue;
|
|
8
8
|
testId?: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
10
|
+
export type OptionsPropType = Array<OptionPropType>;
|
|
11
|
+
export type RadioValue = string;
|
|
12
|
+
type OwnProps = {
|
|
13
13
|
/**
|
|
14
14
|
* the aria-label attribute associated with the radio element
|
|
15
15
|
*/
|
|
@@ -54,8 +54,8 @@ declare type OwnProps = {
|
|
|
54
54
|
*/
|
|
55
55
|
analyticsContext?: Record<string, any>;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
export
|
|
57
|
+
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
58
|
+
export type RadioProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'aria-label' | 'disabled' | 'required' | 'checked' | 'value'>, OwnProps> & WithAnalyticsEventsProps;
|
|
59
59
|
export interface ExtractReactTypeProps extends WithAnalyticsEventsProps {
|
|
60
60
|
/**
|
|
61
61
|
* the aria-label attribute associated with the radio element
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/radio",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
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/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -32,7 +40,7 @@
|
|
|
32
40
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
33
41
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
34
42
|
"@atlaskit/theme": "^12.5.0",
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
44
|
"@babel/runtime": "^7.0.0",
|
|
37
45
|
"@emotion/react": "^11.7.1"
|
|
38
46
|
},
|
|
@@ -41,7 +49,7 @@
|
|
|
41
49
|
},
|
|
42
50
|
"devDependencies": {
|
|
43
51
|
"@atlaskit/button": "^16.7.0",
|
|
44
|
-
"@atlaskit/checkbox": "^12.
|
|
52
|
+
"@atlaskit/checkbox": "^12.6.0",
|
|
45
53
|
"@atlaskit/docs": "^9.1.0",
|
|
46
54
|
"@atlaskit/form": "^8.11.0",
|
|
47
55
|
"@atlaskit/section-message": "^6.4.0",
|
|
@@ -52,7 +60,7 @@
|
|
|
52
60
|
"@testing-library/react": "^12.1.5",
|
|
53
61
|
"react-dom": "^16.8.0",
|
|
54
62
|
"storybook-addon-performance": "^0.16.0",
|
|
55
|
-
"typescript": "4.
|
|
63
|
+
"typescript": "~4.9.5"
|
|
56
64
|
},
|
|
57
65
|
"keywords": [
|
|
58
66
|
"atlaskit",
|