react-native-ui-lib 7.37.2-snapshot.6173 → 7.37.2-snapshot.6187

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.37.2-snapshot.6173",
3
+ "version": "7.37.2-snapshot.6187",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -1,4 +1,6 @@
1
1
  import { PickerProps } from '../types';
2
- type UsePickerMigrationWarnings = Pick<PickerProps, 'children' | 'migrate' | 'getItemLabel' | 'getItemValue' | 'onShow'>;
2
+ type UsePickerMigrationWarnings = Pick<PickerProps, 'children' | 'getItemLabel' | 'getItemValue' | 'onShow'> & {
3
+ migrate?: boolean;
4
+ };
3
5
  declare const usePickerMigrationWarnings: (props: UsePickerMigrationWarnings) => void;
4
6
  export default usePickerMigrationWarnings;
@@ -1,8 +1,9 @@
1
1
  import { RefObject } from 'react';
2
2
  import { PickerProps, PickerValue, PickerSingleValue, PickerMultiValue } from '../types';
3
- interface UsePickerSelectionProps extends Pick<PickerProps, 'migrate' | 'value' | 'onChange' | 'getItemValue' | 'topBarProps' | 'mode'> {
3
+ interface UsePickerSelectionProps extends Pick<PickerProps, 'value' | 'onChange' | 'getItemValue' | 'topBarProps' | 'mode'> {
4
4
  pickerExpandableRef: RefObject<any>;
5
5
  setSearchValue: (searchValue: string) => void;
6
+ migrate?: boolean;
6
7
  }
7
8
  declare const usePickerSelection: (props: UsePickerSelectionProps) => {
8
9
  multiDraftValue: PickerMultiValue;
@@ -8,8 +8,12 @@ type PickerStatics = {
8
8
  fieldTypes: typeof PickerFieldTypes;
9
9
  extractPickerItems: typeof extractPickerItems;
10
10
  };
11
- declare const Picker: React.ForwardRefExoticComponent<PickerProps & React.RefAttributes<unknown>>;
11
+ declare const Picker: React.ForwardRefExoticComponent<(PickerProps & {
12
+ migrate?: boolean | undefined;
13
+ }) & React.RefAttributes<unknown>>;
12
14
  export { PickerProps, PickerItemProps, PickerValue, PickerModes, PickerFieldTypes, PickerSearchStyle, RenderCustomModalProps, PickerItemsListProps, PickerMethods };
13
15
  export { Picker };
14
- declare const _default: React.ForwardRefExoticComponent<PickerProps & React.RefAttributes<unknown>> & PickerStatics;
16
+ declare const _default: React.ForwardRefExoticComponent<(PickerProps & {
17
+ migrate?: boolean | undefined;
18
+ }) & React.RefAttributes<unknown>> & PickerStatics;
15
19
  export default _default;
@@ -34,11 +34,6 @@ export interface PickerSearchStyle {
34
34
  selectionColor?: string;
35
35
  }
36
36
  type PickerPropsDeprecation = {
37
- /**
38
- * @deprecated
39
- * Temporary prop required for migration to Picker's new API
40
- */
41
- migrate?: boolean;
42
37
  /**
43
38
  * @deprecated
44
39
  * A function that extract the unique value out of the value prop in case value has a custom structure (e.g. {myValue, myLabel})
@@ -281,11 +276,12 @@ export interface PickerItemProps extends Pick<TouchableOpacityProps, 'customValu
281
276
  */
282
277
  testID?: string;
283
278
  }
284
- export interface PickerContextProps extends Pick<PickerProps, 'migrate' | 'value' | 'getItemValue' | 'getItemLabel' | 'renderItem' | 'selectionLimit'> {
279
+ export interface PickerContextProps extends Pick<PickerProps, 'value' | 'getItemValue' | 'getItemLabel' | 'renderItem' | 'selectionLimit'> {
285
280
  onPress: (value: PickerSingleValue) => void;
286
281
  isMultiMode: boolean;
287
282
  onSelectedLayout: (event: any) => any;
288
283
  selectionLimit: PickerProps['selectionLimit'];
284
+ migrate?: boolean;
289
285
  }
290
286
  export type PickerItemsListProps = Pick<PropsWithChildren<PickerProps>, 'topBarProps' | 'listProps' | 'renderHeader' | 'useSafeArea' | 'showLoader' | 'customLoaderElement' | 'renderCustomTopElement' | 'showSearch' | 'searchStyle' | 'searchPlaceholder' | 'onSearchChange' | 'renderCustomSearch' | 'children' | 'useWheelPicker' | 'useDialog' | 'mode' | 'testID'> & {
291
287
  items?: {