Skip to content

Commit c535187

Browse files
committedNov 7, 2022
fix: remove cyclic dependency
1 parent 13778e2 commit c535187

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
 

‎src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ import {
123123
ICheckboxProps,
124124
ICheckboxGroupProps,
125125
Radio,
126+
RadioContext,
126127
IRadioProps,
127128
IRadioValue,
128129
IRadioGroupProps,
@@ -202,6 +203,7 @@ export {
202203
Code,
203204
Checkbox,
204205
Radio,
206+
RadioContext,
205207
Column,
206208
Row,
207209
Center,

‎src/theme/styled-system.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ export const getStyleAndFilteredProps = ({
610610
let { styleFromProps, responsiveStyles }: any = getStyledFromProps(
611611
styledSystemProps,
612612
theme,
613-
currentBreakpoint
613+
currentBreakpoint,
614+
propConfig
614615
);
615616

616617
if (responsiveStyles) {

‎src/utils/getStyledFromProps.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { propConfig } from '../theme/styled-system';
21
import { hasValidBreakpointFormat } from '../theme/tools';
32
import { getRNKeyAndStyleValue } from './getRNKeyAndStyleValue';
43
import type { ITheme } from '../theme';
@@ -13,7 +12,8 @@ import type { ITheme } from '../theme';
1312
export const getStyledFromProps = (
1413
styledSystemProps: any,
1514
theme: any,
16-
currentBreakpoint: any
15+
currentBreakpoint: any,
16+
propConfig: any
1717
) => {
1818
let styleFromProps: any = {};
1919
let responsiveStyles: null | Record<

‎src/utils/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export {
1414
composeEventHandlers,
1515
};
1616
export { wrapStringChild } from './wrapStringChild';
17-
export { RadioContext } from '../components/primitives/Radio/RadioGroup';
1817
export { combineContextAndProps } from './combineContextAndProps';
1918
export type { IAccessibilityProps } from './accessibilityTypes';
2019
export { ariaAttr } from './accessibilityUtils';

0 commit comments

Comments
 (0)
Please sign in to comment.