@synerise/ds-radio 0.11.76 → 0.12.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 +19 -0
- package/dist/Radio.d.ts +4 -8
- package/dist/Radio.js +5 -9
- package/dist/Radio.types.d.ts +8 -3
- package/dist/index.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.12.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.12.0...@synerise/ds-radio@0.12.1) (2024-09-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-radio
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.12.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.76...@synerise/ds-radio@0.12.0) (2024-08-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **storybook7:** added radio stories ([e915c0e](https://github.com/synerise/synerise-design/commit/e915c0ecb933a57899d7e2fc0c1de9d2b620a8cc))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.11.76](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.75...@synerise/ds-radio@0.11.76) (2024-08-06)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-radio
|
package/dist/Radio.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import '@synerise/ds-core/dist/js/style';
|
|
3
3
|
import './style/index.less';
|
|
4
|
-
import { RadioGroupProps } from '
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Group: ({ children, fullWidth, big, ...props }: RadioGroupProps & {
|
|
8
|
-
fullWidth?: boolean | undefined;
|
|
9
|
-
big?: boolean | undefined;
|
|
10
|
-
}) => React.JSX.Element;
|
|
4
|
+
import { RadioProps, RadioGroupProps } from './Radio.types';
|
|
5
|
+
declare const Radio: (({ description, ...antdRadioButtonProps }: RadioProps) => React.JSX.Element) & {
|
|
6
|
+
Group: ({ children, fullWidth, big, ...props }: RadioGroupProps) => React.JSX.Element;
|
|
11
7
|
Button: React.ForwardRefExoticComponent<import("antd/lib/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
|
|
12
8
|
};
|
|
13
9
|
export default Radio;
|
package/dist/Radio.js
CHANGED
|
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
5
5
|
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import '@synerise/ds-core/dist/js/style';
|
|
10
10
|
import "./style/index.css";
|
|
11
11
|
import AntdRadio from 'antd/lib/radio';
|
|
@@ -17,14 +17,10 @@ var Group = function Group(_ref) {
|
|
|
17
17
|
big = _ref.big,
|
|
18
18
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
19
19
|
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
fullWidth: fullWidth,
|
|
25
|
-
big: big
|
|
26
|
-
}, props), children)
|
|
27
|
-
);
|
|
20
|
+
return /*#__PURE__*/React.createElement(S.AntRadioGroup, _extends({
|
|
21
|
+
fullWidth: fullWidth,
|
|
22
|
+
big: big
|
|
23
|
+
}, props), children);
|
|
28
24
|
};
|
|
29
25
|
|
|
30
26
|
var RadioComponent = function RadioComponent(_ref2) {
|
package/dist/Radio.types.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { RadioProps } from 'antd/lib/radio';
|
|
3
|
-
export
|
|
2
|
+
import { RadioProps as AntdRadioProps, RadioGroupProps as AntdRadioGroupProps } from 'antd/lib/radio';
|
|
3
|
+
export type RadioProps = AntdRadioProps & {
|
|
4
4
|
description?: ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export type Props = RadioProps;
|
|
7
|
+
export type RadioGroupProps = AntdRadioGroupProps & {
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
big?: boolean;
|
|
10
|
+
};
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-radio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
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.1",
|
|
37
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-utils": "^0.29.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@synerise/ds-core": "*",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"react": ">=16.9.0 <= 17.0.2",
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6fe94d574f25c5267c7593dec9399527f441b23a"
|
|
46
46
|
}
|