diff --git a/package.json b/package.json index 51f73cff4..8da3da37f 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "prettier --write" ] }, - "version": "3.4.21", + "version": "3.4.22", "license": "MIT", "private": false, "main": "lib/commonjs/index", diff --git a/src/components/composites/Modal/types.ts b/src/components/composites/Modal/types.ts index 9737ecd33..fa1bab28a 100644 --- a/src/components/composites/Modal/types.ts +++ b/src/components/composites/Modal/types.ts @@ -81,8 +81,8 @@ export interface InterfaceModalProps extends InterfaceBoxProps { * Props to be passed to the Overlay used inside of Modal. */ _overlay?: IOverlayProps; - - /* If true, renders react-native native modal + /** + * If true, renders react-native native modal * @default false */ useRNModal?: boolean; diff --git a/src/components/primitives/Box/types.ts b/src/components/primitives/Box/types.ts index b5b0994b2..ab2be4277 100644 --- a/src/components/primitives/Box/types.ts +++ b/src/components/primitives/Box/types.ts @@ -14,7 +14,7 @@ export interface ILinearGradientProps { colors: Array; start?: Array; end?: Array; - location?: Array; + locations?: Array; }; } diff --git a/src/components/primitives/Checkbox/Checkbox.tsx b/src/components/primitives/Checkbox/Checkbox.tsx index d1324bc5b..a7217e5ab 100644 --- a/src/components/primitives/Checkbox/Checkbox.tsx +++ b/src/components/primitives/Checkbox/Checkbox.tsx @@ -158,6 +158,7 @@ const CheckboxComponent = React.memo( 'accessibilityRole', 'accessibilityState', 'accessibilityLabel', + 'accessibilityHint', ]); //TODO: refactor for responsive prop diff --git a/src/components/primitives/Select/Select.tsx b/src/components/primitives/Select/Select.tsx index 5e4b361d4..ee8df1e0c 100644 --- a/src/components/primitives/Select/Select.tsx +++ b/src/components/primitives/Select/Select.tsx @@ -67,7 +67,7 @@ const Select = ( onOpen, onClose, optimized, - customDropdownIconProps, + _customDropdownIconProps, _actionSheet, _actionSheetContent, _actionSheetBody, @@ -133,7 +133,7 @@ const Select = ( ) : dropdownIcon ? ( dropdownIcon ) : ( - + ); const handleClose = () => { diff --git a/src/index.tsx b/src/index.tsx index 8b93b2df7..9bd642d05 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -123,6 +123,7 @@ import { ICheckboxProps, ICheckboxGroupProps, Radio, + RadioContext, IRadioProps, IRadioValue, IRadioGroupProps, @@ -202,6 +203,7 @@ export { Code, Checkbox, Radio, + RadioContext, Column, Row, Center, diff --git a/src/theme/components/select.ts b/src/theme/components/select.ts index 3a42f28e8..5c8295b9c 100644 --- a/src/theme/components/select.ts +++ b/src/theme/components/select.ts @@ -5,7 +5,7 @@ export const Select = { start: 0, }, - customDropdownIconProps: { + _customDropdownIconProps: { color: 'muted.500', mr: '3', size: '6', @@ -26,7 +26,7 @@ export const Select = { }, _dark: { - customDropdownIconProps: { color: 'muted.400', mr: '3' }, + _customDropdownIconProps: { color: 'muted.400', mr: '3' }, _hover: { borderColor: 'primary.500', }, diff --git a/src/theme/styled-system.ts b/src/theme/styled-system.ts index 200db4c2b..575d972d4 100644 --- a/src/theme/styled-system.ts +++ b/src/theme/styled-system.ts @@ -610,7 +610,8 @@ export const getStyleAndFilteredProps = ({ let { styleFromProps, responsiveStyles }: any = getStyledFromProps( styledSystemProps, theme, - currentBreakpoint + currentBreakpoint, + propConfig ); if (responsiveStyles) { diff --git a/src/utils/getStyledFromProps.ts b/src/utils/getStyledFromProps.ts index e792165db..faf75ab24 100644 --- a/src/utils/getStyledFromProps.ts +++ b/src/utils/getStyledFromProps.ts @@ -1,4 +1,3 @@ -import { propConfig } from '../theme/styled-system'; import { hasValidBreakpointFormat } from '../theme/tools'; import { getRNKeyAndStyleValue } from './getRNKeyAndStyleValue'; import type { ITheme } from '../theme'; @@ -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< diff --git a/src/utils/index.ts b/src/utils/index.ts index d708fd2f7..cc367192a 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -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';