@hero-design/rn 8.87.2 → 8.88.0
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +12 -0
- package/es/index.js +109 -50
- package/lib/index.js +109 -50
- package/package.json +1 -1
- package/src/components/AppCue/StyledAppCue.tsx +27 -1
- package/src/components/AppCue/__tests__/StyledAppCue.tsx +4 -0
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +194 -0
- package/src/components/AppCue/__tests__/__snapshots__/index.spec.tsx.snap +260 -0
- package/src/components/AppCue/__tests__/index.spec.tsx +4 -0
- package/src/components/AppCue/__tests__/utils.spec.ts +57 -4
- package/src/components/AppCue/index.tsx +7 -4
- package/src/components/AppCue/utils.ts +60 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +18 -15
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +6 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -10
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Empty/index.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -35
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +36 -30
- package/src/components/TextInput/StyledTextInput.tsx +4 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +20 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +446 -432
- package/src/components/TextInput/index.tsx +13 -32
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -10
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -10
- package/stats/8.88.0/rn-stats.html +4844 -0
- package/types/components/AppCue/StyledAppCue.d.ts +1 -1
- package/types/components/AppCue/utils.d.ts +6 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View, Animated } from 'react-native';
|
|
2
|
-
export type Placement = 'top' | 'bottom' | 'right' | 'left';
|
|
2
|
+
export type Placement = 'top' | 'bottom' | 'right' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
3
|
export declare const StyledContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
@@ -18,7 +18,7 @@ import { Placement } from './StyledAppCue';
|
|
|
18
18
|
* @returns {number} return.x - The X coordinate of the App Cue.
|
|
19
19
|
* @returns {number} return.y - The Y coordinate of the App Cue.
|
|
20
20
|
*/
|
|
21
|
-
export declare const calculatePosition: ({ placement, position, contentSize, offset, }: {
|
|
21
|
+
export declare const calculatePosition: ({ placement, position, contentSize, offset, windowWidth, }: {
|
|
22
22
|
position: {
|
|
23
23
|
pageX: number;
|
|
24
24
|
pageY: number;
|
|
@@ -31,9 +31,12 @@ export declare const calculatePosition: ({ placement, position, contentSize, off
|
|
|
31
31
|
};
|
|
32
32
|
placement: Placement;
|
|
33
33
|
offset: number;
|
|
34
|
+
windowWidth: number;
|
|
34
35
|
}) => {
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
left?: number;
|
|
37
|
+
top?: number;
|
|
38
|
+
bottom?: number;
|
|
39
|
+
right?: number;
|
|
37
40
|
};
|
|
38
41
|
/**
|
|
39
42
|
* Calculates the maximum width of the content based on its position, offset, placement, and window width.
|