@synerise/ds-radio 0.11.71 → 0.11.73
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 +22 -0
- package/dist/Radio.d.ts +2 -2
- package/dist/Radio.js +2 -2
- package/dist/Radio.styles.d.ts +1 -1
- package/dist/Radio.styles.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.11.73](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.72...@synerise/ds-radio@0.11.73) (2024-05-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **radio:** fix margins of radio-button ([a212403](https://github.com/synerise/synerise-design/commit/a2124036492011c7867e04334bb35bcd34ebb89e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.11.72](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.71...@synerise/ds-radio@0.11.72) (2024-05-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **radio:** fixed flex for radio label ([4008f45](https://github.com/synerise/synerise-design/commit/4008f45e2f60c19afb4b0526d4dfde3205333263))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.11.71](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.70...@synerise/ds-radio@0.11.71) (2024-05-16)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @synerise/ds-radio
|
package/dist/Radio.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import '@synerise/ds-core/dist/js/style';
|
|
|
3
3
|
import './style/index.less';
|
|
4
4
|
import { RadioGroupProps } from 'antd/lib/radio';
|
|
5
5
|
import { Props } from './Radio.types';
|
|
6
|
-
declare const Radio: (({ description, ...antdRadioButtonProps }: Props) => JSX.Element) & {
|
|
6
|
+
declare const Radio: (({ description, ...antdRadioButtonProps }: Props) => React.JSX.Element) & {
|
|
7
7
|
Group: ({ children, fullWidth, big, ...props }: RadioGroupProps & {
|
|
8
8
|
fullWidth?: boolean | undefined;
|
|
9
9
|
big?: boolean | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
11
|
Button: React.ForwardRefExoticComponent<import("antd/lib/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
|
|
12
12
|
};
|
|
13
13
|
export default Radio;
|
package/dist/Radio.js
CHANGED
|
@@ -31,9 +31,9 @@ var RadioComponent = function RadioComponent(_ref2) {
|
|
|
31
31
|
var description = _ref2.description,
|
|
32
32
|
antdRadioButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
33
33
|
|
|
34
|
-
return /*#__PURE__*/React.createElement(S.RadioWrapper, null, /*#__PURE__*/React.createElement(S.AntRadio, antdRadioButtonProps), description && /*#__PURE__*/React.createElement(S.Description, {
|
|
34
|
+
return /*#__PURE__*/React.createElement(S.RadioWrapper, null, /*#__PURE__*/React.createElement(S.AntRadio, antdRadioButtonProps), /*#__PURE__*/React.createElement(S.AdditionalData, null, description && /*#__PURE__*/React.createElement(S.Description, {
|
|
35
35
|
disabled: antdRadioButtonProps.disabled
|
|
36
|
-
}, description));
|
|
36
|
+
}, description)));
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
var Radio = Object.assign(RadioComponent, {
|
package/dist/Radio.styles.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const Description: import("styled-components").StyledComponent<"d
|
|
|
4
4
|
disabled?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const AdditionalData: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const AntRadio: import("styled-components").StyledComponent<({ ...rest }: any) => JSX.Element, any, {}, never>;
|
|
7
|
+
export declare const AntRadio: import("styled-components").StyledComponent<({ ...rest }: any) => React.JSX.Element, any, {}, never>;
|
|
8
8
|
export declare const AntRadioGroup: import("styled-components").StyledComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/radio").RadioGroupProps & React.RefAttributes<HTMLDivElement>>>, any, {
|
|
9
9
|
fullWidth?: boolean | undefined;
|
|
10
10
|
big?: boolean | undefined;
|
package/dist/Radio.styles.js
CHANGED
|
@@ -13,7 +13,7 @@ export var RadioWrapper = styled.div.withConfig({
|
|
|
13
13
|
export var Description = styled.div.withConfig({
|
|
14
14
|
displayName: "Radiostyles__Description",
|
|
15
15
|
componentId: "sc-137n5jf-1"
|
|
16
|
-
})(["color:", ";", "
|
|
16
|
+
})(["color:", ";", " ", ""], function (props) {
|
|
17
17
|
return props.theme.palette['grey-600'];
|
|
18
18
|
}, function (props) {
|
|
19
19
|
return props.disabled ? "opacity: 0.4;" : '';
|
|
@@ -22,7 +22,7 @@ export var Description = styled.div.withConfig({
|
|
|
22
22
|
export var AdditionalData = styled.div.withConfig({
|
|
23
23
|
displayName: "Radiostyles__AdditionalData",
|
|
24
24
|
componentId: "sc-137n5jf-2"
|
|
25
|
-
})([""]);
|
|
25
|
+
})(["margin:4px 8px 15px 28px;"]);
|
|
26
26
|
export var AntRadio = styled(function (_ref) {
|
|
27
27
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ export var AntRadio = styled(function (_ref) {
|
|
|
30
30
|
}).withConfig({
|
|
31
31
|
displayName: "Radiostyles__AntRadio",
|
|
32
32
|
componentId: "sc-137n5jf-3"
|
|
33
|
-
})([".ant-radio{height:16px;}.ant-radio-inner::after{top:unset;left:unset;}.ant-radio-inner{position:relative;display:flex;justify-content:center;align-items:center;}"]);
|
|
33
|
+
})([".ant-radio{height:16px;}.ant-radio + span{flex-grow:1;}.ant-radio-inner::after{top:unset;left:unset;}.ant-radio-inner{position:relative;display:flex;justify-content:center;align-items:center;}"]);
|
|
34
34
|
export var AntRadioGroup = styled(AntdRadio.Group).withConfig({
|
|
35
35
|
displayName: "Radiostyles__AntRadioGroup",
|
|
36
36
|
componentId: "sc-137n5jf-4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-radio",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.73",
|
|
4
4
|
"description": "Radio UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@synerise/ds-typography": "^0.15.0",
|
|
37
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-utils": "^0.27.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@synerise/ds-core": "*",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/react": "10.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6bd94c78745df68ee3b853120a863ab24fc233ef"
|
|
49
49
|
}
|