@adiraku/react-native-ui 1.2.9-canary-7 → 2.0.0-canary-2
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/lib/commonjs/components/ActionList/ActionList.component.js +8 -7
- package/lib/commonjs/components/ActionList/ActionList.component.js.map +1 -1
- package/lib/commonjs/components/ActionList/ActionList.styles.js +13 -10
- package/lib/commonjs/components/ActionList/ActionList.styles.js.map +1 -1
- package/lib/commonjs/components/Appbar/Appbar.component.js +5 -4
- package/lib/commonjs/components/Appbar/Appbar.component.js.map +1 -1
- package/lib/commonjs/components/Appbar/Appbar.style.js +15 -12
- package/lib/commonjs/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.component.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.component.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.style.js +10 -8
- package/lib/commonjs/components/BottomSheet/BottomSheet.style.js.map +1 -1
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +16 -16
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.style.js +35 -25
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.component.js +8 -4
- package/lib/commonjs/components/Checkbox/Checkbox.component.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.style.js +16 -17
- package/lib/commonjs/components/Checkbox/Checkbox.style.js.map +1 -1
- package/lib/commonjs/components/Pagination/pagination.component.js +39 -0
- package/lib/commonjs/components/Pagination/pagination.component.js.map +1 -0
- package/lib/commonjs/components/Pagination/pagination.style.js +26 -0
- package/lib/commonjs/components/Pagination/pagination.style.js.map +1 -0
- package/lib/commonjs/components/Pagination/pagination.type.js +2 -0
- package/lib/commonjs/components/Pagination/pagination.type.js.map +1 -0
- package/lib/commonjs/components/RadioButton/RadioButton.component.js +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.component.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.style.js +15 -12
- package/lib/commonjs/components/RadioButton/RadioButton.style.js.map +1 -1
- package/lib/commonjs/components/RadioInput/RadioInput.component.js +17 -19
- package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/commonjs/components/RadioInput/RadioInput.style.js +35 -25
- package/lib/commonjs/components/RadioInput/RadioInput.style.js.map +1 -1
- package/lib/commonjs/components/StickyBar/StickyBar.component.js +67 -0
- package/lib/commonjs/components/StickyBar/StickyBar.component.js.map +1 -0
- package/lib/commonjs/components/StickyBar/StickyBar.style.js +64 -0
- package/lib/commonjs/components/StickyBar/StickyBar.style.js.map +1 -0
- package/lib/commonjs/components/StickyBar/StickyBar.type.js +6 -0
- package/lib/commonjs/components/StickyBar/StickyBar.type.js.map +1 -0
- package/lib/commonjs/components/TextInput/TextInput.component.js +9 -3
- package/lib/commonjs/components/TextInput/TextInput.component.js.map +1 -1
- package/lib/commonjs/components/TextInput/TextInput.style.js +30 -25
- package/lib/commonjs/components/TextInput/TextInput.style.js.map +1 -1
- package/lib/commonjs/components/View/View.component.js +42 -0
- package/lib/commonjs/components/View/View.component.js.map +1 -0
- package/lib/commonjs/components/View/View.type.js +6 -0
- package/lib/commonjs/components/View/View.type.js.map +1 -0
- package/lib/commonjs/components/button/button.component.js +7 -4
- package/lib/commonjs/components/button/button.component.js.map +1 -1
- package/lib/commonjs/components/button/button.styles.js +21 -17
- package/lib/commonjs/components/button/button.styles.js.map +1 -1
- package/lib/commonjs/components/calendars/calendars.component.js +37 -37
- package/lib/commonjs/components/calendars/calendars.component.js.map +1 -1
- package/lib/commonjs/components/calendars/calendars.service.js.map +1 -1
- package/lib/commonjs/components/calendars/calendars.style.js +73 -51
- package/lib/commonjs/components/calendars/calendars.style.js.map +1 -1
- package/lib/commonjs/components/index.js +21 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/typography/typography.component.js +12 -2
- package/lib/commonjs/components/typography/typography.component.js.map +1 -1
- package/lib/commonjs/components/typography/typography.style.js +21 -351
- package/lib/commonjs/components/typography/typography.style.js.map +1 -1
- package/lib/commonjs/config/index.js +50 -0
- package/lib/commonjs/config/index.js.map +1 -0
- package/lib/commonjs/config/makeStyles.js +37 -0
- package/lib/commonjs/config/makeStyles.js.map +1 -0
- package/lib/commonjs/config/theme.default.js +422 -0
- package/lib/commonjs/config/theme.default.js.map +1 -0
- package/lib/commonjs/config/theme.provider.js +48 -0
- package/lib/commonjs/config/theme.provider.js.map +1 -0
- package/lib/commonjs/config/theme.type.js +6 -0
- package/lib/commonjs/config/theme.type.js.map +1 -0
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/themes/border.js.map +1 -1
- package/lib/commonjs/themes/colors.js +1 -1
- package/lib/commonjs/themes/shadow.js +1 -0
- package/lib/commonjs/themes/shadow.js.map +1 -1
- package/lib/module/components/ActionList/ActionList.component.js +8 -7
- package/lib/module/components/ActionList/ActionList.component.js.map +1 -1
- package/lib/module/components/ActionList/ActionList.styles.js +11 -7
- package/lib/module/components/ActionList/ActionList.styles.js.map +1 -1
- package/lib/module/components/Appbar/Appbar.component.js +4 -3
- package/lib/module/components/Appbar/Appbar.component.js.map +1 -1
- package/lib/module/components/Appbar/Appbar.style.js +10 -6
- package/lib/module/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.component.js +2 -2
- package/lib/module/components/BottomSheet/BottomSheet.component.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.style.js +10 -7
- package/lib/module/components/BottomSheet/BottomSheet.style.js.map +1 -1
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +17 -17
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/module/components/CheckBoxInput/CheckBoxInput.style.js +24 -13
- package/lib/module/components/CheckBoxInput/CheckBoxInput.style.js.map +1 -1
- package/lib/module/components/Checkbox/Checkbox.component.js +9 -5
- package/lib/module/components/Checkbox/Checkbox.component.js.map +1 -1
- package/lib/module/components/Checkbox/Checkbox.style.js +14 -14
- package/lib/module/components/Checkbox/Checkbox.style.js.map +1 -1
- package/lib/module/components/Pagination/pagination.component.js +31 -0
- package/lib/module/components/Pagination/pagination.component.js.map +1 -0
- package/lib/module/components/Pagination/pagination.style.js +20 -0
- package/lib/module/components/Pagination/pagination.style.js.map +1 -0
- package/lib/module/components/Pagination/pagination.type.js +2 -0
- package/lib/module/components/Pagination/pagination.type.js.map +1 -0
- package/lib/module/components/RadioButton/RadioButton.component.js +2 -2
- package/lib/module/components/RadioButton/RadioButton.component.js.map +1 -1
- package/lib/module/components/RadioButton/RadioButton.style.js +12 -8
- package/lib/module/components/RadioButton/RadioButton.style.js.map +1 -1
- package/lib/module/components/RadioInput/RadioInput.component.js +17 -19
- package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/module/components/RadioInput/RadioInput.style.js +24 -13
- package/lib/module/components/RadioInput/RadioInput.style.js.map +1 -1
- package/lib/module/components/StickyBar/StickyBar.component.js +60 -0
- package/lib/module/components/StickyBar/StickyBar.component.js.map +1 -0
- package/lib/module/components/StickyBar/StickyBar.style.js +57 -0
- package/lib/module/components/StickyBar/StickyBar.style.js.map +1 -0
- package/lib/module/components/StickyBar/StickyBar.type.js +2 -0
- package/lib/module/components/StickyBar/StickyBar.type.js.map +1 -0
- package/lib/module/components/TextInput/TextInput.component.js +10 -4
- package/lib/module/components/TextInput/TextInput.component.js.map +1 -1
- package/lib/module/components/TextInput/TextInput.style.js +21 -15
- package/lib/module/components/TextInput/TextInput.style.js.map +1 -1
- package/lib/module/components/View/View.component.js +35 -0
- package/lib/module/components/View/View.component.js.map +1 -0
- package/lib/module/components/View/View.type.js +2 -0
- package/lib/module/components/View/View.type.js.map +1 -0
- package/lib/module/components/button/button.component.js +7 -4
- package/lib/module/components/button/button.component.js.map +1 -1
- package/lib/module/components/button/button.styles.js +14 -9
- package/lib/module/components/button/button.styles.js.map +1 -1
- package/lib/module/components/calendars/calendars.component.js +36 -36
- package/lib/module/components/calendars/calendars.component.js.map +1 -1
- package/lib/module/components/calendars/calendars.service.js.map +1 -1
- package/lib/module/components/calendars/calendars.style.js +65 -43
- package/lib/module/components/calendars/calendars.style.js.map +1 -1
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/typography/typography.component.js +13 -3
- package/lib/module/components/typography/typography.component.js.map +1 -1
- package/lib/module/components/typography/typography.style.js +21 -350
- package/lib/module/components/typography/typography.style.js.map +1 -1
- package/lib/module/config/index.js +5 -0
- package/lib/module/config/index.js.map +1 -0
- package/lib/module/config/makeStyles.js +30 -0
- package/lib/module/config/makeStyles.js.map +1 -0
- package/lib/module/config/theme.default.js +416 -0
- package/lib/module/config/theme.default.js.map +1 -0
- package/lib/module/config/theme.provider.js +35 -0
- package/lib/module/config/theme.provider.js.map +1 -0
- package/lib/module/config/theme.type.js +2 -0
- package/lib/module/config/theme.type.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/themes/border.js.map +1 -1
- package/lib/module/themes/colors.js +1 -1
- package/lib/module/themes/shadow.js +1 -0
- package/lib/module/themes/shadow.js.map +1 -1
- package/lib/typescript/components/ActionList/ActionList.component.d.ts.map +1 -1
- package/lib/typescript/components/ActionList/ActionList.styles.d.ts +3 -4
- package/lib/typescript/components/ActionList/ActionList.styles.d.ts.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.component.d.ts.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.style.d.ts +2 -3
- package/lib/typescript/components/Appbar/Appbar.style.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts +1 -1
- package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts.map +1 -1
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts +1 -1
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.style.d.ts +5 -4
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.style.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/Checkbox.component.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/Checkbox.style.d.ts +3 -2
- package/lib/typescript/components/Checkbox/Checkbox.style.d.ts.map +1 -1
- package/lib/typescript/components/Pagination/pagination.component.d.ts +5 -0
- package/lib/typescript/components/Pagination/pagination.component.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/pagination.style.d.ts +19 -0
- package/lib/typescript/components/Pagination/pagination.style.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/pagination.type.d.ts +15 -0
- package/lib/typescript/components/Pagination/pagination.type.d.ts.map +1 -0
- package/lib/typescript/components/RadioButton/RadioButton.component.d.ts +1 -1
- package/lib/typescript/components/RadioButton/RadioButton.component.d.ts.map +1 -1
- package/lib/typescript/components/RadioButton/RadioButton.style.d.ts +2 -2
- package/lib/typescript/components/RadioButton/RadioButton.style.d.ts.map +1 -1
- package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
- package/lib/typescript/components/RadioInput/RadioInput.style.d.ts +5 -4
- package/lib/typescript/components/RadioInput/RadioInput.style.d.ts.map +1 -1
- package/lib/typescript/components/StickyBar/StickyBar.component.d.ts +5 -0
- package/lib/typescript/components/StickyBar/StickyBar.component.d.ts.map +1 -0
- package/lib/typescript/components/StickyBar/StickyBar.style.d.ts +15 -0
- package/lib/typescript/components/StickyBar/StickyBar.style.d.ts.map +1 -0
- package/lib/typescript/components/StickyBar/StickyBar.type.d.ts +30 -0
- package/lib/typescript/components/StickyBar/StickyBar.type.d.ts.map +1 -0
- package/lib/typescript/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/lib/typescript/components/TextInput/TextInput.style.d.ts +6 -4
- package/lib/typescript/components/TextInput/TextInput.style.d.ts.map +1 -1
- package/lib/typescript/components/TextInput/TextInput.type.d.ts +1 -1
- package/lib/typescript/components/TextInput/TextInput.type.d.ts.map +1 -1
- package/lib/typescript/components/View/View.component.d.ts +4 -0
- package/lib/typescript/components/View/View.component.d.ts.map +1 -0
- package/lib/typescript/components/View/View.type.d.ts +10 -0
- package/lib/typescript/components/View/View.type.d.ts.map +1 -0
- package/lib/typescript/components/button/button.component.d.ts.map +1 -1
- package/lib/typescript/components/button/button.styles.d.ts +3 -4
- package/lib/typescript/components/button/button.styles.d.ts.map +1 -1
- package/lib/typescript/components/calendars/calendars.component.d.ts.map +1 -1
- package/lib/typescript/components/calendars/calendars.service.d.ts.map +1 -1
- package/lib/typescript/components/calendars/calendars.style.d.ts +6 -4
- package/lib/typescript/components/calendars/calendars.style.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +7 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/typography/typography.component.d.ts +1 -1
- package/lib/typescript/components/typography/typography.component.d.ts.map +1 -1
- package/lib/typescript/components/typography/typography.style.d.ts +5 -60
- package/lib/typescript/components/typography/typography.style.d.ts.map +1 -1
- package/lib/typescript/components/typography/typography.type.d.ts +7 -0
- package/lib/typescript/components/typography/typography.type.d.ts.map +1 -1
- package/lib/typescript/config/index.d.ts +5 -0
- package/lib/typescript/config/index.d.ts.map +1 -0
- package/lib/typescript/config/makeStyles.d.ts +4 -0
- package/lib/typescript/config/makeStyles.d.ts.map +1 -0
- package/lib/typescript/config/theme.default.d.ts +178 -0
- package/lib/typescript/config/theme.default.d.ts.map +1 -0
- package/lib/typescript/config/theme.provider.d.ts +8 -0
- package/lib/typescript/config/theme.provider.d.ts.map +1 -0
- package/lib/typescript/config/theme.type.d.ts +12 -0
- package/lib/typescript/config/theme.type.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/themes/shadow.d.ts +2 -3
- package/lib/typescript/themes/shadow.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/components/ActionList/ActionList.component.tsx +20 -17
- package/src/components/ActionList/ActionList.styles.tsx +11 -11
- package/src/components/Appbar/Appbar.component.tsx +4 -3
- package/src/components/Appbar/Appbar.style.tsx +9 -9
- package/src/components/BottomSheet/BottomSheet.component.tsx +2 -2
- package/src/components/BottomSheet/BottomSheet.style.tsx +9 -7
- package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +21 -20
- package/src/components/CheckBoxInput/CheckBoxInput.style.tsx +29 -15
- package/src/components/Checkbox/Checkbox.component.tsx +13 -13
- package/src/components/Checkbox/Checkbox.style.tsx +16 -17
- package/src/components/Pagination/pagination.component.tsx +29 -0
- package/src/components/Pagination/pagination.style.tsx +20 -0
- package/src/components/Pagination/pagination.type.ts +16 -0
- package/src/components/RadioButton/RadioButton.component.tsx +3 -4
- package/src/components/RadioButton/RadioButton.style.tsx +10 -10
- package/src/components/RadioInput/RadioInput.component.tsx +14 -15
- package/src/components/RadioInput/RadioInput.style.tsx +29 -15
- package/src/components/StickyBar/StickyBar.component.tsx +74 -0
- package/src/components/StickyBar/StickyBar.style.tsx +79 -0
- package/src/components/StickyBar/StickyBar.type.ts +35 -0
- package/src/components/TextInput/TextInput.component.tsx +7 -6
- package/src/components/TextInput/TextInput.style.tsx +86 -70
- package/src/components/TextInput/TextInput.type.ts +1 -1
- package/src/components/View/View.component.tsx +42 -0
- package/src/components/View/View.type.ts +14 -0
- package/src/components/button/button.component.tsx +9 -4
- package/src/components/button/button.styles.ts +15 -15
- package/src/components/calendars/calendars.component.tsx +27 -22
- package/src/components/calendars/calendars.service.ts +7 -3
- package/src/components/calendars/calendars.style.ts +77 -49
- package/src/components/index.ts +15 -0
- package/src/components/typography/typography.component.tsx +17 -4
- package/src/components/typography/typography.style.tsx +17 -472
- package/src/components/typography/typography.type.ts +9 -0
- package/src/config/index.ts +4 -0
- package/src/config/makeStyles.ts +52 -0
- package/src/config/theme.default.ts +440 -0
- package/src/config/theme.provider.tsx +53 -0
- package/src/config/theme.type.ts +17 -0
- package/src/index.tsx +1 -0
- package/src/themes/border.ts +3 -3
- package/src/themes/colors.ts +1 -1
- package/src/themes/shadow.tsx +4 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { makeStyles } from '../../config';
|
|
2
|
+
export const useStyles = makeStyles(themes => {
|
|
3
|
+
const {
|
|
4
|
+
colors,
|
|
5
|
+
Spacing,
|
|
6
|
+
Radius,
|
|
7
|
+
Shadow
|
|
8
|
+
} = themes;
|
|
4
9
|
const computedStyle = {};
|
|
5
10
|
computedStyle.modalContainer = {
|
|
6
11
|
height: '100%',
|
|
@@ -8,14 +13,14 @@ export const getStyle = () => {
|
|
|
8
13
|
};
|
|
9
14
|
computedStyle.container = {
|
|
10
15
|
width: 350,
|
|
11
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: colors['fill-inverse'],
|
|
12
17
|
paddingVertical: Spacing[24],
|
|
13
18
|
borderRadius: Radius[16],
|
|
14
19
|
overflow: 'hidden',
|
|
15
20
|
...Shadow['shadow-elevation-1']
|
|
16
21
|
};
|
|
17
22
|
computedStyle.headerContainer = {
|
|
18
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: colors['fill-inverse'],
|
|
19
24
|
height: 40,
|
|
20
25
|
flexGrow: 1,
|
|
21
26
|
borderRadius: Radius[8],
|
|
@@ -39,53 +44,70 @@ export const getStyle = () => {
|
|
|
39
44
|
alignItems: 'center'
|
|
40
45
|
};
|
|
41
46
|
computedStyle.calendarContainer = {
|
|
47
|
+
backgroundColor: colors['fill-inverse'],
|
|
42
48
|
height: 440,
|
|
43
49
|
justifyContent: 'space-between'
|
|
44
50
|
};
|
|
45
51
|
computedStyle.calendarBottomContainer = {
|
|
46
52
|
flexDirection: 'row',
|
|
47
53
|
marginTop: Spacing[12],
|
|
48
|
-
paddingHorizontal: Spacing[16]
|
|
54
|
+
paddingHorizontal: Spacing[16],
|
|
55
|
+
gap: Spacing[16]
|
|
49
56
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
height: 40,
|
|
67
|
-
alignItems: 'center',
|
|
68
|
-
justifyContent: 'center',
|
|
69
|
-
borderRadius: 99
|
|
57
|
+
computedStyle.calendarStyle = {
|
|
58
|
+
marginHorizontal: Spacing[12],
|
|
59
|
+
backgroundColor: colors['fill-inverse']
|
|
60
|
+
};
|
|
61
|
+
computedStyle.flex = {
|
|
62
|
+
flex: 1
|
|
63
|
+
};
|
|
64
|
+
return computedStyle;
|
|
65
|
+
});
|
|
66
|
+
export const getCalendarTheme = (colors, colorScheme) => {
|
|
67
|
+
const calendarTheme = {
|
|
68
|
+
'calendarBackground': colors['fill-inverse'],
|
|
69
|
+
'textDayFontFamily': 'Montserrat-Regular',
|
|
70
|
+
'textDayHeaderFontFamily': 'Montserrat-Regular',
|
|
71
|
+
'textDayStyle': {
|
|
72
|
+
color: colors['text-primary']
|
|
70
73
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
'selectedDayBackgroundColor': colors['fill-warning'],
|
|
75
|
+
'selectedDayTextColor': colorScheme === 'light' ? colors['text-primary'] : colors['text-inverse'],
|
|
76
|
+
'todayTextColor': colors['text-primary'],
|
|
77
|
+
'textDisabledColor': colors['text-disable-secondary'],
|
|
78
|
+
'stylesheet.day.basic': {
|
|
79
|
+
today: {
|
|
80
|
+
borderWidth: 2,
|
|
81
|
+
borderColor: colors['border-warning'],
|
|
82
|
+
borderRadius: 99
|
|
83
|
+
},
|
|
84
|
+
base: {
|
|
85
|
+
width: 40,
|
|
86
|
+
height: 40,
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
justifyContent: 'center',
|
|
89
|
+
borderRadius: 99
|
|
90
|
+
},
|
|
91
|
+
selected: {
|
|
92
|
+
borderRadius: 99,
|
|
93
|
+
backgroundColor: colors['fill-warning']
|
|
94
|
+
}
|
|
83
95
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
'stylesheet.calendar.header': {
|
|
97
|
+
week: {
|
|
98
|
+
flexDirection: 'row',
|
|
99
|
+
justifyContent: 'space-between',
|
|
100
|
+
borderBottomWidth: 1,
|
|
101
|
+
borderBottomColor: colors['border-default'],
|
|
102
|
+
paddingBottom: 12
|
|
103
|
+
},
|
|
104
|
+
dayHeader: {
|
|
105
|
+
fontFamily: 'Montserrat-Regular',
|
|
106
|
+
fontSize: 14,
|
|
107
|
+
color: colors['text-primary']
|
|
108
|
+
}
|
|
88
109
|
}
|
|
89
|
-
}
|
|
110
|
+
};
|
|
111
|
+
return calendarTheme;
|
|
90
112
|
};
|
|
91
113
|
//# sourceMappingURL=calendars.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["makeStyles","useStyles","themes","colors","Spacing","Radius","Shadow","computedStyle","modalContainer","height","width","container","backgroundColor","paddingVertical","borderRadius","overflow","headerContainer","flexGrow","flexDirection","marginHorizontal","headerArrowWrapper","justifyContent","alignItems","headerCenterWrapper","flex","headerCenterItem","calendarContainer","calendarBottomContainer","marginTop","paddingHorizontal","gap","calendarStyle","getCalendarTheme","colorScheme","calendarTheme","color","today","borderWidth","borderColor","base","selected","week","borderBottomWidth","borderBottomColor","paddingBottom","dayHeader","fontFamily","fontSize"],"sourceRoot":"../../../../src","sources":["components/calendars/calendars.style.ts"],"mappings":"AAGA,SAAwBA,UAAU,QAAQ,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EAAE;QACVa,UAAU,EAAE,QAAQ;QACpBD,cAAc,EAAE,QAAQ;QACxBP,YAAY,EAAE;MAChB,CAAC;MACD0B,QAAQ,EAAE;QACR1B,YAAY,EAAE,EAAE;QAChBF,eAAe,EAAET,MAAM,CAAC,cAAc;MACxC;IACF,CAAC;IACD,4BAA4B,EAAE;MAC5BsC,IAAI,EAAE;QACJvB,aAAa,EAAE,KAAK;QACpBG,cAAc,EAAE,eAAe;QAC/BqB,iBAAiB,EAAE,CAAC;QACpBC,iBAAiB,EAAExC,MAAM,CAAC,gBAAgB,CAAC;QAC3CyC,aAAa,EAAE;MACjB,CAAC;MACDC,SAAS,EAAE;QACTC,UAAU,EAAE,oBAAoB;QAChCC,QAAQ,EAAE,EAAE;QACZZ,KAAK,EAAEhC,MAAM,CAAC,cAAc;MAC9B;IACF;EACF,CAAC;EAED,OAAO+B,aAAa;AACtB,CAAC","ignoreList":[]}
|
|
@@ -32,7 +32,10 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
|
|
|
32
32
|
export { Countdown } from './countdown/countdown.component';
|
|
33
33
|
export { Loader } from './Loader/loader.component';
|
|
34
34
|
export { Notification } from './Notification/notification.component';
|
|
35
|
+
export { Pagination } from './Pagination/pagination.component';
|
|
35
36
|
export { Mask, MaskArray, MaskInputProps, MaskItem, Masks, UseMaskedInputProps, createNumberMask, formatWithMask, useMaskedInputProps } from 'react-native-mask-input';
|
|
36
37
|
export { SelectionCard } from './selection-card/SelectionCard.component';
|
|
37
38
|
export { Ribbon } from './Ribbon/Ribbon.component';
|
|
39
|
+
export { StickyBar } from './StickyBar/StickyBar.component';
|
|
40
|
+
export { View } from './View/View.component';
|
|
38
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ActionList","Badges","BottomTabBar","Button","Calendars","CategoryCard","ContentCard","Label","BaseComponent","Typography","Coachmark","circleSvgPath","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","Chips","BottomSheet","BottomSheetHandler","SearchInput","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","SnackbarComponent","SnackbarUI","Switch","Dot","InformationBox","RoundedTab","Countdown","Loader","Notification","Mask","MaskArray","MaskInputProps","MaskItem","Masks","UseMaskedInputProps","createNumberMask","formatWithMask","useMaskedInputProps","SelectionCard","Ribbon"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,SAAS,EAAEC,aAAa,QAAQ,iCAAiC;AAC1E,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,eAAe,QAAQ,+CAA+C;AAC/E,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,cAAc,QAAQ,2CAA2C;AAC1E,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SACEC,WAAW,EACXC,kBAAkB,QACb,qCAAqC;AAC5C,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SACEC,QAAQ,EACRC,iBAAiB,EACjBC,UAAU,QACL,+BAA+B;AACtC,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,GAAG,QAAQ,qBAAqB;AACzC,SAASC,cAAc,QAAQ,6CAA6C;AAC5E,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SACEC,IAAI,EACJC,SAAS,EACTC,cAAc,EACdC,QAAQ,EACRC,KAAK,EACLC,mBAAmB,EACnBC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,QACd,yBAAyB;AAChC,SAASC,aAAa,QAAQ,0CAA0C;AACxE,SAASC,MAAM,QAAQ,2BAA2B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ActionList","Badges","BottomTabBar","Button","Calendars","CategoryCard","ContentCard","Label","BaseComponent","Typography","Coachmark","circleSvgPath","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","Chips","BottomSheet","BottomSheetHandler","SearchInput","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","SnackbarComponent","SnackbarUI","Switch","Dot","InformationBox","RoundedTab","Countdown","Loader","Notification","Pagination","Mask","MaskArray","MaskInputProps","MaskItem","Masks","UseMaskedInputProps","createNumberMask","formatWithMask","useMaskedInputProps","SelectionCard","Ribbon","StickyBar","View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAAS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1,18 +1,28 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Text } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { useStyles } from './typography.style';
|
|
5
|
+
import { useAppTheme } from '../../config';
|
|
5
6
|
const Typography = props => {
|
|
6
7
|
const {
|
|
7
8
|
variant = 'body1',
|
|
8
9
|
children = null,
|
|
9
10
|
textStyles,
|
|
10
11
|
style,
|
|
12
|
+
color = 'text-primary',
|
|
11
13
|
...rest
|
|
12
14
|
} = props;
|
|
13
|
-
const
|
|
15
|
+
const styles = useStyles({
|
|
16
|
+
variant,
|
|
17
|
+
...rest
|
|
18
|
+
});
|
|
19
|
+
const {
|
|
20
|
+
colors
|
|
21
|
+
} = useAppTheme();
|
|
14
22
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
15
|
-
style: [
|
|
23
|
+
style: [styles.base, {
|
|
24
|
+
color: colors[color] ?? colors['text-primary']
|
|
25
|
+
}, textStyles, style]
|
|
16
26
|
}, rest), children);
|
|
17
27
|
};
|
|
18
28
|
export { Typography };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","
|
|
1
|
+
{"version":3,"names":["React","Text","useStyles","useAppTheme","Typography","props","variant","children","textStyles","style","color","rest","styles","colors","createElement","_extends","base"],"sourceRoot":"../../../../src","sources":["components/typography/typography.component.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,WAAW,QAAQ,cAAc;AAE1C,MAAMC,UAAU,GAAIC,KAAsB,IAAK;EAC7C,MAAM;IACJC,OAAO,GAAG,OAAO;IACjBC,QAAQ,GAAG,IAAI;IACfC,UAAU;IACVC,KAAK;IACLC,KAAK,GAAG,cAAc;IACtB,GAAGC;EACL,CAAC,GAAGN,KAAK;EAET,MAAMO,MAAM,GAAGV,SAAS,CAAC;IACvBI,OAAO;IACP,GAAGK;EACL,CAAC,CAAC;EAEF,MAAM;IAAEE;EAAO,CAAC,GAAGV,WAAW,CAAC,CAAC;EAEhC,oBACEH,KAAA,CAAAc,aAAA,CAACb,IAAI,EAAAc,QAAA;IACHN,KAAK,EAAE,CACLG,MAAM,CAACI,IAAI,EACX;MAAEN,KAAK,EAAEG,MAAM,CAACH,KAAK,CAAC,IAAIG,MAAM,CAAC,cAAc;IAAE,CAAC,EAClDL,UAAU,EACVC,KAAK;EACL,GACEE,IAAI,GAEPJ,QACG,CAAC;AAEX,CAAC;AAED,SAASH,UAAU","ignoreList":[]}
|
|
@@ -1,353 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export const getStyle = props => {
|
|
1
|
+
import { makeStyles } from '../../config';
|
|
2
|
+
export const useStyles = makeStyles((themes, props) => {
|
|
4
3
|
const {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Fonts,
|
|
5
|
+
FontFamilyStyle
|
|
6
|
+
} = themes;
|
|
7
|
+
const {
|
|
8
|
+
variant = 'body1',
|
|
9
|
+
fontStyle = 'normal'
|
|
7
10
|
} = props;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
fontFamily
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...textSemibold,
|
|
22
|
-
fontSize: 92,
|
|
23
|
-
lineHeight: 144
|
|
24
|
-
};
|
|
25
|
-
computedStyle['heading1-regular'] = {
|
|
26
|
-
...baseTextStyle,
|
|
27
|
-
fontSize: 92,
|
|
28
|
-
lineHeight: 144
|
|
29
|
-
};
|
|
30
|
-
computedStyle['heading2-semibold'] = {
|
|
31
|
-
...baseTextStyle,
|
|
32
|
-
...textSemibold,
|
|
33
|
-
fontSize: 60,
|
|
34
|
-
lineHeight: 90
|
|
35
|
-
};
|
|
36
|
-
computedStyle['heading2-regular'] = {
|
|
37
|
-
...baseTextStyle,
|
|
38
|
-
fontSize: 60,
|
|
39
|
-
lineHeight: 90
|
|
40
|
-
};
|
|
41
|
-
computedStyle['heading3-semibold'] = {
|
|
42
|
-
...baseTextStyle,
|
|
43
|
-
...textSemibold,
|
|
44
|
-
fontSize: 48,
|
|
45
|
-
lineHeight: 72
|
|
46
|
-
};
|
|
47
|
-
computedStyle['heading3-regular'] = {
|
|
48
|
-
...baseTextStyle,
|
|
49
|
-
fontSize: 48,
|
|
50
|
-
lineHeight: 72
|
|
51
|
-
};
|
|
52
|
-
computedStyle['heading4-semibold'] = {
|
|
53
|
-
...baseTextStyle,
|
|
54
|
-
...textSemibold,
|
|
55
|
-
fontSize: 34,
|
|
56
|
-
lineHeight: 51
|
|
57
|
-
};
|
|
58
|
-
computedStyle['heading4-regular'] = {
|
|
59
|
-
...baseTextStyle,
|
|
60
|
-
fontSize: 34,
|
|
61
|
-
lineHeight: 51
|
|
62
|
-
};
|
|
63
|
-
computedStyle['heading5-bold'] = {
|
|
64
|
-
...baseTextStyle,
|
|
65
|
-
...textBold,
|
|
66
|
-
fontSize: 24,
|
|
67
|
-
lineHeight: 36
|
|
68
|
-
};
|
|
69
|
-
computedStyle['heading5-semibold'] = {
|
|
70
|
-
...baseTextStyle,
|
|
71
|
-
...textSemibold,
|
|
72
|
-
fontSize: 24,
|
|
73
|
-
lineHeight: 36
|
|
74
|
-
};
|
|
75
|
-
computedStyle['heading5-regular'] = {
|
|
76
|
-
...baseTextStyle,
|
|
77
|
-
fontSize: 24,
|
|
78
|
-
lineHeight: 36
|
|
79
|
-
};
|
|
80
|
-
computedStyle['heading6-bold'] = {
|
|
81
|
-
...baseTextStyle,
|
|
82
|
-
...textBold,
|
|
83
|
-
fontSize: 20,
|
|
84
|
-
lineHeight: 30
|
|
85
|
-
};
|
|
86
|
-
computedStyle['heading6-semibold'] = {
|
|
87
|
-
...baseTextStyle,
|
|
88
|
-
...textSemibold,
|
|
89
|
-
fontSize: 20,
|
|
90
|
-
lineHeight: 30
|
|
91
|
-
};
|
|
92
|
-
computedStyle['heading6-regular'] = {
|
|
93
|
-
...baseTextStyle,
|
|
94
|
-
fontSize: 20,
|
|
95
|
-
lineHeight: 30
|
|
96
|
-
};
|
|
97
|
-
computedStyle.subheading = {
|
|
98
|
-
...baseTextStyle,
|
|
99
|
-
...textSemibold,
|
|
100
|
-
fontSize: 18,
|
|
101
|
-
lineHeight: 27
|
|
102
|
-
};
|
|
103
|
-
computedStyle.subtitle1 = {
|
|
104
|
-
...baseTextStyle,
|
|
105
|
-
...textSemibold,
|
|
106
|
-
fontSize: 16,
|
|
107
|
-
lineHeight: 24
|
|
108
|
-
};
|
|
109
|
-
computedStyle.subtitle2 = {
|
|
110
|
-
...baseTextStyle,
|
|
111
|
-
...textSemibold,
|
|
112
|
-
fontSize: 14,
|
|
113
|
-
lineHeight: 21
|
|
114
|
-
};
|
|
115
|
-
computedStyle['subtitle2-extrabold'] = {
|
|
116
|
-
...baseTextStyle,
|
|
117
|
-
...textBold,
|
|
118
|
-
fontSize: 14,
|
|
119
|
-
lineHeight: 21
|
|
120
|
-
};
|
|
121
|
-
computedStyle.body1 = {
|
|
122
|
-
...baseTextStyle,
|
|
123
|
-
fontSize: 16,
|
|
124
|
-
lineHeight: 24
|
|
125
|
-
};
|
|
126
|
-
computedStyle.body2 = {
|
|
127
|
-
...baseTextStyle,
|
|
128
|
-
fontSize: 14,
|
|
129
|
-
lineHeight: 21
|
|
130
|
-
};
|
|
131
|
-
computedStyle.body3 = {
|
|
132
|
-
...baseTextStyle,
|
|
133
|
-
fontSize: 12,
|
|
134
|
-
lineHeight: 21
|
|
135
|
-
};
|
|
136
|
-
computedStyle.button = {
|
|
137
|
-
...baseTextStyle,
|
|
138
|
-
...textSemibold,
|
|
139
|
-
fontSize: 14,
|
|
140
|
-
lineHeight: 21
|
|
141
|
-
};
|
|
142
|
-
computedStyle['button-small'] = {
|
|
143
|
-
...baseTextStyle,
|
|
144
|
-
...textSemibold,
|
|
145
|
-
fontSize: 12,
|
|
146
|
-
lineHeight: 18
|
|
147
|
-
};
|
|
148
|
-
computedStyle.caption = {
|
|
149
|
-
...baseTextStyle,
|
|
150
|
-
fontSize: 12,
|
|
151
|
-
lineHeight: 18
|
|
152
|
-
};
|
|
153
|
-
computedStyle.caption2 = {
|
|
154
|
-
...baseTextStyle,
|
|
155
|
-
...textSemibold,
|
|
156
|
-
fontSize: 12,
|
|
157
|
-
lineHeight: 18
|
|
158
|
-
};
|
|
159
|
-
computedStyle.overline = {
|
|
160
|
-
...baseTextStyle,
|
|
161
|
-
...textSemibold,
|
|
162
|
-
fontSize: 10,
|
|
163
|
-
lineHeight: 15
|
|
164
|
-
};
|
|
165
|
-
computedStyle['overline-small'] = {
|
|
166
|
-
...baseTextStyle,
|
|
167
|
-
fontSize: 10,
|
|
168
|
-
lineHeight: 15
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
// -===== New Token update =====-
|
|
172
|
-
const textSemiboldV2 = {
|
|
173
|
-
fontFamily: fontStyle === 'italic' ? 'Montserrat-SemiBoldItalic' : 'Montserrat-SemiBold',
|
|
174
|
-
fontSize: 600
|
|
175
|
-
};
|
|
176
|
-
const textBoldV2 = {
|
|
177
|
-
fontFamily: fontStyle === 'italic' ? 'Montserrat-BoldItalic' : 'Montserrat-Bold',
|
|
178
|
-
fontSize: 700
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// Heading
|
|
182
|
-
computedStyle['text-heading-h1-semibold'] = {
|
|
183
|
-
...baseTextStyle,
|
|
184
|
-
...textSemiboldV2,
|
|
185
|
-
fontSize: 96,
|
|
186
|
-
lineHeight: 96
|
|
187
|
-
};
|
|
188
|
-
computedStyle['text-heading-h1-regular'] = {
|
|
189
|
-
...baseTextStyle,
|
|
190
|
-
fontSize: 96,
|
|
191
|
-
lineHeight: 96
|
|
192
|
-
};
|
|
193
|
-
computedStyle['text-heading-h2-semibold'] = {
|
|
194
|
-
...baseTextStyle,
|
|
195
|
-
...textSemiboldV2,
|
|
196
|
-
fontSize: 60,
|
|
197
|
-
lineHeight: 60
|
|
198
|
-
};
|
|
199
|
-
computedStyle['text-heading-h2-regular'] = {
|
|
200
|
-
...baseTextStyle,
|
|
201
|
-
fontSize: 60,
|
|
202
|
-
lineHeight: 60
|
|
203
|
-
};
|
|
204
|
-
computedStyle['text-heading-h3-bold'] = {
|
|
205
|
-
...baseTextStyle,
|
|
206
|
-
...textBoldV2,
|
|
207
|
-
fontSize: 48,
|
|
208
|
-
lineHeight: 48
|
|
209
|
-
};
|
|
210
|
-
computedStyle['text-heading-h3-regular'] = {
|
|
211
|
-
...baseTextStyle,
|
|
212
|
-
fontSize: 48,
|
|
213
|
-
lineHeight: 48
|
|
214
|
-
};
|
|
215
|
-
computedStyle['text-heading-h4-semibold'] = {
|
|
216
|
-
...baseTextStyle,
|
|
217
|
-
...textSemiboldV2,
|
|
218
|
-
fontSize: 34,
|
|
219
|
-
lineHeight: 34
|
|
220
|
-
};
|
|
221
|
-
computedStyle['text-heading-h4-regular'] = {
|
|
222
|
-
...baseTextStyle,
|
|
223
|
-
fontSize: 34,
|
|
224
|
-
lineHeight: 34
|
|
225
|
-
};
|
|
226
|
-
computedStyle['text-heading-h5-bold'] = {
|
|
227
|
-
...baseTextStyle,
|
|
228
|
-
...textBoldV2,
|
|
229
|
-
fontSize: 24,
|
|
230
|
-
lineHeight: 24
|
|
231
|
-
};
|
|
232
|
-
computedStyle['text-heading-h5-semibold'] = {
|
|
233
|
-
...baseTextStyle,
|
|
234
|
-
...textSemiboldV2,
|
|
235
|
-
fontSize: 24,
|
|
236
|
-
lineHeight: 24
|
|
237
|
-
};
|
|
238
|
-
computedStyle['text-heading-h5-regular'] = {
|
|
239
|
-
...baseTextStyle,
|
|
240
|
-
fontSize: 24,
|
|
241
|
-
lineHeight: 24
|
|
242
|
-
};
|
|
243
|
-
computedStyle['text-heading-h6-bold'] = {
|
|
244
|
-
...baseTextStyle,
|
|
245
|
-
...textBoldV2,
|
|
246
|
-
fontSize: 20,
|
|
247
|
-
lineHeight: 20
|
|
248
|
-
};
|
|
249
|
-
computedStyle['text-heading-h6-semibold'] = {
|
|
250
|
-
...baseTextStyle,
|
|
251
|
-
...textSemiboldV2,
|
|
252
|
-
fontSize: 20,
|
|
253
|
-
lineHeight: 20
|
|
254
|
-
};
|
|
255
|
-
computedStyle['text-heading-h6-regular'] = {
|
|
256
|
-
...baseTextStyle,
|
|
257
|
-
fontSize: 20,
|
|
258
|
-
lineHeight: 20
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
// Sub Heading
|
|
262
|
-
computedStyle['text-sub-heading-semibold'] = {
|
|
263
|
-
...baseTextStyle,
|
|
264
|
-
...textSemiboldV2,
|
|
265
|
-
fontSize: 14,
|
|
266
|
-
lineHeight: 14
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
// Subtitle
|
|
270
|
-
computedStyle['text-subtitle-primary-semibold'] = {
|
|
271
|
-
...baseTextStyle,
|
|
272
|
-
...textSemiboldV2,
|
|
273
|
-
fontSize: 16,
|
|
274
|
-
lineHeight: 16
|
|
275
|
-
};
|
|
276
|
-
computedStyle['text-subtitle-secondary-bold'] = {
|
|
277
|
-
...baseTextStyle,
|
|
278
|
-
...textSemiboldV2,
|
|
279
|
-
fontSize: 14,
|
|
280
|
-
lineHeight: 14
|
|
281
|
-
};
|
|
282
|
-
computedStyle['text-subtitle-secondary-semibold'] = {
|
|
283
|
-
...baseTextStyle,
|
|
284
|
-
...textSemiboldV2,
|
|
285
|
-
fontSize: 14,
|
|
286
|
-
lineHeight: 14
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
// Button
|
|
290
|
-
computedStyle['text-button-default-semibold'] = {
|
|
291
|
-
...baseTextStyle,
|
|
292
|
-
...textSemiboldV2,
|
|
293
|
-
fontSize: 14,
|
|
294
|
-
lineHeight: 14
|
|
295
|
-
};
|
|
296
|
-
computedStyle['text-button-small-semibold'] = {
|
|
297
|
-
...baseTextStyle,
|
|
298
|
-
...textSemiboldV2,
|
|
299
|
-
fontSize: 12,
|
|
300
|
-
lineHeight: 12
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// Caption
|
|
304
|
-
computedStyle['text-caption-semibold'] = {
|
|
305
|
-
...baseTextStyle,
|
|
306
|
-
...textSemiboldV2,
|
|
307
|
-
fontSize: 12,
|
|
308
|
-
lineHeight: 12
|
|
309
|
-
};
|
|
310
|
-
computedStyle['text-caption-regular'] = {
|
|
311
|
-
...baseTextStyle,
|
|
312
|
-
fontSize: 12,
|
|
313
|
-
lineHeight: 12
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
// Overline
|
|
317
|
-
computedStyle['text-overline-semibold'] = {
|
|
318
|
-
...baseTextStyle,
|
|
319
|
-
...textSemiboldV2,
|
|
320
|
-
fontSize: 10,
|
|
321
|
-
lineHeight: 10
|
|
322
|
-
};
|
|
323
|
-
computedStyle['text-overline-regular'] = {
|
|
324
|
-
...baseTextStyle,
|
|
325
|
-
fontSize: 12,
|
|
326
|
-
lineHeight: 12
|
|
327
|
-
};
|
|
328
|
-
computedStyle['text-overline-strike'] = {
|
|
329
|
-
...baseTextStyle,
|
|
330
|
-
textDecorationLine: 'line-through',
|
|
331
|
-
fontSize: 12,
|
|
332
|
-
lineHeight: 12
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
// Body
|
|
336
|
-
computedStyle['text-body-primary-regular'] = {
|
|
337
|
-
...baseTextStyle,
|
|
338
|
-
fontSize: 16,
|
|
339
|
-
lineHeight: 16
|
|
340
|
-
};
|
|
341
|
-
computedStyle['text-body-secondary-regular'] = {
|
|
342
|
-
...baseTextStyle,
|
|
343
|
-
fontSize: 14,
|
|
344
|
-
lineHeight: 14
|
|
345
|
-
};
|
|
346
|
-
computedStyle['text-body-tertiary-regular'] = {
|
|
347
|
-
...baseTextStyle,
|
|
348
|
-
fontSize: 12,
|
|
349
|
-
lineHeight: 12
|
|
350
|
-
};
|
|
351
|
-
return StyleSheet.create(computedStyle);
|
|
352
|
-
};
|
|
11
|
+
const baseStyle = FontFamilyStyle[variant] ?? FontFamilyStyle.body1;
|
|
12
|
+
if (!baseStyle.fontFamily) {
|
|
13
|
+
// Apply appropriate font based on its font style
|
|
14
|
+
const fontType = baseStyle.fontType ?? 'regular';
|
|
15
|
+
const isItalic = fontStyle === 'italic' || baseStyle.fontStyle === 'italic';
|
|
16
|
+
const fontKey = fontType + (isItalic ? 'Italic' : '');
|
|
17
|
+
baseStyle.fontFamily = Fonts[fontKey];
|
|
18
|
+
}
|
|
19
|
+
delete baseStyle.fontType;
|
|
20
|
+
return {
|
|
21
|
+
base: baseStyle
|
|
22
|
+
};
|
|
23
|
+
});
|
|
353
24
|
//# sourceMappingURL=typography.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["makeStyles","useStyles","themes","props","Fonts","FontFamilyStyle","variant","fontStyle","baseStyle","body1","fontFamily","fontType","isItalic","fontKey","base"],"sourceRoot":"../../../../src","sources":["components/typography/typography.style.tsx"],"mappings":"AACA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,SAAS,GAAGD,UAAU,CAAC,CAACE,MAAM,EAAEC,KAAsB,KAAK;EACtE,MAAM;IAAEC,KAAK;IAAEC;EAAgB,CAAC,GAAGH,MAAM;EACzC,MAAM;IAAEI,OAAO,GAAG,OAAO;IAAEC,SAAS,GAAG;EAAS,CAAC,GAAGJ,KAAK;EAEzD,MAAMK,SAAS,GAAGH,eAAe,CAACC,OAAO,CAAC,IAAID,eAAe,CAACI,KAAK;EAEnE,IAAI,CAACD,SAAS,CAACE,UAAU,EAAE;IACzB;IACA,MAAMC,QAAQ,GAAGH,SAAS,CAACG,QAAQ,IAAI,SAAS;IAChD,MAAMC,QAAQ,GAAGL,SAAS,KAAK,QAAQ,IAAIC,SAAS,CAACD,SAAS,KAAK,QAAQ;IAC3E,MAAMM,OAAO,GAAIF,QAAQ,IACtBC,QAAQ,GAAG,QAAQ,GAAG,EAAE,CAAwB;IAEnDJ,SAAS,CAACE,UAAU,GAAGN,KAAK,CAACS,OAAO,CAAC;EACvC;EAEA,OAAOL,SAAS,CAACG,QAAQ;EAEzB,OAAO;IACLG,IAAI,EAAEN;EACR,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["config/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
3
|
+
import { useAppTheme } from './theme.provider';
|
|
4
|
+
export const makeStyles = styles => props => {
|
|
5
|
+
const {
|
|
6
|
+
colors,
|
|
7
|
+
Border,
|
|
8
|
+
FontFamilyStyle,
|
|
9
|
+
Fonts,
|
|
10
|
+
Radius,
|
|
11
|
+
Shadow,
|
|
12
|
+
Spacing,
|
|
13
|
+
colorScheme
|
|
14
|
+
} = useAppTheme();
|
|
15
|
+
return useMemo(() => {
|
|
16
|
+
const theme = {
|
|
17
|
+
colors,
|
|
18
|
+
Border,
|
|
19
|
+
FontFamilyStyle,
|
|
20
|
+
Fonts,
|
|
21
|
+
Radius,
|
|
22
|
+
Shadow,
|
|
23
|
+
Spacing,
|
|
24
|
+
colorScheme
|
|
25
|
+
};
|
|
26
|
+
const css = typeof styles === 'function' ? styles(theme, props ?? {}) : styles;
|
|
27
|
+
return StyleSheet.create(css);
|
|
28
|
+
}, [Border, FontFamilyStyle, Fonts, Radius, Shadow, Spacing, colorScheme, colors, props]);
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=makeStyles.js.map
|