@hero-design/rn 7.18.1 → 7.19.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/es/index.js +155 -143
- package/lib/index.js +155 -143
- package/package.json +2 -2
- package/src/components/Accordion/AccordionItem.tsx +5 -4
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -1
- package/src/components/Accordion/index.tsx +3 -2
- package/src/components/Alert/StyledAlert.tsx +3 -2
- package/src/components/Alert/index.tsx +5 -3
- package/src/components/Avatar/index.tsx +2 -2
- package/src/components/Badge/Status.tsx +4 -2
- package/src/components/Badge/index.tsx +2 -1
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +4 -2
- package/src/components/BottomNavigation/index.tsx +6 -8
- package/src/components/BottomSheet/Footer.tsx +2 -1
- package/src/components/BottomSheet/Header.tsx +2 -1
- package/src/components/BottomSheet/StyledBottomSheet.tsx +2 -2
- package/src/components/BottomSheet/index.tsx +4 -8
- package/src/components/Button/Button.tsx +5 -6
- package/src/components/Button/IconButton.tsx +4 -7
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +5 -3
- package/src/components/Button/LoadingIndicator/index.tsx +2 -8
- package/src/components/Button/StyledButton.tsx +4 -5
- package/src/components/Button/UtilityButton/index.tsx +5 -4
- package/src/components/Button/index.tsx +3 -2
- package/src/components/Calendar/StyledCalendar.tsx +2 -1
- package/src/components/Card/DataCard/index.tsx +3 -2
- package/src/components/Card/index.tsx +3 -2
- package/src/components/Checkbox/StyledCheckbox.tsx +44 -14
- package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +28 -3
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +95 -9
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +337 -23
- package/src/components/Checkbox/__tests__/index.spec.tsx +38 -7
- package/src/components/Checkbox/index.tsx +35 -18
- package/src/components/Collapse/index.tsx +4 -8
- package/src/components/ContentNavigator/index.tsx +1 -1
- package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
- package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
- package/src/components/DatePicker/StyledDatePicker.tsx +2 -1
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +1 -2
- package/src/components/DatePicker/index.tsx +1 -1
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/Divider/index.tsx +1 -1
- package/src/components/Drawer/DragableDrawer/index.tsx +3 -2
- package/src/components/Drawer/StyledDrawer.tsx +3 -2
- package/src/components/Drawer/index.tsx +2 -1
- package/src/components/Empty/index.tsx +1 -2
- package/src/components/FAB/ActionGroup/ActionItem.tsx +3 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +4 -3
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +4 -2
- package/src/components/FAB/ActionGroup/index.tsx +5 -3
- package/src/components/FAB/AnimatedFABIcon.tsx +1 -1
- package/src/components/FAB/FAB.tsx +2 -2
- package/src/components/FAB/StyledFAB.tsx +4 -7
- package/src/components/Icon/AnimatedIcon.tsx +2 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/List/BasicListItem.tsx +3 -3
- package/src/components/List/ListItem.tsx +6 -3
- package/src/components/List/StyledListItem.tsx +2 -1
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -27
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
- package/src/components/PinInput/PinCell.tsx +1 -1
- package/src/components/PinInput/index.tsx +3 -7
- package/src/components/Progress/ProgressBar.tsx +2 -1
- package/src/components/Progress/ProgressCircle.tsx +3 -9
- package/src/components/Progress/StyledProgressBar.tsx +3 -3
- package/src/components/Progress/StyledProgressCircle.tsx +3 -3
- package/src/components/Radio/Radio.tsx +20 -14
- package/src/components/Radio/RadioGroup.tsx +5 -3
- package/src/components/Radio/StyledRadio.tsx +12 -29
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +84 -50
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +124 -73
- package/src/components/RichTextEditor/EditorToolbar.tsx +4 -8
- package/src/components/RichTextEditor/RichTextEditor.tsx +5 -14
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -6
- package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +2 -6
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +4 -7
- package/src/components/RichTextEditor/index.tsx +6 -6
- package/src/components/SectionHeading/index.tsx +5 -4
- package/src/components/Select/MultiSelect/Option.tsx +2 -1
- package/src/components/Select/MultiSelect/OptionList.tsx +3 -3
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +605 -585
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Select/MultiSelect/index.tsx +20 -16
- package/src/components/Select/SingleSelect/Option.tsx +2 -1
- package/src/components/Select/SingleSelect/OptionList.tsx +3 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +602 -582
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Select/SingleSelect/index.tsx +20 -16
- package/src/components/Select/StyledOptionList.tsx +11 -9
- package/src/components/Select/helpers.tsx +1 -1
- package/src/components/Select/index.tsx +6 -4
- package/src/components/Select/types.ts +3 -3
- package/src/components/Spinner/StyledSpinner.tsx +2 -1
- package/src/components/Spinner/index.tsx +3 -3
- package/src/components/Switch/StyledSwitch.tsx +10 -26
- package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +25 -0
- package/src/components/Switch/__tests__/__snapshots__/{StyledHeading.spec.tsx.snap → StyledSwitch.spec.tsx.snap} +45 -18
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +26 -52
- package/src/components/Switch/index.tsx +23 -20
- package/src/components/Tabs/ScrollableTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +4 -2
- package/src/components/Tabs/__tests__/index.spec.tsx +4 -2
- package/src/components/Tabs/index.tsx +7 -13
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/TextInput/index.tsx +5 -5
- package/src/components/TimePicker/StyledTimePicker.tsx +2 -1
- package/src/components/TimePicker/TimePickerAndroid.tsx +1 -1
- package/src/components/TimePicker/TimePickerIOS.tsx +1 -1
- package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +1 -2
- package/src/components/TimePicker/index.tsx +1 -1
- package/src/components/TimePicker/types.ts +1 -1
- package/src/components/Toast/StyledToast.tsx +3 -8
- package/src/components/Toast/Toast.tsx +3 -2
- package/src/components/Toast/ToastContainer.tsx +2 -2
- package/src/components/Toast/ToastContext.ts +1 -1
- package/src/components/Toast/ToastProvider.tsx +5 -7
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +1 -1
- package/src/components/Toast/types.ts +3 -3
- package/src/components/Toolbar/StyledToolbar.tsx +2 -1
- package/src/components/Toolbar/ToolbarGroup.tsx +2 -1
- package/src/components/Toolbar/ToolbarItem.tsx +2 -1
- package/src/components/Toolbar/index.tsx +2 -1
- package/src/components/Typography/Text/index.tsx +3 -2
- package/src/testHelpers/renderWithTheme.tsx +2 -1
- package/src/theme/ThemeProvider.ts +1 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +24 -26
- package/src/theme/components/accordion.ts +1 -1
- package/src/theme/components/alert.ts +1 -1
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/badge.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/bottomSheet.ts +1 -1
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/calendar.ts +1 -1
- package/src/theme/components/card.ts +1 -1
- package/src/theme/components/checkbox.ts +12 -8
- package/src/theme/components/contentNavigator.ts +1 -1
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +1 -1
- package/src/theme/components/empty.ts +1 -1
- package/src/theme/components/fab.ts +1 -1
- package/src/theme/components/icon.ts +1 -1
- package/src/theme/components/list.ts +5 -4
- package/src/theme/components/pinInput.ts +1 -1
- package/src/theme/components/progress.ts +1 -1
- package/src/theme/components/radio.ts +3 -11
- package/src/theme/components/richTextEditor.ts +1 -1
- package/src/theme/components/sectionHeading.ts +1 -1
- package/src/theme/components/select.ts +1 -1
- package/src/theme/components/spinner.ts +1 -1
- package/src/theme/components/switch.ts +7 -8
- package/src/theme/components/tabs.ts +1 -1
- package/src/theme/components/tag.ts +1 -1
- package/src/theme/components/textInput.ts +1 -1
- package/src/theme/components/toast.ts +1 -1
- package/src/theme/components/toolbar.ts +1 -1
- package/src/theme/components/typography.ts +1 -1
- package/src/theme/getTheme.ts +4 -11
- package/src/theme/global/borders.ts +2 -1
- package/src/theme/global/colors/swag.ts +2 -3
- package/src/theme/global/colors/work.ts +1 -2
- package/src/theme/global/index.ts +6 -11
- package/src/theme/global/scale.ts +2 -1
- package/src/theme/global/space.ts +2 -1
- package/src/theme/global/typography.ts +2 -8
- package/src/theme/index.ts +5 -2
- package/src/types.ts +9 -10
- package/testUtils/setup.tsx +2 -0
- package/tsconfig.json +4 -9
- package/types/components/Accordion/AccordionItem.d.ts +3 -3
- package/types/components/Accordion/index.d.ts +3 -2
- package/types/components/Alert/StyledAlert.d.ts +2 -1
- package/types/components/Alert/index.d.ts +3 -3
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Badge/Status.d.ts +2 -2
- package/types/components/Badge/index.d.ts +2 -1
- package/types/components/BottomNavigation/index.d.ts +3 -3
- package/types/components/BottomSheet/Footer.d.ts +1 -1
- package/types/components/BottomSheet/Header.d.ts +1 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +2 -1
- package/types/components/BottomSheet/index.d.ts +2 -2
- package/types/components/Button/Button.d.ts +4 -4
- package/types/components/Button/IconButton.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -2
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +3 -2
- package/types/components/Button/UtilityButton/index.d.ts +3 -3
- package/types/components/Button/index.d.ts +2 -2
- package/types/components/Calendar/StyledCalendar.d.ts +2 -1
- package/types/components/Card/DataCard/index.d.ts +2 -2
- package/types/components/Card/index.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +21 -3
- package/types/components/Checkbox/index.d.ts +11 -3
- package/types/components/Collapse/index.d.ts +2 -2
- package/types/components/ContentNavigator/index.d.ts +1 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +2 -1
- package/types/components/DatePicker/index.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +1 -1
- package/types/components/Divider/index.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/index.d.ts +1 -1
- package/types/components/Drawer/StyledDrawer.d.ts +2 -1
- package/types/components/Drawer/index.d.ts +1 -1
- package/types/components/Empty/index.d.ts +1 -1
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +3 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -2
- package/types/components/FAB/ActionGroup/index.d.ts +3 -3
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +2 -2
- package/types/components/FAB/StyledFAB.d.ts +3 -2
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/List/BasicListItem.d.ts +2 -2
- package/types/components/List/ListItem.d.ts +4 -3
- package/types/components/PinInput/PinCell.d.ts +1 -1
- package/types/components/PinInput/index.d.ts +2 -2
- package/types/components/Progress/ProgressBar.d.ts +1 -1
- package/types/components/Progress/ProgressCircle.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +3 -2
- package/types/components/Progress/StyledProgressCircle.d.ts +3 -2
- package/types/components/Radio/Radio.d.ts +2 -2
- package/types/components/Radio/RadioGroup.d.ts +3 -3
- package/types/components/Radio/StyledRadio.d.ts +2 -12
- package/types/components/RichTextEditor/RichTextEditor.d.ts +3 -2
- package/types/components/RichTextEditor/index.d.ts +3 -2
- package/types/components/SectionHeading/index.d.ts +3 -3
- package/types/components/Select/MultiSelect/Option.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -2
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/StyledOptionList.d.ts +4 -4
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Select/index.d.ts +4 -3
- package/types/components/Select/types.d.ts +3 -3
- package/types/components/Spinner/StyledSpinner.d.ts +2 -1
- package/types/components/Spinner/index.d.ts +2 -2
- package/types/components/Switch/StyledSwitch.d.ts +3 -18
- package/types/components/{Radio/__tests__/StyledRadio.spec.d.ts → Switch/__tests__/StyledSwitch.spec.d.ts} +0 -0
- package/types/components/Switch/index.d.ts +3 -2
- package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
- package/types/components/Tabs/index.d.ts +3 -3
- package/types/components/Tag/index.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +3 -3
- package/types/components/TimePicker/StyledTimePicker.d.ts +2 -1
- package/types/components/TimePicker/TimePickerAndroid.d.ts +1 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
- package/types/components/TimePicker/index.d.ts +1 -1
- package/types/components/TimePicker/types.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +2 -1
- package/types/components/Toast/Toast.d.ts +1 -1
- package/types/components/Toast/ToastContainer.d.ts +2 -2
- package/types/components/Toast/ToastContext.d.ts +1 -1
- package/types/components/Toast/ToastProvider.d.ts +2 -2
- package/types/components/Toast/types.d.ts +3 -3
- package/types/components/Toolbar/StyledToolbar.d.ts +2 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +2 -2
- package/types/testHelpers/renderWithTheme.d.ts +1 -1
- package/types/theme/ThemeProvider.d.ts +1 -1
- package/types/theme/components/accordion.d.ts +1 -1
- package/types/theme/components/alert.d.ts +1 -1
- package/types/theme/components/avatar.d.ts +1 -1
- package/types/theme/components/badge.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +1 -1
- package/types/theme/components/bottomSheet.d.ts +1 -1
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/calendar.d.ts +1 -1
- package/types/theme/components/card.d.ts +1 -1
- package/types/theme/components/checkbox.d.ts +10 -7
- package/types/theme/components/contentNavigator.d.ts +1 -1
- package/types/theme/components/divider.d.ts +1 -1
- package/types/theme/components/drawer.d.ts +1 -1
- package/types/theme/components/empty.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- package/types/theme/components/icon.d.ts +1 -1
- package/types/theme/components/list.d.ts +8 -7
- package/types/theme/components/pinInput.d.ts +1 -1
- package/types/theme/components/progress.d.ts +1 -1
- package/types/theme/components/radio.d.ts +1 -8
- package/types/theme/components/richTextEditor.d.ts +1 -1
- package/types/theme/components/sectionHeading.d.ts +1 -1
- package/types/theme/components/select.d.ts +1 -1
- package/types/theme/components/spinner.d.ts +1 -1
- package/types/theme/components/switch.d.ts +7 -6
- package/types/theme/components/tabs.d.ts +1 -1
- package/types/theme/components/tag.d.ts +1 -1
- package/types/theme/components/textInput.d.ts +1 -1
- package/types/theme/components/toast.d.ts +1 -1
- package/types/theme/components/toolbar.d.ts +1 -1
- package/types/theme/components/typography.d.ts +1 -1
- package/types/theme/getTheme.d.ts +2 -2
- package/types/theme/global/borders.d.ts +2 -1
- package/types/theme/global/colors/swag.d.ts +1 -1
- package/types/theme/global/colors/work.d.ts +1 -1
- package/types/theme/global/index.d.ts +5 -3
- package/types/theme/global/scale.d.ts +2 -1
- package/types/theme/global/space.d.ts +2 -1
- package/types/theme/global/typography.d.ts +2 -1
- package/types/theme/index.d.ts +4 -2
- package/types/types.d.ts +9 -8
- package/src/components/Radio/__tests__/StyledRadio.spec.tsx +0 -43
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +0 -124
- package/src/components/Switch/__tests__/StyledHeading.spec.tsx +0 -42
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Text,
|
|
2
|
-
import {
|
|
1
|
+
import { Text, TouchableHighlight } from 'react-native';
|
|
2
|
+
import type { TextProps, TouchableHighlightProps } from 'react-native';
|
|
3
|
+
import type { IconProps } from '../Icon';
|
|
3
4
|
declare const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
|
|
4
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
2
|
import StyledHeroIcon from './HeroIcon';
|
|
3
3
|
declare type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
|
|
4
4
|
declare const AnimatedIcon: ({ style, ...otherProps }: AnimatedIconProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
4
|
export interface ListItemProps {
|
|
5
5
|
/**
|
|
6
6
|
* Name of Icon or component to render on the left side of title.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { IconName } from '../Icon';
|
|
4
5
|
export interface ListItemProps {
|
|
5
6
|
/**
|
|
6
7
|
* Name of Icon or ReactElement to render on the left side of title.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { State } from './StyledPinInput';
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { State } from './StyledPinInput';
|
|
3
3
|
interface PinInputProps {
|
|
4
4
|
/**
|
|
5
5
|
* The value to show for the input.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Animated, View
|
|
2
|
-
import {
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { ThemeIntent } from './types';
|
|
3
4
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { View
|
|
2
|
-
import {
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { ThemeIntent } from './types';
|
|
3
4
|
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface RadioProps {
|
|
4
4
|
/**
|
|
5
5
|
* Whether the radio is checked.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { OptionType } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { OptionType } from './types';
|
|
4
4
|
export interface RadioGroupProps<T> {
|
|
5
5
|
/**
|
|
6
6
|
* An array of radio options to be selected.
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { View
|
|
2
|
-
declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
themeChecked: boolean;
|
|
7
|
-
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
|
-
}>;
|
|
1
|
+
import { View } from 'react-native';
|
|
10
2
|
declare const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
4
|
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
themeChecked: boolean;
|
|
15
5
|
}, {}, {
|
|
16
6
|
ref?: import("react").Ref<View> | undefined;
|
|
17
7
|
}>;
|
|
@@ -27,4 +17,4 @@ declare const Spacer: import("@emotion/native").StyledComponent<import("react-na
|
|
|
27
17
|
}, {}, {
|
|
28
18
|
ref?: import("react").Ref<View> | undefined;
|
|
29
19
|
}>;
|
|
30
|
-
export {
|
|
20
|
+
export { Circle, InnerCircle, Spacer };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Ref } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
4
|
export interface RichTextEditorRef {
|
|
4
5
|
requestBlur: VoidFunction;
|
|
5
6
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ToolbarButtonName } from './constants';
|
|
2
|
-
import { RichTextEditorProps, RichTextEditorRef } from './RichTextEditor';
|
|
2
|
+
import type { RichTextEditorProps, RichTextEditorRef } from './RichTextEditor';
|
|
3
|
+
export type { RichTextEditorProps, RichTextEditorRef };
|
|
4
|
+
export { ToolbarButtonName };
|
|
3
5
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
|
|
4
6
|
MentionList: ({ name: eventPrefix, render }: import("./MentionList").MentionListProps) => JSX.Element | null;
|
|
5
7
|
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element | null;
|
|
6
8
|
};
|
|
7
9
|
export default _default;
|
|
8
|
-
export { RichTextEditorProps, RichTextEditorRef, ToolbarButtonName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName, IconProps } from '../Icon';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName, IconProps } from '../Icon';
|
|
4
4
|
export interface SectionHeadingProps extends ViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Heading text.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MultiSelectProps } from '.';
|
|
2
|
-
import { OptionType, SectionData } from '../types';
|
|
1
|
+
import type { MultiSelectProps } from '.';
|
|
2
|
+
import type { OptionType, SectionData } from '../types';
|
|
3
3
|
declare type OptionListProps<V, T extends OptionType<V>> = Pick<MultiSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
4
4
|
onPress: (value: V[]) => void;
|
|
5
5
|
sections: SectionData<V, T>[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SingleSelectProps } from '.';
|
|
2
|
-
import { OptionType, SectionData } from '../types';
|
|
1
|
+
import type { SingleSelectProps } from '.';
|
|
2
|
+
import type { OptionType, SectionData } from '../types';
|
|
3
3
|
declare type OptionListProps<V, T extends OptionType<V>> = Pick<SingleSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
4
4
|
onPress: (value: V | null) => void;
|
|
5
5
|
sections: SectionData<V, T>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { SectionListRenderItemInfo } from 'react-native';
|
|
3
|
-
import { ScrollParams } from './helpers';
|
|
4
|
-
import { SectionData, OptionType, SelectProps, SectionType } from './types';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SectionListRenderItemInfo } from 'react-native';
|
|
3
|
+
import type { ScrollParams } from './helpers';
|
|
4
|
+
import type { SectionData, OptionType, SelectProps, SectionType } from './types';
|
|
5
5
|
export declare type StyledOptionListProps<V, T extends OptionType<V>> = Pick<SelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'> & {
|
|
6
6
|
scrollParams: ScrollParams;
|
|
7
7
|
sections: SectionData<V, T>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
1
|
+
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
2
2
|
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number | undefined) => string) | undefined) => import("react").Key;
|
|
3
3
|
export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
4
4
|
export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import MultiSelect
|
|
2
|
-
import {
|
|
1
|
+
import MultiSelect from './MultiSelect';
|
|
2
|
+
import type { MultiSelectProps } from './MultiSelect';
|
|
3
|
+
import type { SingleSelectProps } from './SingleSelect';
|
|
4
|
+
export type { MultiSelectProps, SingleSelectProps };
|
|
3
5
|
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDimiss, onEndReached, onQueryChange, options, renderOption, query, error, editable, disabled, numberOfLines, style, testID, value, }: SingleSelectProps<V, T>) => JSX.Element) & {
|
|
4
6
|
Multi: typeof MultiSelect;
|
|
5
7
|
};
|
|
6
8
|
export default _default;
|
|
7
|
-
export { MultiSelectProps, SingleSelectProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { TextInputProps } from '../TextInput';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { TextInputProps } from '../TextInput';
|
|
4
4
|
export declare type OptionType<V> = {
|
|
5
5
|
value: V;
|
|
6
6
|
text: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { View
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
2
3
|
declare const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
declare type ThemeSize = 'small' | 'medium';
|
|
3
|
+
export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
3
4
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
6
|
as?: import("react").ElementType<any> | undefined;
|
|
6
7
|
} & {
|
|
7
|
-
|
|
8
|
-
themeSize: ThemeSize;
|
|
9
|
-
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<View> | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
declare const StyledDisabledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
themeSize: ThemeSize;
|
|
17
|
-
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View> | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
declare const StyledThumbWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
} & {
|
|
8
|
+
themeVariant: Variant;
|
|
24
9
|
themeSize: ThemeSize;
|
|
25
10
|
}, {}, {
|
|
26
11
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -33,4 +18,4 @@ declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.Ani
|
|
|
33
18
|
} & {
|
|
34
19
|
themeSize: ThemeSize;
|
|
35
20
|
}, {}, {}>;
|
|
36
|
-
export { StyledWrapper,
|
|
21
|
+
export { StyledWrapper, StyledKnot };
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface SwitchProps {
|
|
4
4
|
/**
|
|
5
5
|
* Control whether the switch is checked
|
|
@@ -15,6 +15,7 @@ export interface SwitchProps {
|
|
|
15
15
|
onPress?: () => void;
|
|
16
16
|
/**
|
|
17
17
|
* Size of the switch
|
|
18
|
+
* size is deprecated and will be removed in the next major release.
|
|
18
19
|
*/
|
|
19
20
|
size?: 'small' | 'medium';
|
|
20
21
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
4
|
export declare type ItemType = string | IconName | ((props: {
|
|
5
5
|
color: string;
|
|
6
6
|
}) => ReactNode);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import { Variant } from './StyledTextInput';
|
|
4
|
-
import { IconName } from '../Icon';
|
|
2
|
+
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { Variant } from './StyledTextInput';
|
|
4
|
+
import type { IconName } from '../Icon';
|
|
5
5
|
export interface TextInputProps extends NativeTextInputProps {
|
|
6
6
|
/**
|
|
7
7
|
* Field label.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { View
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
2
3
|
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TimePickerProps } from './types';
|
|
1
|
+
import type { TimePickerProps } from './types';
|
|
2
2
|
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerAndroid;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TimePickerProps } from './types';
|
|
1
|
+
import type { TimePickerProps } from './types';
|
|
2
2
|
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerIOS;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Animated, TouchableOpacity, View
|
|
1
|
+
import { Animated, TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
2
3
|
declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ToastContainerProps } from './types';
|
|
3
|
-
import { ToastControllerContextType } from './ToastContext';
|
|
2
|
+
import type { ToastContainerProps } from './types';
|
|
3
|
+
import type { ToastControllerContextType } from './ToastContext';
|
|
4
4
|
declare const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<ToastControllerContextType>>;
|
|
5
5
|
export default ToastContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
4
|
export interface ToastProps {
|
|
5
5
|
/**
|
|
6
6
|
* Toast content.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TouchableOpacity, View
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
2
3
|
declare const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
3
|
export interface TextProps extends NativeTextProps {
|
|
4
4
|
/**
|
|
5
5
|
* Text content.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RenderOptions } from '@testing-library/react-native';
|
|
1
|
+
import type { RenderOptions } from '@testing-library/react-native';
|
|
2
2
|
declare const renderWithTheme: (ui: JSX.Element, options?: RenderOptions | undefined) => import("@testing-library/react-native").RenderAPI;
|
|
3
3
|
export default renderWithTheme;
|