rn-css 1.9.3 → 1.9.4
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/dist/features.d.ts +6 -4
- package/dist/index.d.ts +368 -368
- package/dist/styleComponent.d.ts +3 -2
- package/package.json +1 -1
- package/src/features.tsx +6 -4
- package/src/styleComponent.tsx +3 -3
package/dist/features.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import type { Style, Units, MediaQuery } from './types';
|
|
3
|
-
import { LayoutChangeEvent,
|
|
3
|
+
import { LayoutChangeEvent, GestureResponderEvent, TouchableHighlightProps, TextInputProps } from 'react-native';
|
|
4
4
|
/** Hook that will apply the screen size to the styles defined with vmin, vmax, vw, vh units, and handle media queries constraints */
|
|
5
5
|
export declare const useScreenSize: () => {
|
|
6
6
|
vw: number;
|
|
@@ -23,11 +23,13 @@ export declare const useActive: (onPressIn: ((event: GestureResponderEvent) => v
|
|
|
23
23
|
onResponderRelease: ((event: GestureResponderEvent) => void) | undefined;
|
|
24
24
|
onStartShouldSetResponder: ((event: GestureResponderEvent) => void) | undefined;
|
|
25
25
|
};
|
|
26
|
+
export declare type FocusEventListener = TouchableHighlightProps['onFocus'] | TextInputProps['onFocus'];
|
|
27
|
+
export declare type BlurEventListener = TouchableHighlightProps['onBlur'] | TextInputProps['onBlur'];
|
|
26
28
|
/** Hook that will apply the style reserved for active state if needed */
|
|
27
|
-
export declare const useFocus: (onFocus:
|
|
29
|
+
export declare const useFocus: (onFocus: undefined | FocusEventListener, onBlur: undefined | BlurEventListener, needsFocus: boolean) => {
|
|
28
30
|
focused: boolean;
|
|
29
|
-
onFocus:
|
|
30
|
-
onBlur:
|
|
31
|
+
onFocus: FocusEventListener;
|
|
32
|
+
onBlur: BlurEventListener;
|
|
31
33
|
};
|
|
32
34
|
/** Hook that will apply the style provided in the media queries */
|
|
33
35
|
export declare const useMediaQuery: (media: undefined | MediaQuery[], units: Units) => Style | undefined;
|