@hero-design/rn 8.82.0-alpha.0 → 8.82.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 +7 -0
- package/CHANGELOG.md +5 -1
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +37391 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +37488 -0
- package/package.json +1 -1
- package/src/components/BottomSheet/index.tsx +15 -13
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +14 -0
- package/stats/8.82.0/rn-stats.html +4842 -0
- package/types/components/Accordion/AccordionItem.d.ts +15 -0
- package/types/components/Accordion/StyledAccordion.d.ts +32 -0
- package/types/components/Accordion/index.d.ts +39 -0
- package/types/components/Alert/StyledAlert.d.ts +53 -0
- package/types/components/Alert/index.d.ts +58 -0
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/index.d.ts +4 -0
- package/types/components/Attachment/StyledAttachment.d.ts +28 -0
- package/types/components/Attachment/index.d.ts +38 -0
- package/types/components/Avatar/Avatar.d.ts +34 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +30 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +35 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +4 -0
- package/types/components/Avatar/StyledAvatar.d.ts +34 -0
- package/types/components/Avatar/index.d.ts +6 -0
- package/types/components/Badge/Status.d.ts +24 -0
- package/types/components/Badge/StyledBadge.d.ts +33 -0
- package/types/components/Badge/index.d.ts +6 -0
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +5 -0
- package/types/components/BottomSheet/Footer.d.ts +7 -0
- package/types/components/BottomSheet/Header.d.ts +10 -0
- package/types/components/BottomSheet/ScrollView.d.ts +3 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +61 -0
- package/types/components/BottomSheet/index.d.ts +74 -0
- package/types/components/Box/StyledBox.d.ts +15 -0
- package/types/components/Box/config.d.ts +170 -0
- package/types/components/Box/index.d.ts +6 -0
- package/types/components/Box/types.d.ts +31 -0
- package/types/components/Button/Button.d.ts +57 -0
- package/types/components/Button/IconButton.d.ts +39 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +27 -0
- package/types/components/Button/StyledButton.d.ts +48 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +17 -0
- package/types/components/Button/UtilityButton/index.d.ts +24 -0
- package/types/components/Button/index.d.ts +10 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +12 -0
- package/types/components/Calendar/StyledCalendar.d.ts +62 -0
- package/types/components/Calendar/helpers.d.ts +3 -0
- package/types/components/Calendar/index.d.ts +58 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/StyledCard.d.ts +11 -0
- package/types/components/Card/index.d.ts +25 -0
- package/types/components/Carousel/CardCarousel.d.ts +42 -0
- package/types/components/Carousel/CarouselItem.d.ts +7 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +24 -0
- package/types/components/Carousel/StyledCarousel.d.ts +54 -0
- package/types/components/Carousel/contants.d.ts +2 -0
- package/types/components/Carousel/index.d.ts +44 -0
- package/types/components/Carousel/types.d.ts +14 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +35 -0
- package/types/components/Checkbox/index.d.ts +44 -0
- package/types/components/Chip/StyledChip.d.ts +16 -0
- package/types/components/Chip/index.d.ts +31 -0
- package/types/components/Collapse/StyledCollapse.d.ts +23 -0
- package/types/components/Collapse/index.d.ts +20 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +8 -0
- package/types/components/ContentNavigator/index.d.ts +43 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +7 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +4 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +7 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +9 -0
- package/types/components/DatePicker/index.d.ts +4 -0
- package/types/components/DatePicker/types.d.ts +79 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
- package/types/components/Divider/StyledDivider.d.ts +12 -0
- package/types/components/Divider/index.d.ts +22 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
- package/types/components/Drawer/StyledDrawer.d.ts +49 -0
- package/types/components/Drawer/index.d.ts +27 -0
- package/types/components/Empty/StyledEmpty.d.ts +21 -0
- package/types/components/Empty/index.d.ts +31 -0
- package/types/components/Error/StyledError.d.ts +53 -0
- package/types/components/Error/index.d.ts +56 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +27 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/index.d.ts +54 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +7 -0
- package/types/components/FAB/FAB.d.ts +40 -0
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/StyledFAB.d.ts +21 -0
- package/types/components/FAB/index.d.ts +5 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
- package/types/components/FloatingIsland/index.d.ts +23 -0
- package/types/components/HeroDesignProvider/index.d.ts +4 -0
- package/types/components/Icon/AnimatedIcon.d.ts +6 -0
- package/types/components/Icon/HeroIcon/index.d.ts +12 -0
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/components/Icon/index.d.ts +35 -0
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/components/Image/index.d.ts +17 -0
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +52 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/MapPin/Focussed.d.ts +13 -0
- package/types/components/MapPin/StyledMapPin.d.ts +31 -0
- package/types/components/MapPin/index.d.ts +5 -0
- package/types/components/MapPin/types.d.ts +38 -0
- package/types/components/Modal/index.d.ts +37 -0
- package/types/components/PageControl/StyledPageControl.d.ts +12 -0
- package/types/components/PageControl/index.d.ts +22 -0
- package/types/components/PinInput/PinCell.d.ts +9 -0
- package/types/components/PinInput/StyledPinInput.d.ts +69 -0
- package/types/components/PinInput/index.d.ts +69 -0
- package/types/components/Portal/PortalHost.d.ts +5 -0
- package/types/components/Portal/PortalProvider.d.ts +7 -0
- package/types/components/Portal/constants.d.ts +8 -0
- package/types/components/Portal/contexts.d.ts +9 -0
- package/types/components/Portal/index.d.ts +18 -0
- package/types/components/Portal/reducer.d.ts +5 -0
- package/types/components/Portal/types.d.ts +22 -0
- package/types/components/Portal/usePortal.d.ts +8 -0
- package/types/components/Portal/usePortalState.d.ts +1 -0
- package/types/components/Progress/ProgressBar.d.ts +18 -0
- package/types/components/Progress/ProgressCircle.d.ts +20 -0
- package/types/components/Progress/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledProgressBar.d.ts +18 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +46 -0
- package/types/components/Progress/StyledStep.d.ts +23 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
- package/types/components/Progress/constants.d.ts +15 -0
- package/types/components/Progress/index.d.ts +6 -0
- package/types/components/Progress/types.d.ts +1 -0
- package/types/components/Radio/Radio.d.ts +38 -0
- package/types/components/Radio/RadioGroup.d.ts +36 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/Radio/types.d.ts +8 -0
- package/types/components/Rate/StyledRate.d.ts +10 -0
- package/types/components/Rate/index.d.ts +29 -0
- package/types/components/RefreshControl/index.d.ts +5 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +4 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +18 -0
- package/types/components/RichTextEditor/MentionList.d.ts +17 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +70 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/constants.d.ts +9 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/index.d.ts +7 -0
- package/types/components/RichTextEditor/types.d.ts +1 -0
- package/types/components/RichTextEditor/utils/events.d.ts +8 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
- package/types/components/Search/SearchOneLine.d.ts +69 -0
- package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
- package/types/components/Search/SearchTwoLine.d.ts +36 -0
- package/types/components/Search/StyledSearch.d.ts +49 -0
- package/types/components/Search/index.d.ts +10 -0
- package/types/components/Search/utils.d.ts +8 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +23 -0
- package/types/components/SectionHeading/index.d.ts +45 -0
- package/types/components/Select/BaseOptionList.d.ts +8 -0
- package/types/components/Select/Footer.d.ts +6 -0
- package/types/components/Select/MultiSelect/Option.d.ts +10 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +9 -0
- package/types/components/Select/MultiSelect/index.d.ts +30 -0
- package/types/components/Select/SingleSelect/Option.d.ts +10 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +11 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +23 -0
- package/types/components/Select/StyledSelect.d.ts +21 -0
- package/types/components/Select/helpers.d.ts +14 -0
- package/types/components/Select/index.d.ts +8 -0
- package/types/components/Select/types.d.ts +84 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +16 -0
- package/types/components/Skeleton/index.d.ts +14 -0
- package/types/components/Slider/index.d.ts +53 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +6 -0
- package/types/components/Spinner/StyledSpinner.d.ts +34 -0
- package/types/components/Spinner/index.d.ts +18 -0
- package/types/components/Success/StyledSuccess.d.ts +49 -0
- package/types/components/Success/index.d.ts +50 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +49 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +16 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
- package/types/components/Switch/StyledSwitch.d.ts +15 -0
- package/types/components/Switch/index.d.ts +28 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +9 -0
- package/types/components/Tabs/SceneView.d.ts +10 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +7 -0
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +40 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +9 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +10 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +55 -0
- package/types/components/Tabs/StyledTabs.d.ts +51 -0
- package/types/components/Tabs/TabWithBadge.d.ts +16 -0
- package/types/components/Tabs/index.d.ts +62 -0
- package/types/components/Tabs/useHandlePageScroll.d.ts +8 -0
- package/types/components/Tabs/useIsFocused.d.ts +6 -0
- package/types/components/Tabs/utils.d.ts +2 -0
- package/types/components/Tag/StyledTag.d.ts +17 -0
- package/types/components/Tag/index.d.ts +27 -0
- package/types/components/TextInput/StyledTextInput.d.ts +86 -0
- package/types/components/TextInput/index.d.ts +124 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +9 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +4 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +4 -0
- package/types/components/TimePicker/index.d.ts +4 -0
- package/types/components/TimePicker/types.d.ts +61 -0
- package/types/components/Toast/StyledToast.d.ts +59 -0
- package/types/components/Toast/Toast.d.ts +3 -0
- package/types/components/Toast/ToastContainer.d.ts +5 -0
- package/types/components/Toast/ToastContext.d.ts +12 -0
- package/types/components/Toast/ToastProvider.d.ts +11 -0
- package/types/components/Toast/index.d.ts +8 -0
- package/types/components/Toast/types.d.ts +72 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +71 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +14 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +31 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
- package/types/components/Toolbar/index.d.ts +14 -0
- package/types/components/Typography/Body/StyledBody.d.ts +14 -0
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +1 -0
- package/types/components/Typography/Body/index.d.ts +33 -0
- package/types/components/Typography/Caption/StyledCaption.d.ts +12 -0
- package/types/components/Typography/Caption/index.d.ts +27 -0
- package/types/components/Typography/Label/StyledLabel.d.ts +11 -0
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +1 -0
- package/types/components/Typography/Label/index.d.ts +23 -0
- package/types/components/Typography/Text/StyledText.d.ts +13 -0
- package/types/components/Typography/Text/index.d.ts +37 -0
- package/types/components/Typography/Title/StyledTitle.d.ts +14 -0
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +1 -0
- package/types/components/Typography/Title/index.d.ts +33 -0
- package/types/components/Typography/index.d.ts +17 -0
- package/types/components/Typography/types.d.ts +6 -0
- package/types/index.d.ts +57 -0
- package/types/testHelpers/renderWithTheme.d.ts +3 -0
- package/types/testHelpers/utils.d.ts +1 -0
- package/types/theme/ThemeProvider.d.ts +12 -0
- package/types/theme/ThemeSwitcher.d.ts +8 -0
- package/types/theme/components/accordion.d.ts +13 -0
- package/types/theme/components/alert.d.ts +36 -0
- package/types/theme/components/attachment.d.ts +21 -0
- package/types/theme/components/avatar.d.ts +50 -0
- package/types/theme/components/badge.d.ts +56 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/bottomSheet.d.ts +38 -0
- package/types/theme/components/button.d.ts +72 -0
- package/types/theme/components/calendar.d.ts +28 -0
- package/types/theme/components/card.d.ts +21 -0
- package/types/theme/components/cardCarousel.d.ts +15 -0
- package/types/theme/components/carousel.d.ts +36 -0
- package/types/theme/components/checkbox.d.ts +27 -0
- package/types/theme/components/chip.d.ts +43 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/theme/components/datePicker.d.ts +7 -0
- package/types/theme/components/divider.d.ts +17 -0
- package/types/theme/components/drawer.d.ts +30 -0
- package/types/theme/components/empty.d.ts +37 -0
- package/types/theme/components/error.d.ts +51 -0
- package/types/theme/components/fab.d.ts +71 -0
- package/types/theme/components/floatingIsland.d.ts +32 -0
- package/types/theme/components/icon.d.ts +23 -0
- package/types/theme/components/image.d.ts +8 -0
- package/types/theme/components/list.d.ts +46 -0
- package/types/theme/components/mapPin.d.ts +39 -0
- package/types/theme/components/pageControl.d.ts +18 -0
- package/types/theme/components/pinInput.d.ts +57 -0
- package/types/theme/components/progress.d.ts +51 -0
- package/types/theme/components/radio.d.ts +24 -0
- package/types/theme/components/rate.d.ts +11 -0
- package/types/theme/components/refreshControl.d.ts +7 -0
- package/types/theme/components/richTextEditor.d.ts +28 -0
- package/types/theme/components/search.d.ts +64 -0
- package/types/theme/components/sectionHeading.d.ts +14 -0
- package/types/theme/components/select.d.ts +18 -0
- package/types/theme/components/skeleton.d.ts +17 -0
- package/types/theme/components/slider.d.ts +9 -0
- package/types/theme/components/spinner.d.ts +27 -0
- package/types/theme/components/success.d.ts +43 -0
- package/types/theme/components/swipeable.d.ts +16 -0
- package/types/theme/components/switch.d.ts +38 -0
- package/types/theme/components/tabs.d.ts +30 -0
- package/types/theme/components/tag.d.ts +53 -0
- package/types/theme/components/textInput.d.ts +87 -0
- package/types/theme/components/timePicker.d.ts +7 -0
- package/types/theme/components/toast.d.ts +50 -0
- package/types/theme/components/toolbar.d.ts +47 -0
- package/types/theme/components/typography.d.ts +165 -0
- package/types/theme/getTheme.d.ts +106 -0
- package/types/theme/global/borders.d.ts +18 -0
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/globalDark.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +48 -0
- package/types/theme/global/colors/types.d.ts +50 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
- package/types/theme/global/index.d.ts +82 -0
- package/types/theme/global/scale.d.ts +14 -0
- package/types/theme/global/shadows.d.ts +16 -0
- package/types/theme/global/sizes.d.ts +14 -0
- package/types/theme/global/space.d.ts +16 -0
- package/types/theme/global/typography.d.ts +31 -0
- package/types/theme/index.d.ts +9 -0
- package/types/types.d.ts +14 -0
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/helpers.d.ts +4 -0
- package/types/utils/hooks.d.ts +3 -0
- package/types/utils/scale.d.ts +3 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
4
|
+
import type { State } from './StyledTextInput';
|
|
5
|
+
import type { IconName } from '../Icon';
|
|
6
|
+
export declare type TextInputHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
7
|
+
export declare type TextInputVariant = 'text' | 'textarea';
|
|
8
|
+
export interface TextInputProps extends NativeTextInputProps {
|
|
9
|
+
/**
|
|
10
|
+
* Field label.
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
|
|
15
|
+
*/
|
|
16
|
+
prefix?: IconName | React.ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* Name of Icon or ReactElement to render on the right side of the input.
|
|
19
|
+
*/
|
|
20
|
+
suffix?: IconName | React.ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* Additional wrapper style.
|
|
23
|
+
*/
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
/**
|
|
26
|
+
* Input text style.
|
|
27
|
+
*/
|
|
28
|
+
textStyle?: StyleProp<TextStyle>;
|
|
29
|
+
/**
|
|
30
|
+
* Testing id of the component.
|
|
31
|
+
*/
|
|
32
|
+
testID?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Accessibility label for the input (Android).
|
|
35
|
+
*/
|
|
36
|
+
accessibilityLabelledBy?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Error message to display.
|
|
39
|
+
*/
|
|
40
|
+
error?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the input is required, if true, an asterisk will be appended to the label.
|
|
43
|
+
*/
|
|
44
|
+
required?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text to display.
|
|
47
|
+
* */
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the input is editable.
|
|
51
|
+
* */
|
|
52
|
+
editable?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the input is disabled.
|
|
55
|
+
*/
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the input is loading.
|
|
59
|
+
*/
|
|
60
|
+
loading?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The max length of the input.
|
|
63
|
+
* If the max length is set, the input will display the current length and the max length.
|
|
64
|
+
* */
|
|
65
|
+
maxLength?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to hide the character count.
|
|
68
|
+
* */
|
|
69
|
+
hideCharacterCount?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The helper text to display.
|
|
72
|
+
*/
|
|
73
|
+
helpText?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Customise input value renderer
|
|
76
|
+
*/
|
|
77
|
+
renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* Component ref.
|
|
80
|
+
*/
|
|
81
|
+
ref?: React.Ref<TextInputHandles>;
|
|
82
|
+
/**
|
|
83
|
+
* Component variant.
|
|
84
|
+
*/
|
|
85
|
+
variant?: TextInputVariant;
|
|
86
|
+
}
|
|
87
|
+
export declare const getState: ({ disabled, error, editable, loading, isEmptyValue, }: {
|
|
88
|
+
disabled?: boolean | undefined;
|
|
89
|
+
error?: string | undefined;
|
|
90
|
+
editable?: boolean | undefined;
|
|
91
|
+
loading: boolean;
|
|
92
|
+
isFocused?: boolean | undefined;
|
|
93
|
+
isEmptyValue?: boolean | undefined;
|
|
94
|
+
}) => State;
|
|
95
|
+
export declare const LABEL_ANIMATION_DURATION = 150;
|
|
96
|
+
export declare const renderErrorOrHelpText: ({ error, helpText, }: {
|
|
97
|
+
error?: string | undefined;
|
|
98
|
+
helpText?: string | undefined;
|
|
99
|
+
}) => false | React.JSX.Element;
|
|
100
|
+
export declare const renderInput: ({ variant, nativeInputProps, renderInputValue, ref, }: {
|
|
101
|
+
variant: TextInputVariant;
|
|
102
|
+
nativeInputProps: NativeTextInputProps;
|
|
103
|
+
multiline?: boolean | undefined;
|
|
104
|
+
renderInputValue?: ((inputProps: NativeTextInputProps) => React.ReactNode) | undefined;
|
|
105
|
+
ref?: React.Ref<RNTextInput> | undefined;
|
|
106
|
+
}) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
107
|
+
export declare const renderSuffix: ({ state, loading, suffix, }: {
|
|
108
|
+
state: State;
|
|
109
|
+
loading: boolean;
|
|
110
|
+
suffix?: "number" | React.ReactElement<any, string | React.JSXElementConstructor<any>> | "swag" | "wallet" | "bold" | "menu" | "filter" | "image" | "switch" | "target" | "restart" | "directory" | "document" | "feed" | "list" | "billing" | "home" | "user" | "send" | "file" | "loading" | "sync" | "warning" | "activate" | "add-emoji" | "add-person" | "adjustment" | "alignment" | "antenna" | "archive" | "assignment-warning" | "bank" | "bell" | "bolt" | "bookmark-added" | "bookmark" | "box-check" | "box" | "bpay" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "caret-down-small" | "caret-down" | "caret-left-small" | "caret-left" | "caret-right-small" | "caret-right" | "caret-up-small" | "caret-up" | "check-radio" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock-3" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "dollar-coin-shine" | "dot" | "double-buildings" | "edit-template" | "envelope" | "exclude" | "expand-content" | "expense" | "explore_nearby" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "folder-user" | "folder" | "format-bold" | "format-heading1" | "format-heading2" | "format-italic" | "format-list-bulleted" | "format-list-numbered" | "format-underlined" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "hero-points" | "import" | "incident-siren" | "instapay-daily" | "instapay-now" | "instapay" | "loading-2" | "location-on" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "money-notes" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "near-me" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane-up" | "plane" | "play-arrow" | "play-circle" | "print" | "raising-hands" | "reply-arrow" | "reply" | "reschedule" | "rostering" | "salary-sacrifice" | "save" | "schedule-send" | "schedule" | "search-person" | "speaker-active" | "speaker" | "star-award" | "star-badge" | "star-circle" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "surfing" | "survey" | "swag-pillar-benefit" | "swag-pillar-career" | "swag-pillar-money" | "swag-pillar-work" | "swipe-right" | "tag" | "teams" | "thumb-down" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "video-1" | "video-2" | "accommodation-outlined" | "activate-outlined" | "add-credit-card-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "afternoon-outlined" | "ai-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "application-outlined" | "arrow-down" | "arrow-downwards" | "arrow-left" | "arrow-leftwards" | "arrow-right" | "arrow-rightwards" | "arrow-up" | "arrow-upwards" | "article-outlined" | "at-sign" | "auto-graph-outlined" | "automotive-outlined" | "bakery-outlined" | "bar-outlined" | "beauty-outlined" | "beer-outlined" | "bell-active-outlined" | "bell-outlined" | "bell-slash-outlined" | "bill-management-outlined" | "billing-outlined" | "body-outlined" | "bolt-outlined" | "book-outlined" | "bookmark-added-outlined" | "bookmark-outlined" | "box-1-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "call-outlined" | "call-split-outlined" | "camera-outlined" | "cancel" | "car-forward-outlined" | "cashback-outlined" | "charging-station-outlined" | "chat-bubble-outlined" | "chat-unread-outlined" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-in-outlined" | "clock-out-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "coin-super-outlined" | "comment-outlined" | "contacts-outlined" | "contacts-user-outlined" | "credit-card-outlined" | "cultural-site-outlined" | "cup-outlined" | "dentistry-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-box-outlined" | "dollar-card-outlined" | "dollar-coin-shine-outlined" | "dollar-credit-card-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-box-outlined" | "download-outlined" | "edit-template-outlined" | "electronics-outlined" | "email-outlined" | "end-break-outlined" | "enter-arrow" | "entertainment-outlined" | "envelope-outlined" | "evening-outlined" | "expense-approval-outlined" | "expense-outlined" | "explore-outlined" | "extension-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "fastfood-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-dollar-certified-outlined" | "file-dollar-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-statutory-outlined" | "file-verified-outlined" | "filter-outlined" | "fitness-outlined" | "folder-outlined" | "folder-upload-outlined" | "folder-user-outlined" | "form-outlined" | "funnel-filter-outline" | "goal-outlined" | "graph-outlined" | "grocery-outlined" | "hand-holding-user-outlined" | "handshake-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-active-outlined" | "home-outlined" | "id-card-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "job-search-outlined" | "leave-approval-outlined" | "link-1" | "link-2" | "list-outlined" | "live-help-outlined" | "local_mall_outlined" | "location-on-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "mail-outlined" | "map-outlined" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "morning-outlined" | "multiple-folders-outlined" | "multiple-users-outlined" | "near-me-outlined" | "node-outlined" | "number-points" | "overview-outlined" | "park-outlined" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "propane-tank-outlined" | "qr-code-outlined" | "qualification-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restaurant-outlined" | "resume-outlined" | "return-arrow" | "rostering-outlined" | "safety-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "search-secured-outlined" | "send-outlined" | "share-1" | "share-2" | "share-outlined-2" | "share-outlined" | "shop-outlined" | "shopping_basket_outlined" | "show-chart-outlined" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "smart-match-outlined" | "sparkle-outlined" | "speaker-active-outlined" | "speaker-outlined" | "star-circle-outlined" | "star-outlined" | "start-break-outlined" | "stash-outlined" | "stopwatch-outlined" | "strikethrough" | "styler-outlined" | "suitcase-clock-outlined" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "tag-outlined" | "target-outlined" | "tennis-outlined" | "thumb-down-outlined" | "ticket-outlined" | "timesheet-outlined" | "timesheets-outlined" | "today-outlined" | "transfer" | "transportation-outlined" | "trash-bin-outlined" | "umbrela-outlined" | "unavailability-outlined" | "unavailable" | "underline" | "union-outlined" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-gear-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "volunteer-outlined" | "wallet-outlined" | "wellness-outlined" | undefined;
|
|
111
|
+
}) => "number" | "swag" | "wallet" | React.JSX.Element | "bold" | "menu" | "filter" | "image" | "switch" | "target" | "restart" | "directory" | "document" | "feed" | "list" | "billing" | "home" | "user" | "send" | "file" | "loading" | "sync" | "warning" | "activate" | "add-emoji" | "add-person" | "adjustment" | "alignment" | "antenna" | "archive" | "assignment-warning" | "bank" | "bell" | "bolt" | "bookmark-added" | "bookmark" | "box-check" | "box" | "bpay" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "caret-down-small" | "caret-down" | "caret-left-small" | "caret-left" | "caret-right-small" | "caret-right" | "caret-up-small" | "caret-up" | "check-radio" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock-3" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "dollar-coin-shine" | "dot" | "double-buildings" | "edit-template" | "envelope" | "exclude" | "expand-content" | "expense" | "explore_nearby" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "folder-user" | "folder" | "format-bold" | "format-heading1" | "format-heading2" | "format-italic" | "format-list-bulleted" | "format-list-numbered" | "format-underlined" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "hero-points" | "import" | "incident-siren" | "instapay-daily" | "instapay-now" | "instapay" | "loading-2" | "location-on" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "money-notes" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "near-me" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane-up" | "plane" | "play-arrow" | "play-circle" | "print" | "raising-hands" | "reply-arrow" | "reply" | "reschedule" | "rostering" | "salary-sacrifice" | "save" | "schedule-send" | "schedule" | "search-person" | "speaker-active" | "speaker" | "star-award" | "star-badge" | "star-circle" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "surfing" | "survey" | "swag-pillar-benefit" | "swag-pillar-career" | "swag-pillar-money" | "swag-pillar-work" | "swipe-right" | "tag" | "teams" | "thumb-down" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "video-1" | "video-2" | "accommodation-outlined" | "activate-outlined" | "add-credit-card-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "afternoon-outlined" | "ai-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "application-outlined" | "arrow-down" | "arrow-downwards" | "arrow-left" | "arrow-leftwards" | "arrow-right" | "arrow-rightwards" | "arrow-up" | "arrow-upwards" | "article-outlined" | "at-sign" | "auto-graph-outlined" | "automotive-outlined" | "bakery-outlined" | "bar-outlined" | "beauty-outlined" | "beer-outlined" | "bell-active-outlined" | "bell-outlined" | "bell-slash-outlined" | "bill-management-outlined" | "billing-outlined" | "body-outlined" | "bolt-outlined" | "book-outlined" | "bookmark-added-outlined" | "bookmark-outlined" | "box-1-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "call-outlined" | "call-split-outlined" | "camera-outlined" | "cancel" | "car-forward-outlined" | "cashback-outlined" | "charging-station-outlined" | "chat-bubble-outlined" | "chat-unread-outlined" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-in-outlined" | "clock-out-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "coin-super-outlined" | "comment-outlined" | "contacts-outlined" | "contacts-user-outlined" | "credit-card-outlined" | "cultural-site-outlined" | "cup-outlined" | "dentistry-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-box-outlined" | "dollar-card-outlined" | "dollar-coin-shine-outlined" | "dollar-credit-card-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-box-outlined" | "download-outlined" | "edit-template-outlined" | "electronics-outlined" | "email-outlined" | "end-break-outlined" | "enter-arrow" | "entertainment-outlined" | "envelope-outlined" | "evening-outlined" | "expense-approval-outlined" | "expense-outlined" | "explore-outlined" | "extension-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "fastfood-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-dollar-certified-outlined" | "file-dollar-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-statutory-outlined" | "file-verified-outlined" | "filter-outlined" | "fitness-outlined" | "folder-outlined" | "folder-upload-outlined" | "folder-user-outlined" | "form-outlined" | "funnel-filter-outline" | "goal-outlined" | "graph-outlined" | "grocery-outlined" | "hand-holding-user-outlined" | "handshake-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-active-outlined" | "home-outlined" | "id-card-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "job-search-outlined" | "leave-approval-outlined" | "link-1" | "link-2" | "list-outlined" | "live-help-outlined" | "local_mall_outlined" | "location-on-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "mail-outlined" | "map-outlined" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "morning-outlined" | "multiple-folders-outlined" | "multiple-users-outlined" | "near-me-outlined" | "node-outlined" | "number-points" | "overview-outlined" | "park-outlined" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "propane-tank-outlined" | "qr-code-outlined" | "qualification-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restaurant-outlined" | "resume-outlined" | "return-arrow" | "rostering-outlined" | "safety-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "search-secured-outlined" | "send-outlined" | "share-1" | "share-2" | "share-outlined-2" | "share-outlined" | "shop-outlined" | "shopping_basket_outlined" | "show-chart-outlined" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "smart-match-outlined" | "sparkle-outlined" | "speaker-active-outlined" | "speaker-outlined" | "star-circle-outlined" | "star-outlined" | "start-break-outlined" | "stash-outlined" | "stopwatch-outlined" | "strikethrough" | "styler-outlined" | "suitcase-clock-outlined" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "tag-outlined" | "target-outlined" | "tennis-outlined" | "thumb-down-outlined" | "ticket-outlined" | "timesheet-outlined" | "timesheets-outlined" | "today-outlined" | "transfer" | "transportation-outlined" | "trash-bin-outlined" | "umbrela-outlined" | "unavailability-outlined" | "unavailable" | "underline" | "union-outlined" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-gear-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "volunteer-outlined" | "wallet-outlined" | "wellness-outlined" | undefined;
|
|
112
|
+
export declare const renderPrefix: ({ state, prefix, }: {
|
|
113
|
+
state: State;
|
|
114
|
+
prefix?: "number" | React.ReactElement<any, string | React.JSXElementConstructor<any>> | "swag" | "wallet" | "bold" | "menu" | "filter" | "image" | "switch" | "target" | "restart" | "directory" | "document" | "feed" | "list" | "billing" | "home" | "user" | "send" | "file" | "loading" | "sync" | "warning" | "activate" | "add-emoji" | "add-person" | "adjustment" | "alignment" | "antenna" | "archive" | "assignment-warning" | "bank" | "bell" | "bolt" | "bookmark-added" | "bookmark" | "box-check" | "box" | "bpay" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "caret-down-small" | "caret-down" | "caret-left-small" | "caret-left" | "caret-right-small" | "caret-right" | "caret-up-small" | "caret-up" | "check-radio" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock-3" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "dollar-coin-shine" | "dot" | "double-buildings" | "edit-template" | "envelope" | "exclude" | "expand-content" | "expense" | "explore_nearby" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "folder-user" | "folder" | "format-bold" | "format-heading1" | "format-heading2" | "format-italic" | "format-list-bulleted" | "format-list-numbered" | "format-underlined" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "hero-points" | "import" | "incident-siren" | "instapay-daily" | "instapay-now" | "instapay" | "loading-2" | "location-on" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "money-notes" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "near-me" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane-up" | "plane" | "play-arrow" | "play-circle" | "print" | "raising-hands" | "reply-arrow" | "reply" | "reschedule" | "rostering" | "salary-sacrifice" | "save" | "schedule-send" | "schedule" | "search-person" | "speaker-active" | "speaker" | "star-award" | "star-badge" | "star-circle" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "surfing" | "survey" | "swag-pillar-benefit" | "swag-pillar-career" | "swag-pillar-money" | "swag-pillar-work" | "swipe-right" | "tag" | "teams" | "thumb-down" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "video-1" | "video-2" | "accommodation-outlined" | "activate-outlined" | "add-credit-card-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "afternoon-outlined" | "ai-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "application-outlined" | "arrow-down" | "arrow-downwards" | "arrow-left" | "arrow-leftwards" | "arrow-right" | "arrow-rightwards" | "arrow-up" | "arrow-upwards" | "article-outlined" | "at-sign" | "auto-graph-outlined" | "automotive-outlined" | "bakery-outlined" | "bar-outlined" | "beauty-outlined" | "beer-outlined" | "bell-active-outlined" | "bell-outlined" | "bell-slash-outlined" | "bill-management-outlined" | "billing-outlined" | "body-outlined" | "bolt-outlined" | "book-outlined" | "bookmark-added-outlined" | "bookmark-outlined" | "box-1-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "call-outlined" | "call-split-outlined" | "camera-outlined" | "cancel" | "car-forward-outlined" | "cashback-outlined" | "charging-station-outlined" | "chat-bubble-outlined" | "chat-unread-outlined" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-in-outlined" | "clock-out-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "coin-super-outlined" | "comment-outlined" | "contacts-outlined" | "contacts-user-outlined" | "credit-card-outlined" | "cultural-site-outlined" | "cup-outlined" | "dentistry-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-box-outlined" | "dollar-card-outlined" | "dollar-coin-shine-outlined" | "dollar-credit-card-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-box-outlined" | "download-outlined" | "edit-template-outlined" | "electronics-outlined" | "email-outlined" | "end-break-outlined" | "enter-arrow" | "entertainment-outlined" | "envelope-outlined" | "evening-outlined" | "expense-approval-outlined" | "expense-outlined" | "explore-outlined" | "extension-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "fastfood-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-dollar-certified-outlined" | "file-dollar-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-statutory-outlined" | "file-verified-outlined" | "filter-outlined" | "fitness-outlined" | "folder-outlined" | "folder-upload-outlined" | "folder-user-outlined" | "form-outlined" | "funnel-filter-outline" | "goal-outlined" | "graph-outlined" | "grocery-outlined" | "hand-holding-user-outlined" | "handshake-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-active-outlined" | "home-outlined" | "id-card-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "job-search-outlined" | "leave-approval-outlined" | "link-1" | "link-2" | "list-outlined" | "live-help-outlined" | "local_mall_outlined" | "location-on-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "mail-outlined" | "map-outlined" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "morning-outlined" | "multiple-folders-outlined" | "multiple-users-outlined" | "near-me-outlined" | "node-outlined" | "number-points" | "overview-outlined" | "park-outlined" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "propane-tank-outlined" | "qr-code-outlined" | "qualification-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restaurant-outlined" | "resume-outlined" | "return-arrow" | "rostering-outlined" | "safety-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "search-secured-outlined" | "send-outlined" | "share-1" | "share-2" | "share-outlined-2" | "share-outlined" | "shop-outlined" | "shopping_basket_outlined" | "show-chart-outlined" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "smart-match-outlined" | "sparkle-outlined" | "speaker-active-outlined" | "speaker-outlined" | "star-circle-outlined" | "star-outlined" | "start-break-outlined" | "stash-outlined" | "stopwatch-outlined" | "strikethrough" | "styler-outlined" | "suitcase-clock-outlined" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "tag-outlined" | "target-outlined" | "tennis-outlined" | "thumb-down-outlined" | "ticket-outlined" | "timesheet-outlined" | "timesheets-outlined" | "today-outlined" | "transfer" | "transportation-outlined" | "trash-bin-outlined" | "umbrela-outlined" | "unavailability-outlined" | "unavailable" | "underline" | "union-outlined" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-gear-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "volunteer-outlined" | "wallet-outlined" | "wellness-outlined" | undefined;
|
|
115
|
+
}) => React.JSX.Element | undefined;
|
|
116
|
+
export declare const renderMaxLengthMessage: ({ maxLength, state, currentLength, hideCharacterCount, }: {
|
|
117
|
+
state: State;
|
|
118
|
+
currentLength: number;
|
|
119
|
+
maxLength?: number | undefined;
|
|
120
|
+
hideCharacterCount: boolean;
|
|
121
|
+
}) => false | React.JSX.Element;
|
|
122
|
+
export declare const getDisplayText: (value?: string, defaultValue?: string) => string;
|
|
123
|
+
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<TextInputHandles>>;
|
|
124
|
+
export default TextInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export { StyledPickerWrapper };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TimePickerProps } from './types';
|
|
3
|
+
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
|
|
4
|
+
export default TimePickerAndroid;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TimePickerProps } from './types';
|
|
3
|
+
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, supportedOrientations, }: TimePickerProps) => React.JSX.Element;
|
|
4
|
+
export default TimePickerIOS;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
export interface TimePickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Time picker input label.
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Current time value. Must be in correct default format or format provided via format prop.
|
|
9
|
+
*/
|
|
10
|
+
value?: Date;
|
|
11
|
+
/**
|
|
12
|
+
* Input placeholder. Time format will be used as placeholder if not specified.
|
|
13
|
+
*/
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback that is called when new value is selected.
|
|
17
|
+
*/
|
|
18
|
+
onChange: (value: Date) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Confirm label text. iOS only.
|
|
21
|
+
*/
|
|
22
|
+
confirmLabel: string;
|
|
23
|
+
/**
|
|
24
|
+
* Time display format of current value presented on the input. Default format is: HH:mm aa.
|
|
25
|
+
* Following date-fns's format (https://date-fns.org/v2.16.1/docs/format).
|
|
26
|
+
* This also change how the time picker display between 24 hour and 12 hour mode.
|
|
27
|
+
*/
|
|
28
|
+
displayFormat?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the Time picker is disabled.
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Error message to display.
|
|
35
|
+
*/
|
|
36
|
+
error?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the value is required, if true, an asterisk will be appended to the label.
|
|
39
|
+
*/
|
|
40
|
+
required?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The helper text to display.
|
|
43
|
+
*/
|
|
44
|
+
helpText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* hides icon
|
|
47
|
+
*/
|
|
48
|
+
showSuffix?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Addtional style.
|
|
51
|
+
*/
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
/**
|
|
54
|
+
* Testing id of the component.
|
|
55
|
+
*/
|
|
56
|
+
testID?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Supported orientations for the TimePicker modal, iOS only.
|
|
59
|
+
*/
|
|
60
|
+
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
61
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Animated, TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { IntentType } from './types';
|
|
4
|
+
import { TextProps } from '../Typography/Text';
|
|
5
|
+
import { IconProps } from '../Icon';
|
|
6
|
+
declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
position: 'top' | 'bottom';
|
|
11
|
+
}, {}, {
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
themeVariant: 'default' | 'round';
|
|
19
|
+
themeIntent: IntentType;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
}, {}, {
|
|
25
|
+
ref?: import("react").Ref<View> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, {}, {
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
34
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
showDivider: boolean;
|
|
38
|
+
}, {}, {
|
|
39
|
+
ref?: import("react").Ref<View> | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
+
}, {}, {
|
|
45
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
declare const StyledBody: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
50
|
+
} & TextProps & {
|
|
51
|
+
themeIntent: IntentType;
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
54
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
55
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
themeIntent: IntentType;
|
|
58
|
+
}, {}, {}>;
|
|
59
|
+
export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToastContainerProps } from './types';
|
|
3
|
+
import type { ToastControllerContextType } from './ToastContext';
|
|
4
|
+
declare const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<ToastControllerContextType>>;
|
|
5
|
+
export default ToastContainer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ToastContainerProps, ToastProps } from './types';
|
|
2
|
+
export declare type ToastControllerContextType = {
|
|
3
|
+
show: (props: Omit<ToastProps, 'position'>) => string;
|
|
4
|
+
hide: (id: string) => void;
|
|
5
|
+
clearAll: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const fallbackToastControlContext: ToastControllerContextType;
|
|
8
|
+
export declare const ToastContext: import("react").Context<ToastControllerContextType>;
|
|
9
|
+
export declare type ToastConfigContextType = Pick<ToastContainerProps, 'position' | 'displayType'>;
|
|
10
|
+
export declare const ToastConfigContext: import("react").Context<ToastConfigContextType>;
|
|
11
|
+
export declare const useToastConfig: () => ToastConfigContextType;
|
|
12
|
+
export declare const useToast: () => ToastControllerContextType;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ToastContainerProps } from './types';
|
|
4
|
+
declare type ToastProviderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Content to be wrapped.
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
} & ToastContainerProps;
|
|
10
|
+
declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => React.JSX.Element;
|
|
11
|
+
export default ToastProvider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const Toast: {
|
|
2
|
+
Provider: ({ children, displayType, position: _position, }: {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("./types").ToastContainerProps) => import("react").JSX.Element;
|
|
5
|
+
Container: import("react").ForwardRefExoticComponent<import("./types").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
|
|
6
|
+
useToast: () => import("./ToastContext").ToastControllerContextType;
|
|
7
|
+
};
|
|
8
|
+
export default Toast;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
|
+
export declare type IntentType = 'success' | 'info' | 'warning' | 'error' | 'notification' | 'snackbar';
|
|
5
|
+
export interface ToastProps {
|
|
6
|
+
/**
|
|
7
|
+
* Toast content.
|
|
8
|
+
*/
|
|
9
|
+
content: string | ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* Icon name of the Toast.
|
|
12
|
+
* - undefined: use default icon according to Toast intent.
|
|
13
|
+
* - null: no icon at all.
|
|
14
|
+
* - IconName: an icon identifier from hero-design icon list.
|
|
15
|
+
*/
|
|
16
|
+
icon?: null | IconName;
|
|
17
|
+
/**
|
|
18
|
+
* Visual intent color to apply to alert.
|
|
19
|
+
*/
|
|
20
|
+
intent?: 'success' | 'info' | 'warning' | 'error' | 'notification' | 'snackbar';
|
|
21
|
+
/**
|
|
22
|
+
* Toast variants
|
|
23
|
+
*/
|
|
24
|
+
variant?: 'default' | 'round';
|
|
25
|
+
/**
|
|
26
|
+
* Whether the toast message should be dismissed after the duration expired.
|
|
27
|
+
*/
|
|
28
|
+
autoDismiss?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Duration (in miliseconds) of how long the toast message will be displayed before it disapprears.
|
|
31
|
+
*/
|
|
32
|
+
duration?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Display action button with passed on the right side of the toast message.
|
|
35
|
+
* This action button will will dismiss the toast on pressed.
|
|
36
|
+
*/
|
|
37
|
+
actionLabel?: string | ReactElement;
|
|
38
|
+
/**
|
|
39
|
+
* Callback that will be called when the action button of the toast is pressed.
|
|
40
|
+
*/
|
|
41
|
+
onAction?: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Callback that will be called when the toast message is dismissed.
|
|
44
|
+
*/
|
|
45
|
+
onDismiss?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Addtitional style.
|
|
48
|
+
*/
|
|
49
|
+
style?: StyleProp<ViewStyle>;
|
|
50
|
+
/**
|
|
51
|
+
* Toast distance from bottom.
|
|
52
|
+
*/
|
|
53
|
+
distance?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface ToastContainerProps {
|
|
56
|
+
/**
|
|
57
|
+
* Displays multiple toasts at a time or one by one.
|
|
58
|
+
*/
|
|
59
|
+
displayType?: 'single' | 'stack';
|
|
60
|
+
/**
|
|
61
|
+
* Position that the toast message will appear on the screen.
|
|
62
|
+
*/
|
|
63
|
+
position?: 'top' | 'bottom';
|
|
64
|
+
/**
|
|
65
|
+
* Additional style for toasts container.
|
|
66
|
+
*/
|
|
67
|
+
style?: StyleProp<ViewStyle>;
|
|
68
|
+
}
|
|
69
|
+
export declare type ToastItemProps = {
|
|
70
|
+
id: string;
|
|
71
|
+
props: Omit<ToastProps, 'position'>;
|
|
72
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { TextInput, TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { BodyProps } from '../Typography/Body';
|
|
4
|
+
export declare type ToolbarMessageState = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
5
|
+
declare const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
align: 'left' | 'center' | 'right';
|
|
16
|
+
}, {}, {
|
|
17
|
+
ref?: import("react").Ref<View> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
+
}, {}, {
|
|
23
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
declare const IconButtonWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
|
+
}, {}, {
|
|
29
|
+
ref?: import("react").Ref<View> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
declare const IconButtonLabel: import("@emotion/native").StyledComponent<BodyProps & {
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
}, {}, {}>;
|
|
35
|
+
declare const StyledLabel: import("@emotion/native").StyledComponent<BodyProps & {
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
|
+
} & {
|
|
39
|
+
intent: Exclude<BodyProps['intent'], undefined>;
|
|
40
|
+
}, {}, {}>;
|
|
41
|
+
declare const ToolbarMessageWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
+
}, {}, {
|
|
45
|
+
ref?: import("react").Ref<View> | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const StyledInputContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
50
|
+
}, {}, {
|
|
51
|
+
ref?: import("react").Ref<View> | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const StyledInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
54
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
55
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
56
|
+
}, {}, {
|
|
57
|
+
ref?: import("react").Ref<TextInput> | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const StyledPrefix: import("@emotion/native").StyledComponent<ViewProps & {
|
|
60
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
61
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
62
|
+
}, {}, {
|
|
63
|
+
ref?: import("react").Ref<View> | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const StyledSuffix: import("@emotion/native").StyledComponent<ViewProps & {
|
|
66
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
67
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
68
|
+
}, {}, {
|
|
69
|
+
ref?: import("react").Ref<View> | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper, IconButtonWrapper, IconButtonLabel, StyledLabel, ToolbarMessageWrapper, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToolbarItemProps } from './ToolbarItem';
|
|
3
|
+
export interface ToolbarGroupProps {
|
|
4
|
+
/**
|
|
5
|
+
* List of action items in the toolbar group.
|
|
6
|
+
*/
|
|
7
|
+
items?: ToolbarItemProps[];
|
|
8
|
+
/**
|
|
9
|
+
* Alignment of the items in the group.
|
|
10
|
+
*/
|
|
11
|
+
align: 'left' | 'center' | 'right';
|
|
12
|
+
}
|
|
13
|
+
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
|
|
14
|
+
export default ToolbarGroup;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
|
+
export interface ToolbarItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* Visual intent of the toolbar item.
|
|
7
|
+
*/
|
|
8
|
+
intent?: 'primary' | 'secondary' | 'info' | 'success' | 'danger' | 'warning';
|
|
9
|
+
/**
|
|
10
|
+
* Icon of the toolbar item.
|
|
11
|
+
*/
|
|
12
|
+
icon?: IconName;
|
|
13
|
+
/**
|
|
14
|
+
* Action label of the toolbar item.
|
|
15
|
+
*/
|
|
16
|
+
label?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Callback that trigger when user press the toolbar item.
|
|
19
|
+
*/
|
|
20
|
+
onPress?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the toolbar item is disabled.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Addtitional style.
|
|
27
|
+
*/
|
|
28
|
+
style?: StyleProp<ViewStyle>;
|
|
29
|
+
}
|
|
30
|
+
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => React.JSX.Element;
|
|
31
|
+
export default ToolbarItem;
|