@hero-design/rn 8.105.3 → 8.105.4-alpha.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 +3 -3
- package/CHANGELOG.md +16 -0
- package/es/index.js +48 -20
- package/lib/index.js +48 -20
- package/package.json +1 -1
- package/src/components/Alert/StyledAlert.tsx +3 -2
- package/src/components/AnimatedScroller/AnimatedFAB.tsx +4 -6
- package/src/components/AnimatedScroller/AnimatedScrollable.tsx +4 -4
- package/src/components/AnimatedScroller/FlatListWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/SectionListWithFAB.tsx +4 -3
- package/src/components/AnimatedScroller/__tests__/ScrollablesWithFAB.spec.tsx +4 -4
- package/src/components/AppCue/index.tsx +2 -4
- package/src/components/AppCue/utils.ts +1 -1
- package/src/components/Attachment/index.tsx +4 -3
- package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +2 -1
- package/src/components/Avatar/AvatarStack/index.tsx +4 -3
- package/src/components/Avatar/StyledAvatar.tsx +1 -1
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/Badge/types.ts +2 -2
- package/src/components/BottomSheet/ScrollView.tsx +4 -5
- package/src/components/BottomSheet/StyledBottomSheet.tsx +1 -2
- package/src/components/BottomSheet/index.tsx +4 -7
- package/src/components/Box/StyledBox.tsx +4 -3
- package/src/components/Box/types.ts +5 -5
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Calendar/CalendarRange.tsx +1 -1
- package/src/components/Calendar/helpers.ts +1 -1
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Calendar/shared/hooks/useCalendarLayout.ts +1 -1
- package/src/components/Carousel/CardCarousel.tsx +2 -4
- package/src/components/Carousel/CarouselItem.tsx +1 -1
- package/src/components/Carousel/StyledCardCarousel.tsx +6 -3
- package/src/components/Carousel/StyledCarousel.tsx +2 -1
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +4 -2
- package/src/components/Carousel/__tests__/index.spec.tsx +2 -2
- package/src/components/Carousel/index.tsx +5 -13
- package/src/components/Carousel/types.ts +2 -2
- package/src/components/Chart/ChartSelect/index.tsx +2 -1
- package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +1 -1
- package/src/components/Chart/ColumnChart/StackedSegment.tsx +1 -1
- package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +2 -1
- package/src/components/Chart/ColumnChart/index.tsx +2 -2
- package/src/components/Chart/Line/Line.tsx +1 -1
- package/src/components/Chart/Line/__tests__/index.spec.tsx +2 -1
- package/src/components/Chart/Line/index.tsx +2 -2
- package/src/components/Chart/shared/ChartFrame.tsx +2 -2
- package/src/components/Chart/shared/ChartHeader.tsx +2 -2
- package/src/components/Chart/shared/EmptyState.tsx +3 -2
- package/src/components/Chart/shared/XAxis.tsx +1 -1
- package/src/components/Chart/shared/XAxisGrid.tsx +1 -1
- package/src/components/Chart/shared/YAxis.tsx +1 -1
- package/src/components/Chart/shared/YAxisGrid.tsx +1 -1
- package/src/components/Chart/shared/__tests__/ChartFrame.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/XAXisGrid.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/XAxis.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/YAxis.spec.tsx +2 -1
- package/src/components/Chart/shared/__tests__/YAxisGrid.spec.tsx +2 -1
- package/src/components/Chart/shared/niceNumbers.ts +1 -1
- package/src/components/Chip/index.tsx +4 -3
- package/src/components/DatePicker/Dialog/AndroidDialog.tsx +3 -4
- package/src/components/DatePicker/Dialog/IOSDialog.tsx +3 -4
- package/src/components/DatePicker/Dialog/__tests__/AndroidDialog.spec.tsx +2 -1
- package/src/components/DatePicker/Dialog/__tests__/IOSDialog.spec.tsx +1 -1
- package/src/components/DatePicker/Dialog.tsx +1 -1
- package/src/components/DatePicker/hooks/useCalculateDate.tsx +1 -1
- package/src/components/DatePicker/hooks/utils.ts +1 -1
- package/src/components/DatePicker/index.internal.tsx +2 -2
- package/src/components/DatePicker/index.tsx +2 -2
- package/src/components/DatePicker/types.ts +1 -1
- package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -1
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/FAB.tsx +1 -2
- package/src/components/FAB/Pair/__tests__/index.spec.tsx +2 -1
- package/src/components/FAB/Pair/index.tsx +2 -2
- package/src/components/FAB/StyledFAB.tsx +2 -1
- package/src/components/FAB/__tests__/index.spec.tsx +2 -1
- package/src/components/FilterTrigger/StyledFilterTrigger.tsx +1 -1
- package/src/components/FilterTrigger/__tests__/index.spec.tsx +2 -1
- package/src/components/FilterTrigger/index.tsx +1 -1
- package/src/components/FloatingIsland/index.tsx +4 -3
- package/src/components/HeroDesignProvider/index.tsx +3 -2
- package/src/components/List/ListItem.tsx +2 -2
- package/src/components/LocaleProvider/context.ts +1 -1
- package/src/components/LocaleProvider/index.tsx +1 -1
- package/src/components/LocaleProvider/utils.ts +1 -1
- package/src/components/MapPin/Focussed.tsx +1 -1
- package/src/components/MapPin/index.tsx +2 -2
- package/src/components/MapPin/types.ts +2 -2
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/PageControl/index.tsx +2 -1
- package/src/components/PinInput/index.tsx +3 -3
- package/src/components/Portal/PortalHost.tsx +1 -1
- package/src/components/Portal/contexts.ts +3 -2
- package/src/components/Portal/index.tsx +4 -2
- package/src/components/Portal/reducer.ts +1 -1
- package/src/components/Portal/usePortal.ts +2 -1
- package/src/components/Progress/ProgressStep.tsx +1 -1
- package/src/components/Radio/Radio.tsx +1 -1
- package/src/components/Radio/types.ts +2 -2
- package/src/components/Rate/index.tsx +2 -1
- package/src/components/RefreshControl/__tests__/index.spec.tsx +2 -1
- package/src/components/RefreshControl/index.tsx +2 -4
- package/src/components/RichTextEditor/EditorToolbar.tsx +1 -1
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -2
- package/src/components/RichTextEditor/utils/events.ts +1 -1
- package/src/components/RichTextEditor/utils/rnWebView.ts +1 -1
- package/src/components/Search/SearchOneLine.tsx +2 -2
- package/src/components/Search/SearchSuffixIcon.tsx +3 -3
- package/src/components/Search/SearchTwoLine.tsx +2 -2
- package/src/components/Search/StyledSearch.tsx +2 -1
- package/src/components/Search/utils.tsx +2 -1
- package/src/components/SegmentedControl/SegmentedItem.tsx +3 -2
- package/src/components/SegmentedControl/__tests__/index.spec.tsx +2 -1
- package/src/components/SegmentedControl/index.tsx +1 -1
- package/src/components/Select/BaseOptionList.tsx +2 -1
- package/src/components/Select/MultiSelect/OptionList.tsx +2 -1
- package/src/components/Select/MultiSelect/index.tsx +2 -1
- package/src/components/Select/MultiSelect/utils.ts +1 -1
- package/src/components/Select/SingleSelect/OptionList.tsx +3 -6
- package/src/components/Select/SingleSelect/index.tsx +2 -1
- package/src/components/Select/index.tsx +1 -1
- package/src/components/Select/types.ts +1 -1
- package/src/components/Skeleton/index.tsx +4 -9
- package/src/components/Slider/RangeSlider.tsx +2 -1
- package/src/components/Slider/SingleSlider.tsx +1 -1
- package/src/components/StatusScreens/Empty/index.tsx +6 -3
- package/src/components/StatusScreens/Error/StyledError.tsx +8 -0
- package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/StatusScreens/Error/index.tsx +9 -12
- package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +2 -1
- package/src/components/StatusScreens/StatusIcon/assets/Add.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Boom.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Build.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Clock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Confetti.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Connections.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Error.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Info.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/List.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Location.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Lock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Merge.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/NoResult.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Notifications.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Search.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Star.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Success.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/Unlock.tsx +1 -1
- package/src/components/StatusScreens/StatusIcon/assets/User.tsx +1 -1
- package/src/components/StatusScreens/Success/StyledSuccess.tsx +14 -0
- package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/StatusScreens/Success/index.tsx +13 -8
- package/src/components/Swipeable/SwipeableAction.tsx +5 -3
- package/src/components/Swipeable/index.tsx +2 -7
- package/src/components/Switch/SelectorSwitch/Option.tsx +2 -1
- package/src/components/Switch/SelectorSwitch/index.tsx +3 -10
- package/src/components/Switch/index.tsx +2 -1
- package/src/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.tsx +2 -8
- package/src/components/Tabs/TabWithBadge.tsx +2 -1
- package/src/components/Tabs/index.tsx +1 -1
- package/src/components/Tabs/useHandlePageScroll.tsx +1 -1
- package/src/components/Tag/index.tsx +2 -1
- package/src/components/TextInput/__tests__/index.spec.tsx +1 -1
- package/src/components/TextInput/index.tsx +4 -8
- package/src/components/TimePicker/index.internal.tsx +2 -2
- package/src/components/TimePicker/index.tsx +1 -1
- package/src/components/TimePicker/types.ts +1 -1
- package/src/components/Toast/StyledToast.tsx +4 -3
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +1 -1
- package/src/components/Toolbar/ToolbarMessage.tsx +2 -2
- package/src/components/Toolbar/index.tsx +1 -1
- package/src/components/Typography/Caption/StyledCaption.tsx +2 -1
- package/src/emotion.d.ts +1 -1
- package/src/locales/en_AU.ts +1 -1
- package/src/locales/en_CA.ts +1 -1
- package/src/theme/ThemeSwitcher.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +6 -3
- package/src/theme/components/datePicker.ts +1 -1
- package/src/theme/components/error.ts +3 -2
- package/src/theme/components/success.ts +3 -1
- package/src/theme/components/timePicker.ts +1 -1
- package/src/theme/getTheme.ts +19 -10
- package/src/theme/global/colors/ehJobs.ts +1 -1
- package/src/theme/global/colors/ehWorkDark.ts +1 -1
- package/src/theme/global/colors/swagLight.ts +1 -1
- package/src/theme/global/colors/swagLightJobs.ts +1 -1
- package/src/theme/global/colors/swagSystemPalette.ts +1 -1
- package/src/theme/global/shadows/index.ts +1 -1
- package/src/types.ts +26 -19
- package/types/components/Alert/StyledAlert.d.ts +2 -2
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +3 -3
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +3 -3
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +3 -3
- package/types/components/AppCue/index.d.ts +2 -2
- package/types/components/AppCue/utils.d.ts +1 -1
- package/types/components/Attachment/index.d.ts +3 -3
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
- package/types/components/Avatar/AvatarStack/index.d.ts +4 -3
- package/types/components/Avatar/StyledAvatar.d.ts +1 -1
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/Badge/types.d.ts +2 -2
- package/types/components/BottomSheet/ScrollView.d.ts +2 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +2 -2
- package/types/components/BottomSheet/index.d.ts +1 -2
- package/types/components/Box/StyledBox.d.ts +2 -2
- package/types/components/Box/types.d.ts +5 -5
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Calendar/CalendarRange.d.ts +1 -1
- package/types/components/Calendar/helpers.d.ts +1 -1
- package/types/components/Calendar/index.d.ts +1 -1
- package/types/components/Calendar/shared/hooks/useCalendarLayout.d.ts +1 -1
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +1 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +4 -3
- package/types/components/Carousel/StyledCarousel.d.ts +2 -1
- package/types/components/Carousel/index.d.ts +4 -3
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Chart/ChartSelect/index.d.ts +1 -1
- package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +1 -1
- package/types/components/Chart/ColumnChart/StackedSegment.d.ts +1 -1
- package/types/components/Chart/ColumnChart/index.d.ts +2 -2
- package/types/components/Chart/Line/Line.d.ts +1 -1
- package/types/components/Chart/Line/index.d.ts +2 -2
- package/types/components/Chart/shared/ChartFrame.d.ts +1 -1
- package/types/components/Chart/shared/ChartHeader.d.ts +2 -2
- package/types/components/Chart/shared/EmptyState.d.ts +1 -1
- package/types/components/Chart/shared/XAxis.d.ts +1 -1
- package/types/components/Chart/shared/XAxisGrid.d.ts +1 -1
- package/types/components/Chart/shared/YAxis.d.ts +1 -1
- package/types/components/Chart/shared/YAxisGrid.d.ts +1 -1
- package/types/components/Chart/shared/niceNumbers.d.ts +1 -1
- package/types/components/Chip/index.d.ts +4 -3
- package/types/components/DatePicker/Dialog/AndroidDialog.d.ts +1 -1
- package/types/components/DatePicker/Dialog/IOSDialog.d.ts +1 -1
- package/types/components/DatePicker/Dialog.d.ts +1 -1
- package/types/components/DatePicker/hooks/useCalculateDate.d.ts +1 -1
- package/types/components/DatePicker/hooks/utils.d.ts +1 -1
- package/types/components/DatePicker/index.d.ts +2 -2
- package/types/components/DatePicker/index.internal.d.ts +2 -2
- package/types/components/DatePicker/types.d.ts +1 -1
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/FAB/Pair/index.d.ts +2 -2
- package/types/components/FAB/StyledFAB.d.ts +2 -1
- package/types/components/FilterTrigger/index.d.ts +1 -1
- package/types/components/FloatingIsland/index.d.ts +4 -3
- package/types/components/HeroDesignProvider/index.d.ts +2 -2
- package/types/components/List/ListItem.d.ts +2 -2
- package/types/components/LocaleProvider/context.d.ts +1 -1
- package/types/components/LocaleProvider/index.d.ts +1 -1
- package/types/components/LocaleProvider/utils.d.ts +1 -1
- package/types/components/MapPin/Focussed.d.ts +1 -1
- package/types/components/MapPin/index.d.ts +1 -1
- package/types/components/MapPin/types.d.ts +2 -2
- package/types/components/Modal/index.d.ts +2 -1
- package/types/components/PageControl/index.d.ts +1 -1
- package/types/components/PinInput/index.d.ts +3 -3
- package/types/components/Portal/contexts.d.ts +2 -2
- package/types/components/Portal/index.d.ts +3 -2
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/usePortal.d.ts +1 -1
- package/types/components/Progress/ProgressStep.d.ts +1 -1
- package/types/components/Radio/Radio.d.ts +1 -1
- package/types/components/Radio/types.d.ts +2 -2
- package/types/components/Rate/index.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/utils/events.d.ts +1 -1
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +2 -2
- package/types/components/Search/SearchSuffixIcon.d.ts +3 -3
- package/types/components/Search/SearchTwoLine.d.ts +2 -2
- package/types/components/Search/utils.d.ts +1 -1
- package/types/components/SegmentedControl/index.d.ts +1 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/MultiSelect/utils.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/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +1 -1
- package/types/components/Skeleton/index.d.ts +1 -1
- package/types/components/Slider/RangeSlider.d.ts +1 -1
- package/types/components/Slider/SingleSlider.d.ts +1 -1
- package/types/components/StatusScreens/Empty/index.d.ts +5 -3
- package/types/components/StatusScreens/Error/StyledError.d.ts +7 -1
- package/types/components/StatusScreens/Error/index.d.ts +5 -4
- package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +1 -1
- package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +1 -1
- package/types/components/StatusScreens/Success/StyledSuccess.d.ts +11 -1
- package/types/components/StatusScreens/Success/index.d.ts +6 -5
- package/types/components/Swipeable/SwipeableAction.d.ts +4 -3
- package/types/components/Swipeable/index.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/Option.d.ts +1 -1
- package/types/components/Switch/SelectorSwitch/index.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +2 -1
- package/types/components/Tabs/index.d.ts +1 -1
- package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
- package/types/components/Tag/index.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +2 -3
- package/types/components/TimePicker/index.d.ts +1 -1
- package/types/components/TimePicker/index.internal.d.ts +2 -2
- package/types/components/TimePicker/types.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +3 -3
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/components/Toolbar/ToolbarMessage.d.ts +2 -3
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
- package/types/locales/en_AU.d.ts +1 -1
- package/types/locales/en_CA.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +2 -1
- package/types/theme/components/datePicker.d.ts +1 -1
- package/types/theme/components/error.d.ts +1 -0
- package/types/theme/components/success.d.ts +2 -0
- package/types/theme/components/timePicker.d.ts +1 -1
- package/types/theme/getTheme.d.ts +10 -10
- package/types/theme/global/colors/ehJobs.d.ts +1 -1
- package/types/theme/global/colors/ehWorkDark.d.ts +1 -1
- package/types/theme/global/colors/swagLight.d.ts +1 -1
- package/types/theme/global/colors/swagLightJobs.d.ts +1 -1
- package/types/theme/global/colors/swagSystemPalette.d.ts +1 -1
- package/types/theme/global/shadows/index.d.ts +1 -1
- package/types/types.d.ts +19 -19
|
@@ -2,10 +2,11 @@ import styled from '@emotion/native';
|
|
|
2
2
|
import { Animated, StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import type { ComponentProps } from 'react';
|
|
4
4
|
import type { ViewProps } from 'react-native';
|
|
5
|
-
import { IntentType } from './types';
|
|
6
|
-
import { TextProps } from '../Typography/Text';
|
|
5
|
+
import type { IntentType } from './types';
|
|
6
|
+
import type { TextProps } from '../Typography/Text';
|
|
7
7
|
import Typography from '../Typography';
|
|
8
|
-
import
|
|
8
|
+
import type { IconProps } from '../Icon';
|
|
9
|
+
import Icon from '../Icon';
|
|
9
10
|
|
|
10
11
|
const ToastContainerWrapper = styled(View)<{ position: 'top' | 'bottom' }>(
|
|
11
12
|
({ theme, position }) => ({
|
|
@@ -2,7 +2,7 @@ import styled from '@emotion/native';
|
|
|
2
2
|
import { TextInput, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import type { ViewProps } from 'react-native';
|
|
4
4
|
import Typography from '../Typography';
|
|
5
|
-
import { BodyProps } from '../Typography/Body';
|
|
5
|
+
import type { BodyProps } from '../Typography/Body';
|
|
6
6
|
|
|
7
7
|
export type ToolbarMessageState =
|
|
8
8
|
| 'default'
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
|
|
3
|
-
import { TextInput as RNTextInput } from 'react-native';
|
|
4
3
|
import type {
|
|
4
|
+
TextInput as RNTextInput,
|
|
5
5
|
TextInputProps as NativeTextInputProps,
|
|
6
6
|
StyleProp,
|
|
7
7
|
ViewStyle,
|
|
8
8
|
TextStyle,
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
|
|
11
|
+
import type { ToolbarMessageState } from './StyledToolbar';
|
|
11
12
|
import {
|
|
12
13
|
StyledInput,
|
|
13
14
|
StyledInputContainer,
|
|
14
15
|
StyledPrefix,
|
|
15
16
|
StyledSuffix,
|
|
16
|
-
ToolbarMessageState,
|
|
17
17
|
ToolbarMessageWrapper,
|
|
18
18
|
} from './StyledToolbar';
|
|
19
19
|
import { useTheme } from '../../theme';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { ViewProps } from 'react-native';
|
|
3
|
+
import type { ViewProps } from 'react-native';
|
|
4
4
|
import { ToolbarWrapper } from './StyledToolbar';
|
|
5
5
|
import ToolbarGroup from './ToolbarGroup';
|
|
6
6
|
import ToolbarMessage from './ToolbarMessage';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Text } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
|
-
import {
|
|
3
|
+
import type { TypographyIntent } from '../types';
|
|
4
|
+
import { FONTWEIGHT_MAP } from '../types';
|
|
4
5
|
|
|
5
6
|
const StyledCaption = styled(Text)<{
|
|
6
7
|
themeFontWeight: 'regular' | 'semi-bold';
|
package/src/emotion.d.ts
CHANGED
package/src/locales/en_AU.ts
CHANGED
package/src/locales/en_CA.ts
CHANGED
|
@@ -628,13 +628,14 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
628
628
|
"title": 32,
|
|
629
629
|
},
|
|
630
630
|
"sizes": {
|
|
631
|
-
"
|
|
631
|
+
"icon": 72,
|
|
632
|
+
"image": 72,
|
|
632
633
|
},
|
|
633
634
|
"space": {
|
|
634
635
|
"button": {
|
|
635
636
|
"margin": 16,
|
|
636
637
|
"padding": 16,
|
|
637
|
-
"wrapperHorizontalPadding":
|
|
638
|
+
"wrapperHorizontalPadding": 24,
|
|
638
639
|
"wrapperVerticalPadding": 48,
|
|
639
640
|
},
|
|
640
641
|
"imageMarginBottom": 24,
|
|
@@ -1307,13 +1308,15 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1307
1308
|
"title": "Saiga-Medium",
|
|
1308
1309
|
},
|
|
1309
1310
|
"sizes": {
|
|
1311
|
+
"icon": 72,
|
|
1310
1312
|
"image": 176,
|
|
1311
1313
|
},
|
|
1312
1314
|
"space": {
|
|
1313
1315
|
"button": {
|
|
1314
1316
|
"margin": 16,
|
|
1315
1317
|
"padding": 16,
|
|
1316
|
-
"
|
|
1318
|
+
"secondaryCTAMarginTop": 16,
|
|
1319
|
+
"wrapperHorizontalPadding": 24,
|
|
1317
1320
|
"wrapperVerticalPadding": 48,
|
|
1318
1321
|
},
|
|
1319
1322
|
"imageMarginBottom": 32,
|
|
@@ -6,7 +6,7 @@ const getErrorTheme = (theme: GlobalTheme) => {
|
|
|
6
6
|
imageMarginBottom: theme.space.large,
|
|
7
7
|
wrapperPadding: theme.space.large,
|
|
8
8
|
button: {
|
|
9
|
-
wrapperHorizontalPadding: theme.space.
|
|
9
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
10
10
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
11
11
|
margin: theme.space.medium,
|
|
12
12
|
padding: theme.space.medium,
|
|
@@ -14,7 +14,8 @@ const getErrorTheme = (theme: GlobalTheme) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const sizes = {
|
|
17
|
-
image: theme.sizes['
|
|
17
|
+
image: theme.sizes['6xlarge'],
|
|
18
|
+
icon: theme.sizes['6xlarge'],
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
const colors = {
|
|
@@ -6,15 +6,17 @@ const getSuccessTheme = (theme: GlobalTheme) => {
|
|
|
6
6
|
imageMarginBottom: theme.space.xlarge,
|
|
7
7
|
wrapperPadding: theme.space.large,
|
|
8
8
|
button: {
|
|
9
|
-
wrapperHorizontalPadding: theme.space.
|
|
9
|
+
wrapperHorizontalPadding: theme.space.large,
|
|
10
10
|
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
11
11
|
margin: theme.space.medium,
|
|
12
12
|
padding: theme.space.medium,
|
|
13
|
+
secondaryCTAMarginTop: theme.space.medium,
|
|
13
14
|
},
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
const sizes = {
|
|
17
18
|
image: theme.sizes['19xlarge'],
|
|
19
|
+
icon: theme.sizes['6xlarge'],
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
const colors = {
|
package/src/theme/getTheme.ts
CHANGED
|
@@ -4,13 +4,16 @@ import getAccordionTheme from './components/accordion';
|
|
|
4
4
|
import getAlertTheme from './components/alert';
|
|
5
5
|
import getAttachmentTheme from './components/attachment';
|
|
6
6
|
import getAvatarTheme from './components/avatar';
|
|
7
|
-
import
|
|
7
|
+
import type { BadgeThemeType } from './components/badge';
|
|
8
|
+
import getBadgeTheme from './components/badge';
|
|
8
9
|
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
9
10
|
import getBottomSheetTheme from './components/bottomSheet';
|
|
10
|
-
import
|
|
11
|
+
import type { ButtonThemeType } from './components/button';
|
|
12
|
+
import getButtonTheme from './components/button';
|
|
11
13
|
import getCalendarTheme from './components/calendar';
|
|
12
14
|
import getCardTheme from './components/card';
|
|
13
|
-
import
|
|
15
|
+
import type { CarouselThemeType } from './components/carousel';
|
|
16
|
+
import getCarouselTheme from './components/carousel';
|
|
14
17
|
import getCardCarouselTheme from './components/cardCarousel';
|
|
15
18
|
import getCheckboxTheme from './components/checkbox';
|
|
16
19
|
import getChipTheme from './components/chip';
|
|
@@ -20,14 +23,18 @@ import getContentNavigatorTheme from './components/contentNavigator';
|
|
|
20
23
|
import getDatePickerTheme from './components/datePicker';
|
|
21
24
|
import getDividerTheme from './components/divider';
|
|
22
25
|
import getDrawerTheme from './components/drawer';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
+
import type { EmptyThemeType } from './components/empty';
|
|
27
|
+
import getEmptyTheme from './components/empty';
|
|
28
|
+
import type { ErrorThemeType } from './components/error';
|
|
29
|
+
import getErrorTheme from './components/error';
|
|
30
|
+
import type { FABThemeType } from './components/fab';
|
|
31
|
+
import getFABTheme from './components/fab';
|
|
26
32
|
import getIconTheme from './components/icon';
|
|
27
33
|
import getImageTheme from './components/image';
|
|
28
34
|
import getListTheme from './components/list';
|
|
29
35
|
import getPageControlTheme from './components/pageControl';
|
|
30
|
-
import
|
|
36
|
+
import type { PinInputThemeType } from './components/pinInput';
|
|
37
|
+
import getPinInputTheme from './components/pinInput';
|
|
31
38
|
import getProgressTheme from './components/progress';
|
|
32
39
|
import getRadioTheme from './components/radio';
|
|
33
40
|
import getRateTheme from './components/rate';
|
|
@@ -38,11 +45,13 @@ import getSelectTheme from './components/select';
|
|
|
38
45
|
import getSkeletonTheme from './components/skeleton';
|
|
39
46
|
import getSliderTheme from './components/slider';
|
|
40
47
|
import getSpinnerTheme from './components/spinner';
|
|
41
|
-
import
|
|
48
|
+
import type { SuccessThemeType } from './components/success';
|
|
49
|
+
import getSuccessTheme from './components/success';
|
|
42
50
|
import getSwipeableTheme from './components/swipeable';
|
|
43
51
|
import getSwitchTheme from './components/switch';
|
|
44
52
|
import getTabsTheme from './components/tabs';
|
|
45
|
-
import
|
|
53
|
+
import type { TagThemeType } from './components/tag';
|
|
54
|
+
import getTagTheme from './components/tag';
|
|
46
55
|
import getTextInputTheme from './components/textInput';
|
|
47
56
|
import getTimePickerTheme from './components/timePicker';
|
|
48
57
|
import getToastTheme from './components/toast';
|
|
@@ -54,7 +63,7 @@ import getSearchTheme from './components/search';
|
|
|
54
63
|
import getMapPinTheme from './components/mapPin';
|
|
55
64
|
import getFloatingIslandTheme from './components/floatingIsland';
|
|
56
65
|
import getAppCueTheme from './components/appCue';
|
|
57
|
-
import { ThemeMode } from './global/colors/types';
|
|
66
|
+
import type { ThemeMode } from './global/colors/types';
|
|
58
67
|
import getFilterTriggerTheme from './components/filterTrigger';
|
|
59
68
|
import getSegmentedControlTheme from './components/segmentedControl';
|
|
60
69
|
|
|
@@ -2,7 +2,7 @@ import ehWorkShadowPalette from './ehWork';
|
|
|
2
2
|
import ehJobsShadowPalette from './ehJobs';
|
|
3
3
|
import ehWorkDarkShadowPalette from './ehWorkDark';
|
|
4
4
|
|
|
5
|
-
import { SystemPalette } from '../colors/types';
|
|
5
|
+
import type { SystemPalette } from '../colors/types';
|
|
6
6
|
|
|
7
7
|
const getShadows = (palette: SystemPalette) => {
|
|
8
8
|
switch (palette.name) {
|
package/src/types.ts
CHANGED
|
@@ -8,31 +8,35 @@ import type {
|
|
|
8
8
|
RichTextEditorProps,
|
|
9
9
|
} from './components/RichTextEditor';
|
|
10
10
|
import type { Theme } from './theme';
|
|
11
|
-
import {
|
|
11
|
+
import type {
|
|
12
12
|
ListRenderOptionInfo,
|
|
13
13
|
SectionListRenderOptionInfo,
|
|
14
14
|
SelectOptionType,
|
|
15
15
|
} from './components/Select/types';
|
|
16
|
-
import { SwipeableProps } from './components/Swipeable';
|
|
17
|
-
import { TextProps } from './components/Typography/Text';
|
|
18
|
-
import { CardCarouselHandles } from './components/Carousel/CardCarousel';
|
|
19
|
-
import { FABHandles } from './components/FAB/FAB';
|
|
20
|
-
import {
|
|
16
|
+
import type { SwipeableProps } from './components/Swipeable';
|
|
17
|
+
import type { TextProps } from './components/Typography/Text';
|
|
18
|
+
import type { CardCarouselHandles } from './components/Carousel/CardCarousel';
|
|
19
|
+
import type { FABHandles } from './components/FAB/FAB';
|
|
20
|
+
import type {
|
|
21
21
|
ActionGroupHandles,
|
|
22
22
|
ActionGroupProps,
|
|
23
23
|
} from './components/FAB/ActionGroup';
|
|
24
24
|
import type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
|
|
25
25
|
import type { SliderRangeValue } from './components/Slider/RangeSlider';
|
|
26
26
|
import type { CalendarDateRange } from './components/Calendar/CalendarRange';
|
|
27
|
-
import {
|
|
27
|
+
import type {
|
|
28
|
+
LocaleCode,
|
|
29
|
+
LocaleValues,
|
|
30
|
+
DateTimeFormats,
|
|
31
|
+
} from './locales/types';
|
|
28
32
|
import type { ColumnChartProps } from './components/Chart/ColumnChart';
|
|
29
|
-
import { LineChartProps } from './components/Chart/Line';
|
|
33
|
+
import type { LineChartProps } from './components/Chart/Line';
|
|
30
34
|
import type { Scale, SystemPalette } from './theme/global';
|
|
31
35
|
import type {
|
|
32
36
|
BrandSystemPalette,
|
|
33
37
|
GlobalSystemPalette,
|
|
34
38
|
} from './theme/global/colors/types';
|
|
35
|
-
import { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
|
|
39
|
+
import type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
|
|
36
40
|
import type { CheckboxProps } from './components/Checkbox';
|
|
37
41
|
import type { SwitchOptionType } from './components/Switch/SelectorSwitch';
|
|
38
42
|
import type { BoxProps } from './components/Box';
|
|
@@ -41,16 +45,19 @@ import type { ToolbarButtonName } from './components/RichTextEditor/types';
|
|
|
41
45
|
import type { ListItemProps } from './components/List/ListItem';
|
|
42
46
|
import type { IconButtonProps } from './components/Button/IconButton';
|
|
43
47
|
import type { BadgeProps } from './components/Badge';
|
|
44
|
-
import { ToastProps } from './components/Toast/types';
|
|
45
|
-
import { Space } from './theme/global/space';
|
|
46
|
-
import { CaptionProps } from './components/Typography/Caption';
|
|
47
|
-
import { Radii } from './theme/global/borders';
|
|
48
|
-
import { TitleProps } from './components/Typography/Title';
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
import {
|
|
48
|
+
import type { ToastProps } from './components/Toast/types';
|
|
49
|
+
import type { Space } from './theme/global/space';
|
|
50
|
+
import type { CaptionProps } from './components/Typography/Caption';
|
|
51
|
+
import type { Radii } from './theme/global/borders';
|
|
52
|
+
import type { TitleProps } from './components/Typography/Title';
|
|
53
|
+
import type {
|
|
54
|
+
CarouselData,
|
|
55
|
+
CarouselImageProps,
|
|
56
|
+
} from './components/Carousel/types';
|
|
57
|
+
import type { PinInputHandler } from './components/PinInput';
|
|
58
|
+
import type { ThemeScale } from './components/Box/types';
|
|
59
|
+
import type { TimePickerProps } from './components/TimePicker/types';
|
|
60
|
+
import type { DatePickerProps } from './components/DatePicker/types';
|
|
54
61
|
import type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
|
|
55
62
|
|
|
56
63
|
export type {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
|
-
import { TextProps } from '../Typography/Text';
|
|
4
|
-
import { IconProps } from '../Icon';
|
|
3
|
+
import type { TextProps } from '../Typography/Text';
|
|
4
|
+
import type { IconProps } from '../Icon';
|
|
5
5
|
type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
6
6
|
declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
7
7
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Animated } from 'react-native';
|
|
3
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
-
import { FABProps } from '../FAB/FAB';
|
|
2
|
+
import type { Animated } from 'react-native';
|
|
3
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import type { FABProps } from '../FAB/FAB';
|
|
5
5
|
interface AnimatedFABProps {
|
|
6
6
|
fabProps: FABProps | ActionGroupProps;
|
|
7
7
|
contentOffsetY: Animated.Value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlatListProps, ScrollViewProps as RnScrollViewProps, SectionListProps } from 'react-native';
|
|
3
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
-
import { FABProps } from '../FAB/FAB';
|
|
2
|
+
import type { FlatListProps, ScrollViewProps as RnScrollViewProps, SectionListProps } from 'react-native';
|
|
3
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import type { FABProps } from '../FAB/FAB';
|
|
5
5
|
export interface AnimatedScrollerProps<T> {
|
|
6
6
|
/**
|
|
7
7
|
* Scroll component, it can be ScrollView, FlatList or SectionList.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlatListProps } from 'react-native';
|
|
3
|
-
import { FABProps } from '../FAB/FAB';
|
|
4
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
2
|
+
import type { FlatListProps } from 'react-native';
|
|
3
|
+
import type { FABProps } from '../FAB/FAB';
|
|
4
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
5
5
|
export interface FlatListWithFABProps<T> extends FlatListProps<T> {
|
|
6
6
|
/**
|
|
7
7
|
* FAB or FAB.ActionGroup props props.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ScrollViewProps } from 'react-native';
|
|
3
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
-
import { FABProps } from '../FAB/FAB';
|
|
2
|
+
import type { ScrollViewProps } from 'react-native';
|
|
3
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import type { FABProps } from '../FAB/FAB';
|
|
5
5
|
export interface ScrollViewWithFABProps extends ScrollViewProps {
|
|
6
6
|
/**
|
|
7
7
|
* FAB or FAB.ActionGroup props props.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SectionListProps } from 'react-native';
|
|
3
|
-
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
-
import { FABProps } from '../FAB/FAB';
|
|
2
|
+
import type { SectionListProps } from 'react-native';
|
|
3
|
+
import type { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import type { FABProps } from '../FAB/FAB';
|
|
5
5
|
export interface SectionListWithFABProps<T> extends SectionListProps<T> {
|
|
6
6
|
/**
|
|
7
7
|
* FAB or FAB.ActionGroup props props.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { Placement } from './StyledAppCue';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { Placement } from './StyledAppCue';
|
|
4
4
|
interface AppCueProps {
|
|
5
5
|
content: string | React.ReactElement;
|
|
6
6
|
target: React.ReactElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import { IconProps } from '../Icon';
|
|
5
|
-
import { ImageProps } from '../Image';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { IconProps } from '../Icon';
|
|
5
|
+
import type { ImageProps } from '../Image';
|
|
6
6
|
interface AttachmentProps {
|
|
7
7
|
/**
|
|
8
8
|
* Attachment filename.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
import { AvatarProps } from '../Avatar';
|
|
2
|
+
import type { AvatarProps } from '../Avatar';
|
|
3
3
|
type ThemeVariant = 'horizontal' | 'vertical';
|
|
4
4
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { AvatarProps } from '../Avatar';
|
|
4
5
|
export interface AvatarStackProps extends Pick<AvatarProps, 'size'> {
|
|
5
6
|
/**
|
|
6
7
|
* Avatar elements to be rendered.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View, Image } from 'react-native';
|
|
2
|
-
import { TextProps } from '../Typography/Text';
|
|
2
|
+
import type { TextProps } from '../Typography/Text';
|
|
3
3
|
type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
4
4
|
type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
5
5
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicBadgeProps, IconBadgeProps } from './types';
|
|
1
|
+
import type { BasicBadgeProps, IconBadgeProps } from './types';
|
|
2
2
|
export type BadgeProps = BasicBadgeProps | IconBadgeProps;
|
|
3
3
|
declare const _default: (({ content: originalContent, visible, max, intent, style, testID, size, variant, icon, ...nativeProps }: BadgeProps) => JSX.Element) & {
|
|
4
4
|
Status: ({ children, visible, intent, style, testID, ...nativeProps }: import("./Status").StatusProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { IconName } from '../Icon';
|
|
1
|
+
import type { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { IconName } from '../Icon';
|
|
3
3
|
interface BaseBadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
4
4
|
/**
|
|
5
5
|
* Whether the Badge is visible.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ScrollViewProps } from 'react-native';
|
|
3
|
+
import { ScrollView } from 'react-native';
|
|
3
4
|
declare const BottomSheetScrollView: React.ForwardRefExoticComponent<ScrollViewProps & React.RefAttributes<ScrollView>>;
|
|
4
5
|
export default BottomSheetScrollView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ViewProps } from 'react-native';
|
|
2
|
-
import { Animated, KeyboardAvoidingView,
|
|
1
|
+
import type { ViewProps, KeyboardAvoidingViewProps } from 'react-native';
|
|
2
|
+
import { Animated, KeyboardAvoidingView, SafeAreaView, View } from 'react-native';
|
|
3
3
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import { KeyboardAvoidingViewProps } from 'react-native';
|
|
3
|
+
import type { StyleProp, ViewStyle, KeyboardAvoidingViewProps } from 'react-native';
|
|
5
4
|
export interface BottomSheetProps {
|
|
6
5
|
/**
|
|
7
6
|
* Bottom sheet open state.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Theme } from '@emotion/react';
|
|
1
|
+
import type { Theme } from '@emotion/react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import { FlexStyleProps, StyleProps } from './types';
|
|
3
|
+
import type { FlexStyleProps, StyleProps } from './types';
|
|
4
4
|
export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props: StyleProps) => {
|
|
5
5
|
[x: string]: string | undefined;
|
|
6
6
|
} | {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
-
import { SystemPalette } from '../../theme/global';
|
|
3
|
-
import { BorderWidths, Radii } from '../../theme/global/borders';
|
|
4
|
-
import { Space } from '../../theme/global/space';
|
|
5
|
-
import { ConfigType, FlexPropsKeyType } from './config';
|
|
1
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
import type { SystemPalette } from '../../theme/global';
|
|
3
|
+
import type { BorderWidths, Radii } from '../../theme/global/borders';
|
|
4
|
+
import type { Space } from '../../theme/global/space';
|
|
5
|
+
import type { ConfigType, FlexPropsKeyType } from './config';
|
|
6
6
|
export interface ThemeScale {
|
|
7
7
|
colors: keyof SystemPalette;
|
|
8
8
|
space: keyof Space;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CalendarProps, ParsedMaskedDate } from './types';
|
|
1
|
+
import type { CalendarProps, ParsedMaskedDate } from './types';
|
|
2
2
|
export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
|
|
3
3
|
export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
|
|
4
4
|
export declare const isDateInRange: ({ date, range, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CalendarProps } from './types';
|
|
2
|
+
import type { CalendarProps } from './types';
|
|
3
3
|
declare const _default: (({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => React.JSX.Element) & {
|
|
4
4
|
Range: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: Omit<CalendarProps, "value" | "onChange"> & {
|
|
5
5
|
value?: import("./CalendarRange").CalendarDateRange;
|