Skip to content

Commit b1b5579

Browse files
authored
Merge pull request #4929 from GeekyAnts/fix/radio-group-typing
Fix/radio group typing
2 parents 67e1709 + eba8f3b commit b1b5579

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier --write"
3737
]
3838
},
39-
"version": "3.4.0-rc.12",
39+
"version": "3.4.1",
4040
"license": "MIT",
4141
"private": false,
4242
"main": "lib/commonjs/index",

src/components/composites/IconButton/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ import type { ThemeComponentSizeType } from '../../../components/types/utils';
77
export interface InterfaceIconButtonProps
88
extends Omit<
99
InterfacePressableProps,
10-
'children' | 'color' | '_light' | '_dark' | '_web' | '_android' | '_ios'
10+
| 'children'
11+
| 'color'
12+
| '_light'
13+
| '_dark'
14+
| '_web'
15+
| '_android'
16+
| '_ios'
17+
| '_important'
1118
>,
1219
Omit<
1320
IIconProps,
@@ -25,6 +32,7 @@ export interface InterfaceIconButtonProps
2532
| '_web'
2633
| '_android'
2734
| '_ios'
35+
| '_important'
2836
>,
2937
PlatformProps<IIconButtonProps> {
3038
/**

src/components/primitives/Radio/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export interface IRadioGroupProps extends IStackProps {
145145
/**
146146
* Pass props will be passed to each radio.
147147
*/
148-
_radio?: IRadioProps;
148+
_radio?: Partial<IRadioProps>;
149149
}
150150
export interface IRadioContext extends IFormControlContext {
151151
colorScheme?: ColorSchemeType;

src/components/primitives/TextArea/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { PlatformProps } from '../../../components/types';
99
export interface ITextAreaProps
1010
extends Omit<
1111
InterfaceInputProps,
12-
'_web' | '_android' | '_ios' | '_light' | '_dark'
12+
'_web' | '_android' | '_ios' | '_light' | '_dark' | '_important'
1313
>,
1414
PlatformProps<ITextAreaProps> {
1515
/**

src/components/types/PlatformProps.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ export interface PlatformProps<T> {
2020
* Props only for dark mode
2121
*/
2222
_dark?: Partial<T>;
23+
/**
24+
* Props with highest specificity
25+
*/
26+
_important?: Partial<T>;
2327
}

0 commit comments

Comments
 (0)