@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
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultTheme = exports.defaultFontFamilyStyle = exports.defaultFontFamily = void 0;
|
|
7
|
+
var _themes = require("../themes");
|
|
8
|
+
const defaultFontFamily = exports.defaultFontFamily = {
|
|
9
|
+
regular: 'Montserrat-Regular',
|
|
10
|
+
regularItalic: 'Montserrat-Italic',
|
|
11
|
+
semibold: 'Montserrat-SemiBold',
|
|
12
|
+
semiboldItalic: 'Montserrat-SemiBoldItalic',
|
|
13
|
+
bold: 'Montserrat-Bold',
|
|
14
|
+
boldItalic: 'Montserrat-BoldItalic'
|
|
15
|
+
};
|
|
16
|
+
const defaultFontFamilyStyle = exports.defaultFontFamilyStyle = {
|
|
17
|
+
'heading1-semibold': {
|
|
18
|
+
fontType: 'semibold',
|
|
19
|
+
fontSize: 92,
|
|
20
|
+
lineHeight: 144
|
|
21
|
+
},
|
|
22
|
+
'heading1-regular': {
|
|
23
|
+
fontType: 'regular',
|
|
24
|
+
fontSize: 92,
|
|
25
|
+
lineHeight: 144
|
|
26
|
+
},
|
|
27
|
+
'heading2-semibold': {
|
|
28
|
+
fontType: 'semibold',
|
|
29
|
+
fontSize: 60,
|
|
30
|
+
lineHeight: 90
|
|
31
|
+
},
|
|
32
|
+
'heading2-regular': {
|
|
33
|
+
fontType: 'regular',
|
|
34
|
+
fontSize: 60,
|
|
35
|
+
lineHeight: 90
|
|
36
|
+
},
|
|
37
|
+
'heading3-semibold': {
|
|
38
|
+
fontType: 'semibold',
|
|
39
|
+
fontSize: 48,
|
|
40
|
+
lineHeight: 72
|
|
41
|
+
},
|
|
42
|
+
'heading3-regular': {
|
|
43
|
+
fontType: 'regular',
|
|
44
|
+
fontSize: 48,
|
|
45
|
+
lineHeight: 72
|
|
46
|
+
},
|
|
47
|
+
'heading4-semibold': {
|
|
48
|
+
fontType: 'semibold',
|
|
49
|
+
fontSize: 34,
|
|
50
|
+
lineHeight: 51
|
|
51
|
+
},
|
|
52
|
+
'heading4-regular': {
|
|
53
|
+
fontType: 'regular',
|
|
54
|
+
fontSize: 34,
|
|
55
|
+
lineHeight: 51
|
|
56
|
+
},
|
|
57
|
+
'heading5-bold': {
|
|
58
|
+
fontType: 'bold',
|
|
59
|
+
fontSize: 24,
|
|
60
|
+
lineHeight: 36
|
|
61
|
+
},
|
|
62
|
+
'heading5-semibold': {
|
|
63
|
+
fontType: 'semibold',
|
|
64
|
+
fontSize: 24,
|
|
65
|
+
lineHeight: 36
|
|
66
|
+
},
|
|
67
|
+
'heading5-regular': {
|
|
68
|
+
fontType: 'regular',
|
|
69
|
+
fontSize: 24,
|
|
70
|
+
lineHeight: 36
|
|
71
|
+
},
|
|
72
|
+
'heading6-bold': {
|
|
73
|
+
fontType: 'bold',
|
|
74
|
+
fontSize: 20,
|
|
75
|
+
lineHeight: 30
|
|
76
|
+
},
|
|
77
|
+
'heading6-semibold': {
|
|
78
|
+
fontType: 'semibold',
|
|
79
|
+
fontSize: 20,
|
|
80
|
+
lineHeight: 30
|
|
81
|
+
},
|
|
82
|
+
'heading6-regular': {
|
|
83
|
+
fontType: 'regular',
|
|
84
|
+
fontSize: 20,
|
|
85
|
+
lineHeight: 30
|
|
86
|
+
},
|
|
87
|
+
'subheading': {
|
|
88
|
+
fontType: 'semibold',
|
|
89
|
+
fontSize: 18,
|
|
90
|
+
lineHeight: 27
|
|
91
|
+
},
|
|
92
|
+
'subtitle1': {
|
|
93
|
+
fontType: 'semibold',
|
|
94
|
+
fontSize: 16,
|
|
95
|
+
lineHeight: 24
|
|
96
|
+
},
|
|
97
|
+
'subtitle2': {
|
|
98
|
+
fontType: 'semibold',
|
|
99
|
+
fontSize: 14,
|
|
100
|
+
lineHeight: 21
|
|
101
|
+
},
|
|
102
|
+
'subtitle2-extrabold': {
|
|
103
|
+
fontType: 'bold',
|
|
104
|
+
fontSize: 14,
|
|
105
|
+
lineHeight: 21
|
|
106
|
+
},
|
|
107
|
+
'body1': {
|
|
108
|
+
fontType: 'regular',
|
|
109
|
+
fontSize: 16,
|
|
110
|
+
lineHeight: 24
|
|
111
|
+
},
|
|
112
|
+
'body2': {
|
|
113
|
+
fontType: 'regular',
|
|
114
|
+
fontSize: 14,
|
|
115
|
+
lineHeight: 21
|
|
116
|
+
},
|
|
117
|
+
'body3': {
|
|
118
|
+
fontType: 'regular',
|
|
119
|
+
fontSize: 12,
|
|
120
|
+
lineHeight: 21
|
|
121
|
+
},
|
|
122
|
+
'button': {
|
|
123
|
+
fontType: 'semibold',
|
|
124
|
+
fontSize: 14,
|
|
125
|
+
lineHeight: 21
|
|
126
|
+
},
|
|
127
|
+
'button-small': {
|
|
128
|
+
fontType: 'semibold',
|
|
129
|
+
fontSize: 12,
|
|
130
|
+
lineHeight: 18
|
|
131
|
+
},
|
|
132
|
+
'caption': {
|
|
133
|
+
fontType: 'regular',
|
|
134
|
+
fontSize: 12,
|
|
135
|
+
lineHeight: 18
|
|
136
|
+
},
|
|
137
|
+
'caption2': {
|
|
138
|
+
fontType: 'semibold',
|
|
139
|
+
fontSize: 12,
|
|
140
|
+
lineHeight: 18
|
|
141
|
+
},
|
|
142
|
+
'overline': {
|
|
143
|
+
fontType: 'semibold',
|
|
144
|
+
fontSize: 10,
|
|
145
|
+
lineHeight: 15
|
|
146
|
+
},
|
|
147
|
+
'overline-small': {
|
|
148
|
+
fontType: 'regular',
|
|
149
|
+
fontSize: 10,
|
|
150
|
+
lineHeight: 15
|
|
151
|
+
},
|
|
152
|
+
'text-heading-h1-semibold': {
|
|
153
|
+
fontType: 'semibold',
|
|
154
|
+
fontSize: 96,
|
|
155
|
+
lineHeight: 96
|
|
156
|
+
},
|
|
157
|
+
'text-heading-h1-regular': {
|
|
158
|
+
fontType: 'regular',
|
|
159
|
+
fontSize: 96,
|
|
160
|
+
lineHeight: 96
|
|
161
|
+
},
|
|
162
|
+
'text-heading-h2-semibold': {
|
|
163
|
+
fontType: 'semibold',
|
|
164
|
+
fontSize: 60,
|
|
165
|
+
lineHeight: 60
|
|
166
|
+
},
|
|
167
|
+
'text-heading-h2-regular': {
|
|
168
|
+
fontType: 'regular',
|
|
169
|
+
fontSize: 60,
|
|
170
|
+
lineHeight: 60
|
|
171
|
+
},
|
|
172
|
+
'text-heading-h3-bold': {
|
|
173
|
+
fontType: 'bold',
|
|
174
|
+
fontSize: 48,
|
|
175
|
+
lineHeight: 48
|
|
176
|
+
},
|
|
177
|
+
'text-heading-h3-regular': {
|
|
178
|
+
fontType: 'regular',
|
|
179
|
+
fontSize: 48,
|
|
180
|
+
lineHeight: 48
|
|
181
|
+
},
|
|
182
|
+
'text-heading-h4-semibold': {
|
|
183
|
+
fontType: 'semibold',
|
|
184
|
+
fontSize: 34,
|
|
185
|
+
lineHeight: 34
|
|
186
|
+
},
|
|
187
|
+
'text-heading-h4-regular': {
|
|
188
|
+
fontType: 'regular',
|
|
189
|
+
fontSize: 34,
|
|
190
|
+
lineHeight: 34
|
|
191
|
+
},
|
|
192
|
+
'text-heading-h5-bold': {
|
|
193
|
+
fontType: 'bold',
|
|
194
|
+
fontSize: 24,
|
|
195
|
+
lineHeight: 24
|
|
196
|
+
},
|
|
197
|
+
'text-heading-h5-semibold': {
|
|
198
|
+
fontType: 'semibold',
|
|
199
|
+
fontSize: 24,
|
|
200
|
+
lineHeight: 24
|
|
201
|
+
},
|
|
202
|
+
'text-heading-h5-regular': {
|
|
203
|
+
fontType: 'regular',
|
|
204
|
+
fontSize: 24,
|
|
205
|
+
lineHeight: 24
|
|
206
|
+
},
|
|
207
|
+
'text-heading-h6-bold': {
|
|
208
|
+
fontType: 'bold',
|
|
209
|
+
fontSize: 20,
|
|
210
|
+
lineHeight: 20
|
|
211
|
+
},
|
|
212
|
+
'text-heading-h6-semibold': {
|
|
213
|
+
fontType: 'semibold',
|
|
214
|
+
fontSize: 20,
|
|
215
|
+
lineHeight: 20
|
|
216
|
+
},
|
|
217
|
+
'text-heading-h6-regular': {
|
|
218
|
+
fontType: 'regular',
|
|
219
|
+
fontSize: 20,
|
|
220
|
+
lineHeight: 20
|
|
221
|
+
},
|
|
222
|
+
'text-sub-heading-semibold': {
|
|
223
|
+
fontType: 'semibold',
|
|
224
|
+
fontSize: 14,
|
|
225
|
+
lineHeight: 14
|
|
226
|
+
},
|
|
227
|
+
'text-subtitle-primary-semibold': {
|
|
228
|
+
fontType: 'semibold',
|
|
229
|
+
fontSize: 16,
|
|
230
|
+
lineHeight: 16
|
|
231
|
+
},
|
|
232
|
+
'text-subtitle-secondary-bold': {
|
|
233
|
+
fontType: 'bold',
|
|
234
|
+
fontSize: 14,
|
|
235
|
+
lineHeight: 14
|
|
236
|
+
},
|
|
237
|
+
'text-subtitle-secondary-semibold': {
|
|
238
|
+
fontType: 'semibold',
|
|
239
|
+
fontSize: 14,
|
|
240
|
+
lineHeight: 14
|
|
241
|
+
},
|
|
242
|
+
'text-button-default-semibold': {
|
|
243
|
+
fontType: 'semibold',
|
|
244
|
+
fontSize: 14,
|
|
245
|
+
lineHeight: 14
|
|
246
|
+
},
|
|
247
|
+
'text-button-small-semibold': {
|
|
248
|
+
fontType: 'semibold',
|
|
249
|
+
fontSize: 12,
|
|
250
|
+
lineHeight: 12
|
|
251
|
+
},
|
|
252
|
+
'text-caption-semibold': {
|
|
253
|
+
fontType: 'semibold',
|
|
254
|
+
fontSize: 12,
|
|
255
|
+
lineHeight: 12
|
|
256
|
+
},
|
|
257
|
+
'text-caption-regular': {
|
|
258
|
+
fontType: 'regular',
|
|
259
|
+
fontSize: 12,
|
|
260
|
+
lineHeight: 12
|
|
261
|
+
},
|
|
262
|
+
'text-overline-semibold': {
|
|
263
|
+
fontType: 'semibold',
|
|
264
|
+
fontSize: 10,
|
|
265
|
+
lineHeight: 10
|
|
266
|
+
},
|
|
267
|
+
'text-overline-regular': {
|
|
268
|
+
fontType: 'regular',
|
|
269
|
+
fontSize: 12,
|
|
270
|
+
lineHeight: 12
|
|
271
|
+
},
|
|
272
|
+
'text-overline-strike': {
|
|
273
|
+
fontType: 'regular',
|
|
274
|
+
textDecorationLine: 'line-through',
|
|
275
|
+
fontSize: 12,
|
|
276
|
+
lineHeight: 12
|
|
277
|
+
},
|
|
278
|
+
'text-body-primary-regular': {
|
|
279
|
+
fontType: 'regular',
|
|
280
|
+
fontSize: 16,
|
|
281
|
+
lineHeight: 16
|
|
282
|
+
},
|
|
283
|
+
'text-body-secondary-regular': {
|
|
284
|
+
fontType: 'regular',
|
|
285
|
+
fontSize: 14,
|
|
286
|
+
lineHeight: 14
|
|
287
|
+
},
|
|
288
|
+
'text-body-tertiary-regular': {
|
|
289
|
+
fontType: 'regular',
|
|
290
|
+
fontSize: 12,
|
|
291
|
+
lineHeight: 12
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
const defaultTheme = exports.defaultTheme = {
|
|
295
|
+
colors: {
|
|
296
|
+
light: {
|
|
297
|
+
'border-primary': _themes.Palettes.black[900],
|
|
298
|
+
'border-default': _themes.Palettes.grey[100],
|
|
299
|
+
'border-inverse': _themes.Palettes.white[50],
|
|
300
|
+
'border-input': _themes.Palettes.grey[200],
|
|
301
|
+
'border-info': _themes.Palettes.blue[600],
|
|
302
|
+
'border-disable': _themes.Palettes.grey[400],
|
|
303
|
+
'border-warning': _themes.Palettes.yellow[600],
|
|
304
|
+
'border-success': _themes.Palettes.green[700],
|
|
305
|
+
'border-danger': _themes.Palettes.red[700],
|
|
306
|
+
'icon-primary': _themes.Palettes.black[900],
|
|
307
|
+
'icon-secondary': _themes.Palettes.whiteDark[50],
|
|
308
|
+
'icon-inverse': _themes.Palettes.white[50],
|
|
309
|
+
'icon-disable': _themes.Palettes.grey[900],
|
|
310
|
+
'icon-disable-secondary': _themes.Palettes.grey[200],
|
|
311
|
+
'icon-danger': _themes.Palettes.red[700],
|
|
312
|
+
'icon-info': _themes.Palettes.blue[600],
|
|
313
|
+
'icon-warning': _themes.Palettes.yellow[600],
|
|
314
|
+
'icon-warning-secondary': _themes.Palettes.yellow[100],
|
|
315
|
+
'icon-success': _themes.Palettes.green[700],
|
|
316
|
+
'icon-orange': _themes.Palettes.yellow[700],
|
|
317
|
+
'surface-primary': _themes.Palettes.white[50],
|
|
318
|
+
'surface-secondary': _themes.Palettes.whiteDark[50],
|
|
319
|
+
'surface-disable': _themes.Palettes.grey[100],
|
|
320
|
+
'surface-warning': _themes.Palettes.yellow[100],
|
|
321
|
+
'surface-danger': _themes.Palettes.red[50],
|
|
322
|
+
'surface-info': _themes.Palettes.blue[50],
|
|
323
|
+
'surface-success': _themes.Palettes.green[50],
|
|
324
|
+
'fill-primary': _themes.Palettes.black[900],
|
|
325
|
+
'fill-secondary': _themes.Palettes.whiteDark[50],
|
|
326
|
+
'fill-inverse': _themes.Palettes.white[50],
|
|
327
|
+
'fill-disable': _themes.Palettes.grey[400],
|
|
328
|
+
'fill-disable-secondary': _themes.Palettes.grey[50],
|
|
329
|
+
'fill-info': _themes.Palettes.blue[600],
|
|
330
|
+
'fill-info-secondary': _themes.Palettes.blue[50],
|
|
331
|
+
'fill-danger': _themes.Palettes.red[700],
|
|
332
|
+
'fill-danger-secondary': _themes.Palettes.red[50],
|
|
333
|
+
'fill-warning': _themes.Palettes.yellow[600],
|
|
334
|
+
'fill-warning-secondary': _themes.Palettes.yellow[100],
|
|
335
|
+
'fill-success': _themes.Palettes.green[700],
|
|
336
|
+
'fill-success-secondary': _themes.Palettes.green[50],
|
|
337
|
+
'text-primary': _themes.Palettes.black[900],
|
|
338
|
+
'text-secondary': _themes.Palettes.black[600],
|
|
339
|
+
'text-inverse': _themes.Palettes.white[50],
|
|
340
|
+
'text-disable': _themes.Palettes.grey[400],
|
|
341
|
+
'text-disable-secondary': _themes.Palettes.grey[200],
|
|
342
|
+
'text-danger': _themes.Palettes.red[700],
|
|
343
|
+
'text-info': _themes.Palettes.blue[600],
|
|
344
|
+
'text-warning': _themes.Palettes.yellow[600],
|
|
345
|
+
'text-success': _themes.Palettes.green[700],
|
|
346
|
+
'button-primary': _themes.Palettes.black[900],
|
|
347
|
+
'button-secondary': _themes.Palettes.whiteDark[50],
|
|
348
|
+
'button-inverse': _themes.Palettes.white[50],
|
|
349
|
+
'button-disable': _themes.Palettes.grey[50],
|
|
350
|
+
'button-danger': _themes.Palettes.red[700],
|
|
351
|
+
'button-info': _themes.Palettes.blue[600],
|
|
352
|
+
'button-warning': _themes.Palettes.yellow[600],
|
|
353
|
+
'button-success': _themes.Palettes.green[700]
|
|
354
|
+
},
|
|
355
|
+
dark: {
|
|
356
|
+
'border-primary': _themes.Palettes.white[50],
|
|
357
|
+
'border-default': _themes.Palettes.grey[800],
|
|
358
|
+
'border-inverse': _themes.Palettes.black[900],
|
|
359
|
+
'border-input': _themes.Palettes.grey[700],
|
|
360
|
+
'border-info': _themes.Palettes.blue[300],
|
|
361
|
+
'border-disable': _themes.Palettes.grey[600],
|
|
362
|
+
'border-warning': _themes.Palettes.yellow[300],
|
|
363
|
+
'border-success': _themes.Palettes.green[300],
|
|
364
|
+
'border-danger': _themes.Palettes.red[300],
|
|
365
|
+
'icon-primary': _themes.Palettes.white[50],
|
|
366
|
+
'icon-secondary': _themes.Palettes.black[900],
|
|
367
|
+
'icon-inverse': _themes.Palettes.black[900],
|
|
368
|
+
'icon-disable': _themes.Palettes.grey[700],
|
|
369
|
+
'icon-disable-secondary': _themes.Palettes.grey[600],
|
|
370
|
+
'icon-danger': _themes.Palettes.red[300],
|
|
371
|
+
'icon-info': _themes.Palettes.blue[300],
|
|
372
|
+
'icon-warning': _themes.Palettes.yellow[300],
|
|
373
|
+
'icon-warning-secondary': _themes.Palettes.yellow[700],
|
|
374
|
+
'icon-success': _themes.Palettes.green[300],
|
|
375
|
+
'icon-orange': _themes.Palettes.yellow[300],
|
|
376
|
+
'surface-primary': _themes.Palettes.black[900],
|
|
377
|
+
'surface-secondary': _themes.Palettes.black[800],
|
|
378
|
+
'surface-disable': _themes.Palettes.grey[800],
|
|
379
|
+
'surface-warning': _themes.Palettes.yellow[700],
|
|
380
|
+
'surface-danger': _themes.Palettes.red[700],
|
|
381
|
+
'surface-info': _themes.Palettes.blue[700],
|
|
382
|
+
'surface-success': _themes.Palettes.green[700],
|
|
383
|
+
'fill-primary': _themes.Palettes.white[50],
|
|
384
|
+
'fill-secondary': _themes.Palettes.black[900],
|
|
385
|
+
'fill-inverse': _themes.Palettes.black[900],
|
|
386
|
+
'fill-disable': _themes.Palettes.grey[600],
|
|
387
|
+
'fill-disable-secondary': _themes.Palettes.grey[800],
|
|
388
|
+
'fill-info': _themes.Palettes.blue[300],
|
|
389
|
+
'fill-info-secondary': _themes.Palettes.blue[700],
|
|
390
|
+
'fill-danger': _themes.Palettes.red[300],
|
|
391
|
+
'fill-danger-secondary': _themes.Palettes.red[700],
|
|
392
|
+
'fill-warning': _themes.Palettes.yellow[300],
|
|
393
|
+
'fill-warning-secondary': _themes.Palettes.yellow[700],
|
|
394
|
+
'fill-success': _themes.Palettes.green[300],
|
|
395
|
+
'fill-success-secondary': _themes.Palettes.green[700],
|
|
396
|
+
'text-primary': _themes.Palettes.white[50],
|
|
397
|
+
'text-secondary': _themes.Palettes.white[200],
|
|
398
|
+
'text-inverse': _themes.Palettes.black[900],
|
|
399
|
+
'text-disable': _themes.Palettes.grey[600],
|
|
400
|
+
'text-disable-secondary': _themes.Palettes.grey[700],
|
|
401
|
+
'text-danger': _themes.Palettes.red[300],
|
|
402
|
+
'text-info': _themes.Palettes.blue[300],
|
|
403
|
+
'text-warning': _themes.Palettes.yellow[300],
|
|
404
|
+
'text-success': _themes.Palettes.green[300],
|
|
405
|
+
'button-primary': _themes.Palettes.white[50],
|
|
406
|
+
'button-secondary': _themes.Palettes.black[900],
|
|
407
|
+
'button-inverse': _themes.Palettes.black[900],
|
|
408
|
+
'button-disable': _themes.Palettes.grey[700],
|
|
409
|
+
'button-danger': _themes.Palettes.red[300],
|
|
410
|
+
'button-info': _themes.Palettes.blue[300],
|
|
411
|
+
'button-warning': _themes.Palettes.yellow[300],
|
|
412
|
+
'button-success': _themes.Palettes.green[300]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
Fonts: defaultFontFamily,
|
|
416
|
+
FontFamilyStyle: defaultFontFamilyStyle,
|
|
417
|
+
Border: _themes.Border,
|
|
418
|
+
Radius: _themes.Radius,
|
|
419
|
+
Shadow: _themes.Shadow,
|
|
420
|
+
Spacing: _themes.Spacing
|
|
421
|
+
};
|
|
422
|
+
//# sourceMappingURL=theme.default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_themes","require","defaultFontFamily","exports","regular","regularItalic","semibold","semiboldItalic","bold","boldItalic","defaultFontFamilyStyle","fontType","fontSize","lineHeight","textDecorationLine","defaultTheme","colors","light","Palettes","black","grey","white","blue","yellow","green","red","whiteDark","dark","Fonts","FontFamilyStyle","Border","Radius","Shadow","Spacing"],"sourceRoot":"../../../src","sources":["config/theme.default.ts"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,OAAO,EAAE,oBAAoB;EAC7BC,aAAa,EAAE,mBAAmB;EAClCC,QAAQ,EAAE,qBAAqB;EAC/BC,cAAc,EAAE,2BAA2B;EAC3CC,IAAI,EAAE,iBAAiB;EACvBC,UAAU,EAAE;AACd,CAAC;AAQM,MAAMC,sBAA2C,GAAAP,OAAA,CAAAO,sBAAA,GAAG;EACzD,mBAAmB,EAAE;IACnBC,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACD,kBAAkB,EAAE;IAClBF,QAAQ,EAAE,SAAS;IACnBC,QAAQ,EAAE,E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AAsB;EACvCoB,MAAM,EAANA,cAAM;EACNC,MAAM,EAANA,cAAM;EACNC,MAAM,EAANA,cAAM;EACNC,OAAO,EAAPA;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ThemeContext = void 0;
|
|
7
|
+
exports.ThemeProvider = ThemeProvider;
|
|
8
|
+
exports.useAppTheme = exports.createTheme = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _deepmerge = _interopRequireDefault(require("deepmerge"));
|
|
11
|
+
var _theme = require("./theme.default");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const ThemeContext = exports.ThemeContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
16
|
+
const createTheme = theme => {
|
|
17
|
+
return (0, _deepmerge.default)(_theme.defaultTheme, theme);
|
|
18
|
+
};
|
|
19
|
+
exports.createTheme = createTheme;
|
|
20
|
+
function ThemeProvider(props) {
|
|
21
|
+
const {
|
|
22
|
+
children,
|
|
23
|
+
theme = _theme.defaultTheme
|
|
24
|
+
} = props;
|
|
25
|
+
const [colorScheme, setColorScheme] = (0, _react.useState)('light');
|
|
26
|
+
const changeColorScheme = (0, _react.useCallback)(() => {
|
|
27
|
+
setColorScheme(colorScheme === 'light' ? 'dark' : 'light');
|
|
28
|
+
}, [setColorScheme, colorScheme]);
|
|
29
|
+
const themeContextValue = (0, _react.useMemo)(() => {
|
|
30
|
+
var _mergeTheme$colors;
|
|
31
|
+
const mergeTheme = createTheme(theme);
|
|
32
|
+
return {
|
|
33
|
+
...mergeTheme,
|
|
34
|
+
colors: mergeTheme === null || mergeTheme === void 0 || (_mergeTheme$colors = mergeTheme.colors) === null || _mergeTheme$colors === void 0 ? void 0 : _mergeTheme$colors[colorScheme],
|
|
35
|
+
colorScheme,
|
|
36
|
+
changeColorScheme
|
|
37
|
+
};
|
|
38
|
+
}, [colorScheme, theme, changeColorScheme]);
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(ThemeContext.Provider, {
|
|
40
|
+
value: themeContextValue
|
|
41
|
+
}, children);
|
|
42
|
+
}
|
|
43
|
+
const useAppTheme = () => {
|
|
44
|
+
const themeContext = (0, _react.useContext)(ThemeContext);
|
|
45
|
+
return themeContext;
|
|
46
|
+
};
|
|
47
|
+
exports.useAppTheme = useAppTheme;
|
|
48
|
+
//# sourceMappingURL=theme.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_deepmerge","_interopRequireDefault","_theme","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ThemeContext","exports","createContext","createTheme","theme","deepmerge","defaultTheme","ThemeProvider","props","children","colorScheme","setColorScheme","useState","changeColorScheme","useCallback","themeContextValue","useMemo","_mergeTheme$colors","mergeTheme","colors","createElement","Provider","value","useAppTheme","themeContext","useContext"],"sourceRoot":"../../../src","sources":["config/theme.provider.tsx"],"mappings":";;;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,CAAA,KAAM;EAC/B,MAAMC,YAAY,GAAG,IAAAC,iBAAU,EAACzB,YAAY,CAAC;EAE7C,OAAOwB,YAAY;AACrB,CAAC;AAACvB,OAAA,CAAAsB,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["config/theme.type.ts"],"mappings":"","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -25,4 +25,15 @@ Object.keys(_themes).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _config = require("./config");
|
|
29
|
+
Object.keys(_config).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _config[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _config[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_themes"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_components","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_themes","_config"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,OAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,OAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,OAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,OAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Border","exports"],"sourceRoot":"../../../src","sources":["themes/border.ts"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;
|
|
1
|
+
{"version":3,"names":["Border","exports"],"sourceRoot":"../../../src","sources":["themes/border.ts"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACb,CAAC,EAAE,CAAC;EACJ,CAAC,EAAE;AACL,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Shadow","exports","elevation","shadowColor","shadowOpacity","shadowOffset","height","width"],"sourceRoot":"../../../src","sources":["themes/shadow.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["Shadow","exports","elevation","shadowColor","shadowOpacity","shadowOffset","height","width"],"sourceRoot":"../../../src","sources":["themes/shadow.tsx"],"mappings":";;;;;;AAWO,MAAMA,MAAkB,GAAAC,OAAA,CAAAD,MAAA,GAAG;EAChC,MAAM,EAAE,CAAC,CAAC;EACV,oBAAoB,EAAE;IACpBE,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,OAAO;IACpBC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;MACZC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT;EACF,CAAC;EACD,oBAAoB,EAAE;IACpBL,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,OAAO;IACpBC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;MACZC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT;EACF,CAAC;EACD,oBAAoB,EAAE;IACpBL,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE,OAAO;IACpBC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;MACZC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT;EACF,CAAC;EACD,oBAAoB,EAAE;IACpBL,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE,OAAO;IACpBC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;MACZC,MAAM,EAAE,CAAC,CAAC;MACVC,KAAK,EAAE;IACT;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import { View, TouchableHighlight } from 'react-native';
|
|
4
4
|
import { Typography } from '../typography/typography.component';
|
|
5
5
|
import { getStyle } from './ActionList.styles';
|
|
6
|
-
import {
|
|
6
|
+
import { useAppTheme } from '../../config';
|
|
7
7
|
const ActionList = props => {
|
|
8
|
+
const {
|
|
9
|
+
colors
|
|
10
|
+
} = useAppTheme();
|
|
8
11
|
const {
|
|
9
12
|
onPress = () => {},
|
|
10
13
|
title,
|
|
@@ -16,27 +19,25 @@ const ActionList = props => {
|
|
|
16
19
|
containerStyle,
|
|
17
20
|
...rest
|
|
18
21
|
} = props;
|
|
19
|
-
const computedStyle = getStyle(
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
+
const computedStyle = getStyle(props);
|
|
22
23
|
return /*#__PURE__*/React.createElement(TouchableHighlight, _extends({
|
|
23
24
|
onPress: onPress,
|
|
24
25
|
disabled: disabled
|
|
25
26
|
}, rest, {
|
|
26
|
-
underlayColor:
|
|
27
|
+
underlayColor: colors['fill-secondary']
|
|
27
28
|
}), /*#__PURE__*/React.createElement(View, {
|
|
28
29
|
style: [computedStyle.container, containerStyle]
|
|
29
30
|
}, leadingComponent && /*#__PURE__*/React.createElement(View, {
|
|
30
31
|
style: computedStyle.leadingWrapper
|
|
31
32
|
}, leadingComponent), /*#__PURE__*/React.createElement(View, {
|
|
32
33
|
style: computedStyle.textContainer
|
|
33
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
34
|
+
}, title && /*#__PURE__*/React.createElement(Typography, {
|
|
34
35
|
variant: 'subtitle2',
|
|
35
36
|
textStyles: {
|
|
36
37
|
...computedStyle.title,
|
|
37
38
|
...textStyles
|
|
38
39
|
}
|
|
39
|
-
}, title), /*#__PURE__*/React.createElement(Typography, {
|
|
40
|
+
}, title), description && /*#__PURE__*/React.createElement(Typography, {
|
|
40
41
|
variant: 'body2',
|
|
41
42
|
textStyles: {
|
|
42
43
|
...computedStyle.description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","TouchableHighlight","Typography","getStyle","
|
|
1
|
+
{"version":3,"names":["React","View","TouchableHighlight","Typography","getStyle","useAppTheme","ActionList","props","colors","onPress","title","description","textStyles","disabled","leadingComponent","trailingComponent","containerStyle","rest","computedStyle","createElement","_extends","underlayColor","style","container","leadingWrapper","textContainer","variant","trailingWrapper"],"sourceRoot":"../../../../src","sources":["components/ActionList/ActionList.component.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,kBAAkB,QAAQ,cAAc;AAEvD,SAASC,UAAU,QAAQ,oCAAoC;AAC/D,SAASC,QAAQ,QAAQ,qBAAqB;AAG9C,SAASC,WAAW,QAAQ,cAAc;AAE1C,MAAMC,UAAqC,GAAIC,KAAK,IAAK;EACvD,MAAM;IAAEC;EAAO,CAAC,GAAGH,WAAW,CAAC,CAAC;EAChC,MAAM;IACJI,OAAO,GAAGA,CAAA,KAAM,CAAC,CAAC;IAClBC,KAAK;IACLC,WAAW;IACXC,UAAU;IACVC,QAAQ,GAAG,KAAK;IAChBC,gBAAgB;IAChBC,iBAAiB;IACjBC,cAAc;IACd,GAAGC;EACL,CAA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