@hero-design/rn 8.81.2 → 8.82.0-alpha.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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/sonar-project.properties +1 -1
- package/src/components/DatePicker/DatePickerAndroid.tsx +23 -5
- package/src/components/DatePicker/DatePickerIOS.tsx +39 -19
- package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +25 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +29 -0
- package/src/components/DatePicker/index.tsx +2 -2
- package/src/components/DatePicker/types.ts +2 -1
- package/src/components/Toast/StyledToast.tsx +22 -1
- package/src/components/Toast/Toast.tsx +7 -17
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +117 -27
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -6
- package/src/theme/components/toast.ts +16 -6
- package/stats/8.81.2/rn-stats.html +2 -0
- package/testUtils/setup.tsx +22 -11
- package/.turbo/turbo-build.log +0 -7
- package/es/index.js +0 -37322
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +0 -37419
- package/types/components/Accordion/AccordionItem.d.ts +0 -15
- package/types/components/Accordion/StyledAccordion.d.ts +0 -32
- package/types/components/Accordion/index.d.ts +0 -39
- package/types/components/Alert/StyledAlert.d.ts +0 -53
- package/types/components/Alert/index.d.ts +0 -58
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/index.d.ts +0 -4
- package/types/components/Attachment/StyledAttachment.d.ts +0 -28
- package/types/components/Attachment/index.d.ts +0 -38
- package/types/components/Avatar/Avatar.d.ts +0 -34
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -35
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
- package/types/components/Avatar/StyledAvatar.d.ts +0 -34
- package/types/components/Avatar/index.d.ts +0 -6
- package/types/components/Badge/Status.d.ts +0 -24
- package/types/components/Badge/StyledBadge.d.ts +0 -33
- package/types/components/Badge/index.d.ts +0 -6
- package/types/components/Badge/types.d.ts +0 -53
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
- package/types/components/BottomNavigation/index.d.ts +0 -45
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
- package/types/components/BottomSheet/Footer.d.ts +0 -7
- package/types/components/BottomSheet/Header.d.ts +0 -10
- package/types/components/BottomSheet/ScrollView.d.ts +0 -3
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -61
- package/types/components/BottomSheet/index.d.ts +0 -74
- package/types/components/Box/StyledBox.d.ts +0 -15
- package/types/components/Box/config.d.ts +0 -170
- package/types/components/Box/index.d.ts +0 -6
- package/types/components/Box/types.d.ts +0 -31
- package/types/components/Button/Button.d.ts +0 -57
- package/types/components/Button/IconButton.d.ts +0 -39
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
- package/types/components/Button/StyledButton.d.ts +0 -48
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -17
- package/types/components/Button/UtilityButton/index.d.ts +0 -24
- package/types/components/Button/index.d.ts +0 -10
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -12
- package/types/components/Calendar/StyledCalendar.d.ts +0 -62
- package/types/components/Calendar/helpers.d.ts +0 -3
- package/types/components/Calendar/index.d.ts +0 -58
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -16
- package/types/components/Card/DataCard/index.d.ts +0 -22
- package/types/components/Card/StyledCard.d.ts +0 -11
- package/types/components/Card/index.d.ts +0 -25
- package/types/components/Carousel/CardCarousel.d.ts +0 -42
- package/types/components/Carousel/CarouselItem.d.ts +0 -7
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -24
- package/types/components/Carousel/StyledCarousel.d.ts +0 -54
- package/types/components/Carousel/contants.d.ts +0 -2
- package/types/components/Carousel/index.d.ts +0 -44
- package/types/components/Carousel/types.d.ts +0 -14
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -35
- package/types/components/Checkbox/index.d.ts +0 -44
- package/types/components/Chip/StyledChip.d.ts +0 -16
- package/types/components/Chip/index.d.ts +0 -31
- package/types/components/Collapse/StyledCollapse.d.ts +0 -23
- package/types/components/Collapse/index.d.ts +0 -20
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
- package/types/components/ContentNavigator/index.d.ts +0 -43
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -4
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -4
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -9
- package/types/components/DatePicker/index.d.ts +0 -4
- package/types/components/DatePicker/types.d.ts +0 -78
- package/types/components/DatePicker/useCalculateDate.d.ts +0 -4
- package/types/components/Divider/StyledDivider.d.ts +0 -12
- package/types/components/Divider/index.d.ts +0 -22
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
- package/types/components/Drawer/StyledDrawer.d.ts +0 -49
- package/types/components/Drawer/index.d.ts +0 -27
- package/types/components/Empty/StyledEmpty.d.ts +0 -21
- package/types/components/Empty/index.d.ts +0 -31
- package/types/components/Error/StyledError.d.ts +0 -53
- package/types/components/Error/index.d.ts +0 -56
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -27
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -18
- package/types/components/FAB/ActionGroup/index.d.ts +0 -54
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
- package/types/components/FAB/FAB.d.ts +0 -40
- package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
- package/types/components/FAB/Pair/index.d.ts +0 -16
- package/types/components/FAB/StyledFAB.d.ts +0 -21
- package/types/components/FAB/index.d.ts +0 -5
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
- package/types/components/FloatingIsland/index.d.ts +0 -23
- package/types/components/HeroDesignProvider/index.d.ts +0 -4
- package/types/components/Icon/AnimatedIcon.d.ts +0 -6
- package/types/components/Icon/HeroIcon/index.d.ts +0 -12
- package/types/components/Icon/IconList.d.ts +0 -2
- package/types/components/Icon/index.d.ts +0 -35
- package/types/components/Icon/utils.d.ts +0 -2
- package/types/components/Image/index.d.ts +0 -17
- package/types/components/List/BasicListItem.d.ts +0 -43
- package/types/components/List/ListItem.d.ts +0 -52
- package/types/components/List/StyledBasicListItem.d.ts +0 -29
- package/types/components/List/StyledListItem.d.ts +0 -51
- package/types/components/List/index.d.ts +0 -8
- package/types/components/MapPin/Focussed.d.ts +0 -13
- package/types/components/MapPin/StyledMapPin.d.ts +0 -31
- package/types/components/MapPin/index.d.ts +0 -5
- package/types/components/MapPin/types.d.ts +0 -38
- package/types/components/Modal/index.d.ts +0 -37
- package/types/components/PageControl/StyledPageControl.d.ts +0 -12
- package/types/components/PageControl/index.d.ts +0 -22
- package/types/components/PinInput/PinCell.d.ts +0 -9
- package/types/components/PinInput/StyledPinInput.d.ts +0 -69
- package/types/components/PinInput/index.d.ts +0 -69
- package/types/components/Portal/PortalHost.d.ts +0 -5
- package/types/components/Portal/PortalProvider.d.ts +0 -7
- package/types/components/Portal/constants.d.ts +0 -8
- package/types/components/Portal/contexts.d.ts +0 -9
- package/types/components/Portal/index.d.ts +0 -18
- package/types/components/Portal/reducer.d.ts +0 -5
- package/types/components/Portal/types.d.ts +0 -22
- package/types/components/Portal/usePortal.d.ts +0 -8
- package/types/components/Portal/usePortalState.d.ts +0 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -18
- package/types/components/Progress/ProgressCircle.d.ts +0 -20
- package/types/components/Progress/ProgressStep.d.ts +0 -20
- package/types/components/Progress/StyledProgressBar.d.ts +0 -18
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -46
- package/types/components/Progress/StyledStep.d.ts +0 -23
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
- package/types/components/Progress/constants.d.ts +0 -15
- package/types/components/Progress/index.d.ts +0 -6
- package/types/components/Progress/types.d.ts +0 -1
- package/types/components/Radio/Radio.d.ts +0 -38
- package/types/components/Radio/RadioGroup.d.ts +0 -36
- package/types/components/Radio/StyledRadio.d.ts +0 -30
- package/types/components/Radio/index.d.ts +0 -4
- package/types/components/Radio/types.d.ts +0 -8
- package/types/components/Rate/StyledRate.d.ts +0 -10
- package/types/components/Rate/index.d.ts +0 -29
- package/types/components/RefreshControl/index.d.ts +0 -5
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -4
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
- package/types/components/RichTextEditor/MentionList.d.ts +0 -17
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -70
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -16
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -21
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/constants.d.ts +0 -9
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/index.d.ts +0 -7
- package/types/components/RichTextEditor/types.d.ts +0 -1
- package/types/components/RichTextEditor/utils/events.d.ts +0 -8
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
- package/types/components/Search/SearchOneLine.d.ts +0 -69
- package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
- package/types/components/Search/SearchTwoLine.d.ts +0 -36
- package/types/components/Search/StyledSearch.d.ts +0 -49
- package/types/components/Search/index.d.ts +0 -10
- package/types/components/Search/utils.d.ts +0 -8
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
- package/types/components/SectionHeading/index.d.ts +0 -45
- package/types/components/Select/BaseOptionList.d.ts +0 -8
- package/types/components/Select/Footer.d.ts +0 -6
- package/types/components/Select/MultiSelect/Option.d.ts +0 -10
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
- package/types/components/Select/MultiSelect/index.d.ts +0 -30
- package/types/components/Select/SingleSelect/Option.d.ts +0 -10
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -1
- package/types/components/Select/SingleSelect/index.d.ts +0 -23
- package/types/components/Select/StyledSelect.d.ts +0 -21
- package/types/components/Select/helpers.d.ts +0 -14
- package/types/components/Select/index.d.ts +0 -8
- package/types/components/Select/types.d.ts +0 -84
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
- package/types/components/Skeleton/index.d.ts +0 -14
- package/types/components/Slider/index.d.ts +0 -53
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
- package/types/components/Spinner/StyledSpinner.d.ts +0 -34
- package/types/components/Spinner/index.d.ts +0 -18
- package/types/components/Success/StyledSuccess.d.ts +0 -49
- package/types/components/Success/index.d.ts +0 -50
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -10
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -27
- package/types/components/Swipeable/index.d.ts +0 -49
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -16
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
- package/types/components/Switch/StyledSwitch.d.ts +0 -15
- package/types/components/Switch/index.d.ts +0 -28
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
- package/types/components/Tabs/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
- package/types/components/Tabs/StyledTabs.d.ts +0 -51
- package/types/components/Tabs/TabWithBadge.d.ts +0 -16
- package/types/components/Tabs/index.d.ts +0 -62
- package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
- package/types/components/Tabs/useIsFocused.d.ts +0 -6
- package/types/components/Tabs/utils.d.ts +0 -2
- package/types/components/Tag/StyledTag.d.ts +0 -17
- package/types/components/Tag/index.d.ts +0 -27
- package/types/components/TextInput/StyledTextInput.d.ts +0 -86
- package/types/components/TextInput/index.d.ts +0 -124
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -9
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
- package/types/components/TimePicker/index.d.ts +0 -4
- package/types/components/TimePicker/types.d.ts +0 -61
- package/types/components/Toast/StyledToast.d.ts +0 -45
- package/types/components/Toast/Toast.d.ts +0 -3
- package/types/components/Toast/ToastContainer.d.ts +0 -5
- package/types/components/Toast/ToastContext.d.ts +0 -12
- package/types/components/Toast/ToastProvider.d.ts +0 -11
- package/types/components/Toast/index.d.ts +0 -8
- package/types/components/Toast/types.d.ts +0 -72
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -71
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -14
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
- package/types/components/Toolbar/ToolbarMessage.d.ts +0 -59
- package/types/components/Toolbar/index.d.ts +0 -14
- package/types/components/Typography/Body/StyledBody.d.ts +0 -14
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
- package/types/components/Typography/Body/index.d.ts +0 -33
- package/types/components/Typography/Caption/StyledCaption.d.ts +0 -12
- package/types/components/Typography/Caption/index.d.ts +0 -27
- package/types/components/Typography/Label/StyledLabel.d.ts +0 -11
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
- package/types/components/Typography/Label/index.d.ts +0 -23
- package/types/components/Typography/Text/StyledText.d.ts +0 -13
- package/types/components/Typography/Text/index.d.ts +0 -37
- package/types/components/Typography/Title/StyledTitle.d.ts +0 -14
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
- package/types/components/Typography/Title/index.d.ts +0 -33
- package/types/components/Typography/index.d.ts +0 -17
- package/types/components/Typography/types.d.ts +0 -6
- package/types/index.d.ts +0 -57
- package/types/testHelpers/renderWithTheme.d.ts +0 -3
- package/types/testHelpers/utils.d.ts +0 -1
- package/types/theme/ThemeProvider.d.ts +0 -12
- package/types/theme/ThemeSwitcher.d.ts +0 -8
- package/types/theme/components/accordion.d.ts +0 -13
- package/types/theme/components/alert.d.ts +0 -36
- package/types/theme/components/attachment.d.ts +0 -21
- package/types/theme/components/avatar.d.ts +0 -50
- package/types/theme/components/badge.d.ts +0 -56
- package/types/theme/components/bottomNavigation.d.ts +0 -23
- package/types/theme/components/bottomSheet.d.ts +0 -38
- package/types/theme/components/button.d.ts +0 -72
- package/types/theme/components/calendar.d.ts +0 -28
- package/types/theme/components/card.d.ts +0 -21
- package/types/theme/components/cardCarousel.d.ts +0 -15
- package/types/theme/components/carousel.d.ts +0 -36
- package/types/theme/components/checkbox.d.ts +0 -27
- package/types/theme/components/chip.d.ts +0 -43
- package/types/theme/components/contentNavigator.d.ts +0 -7
- package/types/theme/components/datePicker.d.ts +0 -7
- package/types/theme/components/divider.d.ts +0 -17
- package/types/theme/components/drawer.d.ts +0 -30
- package/types/theme/components/empty.d.ts +0 -37
- package/types/theme/components/error.d.ts +0 -51
- package/types/theme/components/fab.d.ts +0 -71
- package/types/theme/components/floatingIsland.d.ts +0 -32
- package/types/theme/components/icon.d.ts +0 -23
- package/types/theme/components/image.d.ts +0 -8
- package/types/theme/components/list.d.ts +0 -46
- package/types/theme/components/mapPin.d.ts +0 -39
- package/types/theme/components/pageControl.d.ts +0 -18
- package/types/theme/components/pinInput.d.ts +0 -57
- package/types/theme/components/progress.d.ts +0 -51
- package/types/theme/components/radio.d.ts +0 -24
- package/types/theme/components/rate.d.ts +0 -11
- package/types/theme/components/refreshControl.d.ts +0 -7
- package/types/theme/components/richTextEditor.d.ts +0 -28
- package/types/theme/components/search.d.ts +0 -64
- package/types/theme/components/sectionHeading.d.ts +0 -14
- package/types/theme/components/select.d.ts +0 -18
- package/types/theme/components/skeleton.d.ts +0 -17
- package/types/theme/components/slider.d.ts +0 -9
- package/types/theme/components/spinner.d.ts +0 -27
- package/types/theme/components/success.d.ts +0 -43
- package/types/theme/components/swipeable.d.ts +0 -16
- package/types/theme/components/switch.d.ts +0 -38
- package/types/theme/components/tabs.d.ts +0 -30
- package/types/theme/components/tag.d.ts +0 -53
- package/types/theme/components/textInput.d.ts +0 -87
- package/types/theme/components/timePicker.d.ts +0 -7
- package/types/theme/components/toast.d.ts +0 -40
- package/types/theme/components/toolbar.d.ts +0 -47
- package/types/theme/components/typography.d.ts +0 -165
- package/types/theme/getTheme.d.ts +0 -106
- package/types/theme/global/borders.d.ts +0 -18
- package/types/theme/global/colors/eBens.d.ts +0 -3
- package/types/theme/global/colors/global.d.ts +0 -3
- package/types/theme/global/colors/globalDark.d.ts +0 -3
- package/types/theme/global/colors/jobs.d.ts +0 -3
- package/types/theme/global/colors/swag.d.ts +0 -3
- package/types/theme/global/colors/swagDark.d.ts +0 -3
- package/types/theme/global/colors/swagLight.d.ts +0 -3
- package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
- package/types/theme/global/colors/swagLightJobs.d.ts +0 -48
- package/types/theme/global/colors/types.d.ts +0 -50
- package/types/theme/global/colors/wallet.d.ts +0 -3
- package/types/theme/global/colors/work.d.ts +0 -3
- package/types/theme/global/index.d.ts +0 -82
- package/types/theme/global/scale.d.ts +0 -14
- package/types/theme/global/shadows.d.ts +0 -16
- package/types/theme/global/sizes.d.ts +0 -14
- package/types/theme/global/space.d.ts +0 -16
- package/types/theme/global/typography.d.ts +0 -31
- package/types/theme/index.d.ts +0 -9
- package/types/types.d.ts +0 -14
- package/types/utils/functions.d.ts +0 -1
- package/types/utils/helpers.d.ts +0 -4
- package/types/utils/hooks.d.ts +0 -3
- package/types/utils/scale.d.ts +0 -3
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { GlobalTheme } from '../global';
|
|
2
|
-
declare const getToolbarTheme: (theme: GlobalTheme) => {
|
|
3
|
-
colors: {
|
|
4
|
-
background: string;
|
|
5
|
-
border: string;
|
|
6
|
-
primary: string;
|
|
7
|
-
secondary: string;
|
|
8
|
-
info: string;
|
|
9
|
-
success: string;
|
|
10
|
-
danger: string;
|
|
11
|
-
error: string;
|
|
12
|
-
disabled: string;
|
|
13
|
-
iconButtonBackground: string;
|
|
14
|
-
inputContainerBackground: string;
|
|
15
|
-
};
|
|
16
|
-
space: {
|
|
17
|
-
verticalPadding: number;
|
|
18
|
-
horizontalPadding: number;
|
|
19
|
-
iconButtonLabelMarginLeft: number;
|
|
20
|
-
iconButtonWrapperPadding: number;
|
|
21
|
-
messageWrapperMarginHorizontal: number;
|
|
22
|
-
messageWrapperPaddingVertical: number;
|
|
23
|
-
messageWrapperPaddingHorizontal: number;
|
|
24
|
-
messageInputPaddingHorizontal: number;
|
|
25
|
-
messageInputPaddingVertical: number;
|
|
26
|
-
affixInnerMargin: number;
|
|
27
|
-
};
|
|
28
|
-
borderWidths: {
|
|
29
|
-
default: number;
|
|
30
|
-
};
|
|
31
|
-
sizes: {
|
|
32
|
-
itemWrapperHeight: number;
|
|
33
|
-
messageWrapperHeight: number;
|
|
34
|
-
messageInputHeight: number;
|
|
35
|
-
};
|
|
36
|
-
radii: {
|
|
37
|
-
iconButtonWrapperBorderRadius: number;
|
|
38
|
-
messageContainer: number;
|
|
39
|
-
};
|
|
40
|
-
fontSizes: {
|
|
41
|
-
text: number;
|
|
42
|
-
};
|
|
43
|
-
fonts: {
|
|
44
|
-
text: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export default getToolbarTheme;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import type { GlobalTheme } from '../global';
|
|
2
|
-
declare const getTypographyTheme: (theme: GlobalTheme) => {
|
|
3
|
-
colors: {
|
|
4
|
-
body: string;
|
|
5
|
-
subdued: string;
|
|
6
|
-
primary: string;
|
|
7
|
-
secondary: string;
|
|
8
|
-
info: string;
|
|
9
|
-
danger: string;
|
|
10
|
-
warning: string;
|
|
11
|
-
success: string;
|
|
12
|
-
inverted: string;
|
|
13
|
-
archived: string;
|
|
14
|
-
disabled: string;
|
|
15
|
-
muted: string;
|
|
16
|
-
};
|
|
17
|
-
fonts: import("../global/typography").Fonts;
|
|
18
|
-
fontSizes: {
|
|
19
|
-
xsmall: number;
|
|
20
|
-
small: number;
|
|
21
|
-
medium: number;
|
|
22
|
-
large: number;
|
|
23
|
-
xlarge: number;
|
|
24
|
-
xxxlarge: number;
|
|
25
|
-
xxxxlarge: number;
|
|
26
|
-
xxxxxlarge: number;
|
|
27
|
-
'6xlarge': number;
|
|
28
|
-
'7xlarge': number;
|
|
29
|
-
caption: number;
|
|
30
|
-
label: number;
|
|
31
|
-
titles: {
|
|
32
|
-
neutral: {
|
|
33
|
-
h1: number;
|
|
34
|
-
h2: number;
|
|
35
|
-
h3: number;
|
|
36
|
-
h4: number;
|
|
37
|
-
h5: number;
|
|
38
|
-
h6: number;
|
|
39
|
-
};
|
|
40
|
-
playful: {
|
|
41
|
-
h1: number;
|
|
42
|
-
h2: number;
|
|
43
|
-
h3: number;
|
|
44
|
-
h4: number;
|
|
45
|
-
h5: number;
|
|
46
|
-
h6: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
body: {
|
|
50
|
-
neutral: {
|
|
51
|
-
regular: number;
|
|
52
|
-
small: number;
|
|
53
|
-
};
|
|
54
|
-
playful: {
|
|
55
|
-
regular: number;
|
|
56
|
-
small: number;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
lineHeights: {
|
|
61
|
-
xsmall: number;
|
|
62
|
-
small: number;
|
|
63
|
-
medium: number;
|
|
64
|
-
large: number;
|
|
65
|
-
xlarge: number;
|
|
66
|
-
xxxlarge: number;
|
|
67
|
-
xxxxlarge: number;
|
|
68
|
-
xxxxxlarge: number;
|
|
69
|
-
'6xlarge': number;
|
|
70
|
-
'7xlarge': number;
|
|
71
|
-
caption: number;
|
|
72
|
-
label: number;
|
|
73
|
-
titles: {
|
|
74
|
-
neutral: {
|
|
75
|
-
h1: number;
|
|
76
|
-
h2: number;
|
|
77
|
-
h3: number;
|
|
78
|
-
h4: number;
|
|
79
|
-
h5: number;
|
|
80
|
-
h6: number;
|
|
81
|
-
};
|
|
82
|
-
playful: {
|
|
83
|
-
h1: number;
|
|
84
|
-
h2: number;
|
|
85
|
-
h3: number;
|
|
86
|
-
h4: number;
|
|
87
|
-
h5: number;
|
|
88
|
-
h6: number;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
body: {
|
|
92
|
-
neutral: {
|
|
93
|
-
regular: number;
|
|
94
|
-
small: number;
|
|
95
|
-
};
|
|
96
|
-
playful: {
|
|
97
|
-
regular: number;
|
|
98
|
-
small: number;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
letterSpacings: {
|
|
103
|
-
titles: {
|
|
104
|
-
neutral: {
|
|
105
|
-
h1: number;
|
|
106
|
-
h2: number;
|
|
107
|
-
h3: number;
|
|
108
|
-
h4: number;
|
|
109
|
-
h5: number;
|
|
110
|
-
h6: number;
|
|
111
|
-
};
|
|
112
|
-
playful: {
|
|
113
|
-
h1: number;
|
|
114
|
-
h2: number;
|
|
115
|
-
h3: number;
|
|
116
|
-
h4: number;
|
|
117
|
-
h5: number;
|
|
118
|
-
h6: number;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
body: {
|
|
122
|
-
neutral: {
|
|
123
|
-
semiBold: number;
|
|
124
|
-
regular: number;
|
|
125
|
-
small: number;
|
|
126
|
-
};
|
|
127
|
-
playful: {
|
|
128
|
-
semiBold: number;
|
|
129
|
-
regular: number;
|
|
130
|
-
small: number;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
fontWeights: {
|
|
135
|
-
titles: {
|
|
136
|
-
neutral: {
|
|
137
|
-
h1: string;
|
|
138
|
-
h2: string;
|
|
139
|
-
h3: string;
|
|
140
|
-
h4: string;
|
|
141
|
-
h5: string;
|
|
142
|
-
h6: string;
|
|
143
|
-
};
|
|
144
|
-
playful: {
|
|
145
|
-
h1: string;
|
|
146
|
-
h2: string;
|
|
147
|
-
h3: string;
|
|
148
|
-
h4: string;
|
|
149
|
-
h5: string;
|
|
150
|
-
h6: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
body: {
|
|
154
|
-
neutral: {
|
|
155
|
-
semiBold: string;
|
|
156
|
-
regular: string;
|
|
157
|
-
};
|
|
158
|
-
playful: {
|
|
159
|
-
semiBold: string;
|
|
160
|
-
regular: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
export default getTypographyTheme;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import getAccordionTheme from './components/accordion';
|
|
2
|
-
import getAlertTheme from './components/alert';
|
|
3
|
-
import getAttachmentTheme from './components/attachment';
|
|
4
|
-
import getAvatarTheme from './components/avatar';
|
|
5
|
-
import { BadgeThemeType } from './components/badge';
|
|
6
|
-
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
7
|
-
import getBottomSheetTheme from './components/bottomSheet';
|
|
8
|
-
import { ButtonThemeType } from './components/button';
|
|
9
|
-
import getCalendarTheme from './components/calendar';
|
|
10
|
-
import getCardTheme from './components/card';
|
|
11
|
-
import { CarouselThemeType } from './components/carousel';
|
|
12
|
-
import getCardCarouselTheme from './components/cardCarousel';
|
|
13
|
-
import getCheckboxTheme from './components/checkbox';
|
|
14
|
-
import getChipTheme from './components/chip';
|
|
15
|
-
import getContentNavigatorTheme from './components/contentNavigator';
|
|
16
|
-
import getDatePickerTheme from './components/datePicker';
|
|
17
|
-
import getDividerTheme from './components/divider';
|
|
18
|
-
import getDrawerTheme from './components/drawer';
|
|
19
|
-
import { EmptyThemeType } from './components/empty';
|
|
20
|
-
import { ErrorThemeType } from './components/error';
|
|
21
|
-
import { FABThemeType } from './components/fab';
|
|
22
|
-
import getIconTheme from './components/icon';
|
|
23
|
-
import getImageTheme from './components/image';
|
|
24
|
-
import getListTheme from './components/list';
|
|
25
|
-
import getPageControlTheme from './components/pageControl';
|
|
26
|
-
import { PinInputThemeType } from './components/pinInput';
|
|
27
|
-
import getProgressTheme from './components/progress';
|
|
28
|
-
import getRadioTheme from './components/radio';
|
|
29
|
-
import getRateTheme from './components/rate';
|
|
30
|
-
import getRefreshControlTheme from './components/refreshControl';
|
|
31
|
-
import getRichTextEditorTheme from './components/richTextEditor';
|
|
32
|
-
import getSectionHeadingTheme from './components/sectionHeading';
|
|
33
|
-
import getSelectTheme from './components/select';
|
|
34
|
-
import getSkeletonTheme from './components/skeleton';
|
|
35
|
-
import getSliderTheme from './components/slider';
|
|
36
|
-
import getSpinnerTheme from './components/spinner';
|
|
37
|
-
import { SuccessThemeType } from './components/success';
|
|
38
|
-
import getSwipeableTheme from './components/swipeable';
|
|
39
|
-
import getSwitchTheme from './components/switch';
|
|
40
|
-
import getTabsTheme from './components/tabs';
|
|
41
|
-
import { TagThemeType } from './components/tag';
|
|
42
|
-
import getTextInputTheme from './components/textInput';
|
|
43
|
-
import getTimePickerTheme from './components/timePicker';
|
|
44
|
-
import getToastTheme from './components/toast';
|
|
45
|
-
import getToolbarTheme from './components/toolbar';
|
|
46
|
-
import getTypographyTheme from './components/typography';
|
|
47
|
-
import type { GlobalTheme, Scale, SystemPalette } from './global';
|
|
48
|
-
import getSearchTheme from './components/search';
|
|
49
|
-
import getMapPinTheme from './components/mapPin';
|
|
50
|
-
import getFloatingIslandTheme from './components/floatingIsland';
|
|
51
|
-
declare type Theme = GlobalTheme & {
|
|
52
|
-
__hd__: {
|
|
53
|
-
accordion: ReturnType<typeof getAccordionTheme>;
|
|
54
|
-
alert: ReturnType<typeof getAlertTheme>;
|
|
55
|
-
attachment: ReturnType<typeof getAttachmentTheme>;
|
|
56
|
-
avatar: ReturnType<typeof getAvatarTheme>;
|
|
57
|
-
badge: BadgeThemeType;
|
|
58
|
-
bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
|
|
59
|
-
bottomSheet: ReturnType<typeof getBottomSheetTheme>;
|
|
60
|
-
button: ButtonThemeType;
|
|
61
|
-
calendar: ReturnType<typeof getCalendarTheme>;
|
|
62
|
-
card: ReturnType<typeof getCardTheme>;
|
|
63
|
-
carousel: CarouselThemeType;
|
|
64
|
-
cardCarousel: ReturnType<typeof getCardCarouselTheme>;
|
|
65
|
-
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
66
|
-
chip: ReturnType<typeof getChipTheme>;
|
|
67
|
-
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
68
|
-
datePicker: ReturnType<typeof getDatePickerTheme>;
|
|
69
|
-
divider: ReturnType<typeof getDividerTheme>;
|
|
70
|
-
drawer: ReturnType<typeof getDrawerTheme>;
|
|
71
|
-
empty: EmptyThemeType;
|
|
72
|
-
error: ErrorThemeType;
|
|
73
|
-
fab: FABThemeType;
|
|
74
|
-
icon: ReturnType<typeof getIconTheme>;
|
|
75
|
-
image: ReturnType<typeof getImageTheme>;
|
|
76
|
-
list: ReturnType<typeof getListTheme>;
|
|
77
|
-
mapPin: ReturnType<typeof getMapPinTheme>;
|
|
78
|
-
pageControl: ReturnType<typeof getPageControlTheme>;
|
|
79
|
-
pinInput: PinInputThemeType;
|
|
80
|
-
progress: ReturnType<typeof getProgressTheme>;
|
|
81
|
-
radio: ReturnType<typeof getRadioTheme>;
|
|
82
|
-
rate: ReturnType<typeof getRateTheme>;
|
|
83
|
-
refreshControl: ReturnType<typeof getRefreshControlTheme>;
|
|
84
|
-
richTextEditor: ReturnType<typeof getRichTextEditorTheme>;
|
|
85
|
-
search: ReturnType<typeof getSearchTheme>;
|
|
86
|
-
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
87
|
-
select: ReturnType<typeof getSelectTheme>;
|
|
88
|
-
skeleton: ReturnType<typeof getSkeletonTheme>;
|
|
89
|
-
slider: ReturnType<typeof getSliderTheme>;
|
|
90
|
-
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
91
|
-
success: SuccessThemeType;
|
|
92
|
-
swipeable: ReturnType<typeof getSwipeableTheme>;
|
|
93
|
-
switch: ReturnType<typeof getSwitchTheme>;
|
|
94
|
-
tabs: ReturnType<typeof getTabsTheme>;
|
|
95
|
-
tag: TagThemeType;
|
|
96
|
-
textInput: ReturnType<typeof getTextInputTheme>;
|
|
97
|
-
timePicker: ReturnType<typeof getTimePickerTheme>;
|
|
98
|
-
toast: ReturnType<typeof getToastTheme>;
|
|
99
|
-
toolbar: ReturnType<typeof getToolbarTheme>;
|
|
100
|
-
typography: ReturnType<typeof getTypographyTheme>;
|
|
101
|
-
floatingIsland: ReturnType<typeof getFloatingIslandTheme>;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
declare const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
|
|
105
|
-
export default getTheme;
|
|
106
|
-
export type { Theme };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface BorderWidths {
|
|
2
|
-
base: number;
|
|
3
|
-
medium: number;
|
|
4
|
-
}
|
|
5
|
-
interface Radii {
|
|
6
|
-
rounded: number;
|
|
7
|
-
base: number;
|
|
8
|
-
medium: number;
|
|
9
|
-
large: number;
|
|
10
|
-
xlarge: number;
|
|
11
|
-
xxlarge: number;
|
|
12
|
-
xxxlarge: number;
|
|
13
|
-
'5xlarge': number;
|
|
14
|
-
}
|
|
15
|
-
declare const getBorderWidths: (baseBorderWidth: number) => BorderWidths;
|
|
16
|
-
declare const getRadii: (baseRadius: number) => Radii;
|
|
17
|
-
export { getBorderWidths, getRadii };
|
|
18
|
-
export type { BorderWidths, Radii };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
declare const swagLightJobsSystemPalette: {
|
|
2
|
-
secondary: string;
|
|
3
|
-
onSecondary: string;
|
|
4
|
-
secondaryHighlightedSurface: string;
|
|
5
|
-
decorativeSecondary: string;
|
|
6
|
-
decorativeSecondarySurface: string;
|
|
7
|
-
defaultGlobalSurface: string;
|
|
8
|
-
onDefaultGlobalSurface: string;
|
|
9
|
-
neutralGlobalSurface: string;
|
|
10
|
-
mutedOnDefaultGlobalSurface: string;
|
|
11
|
-
inactiveOnDefaultGlobalSurface: string;
|
|
12
|
-
disabledOnDefaultGlobalSurface: string;
|
|
13
|
-
darkGlobalSurface: string;
|
|
14
|
-
onDarkGlobalSurface: string;
|
|
15
|
-
overlayGlobalSurface: string;
|
|
16
|
-
primaryOutline: string;
|
|
17
|
-
secondaryOutline: string;
|
|
18
|
-
inactiveOutline: string;
|
|
19
|
-
disabledOutline: string;
|
|
20
|
-
error: string;
|
|
21
|
-
mutedError: string;
|
|
22
|
-
errorSurface: string;
|
|
23
|
-
onErrorSurface: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
mutedWarning: string;
|
|
26
|
-
warningSurface: string;
|
|
27
|
-
onWarningSurface: string;
|
|
28
|
-
success: string;
|
|
29
|
-
mutedSuccess: string;
|
|
30
|
-
successSurface: string;
|
|
31
|
-
onSuccessSurface: string;
|
|
32
|
-
info: string;
|
|
33
|
-
mutedInfo: string;
|
|
34
|
-
infoSurface: string;
|
|
35
|
-
onInfoSurface: string;
|
|
36
|
-
archived: string;
|
|
37
|
-
mutedArchived: string;
|
|
38
|
-
archivedSurface: string;
|
|
39
|
-
onArchivedSurface: string;
|
|
40
|
-
primary: string;
|
|
41
|
-
onPrimary: string;
|
|
42
|
-
defaultSurface: string;
|
|
43
|
-
highlightedSurface: string;
|
|
44
|
-
pressedSurface: string;
|
|
45
|
-
decorativePrimary: string;
|
|
46
|
-
decorativePrimarySurface: string;
|
|
47
|
-
};
|
|
48
|
-
export default swagLightJobsSystemPalette;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare type GlobalSystemPalette = {
|
|
2
|
-
defaultGlobalSurface: string;
|
|
3
|
-
onDefaultGlobalSurface: string;
|
|
4
|
-
neutralGlobalSurface: string;
|
|
5
|
-
mutedOnDefaultGlobalSurface: string;
|
|
6
|
-
inactiveOnDefaultGlobalSurface: string;
|
|
7
|
-
disabledOnDefaultGlobalSurface: string;
|
|
8
|
-
darkGlobalSurface: string;
|
|
9
|
-
onDarkGlobalSurface: string;
|
|
10
|
-
overlayGlobalSurface: string;
|
|
11
|
-
primaryOutline: string;
|
|
12
|
-
secondaryOutline: string;
|
|
13
|
-
inactiveOutline: string;
|
|
14
|
-
disabledOutline: string;
|
|
15
|
-
error: string;
|
|
16
|
-
mutedError: string;
|
|
17
|
-
errorSurface: string;
|
|
18
|
-
onErrorSurface: string;
|
|
19
|
-
warning: string;
|
|
20
|
-
mutedWarning: string;
|
|
21
|
-
warningSurface: string;
|
|
22
|
-
onWarningSurface: string;
|
|
23
|
-
success: string;
|
|
24
|
-
mutedSuccess: string;
|
|
25
|
-
successSurface: string;
|
|
26
|
-
onSuccessSurface: string;
|
|
27
|
-
info: string;
|
|
28
|
-
mutedInfo: string;
|
|
29
|
-
infoSurface: string;
|
|
30
|
-
onInfoSurface: string;
|
|
31
|
-
archived: string;
|
|
32
|
-
mutedArchived: string;
|
|
33
|
-
archivedSurface: string;
|
|
34
|
-
onArchivedSurface: string;
|
|
35
|
-
};
|
|
36
|
-
export declare type BrandSystemPalette = {
|
|
37
|
-
primary: string;
|
|
38
|
-
onPrimary: string;
|
|
39
|
-
secondary: string;
|
|
40
|
-
onSecondary: string;
|
|
41
|
-
defaultSurface: string;
|
|
42
|
-
highlightedSurface: string;
|
|
43
|
-
secondaryHighlightedSurface?: string;
|
|
44
|
-
pressedSurface: string;
|
|
45
|
-
decorativePrimary: string;
|
|
46
|
-
decorativePrimarySurface: string;
|
|
47
|
-
decorativeSecondary?: string;
|
|
48
|
-
decorativeSecondarySurface?: string;
|
|
49
|
-
};
|
|
50
|
-
export declare type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { scale as defaultScale } from './scale';
|
|
2
|
-
import swagSystemPalette from './colors/swag';
|
|
3
|
-
import swagDarkSystemPalette from './colors/swagDark';
|
|
4
|
-
import swagLightSystemPalette from './colors/swagLight';
|
|
5
|
-
import swagLightJobsSystemPalette from './colors/swagLightJobs';
|
|
6
|
-
import workSystemPalette from './colors/work';
|
|
7
|
-
import jobsSystemPalette from './colors/jobs';
|
|
8
|
-
import walletSystemPalette from './colors/wallet';
|
|
9
|
-
import eBensSystemPalette from './colors/eBens';
|
|
10
|
-
import type { Scale } from './scale';
|
|
11
|
-
import type { SystemPalette } from './colors/types';
|
|
12
|
-
declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
13
|
-
colors: {
|
|
14
|
-
defaultGlobalSurface: string;
|
|
15
|
-
onDefaultGlobalSurface: string;
|
|
16
|
-
neutralGlobalSurface: string;
|
|
17
|
-
mutedOnDefaultGlobalSurface: string;
|
|
18
|
-
inactiveOnDefaultGlobalSurface: string;
|
|
19
|
-
disabledOnDefaultGlobalSurface: string;
|
|
20
|
-
darkGlobalSurface: string;
|
|
21
|
-
onDarkGlobalSurface: string;
|
|
22
|
-
overlayGlobalSurface: string;
|
|
23
|
-
primaryOutline: string;
|
|
24
|
-
secondaryOutline: string;
|
|
25
|
-
inactiveOutline: string;
|
|
26
|
-
disabledOutline: string;
|
|
27
|
-
error: string;
|
|
28
|
-
mutedError: string;
|
|
29
|
-
errorSurface: string;
|
|
30
|
-
onErrorSurface: string;
|
|
31
|
-
warning: string;
|
|
32
|
-
mutedWarning: string;
|
|
33
|
-
warningSurface: string;
|
|
34
|
-
onWarningSurface: string;
|
|
35
|
-
success: string;
|
|
36
|
-
mutedSuccess: string;
|
|
37
|
-
successSurface: string;
|
|
38
|
-
onSuccessSurface: string;
|
|
39
|
-
info: string;
|
|
40
|
-
mutedInfo: string;
|
|
41
|
-
infoSurface: string;
|
|
42
|
-
onInfoSurface: string;
|
|
43
|
-
archived: string;
|
|
44
|
-
mutedArchived: string;
|
|
45
|
-
archivedSurface: string;
|
|
46
|
-
onArchivedSurface: string;
|
|
47
|
-
primary: string;
|
|
48
|
-
onPrimary: string;
|
|
49
|
-
secondary: string;
|
|
50
|
-
onSecondary: string;
|
|
51
|
-
defaultSurface: string;
|
|
52
|
-
highlightedSurface: string;
|
|
53
|
-
secondaryHighlightedSurface?: string | undefined;
|
|
54
|
-
pressedSurface: string;
|
|
55
|
-
decorativePrimary: string;
|
|
56
|
-
decorativePrimarySurface: string;
|
|
57
|
-
decorativeSecondary?: string | undefined;
|
|
58
|
-
decorativeSecondarySurface?: string | undefined;
|
|
59
|
-
};
|
|
60
|
-
fonts: import("./typography").Fonts;
|
|
61
|
-
fontSizes: import("./typography").FontSizes;
|
|
62
|
-
lineHeights: import("./typography").FontSizes;
|
|
63
|
-
borderWidths: import("./borders").BorderWidths;
|
|
64
|
-
space: import("./space").Space;
|
|
65
|
-
sizes: import("./sizes").Sizes;
|
|
66
|
-
radii: import("./borders").Radii;
|
|
67
|
-
shadows: {
|
|
68
|
-
default: {
|
|
69
|
-
shadowOffset: {
|
|
70
|
-
width: number;
|
|
71
|
-
height: number;
|
|
72
|
-
};
|
|
73
|
-
shadowColor: string;
|
|
74
|
-
shadowOpacity: number;
|
|
75
|
-
shadowRadius: number;
|
|
76
|
-
elevation: number;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
declare type GlobalTheme = ReturnType<typeof getGlobalTheme>;
|
|
81
|
-
export type { GlobalTheme, Scale, SystemPalette };
|
|
82
|
-
export { getGlobalTheme, defaultScale, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const scale: {
|
|
2
|
-
borderWidth: number;
|
|
3
|
-
space: number;
|
|
4
|
-
size: number;
|
|
5
|
-
font: {
|
|
6
|
-
neutral: string;
|
|
7
|
-
playful: string;
|
|
8
|
-
};
|
|
9
|
-
fontSize: number;
|
|
10
|
-
radius: number;
|
|
11
|
-
};
|
|
12
|
-
declare type Scale = typeof scale;
|
|
13
|
-
export { scale };
|
|
14
|
-
export type { Scale };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SystemPalette } from '.';
|
|
2
|
-
declare const getShadows: (systemPalette: SystemPalette) => {
|
|
3
|
-
default: {
|
|
4
|
-
shadowOffset: {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
shadowColor: string;
|
|
9
|
-
shadowOpacity: number;
|
|
10
|
-
shadowRadius: number;
|
|
11
|
-
elevation: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare type Shadows = ReturnType<typeof getShadows>;
|
|
15
|
-
export { getShadows };
|
|
16
|
-
export type { Shadows };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Space } from './space';
|
|
2
|
-
interface Sizes extends Space {
|
|
3
|
-
xxxxxlarge: number;
|
|
4
|
-
'6xlarge': number;
|
|
5
|
-
'7xlarge': number;
|
|
6
|
-
'9xlarge': number;
|
|
7
|
-
'14xlarge': number;
|
|
8
|
-
'15xlarge': number;
|
|
9
|
-
'18xlarge': number;
|
|
10
|
-
'19xlarge': number;
|
|
11
|
-
}
|
|
12
|
-
declare const getSizes: (baseSize: number) => Sizes;
|
|
13
|
-
export { getSizes };
|
|
14
|
-
export type { Sizes };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface Space {
|
|
2
|
-
large: number;
|
|
3
|
-
medium: number;
|
|
4
|
-
small: number;
|
|
5
|
-
smallMedium: number;
|
|
6
|
-
xlarge: number;
|
|
7
|
-
xsmall: number;
|
|
8
|
-
xxlarge: number;
|
|
9
|
-
xxsmall: number;
|
|
10
|
-
xxxlarge: number;
|
|
11
|
-
xxxxlarge: number;
|
|
12
|
-
'5xlarge': number;
|
|
13
|
-
}
|
|
14
|
-
declare const getSpace: (baseSpace: number) => Space;
|
|
15
|
-
export { getSpace };
|
|
16
|
-
export type { Space };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
interface FontWeights {
|
|
2
|
-
light: string;
|
|
3
|
-
regular: string;
|
|
4
|
-
semiBold: string;
|
|
5
|
-
}
|
|
6
|
-
interface Fonts {
|
|
7
|
-
neutral: FontWeights;
|
|
8
|
-
playful: FontWeights;
|
|
9
|
-
}
|
|
10
|
-
interface FontSizes {
|
|
11
|
-
'7xlarge': number;
|
|
12
|
-
'6xlarge': number;
|
|
13
|
-
xxxxxlarge: number;
|
|
14
|
-
xxxxlarge: number;
|
|
15
|
-
xxxlarge: number;
|
|
16
|
-
xxlarge: number;
|
|
17
|
-
xlarge: number;
|
|
18
|
-
large: number;
|
|
19
|
-
medium: number;
|
|
20
|
-
small: number;
|
|
21
|
-
xsmall: number;
|
|
22
|
-
}
|
|
23
|
-
declare type LineHeights = FontSizes;
|
|
24
|
-
declare const getFonts: ({ neutral, playful, }: {
|
|
25
|
-
neutral: string;
|
|
26
|
-
playful: string;
|
|
27
|
-
}) => Fonts;
|
|
28
|
-
declare const getFontSizes: (baseFontSize: number) => FontSizes;
|
|
29
|
-
declare const getLineHeights: (fontSizes: FontSizes) => LineHeights;
|
|
30
|
-
export { getFonts, getFontSizes, getLineHeights };
|
|
31
|
-
export type { Fonts, FontSizes, LineHeights };
|
package/types/theme/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import getTheme from './getTheme';
|
|
2
|
-
import ThemeProvider, { useTheme } from './ThemeProvider';
|
|
3
|
-
import ThemeSwitcher, { withTheme } from './ThemeSwitcher';
|
|
4
|
-
import { swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette } from './global';
|
|
5
|
-
import type { Theme } from './getTheme';
|
|
6
|
-
declare const defaultTheme: Theme;
|
|
7
|
-
export type { Theme };
|
|
8
|
-
export { withTheme, getTheme, ThemeProvider, ThemeSwitcher, useTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, };
|
|
9
|
-
export default defaultTheme;
|