@hero-design/rn 8.112.2 → 8.112.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/es/index.js +6 -13
- package/lib/index.js +6 -13
- package/package.json +1 -8
- package/src/components/Box/StyledBox.tsx +1 -1
- package/src/components/Calendar/CalendarRowItem.tsx +1 -1
- package/src/components/Carousel/index.tsx +1 -1
- package/src/components/PinInput/StyledPinInput.tsx +1 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/RichTextEditor/RichTextEditor.tsx +5 -5
- package/src/components/RichTextEditor/{BaseRichTextEditor.tsx → RichTextEditorInput.tsx} +4 -4
- package/src/components/RichTextEditor/StyledRichTextEditor.ts +0 -5
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +19 -4
- package/src/components/RichTextEditor/index.tsx +3 -3
- package/src/components/RichTextEditor/utils/events.ts +0 -12
- package/src/components/Select/helpers.tsx +0 -17
- package/src/components/Tabs/StyledTabs.tsx +0 -5
- package/src/components/TextInput/index.tsx +1 -1
- package/src/theme/global/colors/swagSystemPalette.ts +1 -1
- package/src/utils/scale.ts +2 -2
- package/stats/8.112.2/rn-stats.html +1 -1
- package/types/components/Box/StyledBox.d.ts +0 -5
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -1
- package/types/components/Carousel/index.d.ts +0 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/types/components/RichTextEditor/{BaseRichTextEditor.d.ts → RichTextEditorInput.d.ts} +3 -3
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -7
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/RichTextEditor/utils/events.d.ts +0 -2
- package/types/components/Select/helpers.d.ts +0 -1
- package/types/components/Tabs/StyledTabs.d.ts +1 -7
- package/types/components/TextInput/index.d.ts +0 -1
- package/types/theme/global/colors/swagSystemPalette.d.ts +1 -1
- package/types/utils/scale.d.ts +0 -2
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { Theme } from '@emotion/react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import type { FlexStyleProps, StyleProps } from './types';
|
|
4
|
-
export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props: StyleProps) => {
|
|
5
|
-
[x: string]: string | undefined;
|
|
6
|
-
} | {
|
|
7
|
-
[x: string]: number;
|
|
8
|
-
} | undefined;
|
|
9
4
|
declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
5
|
theme?: Theme;
|
|
11
6
|
as?: React.ElementType;
|
|
@@ -40,7 +40,6 @@ interface CarouselProps extends ViewProps {
|
|
|
40
40
|
*/
|
|
41
41
|
pageControlPosition?: 'top' | 'bottom';
|
|
42
42
|
}
|
|
43
|
-
export declare function useStateFromProp<T>(initialValue: T): [T, Dispatch<SetStateAction<T>>];
|
|
44
43
|
declare const _default: (({ items, onItemIndexChange, renderActions, selectedItemIndex, style, shouldShowPagination, testID, pageControlPosition, ...nativeProps }: CarouselProps) => React.JSX.Element) & {
|
|
45
44
|
Card: React.ForwardRefExoticComponent<Omit<import("./CardCarousel").CardCarouselProps, "ref"> & React.RefAttributes<import("./CardCarousel").CardCarouselHandles>>;
|
|
46
45
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Ref } from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { RichTextEditorInputProps, RichTextEditorRef } from './RichTextEditorInput';
|
|
4
4
|
export type EditorValue = {
|
|
5
5
|
type: string;
|
|
6
6
|
children: any;
|
|
7
7
|
}[];
|
|
8
|
-
export interface RichTextEditorProps extends Omit<
|
|
8
|
+
export interface RichTextEditorProps extends Omit<RichTextEditorInputProps, 'editorRef'> {
|
|
9
9
|
/**
|
|
10
10
|
* Field label
|
|
11
11
|
*/
|
package/types/components/RichTextEditor/{BaseRichTextEditor.d.ts → RichTextEditorInput.d.ts}
RENAMED
|
@@ -11,7 +11,7 @@ export type EditorValue = {
|
|
|
11
11
|
type: string;
|
|
12
12
|
children: any;
|
|
13
13
|
}[];
|
|
14
|
-
export interface
|
|
14
|
+
export interface RichTextEditorInputProps {
|
|
15
15
|
/**
|
|
16
16
|
* If true, the editor will be focused when the user enters the screen
|
|
17
17
|
*/
|
|
@@ -65,5 +65,5 @@ export interface BaseRichTextEditorProps {
|
|
|
65
65
|
*/
|
|
66
66
|
onBlur?: () => void;
|
|
67
67
|
}
|
|
68
|
-
declare const
|
|
69
|
-
export default
|
|
68
|
+
declare const RichTextEditorInput: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: RichTextEditorInputProps) => ReactElement;
|
|
69
|
+
export default RichTextEditorInput;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
1
|
import { WebView } from 'react-native-webview';
|
|
3
|
-
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View> | undefined;
|
|
8
|
-
}>;
|
|
9
2
|
export declare const StyledWebView: import("@emotion/native").StyledComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
|
|
10
3
|
theme?: import("@emotion/react").Theme;
|
|
11
4
|
as?: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditorEvents, ToolbarEvents } from './constants';
|
|
2
2
|
import type { RichTextEditorProps } from './RichTextEditor';
|
|
3
|
-
import type { RichTextEditorRef } from './
|
|
3
|
+
import type { RichTextEditorRef } from './RichTextEditorInput';
|
|
4
4
|
export type { RichTextEditorProps, RichTextEditorRef };
|
|
5
5
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
|
|
6
6
|
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => import("react").JSX.Element | null;
|
|
@@ -66,6 +66,6 @@ declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextE
|
|
|
66
66
|
};
|
|
67
67
|
}[TEventName] : void) => void) => () => void;
|
|
68
68
|
};
|
|
69
|
-
Base: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: import("./
|
|
69
|
+
Base: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: import("./RichTextEditorInput").RichTextEditorInputProps) => import("react").ReactElement;
|
|
70
70
|
};
|
|
71
71
|
export default _default;
|
|
@@ -2,7 +2,5 @@ import type { EventEmitter } from 'events';
|
|
|
2
2
|
export interface Listener<T> {
|
|
3
3
|
(data: T): void;
|
|
4
4
|
}
|
|
5
|
-
export declare const off: <T>(emitter: EventEmitter, eventName: string, listener: Listener<T>) => void;
|
|
6
5
|
export declare const emit: <T>(emitter: EventEmitter, eventName: string, data: T) => boolean;
|
|
7
|
-
export declare const setMaxListeners: (emitter: EventEmitter, n: number) => void;
|
|
8
6
|
export declare const on: <T>(emitter: EventEmitter, eventName: string, listener: Listener<T>) => () => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { SectionData, CombinedOptionsType, SelectOptionType } from './types';
|
|
2
|
-
export declare const getKey: <V, T extends SelectOptionType<V>>(option: T, index: number, keyExtractor?: (opt: T, i?: number) => string) => string | number;
|
|
3
2
|
export declare const isSections: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
4
3
|
export declare const toSections: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
5
4
|
export declare const toFlatOptions: <V, T extends SelectOptionType<V>>(options: CombinedOptionsType<V, T>) => SelectOptionType<V>[];
|
|
@@ -30,12 +30,6 @@ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("r
|
|
|
30
30
|
}, {}, {
|
|
31
31
|
ref?: import("react").Ref<View> | undefined;
|
|
32
32
|
}>;
|
|
33
|
-
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme;
|
|
35
|
-
as?: React.ElementType;
|
|
36
|
-
}, {}, {
|
|
37
|
-
ref?: import("react").Ref<View> | undefined;
|
|
38
|
-
}>;
|
|
39
33
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
40
34
|
theme?: import("@emotion/react").Theme;
|
|
41
35
|
as?: React.ElementType;
|
|
@@ -48,4 +42,4 @@ declare const StyledBadgeWrapper: import("@emotion/native").StyledComponent<impo
|
|
|
48
42
|
}, {}, {
|
|
49
43
|
ref?: import("react").Ref<View> | undefined;
|
|
50
44
|
}>;
|
|
51
|
-
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem,
|
|
45
|
+
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, StyledIndicator, StyledBadgeWrapper, };
|
|
@@ -132,6 +132,5 @@ export declare const renderMaxLengthMessage: ({ maxLength, state, currentLength,
|
|
|
132
132
|
maxLength?: number;
|
|
133
133
|
hideCharacterCount: boolean;
|
|
134
134
|
}) => false | React.JSX.Element;
|
|
135
|
-
export declare const getDisplayText: (value?: string, defaultValue?: string) => string;
|
|
136
135
|
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<TextInputHandles>>;
|
|
137
136
|
export default TextInput;
|
package/types/utils/scale.d.ts
CHANGED