Skip to content

Commit

Permalink
fix: remove cyclic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-tailor committed Nov 7, 2022
1 parent 13778e2 commit c535187
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ import {
ICheckboxProps,
ICheckboxGroupProps,
Radio,
RadioContext,
IRadioProps,
IRadioValue,
IRadioGroupProps,
Expand Down Expand Up @@ -202,6 +203,7 @@ export {
Code,
Checkbox,
Radio,
RadioContext,
Column,
Row,
Center,
Expand Down
3 changes: 2 additions & 1 deletion src/theme/styled-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ export const getStyleAndFilteredProps = ({
let { styleFromProps, responsiveStyles }: any = getStyledFromProps(
styledSystemProps,
theme,
currentBreakpoint
currentBreakpoint,
propConfig
);

if (responsiveStyles) {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/getStyledFromProps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { propConfig } from '../theme/styled-system';
import { hasValidBreakpointFormat } from '../theme/tools';
import { getRNKeyAndStyleValue } from './getRNKeyAndStyleValue';
import type { ITheme } from '../theme';
Expand All @@ -13,7 +12,8 @@ import type { ITheme } from '../theme';
export const getStyledFromProps = (
styledSystemProps: any,
theme: any,
currentBreakpoint: any
currentBreakpoint: any,
propConfig: any
) => {
let styleFromProps: any = {};
let responsiveStyles: null | Record<
Expand Down
1 change: 0 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export {
composeEventHandlers,
};
export { wrapStringChild } from './wrapStringChild';
export { RadioContext } from '../components/primitives/Radio/RadioGroup';
export { combineContextAndProps } from './combineContextAndProps';
export type { IAccessibilityProps } from './accessibilityTypes';
export { ariaAttr } from './accessibilityUtils';
Expand Down

0 comments on commit c535187

Please sign in to comment.