@hero-design/rn 8.82.0-alpha.0 → 8.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -0
- package/CHANGELOG.md +5 -1
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +37391 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +37488 -0
- package/package.json +1 -1
- package/src/components/BottomSheet/index.tsx +15 -13
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +14 -0
- package/stats/8.82.0/rn-stats.html +4842 -0
- package/types/components/Accordion/AccordionItem.d.ts +15 -0
- package/types/components/Accordion/StyledAccordion.d.ts +32 -0
- package/types/components/Accordion/index.d.ts +39 -0
- package/types/components/Alert/StyledAlert.d.ts +53 -0
- package/types/components/Alert/index.d.ts +58 -0
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/index.d.ts +4 -0
- package/types/components/Attachment/StyledAttachment.d.ts +28 -0
- package/types/components/Attachment/index.d.ts +38 -0
- package/types/components/Avatar/Avatar.d.ts +34 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +30 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +35 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +4 -0
- package/types/components/Avatar/StyledAvatar.d.ts +34 -0
- package/types/components/Avatar/index.d.ts +6 -0
- package/types/components/Badge/Status.d.ts +24 -0
- package/types/components/Badge/StyledBadge.d.ts +33 -0
- package/types/components/Badge/index.d.ts +6 -0
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +5 -0
- package/types/components/BottomSheet/Footer.d.ts +7 -0
- package/types/components/BottomSheet/Header.d.ts +10 -0
- package/types/components/BottomSheet/ScrollView.d.ts +3 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +61 -0
- package/types/components/BottomSheet/index.d.ts +74 -0
- package/types/components/Box/StyledBox.d.ts +15 -0
- package/types/components/Box/config.d.ts +170 -0
- package/types/components/Box/index.d.ts +6 -0
- package/types/components/Box/types.d.ts +31 -0
- package/types/components/Button/Button.d.ts +57 -0
- package/types/components/Button/IconButton.d.ts +39 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +27 -0
- package/types/components/Button/StyledButton.d.ts +48 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +17 -0
- package/types/components/Button/UtilityButton/index.d.ts +24 -0
- package/types/components/Button/index.d.ts +10 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +12 -0
- package/types/components/Calendar/StyledCalendar.d.ts +62 -0
- package/types/components/Calendar/helpers.d.ts +3 -0
- package/types/components/Calendar/index.d.ts +58 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/StyledCard.d.ts +11 -0
- package/types/components/Card/index.d.ts +25 -0
- package/types/components/Carousel/CardCarousel.d.ts +42 -0
- package/types/components/Carousel/CarouselItem.d.ts +7 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +24 -0
- package/types/components/Carousel/StyledCarousel.d.ts +54 -0
- package/types/components/Carousel/contants.d.ts +2 -0
- package/types/components/Carousel/index.d.ts +44 -0
- package/types/components/Carousel/types.d.ts +14 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +35 -0
- package/types/components/Checkbox/index.d.ts +44 -0
- package/types/components/Chip/StyledChip.d.ts +16 -0
- package/types/components/Chip/index.d.ts +31 -0
- package/types/components/Collapse/StyledCollapse.d.ts +23 -0
- package/types/components/Collapse/index.d.ts +20 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +8 -0
- package/types/components/ContentNavigator/index.d.ts +43 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +7 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +4 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +7 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +9 -0
- package/types/components/DatePicker/index.d.ts +4 -0
- package/types/components/DatePicker/types.d.ts +79 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
- package/types/components/Divider/StyledDivider.d.ts +12 -0
- package/types/components/Divider/index.d.ts +22 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
- package/types/components/Drawer/StyledDrawer.d.ts +49 -0
- package/types/components/Drawer/index.d.ts +27 -0
- package/types/components/Empty/StyledEmpty.d.ts +21 -0
- package/types/components/Empty/index.d.ts +31 -0
- package/types/components/Error/StyledError.d.ts +53 -0
- package/types/components/Error/index.d.ts +56 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +27 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/index.d.ts +54 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +7 -0
- package/types/components/FAB/FAB.d.ts +40 -0
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/StyledFAB.d.ts +21 -0
- package/types/components/FAB/index.d.ts +5 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
- package/types/components/FloatingIsland/index.d.ts +23 -0
- package/types/components/HeroDesignProvider/index.d.ts +4 -0
- package/types/components/Icon/AnimatedIcon.d.ts +6 -0
- package/types/components/Icon/HeroIcon/index.d.ts +12 -0
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/components/Icon/index.d.ts +35 -0
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/components/Image/index.d.ts +17 -0
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +52 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/MapPin/Focussed.d.ts +13 -0
- package/types/components/MapPin/StyledMapPin.d.ts +31 -0
- package/types/components/MapPin/index.d.ts +5 -0
- package/types/components/MapPin/types.d.ts +38 -0
- package/types/components/Modal/index.d.ts +37 -0
- package/types/components/PageControl/StyledPageControl.d.ts +12 -0
- package/types/components/PageControl/index.d.ts +22 -0
- package/types/components/PinInput/PinCell.d.ts +9 -0
- package/types/components/PinInput/StyledPinInput.d.ts +69 -0
- package/types/components/PinInput/index.d.ts +69 -0
- package/types/components/Portal/PortalHost.d.ts +5 -0
- package/types/components/Portal/PortalProvider.d.ts +7 -0
- package/types/components/Portal/constants.d.ts +8 -0
- package/types/components/Portal/contexts.d.ts +9 -0
- package/types/components/Portal/index.d.ts +18 -0
- package/types/components/Portal/reducer.d.ts +5 -0
- package/types/components/Portal/types.d.ts +22 -0
- package/types/components/Portal/usePortal.d.ts +8 -0
- package/types/components/Portal/usePortalState.d.ts +1 -0
- package/types/components/Progress/ProgressBar.d.ts +18 -0
- package/types/components/Progress/ProgressCircle.d.ts +20 -0
- package/types/components/Progress/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledProgressBar.d.ts +18 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +46 -0
- package/types/components/Progress/StyledStep.d.ts +23 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
- package/types/components/Progress/constants.d.ts +15 -0
- package/types/components/Progress/index.d.ts +6 -0
- package/types/components/Progress/types.d.ts +1 -0
- package/types/components/Radio/Radio.d.ts +38 -0
- package/types/components/Radio/RadioGroup.d.ts +36 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/Radio/types.d.ts +8 -0
- package/types/components/Rate/StyledRate.d.ts +10 -0
- package/types/components/Rate/index.d.ts +29 -0
- package/types/components/RefreshControl/index.d.ts +5 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +4 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +18 -0
- package/types/components/RichTextEditor/MentionList.d.ts +17 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +70 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/constants.d.ts +9 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/index.d.ts +7 -0
- package/types/components/RichTextEditor/types.d.ts +1 -0
- package/types/components/RichTextEditor/utils/events.d.ts +8 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
- package/types/components/Search/SearchOneLine.d.ts +69 -0
- package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
- package/types/components/Search/SearchTwoLine.d.ts +36 -0
- package/types/components/Search/StyledSearch.d.ts +49 -0
- package/types/components/Search/index.d.ts +10 -0
- package/types/components/Search/utils.d.ts +8 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +23 -0
- package/types/components/SectionHeading/index.d.ts +45 -0
- package/types/components/Select/BaseOptionList.d.ts +8 -0
- package/types/components/Select/Footer.d.ts +6 -0
- package/types/components/Select/MultiSelect/Option.d.ts +10 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +9 -0
- package/types/components/Select/MultiSelect/index.d.ts +30 -0
- package/types/components/Select/SingleSelect/Option.d.ts +10 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +11 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +23 -0
- package/types/components/Select/StyledSelect.d.ts +21 -0
- package/types/components/Select/helpers.d.ts +14 -0
- package/types/components/Select/index.d.ts +8 -0
- package/types/components/Select/types.d.ts +84 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +16 -0
- package/types/components/Skeleton/index.d.ts +14 -0
- package/types/components/Slider/index.d.ts +53 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +6 -0
- package/types/components/Spinner/StyledSpinner.d.ts +34 -0
- package/types/components/Spinner/index.d.ts +18 -0
- package/types/components/Success/StyledSuccess.d.ts +49 -0
- package/types/components/Success/index.d.ts +50 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +49 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +16 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
- package/types/components/Switch/StyledSwitch.d.ts +15 -0
- package/types/components/Switch/index.d.ts +28 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +9 -0
- package/types/components/Tabs/SceneView.d.ts +10 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +7 -0
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +40 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +9 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +10 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +55 -0
- package/types/components/Tabs/StyledTabs.d.ts +51 -0
- package/types/components/Tabs/TabWithBadge.d.ts +16 -0
- package/types/components/Tabs/index.d.ts +62 -0
- package/types/components/Tabs/useHandlePageScroll.d.ts +8 -0
- package/types/components/Tabs/useIsFocused.d.ts +6 -0
- package/types/components/Tabs/utils.d.ts +2 -0
- package/types/components/Tag/StyledTag.d.ts +17 -0
- package/types/components/Tag/index.d.ts +27 -0
- package/types/components/TextInput/StyledTextInput.d.ts +86 -0
- package/types/components/TextInput/index.d.ts +124 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +9 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +4 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +4 -0
- package/types/components/TimePicker/index.d.ts +4 -0
- package/types/components/TimePicker/types.d.ts +61 -0
- package/types/components/Toast/StyledToast.d.ts +59 -0
- package/types/components/Toast/Toast.d.ts +3 -0
- package/types/components/Toast/ToastContainer.d.ts +5 -0
- package/types/components/Toast/ToastContext.d.ts +12 -0
- package/types/components/Toast/ToastProvider.d.ts +11 -0
- package/types/components/Toast/index.d.ts +8 -0
- package/types/components/Toast/types.d.ts +72 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +71 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +14 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +31 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
- package/types/components/Toolbar/index.d.ts +14 -0
- package/types/components/Typography/Body/StyledBody.d.ts +14 -0
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +1 -0
- package/types/components/Typography/Body/index.d.ts +33 -0
- package/types/components/Typography/Caption/StyledCaption.d.ts +12 -0
- package/types/components/Typography/Caption/index.d.ts +27 -0
- package/types/components/Typography/Label/StyledLabel.d.ts +11 -0
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +1 -0
- package/types/components/Typography/Label/index.d.ts +23 -0
- package/types/components/Typography/Text/StyledText.d.ts +13 -0
- package/types/components/Typography/Text/index.d.ts +37 -0
- package/types/components/Typography/Title/StyledTitle.d.ts +14 -0
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +1 -0
- package/types/components/Typography/Title/index.d.ts +33 -0
- package/types/components/Typography/index.d.ts +17 -0
- package/types/components/Typography/types.d.ts +6 -0
- package/types/index.d.ts +57 -0
- package/types/testHelpers/renderWithTheme.d.ts +3 -0
- package/types/testHelpers/utils.d.ts +1 -0
- package/types/theme/ThemeProvider.d.ts +12 -0
- package/types/theme/ThemeSwitcher.d.ts +8 -0
- package/types/theme/components/accordion.d.ts +13 -0
- package/types/theme/components/alert.d.ts +36 -0
- package/types/theme/components/attachment.d.ts +21 -0
- package/types/theme/components/avatar.d.ts +50 -0
- package/types/theme/components/badge.d.ts +56 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/bottomSheet.d.ts +38 -0
- package/types/theme/components/button.d.ts +72 -0
- package/types/theme/components/calendar.d.ts +28 -0
- package/types/theme/components/card.d.ts +21 -0
- package/types/theme/components/cardCarousel.d.ts +15 -0
- package/types/theme/components/carousel.d.ts +36 -0
- package/types/theme/components/checkbox.d.ts +27 -0
- package/types/theme/components/chip.d.ts +43 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/theme/components/datePicker.d.ts +7 -0
- package/types/theme/components/divider.d.ts +17 -0
- package/types/theme/components/drawer.d.ts +30 -0
- package/types/theme/components/empty.d.ts +37 -0
- package/types/theme/components/error.d.ts +51 -0
- package/types/theme/components/fab.d.ts +71 -0
- package/types/theme/components/floatingIsland.d.ts +32 -0
- package/types/theme/components/icon.d.ts +23 -0
- package/types/theme/components/image.d.ts +8 -0
- package/types/theme/components/list.d.ts +46 -0
- package/types/theme/components/mapPin.d.ts +39 -0
- package/types/theme/components/pageControl.d.ts +18 -0
- package/types/theme/components/pinInput.d.ts +57 -0
- package/types/theme/components/progress.d.ts +51 -0
- package/types/theme/components/radio.d.ts +24 -0
- package/types/theme/components/rate.d.ts +11 -0
- package/types/theme/components/refreshControl.d.ts +7 -0
- package/types/theme/components/richTextEditor.d.ts +28 -0
- package/types/theme/components/search.d.ts +64 -0
- package/types/theme/components/sectionHeading.d.ts +14 -0
- package/types/theme/components/select.d.ts +18 -0
- package/types/theme/components/skeleton.d.ts +17 -0
- package/types/theme/components/slider.d.ts +9 -0
- package/types/theme/components/spinner.d.ts +27 -0
- package/types/theme/components/success.d.ts +43 -0
- package/types/theme/components/swipeable.d.ts +16 -0
- package/types/theme/components/switch.d.ts +38 -0
- package/types/theme/components/tabs.d.ts +30 -0
- package/types/theme/components/tag.d.ts +53 -0
- package/types/theme/components/textInput.d.ts +87 -0
- package/types/theme/components/timePicker.d.ts +7 -0
- package/types/theme/components/toast.d.ts +50 -0
- package/types/theme/components/toolbar.d.ts +47 -0
- package/types/theme/components/typography.d.ts +165 -0
- package/types/theme/getTheme.d.ts +106 -0
- package/types/theme/global/borders.d.ts +18 -0
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/globalDark.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +48 -0
- package/types/theme/global/colors/types.d.ts +50 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
- package/types/theme/global/index.d.ts +82 -0
- package/types/theme/global/scale.d.ts +14 -0
- package/types/theme/global/shadows.d.ts +16 -0
- package/types/theme/global/sizes.d.ts +14 -0
- package/types/theme/global/space.d.ts +16 -0
- package/types/theme/global/typography.d.ts +31 -0
- package/types/theme/index.d.ts +9 -0
- package/types/types.d.ts +14 -0
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/helpers.d.ts +4 -0
- package/types/utils/hooks.d.ts +3 -0
- package/types/utils/scale.d.ts +3 -0
|
@@ -0,0 +1,47 @@
|
|
|
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;
|
|
@@ -0,0 +1,165 @@
|
|
|
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;
|
|
@@ -0,0 +1,106 @@
|
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
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 };
|
|
@@ -0,0 +1,48 @@
|
|
|
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;
|
|
@@ -0,0 +1,50 @@
|
|
|
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;
|
|
@@ -0,0 +1,82 @@
|
|
|
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, };
|
|
@@ -0,0 +1,14 @@
|
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|