@hero-design/rn 8.44.0-alpha.0 → 8.44.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 +2 -2
- package/CHANGELOG.md +36 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +2852 -2683
- package/jest-setup.ts +2 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +2855 -2687
- package/package.json +23 -24
- package/rollup.config.js +0 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -384
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +791 -605
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -567
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +172 -110
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -70
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -581
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +158 -57
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -153
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -242
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -183
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
- package/src/components/Button/StyledButton.tsx +4 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -106
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1675 -1125
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +71 -26
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1651 -665
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -330
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
- package/src/components/Carousel/CardCarousel.tsx +10 -7
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -406
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +197 -70
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1742 -1526
- package/src/components/Carousel/__tests__/index.spec.tsx +50 -3
- package/src/components/Carousel/index.tsx +16 -22
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +404 -112
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -334
- package/src/components/Chip/StyledChip.tsx +121 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
- package/src/components/Chip/__tests__/index.spec.tsx +136 -0
- package/src/components/Chip/index.tsx +82 -0
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +424 -268
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +622 -457
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +212 -157
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +204 -149
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +483 -386
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
- package/src/components/Error/StyledError.tsx +2 -1
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +390 -262
- package/src/components/Error/__tests__/index.spec.tsx +9 -6
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +860 -723
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +199 -99
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +293 -185
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +3 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -170
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -588
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +272 -128
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +477 -193
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
- package/src/components/Modal/__tests__/index.spec.tsx +99 -0
- package/src/components/Modal/index.tsx +178 -82
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
- package/src/components/PageControl/index.tsx +1 -0
- package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -116
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +257 -205
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -600
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
- package/src/components/RichTextEditor/RichTextEditor.tsx +76 -38
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +413 -266
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -35
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +403 -305
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -57
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2387 -2151
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +856 -174
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -37
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2321 -2085
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +674 -150
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
- package/src/components/Success/StyledSuccess.tsx +2 -1
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +388 -258
- package/src/components/Success/__tests__/index.spec.tsx +9 -6
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -75
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
- package/src/components/Swipeable/index.tsx +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +146 -109
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -68
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2217 -1962
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -455
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1641 -1398
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
- package/src/components/TextInput/StyledTextInput.tsx +8 -31
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +0 -44
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +990 -711
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3200 -2431
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -2
- package/src/components/TextInput/index.tsx +113 -57
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +414 -304
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +686 -534
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -573
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -426
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -363
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
- package/src/index.ts +2 -2
- package/src/testHelpers/renderWithTheme.tsx +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +40 -3
- package/src/theme/components/button.ts +0 -1
- package/src/theme/components/chip.ts +47 -0
- package/src/theme/components/textInput.ts +2 -2
- package/src/theme/getTheme.ts +3 -0
- package/testUtils/setup.tsx +0 -18
- package/tsconfig.json +4 -1
- package/types/components/Accordion/AccordionItem.d.ts +2 -1
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Attachment/index.d.ts +2 -1
- package/types/components/Avatar/Avatar.d.ts +2 -1
- package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
- package/types/components/Avatar/index.d.ts +3 -2
- package/types/components/Badge/StyledBadge.d.ts +0 -4
- package/types/components/BottomSheet/Footer.d.ts +2 -1
- package/types/components/BottomSheet/Header.d.ts +2 -1
- package/types/components/BottomSheet/ScrollView.d.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
- package/types/components/Box/index.d.ts +2 -1
- package/types/components/Button/IconButton.d.ts +2 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
- package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
- package/types/components/Button/UtilityButton/index.d.ts +2 -1
- package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
- package/types/components/Calendar/StyledCalendar.d.ts +1 -1
- package/types/components/Calendar/index.d.ts +2 -1
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +2 -1
- package/types/components/Carousel/index.d.ts +2 -2
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/Chip/StyledChip.d.ts +31 -0
- package/types/components/Chip/index.d.ts +27 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -2
- package/types/components/Collapse/index.d.ts +2 -1
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
- package/types/components/DatePicker/index.d.ts +2 -1
- package/types/components/Divider/index.d.ts +2 -1
- package/types/components/Drawer/StyledDrawer.d.ts +0 -6
- package/types/components/Error/StyledError.d.ts +3 -9
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
- package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
- package/types/components/HeroDesignProvider/index.d.ts +2 -1
- package/types/components/Icon/AnimatedIcon.d.ts +2 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +3 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +1 -0
- package/types/components/Modal/index.d.ts +12 -8
- package/types/components/PageControl/StyledPageControl.d.ts +0 -2
- package/types/components/PageControl/index.d.ts +2 -1
- package/types/components/PinInput/PinCell.d.ts +2 -1
- package/types/components/Portal/PortalHost.d.ts +1 -1
- package/types/components/Portal/PortalProvider.d.ts +1 -1
- package/types/components/Portal/index.d.ts +2 -2
- package/types/components/Progress/ProgressBar.d.ts +1 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -2
- package/types/components/Progress/index.d.ts +1 -0
- package/types/components/Rate/StyledRate.d.ts +0 -2
- package/types/components/Rate/index.d.ts +2 -1
- package/types/components/RefreshControl/index.d.ts +2 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
- package/types/components/RichTextEditor/MentionList.d.ts +2 -1
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +2 -1
- package/types/components/Select/MultiSelect/Option.d.ts +2 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -2
- package/types/components/Select/index.d.ts +2 -1
- package/types/components/Skeleton/index.d.ts +2 -1
- package/types/components/Slider/index.d.ts +2 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Success/StyledSuccess.d.ts +3 -7
- package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
- package/types/components/Swipeable/index.d.ts +3 -3
- package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
- package/types/components/Switch/StyledSwitch.d.ts +0 -2
- package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
- package/types/components/Tabs/SceneView.d.ts +1 -1
- package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
- package/types/components/Tabs/StyledTabs.d.ts +0 -4
- package/types/components/Tabs/TabWithBadge.d.ts +2 -2
- package/types/components/Tabs/index.d.ts +2 -1
- package/types/components/TextInput/StyledTextInput.d.ts +5 -25
- package/types/components/TextInput/index.d.ts +2 -1
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
- package/types/components/TimePicker/index.d.ts +2 -1
- package/types/components/Toast/StyledToast.d.ts +0 -2
- package/types/components/Toast/Toast.d.ts +1 -0
- package/types/components/Toast/ToastProvider.d.ts +2 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
- package/types/components/Toolbar/index.d.ts +3 -2
- package/types/components/Typography/Body/index.d.ts +2 -1
- package/types/components/Typography/Caption/index.d.ts +2 -1
- package/types/components/Typography/Label/index.d.ts +2 -1
- package/types/components/Typography/Text/index.d.ts +2 -1
- package/types/components/Typography/Title/index.d.ts +2 -1
- package/types/index.d.ts +2 -2
- package/types/testHelpers/renderWithTheme.d.ts +1 -0
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/button.d.ts +0 -1
- package/types/theme/components/chip.d.ts +40 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/.turbo/turbo-publish:npm.log +0 -0
- package/src/components/Modal/ModalContentWrapper.tsx +0 -112
- package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +0 -135
- package/src/components/Modal/ModalPresenter/index.tsx +0 -9
- package/src/components/Modal/ModalProvider.tsx +0 -8
- package/types/components/Modal/ModalContentWrapper.d.ts +0 -16
- package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +0 -34
- package/types/components/Modal/ModalPresenter/index.d.ts +0 -3
- package/types/components/Modal/ModalProvider.d.ts +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
3
|
-
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number) => string) | undefined) =>
|
|
2
|
+
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number) => string) | undefined) => string | number;
|
|
4
3
|
export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
5
4
|
export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
6
5
|
export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import MultiSelect from './MultiSelect';
|
|
2
3
|
import type { MultiSelectProps } from './MultiSelect';
|
|
3
4
|
import type { SingleSelectProps } from './SingleSelect';
|
|
4
5
|
export type { MultiSelectProps, SingleSelectProps };
|
|
5
|
-
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => JSX.Element) & {
|
|
6
|
+
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
6
7
|
Multi: typeof MultiSelect;
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps } from 'react-native';
|
|
2
3
|
export interface SkeletonProps extends ViewProps {
|
|
3
4
|
/**
|
|
@@ -9,5 +10,5 @@ export interface SkeletonProps extends ViewProps {
|
|
|
9
10
|
*/
|
|
10
11
|
variant?: 'circular' | 'rectangular' | 'rounded';
|
|
11
12
|
}
|
|
12
|
-
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => JSX.Element;
|
|
13
|
+
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => React.JSX.Element;
|
|
13
14
|
export default Skeleton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
export interface SliderProps {
|
|
3
4
|
/**
|
|
@@ -48,5 +49,5 @@ export interface SliderProps {
|
|
|
48
49
|
*/
|
|
49
50
|
testID?: string;
|
|
50
51
|
}
|
|
51
|
-
declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => JSX.Element;
|
|
52
|
+
declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => React.JSX.Element;
|
|
52
53
|
export default Slider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { View } from 'react-native';
|
|
3
3
|
type SuccessVariant = 'full-screen' | 'in-page';
|
|
4
4
|
declare const StyledSuccessContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -40,15 +40,11 @@ declare const StyledSuccessButtonContainer: import("@emotion/native").StyledComp
|
|
|
40
40
|
ref?: import("react").Ref<View> | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
declare const StyledSuccessButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
43
|
-
children?: import("react").ReactNode;
|
|
44
|
-
} & {
|
|
45
43
|
theme?: import("@emotion/react").Theme | undefined;
|
|
46
44
|
as?: import("react").ElementType<any> | undefined;
|
|
47
45
|
}, {}, {}>;
|
|
48
|
-
declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("
|
|
46
|
+
declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
49
47
|
theme?: import("@emotion/react").Theme | undefined;
|
|
50
48
|
as?: import("react").ElementType<any> | undefined;
|
|
51
|
-
}, {}, {
|
|
52
|
-
ref?: import("react").Ref<Modal> | undefined;
|
|
53
|
-
}>;
|
|
49
|
+
}, {}, {}>;
|
|
54
50
|
export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessModal, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { ActionIntent } from './StyledSwipeable';
|
|
4
4
|
export interface SwipeableActionProps {
|
|
@@ -23,5 +23,5 @@ export interface SwipeableActionProps {
|
|
|
23
23
|
*/
|
|
24
24
|
testID?: string;
|
|
25
25
|
}
|
|
26
|
-
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => JSX.Element;
|
|
26
|
+
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => React.JSX.Element;
|
|
27
27
|
export default SwipeableAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { RectButton, Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
|
|
3
3
|
type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
4
|
type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
@@ -38,8 +38,8 @@ export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpad
|
|
|
38
38
|
*/
|
|
39
39
|
testID?: string;
|
|
40
40
|
}
|
|
41
|
-
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => JSX.Element) & {
|
|
42
|
-
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => JSX.Element;
|
|
41
|
+
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => React.JSX.Element) & {
|
|
42
|
+
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => React.JSX.Element;
|
|
43
43
|
Content: typeof RectButton;
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { LayoutChangeEvent } from 'react-native';
|
|
3
4
|
import type { BadgeConfigType, OptionType } from '.';
|
|
4
5
|
export declare const OptionContent: ({ content, badge, }: {
|
|
@@ -6,7 +7,7 @@ export declare const OptionContent: ({ content, badge, }: {
|
|
|
6
7
|
badge?: {
|
|
7
8
|
type: "status";
|
|
8
9
|
} | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
10
11
|
declare const Option: <T>({ text, icon, badge, selected, onLayout, index, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
|
|
11
12
|
selected: boolean;
|
|
12
13
|
onLayout?: ((e: LayoutChangeEvent) => void) | undefined;
|
|
@@ -7,20 +7,14 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
|
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
} & {
|
|
12
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
11
|
as?: import("react").ElementType<any> | undefined;
|
|
14
12
|
}, {}, {}>;
|
|
15
13
|
export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
16
|
-
children?: import("react").ReactNode;
|
|
17
|
-
} & {
|
|
18
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
15
|
as?: import("react").ElementType<any> | undefined;
|
|
20
16
|
}, {}, {}>;
|
|
21
17
|
export declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
} & {
|
|
24
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
19
|
as?: import("react").ElementType<any> | undefined;
|
|
26
20
|
}, {}, {}>;
|
|
@@ -10,8 +10,6 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
|
|
|
10
10
|
ref?: import("react").Ref<View> | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
13
|
-
children?: import("react").ReactNode;
|
|
14
|
-
} & {
|
|
15
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
14
|
as?: import("react").ElementType<any> | undefined;
|
|
17
15
|
}, {}, {}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Animated } from 'react-native';
|
|
2
3
|
declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
|
|
3
4
|
scrollOffsetAnimatedValue: Animated.Value;
|
|
4
5
|
positionAnimatedValue: Animated.Value;
|
|
5
6
|
tabsLength: number;
|
|
6
7
|
tabsWidth: number;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
8
9
|
export default ActiveTabIndicator;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TabsProps } from '.';
|
|
2
|
-
declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
|
|
3
|
+
declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
|
|
3
4
|
export default ScrollableTab;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
3
|
import type { TabType } from '.';
|
|
3
4
|
export interface ScrollableTabHeaderProps extends ViewProps {
|
|
@@ -31,5 +32,5 @@ export interface ScrollableTabHeaderProps extends ViewProps {
|
|
|
31
32
|
left: number;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => JSX.Element;
|
|
35
|
+
declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => React.JSX.Element;
|
|
35
36
|
export default ScrollableTabHeader;
|
|
@@ -33,8 +33,6 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
36
|
-
children?: import("react").ReactNode;
|
|
37
|
-
} & {
|
|
38
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
37
|
as?: import("react").ElementType<any> | undefined;
|
|
40
38
|
} & {
|
|
@@ -47,8 +45,6 @@ declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledCompo
|
|
|
47
45
|
ref?: import("react").Ref<View> | undefined;
|
|
48
46
|
}>;
|
|
49
47
|
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
50
|
-
children?: import("react").ReactNode;
|
|
51
|
-
} & {
|
|
52
48
|
theme?: import("@emotion/react").Theme | undefined;
|
|
53
49
|
as?: import("react").ElementType<any> | undefined;
|
|
54
50
|
} & {
|
|
@@ -33,8 +33,6 @@ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("r
|
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
36
|
-
children?: import("react").ReactNode;
|
|
37
|
-
} & {
|
|
38
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
37
|
as?: import("react").ElementType<any> | undefined;
|
|
40
38
|
}, {}, {}>;
|
|
@@ -45,8 +43,6 @@ declare const TabScreen: import("@emotion/native").StyledComponent<import("react
|
|
|
45
43
|
ref?: import("react").Ref<View> | undefined;
|
|
46
44
|
}>;
|
|
47
45
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
48
|
-
children?: import("react").ReactNode;
|
|
49
|
-
} & {
|
|
50
46
|
theme?: import("@emotion/react").Theme | undefined;
|
|
51
47
|
as?: import("react").ElementType<any> | undefined;
|
|
52
48
|
} & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export type StatusBadgeType = {
|
|
3
3
|
type: 'status';
|
|
4
4
|
};
|
|
@@ -12,5 +12,5 @@ interface TabWithBadgeProps {
|
|
|
12
12
|
config?: BadgeConfigType;
|
|
13
13
|
tabItem: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => JSX.Element;
|
|
15
|
+
declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => React.JSX.Element;
|
|
16
16
|
export default TabWithBadge;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
4
|
import { IconName } from '../Icon';
|
|
4
5
|
import type { BadgeConfigType } from './TabWithBadge';
|
|
@@ -55,7 +56,7 @@ export interface TabsProps extends ViewProps {
|
|
|
55
56
|
testID?: string;
|
|
56
57
|
}
|
|
57
58
|
declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element) & {
|
|
58
|
-
Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
|
|
59
|
+
Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
|
|
59
60
|
useIsFocused: () => boolean | undefined;
|
|
60
61
|
};
|
|
61
62
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TextInput, View } from 'react-native';
|
|
2
|
+
import { TextInput, View, Animated } from 'react-native';
|
|
3
3
|
export type State = 'default' | 'filled' | 'disabled' | 'readonly' | 'error';
|
|
4
4
|
type Variant = 'text' | 'textarea';
|
|
5
5
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
@@ -8,32 +8,12 @@ declare const StyledContainer: import("@emotion/native").StyledComponent<import(
|
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
|
-
declare const
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
}, {}, {
|
|
15
|
-
ref?: import("react").Ref<View> | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
themeState: State;
|
|
22
|
-
}, {}, {}>;
|
|
23
|
-
declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
themeState: State;
|
|
28
|
-
}, {}, {}>;
|
|
29
|
-
declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
+
declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
30
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
13
|
as?: import("react").ElementType<any> | undefined;
|
|
32
14
|
} & {
|
|
33
15
|
themeVariant: Variant;
|
|
34
|
-
}, {}, {
|
|
35
|
-
ref?: import("react").Ref<View> | undefined;
|
|
36
|
-
}>;
|
|
16
|
+
}, {}, {}>;
|
|
37
17
|
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
38
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
19
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -62,7 +42,7 @@ declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<
|
|
|
62
42
|
} & {
|
|
63
43
|
themeState: State;
|
|
64
44
|
}, {}, {}>;
|
|
65
|
-
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => JSX.Element;
|
|
45
|
+
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => import("react").JSX.Element;
|
|
66
46
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
67
47
|
theme?: import("@emotion/react").Theme | undefined;
|
|
68
48
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -104,4 +84,4 @@ declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").Styled
|
|
|
104
84
|
}, {}, {
|
|
105
85
|
ref?: import("react").Ref<View> | undefined;
|
|
106
86
|
}>;
|
|
107
|
-
export { StyledTextInputContainer,
|
|
87
|
+
export { StyledTextInputContainer, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, StyledErrorAndMaxLengthContainer, };
|
|
@@ -91,5 +91,6 @@ export declare const getState: ({ disabled, error, editable, loading, isEmptyVal
|
|
|
91
91
|
isFocused?: boolean | undefined;
|
|
92
92
|
isEmptyValue?: boolean | undefined;
|
|
93
93
|
}) => State;
|
|
94
|
-
declare const
|
|
94
|
+
export declare const LABEL_ANIMATION_DURATION = 150;
|
|
95
|
+
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<TextInputHandles>>;
|
|
95
96
|
export default TextInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
|
|
3
|
+
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
|
|
3
4
|
export default TimePickerAndroid;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
|
|
3
|
+
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
|
|
3
4
|
export default TimePickerIOS;
|
|
@@ -11,8 +11,6 @@ declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<V
|
|
|
11
11
|
ref?: import("react").Ref<View> | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
} & {
|
|
16
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
15
|
as?: import("react").ElementType<any> | undefined;
|
|
18
16
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { ToastContainerProps } from './types';
|
|
3
4
|
type ToastProviderProps = {
|
|
@@ -6,5 +7,5 @@ type ToastProviderProps = {
|
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
8
9
|
} & ToastContainerProps;
|
|
9
|
-
declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => JSX.Element;
|
|
10
|
+
declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => React.JSX.Element;
|
|
10
11
|
export default ToastProvider;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare const Toast: {
|
|
3
3
|
Provider: ({ children, displayType, position: _position, }: {
|
|
4
4
|
children?: import("react").ReactNode;
|
|
5
|
-
} & import("./types").ToastContainerProps) => JSX.Element;
|
|
5
|
+
} & import("./types").ToastContainerProps) => import("react").JSX.Element;
|
|
6
6
|
Container: import("react").ForwardRefExoticComponent<import("./types").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
|
|
7
7
|
useToast: () => import("./ToastContext").ToastControllerContextType;
|
|
8
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ToolbarItemProps } from './ToolbarItem';
|
|
2
3
|
export interface ToolbarGroupProps {
|
|
3
4
|
/**
|
|
@@ -9,5 +10,5 @@ export interface ToolbarGroupProps {
|
|
|
9
10
|
*/
|
|
10
11
|
align: 'left' | 'center' | 'right';
|
|
11
12
|
}
|
|
12
|
-
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => JSX.Element;
|
|
13
|
+
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
|
|
13
14
|
export default ToolbarGroup;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import type { IconName } from '../Icon';
|
|
3
4
|
export interface ToolbarItemProps {
|
|
@@ -26,5 +27,5 @@ export interface ToolbarItemProps {
|
|
|
26
27
|
*/
|
|
27
28
|
style?: StyleProp<ViewStyle>;
|
|
28
29
|
}
|
|
29
|
-
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => JSX.Element;
|
|
30
|
+
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => React.JSX.Element;
|
|
30
31
|
export default ToolbarItem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import { ViewProps } from 'react-native';
|
|
3
4
|
export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
@@ -6,7 +7,7 @@ export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
8
9
|
}
|
|
9
|
-
declare const _default: (({ children, ...rest }: ToolbarProps) => JSX.Element) & {
|
|
10
|
-
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => JSX.Element;
|
|
10
|
+
declare const _default: (({ children, ...rest }: ToolbarProps) => React.JSX.Element) & {
|
|
11
|
+
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
|
|
11
12
|
};
|
|
12
13
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface BodyProps extends NativeTextProps {
|
|
@@ -28,5 +29,5 @@ export interface BodyProps extends NativeTextProps {
|
|
|
28
29
|
* */
|
|
29
30
|
variant?: 'regular' | 'regular-bold' | 'small' | 'small-bold';
|
|
30
31
|
}
|
|
31
|
-
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => JSX.Element;
|
|
32
|
+
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => React.JSX.Element;
|
|
32
33
|
export default Body;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface CaptionProps extends NativeTextProps {
|
|
@@ -22,5 +23,5 @@ export interface CaptionProps extends NativeTextProps {
|
|
|
22
23
|
*/
|
|
23
24
|
testID?: string;
|
|
24
25
|
}
|
|
25
|
-
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => JSX.Element;
|
|
26
|
+
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => React.JSX.Element;
|
|
26
27
|
export default Caption;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface LabelProps extends NativeTextProps {
|
|
@@ -18,5 +19,5 @@ export interface LabelProps extends NativeTextProps {
|
|
|
18
19
|
*/
|
|
19
20
|
testID?: string;
|
|
20
21
|
}
|
|
21
|
-
declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => JSX.Element;
|
|
22
|
+
declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => React.JSX.Element;
|
|
22
23
|
export default Label;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface TextProps extends NativeTextProps {
|
|
@@ -32,5 +33,5 @@ export interface TextProps extends NativeTextProps {
|
|
|
32
33
|
*/
|
|
33
34
|
typeface?: 'neutral' | 'playful';
|
|
34
35
|
}
|
|
35
|
-
declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => JSX.Element;
|
|
36
|
+
declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => React.JSX.Element;
|
|
36
37
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface TitleProps extends NativeTextProps {
|
|
@@ -28,5 +29,5 @@ export interface TitleProps extends NativeTextProps {
|
|
|
28
29
|
*/
|
|
29
30
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
30
31
|
}
|
|
31
|
-
declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => JSX.Element;
|
|
32
|
+
declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => React.JSX.Element;
|
|
32
33
|
export default Title;
|
package/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import Button from './components/Button';
|
|
|
12
12
|
import Calendar from './components/Calendar';
|
|
13
13
|
import Carousel from './components/Carousel';
|
|
14
14
|
import Card from './components/Card';
|
|
15
|
+
import Chip from './components/Chip';
|
|
15
16
|
import Collapse from './components/Collapse';
|
|
16
17
|
import Checkbox from './components/Checkbox';
|
|
17
18
|
import ContentNavigator from './components/ContentNavigator';
|
|
@@ -25,7 +26,6 @@ import HeroDesignProvider from './components/HeroDesignProvider';
|
|
|
25
26
|
import Icon from './components/Icon';
|
|
26
27
|
import Image from './components/Image';
|
|
27
28
|
import List from './components/List';
|
|
28
|
-
import Modal from './components/Modal';
|
|
29
29
|
import PinInput from './components/PinInput';
|
|
30
30
|
import Progress from './components/Progress';
|
|
31
31
|
import Slider from './components/Slider';
|
|
@@ -49,5 +49,5 @@ import RefreshControl from './components/RefreshControl';
|
|
|
49
49
|
import RichTextEditor from './components/RichTextEditor';
|
|
50
50
|
import PageControl from './components/PageControl';
|
|
51
51
|
import Portal from './components/Portal';
|
|
52
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, HeroDesignProvider, List,
|
|
52
|
+
export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Chip, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, HeroDesignProvider, List, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
|
|
53
53
|
export * from './types';
|
|
@@ -3,6 +3,6 @@ type ThemeName = 'swag' | 'swagDark' | 'work' | 'jobs' | 'wallet' | 'eBens';
|
|
|
3
3
|
declare const ThemeSwitcher: ({ name, children, }: {
|
|
4
4
|
name?: ThemeName | undefined;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
}) => JSX.Element;
|
|
7
|
-
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => React.JSX.Element;
|
|
8
8
|
export default ThemeSwitcher;
|
|
@@ -51,7 +51,6 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
51
51
|
textButtonPadding: number;
|
|
52
52
|
iconPadding: number;
|
|
53
53
|
utilityPadding: number;
|
|
54
|
-
loadingIndicatorWrapperVerticalPadding: number;
|
|
55
54
|
};
|
|
56
55
|
};
|
|
57
56
|
type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
declare const getChipTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
primaryBackground: string;
|
|
5
|
+
secondaryBackground: string;
|
|
6
|
+
filledBackground: string;
|
|
7
|
+
outlinedBackground: string;
|
|
8
|
+
wrapperBorder: string;
|
|
9
|
+
wrapperSelectedBorder: string;
|
|
10
|
+
selectedPrimaryText: string;
|
|
11
|
+
};
|
|
12
|
+
space: {
|
|
13
|
+
wrapperHorizontalPadding: number;
|
|
14
|
+
wrapperVerticalPadding: number;
|
|
15
|
+
iconWrapperMarginRight: number;
|
|
16
|
+
};
|
|
17
|
+
sizes: {
|
|
18
|
+
wrapperBorder: number;
|
|
19
|
+
};
|
|
20
|
+
radii: {
|
|
21
|
+
wrapper: number;
|
|
22
|
+
};
|
|
23
|
+
borderWidths: {
|
|
24
|
+
wrapper: number;
|
|
25
|
+
icon: number;
|
|
26
|
+
};
|
|
27
|
+
shadows: {
|
|
28
|
+
filledWrapper: {
|
|
29
|
+
shadowOffset: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
shadowColor: string;
|
|
34
|
+
shadowOpacity: number;
|
|
35
|
+
shadowRadius: number;
|
|
36
|
+
elevation: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default getChipTheme;
|
|
@@ -11,6 +11,7 @@ import getCardTheme from './components/card';
|
|
|
11
11
|
import { CarouselThemeType } from './components/carousel';
|
|
12
12
|
import getCardCarouselTheme from './components/cardCarousel';
|
|
13
13
|
import getCheckboxTheme from './components/checkbox';
|
|
14
|
+
import getChipTheme from './components/chip';
|
|
14
15
|
import getContentNavigatorTheme from './components/contentNavigator';
|
|
15
16
|
import getDatePickerTheme from './components/datePicker';
|
|
16
17
|
import getDividerTheme from './components/divider';
|
|
@@ -59,6 +60,7 @@ type Theme = GlobalTheme & {
|
|
|
59
60
|
carousel: CarouselThemeType;
|
|
60
61
|
cardCarousel: ReturnType<typeof getCardCarouselTheme>;
|
|
61
62
|
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
63
|
+
chip: ReturnType<typeof getChipTheme>;
|
|
62
64
|
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
63
65
|
datePicker: ReturnType<typeof getDatePickerTheme>;
|
|
64
66
|
divider: ReturnType<typeof getDividerTheme>;
|