@hero-design/rn 8.0.0-rc.0 → 8.0.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/.eslintrc.js +2 -1
- package/.turbo/turbo-build.log +9 -9
- package/assets/fonts/{RebondGrotesque-Regular.otf → RebondGrotesque.otf} +0 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +437 -617
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +436 -616
- package/package.json +9 -7
- package/src/components/Alert/StyledAlert.tsx +2 -3
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +6 -12
- package/src/components/Alert/index.tsx +3 -23
- package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +4 -6
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +4 -26
- package/src/components/Button/Button.tsx +7 -16
- package/src/components/Button/StyledButton.tsx +0 -46
- package/src/components/Button/__tests__/Button.spec.tsx +10 -11
- package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -3
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -91
- package/src/components/Card/StyledCard.tsx +2 -11
- package/src/components/Card/__tests__/StyledCard.spec.tsx +2 -14
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -32
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Card/__tests__/index.spec.tsx +1 -13
- package/src/components/Card/index.tsx +5 -26
- package/src/components/DatePicker/DatePickerAndroid.tsx +4 -0
- package/src/components/DatePicker/DatePickerIOS.tsx +9 -11
- package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +4 -0
- package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +4 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +31 -12
- package/src/components/DatePicker/types.ts +8 -0
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +0 -8
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +5 -7
- package/src/components/Progress/ProgressCircle.tsx +1 -1
- package/src/components/Select/Footer.tsx +2 -7
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +120 -50
- package/src/components/Select/MultiSelect/index.tsx +1 -20
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Select/SingleSelect/index.tsx +5 -24
- package/src/components/Select/StyledSelect.tsx +1 -12
- package/src/components/Select/types.ts +1 -11
- package/src/components/Switch/StyledSwitch.tsx +7 -12
- package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +2 -2
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +10 -15
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Switch/index.tsx +6 -22
- package/src/components/Tabs/ScrollableTabs.tsx +1 -6
- package/src/components/Tabs/TabWithBadge.tsx +1 -15
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +3 -1
- package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +0 -12
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +4 -3
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -70
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/__tests__/index.spec.tsx +3 -1
- package/src/components/Tabs/index.tsx +12 -24
- package/src/components/Tag/StyledTag.tsx +0 -1
- package/src/components/Tag/__tests__/Tag.spec.tsx +0 -9
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -40
- package/src/components/Tag/index.tsx +3 -16
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +4 -2
- package/src/components/TextInput/index.tsx +7 -1
- package/src/components/TimePicker/TimePickerIOS.tsx +5 -11
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +31 -12
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -72
- package/src/theme/components/bottomSheet.ts +2 -3
- package/src/theme/components/select.ts +1 -5
- package/src/theme/components/switch.ts +4 -14
- package/src/theme/components/tag.ts +0 -2
- package/src/theme/global/colors/swag.ts +1 -20
- package/src/theme/global/colors/types.ts +1 -58
- package/src/theme/global/typography.ts +1 -1
- package/src/utils/hooks.ts +1 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -1
- package/types/components/Alert/index.d.ts +1 -6
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +2 -3
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +1 -1
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +1 -8
- package/types/components/Card/index.d.ts +2 -8
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +8 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/StyledSelect.d.ts +1 -5
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +1 -11
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -4
- package/types/components/Switch/index.d.ts +1 -6
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +1 -2
- package/types/components/Tabs/index.d.ts +2 -3
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/Tag/index.d.ts +2 -2
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -1
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -3
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +4 -14
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -2
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +1 -52
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -47
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-build:watch.log +0 -1
- package/.turbo/turbo-lint.log +0 -96
- package/.turbo/turbo-test.log +0 -909
- package/src/components/Select/__tests__/StyledSelect.spec.tsx +0 -14
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -29
- package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +0 -13
- package/src/theme/global/colors/legacySystemPalette.ts +0 -53
- package/types/components/Accordion/utils.d.ts +0 -1
- package/types/components/Select/StyledOptionList.d.ts +0 -12
- package/types/theme/global/colors/legacySystemPalette.d.ts +0 -3
- package/types/theme/utils.d.ts +0 -2
|
@@ -43,11 +43,6 @@ export interface SelectProps<V, T extends OptionType<V>> extends Pick<TextInputP
|
|
|
43
43
|
* Search bar onChangeText event handler
|
|
44
44
|
*/
|
|
45
45
|
onQueryChange?: (value: string) => void;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated due to typo.
|
|
48
|
-
* Please use onDismiss instead.
|
|
49
|
-
*/
|
|
50
|
-
onDimiss?: () => void;
|
|
51
46
|
/**
|
|
52
47
|
* Event handler when selection dismiss
|
|
53
48
|
*/
|
|
@@ -65,7 +60,7 @@ export interface SelectProps<V, T extends OptionType<V>> extends Pick<TextInputP
|
|
|
65
60
|
* Required is deprecated and will be removed in the next major release.
|
|
66
61
|
* Please use the outer required instead.
|
|
67
62
|
*/
|
|
68
|
-
inputProps?: Pick<TextInputProps, 'loading' | '
|
|
63
|
+
inputProps?: Pick<TextInputProps, 'loading' | 'numberOfLines'>;
|
|
69
64
|
/**
|
|
70
65
|
* Field label.
|
|
71
66
|
*/
|
|
@@ -78,9 +73,4 @@ export interface SelectProps<V, T extends OptionType<V>> extends Pick<TextInputP
|
|
|
78
73
|
* Testing id of the component.
|
|
79
74
|
*/
|
|
80
75
|
testID?: string;
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated
|
|
83
|
-
* Please use inputProps.numberOfLines instead.
|
|
84
|
-
*/
|
|
85
|
-
numberOfLines?: number;
|
|
86
76
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
|
-
declare type ThemeSize = 'small' | 'medium';
|
|
3
2
|
export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
4
3
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
5
|
as?: import("react").ElementType<any> | undefined;
|
|
7
6
|
} & {
|
|
8
7
|
themeVariant: Variant;
|
|
9
|
-
themeSize: ThemeSize;
|
|
10
8
|
}, {}, {
|
|
11
9
|
ref?: import("react").Ref<View> | undefined;
|
|
12
10
|
}>;
|
|
@@ -15,7 +13,5 @@ declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.Ani
|
|
|
15
13
|
} & {
|
|
16
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
15
|
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
themeSize: ThemeSize;
|
|
20
16
|
}, {}, {}>;
|
|
21
17
|
export { StyledWrapper, StyledKnot };
|
|
@@ -13,11 +13,6 @@ export interface SwitchProps {
|
|
|
13
13
|
* Event handler.
|
|
14
14
|
*/
|
|
15
15
|
onPress?: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Size of the switch
|
|
18
|
-
* size is deprecated and will be removed in the next major release.
|
|
19
|
-
*/
|
|
20
|
-
size?: 'small' | 'medium';
|
|
21
16
|
/**
|
|
22
17
|
* Additional style.
|
|
23
18
|
*/
|
|
@@ -27,7 +22,7 @@ export interface SwitchProps {
|
|
|
27
22
|
*/
|
|
28
23
|
testID?: string;
|
|
29
24
|
}
|
|
30
|
-
declare const _default: (({
|
|
25
|
+
declare const _default: (({ disabled, checked, onPress, style, testID, }: SwitchProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
31
26
|
Selector: <T>({ options, value, onPress, style, testID, }: import("./SelectorSwitch").SelectorSwitchProps<T>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
32
27
|
};
|
|
33
28
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,9 +9,8 @@ export declare type CounterBadgeType = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare type BadgeConfigType = StatusBadgeType | CounterBadgeType;
|
|
11
11
|
interface TabWithBadgeProps {
|
|
12
|
-
showBadge?: boolean;
|
|
13
12
|
config?: BadgeConfigType;
|
|
14
13
|
tabItem: ReactNode;
|
|
15
14
|
}
|
|
16
|
-
declare const TabWithBadge: ({
|
|
15
|
+
declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => JSX.Element;
|
|
17
16
|
export default TabWithBadge;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { StyleProp,
|
|
3
|
-
import type { BadgeConfigType } from './TabWithBadge';
|
|
2
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
3
|
import { IconName } from '../Icon';
|
|
4
|
+
import type { BadgeConfigType } from './TabWithBadge';
|
|
5
5
|
export declare type ItemType = string | IconName | ((props: {
|
|
6
6
|
color: string;
|
|
7
7
|
}) => ReactNode);
|
|
@@ -11,7 +11,6 @@ export declare type TabType = {
|
|
|
11
11
|
inactiveItem?: ItemType;
|
|
12
12
|
component: ReactNode;
|
|
13
13
|
testID?: string;
|
|
14
|
-
showBadge?: boolean;
|
|
15
14
|
badge?: BadgeConfigType;
|
|
16
15
|
};
|
|
17
16
|
export interface TabsProps extends ViewProps {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View, Text } from 'react-native';
|
|
2
|
-
declare type ThemeIntent = '
|
|
2
|
+
declare type ThemeIntent = 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
3
3
|
declare type ThemeVariant = 'filled' | 'outlined';
|
|
4
4
|
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import type { StyleProp,
|
|
2
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
interface TagProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
5
|
* Content of the Tag.
|
|
@@ -8,7 +8,7 @@ interface TagProps extends ViewProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Visual intent color to apply to Tag.
|
|
10
10
|
*/
|
|
11
|
-
intent?: 'primary' | '
|
|
11
|
+
intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
12
12
|
/**
|
|
13
13
|
* Tag variant.
|
|
14
14
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,25 +14,15 @@ declare const getSwitchTheme: (theme: GlobalTheme) => {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
sizes: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
widths: {
|
|
22
|
-
small: number;
|
|
23
|
-
medium: number;
|
|
24
|
-
};
|
|
25
|
-
heights: {
|
|
26
|
-
small: number;
|
|
27
|
-
medium: number;
|
|
28
|
-
};
|
|
17
|
+
thumb: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
29
20
|
selector: {
|
|
30
21
|
height: number;
|
|
31
22
|
};
|
|
32
23
|
};
|
|
33
24
|
spaces: {
|
|
34
|
-
|
|
35
|
-
medium: number;
|
|
25
|
+
paddingHorizontal: number;
|
|
36
26
|
selector: {
|
|
37
27
|
iconPadding: number;
|
|
38
28
|
wrapperPadding: number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -44,55 +44,4 @@ export declare type BrandSystemPalette = {
|
|
|
44
44
|
decorativePrimary: string;
|
|
45
45
|
decorativePrimarySurface: string;
|
|
46
46
|
};
|
|
47
|
-
export declare type
|
|
48
|
-
mutedPrimary: string;
|
|
49
|
-
highlightedSecondarySurface: string;
|
|
50
|
-
mutedSecondary: string;
|
|
51
|
-
disabledSecondary: string;
|
|
52
|
-
lightHighlightedSurface: string;
|
|
53
|
-
};
|
|
54
|
-
export declare type LegacySystemPalette = {
|
|
55
|
-
globalPrimary: string;
|
|
56
|
-
globalPrimaryLight: string;
|
|
57
|
-
globalPrimaryBackground: string;
|
|
58
|
-
primaryLight: string;
|
|
59
|
-
primaryDark: string;
|
|
60
|
-
primaryBackground: string;
|
|
61
|
-
primaryBackgroundDark: string;
|
|
62
|
-
secondaryLight: string;
|
|
63
|
-
secondaryBackground: string;
|
|
64
|
-
infoMediumLight: string;
|
|
65
|
-
infoLight: string;
|
|
66
|
-
infoBackground: string;
|
|
67
|
-
successLight: string;
|
|
68
|
-
successDark: string;
|
|
69
|
-
successBackground: string;
|
|
70
|
-
danger: string;
|
|
71
|
-
dangerMediumLight: string;
|
|
72
|
-
dangerLight: string;
|
|
73
|
-
dangerBackground: string;
|
|
74
|
-
warningLight: string;
|
|
75
|
-
warningDark: string;
|
|
76
|
-
warningBackground: string;
|
|
77
|
-
platformBackground: string;
|
|
78
|
-
backgroundLight: string;
|
|
79
|
-
backgroundDark: string;
|
|
80
|
-
text: string;
|
|
81
|
-
subduedText: string;
|
|
82
|
-
disabledText: string;
|
|
83
|
-
disabledLightText: string;
|
|
84
|
-
invertedText: string;
|
|
85
|
-
outline: string;
|
|
86
|
-
archivedLight: string;
|
|
87
|
-
archivedDark: string;
|
|
88
|
-
archivedBackground: string;
|
|
89
|
-
black: string;
|
|
90
|
-
inactiveBackground: string;
|
|
91
|
-
shadow: string;
|
|
92
|
-
mutedGlobalPrimary: string;
|
|
93
|
-
onGlobalPrimary: string;
|
|
94
|
-
globalSecondary: string;
|
|
95
|
-
globalPrimaryOutline: string;
|
|
96
|
-
globalSecondaryOutline: string;
|
|
97
|
-
};
|
|
98
|
-
export declare type SystemPalette = LegacySystemPalette & LegacyBrandSystemPalette & GlobalSystemPalette & BrandSystemPalette;
|
|
47
|
+
export declare type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
File without changes
|
|
File without changes
|
|
@@ -8,53 +8,6 @@ import type { Scale } from './scale';
|
|
|
8
8
|
import type { SystemPalette } from './colors/types';
|
|
9
9
|
declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
10
10
|
colors: {
|
|
11
|
-
globalPrimary: string;
|
|
12
|
-
globalPrimaryLight: string;
|
|
13
|
-
globalPrimaryBackground: string;
|
|
14
|
-
primaryLight: string;
|
|
15
|
-
primaryDark: string;
|
|
16
|
-
primaryBackground: string;
|
|
17
|
-
primaryBackgroundDark: string;
|
|
18
|
-
secondaryLight: string;
|
|
19
|
-
secondaryBackground: string;
|
|
20
|
-
infoMediumLight: string;
|
|
21
|
-
infoLight: string;
|
|
22
|
-
infoBackground: string;
|
|
23
|
-
successLight: string;
|
|
24
|
-
successDark: string;
|
|
25
|
-
successBackground: string;
|
|
26
|
-
danger: string;
|
|
27
|
-
dangerMediumLight: string;
|
|
28
|
-
dangerLight: string;
|
|
29
|
-
dangerBackground: string;
|
|
30
|
-
warningLight: string;
|
|
31
|
-
warningDark: string;
|
|
32
|
-
warningBackground: string;
|
|
33
|
-
platformBackground: string;
|
|
34
|
-
backgroundLight: string;
|
|
35
|
-
backgroundDark: string;
|
|
36
|
-
text: string;
|
|
37
|
-
subduedText: string;
|
|
38
|
-
disabledText: string;
|
|
39
|
-
disabledLightText: string;
|
|
40
|
-
invertedText: string;
|
|
41
|
-
outline: string;
|
|
42
|
-
archivedLight: string;
|
|
43
|
-
archivedDark: string;
|
|
44
|
-
archivedBackground: string;
|
|
45
|
-
black: string;
|
|
46
|
-
inactiveBackground: string;
|
|
47
|
-
shadow: string;
|
|
48
|
-
mutedGlobalPrimary: string;
|
|
49
|
-
onGlobalPrimary: string;
|
|
50
|
-
globalSecondary: string;
|
|
51
|
-
globalPrimaryOutline: string;
|
|
52
|
-
globalSecondaryOutline: string;
|
|
53
|
-
mutedPrimary: string;
|
|
54
|
-
highlightedSecondarySurface: string;
|
|
55
|
-
mutedSecondary: string;
|
|
56
|
-
disabledSecondary: string;
|
|
57
|
-
lightHighlightedSurface: string;
|
|
58
11
|
defaultGlobalSurface: string;
|
|
59
12
|
onDefaultGlobalSurface: string;
|
|
60
13
|
neutralGlobalSurface: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/theme/index.d.ts
CHANGED
|
File without changes
|
package/types/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/types/utils/helpers.d.ts
CHANGED
|
File without changes
|
package/types/utils/hooks.d.ts
CHANGED
|
File without changes
|
package/types/utils/scale.d.ts
CHANGED
|
File without changes
|
package/.expo/README.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
> Why do I have a folder named ".expo" in my project?
|
|
2
|
-
|
|
3
|
-
The ".expo" folder is created when an Expo project is started using "expo start" command.
|
|
4
|
-
|
|
5
|
-
> What do the files contain?
|
|
6
|
-
|
|
7
|
-
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
|
|
8
|
-
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
|
|
9
|
-
- "settings.json": contains the server configuration that is used to serve the application manifest.
|
|
10
|
-
|
|
11
|
-
> Should I commit the ".expo" folder?
|
|
12
|
-
|
|
13
|
-
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
|
|
14
|
-
|
|
15
|
-
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
|
package/.expo/packager-info.json
DELETED
package/.expo/settings.json
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
2022-08-15 16:30:43.312 xcodebuild[51962:564141] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
|
|
2
|
-
2022-08-15 16:30:43.312 xcodebuild[51962:564141] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
|