@hero-design/rn 8.86.0 → 8.87.1
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 +8 -2
- package/CHANGELOG.md +12 -0
- package/es/index.js +10638 -8714
- package/lib/index.js +10638 -8714
- package/package.json +2 -2
- package/src/components/Carousel/CardCarousel.tsx +7 -2
- package/src/components/Carousel/StyledCardCarousel.tsx +6 -2
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +28 -1
- package/src/components/Carousel/__tests__/StyledCardCarousel.spec.tsx +7 -2
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +1799 -1
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +86 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +30 -1
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +59 -0
- package/src/components/RichTextEditor/types.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -1
- package/src/theme/components/cardCarousel.ts +5 -1
- package/stats/8.87.0/rn-stats.html +4844 -0
- package/stats/8.87.1/rn-stats.html +4842 -0
- package/types/components/Carousel/CardCarousel.d.ts +4 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +2 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +4 -0
- package/types/components/RichTextEditor/types.d.ts +1 -0
- package/types/theme/components/cardCarousel.d.ts +5 -1
|
@@ -37,6 +37,10 @@ export interface CardCarouselProps {
|
|
|
37
37
|
*/
|
|
38
38
|
ref?: React.Ref<CardCarouselHandles>;
|
|
39
39
|
onLayout?: (event: LayoutChangeEvent) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Gap between items.
|
|
42
|
+
*/
|
|
43
|
+
gap?: 'xsmall' | 'small' | 'medium';
|
|
40
44
|
}
|
|
41
45
|
export declare const getCardCarouselValidIndex: (index: number, length: number) => number;
|
|
42
46
|
export declare const CardCarousel: React.ForwardRefExoticComponent<Omit<CardCarouselProps, "ref"> & React.RefAttributes<CardCarouselHandles>>;
|
|
@@ -18,6 +18,8 @@ declare const StyledCard: import("@emotion/native").StyledComponent<CardProps &
|
|
|
18
18
|
declare const StyledItemWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
19
19
|
theme?: import("@emotion/react").Theme;
|
|
20
20
|
as?: React.ElementType;
|
|
21
|
+
} & {
|
|
22
|
+
themeGap: "xsmall" | "small" | "medium";
|
|
21
23
|
}, {}, {
|
|
22
24
|
ref?: import("react").Ref<View> | undefined;
|
|
23
25
|
}>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Ref } from 'react';
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import { TextUnit } from './types';
|
|
4
5
|
export interface RichTextEditorRef {
|
|
5
6
|
requestBlur: VoidFunction;
|
|
7
|
+
insertNodes: (nodes: Record<string, unknown>[]) => void;
|
|
8
|
+
deleteBackward: (unit?: TextUnit) => void;
|
|
9
|
+
setReadOnly: (readOnly: boolean) => void;
|
|
6
10
|
}
|
|
7
11
|
export type EditorValue = {
|
|
8
12
|
type: string;
|
|
@@ -5,8 +5,12 @@ declare const getCardCarouselTheme: (theme: GlobalTheme) => {
|
|
|
5
5
|
};
|
|
6
6
|
space: {
|
|
7
7
|
pageControlMarginTop: number;
|
|
8
|
-
carouselItemSpacing: number;
|
|
9
8
|
contentContainerPaddingHorizontal: number;
|
|
9
|
+
carouselItemSpacing: {
|
|
10
|
+
xsmall: number;
|
|
11
|
+
small: number;
|
|
12
|
+
medium: number;
|
|
13
|
+
};
|
|
10
14
|
};
|
|
11
15
|
radii: {
|
|
12
16
|
card: number;
|