@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,17 +1,23 @@
|
|
|
1
|
-
import { Platform
|
|
2
|
-
import {
|
|
3
|
-
export const
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import { makeStyles } from '../../config';
|
|
3
|
+
export const useStyles = makeStyles((themes, props) => {
|
|
4
|
+
const {
|
|
5
|
+
colors,
|
|
6
|
+
Spacing,
|
|
7
|
+
Radius
|
|
8
|
+
} = themes;
|
|
4
9
|
const {
|
|
5
10
|
editable = true,
|
|
6
11
|
isError,
|
|
7
|
-
errorMessage
|
|
12
|
+
errorMessage,
|
|
13
|
+
focused: isFocused
|
|
8
14
|
} = props;
|
|
9
15
|
const stateColor = isError || errorMessage ? {
|
|
10
|
-
text:
|
|
11
|
-
border:
|
|
16
|
+
text: colors['text-danger'],
|
|
17
|
+
border: colors['border-danger']
|
|
12
18
|
} : {
|
|
13
|
-
text:
|
|
14
|
-
border: isFocused ?
|
|
19
|
+
text: editable ? colors['text-primary'] : colors['text-disable'],
|
|
20
|
+
border: isFocused ? colors['border-primary'] : colors['border-default']
|
|
15
21
|
};
|
|
16
22
|
const computedStyle = {};
|
|
17
23
|
computedStyle.fieldWrapper = {
|
|
@@ -27,8 +33,8 @@ export const getStyle = (props, isFocused) => {
|
|
|
27
33
|
position: 'absolute'
|
|
28
34
|
};
|
|
29
35
|
computedStyle.label = {
|
|
30
|
-
color: editable ?
|
|
31
|
-
backgroundColor:
|
|
36
|
+
color: editable ? colors['text-primary'] : colors['text-disable'],
|
|
37
|
+
backgroundColor: editable ? colors['fill-inverse'] : colors['fill-disable-secondary'],
|
|
32
38
|
paddingHorizontal: Spacing[4],
|
|
33
39
|
borderRadius: Radius[4],
|
|
34
40
|
marginLeft: Spacing[8]
|
|
@@ -40,14 +46,14 @@ export const getStyle = (props, isFocused) => {
|
|
|
40
46
|
alignItems: 'center',
|
|
41
47
|
borderWidth: Radius.border,
|
|
42
48
|
borderColor: stateColor.border,
|
|
43
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: editable ? colors['fill-inverse'] : colors['fill-disable-secondary'],
|
|
44
50
|
borderRadius: Radius[8],
|
|
45
51
|
padding: Spacing[8],
|
|
46
52
|
width: '100%'
|
|
47
53
|
};
|
|
48
54
|
computedStyle.textField = {
|
|
49
55
|
flex: 1,
|
|
50
|
-
color: editable ?
|
|
56
|
+
color: editable ? colors['text-primary'] : colors['text-disable'],
|
|
51
57
|
padding: 0,
|
|
52
58
|
margin: 0,
|
|
53
59
|
overflow: 'visible',
|
|
@@ -62,11 +68,11 @@ export const getStyle = (props, isFocused) => {
|
|
|
62
68
|
};
|
|
63
69
|
computedStyle.counter = {
|
|
64
70
|
marginLeft: Spacing[4],
|
|
65
|
-
color: isFocused ?
|
|
71
|
+
color: isFocused ? colors['text-primary'] : colors['text-disable']
|
|
66
72
|
};
|
|
67
73
|
computedStyle.inputIconWrapper = {
|
|
68
74
|
marginLeft: Spacing[4]
|
|
69
75
|
};
|
|
70
|
-
return
|
|
71
|
-
};
|
|
76
|
+
return computedStyle;
|
|
77
|
+
});
|
|
72
78
|
//# sourceMappingURL=TextInput.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","
|
|
1
|
+
{"version":3,"names":["Platform","makeStyles","useStyles","themes","props","colors","Spacing","Radius","editable","isError","errorMessage","focused","isFocused","stateColor","text","border","computedStyle","fieldWrapper","width","fieldContainer","alignItems","justifyContent","labelContainer","zIndex","position","label","color","backgroundColor","paddingHorizontal","borderRadius","marginLeft","inputWrapper","height","flexDirection","borderWidth","borderColor","padding","textField","flex","margin","overflow","fontSize","lineHeight","OS","fontFamily","messageHelper","alignSelf","marginTop","counter","inputIconWrapper"],"sourceRoot":"../../../../src","sources":["components/TextInput/TextInput.style.tsx"],"mapp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DW,aAAa,CAACiC,gBAAgB,GAAG;IAC/BnB,UAAU,EAAExB,OAAO,CAAC,CAAC;EACvB,CAAC;EAED,OAAOU,aAAa;AACtB,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import React from 'react';
|
|
3
|
+
import { View as RNView } from 'react-native';
|
|
4
|
+
import { makeStyles } from '../../config';
|
|
5
|
+
import { Shadow, Radius } from '../../themes';
|
|
6
|
+
export function View(props) {
|
|
7
|
+
const {
|
|
8
|
+
style,
|
|
9
|
+
children,
|
|
10
|
+
...rest
|
|
11
|
+
} = props;
|
|
12
|
+
const styles = useStyles(props);
|
|
13
|
+
return /*#__PURE__*/React.createElement(RNView, _extends({
|
|
14
|
+
style: [styles.base, style]
|
|
15
|
+
}, rest), children);
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles((theme, props) => {
|
|
18
|
+
let {
|
|
19
|
+
shadow = 'none',
|
|
20
|
+
radius
|
|
21
|
+
} = props;
|
|
22
|
+
if (!Shadow[shadow]) {
|
|
23
|
+
shadow = 'none';
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
base: {
|
|
27
|
+
backgroundColor: props.backgrounColor && theme.colors[props.backgrounColor] ? theme.colors[props.backgrounColor] : 'transparent',
|
|
28
|
+
borderColor: props.borderColor && theme.colors[props.borderColor] ? theme.colors[props.borderColor] : 'transparent',
|
|
29
|
+
borderWidth: props.borderColor && theme.colors[props.borderColor] ? 1 : 0,
|
|
30
|
+
borderRadius: radius && Radius[radius] ? Radius[radius] : 0,
|
|
31
|
+
...Shadow[shadow]
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=View.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","RNView","makeStyles","Shadow","Radius","props","style","children","rest","styles","useStyles","createElement","_extends","base","theme","shadow","radius","backgroundColor","backgrounColor","colors","borderColor","borderWidth","borderRadius"],"sourceRoot":"../../../../src","sources":["components/View/View.component.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,MAAM,QAAQ,cAAc;AAG7C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,MAAM,EAAEC,MAAM,QAAQ,cAAc;AAE7C,OAAO,SAASJ,IAAIA,CAACK,KAAgB,EAAE;EACrC,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAE1C,MAAMI,MAAM,GAAGC,SAAS,CAACL,KAAK,CAAC;EAE/B,oBACEN,KAAA,CAAAY,aAAA,CAACV,MAAM,EAAAW,QAAA;IAACN,KAAK,EAAE,CAACG,MAAM,CAACI,IAAI,EAAEP,KAAK;EAAE,GAAKE,IAAI,GAC1CD,QACK,CAAC;AAEb;AAEA,MAAMG,SAAS,GAAGR,UAAU,CAAC,CAACY,KAAK,EAAET,KAAgB,KAAK;EACxD,IAAI;IAAEU,MAAM,GAAG,MAAM;IAAEC;EAAO,CAAC,GAAGX,KAAK;EAEvC,IAAI,CAACF,MAAM,CAACY,MAAM,CAAC,EAAE;IACnBA,MAAM,GAAG,MAAM;EACjB;EAEA,OAAO;IACLF,IAAI,EAAE;MACJI,eAAe,EACbZ,KAAK,CAACa,cAAc,IAAIJ,KAAK,CAACK,MAAM,CAACd,KAAK,CAACa,cAAc,CAAC,GACtDJ,KAAK,CAACK,MAAM,CAACd,KAAK,CAACa,cAAc,CAAC,GAClC,aAAa;MACnBE,WAAW,EACTf,KAAK,CAACe,WAAW,IAAIN,KAAK,CAACK,MAAM,CAACd,KAAK,CAACe,WAAW,CAAC,GAChDN,KAAK,CAACK,MAAM,CAACd,KAAK,CAACe,WAAW,CAAC,GAC/B,aAAa;MACnBC,WAAW,EAAEhB,KAAK,CAACe,WAAW,IAAIN,KAAK,CAACK,MAAM,CAACd,KAAK,CAACe,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC;MACzEE,YAAY,EAAEN,MAAM,IAAIZ,MAAM,CAACY,MAAM,CAAC,GAAGZ,MAAM,CAACY,MAAM,CAAC,GAAG,CAAC;MAC3D,GAAGb,MAAM,CAACY,MAAM;IAClB;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/View/View.type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 React from 'react';
|
|
3
3
|
import { TouchableHighlight } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { useStyles } from './button.styles';
|
|
5
|
+
import { useAppTheme } from '../../config';
|
|
5
6
|
import { Typography } from '../typography/typography.component';
|
|
6
|
-
import { getStyle } from './button.styles';
|
|
7
7
|
const Button = props => {
|
|
8
8
|
const {
|
|
9
9
|
onPress = () => {},
|
|
@@ -16,7 +16,10 @@ const Button = props => {
|
|
|
16
16
|
disabled = false,
|
|
17
17
|
...rest
|
|
18
18
|
} = props;
|
|
19
|
-
const
|
|
19
|
+
const {
|
|
20
|
+
colors
|
|
21
|
+
} = useAppTheme();
|
|
22
|
+
const computedStyle = useStyles({
|
|
20
23
|
...props,
|
|
21
24
|
variant,
|
|
22
25
|
label,
|
|
@@ -25,7 +28,7 @@ const Button = props => {
|
|
|
25
28
|
return /*#__PURE__*/React.createElement(TouchableHighlight, _extends({
|
|
26
29
|
onPress: onPress,
|
|
27
30
|
style: [computedStyle.container, containerStyles],
|
|
28
|
-
underlayColor: variant !== 'primary' ?
|
|
31
|
+
underlayColor: variant !== 'primary' ? colors['fill-info-secondary'] : colors['button-primary'],
|
|
29
32
|
disabled: !enablePressWhenDisabled && disabled
|
|
30
33
|
}, rest), /*#__PURE__*/React.createElement(Typography, {
|
|
31
34
|
variant: size === 'large' ? 'button' : 'button-small',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableHighlight","
|
|
1
|
+
{"version":3,"names":["React","TouchableHighlight","useStyles","useAppTheme","Typography","Button","props","onPress","variant","label","size","containerStyles","textStyles","enablePressWhenDisabled","disabled","rest","colors","computedStyle","createElement","_extends","style","container","underlayColor"],"sourceRoot":"../../../../src","sources":["components/button/button.component.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,cAAc;AAEjD,SAASC,SAAS,QAAQ,iBAAiB;AAE3C,SAASC,WAAW,QAAQ,cAAc;AAC1C,SAASC,UAAU,QAAQ,oCAAoC;AAI/D,MAAMC,MAA6B,GAAIC,KAAK,IAAK;EAC/C,MAAM;IACJC,OAAO,GAAGA,CAAA,KAAM,CAAC,CAAC;IAClBC,OAAO,GAAG,SAAS;IACnBC,KAAK,GAAG,SAAS;IACjBC,IAAI,GAAG,OAAO;IACdC,eAAe;IACfC,UAAU;IACVC,uBAAuB,GAAG,KAAK;IAC/BC,QAAQ,GAAG,KAAK;IAChB,GAAGC;EACL,CAAC,GAAGT,KAAK;EAET,MAAM;IAAEU;EAAO,CAAC,GAAGb,WAAW,CAAC,CAAC;EAEhC,MAAMc,aAAa,GAAGf,SAAS,CAAC;IAC9B,GAAGI,KAAK;IACRE,OAAO;IACPC,KAAK;IACLC;EACF,CAAC,CAAC;EAEF,oBACEV,KAAA,CAAAkB,aAAA,CAACjB,kBAAkB,EAAAkB,QAAA;IACjBZ,OAAO,EAAEA,OAAQ;IACjBa,KAAK,EAAE,CAACH,aAAa,CAACI,SAAS,EAAEV,eAAe,CAAE;IAClDW,aAAa,EACXd,OAAO,KAAK,SAAS,GACjBQ,MAAM,CAAC,qBAAqB,CAAC,GAC7BA,MAAM,CAAC,gBAAgB,CAC5B;IACDF,QAAQ,EAAE,CAACD,uBAAuB,IAAIC;EAAS,GAC3CC,IAAI,gBAERf,KAAA,CAAAkB,aAAA,CAACd,UAAU;IACTI,OAAO,EAAEE,IAAI,KAAK,OAAO,GAAG,QAAQ,GAAG,cAAe;IACtDE,UAAU,EAAE;MAAE,GAAGK,aAAa,CAACR,KAAK;MAAE,GAAGG;IAAW;EAAE,GAErDH,KACS,CACM,CAAC;AAEzB,CAAC;AAED,SAASJ,MAAM","ignoreList":[]}
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
export const
|
|
2
|
+
import { makeStyles } from '../../config';
|
|
3
|
+
export const useStyles = makeStyles((themes, props) => {
|
|
4
4
|
const {
|
|
5
5
|
variant,
|
|
6
6
|
size,
|
|
7
7
|
disabled = false
|
|
8
8
|
} = props;
|
|
9
|
+
const {
|
|
10
|
+
colors,
|
|
11
|
+
Radius,
|
|
12
|
+
Spacing
|
|
13
|
+
} = themes;
|
|
9
14
|
const computedStyle = {};
|
|
10
15
|
const getLabelColor = () => {
|
|
11
16
|
if (disabled) {
|
|
12
|
-
return
|
|
17
|
+
return colors['text-disable'];
|
|
13
18
|
}
|
|
14
19
|
if (variant === 'primary') {
|
|
15
|
-
return
|
|
20
|
+
return colors['text-inverse'];
|
|
16
21
|
}
|
|
17
|
-
return
|
|
22
|
+
return colors['button-info'];
|
|
18
23
|
};
|
|
19
24
|
const getBackgroundColor = () => {
|
|
20
25
|
if (disabled) {
|
|
21
|
-
return variant === 'primary' ?
|
|
26
|
+
return variant === 'primary' ? colors['button-disable'] : 'transparent';
|
|
22
27
|
}
|
|
23
28
|
if (variant === 'primary') {
|
|
24
|
-
return
|
|
29
|
+
return colors['button-primary'];
|
|
25
30
|
}
|
|
26
31
|
return 'transparent';
|
|
27
32
|
};
|
|
@@ -36,7 +41,7 @@ export const getStyle = props => {
|
|
|
36
41
|
if (variant !== 'tertiary') {
|
|
37
42
|
computedStyle.container = {
|
|
38
43
|
...computedStyle.container,
|
|
39
|
-
borderColor: disabled ?
|
|
44
|
+
borderColor: disabled ? colors['button-disable'] : variant === 'primary' ? colors['button-primary'] : colors['button-info']
|
|
40
45
|
};
|
|
41
46
|
}
|
|
42
47
|
if (size === 'large') {
|
|
@@ -52,5 +57,5 @@ export const getStyle = props => {
|
|
|
52
57
|
textAlign: 'center'
|
|
53
58
|
};
|
|
54
59
|
return StyleSheet.create(computedStyle);
|
|
55
|
-
};
|
|
60
|
+
});
|
|
56
61
|
//# sourceMappingURL=button.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","
|
|
1
|
+
{"version":3,"names":["StyleSheet","makeStyles","useStyles","themes","props","variant","size","disabled","colors","Radius","Spacing","computedStyle","getLabelColor","getBackgroundColor","container","borderColor","borderWidth","border","backgroundColor","paddingHorizontal","paddingVertical","borderRadius","width","label","color","textAlign","create"],"sourceRoot":"../../../../src","sources":["components/button/button.styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAA8B,cAAc;AAG/D,SAASC,UAAU,QAAQ,cAAc;AAOzC,OAAO,MAAMC,SAAS,GAAGD,UAAU,CAAC,CAACE,MAAM,EAAEC,KAAkB,KAAK;EAClE,MAAM;IAAEC,OAAO;IAAEC,IAAI;IAAEC,QAAQ,GAAG;EAAM,CAAC,GAAGH,KAAK;EACjD,MAAM;IAAEI,MAAM;IAAEC,MAAM;IAAEC;EAAQ,CAAC,GAAGP,MAAM;EAE1C,MAAMQ,aAAiC,GAAG,CAAC,CAAC;EAE5C,MAAMC,aAAa,GAAGA,CAAA,KAAM;IAC1B,IAAIL,QAAQ,EAAE;MACZ,OAAOC,MAAM,CAAC,cAAc,CA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EZ,aAAa,CAAC,CAAC;IACtBa,SAAS,EAAE;EACb,CAAC;EAED,OAAOzB,UAAU,CAAC0B,MAAM,CAACf,aAAa,CAAC;AACzC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,17 +3,17 @@ import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
|
3
3
|
import { TouchableHighlight, View } from 'react-native';
|
|
4
4
|
import { Calendar, LocaleConfig } from 'react-native-calendars';
|
|
5
5
|
import ReactNativeModal from 'react-native-modal';
|
|
6
|
-
import { Palettes, Spacing } from '../../themes';
|
|
7
6
|
import { adjustDate, findYearPairIndex, generateYearPairs, getFullDate, getMonth, getYear } from './calendars.service';
|
|
8
|
-
import {
|
|
7
|
+
import { getCalendarTheme, useStyles } from './calendars.style';
|
|
9
8
|
import { MonthID } from './calendars.type';
|
|
9
|
+
import { MonthPickerModal, YearPicker } from './month-picker-modal.component';
|
|
10
|
+
import { useAppTheme } from '../../config';
|
|
10
11
|
import { IconChevronLeft, IconChevronRight } from '../../icons';
|
|
11
|
-
import { Typography } from '../typography/typography.component';
|
|
12
12
|
import { Button } from '../button/button.component';
|
|
13
|
-
import {
|
|
13
|
+
import { Typography } from '../typography/typography.component';
|
|
14
14
|
|
|
15
15
|
// localization for calendar component
|
|
16
|
-
LocaleConfig.locales
|
|
16
|
+
LocaleConfig.locales.id = MonthID;
|
|
17
17
|
LocaleConfig.defaultLocale = 'id';
|
|
18
18
|
export function Calendars({
|
|
19
19
|
isVisible,
|
|
@@ -25,7 +25,12 @@ export function Calendars({
|
|
|
25
25
|
selectedDate,
|
|
26
26
|
...rest
|
|
27
27
|
}) {
|
|
28
|
-
const
|
|
28
|
+
const {
|
|
29
|
+
colors,
|
|
30
|
+
colorScheme,
|
|
31
|
+
Spacing
|
|
32
|
+
} = useAppTheme();
|
|
33
|
+
const computedStyle = useStyles();
|
|
29
34
|
const [dateindicator, setDateIndicator] = useState(selectedDate || initialDate);
|
|
30
35
|
const [markedDate, setMarkedDate] = useState({});
|
|
31
36
|
const [selectMode, setSelectMode] = useState('calendar');
|
|
@@ -38,12 +43,6 @@ export function Calendars({
|
|
|
38
43
|
if (maxDate) {
|
|
39
44
|
maxYear = new Date(maxDate).getFullYear();
|
|
40
45
|
}
|
|
41
|
-
console.log({
|
|
42
|
-
minYear,
|
|
43
|
-
maxYear,
|
|
44
|
-
minDate,
|
|
45
|
-
maxDate
|
|
46
|
-
});
|
|
47
46
|
return generateYearPairs(minYear, maxYear, 12);
|
|
48
47
|
}, [minDate, maxDate]);
|
|
49
48
|
const initYearPairIndex = findYearPairIndex(yearIntervalPair, (initialDate === null || initialDate === void 0 ? void 0 : initialDate.getFullYear()) || 0);
|
|
@@ -93,10 +92,13 @@ export function Calendars({
|
|
|
93
92
|
const keys = Object.keys(markedDate);
|
|
94
93
|
if (keys.length <= 0) return;
|
|
95
94
|
const testDate = markedDate[keys[0] || ''];
|
|
96
|
-
const
|
|
97
|
-
onDateSave === null || onDateSave === void 0 || onDateSave(
|
|
95
|
+
const selectedDateTemp = new Date(testDate === null || testDate === void 0 ? void 0 : testDate.timestamp);
|
|
96
|
+
onDateSave === null || onDateSave === void 0 || onDateSave(selectedDateTemp);
|
|
98
97
|
onDismiss();
|
|
99
98
|
};
|
|
99
|
+
const calendarTheme = useMemo(() => {
|
|
100
|
+
return getCalendarTheme(colors, colorScheme);
|
|
101
|
+
}, [colors, colorScheme]);
|
|
100
102
|
return /*#__PURE__*/React.createElement(ReactNativeModal, {
|
|
101
103
|
isVisible: isVisible,
|
|
102
104
|
onBackdropPress: handleOnDismiss,
|
|
@@ -122,34 +124,25 @@ export function Calendars({
|
|
|
122
124
|
}, selectMode === 'calendar' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Calendar, _extends({
|
|
123
125
|
markedDates: markedDate,
|
|
124
126
|
initialDate: getFullDate(dateindicator),
|
|
125
|
-
style:
|
|
126
|
-
marginHorizontal: Spacing[12]
|
|
127
|
-
},
|
|
127
|
+
style: computedStyle.calendarStyle,
|
|
128
128
|
theme: calendarTheme,
|
|
129
129
|
renderHeader: () => null,
|
|
130
130
|
renderArrow: () => null,
|
|
131
131
|
onDayPress: onDayPress,
|
|
132
132
|
enableSwipeMonths: true,
|
|
133
133
|
minDate: minDate,
|
|
134
|
-
maxDate: maxDate
|
|
134
|
+
maxDate: maxDate,
|
|
135
|
+
firstDay: 1
|
|
135
136
|
}, rest)), /*#__PURE__*/React.createElement(View, {
|
|
136
137
|
style: computedStyle.calendarBottomContainer
|
|
137
138
|
}, /*#__PURE__*/React.createElement(View, {
|
|
138
|
-
style:
|
|
139
|
-
flex: 1
|
|
140
|
-
}
|
|
139
|
+
style: computedStyle.flex
|
|
141
140
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
142
141
|
label: "Batal",
|
|
143
142
|
variant: "secondary",
|
|
144
143
|
onPress: handleOnDismiss
|
|
145
144
|
})), /*#__PURE__*/React.createElement(View, {
|
|
146
|
-
style:
|
|
147
|
-
width: 16
|
|
148
|
-
}
|
|
149
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
150
|
-
style: {
|
|
151
|
-
flex: 1
|
|
152
|
-
}
|
|
145
|
+
style: computedStyle.flex
|
|
153
146
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
154
147
|
label: "Simpan",
|
|
155
148
|
onPress: handleOnDateSubmit,
|
|
@@ -173,36 +166,43 @@ const CalendarHeader = /*#__PURE__*/memo(function ({
|
|
|
173
166
|
handleOnArrowPress
|
|
174
167
|
}) {
|
|
175
168
|
var _yearIntervalPair$yea, _yearIntervalPair$yea2;
|
|
176
|
-
const computedStyle =
|
|
169
|
+
const computedStyle = useStyles();
|
|
170
|
+
const {
|
|
171
|
+
colors
|
|
172
|
+
} = useAppTheme();
|
|
177
173
|
return /*#__PURE__*/React.createElement(View, {
|
|
178
174
|
style: computedStyle.headerContainer
|
|
179
175
|
}, /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
180
176
|
onPress: () => handleOnArrowPress('left'),
|
|
181
177
|
style: computedStyle.headerArrowWrapper,
|
|
182
|
-
underlayColor:
|
|
183
|
-
}, /*#__PURE__*/React.createElement(IconChevronLeft,
|
|
178
|
+
underlayColor: colors['fill-disable'] + 33
|
|
179
|
+
}, /*#__PURE__*/React.createElement(IconChevronLeft, {
|
|
180
|
+
fill: colors['icon-primary']
|
|
181
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
184
182
|
style: computedStyle.headerCenterWrapper
|
|
185
183
|
}, mode === 'calendar' || mode === 'month' ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
186
184
|
onPress: () => handleSelectMode('month'),
|
|
187
185
|
style: computedStyle.headerCenterItem,
|
|
188
|
-
underlayColor:
|
|
186
|
+
underlayColor: colors['fill-disable'] + 33
|
|
189
187
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
190
188
|
variant: "button"
|
|
191
189
|
}, getMonth(initialDate))), /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
192
190
|
onPress: () => handleSelectMode('year'),
|
|
193
191
|
style: computedStyle.headerCenterItem,
|
|
194
|
-
underlayColor:
|
|
192
|
+
underlayColor: colors['fill-disable'] + 33
|
|
195
193
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
196
194
|
variant: "button"
|
|
197
195
|
}, getYear(initialDate)))) : /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
198
196
|
style: computedStyle.headerCenterItem,
|
|
199
|
-
underlayColor:
|
|
197
|
+
underlayColor: colors['fill-disable'] + 33
|
|
200
198
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
201
199
|
variant: "button"
|
|
202
200
|
}, (_yearIntervalPair$yea = yearIntervalPair[yearPairSelectIndex]) === null || _yearIntervalPair$yea === void 0 ? void 0 : _yearIntervalPair$yea[1], " -", ' ', (_yearIntervalPair$yea2 = yearIntervalPair[yearPairSelectIndex]) === null || _yearIntervalPair$yea2 === void 0 ? void 0 : _yearIntervalPair$yea2[0]))), /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
203
201
|
onPress: () => handleOnArrowPress('right'),
|
|
204
202
|
style: computedStyle.headerArrowWrapper,
|
|
205
|
-
underlayColor:
|
|
206
|
-
}, /*#__PURE__*/React.createElement(IconChevronRight,
|
|
203
|
+
underlayColor: colors['fill-disable'] + 33
|
|
204
|
+
}, /*#__PURE__*/React.createElement(IconChevronRight, {
|
|
205
|
+
fill: colors['icon-primary']
|
|
206
|
+
})));
|
|
207
207
|
});
|
|
208
208
|
//# sourceMappingURL=calendars.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","useState","TouchableHighlight","View","Calendar","LocaleConfig","ReactNativeModal","
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useState","TouchableHighlight","View","Calendar","LocaleConfig","ReactNativeModal","adjustDate","findYearPairIndex","generateYearPairs","getFullDate","getMonth","getYear","getCalendarTheme","useStyles","MonthID","MonthPickerModal","YearPicker","useAppTheme","IconChevronLeft","IconChevronRight","Button","Typography","locales","id","defaultLocale","Calendars","isVisible","initialDate","Date","onDismiss","minDate","maxDate","onDateSave","selectedDate","rest","colors","colorScheme","Spacing","computedStyle","dateindicator","setDateIndicator","markedDate","setMarkedDate","selectMode","setSelectMode","yearIntervalPair","minYear","maxYear","getFullYear","initYearPairIndex","yearPairSelectIndex","setYearPairSelectIndex","handleOnMonthChange","num","handleOnArrowPress","direction","length","e","onDayPress","dates","timestamp","dateString","selected","handleSelectModeChange","mode","handleOnDismiss","handleOnDateSubmit","keys","Object","testDate","selectedDateTemp","calendarTheme","createElement","onBackdropPress","onBackButtonPress","backdropTransitionOutTiming","needsOffscreenAlphaCompositing","animationIn","animationOut","style","modalContainer","container","CalendarHeader","handleSelectMode","calendarContainer","paddingHorizontal","Fragment","_extends","markedDates","calendarStyle","theme","renderHeader","renderArrow","enableSwipeMonths","firstDay","calendarBottomContainer","flex","label","variant","onPress","disabled","onMonthChange","onYearChange","_yearIntervalPair$yea","_yearIntervalPair$yea2","headerContainer","headerArrowWrapper","underlayColor","fill","headerCenterWrapper","headerCenterItem"],"sourceRoot":"../../../../src","sources":["components/calendars/calendars.component.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACnE,SAASC,kBAAkB,EAAEC,IAAI,QAAQ,cAAc;AACvD,SAASC,QAAQ,EAAEC,YAAY,QAAQ,wBAAwB;AAE/D,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,SACEC,UAAU,EACVC,iBAAiB,EACjBC,iBAAiB,EACjBC,WAAW,EACXC,QAAQ,EACRC,OAAO,QACF,qBAAqB;AAC5B,SAASC,gBAAgB,EAAEC,SAAS,QAAQ,mBAAmB;AAC/D,SAAyCC,OAAO,QAAQ,kBAAkB;AAC1E,SAASC,gBAAgB,EAAEC,UAAU,QAAQ,gCAAgC;AAE7E,SAASC,WAAW,QAAQ,cAAc;AAC1C,SAASC,eAAe,EAAEC,gBAAgB,QAAQ,aAAa;AAC/D,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,UAAU,QAAQ,oCAAoC;;AAE/D;AACAjB,YAAY,CAACkB,OAAO,CAACC,EAAE,GAAGT,OAAO;AACjCV,YAAY,CAACoB,aAAa,GAAG,IAAI;AAMjC,OAAO,SAASC,SAASA,CAAC;EACxBC,SAAS;EACTC,WAAW,GAAG,IAAIC,IAAI,CAAC,CAAC;EACxBC,SAAS,GAAGA,CAAA,KAAM,CAAC,CAAC;EACpBC,OAAO;EACPC,OAAO;EACPC,UAAU;EACVC,YAAY;EACZ,GAAGC;AACe,CAAC,EAAE;EACrB,MAAM;IAAEC,MAAM;IAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAGpB,WAAW,CAAC,CAAC;EACtD,MAAMqB,aAAa,GAAGzB,SAAS,CAAC,CAAC;EAEjC,MAAM,CAAC0B,aAAa,EAAE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AAA,CAAA4E,aAAA,CAACvE,kBAAkB;IACjBkG,OAAO,EAAEA,CAAA,KAAM7C,kBAAkB,CAAC,OAAO,CAAE;IAC3CyB,KAAK,EAAEzC,aAAa,CAACoE,kBAAmB;IACxCC,aAAa,EAAExE,MAAM,CAAC,cAAc,CAAC,GAAG;EAAG,gBAE3CvC,KAAA,CAAA4E,aAAA,CAACrD,gBAAgB;IAACyF,IAAI,EAAEzE,MAAM,CAAC,cAAc;EAAE,CAAE,CAC/B,CAChB,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getMonth","date","Intl","DateTimeFormat","month","format","getYear","year","getFullDate","formatter","day","formattedDate","replace","adjustDate","number","newDate","Date","setMonth","generateYearPairs","endYear","startYear","interval","yearPairs","currentYear","push","findYearPairIndex","years","targetYear","i","length","pair"],"sourceRoot":"../../../../src","sources":["components/calendars/calendars.service.ts"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,GAAIC,IAAU,IAAK;EACtC,OAAO,IAAIC,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IAAEC,KAAK,EAAE;EAAO,CAAC,CAAC,CAACC,MAAM,CAACJ,IAAI,CAAC;AACzE,CAAC;AAED,OAAO,MAAMK,OAAO,GAAIL,IAAU,IAAK;EACrC,OAAO,IAAIC,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IAAEI,IAAI,EAAE;EAAU,CAAC,CAAC,CAACF,MAAM,CAACJ,IAAI,CAAC;AAC3E,CAAC;AAED,OAAO,MAAMO,WAAW,GAAIP,IAAU,IAAK;EACzC,MAAMQ,SAAS,GAAG,IAAIP,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IACjDI,IAAI,EAAE,SAAS;IACfH,KAAK,EAAE,SAAS;IAChBM,GAAG,EAAE;EACP,CAAC,CAAC;;EAEF;EACA,MAAMC,aAAa,GAAGF,SAAS,CAACJ,MAAM,CAACJ,IAAI,CAAC;;EAE5C;EACA;EACA,OAAOU,aAAa,CAACC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;AAC1C,CAAC;AAED,OAAO,SAASC,UAAUA,CAACZ,IAAU,EAAEa,MAAc,EAAE;EACrD;EACA,MAAMC,OAAO,GAAG,IAAIC,IAAI,CAACf,IAAI,CAAC;;EAE9B;EACAc,OAAO,CAACE,QAAQ,CAACF,OAAO,CAACf,QAAQ,CAAC,CAAC,GAAGc,MAAM,CAAC;EAE7C,OAAOC,OAAO;AAChB;AAIA;AACA,OAAO,SAASG,iBAAiBA,
|
|
1
|
+
{"version":3,"names":["getMonth","date","Intl","DateTimeFormat","month","format","getYear","year","getFullDate","formatter","day","formattedDate","replace","adjustDate","number","newDate","Date","setMonth","generateYearPairs","endYear","startYear","interval","yearPairs","currentYear","push","findYearPairIndex","years","targetYear","i","length","pair"],"sourceRoot":"../../../../src","sources":["components/calendars/calendars.service.ts"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,GAAIC,IAAU,IAAK;EACtC,OAAO,IAAIC,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IAAEC,KAAK,EAAE;EAAO,CAAC,CAAC,CAACC,MAAM,CAACJ,IAAI,CAAC;AACzE,CAAC;AAED,OAAO,MAAMK,OAAO,GAAIL,IAAU,IAAK;EACrC,OAAO,IAAIC,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IAAEI,IAAI,EAAE;EAAU,CAAC,CAAC,CAACF,MAAM,CAACJ,IAAI,CAAC;AAC3E,CAAC;AAED,OAAO,MAAMO,WAAW,GAAIP,IAAU,IAAK;EACzC,MAAMQ,SAAS,GAAG,IAAIP,IAAI,CAACC,cAAc,CAAC,OAAO,EAAE;IACjDI,IAAI,EAAE,SAAS;IACfH,KAAK,EAAE,SAAS;IAChBM,GAAG,EAAE;EACP,CAAC,CAAC;;EAEF;EACA,MAAMC,aAAa,GAAGF,SAAS,CAACJ,MAAM,CAACJ,IAAI,CAAC;;EAE5C;EACA;EACA,OAAOU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