@hero-design/rn 8.82.2-alpha.1 → 8.83.0-test.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$colon$types.log +0 -0
- package/.turbo/turbo-build.log +8 -0
- package/.turbo/turbo-lint.log +183 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +4726 -0
- package/.turbo/turbo-type-check.log +0 -0
- package/CHANGELOG.md +6 -0
- package/es/index.js +120 -43
- package/eslint.config.js +4 -2
- package/lib/index.js +121 -43
- package/package.json +5 -3
- package/rollup.config.mjs +1 -0
- package/src/components/Slider/Range.tsx +177 -0
- package/src/components/Slider/Single.tsx +89 -0
- package/src/components/Slider/__tests__/Range.spec.tsx +105 -0
- package/src/components/Slider/__tests__/{index.spec.tsx → Single.spec.tsx} +1 -1
- package/src/components/Slider/__tests__/__snapshots__/Range.spec.tsx.snap +168 -0
- package/src/components/Slider/index.tsx +8 -83
- package/src/theme/components/slider.ts +12 -1
- package/src/types.ts +2 -0
- package/testUtils/setup.tsx +17 -0
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +11 -11
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +16 -16
- package/types/components/Alert/index.d.ts +1 -1
- package/types/components/Attachment/StyledAttachment.d.ts +8 -8
- 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 +9 -9
- 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 +10 -10
- 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 +12 -12
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +15 -15
- package/types/components/BottomNavigation/index.d.ts +1 -1
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +2 -2
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +2 -2
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +6 -6
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +22 -22
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +6 -6
- 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 +22 -22
- 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 +5 -5
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +4 -4
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +8 -8
- package/types/components/Carousel/StyledCarousel.d.ts +21 -21
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +11 -11
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Chip/StyledChip.d.ts +5 -5
- package/types/components/Collapse/StyledCollapse.d.ts +6 -6
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
- package/types/components/CompoundSearch/index.d.ts +8 -0
- package/types/components/CompoundSearch/utils.d.ts +8 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -2
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +2 -2
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +15 -15
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +7 -7
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +21 -21
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +10 -10
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -6
- package/types/components/FAB/ActionGroup/index.d.ts +1 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/FAB/Pair/StyledFAB.d.ts +6 -6
- package/types/components/FAB/Pair/index.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +9 -9
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +10 -10
- package/types/components/HeroDesignProvider/HeroDesignContext.d.ts +5 -0
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +4 -4
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -2
- 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 +10 -10
- package/types/components/List/StyledListItem.d.ts +18 -18
- package/types/components/List/index.d.ts +0 -0
- package/types/components/MapPin/StyledMapPin.d.ts +11 -11
- package/types/components/MapPin/types.d.ts +1 -1
- package/types/components/PageControl/StyledPageControl.d.ts +4 -4
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +21 -21
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/ProgressStep.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +4 -4
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -12
- package/types/components/Progress/StyledStep.d.ts +10 -10
- 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 +1 -1
- 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 +9 -9
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/Rate/StyledRate.d.ts +4 -4
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/EditorEvent.d.ts +1 -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 +1 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +4 -4
- package/types/components/RichTextEditor/StyledToolbar.d.ts +6 -6
- 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 +1 -1
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/Search/SearchBasic.d.ts +31 -0
- package/types/components/Search/SearchCompound.d.ts +60 -0
- package/types/components/Search/SearchOneLine.d.ts +5 -5
- package/types/components/Search/StyledSearch.d.ts +18 -18
- package/types/components/Search/index.d.ts +1 -1
- package/types/components/Search/utils.d.ts +2 -2
- package/types/components/SectionHeading/StyledHeading.d.ts +7 -7
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +2 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +2 -2
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -2
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +6 -6
- package/types/components/Select/helpers.d.ts +2 -2
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +6 -6
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/Range.d.ts +60 -0
- package/types/components/Slider/Single.d.ts +53 -0
- package/types/components/Slider/index.d.ts +6 -51
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -2
- package/types/components/Spinner/StyledSpinner.d.ts +13 -13
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +19 -19
- package/types/components/Success/index.d.ts +0 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/Option.d.ts +5 -3
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +8 -8
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Switch/index.d.ts +3 -3
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +3 -3
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +35 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +17 -17
- package/types/components/Tabs/StyledTabs.d.ts +14 -14
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +5 -5
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +28 -28
- package/types/components/TextInput/index.d.ts +16 -16
- package/types/components/TimePicker/StyledTimePicker.d.ts +2 -2
- 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 +18 -18
- 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 +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +2 -2
- package/types/components/Toolbar/StyledToolbar.d.ts +25 -25
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +4 -4
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Body/StyledBody.d.ts +4 -4
- package/types/components/Typography/Caption/StyledCaption.d.ts +3 -3
- package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
- package/types/components/Typography/Text/StyledText.d.ts +6 -6
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/Title/StyledTitle.d.ts +4 -4
- package/types/components/Typography/index.d.ts +0 -0
- package/types/components/Typography/types.d.ts +1 -1
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/testHelpers/utils.d.ts +1 -1
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +3 -3
- 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 +1 -1
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +1 -1
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/compoundSearch.d.ts +36 -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 +1 -1
- package/types/theme/components/error.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- 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/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +1 -1
- 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 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +18 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +1 -1
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +1 -1
- 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 +1 -1
- 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/globalDark.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/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +3 -3
- 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 +4 -4
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- 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 +1 -1
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +2 -1
- 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/src/components/Slider/__tests__/__snapshots__/{index.spec.tsx.snap → Single.spec.tsx.snap} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Text } from 'react-native';
|
|
2
2
|
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
|
-
themeFontSize:
|
|
7
|
-
themeFontWeight:
|
|
8
|
-
themeIntent:
|
|
9
|
-
themeTypeface:
|
|
6
|
+
themeFontSize: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge' | '6xlarge' | '7xlarge';
|
|
7
|
+
themeFontWeight: 'light' | 'regular' | 'semi-bold';
|
|
8
|
+
themeIntent: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived' | 'disabled';
|
|
9
|
+
themeTypeface: 'neutral' | 'playful';
|
|
10
10
|
}, {}, {
|
|
11
11
|
ref?: import("react").Ref<Text> | undefined;
|
|
12
12
|
}>;
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Text } from 'react-native';
|
|
2
2
|
import { ThemeIntent } from '../types';
|
|
3
|
-
type ThemeLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
+
declare type ThemeLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
4
|
declare const StyledTitle: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?:
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
themeIntent: ThemeIntent;
|
|
9
9
|
themeLevel: ThemeLevel;
|
|
10
|
-
themeTypeface:
|
|
10
|
+
themeTypeface: 'neutral' | 'playful';
|
|
11
11
|
}, {}, {
|
|
12
12
|
ref?: import("react").Ref<Text> | undefined;
|
|
13
13
|
}>;
|
|
File without changes
|
|
@@ -3,4 +3,4 @@ export declare const FONTWEIGHT_MAP: {
|
|
|
3
3
|
readonly regular: "regular";
|
|
4
4
|
readonly 'semi-bold': "semiBold";
|
|
5
5
|
};
|
|
6
|
-
export type ThemeIntent = 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived' | 'disabled' | 'muted';
|
|
6
|
+
export declare type ThemeIntent = 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived' | 'disabled' | 'muted';
|
package/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setOrientation: (orientation:
|
|
1
|
+
export declare const setOrientation: (orientation: 'portrait' | 'landscape') => void;
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
type ThemeName = 'swag' | 'swagDark' | 'swagLight' | 'work' | 'jobs' | 'wallet' | 'eBens';
|
|
2
|
+
declare type ThemeName = 'swag' | 'swagDark' | 'swagLight' | 'work' | 'jobs' | 'wallet' | 'eBens';
|
|
3
3
|
declare const ThemeSwitcher: ({ name, children, }: {
|
|
4
|
-
name?: ThemeName;
|
|
4
|
+
name?: ThemeName | undefined;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
|
-
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: PropsWithChildren<P>) => 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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -58,7 +58,7 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
58
58
|
utilityPadding: number;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
|
|
61
|
+
declare type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
|
|
62
62
|
export interface ButtonThemeType extends GetButtonThemeReturnType {
|
|
63
63
|
/**
|
|
64
64
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -18,7 +18,7 @@ declare const getCarouselTheme: (theme: GlobalTheme) => {
|
|
|
18
18
|
heading: number;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
type GetCarouselThemeReturnType = ReturnType<typeof getCarouselTheme>;
|
|
21
|
+
declare type GetCarouselThemeReturnType = ReturnType<typeof getCarouselTheme>;
|
|
22
22
|
export interface CarouselThemeType extends GetCarouselThemeReturnType {
|
|
23
23
|
/**
|
|
24
24
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
declare const getCompoundSearchTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
containerBackground: string;
|
|
5
|
+
surfixBackground: string;
|
|
6
|
+
text: string;
|
|
7
|
+
borders: string;
|
|
8
|
+
};
|
|
9
|
+
space: {
|
|
10
|
+
containerHorizontalPadding: number;
|
|
11
|
+
containerVerticalPadding: number;
|
|
12
|
+
inputHorizontalMargin: number;
|
|
13
|
+
prefixHorizontalPadding: number;
|
|
14
|
+
surfixPadding: number;
|
|
15
|
+
};
|
|
16
|
+
fonts: {
|
|
17
|
+
text: string;
|
|
18
|
+
};
|
|
19
|
+
fontSizes: {
|
|
20
|
+
text: number;
|
|
21
|
+
};
|
|
22
|
+
borderWidths: {
|
|
23
|
+
container: {
|
|
24
|
+
normal: number;
|
|
25
|
+
focused: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
radii: {
|
|
29
|
+
container: number;
|
|
30
|
+
surfix: number;
|
|
31
|
+
};
|
|
32
|
+
sizes: {
|
|
33
|
+
surfixSize: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default getCompoundSearchTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -23,7 +23,7 @@ declare const getEmptyTheme: (theme: GlobalTheme) => {
|
|
|
23
23
|
description: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
type GetEmptyThemeReturnType = ReturnType<typeof getEmptyTheme>;
|
|
26
|
+
declare type GetEmptyThemeReturnType = ReturnType<typeof getEmptyTheme>;
|
|
27
27
|
export interface EmptyThemeType extends GetEmptyThemeReturnType {
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated will be removed in v9
|
|
@@ -33,7 +33,7 @@ declare const getErrorTheme: (theme: GlobalTheme) => {
|
|
|
33
33
|
description: number;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
type GetErrorThemeReturnType = ReturnType<typeof getErrorTheme>;
|
|
36
|
+
declare type GetErrorThemeReturnType = ReturnType<typeof getErrorTheme>;
|
|
37
37
|
export interface ErrorThemeType extends GetErrorThemeReturnType {
|
|
38
38
|
/**
|
|
39
39
|
* @deprecated will be removed in v9
|
|
@@ -57,7 +57,7 @@ declare const getFABTheme: (theme: GlobalTheme) => {
|
|
|
57
57
|
fabPairMarginRight: number;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
|
-
type GetFABThemeReturnType = ReturnType<typeof getFABTheme>;
|
|
60
|
+
declare type GetFABThemeReturnType = ReturnType<typeof getFABTheme>;
|
|
61
61
|
export interface FABThemeType extends GetFABThemeReturnType {
|
|
62
62
|
/**
|
|
63
63
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -39,7 +39,7 @@ declare const getPinInputTheme: (theme: GlobalTheme) => {
|
|
|
39
39
|
mask: number;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
type GetPinInputThemeReturnType = ReturnType<typeof getPinInputTheme>;
|
|
42
|
+
declare type GetPinInputThemeReturnType = ReturnType<typeof getPinInputTheme>;
|
|
43
43
|
export interface PinInputThemeType extends GetPinInputThemeReturnType {
|
|
44
44
|
/**
|
|
45
45
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,6 +4,24 @@ declare const getSliderTheme: (theme: GlobalTheme) => {
|
|
|
4
4
|
minimumTrackTint: string;
|
|
5
5
|
thumbTint: string;
|
|
6
6
|
maximumTrackTint: string;
|
|
7
|
+
trackBackground: string;
|
|
8
|
+
disabledThumbTint: string;
|
|
9
|
+
disabledTrackBackground: string;
|
|
10
|
+
};
|
|
11
|
+
shadows: {
|
|
12
|
+
marker: {
|
|
13
|
+
shadowOffset: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
shadowColor: string;
|
|
18
|
+
shadowOpacity: number;
|
|
19
|
+
shadowRadius: number;
|
|
20
|
+
elevation: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
sizes: {
|
|
24
|
+
trackHeight: number;
|
|
7
25
|
};
|
|
8
26
|
};
|
|
9
27
|
export default getSliderTheme;
|
|
File without changes
|
|
@@ -29,7 +29,7 @@ declare const getSuccessTheme: (theme: GlobalTheme) => {
|
|
|
29
29
|
description: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
type GetSuccessThemeReturnType = ReturnType<typeof getSuccessTheme>;
|
|
32
|
+
declare type GetSuccessThemeReturnType = ReturnType<typeof getSuccessTheme>;
|
|
33
33
|
export interface SuccessThemeType extends GetSuccessThemeReturnType {
|
|
34
34
|
/**
|
|
35
35
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -35,7 +35,7 @@ declare const getTagTheme: (theme: GlobalTheme) => {
|
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
type GetTagThemeReturnType = ReturnType<typeof getTagTheme>;
|
|
38
|
+
declare type GetTagThemeReturnType = ReturnType<typeof getTagTheme>;
|
|
39
39
|
export interface TagThemeType extends GetTagThemeReturnType {
|
|
40
40
|
/**
|
|
41
41
|
* @deprecated will be removed in v9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -48,7 +48,7 @@ import type { GlobalTheme, Scale, SystemPalette } from './global';
|
|
|
48
48
|
import getSearchTheme from './components/search';
|
|
49
49
|
import getMapPinTheme from './components/mapPin';
|
|
50
50
|
import getFloatingIslandTheme from './components/floatingIsland';
|
|
51
|
-
type Theme = GlobalTheme & {
|
|
51
|
+
declare type Theme = GlobalTheme & {
|
|
52
52
|
__hd__: {
|
|
53
53
|
accordion: ReturnType<typeof getAccordionTheme>;
|
|
54
54
|
alert: ReturnType<typeof getAlertTheme>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GlobalSystemPalette = {
|
|
1
|
+
export declare type GlobalSystemPalette = {
|
|
2
2
|
defaultGlobalSurface: string;
|
|
3
3
|
onDefaultGlobalSurface: string;
|
|
4
4
|
neutralGlobalSurface: string;
|
|
@@ -33,7 +33,7 @@ export type GlobalSystemPalette = {
|
|
|
33
33
|
archivedSurface: string;
|
|
34
34
|
onArchivedSurface: string;
|
|
35
35
|
};
|
|
36
|
-
export type BrandSystemPalette = {
|
|
36
|
+
export declare type BrandSystemPalette = {
|
|
37
37
|
primary: string;
|
|
38
38
|
onPrimary: string;
|
|
39
39
|
secondary: string;
|
|
@@ -47,4 +47,4 @@ export type BrandSystemPalette = {
|
|
|
47
47
|
decorativeSecondary?: string;
|
|
48
48
|
decorativeSecondarySurface?: string;
|
|
49
49
|
};
|
|
50
|
-
export type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
50
|
+
export declare type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
File without changes
|
|
File without changes
|
|
@@ -50,12 +50,12 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
50
50
|
onSecondary: string;
|
|
51
51
|
defaultSurface: string;
|
|
52
52
|
highlightedSurface: string;
|
|
53
|
-
secondaryHighlightedSurface?: string;
|
|
53
|
+
secondaryHighlightedSurface?: string | undefined;
|
|
54
54
|
pressedSurface: string;
|
|
55
55
|
decorativePrimary: string;
|
|
56
56
|
decorativePrimarySurface: string;
|
|
57
|
-
decorativeSecondary?: string;
|
|
58
|
-
decorativeSecondarySurface?: string;
|
|
57
|
+
decorativeSecondary?: string | undefined;
|
|
58
|
+
decorativeSecondarySurface?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
fonts: import("./typography").Fonts;
|
|
61
61
|
fontSizes: import("./typography").FontSizes;
|
|
@@ -77,6 +77,6 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
type GlobalTheme = ReturnType<typeof getGlobalTheme>;
|
|
80
|
+
declare type GlobalTheme = ReturnType<typeof getGlobalTheme>;
|
|
81
81
|
export type { GlobalTheme, Scale, SystemPalette };
|
|
82
82
|
export { getGlobalTheme, defaultScale, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, };
|
|
File without changes
|
|
File without changes
|
package/types/theme/index.d.ts
CHANGED
|
File without changes
|
package/types/types.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ import { TextProps } from './components/Typography/Text';
|
|
|
11
11
|
import { CardCarouselHandles } from './components/Carousel/CardCarousel';
|
|
12
12
|
import { FABHandles } from './components/FAB/FAB';
|
|
13
13
|
import { ActionGroupHandles } from './components/FAB/ActionGroup';
|
|
14
|
-
|
|
14
|
+
import type { SliderRangeValue } from './components/Slider/Range';
|
|
15
|
+
export type { BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, ListRenderOptionInfo, SectionListRenderOptionInfo, SwipeableProps, RichTextEditorProps, RichTextEditorRef, TabType, TextInputProps, TextProps, TextInputHandles, Theme, CardCarouselHandles, FABHandles, ActionGroupHandles, SliderRangeValue, };
|
|
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/src/components/Slider/__tests__/__snapshots__/{index.spec.tsx.snap → Single.spec.tsx.snap}
RENAMED
|
File without changes
|