@semcore/radio 16.1.1 → 17.0.0-prerelease.18

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.
@@ -1,5 +1,5 @@
1
- import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
2
- import type { Box, BoxProps, Flex } from '@semcore/flex-box';
1
+ import type { Box, BoxProps, Flex } from '@semcore/base-components';
2
+ import type { PropGetterFn, Intergalactic } from '@semcore/core';
3
3
  import type { Text } from '@semcore/typography';
4
4
  import type React from 'react';
5
5
 
@@ -7,8 +7,6 @@ export type RadioSize = 'm' | 'l';
7
7
  export type RadioState = 'normal' | 'invalid';
8
8
  export type RadioValue = string | number | boolean;
9
9
 
10
- /** @deprecated */
11
- export interface IRadioProps extends RadioProps, UnknownProperties {}
12
10
  export type RadioProps = BoxProps & {
13
11
  /** Radio item value **/
14
12
  value?: RadioValue;
@@ -34,13 +32,6 @@ export type RadioProps = BoxProps & {
34
32
  disabled?: boolean;
35
33
  };
36
34
 
37
- /** @deprecated */
38
- export interface IRadioGroupProps extends RadioGroupProps, UnknownProperties {
39
- /**
40
- * HTML tag name for the displayed item
41
- */
42
- tag?: React.ElementType | string;
43
- }
44
35
  export type RadioGroupProps<T extends RadioValue = RadioValue> = {
45
36
  /** Radio group name */
46
37
  name?: string;
@@ -60,51 +51,11 @@ export type RadioGroupProps<T extends RadioValue = RadioValue> = {
60
51
  disabled?: boolean;
61
52
  };
62
53
 
63
- /** @deprecated */
64
- export interface IRadioValueProps extends RadioValueProps, UnknownProperties {}
65
54
  export type RadioValueProps = BoxProps & {
66
55
  /** List of elements that can be put on a hidden input */
67
56
  includeInputProps?: string[];
68
- /**
69
- * @deprecated set `state` on root Radio instead
70
- * The value displaying the state of the component
71
- * @default normal
72
- */
73
- state?: RadioState;
74
- /**
75
- * @deprecated
76
- * The theme of the radio button that you can send your color to
77
- */
78
- theme?: string;
79
- /**
80
- * @deprecated set `size` on root RadioGroup instead
81
- * Radio button size
82
- */
83
- size?: RadioSize;
84
- /**
85
- * @deprecated set `value` on root Radio instead
86
- * The element value is required for RadioGroup
87
- */
88
- value?: RadioValue;
89
- /**
90
- * @deprecated set `defaultValue` on root RadioGroup instead
91
- * Default value if `value` property is not provided
92
- */
93
- defaultValue?: RadioValue;
94
- /**
95
- * @deprecated set `onChange` on root RadioGroup instead
96
- * Called when the value changes
97
- */
98
- onChange?: (value: boolean, e?: React.SyntheticEvent<HTMLInputElement>) => void;
99
- /**
100
- * @deprecated set `disabled` on root Radio instead
101
- * Blocks access and changes to the form field
102
- */
103
- disabled?: boolean;
104
57
  };
105
58
 
106
- /** @deprecated */
107
- export interface IRadioCtx extends RadioCtx, UnknownProperties {}
108
59
  export type RadioCtx = {
109
60
  getValueProps: PropGetterFn;
110
61
  getTextProps: PropGetterFn;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/radio",
3
3
  "description": "Semrush Radio Component",
4
- "version": "16.1.1",
4
+ "version": "17.0.0-prerelease.18",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,11 +14,10 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/flex-box": "16.0.11",
18
- "@semcore/typography": "16.3.1"
17
+ "@semcore/typography": "^16.3.3-prerelease.18"
19
18
  },
20
19
  "peerDependencies": {
21
- "@semcore/base-components": "^16.0.0"
20
+ "@semcore/base-components": "^17.0.0-prerelease.18"
22
21
  },
23
22
  "repository": {
24
23
  "type": "git",
@@ -26,7 +25,8 @@
26
25
  "directory": "semcore/radio"
27
26
  },
28
27
  "devDependencies": {
29
- "@semcore/core": "16.5.1",
28
+ "@semcore/core": "17.0.0-prerelease.18",
29
+ "@semcore/base-components": "17.0.0-prerelease.18",
30
30
  "@semcore/testing-utils": "1.0.0"
31
31
  },
32
32
  "scripts": {