react-native-molecules 0.5.0-beta.15 → 0.5.0-beta.16
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,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createContext,
|
|
3
2
|
forwardRef,
|
|
4
3
|
memo,
|
|
5
4
|
type ReactElement,
|
|
@@ -14,7 +13,7 @@ import { useControlledValue } from '../../hooks';
|
|
|
14
13
|
import type { WithElements } from '../../types';
|
|
15
14
|
import { extractSubcomponents } from '../../utils/extractSubcomponents';
|
|
16
15
|
import { AccordionContext } from './Accordion';
|
|
17
|
-
import { accordionItemStyles } from './utils';
|
|
16
|
+
import { AccordionItemContext, accordionItemStyles } from './utils';
|
|
18
17
|
|
|
19
18
|
export type Props = Omit<ViewProps, 'children'> &
|
|
20
19
|
WithElements<ReactNode> & {
|
|
@@ -95,11 +94,6 @@ const AccordionItem = memo(
|
|
|
95
94
|
),
|
|
96
95
|
);
|
|
97
96
|
|
|
98
|
-
export const AccordionItemContext = createContext({
|
|
99
|
-
expanded: false,
|
|
100
|
-
onExpandedChange: (_expanded: boolean) => {},
|
|
101
|
-
});
|
|
102
|
-
|
|
103
97
|
AccordionItem.displayName = 'AccordionItem';
|
|
104
98
|
|
|
105
99
|
export default AccordionItem;
|
|
@@ -7,5 +7,5 @@ export const DatePickerInput = getRegisteredComponentWithFallback(
|
|
|
7
7
|
);
|
|
8
8
|
|
|
9
9
|
export type { DatePickerInputProps } from './types';
|
|
10
|
-
export { DatePickerInputContext, datePickerInputStyles } from './utils';
|
|
11
10
|
export type { DatePickerInputContextType } from './utils';
|
|
11
|
+
export { DatePickerInputContext, datePickerInputStyles } from './utils';
|
|
@@ -4,5 +4,5 @@ import FilePickerDefault from './FilePicker';
|
|
|
4
4
|
export const FilePicker = getRegisteredComponentWithFallback('FilePicker', FilePickerDefault);
|
|
5
5
|
|
|
6
6
|
export type { Props as FilePickerProps } from './FilePicker';
|
|
7
|
-
export { FilePickerContext, defaultStyles } from './utils';
|
|
8
7
|
export type { FilePickerContextType } from './utils';
|
|
8
|
+
export { defaultStyles, FilePickerContext } from './utils';
|