@synerise/ds-radio 1.1.2 → 1.1.4

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,14 @@
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
+ ## [1.1.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@1.1.3...@synerise/ds-radio@1.1.4) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-radio
9
+
10
+ ## [1.1.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@1.1.2...@synerise/ds-radio@1.1.3) (2026-03-24)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-radio
13
+
6
14
  ## [1.1.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-radio@1.1.1...@synerise/ds-radio@1.1.2) (2026-03-20)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-radio
package/dist/Radio.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- import React from 'react';
2
- import '@synerise/ds-core/dist/js/style';
3
- import { type RadioGroupProps, type RadioProps } from './Radio.types';
4
- import './style/index.less';
1
+ import { default as React } from 'react';
2
+ import { RadioGroupProps, RadioProps } from './Radio.types';
5
3
  declare const Radio: (({ description, label, children, ...antdRadioButtonProps }: RadioProps) => React.JSX.Element) & {
6
4
  Group: ({ children, fullWidth, big, ...props }: RadioGroupProps) => React.JSX.Element;
7
- Button: React.ForwardRefExoticComponent<import("antd/lib/radio/radioButton").RadioButtonProps & React.RefAttributes<any>>;
5
+ Button: React.ForwardRefExoticComponent<import('antd/lib/radio/radioButton').RadioButtonProps & React.RefAttributes<any>>;
8
6
  };
9
7
  export default Radio;
package/dist/Radio.js CHANGED
@@ -1,35 +1,30 @@
1
- var _excluded = ["children", "fullWidth", "big"],
2
- _excluded2 = ["description", "label", "children"];
3
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
- import AntdRadio from 'antd/lib/radio';
6
- import React from 'react';
7
- import '@synerise/ds-core/dist/js/style';
8
- import * as S from './Radio.styles';
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import AntdRadio from "antd/lib/radio";
3
+ import { RadioWrapper, AntRadio, Label, AdditionalData, Description, AntRadioGroup } from "./Radio.styles.js";
9
4
  import "./style/index.css";
10
- var Group = function Group(_ref) {
11
- var children = _ref.children,
12
- fullWidth = _ref.fullWidth,
13
- big = _ref.big,
14
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement(S.AntRadioGroup, _extends({
16
- fullWidth: fullWidth,
17
- big: big
18
- }, props), children);
5
+ const Group = ({
6
+ children,
7
+ fullWidth,
8
+ big,
9
+ ...props
10
+ }) => {
11
+ return /* @__PURE__ */ jsx(AntRadioGroup, { fullWidth, big, ...props, children });
19
12
  };
20
- var RadioComponent = function RadioComponent(_ref2) {
21
- var description = _ref2.description,
22
- label = _ref2.label,
23
- children = _ref2.children,
24
- antdRadioButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
25
- return /*#__PURE__*/React.createElement(S.RadioWrapper, null, /*#__PURE__*/React.createElement(S.AntRadio, antdRadioButtonProps, label ? /*#__PURE__*/React.createElement(S.Label, {
26
- disabled: antdRadioButtonProps.disabled
27
- }, label) : children), description && /*#__PURE__*/React.createElement(S.AdditionalData, null, /*#__PURE__*/React.createElement(S.Description, {
28
- disabled: antdRadioButtonProps.disabled
29
- }, description)));
13
+ const RadioComponent = ({
14
+ description,
15
+ label,
16
+ children,
17
+ ...antdRadioButtonProps
18
+ }) => {
19
+ return /* @__PURE__ */ jsxs(RadioWrapper, { children: [
20
+ /* @__PURE__ */ jsx(AntRadio, { ...antdRadioButtonProps, children: label ? /* @__PURE__ */ jsx(Label, { disabled: antdRadioButtonProps.disabled, children: label }) : children }),
21
+ description && /* @__PURE__ */ jsx(AdditionalData, { children: /* @__PURE__ */ jsx(Description, { disabled: antdRadioButtonProps.disabled, children: description }) })
22
+ ] });
30
23
  };
31
- var Radio = Object.assign(RadioComponent, {
32
- Group: Group,
24
+ const Radio = Object.assign(RadioComponent, {
25
+ Group,
33
26
  Button: AntdRadio.Button
34
27
  });
35
- export default Radio;
28
+ export {
29
+ Radio as default
30
+ };
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- export declare const RadioWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const Description: import("styled-components").StyledComponent<"div", any, {
1
+ import { default as React } from 'react';
2
+ export declare const RadioWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const Description: import('styled-components').StyledComponent<"div", any, {
4
4
  disabled?: boolean;
5
5
  }, never>;
6
- export declare const Label: import("styled-components").StyledComponent<({ id, label, tooltip, tooltipConfig, children, ...htmlAttributes }: import("@synerise/ds-form-field").FormFieldLabelProps) => React.JSX.Element, any, {
6
+ export declare const Label: import('styled-components').StyledComponent<({ id, label, tooltip, tooltipConfig, children, ...htmlAttributes }: import('@synerise/ds-form-field').FormFieldLabelProps) => React.JSX.Element, any, {
7
7
  disabled?: boolean;
8
8
  }, never>;
9
- export declare const AdditionalData: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const AntRadio: import("styled-components").StyledComponent<({ ...rest }: any) => React.JSX.Element, any, {}, never>;
11
- export declare const AntRadioGroup: import("styled-components").StyledComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/radio").RadioGroupProps & React.RefAttributes<HTMLDivElement>>>, any, {
9
+ export declare const AdditionalData: import('styled-components').StyledComponent<"div", any, {}, never>;
10
+ export declare const AntRadio: import('styled-components').StyledComponent<({ ...rest }: any) => React.JSX.Element, any, {}, never>;
11
+ export declare const AntRadioGroup: import('styled-components').StyledComponent<React.MemoExoticComponent<React.ForwardRefExoticComponent<import('antd/lib/radio').RadioGroupProps & React.RefAttributes<HTMLDivElement>>>, any, {
12
12
  fullWidth?: boolean;
13
13
  big?: boolean;
14
14
  }, never>;
@@ -1,44 +1,39 @@
1
- function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- import AntdRadio from 'antd/lib/radio';
4
- import React from 'react';
5
- import styled, { css } from 'styled-components';
6
- import { FormFieldLabel } from '@synerise/ds-form-field';
7
- import { macro } from '@synerise/ds-typography/';
8
- export var RadioWrapper = styled.div.withConfig({
1
+ import { jsx } from "react/jsx-runtime";
2
+ import AntdRadio from "antd/lib/radio";
3
+ import styled, { css } from "styled-components";
4
+ import { FormFieldLabel } from "@synerise/ds-form-field";
5
+ import { macro } from "@synerise/ds-typography/";
6
+ const RadioWrapper = /* @__PURE__ */ styled.div.withConfig({
9
7
  displayName: "Radiostyles__RadioWrapper",
10
8
  componentId: "sc-137n5jf-0"
11
9
  })(["&{display:block;margin-bottom:15px;}"]);
12
- export var Description = styled.div.withConfig({
10
+ const Description = /* @__PURE__ */ styled.div.withConfig({
13
11
  displayName: "Radiostyles__Description",
14
12
  componentId: "sc-137n5jf-1"
15
- })(["color:", ";", " ", ""], function (props) {
16
- return props.theme.palette['grey-600'];
17
- }, function (props) {
18
- return props.disabled ? "opacity: 0.4;" : '';
19
- }, macro.small);
20
- export var Label = styled(FormFieldLabel).withConfig({
13
+ })(["color:", ";", " ", ""], (props) => props.theme.palette["grey-600"], (props) => props.disabled ? `opacity: 0.4;` : "", macro.small);
14
+ const Label = /* @__PURE__ */ styled(FormFieldLabel).withConfig({
21
15
  displayName: "Radiostyles__Label",
22
16
  componentId: "sc-137n5jf-2"
23
- })(["", ""], function (props) {
24
- return props.disabled ? "opacity: 0.4;" : '';
25
- });
26
-
27
- // @deprecated - all styles are now defined in Description
28
- export var AdditionalData = styled.div.withConfig({
17
+ })(["", ""], (props) => props.disabled ? `opacity: 0.4;` : "");
18
+ const AdditionalData = /* @__PURE__ */ styled.div.withConfig({
29
19
  displayName: "Radiostyles__AdditionalData",
30
20
  componentId: "sc-137n5jf-3"
31
21
  })(["margin:4px 8px 15px 28px;"]);
32
- export var AntRadio = styled(function (_ref) {
33
- var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
34
- return /*#__PURE__*/React.createElement(AntdRadio, rest);
35
- }).withConfig({
22
+ const AntRadio = /* @__PURE__ */ styled(({
23
+ ...rest
24
+ }) => /* @__PURE__ */ jsx(AntdRadio, { ...rest })).withConfig({
36
25
  displayName: "Radiostyles__AntRadio",
37
26
  componentId: "sc-137n5jf-4"
38
27
  })([".ant-radio{height:16px;top:0;}.ant-radio + span{flex-grow:1;}"]);
39
- export var AntRadioGroup = styled(AntdRadio.Group).withConfig({
28
+ const AntRadioGroup = /* @__PURE__ */ styled(AntdRadio.Group).withConfig({
40
29
  displayName: "Radiostyles__AntRadioGroup",
41
30
  componentId: "sc-137n5jf-5"
42
- })(["", ""], function (props) {
43
- 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');
44
- });
31
+ })(["", ""], (props) => 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"));
32
+ export {
33
+ AdditionalData,
34
+ AntRadio,
35
+ AntRadioGroup,
36
+ Description,
37
+ Label,
38
+ RadioWrapper
39
+ };
@@ -1,5 +1,5 @@
1
- import { type RadioGroupProps as AntdRadioGroupProps, type RadioProps as AntdRadioProps } from 'antd/lib/radio';
2
- import { type ReactNode } from 'react';
1
+ import { RadioGroupProps as AntdRadioGroupProps, RadioProps as AntdRadioProps } from 'antd/lib/radio';
2
+ import { ReactNode } from 'react';
3
3
  export type RadioProps = AntdRadioProps & {
4
4
  description?: ReactNode;
5
5
  label?: ReactNode;
@@ -1 +1 @@
1
- export {};
1
+
File without changes
package/dist/index.js CHANGED
@@ -1 +1,4 @@
1
- export { default } from './Radio';
1
+ import { default as default2 } from "./Radio.js";
2
+ export {
3
+ default2 as default
4
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-radio",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Radio UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
19
+ "build": "vite build",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
- "build:watch": "pnpm run build:js -- --watch",
22
+ "build:watch": "vite build --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "pnpm run build",
@@ -35,8 +35,8 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-form-field": "^1.3.9",
39
- "@synerise/ds-typography": "^1.1.12"
38
+ "@synerise/ds-form-field": "^1.3.11",
39
+ "@synerise/ds-typography": "^1.1.14"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
@@ -44,5 +44,5 @@
44
44
  "react": ">=16.9.0 <= 18.3.1",
45
45
  "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
47
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
48
48
  }