@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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Palettes, Radius, Spacing, Shadow } from '../../themes';
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
4
2
|
import { CalendarProps } from 'react-native-calendars';
|
|
5
3
|
|
|
4
|
+
import { AppThemeColor, makeStyles } from '../../config';
|
|
5
|
+
|
|
6
6
|
interface ComputedStyleProps {
|
|
7
7
|
modalContainer?: ViewStyle;
|
|
8
8
|
container?: ViewStyle;
|
|
@@ -14,9 +14,13 @@ interface ComputedStyleProps {
|
|
|
14
14
|
|
|
15
15
|
calendarContainer?: ViewStyle;
|
|
16
16
|
calendarBottomContainer?: ViewStyle;
|
|
17
|
+
calendarStyle?: ViewStyle;
|
|
18
|
+
|
|
19
|
+
flex?: ViewStyle;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
export const
|
|
22
|
+
export const useStyles = makeStyles((themes) => {
|
|
23
|
+
const { colors, Spacing, Radius, Shadow } = themes;
|
|
20
24
|
const computedStyle: ComputedStyleProps = {};
|
|
21
25
|
|
|
22
26
|
computedStyle.modalContainer = {
|
|
@@ -26,7 +30,7 @@ export const getStyle = () => {
|
|
|
26
30
|
|
|
27
31
|
computedStyle.container = {
|
|
28
32
|
width: 350,
|
|
29
|
-
backgroundColor:
|
|
33
|
+
backgroundColor: colors['fill-inverse'],
|
|
30
34
|
paddingVertical: Spacing[24],
|
|
31
35
|
borderRadius: Radius[16],
|
|
32
36
|
overflow: 'hidden',
|
|
@@ -34,7 +38,7 @@ export const getStyle = () => {
|
|
|
34
38
|
};
|
|
35
39
|
|
|
36
40
|
computedStyle.headerContainer = {
|
|
37
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: colors['fill-inverse'],
|
|
38
42
|
height: 40,
|
|
39
43
|
flexGrow: 1,
|
|
40
44
|
borderRadius: Radius[8],
|
|
@@ -62,6 +66,7 @@ export const getStyle = () => {
|
|
|
62
66
|
};
|
|
63
67
|
|
|
64
68
|
computedStyle.calendarContainer = {
|
|
69
|
+
backgroundColor: colors['fill-inverse'],
|
|
65
70
|
height: 440,
|
|
66
71
|
justifyContent: 'space-between',
|
|
67
72
|
};
|
|
@@ -70,51 +75,74 @@ export const getStyle = () => {
|
|
|
70
75
|
flexDirection: 'row',
|
|
71
76
|
marginTop: Spacing[12],
|
|
72
77
|
paddingHorizontal: Spacing[16],
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return StyleSheet.create(computedStyle);
|
|
76
|
-
};
|
|
78
|
+
gap: Spacing[16],
|
|
79
|
+
};
|
|
77
80
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
81
|
+
computedStyle.calendarStyle = {
|
|
82
|
+
marginHorizontal: Spacing[12],
|
|
83
|
+
backgroundColor: colors['fill-inverse'],
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
computedStyle.flex = {
|
|
87
|
+
flex: 1,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return computedStyle;
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const getCalendarTheme = (
|
|
94
|
+
colors: AppThemeColor['colors'],
|
|
95
|
+
colorScheme: AppThemeColor['colorScheme']
|
|
96
|
+
) => {
|
|
97
|
+
const calendarTheme: CalendarProps['theme'] & {
|
|
98
|
+
'stylesheet.day.basic'?: any;
|
|
99
|
+
'stylesheet.calendar.header'?: any;
|
|
100
|
+
'stylesheet.calendar.main'?: any;
|
|
101
|
+
} = {
|
|
102
|
+
'calendarBackground': colors['fill-inverse'],
|
|
103
|
+
'textDayFontFamily': 'Montserrat-Regular',
|
|
104
|
+
'textDayHeaderFontFamily': 'Montserrat-Regular',
|
|
105
|
+
'textDayStyle': {
|
|
106
|
+
color: colors['text-primary'],
|
|
104
107
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
'selectedDayBackgroundColor': colors['fill-warning'],
|
|
109
|
+
'selectedDayTextColor':
|
|
110
|
+
colorScheme === 'light' ? colors['text-primary'] : colors['text-inverse'],
|
|
111
|
+
'todayTextColor': colors['text-primary'],
|
|
112
|
+
'textDisabledColor': colors['text-disable-secondary'],
|
|
113
|
+
'stylesheet.day.basic': {
|
|
114
|
+
today: {
|
|
115
|
+
borderWidth: 2,
|
|
116
|
+
borderColor: colors['border-warning'],
|
|
117
|
+
borderRadius: 99,
|
|
118
|
+
},
|
|
119
|
+
base: {
|
|
120
|
+
width: 40,
|
|
121
|
+
height: 40,
|
|
122
|
+
alignItems: 'center',
|
|
123
|
+
justifyContent: 'center',
|
|
124
|
+
borderRadius: 99,
|
|
125
|
+
},
|
|
126
|
+
selected: {
|
|
127
|
+
borderRadius: 99,
|
|
128
|
+
backgroundColor: colors['fill-warning'],
|
|
129
|
+
},
|
|
113
130
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
'stylesheet.calendar.header': {
|
|
132
|
+
week: {
|
|
133
|
+
flexDirection: 'row',
|
|
134
|
+
justifyContent: 'space-between',
|
|
135
|
+
borderBottomWidth: 1,
|
|
136
|
+
borderBottomColor: colors['border-default'],
|
|
137
|
+
paddingBottom: 12,
|
|
138
|
+
},
|
|
139
|
+
dayHeader: {
|
|
140
|
+
fontFamily: 'Montserrat-Regular',
|
|
141
|
+
fontSize: 14,
|
|
142
|
+
color: colors['text-primary'],
|
|
143
|
+
},
|
|
118
144
|
},
|
|
119
|
-
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
return calendarTheme;
|
|
120
148
|
};
|
package/src/components/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
|
|
|
39
39
|
export { Countdown } from './countdown/countdown.component';
|
|
40
40
|
export { Loader } from './Loader/loader.component';
|
|
41
41
|
export { Notification } from './Notification/notification.component';
|
|
42
|
+
export { Pagination } from './Pagination/pagination.component';
|
|
42
43
|
export {
|
|
43
44
|
Mask,
|
|
44
45
|
MaskArray,
|
|
@@ -52,6 +53,8 @@ export {
|
|
|
52
53
|
} from 'react-native-mask-input';
|
|
53
54
|
export { SelectionCard } from './selection-card/SelectionCard.component';
|
|
54
55
|
export { Ribbon } from './Ribbon/Ribbon.component';
|
|
56
|
+
export { StickyBar } from './StickyBar/StickyBar.component';
|
|
57
|
+
export { View } from './View/View.component';
|
|
55
58
|
|
|
56
59
|
export type { ActionListProps } from './ActionList/ActionList.type';
|
|
57
60
|
export type {
|
|
@@ -80,3 +83,15 @@ export type { TabsProps } from './Tabs/Tabs.type';
|
|
|
80
83
|
export type { SearchInputProps } from './search-input/search-input.type';
|
|
81
84
|
export type { SelectionCardProps } from './selection-card/SelectionCard.type';
|
|
82
85
|
export type { RibbonProps } from './Ribbon/Ribbon.type';
|
|
86
|
+
export type { StickyBarProps } from './StickyBar/StickyBar.type';
|
|
87
|
+
export type { ViewProps } from './View/View.type';
|
|
88
|
+
export type {
|
|
89
|
+
RadioInputProps,
|
|
90
|
+
RadioItemProps,
|
|
91
|
+
RadioItemPropsComponent,
|
|
92
|
+
} from './RadioInput/RadioInput.type';
|
|
93
|
+
export type {
|
|
94
|
+
CheckboxInputProps,
|
|
95
|
+
CheckboxItemProps,
|
|
96
|
+
CheckboxItemPropsComponent,
|
|
97
|
+
} from './CheckBoxInput/CheckBoxInput.type';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Text } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import
|
|
3
|
+
|
|
4
|
+
import { useStyles } from './typography.style';
|
|
5
|
+
import { TypographyProps } from './typography.type';
|
|
6
|
+
import { useAppTheme } from '../../config';
|
|
5
7
|
|
|
6
8
|
const Typography = (props: TypographyProps) => {
|
|
7
9
|
const {
|
|
@@ -9,14 +11,25 @@ const Typography = (props: TypographyProps) => {
|
|
|
9
11
|
children = null,
|
|
10
12
|
textStyles,
|
|
11
13
|
style,
|
|
14
|
+
color = 'text-primary',
|
|
12
15
|
...rest
|
|
13
16
|
} = props;
|
|
14
17
|
|
|
15
|
-
const
|
|
18
|
+
const styles = useStyles({
|
|
19
|
+
variant,
|
|
20
|
+
...rest,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const { colors } = useAppTheme();
|
|
16
24
|
|
|
17
25
|
return (
|
|
18
26
|
<Text
|
|
19
|
-
style={[
|
|
27
|
+
style={[
|
|
28
|
+
styles.base,
|
|
29
|
+
{ color: colors[color] ?? colors['text-primary'] },
|
|
30
|
+
textStyles,
|
|
31
|
+
style,
|
|
32
|
+
]}
|
|
20
33
|
{...rest}
|
|
21
34
|
>
|
|
22
35
|
{children}
|