@synerise/ds-radio 0.11.64 → 0.11.65

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 CHANGED
@@ -3,6 +3,17 @@
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.65](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.64...@synerise/ds-radio@0.11.65) (2024-04-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **radio:** fix dot inside to be in center ([55d6f7c](https://github.com/synerise/synerise-design/commit/55d6f7c86a33ed92312a416e804b98175ddf944b))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.11.64](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@0.11.63...@synerise/ds-radio@0.11.64) (2024-04-03)
7
18
 
8
19
 
package/dist/Radio.js CHANGED
@@ -31,7 +31,7 @@ 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(AntdRadio, antdRadioButtonProps), /*#__PURE__*/React.createElement(S.AdditionalData, null, 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
36
  }, description)));
37
37
  };
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const RadioWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const Description: import("styled-components").StyledComponent<"div", any, {
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 AntRadioGroup: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd/lib/radio").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>, any, {
7
+ export declare const AntRadio: import("styled-components").StyledComponent<({ ...rest }: any) => JSX.Element, any, {}, never>;
8
+ export declare const AntRadioGroup: import("styled-components").StyledComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/radio").RadioGroupProps & React.RefAttributes<HTMLDivElement>>>, any, {
8
9
  fullWidth?: boolean | undefined;
9
10
  big?: boolean | undefined;
10
11
  }, never>;
@@ -1,13 +1,16 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  import styled, { css } from 'styled-components';
2
4
  import AntdRadio from 'antd/lib/radio';
3
5
  import { macro } from '@synerise/ds-typography/';
6
+ import React from 'react';
4
7
  export var RadioWrapper = styled.div.withConfig({
5
8
  displayName: "Radiostyles__RadioWrapper",
6
- componentId: "pyik4d-0"
9
+ componentId: "sc-137n5jf-0"
7
10
  })(["&{display:block;margin-bottom:15px;}"]);
8
11
  export var Description = styled.div.withConfig({
9
12
  displayName: "Radiostyles__Description",
10
- componentId: "pyik4d-1"
13
+ componentId: "sc-137n5jf-1"
11
14
  })(["color:", ";", " ", ""], function (props) {
12
15
  return props.theme.palette['grey-600'];
13
16
  }, function (props) {
@@ -15,11 +18,19 @@ export var Description = styled.div.withConfig({
15
18
  }, macro.small);
16
19
  export var AdditionalData = styled.div.withConfig({
17
20
  displayName: "Radiostyles__AdditionalData",
18
- componentId: "pyik4d-2"
21
+ componentId: "sc-137n5jf-2"
19
22
  })(["margin:4px 8px 15px 28px;"]);
23
+ export var AntRadio = styled(function (_ref) {
24
+ var rest = _extends({}, _ref);
25
+
26
+ return /*#__PURE__*/React.createElement(AntdRadio, rest);
27
+ }).withConfig({
28
+ displayName: "Radiostyles__AntRadio",
29
+ componentId: "sc-137n5jf-3"
30
+ })([".ant-radio-inner{position:relative;display:flex;justify-content:center;align-items:center;}.ant-radio-inner::after{position:unset;display:flex;justify-content:center;align-items:center;}"]);
20
31
  export var AntRadioGroup = styled(AntdRadio.Group).withConfig({
21
32
  displayName: "Radiostyles__AntRadioGroup",
22
- componentId: "pyik4d-3"
33
+ componentId: "sc-137n5jf-4"
23
34
  })(["", ""], function (props) {
24
35
  return props.fullWidth && css(["&&{display:flex;width:100%;label{flex:1;height:", ";display:flex;align-items:center;justify-content:center;font-weight:500;}}"], props.big ? '48px' : '32px');
25
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-radio",
3
- "version": "0.11.64",
3
+ "version": "0.11.65",
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.14.3",
37
- "@synerise/ds-utils": "^0.26.2"
37
+ "@synerise/ds-utils": "^0.26.3"
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": "7506652551b234c2e30e3bb492d56ab822bdb5a1"
48
+ "gitHead": "fcc57aef73d1309a366e4c6e80ce4defdd9f20f8"
49
49
  }