dhre-ui-kit 0.0.95 → 0.0.96
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/{src/assets/index.ts → lib/assets/index.d.ts} +1 -18
- package/lib/index.d.ts +862 -0
- package/lib/index.esm.js +2 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +4333 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +4248 -0
- package/lib/index.mjs.map +1 -0
- package/lib/theme/ThemeContext.d.ts +10 -0
- package/lib/theme/colors.d.ts +166 -0
- package/lib/theme/fonts.d.ts +8 -0
- package/lib/theme/themes.d.ts +131 -0
- package/lib/theme/withThemeProvider.d.ts +2 -0
- package/lib/utils/appEnum.d.ts +90 -0
- package/lib/utils/commonStyles.d.ts +15 -0
- package/lib/utils/constants.d.ts +19 -0
- package/lib/utils/deviceUtils.d.ts +7 -0
- package/lib/utils/regex.d.ts +1 -0
- package/lib/utils/stylehelper.d.ts +5 -0
- package/package.json +61 -81
- package/README.md +0 -1
- package/__mocks__/custom-text.mock.tsx +0 -19
- package/__mocks__/setup-tests.ts +0 -24
- package/__mocks__/svgMock.ts +0 -2
- package/src/App.tsx +0 -43
- package/src/assets/fonts/MeraasAktiv_Bd.ttf +0 -0
- package/src/assets/fonts/MeraasAktiv_Lt.ttf +0 -0
- package/src/assets/fonts/MeraasAktiv_Rg.ttf +0 -0
- package/src/assets/images/arrowLeft.svg +0 -3
- package/src/assets/images/bellSimple.svg +0 -3
- package/src/assets/images/calenderDots.svg +0 -1
- package/src/assets/images/caretDown.svg +0 -3
- package/src/assets/images/caretLeft.svg +0 -3
- package/src/assets/images/caretRight.svg +0 -3
- package/src/assets/images/caretUp.svg +0 -3
- package/src/assets/images/checkWhite.svg +0 -3
- package/src/assets/images/circleTick.svg +0 -3
- package/src/assets/images/crossIcon.svg +0 -3
- package/src/assets/images/dotsThreeVertical.svg +0 -5
- package/src/assets/images/fileIcon.svg +0 -8
- package/src/assets/images/searchIcon.svg +0 -4
- package/src/assets/images/trash.svg +0 -7
- package/src/assets/images/uploadFileIcon.svg +0 -12
- package/src/components/ContactModel/ContactModel.tsx +0 -206
- package/src/components/ContactModel/index.ts +0 -1
- package/src/components/OutOfOffice/OurOffices.tsx +0 -91
- package/src/components/OutOfOffice/index.ts +0 -1
- package/src/components/accordion/Accordion.interface.ts +0 -16
- package/src/components/accordion/Accordion.styles.ts +0 -28
- package/src/components/accordion/Accordion.test.tsx +0 -21
- package/src/components/accordion/Accordion.tsx +0 -85
- package/src/components/accordion/index.ts +0 -1
- package/src/components/autoOtpReader/AutoOtpReader.test.tsx +0 -56
- package/src/components/autoOtpReader/AutoOtpReader.tsx +0 -79
- package/src/components/autoOtpReader/index.ts +0 -1
- package/src/components/badge/Badge.styles.ts +0 -20
- package/src/components/badge/Badge.test.tsx +0 -57
- package/src/components/badge/Badge.tsx +0 -48
- package/src/components/badge/index.ts +0 -1
- package/src/components/bottomDrawer/BottomDrawer.interface.ts +0 -23
- package/src/components/bottomDrawer/BottomDrawer.styles.ts +0 -47
- package/src/components/bottomDrawer/BottomDrawer.test.tsx +0 -19
- package/src/components/bottomDrawer/BottomDrawer.tsx +0 -92
- package/src/components/bottomDrawer/index.ts +0 -1
- package/src/components/button/Button.interface.ts +0 -19
- package/src/components/button/Button.styles.ts +0 -78
- package/src/components/button/Button.test.tsx +0 -43
- package/src/components/button/Button.tsx +0 -82
- package/src/components/button/index.ts +0 -1
- package/src/components/cards/Cards.interface.ts +0 -13
- package/src/components/cards/Cards.styles.ts +0 -59
- package/src/components/cards/Cards.test.tsx +0 -41
- package/src/components/cards/Cards.tsx +0 -69
- package/src/components/cards/index.ts +0 -1
- package/src/components/checkBox/CheckBox.interface.ts +0 -15
- package/src/components/checkBox/CheckBox.styles.ts +0 -35
- package/src/components/checkBox/CheckBox.test.tsx +0 -46
- package/src/components/checkBox/CheckBox.tsx +0 -50
- package/src/components/checkBox/index.ts +0 -1
- package/src/components/countryPicker/CountryPicker.tsx +0 -169
- package/src/components/countryPicker/index.ts +0 -1
- package/src/components/customDocumentPicker/CustomDocumentPicker.interface.ts +0 -13
- package/src/components/customDocumentPicker/CustomDocumentPicker.styles.ts +0 -33
- package/src/components/customDocumentPicker/CustomDocumentPicker.tsx +0 -100
- package/src/components/customDocumentPicker/index.ts +0 -1
- package/src/components/customDropdown/CustomDropdown.interface.ts +0 -15
- package/src/components/customDropdown/CustomDropdown.styles.tsx +0 -46
- package/src/components/customDropdown/CustomDropdown.test.tsx +0 -30
- package/src/components/customDropdown/CustomDropdown.tsx +0 -106
- package/src/components/customDropdown/index.ts +0 -1
- package/src/components/customHeader/CustomHeader.interface.tsx +0 -10
- package/src/components/customHeader/CustomHeader.styles.ts +0 -26
- package/src/components/customHeader/CustomHeader.test.tsx +0 -14
- package/src/components/customHeader/CustomHeader.tsx +0 -46
- package/src/components/customHeader/index.ts +0 -1
- package/src/components/customIcon/CustomIcon.interface.ts +0 -12
- package/src/components/customIcon/CustomIcon.styles.ts +0 -13
- package/src/components/customIcon/CustomIcon.test.tsx +0 -14
- package/src/components/customIcon/CustomIcon.tsx +0 -33
- package/src/components/customIcon/index.ts +0 -1
- package/src/components/customInputText/CustomInputText.interface.ts +0 -20
- package/src/components/customInputText/CustomInputText.styles.ts +0 -56
- package/src/components/customInputText/CustomInputText.test.tsx +0 -37
- package/src/components/customInputText/CustomInputText.tsx +0 -120
- package/src/components/customInputText/index.ts +0 -1
- package/src/components/customLoader/CustomLoader.inteface.ts +0 -3
- package/src/components/customLoader/CustomLoader.styles.ts +0 -16
- package/src/components/customLoader/CustomLoader.tsx +0 -16
- package/src/components/customLoader/index.ts +0 -1
- package/src/components/customSearchBar/CustomSearchBar.interface.ts +0 -21
- package/src/components/customSearchBar/CustomSearchBar.styles.ts +0 -23
- package/src/components/customSearchBar/CustomSearchBar.test.tsx +0 -27
- package/src/components/customSearchBar/CustomSearchBar.tsx +0 -87
- package/src/components/customSearchBar/index.ts +0 -1
- package/src/components/customSlideButton/custom-slide-button.interface.ts +0 -4
- package/src/components/customSlideButton/index.tsx +0 -78
- package/src/components/customSlideButton/styles.ts +0 -39
- package/src/components/customSwitchBtn/customSwitchBtn.interface.ts +0 -15
- package/src/components/customSwitchBtn/customSwitchBtn.styles.ts +0 -34
- package/src/components/customSwitchBtn/customSwitchBtn.tsx +0 -63
- package/src/components/customSwitchBtn/index.ts +0 -1
- package/src/components/customText/CustomText.tsx +0 -33
- package/src/components/customText/index.ts +0 -1
- package/src/components/customTooltip/CustomTooltip.interface.ts +0 -14
- package/src/components/customTooltip/CustomTooltip.styles.ts +0 -23
- package/src/components/customTooltip/CustomTooltip.test.tsx +0 -18
- package/src/components/customTooltip/CustomTooltip.tsx +0 -46
- package/src/components/customTooltip/index.ts +0 -1
- package/src/components/customTypography/CustomTypography.test.tsx +0 -12
- package/src/components/customTypography/CustomTypography.tsx +0 -27
- package/src/components/customTypography/index.ts +0 -1
- package/src/components/dateRangePicker/DateRangePicker.interface.ts +0 -19
- package/src/components/dateRangePicker/DateRangePicker.styles.ts +0 -19
- package/src/components/dateRangePicker/DateRangePicker.tsx +0 -108
- package/src/components/dateRangePicker/index.ts +0 -1
- package/src/components/dropDown/DropDown.tsx +0 -145
- package/src/components/dropDown/index.ts +0 -1
- package/src/components/feedback/feedback.style.ts +0 -48
- package/src/components/feedback/feedback.tsx +0 -61
- package/src/components/feedback/index.ts +0 -1
- package/src/components/fileUpload/FileUpload.styles.ts +0 -41
- package/src/components/fileUpload/FileUpload.test.tsx +0 -39
- package/src/components/fileUpload/FileUpload.tsx +0 -65
- package/src/components/fileUpload/index.ts +0 -1
- package/src/components/horizontalLine/Line.tsx +0 -26
- package/src/components/horizontalLine/index.ts +0 -1
- package/src/components/notificationBandge/NotificationBandge.interface.tsx +0 -3
- package/src/components/notificationBandge/NotificationBandge.styles.tsx +0 -26
- package/src/components/notificationBandge/NotificationBandge.tsx +0 -26
- package/src/components/notificationBandge/index.tsx +0 -1
- package/src/components/otp/index.tsx +0 -166
- package/src/components/otp/otp.interface.ts +0 -14
- package/src/components/otp/styles.ts +0 -29
- package/src/components/pdfView/PdfView.test.tsx +0 -12
- package/src/components/pdfView/PdfView.tsx +0 -8
- package/src/components/pdfView/index.ts +0 -1
- package/src/components/popup/PopUp.interface.ts +0 -9
- package/src/components/popup/PopUp.styles.ts +0 -52
- package/src/components/popup/PopUp.test.tsx +0 -35
- package/src/components/popup/PopUp.tsx +0 -60
- package/src/components/popup/index.ts +0 -1
- package/src/components/progressBar/ProgressBar.test.tsx +0 -78
- package/src/components/progressBar/ProgressBar.tsx +0 -120
- package/src/components/progressBar/index.ts +0 -1
- package/src/components/property360View/Property360View.test.tsx +0 -24
- package/src/components/property360View/Property360View.tsx +0 -19
- package/src/components/property360View/index.ts +0 -1
- package/src/components/rating/index.ts +0 -1
- package/src/components/rating/rating.styles.ts +0 -13
- package/src/components/rating/rating.test.tsx +0 -61
- package/src/components/rating/rating.tsx +0 -96
- package/src/components/scrollList/category.tsx +0 -110
- package/src/components/scrollList/index.ts +0 -1
- package/src/components/singleSelectionTag/TagSingleSelection.tsx +0 -105
- package/src/components/singleSelectionTag/index.ts +0 -1
- package/src/components/stepper/index.tsx +0 -105
- package/src/components/stepper/stepper.interface.ts +0 -24
- package/src/components/stepper/styles.ts +0 -74
- package/src/components/swipableList/SwipableList.interface.ts +0 -52
- package/src/components/swipableList/SwipableList.styles.ts +0 -30
- package/src/components/swipableList/SwipableList.test.tsx +0 -209
- package/src/components/swipableList/SwipableList.tsx +0 -137
- package/src/components/swipableList/index.ts +0 -1
- package/src/components/tabs/Tabs.interface.ts +0 -10
- package/src/components/tabs/Tabs.styles.ts +0 -24
- package/src/components/tabs/Tabs.tsx +0 -74
- package/src/components/tabs/index.ts +0 -1
- package/src/components/tags/Tags.interface.ts +0 -12
- package/src/components/tags/Tags.styles.ts +0 -36
- package/src/components/tags/Tags.test.tsx +0 -22
- package/src/components/tags/Tags.tsx +0 -76
- package/src/components/tags/index.ts +0 -1
- package/src/components/textInput/Textinput.tsx +0 -120
- package/src/components/textInput/index.ts +0 -1
- package/src/components/toast/Toast.interface.ts +0 -39
- package/src/components/toast/Toast.styles.ts +0 -41
- package/src/components/toast/Toast.test.tsx +0 -13
- package/src/components/toast/Toast.tsx +0 -115
- package/src/components/toast/ToastService.ts +0 -30
- package/src/components/toast/index.ts +0 -1
- package/src/components/toggleButton/ToggleButton.styles.ts +0 -40
- package/src/components/toggleButton/ToggleButton.test.tsx +0 -33
- package/src/components/toggleButton/ToggleButton.tsx +0 -78
- package/src/components/toggleButton/index.ts +0 -1
- package/src/components/topic/Topic.tsx +0 -85
- package/src/components/topic/index.ts +0 -1
- package/src/index.ts +0 -59
- package/src/theme/ThemeContext.tsx +0 -38
- package/src/theme/colors.ts +0 -186
- package/src/theme/fonts.ts +0 -72
- package/src/theme/themes.ts +0 -137
- package/src/theme/withThemeProvider.tsx +0 -14
- package/src/utils/appEnum.ts +0 -109
- package/src/utils/commonStyles.ts +0 -17
- package/src/utils/constants.ts +0 -20
- package/src/utils/deviceUtils.ts +0 -14
- package/src/utils/regex.ts +0 -1
- package/src/utils/stylehelper.ts +0 -13
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, {createContext, useContext, ReactNode} from 'react';
|
|
2
|
-
import {useSelector} from 'react-redux';
|
|
3
|
-
import theme from './themes';
|
|
4
|
-
|
|
5
|
-
interface ThemeContextType {
|
|
6
|
-
theme: Record<string, string>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const ThemeContext = createContext<ThemeContextType | undefined>(undefined);
|
|
10
|
-
|
|
11
|
-
interface ThemeProviderProps {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const ThemeProvider: React.FC<ThemeProviderProps> = ({children}) => {
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
-
const mode = useSelector((state: any) => state.theme.currentTheme);
|
|
18
|
-
// const mode = 'light'
|
|
19
|
-
// Filter the theme based on the mode (light or dark)
|
|
20
|
-
const filteredTheme = Object.keys(theme).reduce((acc, key) => {
|
|
21
|
-
acc[key] = theme[key][mode];
|
|
22
|
-
return acc;
|
|
23
|
-
}, {} as Record<string, string>);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<ThemeContext.Provider value={{theme: filteredTheme}}>
|
|
27
|
-
{children}
|
|
28
|
-
</ThemeContext.Provider>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const useTheme = (): ThemeContextType => {
|
|
33
|
-
const context = useContext(ThemeContext);
|
|
34
|
-
if (context === undefined) {
|
|
35
|
-
throw new Error('useTheme must be used within a ThemeProvider');
|
|
36
|
-
}
|
|
37
|
-
return context;
|
|
38
|
-
};
|
package/src/theme/colors.ts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
export const DHRE_COLORS_PRIMARY = {
|
|
2
|
-
//Black
|
|
3
|
-
DH_BLACK_25: '#C4C5C7',
|
|
4
|
-
DH_BLACK_50: '#888B8F',
|
|
5
|
-
DH_BLACK_75: '#4D5257',
|
|
6
|
-
DH_BLACK_100: '#101820',
|
|
7
|
-
|
|
8
|
-
//RED
|
|
9
|
-
DH_RED_25: '#EFCBC7',
|
|
10
|
-
DH_RED_50: '#E09890',
|
|
11
|
-
DH_RED_75: '#D3675B',
|
|
12
|
-
DH_RED_100: '#DA291C',
|
|
13
|
-
|
|
14
|
-
//GREY
|
|
15
|
-
DH_GREY_25: '#D7D9DB',
|
|
16
|
-
DH_GREY_50: '#AEB3B7',
|
|
17
|
-
DH_GREY_75: '#868D93',
|
|
18
|
-
DH_GREY_100: '#5B6770',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const DHRE_COLORS_SECONDARY = {
|
|
22
|
-
//LIGHT SKY
|
|
23
|
-
DH_LIGHT_SKY_25: '#EBF6F9',
|
|
24
|
-
DH_LIGHT_SKY_50: '#D7ECF3',
|
|
25
|
-
DH_LIGHT_SKY_75: '#C3E3EC',
|
|
26
|
-
DH_LIGHT_SKY_100: '#A4DBE8',
|
|
27
|
-
|
|
28
|
-
DH_BIEGE_25: '#F0EDEB',
|
|
29
|
-
DH_BIEGE_50: '#E1DCD6',
|
|
30
|
-
DH_BIEGE_75: '#D2CBC2',
|
|
31
|
-
DH_BIEGE_100: '#C5B9AC',
|
|
32
|
-
|
|
33
|
-
DH_GREEN_DARK_0: '#F5FFF8',
|
|
34
|
-
DH_GREEN_DARK_100: '#EEFDF2',
|
|
35
|
-
DH_GREEN_DARK_200: '#E2F9E8',
|
|
36
|
-
DH_GREEN_DARK_300: '#D0F2DA',
|
|
37
|
-
DH_GREEN_DARK_400: '#B7E9C6',
|
|
38
|
-
DH_GREEN_DARK_500: '#98DDAC',
|
|
39
|
-
DH_GREEN_DARK_600: '#72CD8D',
|
|
40
|
-
DH_GREEN_DARK_700: '#4BB86C',
|
|
41
|
-
DH_GREEN_DARK_800: '#28A04C',
|
|
42
|
-
DH_GREEN_DARK_900: '#0E8732',
|
|
43
|
-
DH_GREEN_DARK: '#2F5A3C',
|
|
44
|
-
|
|
45
|
-
DH_BLUE_DARK_0: '#F5FCFF',
|
|
46
|
-
DH_BLUE_DARK_100: '#EEF8FD',
|
|
47
|
-
DH_BLUE_DARK_200: '#E2F1F9',
|
|
48
|
-
DH_BLUE_DARK_300: '#D0E7F2',
|
|
49
|
-
DH_BLUE_DARK_400: '#B7D9E9',
|
|
50
|
-
DH_BLUE_DARK_500: '#98C7DD',
|
|
51
|
-
DH_BLUE_DARK_600: '#72B0CD',
|
|
52
|
-
DH_BLUE_DARK_700: '#4B95B8',
|
|
53
|
-
DH_BLUE_DARK_800: '#4B95B8',
|
|
54
|
-
DH_BLUE_DARK_900: '#0E6187',
|
|
55
|
-
DH_BLUE_DARK: '#2C576B',
|
|
56
|
-
|
|
57
|
-
DH_BLUE_0: '#F5F9FF',
|
|
58
|
-
DH_BLUE_100: '#E2EDFE',
|
|
59
|
-
DH_BLUE_200: '#C1D9FB',
|
|
60
|
-
DH_BLUE_300: '#9BC1F6',
|
|
61
|
-
DH_BLUE_400: '#73A6ED',
|
|
62
|
-
DH_BLUE_500: '#4C8AE0',
|
|
63
|
-
DH_BLUE_600: '#276CCD',
|
|
64
|
-
DH_BLUE_700: '#1B5CB8',
|
|
65
|
-
DH_BLUE_800: '#134EA0',
|
|
66
|
-
DH_BLUE_900: '#0E4087',
|
|
67
|
-
DH_BLUE: '#4686E0',
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const DHRE_COLORS_ALERT = {
|
|
71
|
-
DH_SUCCESS_GREEN_0: '#F5FFFA',
|
|
72
|
-
DH_SUCCESS_GREEN_100: '#DFFEEE',
|
|
73
|
-
DH_SUCCESS_GREEN_200: '#99FBC7',
|
|
74
|
-
DH_SUCCESS_GREEN_300: '#72F7B0',
|
|
75
|
-
DH_SUCCESS_GREEN_400: '#53F29D',
|
|
76
|
-
DH_SUCCESS_GREEN_500: '#3CEB8D',
|
|
77
|
-
DH_SUCCESS_GREEN_600: '#2BE180',
|
|
78
|
-
DH_SUCCESS_GREEN_700: '#1FD574',
|
|
79
|
-
DH_SUCCESS_GREEN_800: '#17C669',
|
|
80
|
-
DH_SUCCESS_GREEN_900: '#12B85F',
|
|
81
|
-
DH_SUCCESS_GREEN: '#10CF68',
|
|
82
|
-
DH_SUCCESS_GREEN_ACCENT: '#00B578',
|
|
83
|
-
|
|
84
|
-
DH_INFO_BLUE_0: '#F5F9FF',
|
|
85
|
-
DH_INFO_BLUE_100: '#EDF3FD',
|
|
86
|
-
DH_INFO_BLUE_200: '#E0EAF9',
|
|
87
|
-
DH_INFO_BLUE_300: '#CDDCF2',
|
|
88
|
-
DH_INFO_BLUE_400: '#B3C8E9',
|
|
89
|
-
DH_INFO_BLUE_500: '#91AFDD',
|
|
90
|
-
DH_INFO_BLUE_600: '#6991CD',
|
|
91
|
-
DH_INFO_BLUE_700: '#3F6FB8',
|
|
92
|
-
DH_INFO_BLUE_800: '#1B50A0',
|
|
93
|
-
DH_INFO_BLUE_900: '#003687',
|
|
94
|
-
DH_INFO_BLUE: '#2B5FAC',
|
|
95
|
-
|
|
96
|
-
DH_ALERT_ORANGE_0: '#FEF6F4',
|
|
97
|
-
DH_ALERT_ORANGE_100: '#FDEDE8',
|
|
98
|
-
DH_ALERT_ORANGE_200: '#F6C6B6',
|
|
99
|
-
DH_ALERT_ORANGE_300: '#F3B39D',
|
|
100
|
-
DH_ALERT_ORANGE_400: '#EF8F6E',
|
|
101
|
-
DH_ALERT_ORANGE_500: '#ED6C43',
|
|
102
|
-
DH_ALERT_ORANGE_600: '#BC3D1D',
|
|
103
|
-
DH_ALERT_ORANGE_700: '#8D2E13',
|
|
104
|
-
DH_ALERT_ORANGE_800: '#5E1E0A',
|
|
105
|
-
DH_ALERT_ORANGE_900: '#461606',
|
|
106
|
-
DH_ALERT_ORANGE: '#FF3A00',
|
|
107
|
-
|
|
108
|
-
DH_WARNING_YELLOW_0: '#FFFBF5',
|
|
109
|
-
DH_WARNING_YELLOW_100: '#FEEFD4',
|
|
110
|
-
DH_WARNING_YELLOW_200: '#FBE1B2',
|
|
111
|
-
DH_WARNING_YELLOW_300: '#F5D18D',
|
|
112
|
-
DH_WARNING_YELLOW_400: '#ECBC62',
|
|
113
|
-
DH_WARNING_YELLOW_500: '#DDA338',
|
|
114
|
-
DH_WARNING_YELLOW_600: '#CD9327',
|
|
115
|
-
DH_WARNING_YELLOW_700: '#B8811B',
|
|
116
|
-
DH_WARNING_YELLOW_800: '#A06F13',
|
|
117
|
-
DH_WARNING_YELLOW_900: '#875D0E',
|
|
118
|
-
DH_WARNING_YELLOW: '#F4AE28',
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export const DHRE_COLORS_BG = {
|
|
122
|
-
DH_LINE_GREY_0: '#FAFAFA',
|
|
123
|
-
DH_LINE_GREY_100: '#F6F6F6',
|
|
124
|
-
DH_LINE_GREY_200: '#F1F1F1',
|
|
125
|
-
DH_LINE_GREY_300: '#EDEDED',
|
|
126
|
-
DH_LINE_GREY_400: '#EDEDED',
|
|
127
|
-
DH_LINE_GREY_500: '#CCCACA',
|
|
128
|
-
DH_LINE_GREY_600: '#B4B2B2',
|
|
129
|
-
DH_LINE_GREY_700: '#959494',
|
|
130
|
-
DH_LINE_GREY_800: '#727171',
|
|
131
|
-
DH_LINE_GREY_900: '#4D4C4C',
|
|
132
|
-
DH_GREY1: '#E8E8E8',
|
|
133
|
-
|
|
134
|
-
DH_BG_GREY_0: '#F5F7FF',
|
|
135
|
-
DH_BG_GREY_100: '#F2F4FD',
|
|
136
|
-
DH_BG_GREY_200: '#EDEFF9',
|
|
137
|
-
DH_BG_GREY_300: '#E5E7F2',
|
|
138
|
-
DH_BG_GREY_400: '#D9DCE9',
|
|
139
|
-
DH_BG_GREY_500: '#CACDDD',
|
|
140
|
-
DH_BG_GREY_600: '#B7BBCD',
|
|
141
|
-
DH_BG_GREY_700: '#A0A4B8',
|
|
142
|
-
DH_BG_GREY_800: '#878BA0',
|
|
143
|
-
DH_BG_GREY_900: '#6F7387',
|
|
144
|
-
DH_BG_GREY: '#F2F3F8',
|
|
145
|
-
};
|
|
146
|
-
export const DHRE_DEFAULT = {
|
|
147
|
-
DH_LINE_GREY_0: '#FAFAFA',
|
|
148
|
-
DH_LINE_GREY_100: '#F6F6F6',
|
|
149
|
-
DH_LINE_GREY_200: '#F1F1F1',
|
|
150
|
-
DH_LINE_GREY_300: '#EDEDED',
|
|
151
|
-
DH_LINE_GREY_400: '#EDEDED',
|
|
152
|
-
DH_LINE_GREY_500: '#CCCACA',
|
|
153
|
-
DH_LINE_GREY_600: '#B4B2B2',
|
|
154
|
-
DH_LINE_GREY_700: '#959494',
|
|
155
|
-
DH_LINE_GREY_800: '#727171',
|
|
156
|
-
DH_NETURAL_GRAY_800: '#373737',
|
|
157
|
-
DH_BLUE: '#007AFF',
|
|
158
|
-
|
|
159
|
-
DH_BG_GREY_0: '#F5F7FF',
|
|
160
|
-
DH_BG_GREY_100: '#F2F4FD',
|
|
161
|
-
DH_BG_GREY_200: '#EDEFF9',
|
|
162
|
-
DH_BG_GREY_300: '#E5E7F2',
|
|
163
|
-
DH_BG_GREY_400: '#D9DCE9',
|
|
164
|
-
DH_BG_GREY_500: '#CACDDD',
|
|
165
|
-
DH_BG_GREY_600: '#B7BBCD',
|
|
166
|
-
DH_BG_GREY_700: '#A0A4B8',
|
|
167
|
-
DH_BG_GREY_800: '#878BA0',
|
|
168
|
-
DH_BG_GREY_900: '#6F7387',
|
|
169
|
-
DH_BG_GREY: '#F2F3F8',
|
|
170
|
-
DH_SUCESS: '#2DE3A6',
|
|
171
|
-
DH_ERROR: '#EB382D',
|
|
172
|
-
DH_INFO: '#339ECF',
|
|
173
|
-
DH_SEMENTIC_ERROR: '#EB0542',
|
|
174
|
-
DH_SEMENTIC_WARNING: '#EB8425',
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
export const DHRE_COLORS_TEXT = {
|
|
178
|
-
//Black
|
|
179
|
-
DH_BLACK: '#000000',
|
|
180
|
-
DH_WHITE: '#FFFFFF',
|
|
181
|
-
DH_TEXTDARK: '#3A3B43',
|
|
182
|
-
DH_TEXTLIGHT: '#6C6C6C',
|
|
183
|
-
DH_TEXTLIGHTEST: '#A7A7A7',
|
|
184
|
-
DH_TEXTDISABLED: '#CCCCCC',
|
|
185
|
-
DH_LIGHTGREEN: '#00B578',
|
|
186
|
-
};
|
package/src/theme/fonts.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {TextStyle} from 'react-native';
|
|
2
|
-
import {moderateScale, verticalScale} from '../utils/stylehelper';
|
|
3
|
-
import {FontStyle} from '../utils/appEnum';
|
|
4
|
-
|
|
5
|
-
interface FontStyles {
|
|
6
|
-
[key: string]: TextStyle;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const createFontStyle = (
|
|
10
|
-
fontFamily: string,
|
|
11
|
-
fontSize: number,
|
|
12
|
-
lineHeight: number,
|
|
13
|
-
): TextStyle => ({
|
|
14
|
-
fontSize: moderateScale(fontSize),
|
|
15
|
-
lineHeight: verticalScale(lineHeight),
|
|
16
|
-
fontFamily,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const meraasActivFontfamily: TextStyle = {
|
|
20
|
-
fontFamily: 'MeraasAktiv_Rg',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const serifActivFontfamily: TextStyle = {
|
|
24
|
-
fontFamily: 'PT Serif',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const FONT_STYLES: FontStyles = {
|
|
28
|
-
[FontStyle.H1_BOLD]: createFontStyle('MeraasAktiv_Bd', 40, 56),
|
|
29
|
-
[FontStyle.H2_BOLD]: createFontStyle('MeraasAktiv_Bd', 36, 50.4),
|
|
30
|
-
[FontStyle.H3_BOLD]: createFontStyle('MeraasAktiv_Bd', 32, 44.8),
|
|
31
|
-
[FontStyle.H4_BOLD]: createFontStyle('MeraasAktiv_Bd', 26, 36.4),
|
|
32
|
-
[FontStyle.H5_BOLD]: createFontStyle('MeraasAktiv_Bd', 24, 33.6),
|
|
33
|
-
[FontStyle.H6_BOLD]: createFontStyle('MeraasAktiv_Bd', 22, 30.8),
|
|
34
|
-
[FontStyle.H7_BOLD]: createFontStyle('MeraasAktiv_Bd', 20, 28),
|
|
35
|
-
[FontStyle.H8_BOLD]: createFontStyle('MeraasAktiv_Bd', 18, 25.2),
|
|
36
|
-
|
|
37
|
-
[FontStyle.H1_REGULAR]: createFontStyle('MeraasAktiv_Rg', 40, 56),
|
|
38
|
-
[FontStyle.H2_REGULAR]: createFontStyle('MeraasAktiv_Rg', 36, 50.4),
|
|
39
|
-
[FontStyle.H3_REGULAR]: createFontStyle('MeraasAktiv_Rg', 32, 44.8),
|
|
40
|
-
[FontStyle.H4_REGULAR]: createFontStyle('MeraasAktiv_Rg', 26, 36.4),
|
|
41
|
-
[FontStyle.H5_REGULAR]: createFontStyle('MeraasAktiv_Rg', 24, 33.6),
|
|
42
|
-
[FontStyle.H6_REGULAR]: createFontStyle('MeraasAktiv_Rg', 22, 30.8),
|
|
43
|
-
[FontStyle.H7_REGULAR]: createFontStyle('MeraasAktiv_Rg', 20, 28),
|
|
44
|
-
[FontStyle.H8_REGULAR]: createFontStyle('MeraasAktiv_Rg', 18, 25.2),
|
|
45
|
-
|
|
46
|
-
[FontStyle.H1_LIGHT]: createFontStyle('MeraasAktiv_Lt', 40, 56),
|
|
47
|
-
[FontStyle.H2_LIGHT]: createFontStyle('MeraasAktiv_Lt', 36, 50.4),
|
|
48
|
-
[FontStyle.H3_LIGHT]: createFontStyle('MeraasAktiv_Lt', 32, 44.8),
|
|
49
|
-
[FontStyle.H4_LIGHT]: createFontStyle('MeraasAktiv_Lt', 26, 36.4),
|
|
50
|
-
[FontStyle.H5_LIGHT]: createFontStyle('MeraasAktiv_Lt', 24, 33.6),
|
|
51
|
-
[FontStyle.H6_LIGHT]: createFontStyle('MeraasAktiv_Lt', 22, 30.8),
|
|
52
|
-
[FontStyle.H7_LIGHT]: createFontStyle('MeraasAktiv_Lt', 20, 28),
|
|
53
|
-
[FontStyle.H8_LIGHT]: createFontStyle('MeraasAktiv_Lt', 18, 25.2),
|
|
54
|
-
|
|
55
|
-
[FontStyle.B1_BOLD]: createFontStyle('MeraasAktiv_Bd', 20, 28),
|
|
56
|
-
[FontStyle.B2_BOLD]: createFontStyle('MeraasAktiv_Bd', 18, 25.2),
|
|
57
|
-
[FontStyle.B3_BOLD]: createFontStyle('MeraasAktiv_Bd', 16, 22.4),
|
|
58
|
-
[FontStyle.B4_BOLD]: createFontStyle('MeraasAktiv_Bd', 14, 22.4),
|
|
59
|
-
|
|
60
|
-
[FontStyle.B1_REGULAR]: createFontStyle('MeraasAktiv_Rg', 20, 28),
|
|
61
|
-
[FontStyle.B2_REGULAR]: createFontStyle('MeraasAktiv_Rg', 18, 25.2),
|
|
62
|
-
[FontStyle.B3_REGULAR]: createFontStyle('MeraasAktiv_Rg', 16, 22.4),
|
|
63
|
-
[FontStyle.B4_REGULAR]: createFontStyle('MeraasAktiv_Rg', 14, 22.4),
|
|
64
|
-
|
|
65
|
-
[FontStyle.L1_BOLD]: createFontStyle('MeraasAktiv_Bd', 14, 19.6),
|
|
66
|
-
[FontStyle.L2_BOLD]: createFontStyle('MeraasAktiv_Bd', 12, 16.8),
|
|
67
|
-
[FontStyle.L3_BOLD]: createFontStyle('MeraasAktiv_Bd', 10, 14),
|
|
68
|
-
|
|
69
|
-
[FontStyle.L1_REGULAR]: createFontStyle('MeraasAktiv_Rg', 14, 19.6),
|
|
70
|
-
[FontStyle.L2_REGULAR]: createFontStyle('MeraasAktiv_Rg', 12, 16.8),
|
|
71
|
-
[FontStyle.L3_REGULAR]: createFontStyle('MeraasAktiv_Rg', 10, 14),
|
|
72
|
-
};
|
package/src/theme/themes.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import {Theme} from '../utils/appEnum';
|
|
2
|
-
|
|
3
|
-
const theme = {
|
|
4
|
-
[Theme.SURFACE_PRIMARY]: {
|
|
5
|
-
light: '#FFFFFF',
|
|
6
|
-
dark: '#000000',
|
|
7
|
-
},
|
|
8
|
-
[Theme.SURFACE_SECONDARY]: {
|
|
9
|
-
light: '#F5F5F5',
|
|
10
|
-
dark: '#212121',
|
|
11
|
-
},
|
|
12
|
-
[Theme.SURFACE_TERTIARY]: {
|
|
13
|
-
light: '#0000001A',
|
|
14
|
-
dark: '#373737',
|
|
15
|
-
},
|
|
16
|
-
[Theme.SURFACE_STATIC]: {
|
|
17
|
-
light: '#FFFFFF',
|
|
18
|
-
dark: '#FFFFFF',
|
|
19
|
-
},
|
|
20
|
-
[Theme.SURFACE_BRAND_STATIC]: {
|
|
21
|
-
light: '#D92D27',
|
|
22
|
-
dark: '#D92D27',
|
|
23
|
-
},
|
|
24
|
-
[Theme.SURFACE_BRAND_TRANSPARENT_STATIC]: {
|
|
25
|
-
light: '#D92D3E',
|
|
26
|
-
dark: '#D92D3E',
|
|
27
|
-
},
|
|
28
|
-
[Theme.SURFACE_DISABLE]: {
|
|
29
|
-
light: '#E1E1E1',
|
|
30
|
-
dark: '#A7A7A7',
|
|
31
|
-
},
|
|
32
|
-
[Theme.SURFACE_INVERTED]: {
|
|
33
|
-
light: '#000000',
|
|
34
|
-
dark: '#FFFFFF',
|
|
35
|
-
},
|
|
36
|
-
[Theme.SURFACE_INVERTED_TRANSPARENT]: {
|
|
37
|
-
light: '#686868',
|
|
38
|
-
dark: '#FFFFFF',
|
|
39
|
-
},
|
|
40
|
-
[Theme.SURFACE_DROP_SHADOW]: {
|
|
41
|
-
light: '#CECECE',
|
|
42
|
-
dark: '#373737',
|
|
43
|
-
},
|
|
44
|
-
[Theme.SURFACE_BLUR]: {
|
|
45
|
-
light: '#000000B2',
|
|
46
|
-
dark: '#FFFFFFB2',
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
[Theme.CONTENT_PRIMARY]: {
|
|
50
|
-
light: '#000000',
|
|
51
|
-
dark: '#FFFFFF',
|
|
52
|
-
},
|
|
53
|
-
[Theme.CONTENT_SECONDRY]: {
|
|
54
|
-
light: '#686868',
|
|
55
|
-
dark: '#A7A7A7',
|
|
56
|
-
},
|
|
57
|
-
[Theme.CONTENT_DISABLE]: {
|
|
58
|
-
light: '#A7A7A7',
|
|
59
|
-
dark: '#686868',
|
|
60
|
-
},
|
|
61
|
-
[Theme.CONTENT_INVERTED]: {
|
|
62
|
-
light: '#FFFFFF',
|
|
63
|
-
dark: '#000000',
|
|
64
|
-
},
|
|
65
|
-
[Theme.CONTENT_STATIC]: {
|
|
66
|
-
light: '#FFFFFF',
|
|
67
|
-
dark: '#FFFFFF',
|
|
68
|
-
},
|
|
69
|
-
[Theme.CONTENT_PRIMARY_STATIC]: {
|
|
70
|
-
light: '#0000001A',
|
|
71
|
-
dark: '#686868',
|
|
72
|
-
},
|
|
73
|
-
[Theme.CONTENT_SECONDRY_STATIC]: {
|
|
74
|
-
light: '#CECECE',
|
|
75
|
-
dark: '#CECECE',
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
[Theme.BORDER_PRIMARY]: {
|
|
79
|
-
light: '#686868',
|
|
80
|
-
dark: '#404040',
|
|
81
|
-
},
|
|
82
|
-
[Theme.BORDER_SECONDRY]: {
|
|
83
|
-
light: '#A7A7A7',
|
|
84
|
-
dark: '#686868',
|
|
85
|
-
},
|
|
86
|
-
[Theme.BORDER_DISABLE]: {
|
|
87
|
-
light: '#CECECE',
|
|
88
|
-
dark: '#4F4F4F',
|
|
89
|
-
},
|
|
90
|
-
[Theme.BORDER_INVERTED]: {
|
|
91
|
-
light: '#000000',
|
|
92
|
-
dark: '#FFFFFF',
|
|
93
|
-
},
|
|
94
|
-
[Theme.BORDER_BRAND_STATIC]: {
|
|
95
|
-
light: '#D92D27',
|
|
96
|
-
dark: '#D92D27',
|
|
97
|
-
},
|
|
98
|
-
[Theme.BORDER_BRAND_TRANSPARENT_STATIC]: {
|
|
99
|
-
light: '#D92D3E',
|
|
100
|
-
dark: '#D92D3E',
|
|
101
|
-
},
|
|
102
|
-
[Theme.BORDER_STATIC]: {
|
|
103
|
-
light: '#FFFFFF',
|
|
104
|
-
dark: '#FFFFFF',
|
|
105
|
-
},
|
|
106
|
-
[Theme.BORDER_TEXT_FIELD]: {
|
|
107
|
-
light: '#0000001A',
|
|
108
|
-
dark: '#404040',
|
|
109
|
-
},
|
|
110
|
-
[Theme.BORDER_SEPRATOR]: {
|
|
111
|
-
light: '#282828',
|
|
112
|
-
dark: '#FFFFFF',
|
|
113
|
-
},
|
|
114
|
-
[Theme.BORDER_SEPERATOR_HEADER]: {
|
|
115
|
-
light: '#E1E1E1',
|
|
116
|
-
dark: '#404040',
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
[Theme.WARNING]: {
|
|
120
|
-
light: '#B65E01',
|
|
121
|
-
dark: '#EB8425',
|
|
122
|
-
},
|
|
123
|
-
[Theme.SUCCESS]: {
|
|
124
|
-
light: '#008256',
|
|
125
|
-
dark: '#00B578',
|
|
126
|
-
},
|
|
127
|
-
[Theme.INFO]: {
|
|
128
|
-
light: '#0569C2',
|
|
129
|
-
dark: '#339ECF',
|
|
130
|
-
},
|
|
131
|
-
[Theme.ERROR]: {
|
|
132
|
-
light: '#EB0542',
|
|
133
|
-
dark: '#EB0542',
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export default theme;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {ThemeProvider} from './ThemeContext';
|
|
3
|
-
|
|
4
|
-
// Higher-Order Component to wrap a component with the ThemeProvider
|
|
5
|
-
export const withThemeProvider = <P extends object>(
|
|
6
|
-
Component: React.ComponentType<P>,
|
|
7
|
-
) => {
|
|
8
|
-
// eslint-disable-next-line react/display-name
|
|
9
|
-
return (props: P) => (
|
|
10
|
-
<ThemeProvider>
|
|
11
|
-
<Component {...props} />
|
|
12
|
-
</ThemeProvider>
|
|
13
|
-
);
|
|
14
|
-
};
|
package/src/utils/appEnum.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export enum ShapeType {
|
|
2
|
-
LINE = 'line',
|
|
3
|
-
CIRCLE = 'circle',
|
|
4
|
-
}
|
|
5
|
-
export enum ToggleButtonType {
|
|
6
|
-
SMALL = 'small',
|
|
7
|
-
LARGE = 'large',
|
|
8
|
-
}
|
|
9
|
-
export enum TextDirectType {
|
|
10
|
-
left = 'left',
|
|
11
|
-
right = 'right',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum ToggleTextType {
|
|
15
|
-
ON = 'ON',
|
|
16
|
-
OFF = 'OFF',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export enum FontStyle {
|
|
20
|
-
// Bold heading styles
|
|
21
|
-
H1_BOLD = 'H1_BOLD',
|
|
22
|
-
H2_BOLD = 'H2_BOLD',
|
|
23
|
-
H3_BOLD = 'H3_BOLD',
|
|
24
|
-
H4_BOLD = 'H4_BOLD',
|
|
25
|
-
H5_BOLD = 'H5_BOLD',
|
|
26
|
-
H6_BOLD = 'H6_BOLD',
|
|
27
|
-
H7_BOLD = 'H7_BOLD',
|
|
28
|
-
H8_BOLD = 'H8_BOLD',
|
|
29
|
-
|
|
30
|
-
// Regular heading styles
|
|
31
|
-
H1_REGULAR = 'H1_REGULAR',
|
|
32
|
-
H2_REGULAR = 'H2_REGULAR',
|
|
33
|
-
H3_REGULAR = 'H3_REGULAR',
|
|
34
|
-
H4_REGULAR = 'H4_REGULAR',
|
|
35
|
-
H5_REGULAR = 'H5_REGULAR',
|
|
36
|
-
H6_REGULAR = 'H6_REGULAR',
|
|
37
|
-
H7_REGULAR = 'H7_REGULAR',
|
|
38
|
-
H8_REGULAR = 'H8_REGULAR',
|
|
39
|
-
|
|
40
|
-
// Light heading styles
|
|
41
|
-
H1_LIGHT = 'H1_LIGHT',
|
|
42
|
-
H2_LIGHT = 'H2_LIGHT',
|
|
43
|
-
H3_LIGHT = 'H3_LIGHT',
|
|
44
|
-
H4_LIGHT = 'H4_LIGHT',
|
|
45
|
-
H5_LIGHT = 'H5_LIGHT',
|
|
46
|
-
H6_LIGHT = 'H6_LIGHT',
|
|
47
|
-
H7_LIGHT = 'H7_LIGHT',
|
|
48
|
-
H8_LIGHT = 'H8_LIGHT',
|
|
49
|
-
|
|
50
|
-
// Bold body styles
|
|
51
|
-
B1_BOLD = 'B1_BOLD',
|
|
52
|
-
B2_BOLD = 'B2_BOLD',
|
|
53
|
-
B3_BOLD = 'B3_BOLD',
|
|
54
|
-
B4_BOLD = 'B4_BOLD',
|
|
55
|
-
|
|
56
|
-
// Regular body styles
|
|
57
|
-
B1_REGULAR = 'B1_REGULAR',
|
|
58
|
-
B2_REGULAR = 'B2_REGULAR',
|
|
59
|
-
B3_REGULAR = 'B3_REGULAR',
|
|
60
|
-
B4_REGULAR = 'B4_REGULAR',
|
|
61
|
-
|
|
62
|
-
// Bold label styles
|
|
63
|
-
L1_BOLD = 'L1_BOLD',
|
|
64
|
-
L2_BOLD = 'L2_BOLD',
|
|
65
|
-
L3_BOLD = 'L3_BOLD',
|
|
66
|
-
|
|
67
|
-
// Regular label styles
|
|
68
|
-
L1_REGULAR = 'L1_REGULAR',
|
|
69
|
-
L2_REGULAR = 'L2_REGULAR',
|
|
70
|
-
L3_REGULAR = 'L3_REGULAR',
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ThemeKeys.ts
|
|
74
|
-
export enum Theme {
|
|
75
|
-
SURFACE_PRIMARY = 'SURFACE_PRIMARY',
|
|
76
|
-
SURFACE_SECONDARY = 'SURFACE_SECONDARY',
|
|
77
|
-
SURFACE_TERTIARY = 'SURFACE_TERTIARY',
|
|
78
|
-
SURFACE_STATIC = 'SURFACE_STATIC',
|
|
79
|
-
SURFACE_BRAND_STATIC = 'SURFACE_BRAND_STATIC',
|
|
80
|
-
SURFACE_BRAND_TRANSPARENT_STATIC = 'SURFACE_BRAND_TRANSPARENT_STATIC',
|
|
81
|
-
SURFACE_DISABLE = 'SURFACE_DISABLE',
|
|
82
|
-
SURFACE_INVERTED = 'SURFACE_INVERTED',
|
|
83
|
-
SURFACE_INVERTED_TRANSPARENT = 'SURFACE_INVERTED_TRANSPARENT',
|
|
84
|
-
SURFACE_DROP_SHADOW = 'SURFACE_DROP_SHADOW',
|
|
85
|
-
SURFACE_BLUR = 'SURFACE_BLUR',
|
|
86
|
-
|
|
87
|
-
CONTENT_PRIMARY = 'CONTENT_PRIMARY',
|
|
88
|
-
CONTENT_SECONDRY = 'CONTENT_SECONDRY',
|
|
89
|
-
CONTENT_DISABLE = 'CONTENT_DISABLE',
|
|
90
|
-
CONTENT_INVERTED = 'CONTENT_INVERTED',
|
|
91
|
-
CONTENT_STATIC = 'CONTENT_STATIC',
|
|
92
|
-
CONTENT_PRIMARY_STATIC = 'CONTENT_PRIMARY_STATIC',
|
|
93
|
-
CONTENT_SECONDRY_STATIC = 'CONTENT_SECONDRY_STATIC',
|
|
94
|
-
|
|
95
|
-
BORDER_PRIMARY = 'BORDER_PRIMARY',
|
|
96
|
-
BORDER_SECONDRY = 'BORDER_SECONDRY',
|
|
97
|
-
BORDER_DISABLE = 'BORDER_DISABLE',
|
|
98
|
-
BORDER_INVERTED = 'BORDER_INVERTED',
|
|
99
|
-
BORDER_BRAND_STATIC = 'BORDER_BRAND_STATIC',
|
|
100
|
-
BORDER_BRAND_TRANSPARENT_STATIC = 'BORDER_BRAND_TRANSPARENT_STATIC',
|
|
101
|
-
BORDER_TEXT_FIELD = 'BORDER_TEXT_FIELD',
|
|
102
|
-
BORDER_SEPERATOR_HEADER = 'BORDER_SEPERATOR_HEADER',
|
|
103
|
-
BORDER_STATIC = 'BORDER_STATIC',
|
|
104
|
-
BORDER_SEPRATOR = 'BORDER_SEPRATOR',
|
|
105
|
-
WARNING = 'WARNING',
|
|
106
|
-
SUCCESS = 'SUCCESS',
|
|
107
|
-
INFO = 'INFO',
|
|
108
|
-
ERROR = 'ERROR',
|
|
109
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {StyleSheet} from 'react-native';
|
|
2
|
-
|
|
3
|
-
const commonStyles = StyleSheet.create({
|
|
4
|
-
flexOne: {
|
|
5
|
-
flex: 1,
|
|
6
|
-
},
|
|
7
|
-
centeredContainer: {
|
|
8
|
-
justifyContent: 'center',
|
|
9
|
-
alignItems: 'center',
|
|
10
|
-
},
|
|
11
|
-
centerRow: {
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
justifyContent: 'center',
|
|
14
|
-
flexDirection: 'row',
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
export default commonStyles;
|
package/src/utils/constants.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const BUTTON_TYPES = {
|
|
2
|
-
PRIMARY: 'primary',
|
|
3
|
-
SECONDARY: 'secondary',
|
|
4
|
-
DISABLE: 'disable',
|
|
5
|
-
TERTIARY: 'tertiary',
|
|
6
|
-
FUNCTION_PRIMARY: 'functionPrimary',
|
|
7
|
-
FUNCTION_SECONDARY: 'functionSecondary',
|
|
8
|
-
FUNCTION_NOTICE: 'functionNotice',
|
|
9
|
-
PRIMARY_TEXT: 'primaryText',
|
|
10
|
-
SECONDARY_TEXT: 'secondaryText',
|
|
11
|
-
DISABLE_TEXT: 'disableText',
|
|
12
|
-
TERTIARY_TEXT: 'tertiaryText',
|
|
13
|
-
FUNCTION_PRIMARY_TEXT: 'functionPrimaryText',
|
|
14
|
-
FUNCTION_SECONDARY_TEXT: 'functionSecondaryText',
|
|
15
|
-
FUNCTION_NOTICE_TEXT: 'functionNoticeText',
|
|
16
|
-
TEXT: 'Text',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const DEFAULT_COUNTRY_CODE = 'AE';
|
|
20
|
-
export const DEFAULT_CALLING_CODE = '+971';
|
package/src/utils/deviceUtils.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {Platform} from 'react-native';
|
|
2
|
-
import Clipboard from '@react-native-clipboard/clipboard';
|
|
3
|
-
|
|
4
|
-
export enum OS {
|
|
5
|
-
ios = 'ios',
|
|
6
|
-
android = 'android',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const isIos = () => Platform.OS === OS.ios;
|
|
10
|
-
export const isAndroid = () => Platform.OS === OS.android;
|
|
11
|
-
|
|
12
|
-
export const copyToClipboard = (textToCopy: string) => {
|
|
13
|
-
Clipboard.setString(textToCopy);
|
|
14
|
-
};
|
package/src/utils/regex.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const stringLengthRegex = /(\d{6})/;
|
package/src/utils/stylehelper.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {Dimensions} from 'react-native';
|
|
2
|
-
|
|
3
|
-
const {width, height} = Dimensions.get('window');
|
|
4
|
-
|
|
5
|
-
const guidelineBaseWidth = 375;
|
|
6
|
-
const guidelineBaseHeight = 812;
|
|
7
|
-
|
|
8
|
-
const horizontalScale = (size: number) => (width / guidelineBaseWidth) * size;
|
|
9
|
-
const verticalScale = (size: number) => (height / guidelineBaseHeight) * size;
|
|
10
|
-
const moderateScale = (size: number, factor = 0.5) =>
|
|
11
|
-
size + (horizontalScale(size) - size) * factor;
|
|
12
|
-
|
|
13
|
-
export {horizontalScale, verticalScale, moderateScale, width, height};
|