@0610studio/zs-ui 0.0.1
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/.eslintrc.js +5 -0
- package/README.md +3 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +43 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/kr/co/studio0610/zsui/ZsUiModule.kt +47 -0
- package/android/src/main/java/kr/co/studio0610/zsui/ZsUiView.kt +7 -0
- package/build/ZsUi.types.d.ts +7 -0
- package/build/ZsUi.types.d.ts.map +1 -0
- package/build/ZsUi.types.js +2 -0
- package/build/ZsUi.types.js.map +1 -0
- package/build/ZsUiModule.d.ts +3 -0
- package/build/ZsUiModule.d.ts.map +1 -0
- package/build/ZsUiModule.js +5 -0
- package/build/ZsUiModule.js.map +1 -0
- package/build/ZsUiModule.web.d.ts +7 -0
- package/build/ZsUiModule.web.d.ts.map +1 -0
- package/build/ZsUiModule.web.js +12 -0
- package/build/ZsUiModule.web.js.map +1 -0
- package/build/ZsUiView.d.ts +4 -0
- package/build/ZsUiView.d.ts.map +1 -0
- package/build/ZsUiView.js +7 -0
- package/build/ZsUiView.js.map +1 -0
- package/build/ZsUiView.web.d.ts +4 -0
- package/build/ZsUiView.web.d.ts.map +1 -0
- package/build/ZsUiView.web.js +7 -0
- package/build/ZsUiView.web.js.map +1 -0
- package/build/assets/SvgCheck.d.ts +7 -0
- package/build/assets/SvgCheck.d.ts.map +1 -0
- package/build/assets/SvgCheck.js +8 -0
- package/build/assets/SvgCheck.js.map +1 -0
- package/build/assets/SvgX.d.ts +6 -0
- package/build/assets/SvgX.d.ts.map +1 -0
- package/build/assets/SvgX.js +14 -0
- package/build/assets/SvgX.js.map +1 -0
- package/build/index.d.ts +5 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +10 -0
- package/build/index.js.map +1 -0
- package/build/model/types.d.ts +84 -0
- package/build/model/types.d.ts.map +1 -0
- package/build/model/types.js +11 -0
- package/build/model/types.js.map +1 -0
- package/build/model/useNotify.d.ts +5 -0
- package/build/model/useNotify.d.ts.map +1 -0
- package/build/model/useNotify.js +11 -0
- package/build/model/useNotify.js.map +1 -0
- package/build/model/useNotifyProvider.d.ts +3 -0
- package/build/model/useNotifyProvider.d.ts.map +1 -0
- package/build/model/useNotifyProvider.js +165 -0
- package/build/model/useNotifyProvider.js.map +1 -0
- package/build/model/useThemeProvider.d.ts +19 -0
- package/build/model/useThemeProvider.d.ts.map +1 -0
- package/build/model/useThemeProvider.js +73 -0
- package/build/model/useThemeProvider.js.map +1 -0
- package/build/model/utils.d.ts +12 -0
- package/build/model/utils.d.ts.map +1 -0
- package/build/model/utils.js +26 -0
- package/build/model/utils.js.map +1 -0
- package/build/notify/AlertNotify/index.d.ts +5 -0
- package/build/notify/AlertNotify/index.d.ts.map +1 -0
- package/build/notify/AlertNotify/index.js +109 -0
- package/build/notify/AlertNotify/index.js.map +1 -0
- package/build/notify/BottomSheetNotify/index.d.ts +19 -0
- package/build/notify/BottomSheetNotify/index.d.ts.map +1 -0
- package/build/notify/BottomSheetNotify/index.js +90 -0
- package/build/notify/BottomSheetNotify/index.js.map +1 -0
- package/build/notify/BottomSheetNotify/model/useBottomSheetNotify.d.ts +43 -0
- package/build/notify/BottomSheetNotify/model/useBottomSheetNotify.d.ts.map +1 -0
- package/build/notify/BottomSheetNotify/model/useBottomSheetNotify.js +222 -0
- package/build/notify/BottomSheetNotify/model/useBottomSheetNotify.js.map +1 -0
- package/build/notify/BottomSheetNotify/types/index.d.ts +4 -0
- package/build/notify/BottomSheetNotify/types/index.d.ts.map +1 -0
- package/build/notify/BottomSheetNotify/types/index.js +2 -0
- package/build/notify/BottomSheetNotify/types/index.js.map +1 -0
- package/build/notify/BottomSheetNotify/ui/BSTextInput/index.d.ts +4 -0
- package/build/notify/BottomSheetNotify/ui/BSTextInput/index.d.ts.map +1 -0
- package/build/notify/BottomSheetNotify/ui/BSTextInput/index.js +14 -0
- package/build/notify/BottomSheetNotify/ui/BSTextInput/index.js.map +1 -0
- package/build/notify/BottomSheetNotify/ui/ContentsComponent/index.d.ts +19 -0
- package/build/notify/BottomSheetNotify/ui/ContentsComponent/index.d.ts.map +1 -0
- package/build/notify/BottomSheetNotify/ui/ContentsComponent/index.js +33 -0
- package/build/notify/BottomSheetNotify/ui/ContentsComponent/index.js.map +1 -0
- package/build/notify/LoadingNotify/index.d.ts +6 -0
- package/build/notify/LoadingNotify/index.d.ts.map +1 -0
- package/build/notify/LoadingNotify/index.js +28 -0
- package/build/notify/LoadingNotify/index.js.map +1 -0
- package/build/notify/PopOver/PopOverButton.d.ts +11 -0
- package/build/notify/PopOver/PopOverButton.d.ts.map +1 -0
- package/build/notify/PopOver/PopOverButton.js +31 -0
- package/build/notify/PopOver/PopOverButton.js.map +1 -0
- package/build/notify/PopOver/PopOverMenu.d.ts +4 -0
- package/build/notify/PopOver/PopOverMenu.d.ts.map +1 -0
- package/build/notify/PopOver/PopOverMenu.js +69 -0
- package/build/notify/PopOver/PopOverMenu.js.map +1 -0
- package/build/notify/SnackbarNotify/index.d.ts +7 -0
- package/build/notify/SnackbarNotify/index.d.ts.map +1 -0
- package/build/notify/SnackbarNotify/index.js +24 -0
- package/build/notify/SnackbarNotify/index.js.map +1 -0
- package/build/notify/SnackbarNotify/ui/SnackbarItem.d.ts +9 -0
- package/build/notify/SnackbarNotify/ui/SnackbarItem.d.ts.map +1 -0
- package/build/notify/SnackbarNotify/ui/SnackbarItem.js +72 -0
- package/build/notify/SnackbarNotify/ui/SnackbarItem.js.map +1 -0
- package/build/notify/index.d.ts +11 -0
- package/build/notify/index.d.ts.map +1 -0
- package/build/notify/index.js +11 -0
- package/build/notify/index.js.map +1 -0
- package/build/notify/ui/ModalBackground.d.ts +9 -0
- package/build/notify/ui/ModalBackground.d.ts.map +1 -0
- package/build/notify/ui/ModalBackground.js +27 -0
- package/build/notify/ui/ModalBackground.js.map +1 -0
- package/build/theme/index.d.ts +4 -0
- package/build/theme/index.d.ts.map +1 -0
- package/build/theme/index.js +4 -0
- package/build/theme/index.js.map +1 -0
- package/build/theme/palette.d.ts +62 -0
- package/build/theme/palette.d.ts.map +1 -0
- package/build/theme/palette.js +353 -0
- package/build/theme/palette.js.map +1 -0
- package/build/theme/types.d.ts +101 -0
- package/build/theme/types.d.ts.map +1 -0
- package/build/theme/types.js +5 -0
- package/build/theme/types.js.map +1 -0
- package/build/theme/typography.d.ts +5 -0
- package/build/theme/typography.d.ts.map +1 -0
- package/build/theme/typography.js +198 -0
- package/build/theme/typography.js.map +1 -0
- package/build/ui/ThrottleButton/index.d.ts +15 -0
- package/build/ui/ThrottleButton/index.d.ts.map +1 -0
- package/build/ui/ThrottleButton/index.js +74 -0
- package/build/ui/ThrottleButton/index.js.map +1 -0
- package/build/ui/ZSBottomButton/index.d.ts +16 -0
- package/build/ui/ZSBottomButton/index.d.ts.map +1 -0
- package/build/ui/ZSBottomButton/index.js +89 -0
- package/build/ui/ZSBottomButton/index.js.map +1 -0
- package/build/ui/ZSContainer/index.d.ts +19 -0
- package/build/ui/ZSContainer/index.d.ts.map +1 -0
- package/build/ui/ZSContainer/index.js +37 -0
- package/build/ui/ZSContainer/index.js.map +1 -0
- package/build/ui/ZSPressable/index.d.ts +17 -0
- package/build/ui/ZSPressable/index.d.ts.map +1 -0
- package/build/ui/ZSPressable/index.js +35 -0
- package/build/ui/ZSPressable/index.js.map +1 -0
- package/build/ui/ZSRadioGroup/index.d.ts +18 -0
- package/build/ui/ZSRadioGroup/index.d.ts.map +1 -0
- package/build/ui/ZSRadioGroup/index.js +82 -0
- package/build/ui/ZSRadioGroup/index.js.map +1 -0
- package/build/ui/ZSText/index.d.ts +11 -0
- package/build/ui/ZSText/index.d.ts.map +1 -0
- package/build/ui/ZSText/index.js +10 -0
- package/build/ui/ZSText/index.js.map +1 -0
- package/build/ui/ZSTextField/index.d.ts +31 -0
- package/build/ui/ZSTextField/index.d.ts.map +1 -0
- package/build/ui/ZSTextField/index.js +102 -0
- package/build/ui/ZSTextField/index.js.map +1 -0
- package/build/ui/ZSTextField/ui/ButtonClose.d.ts +6 -0
- package/build/ui/ZSTextField/ui/ButtonClose.d.ts.map +1 -0
- package/build/ui/ZSTextField/ui/ButtonClose.js +9 -0
- package/build/ui/ZSTextField/ui/ButtonClose.js.map +1 -0
- package/build/ui/ZSTextField/ui/ErrorComponent.d.ts +7 -0
- package/build/ui/ZSTextField/ui/ErrorComponent.d.ts.map +1 -0
- package/build/ui/ZSTextField/ui/ErrorComponent.js +16 -0
- package/build/ui/ZSTextField/ui/ErrorComponent.js.map +1 -0
- package/build/ui/ZSView/index.d.ts +8 -0
- package/build/ui/ZSView/index.d.ts.map +1 -0
- package/build/ui/ZSView/index.js +17 -0
- package/build/ui/ZSView/index.js.map +1 -0
- package/build/ui/atoms/AnimatedWrapper.d.ts +12 -0
- package/build/ui/atoms/AnimatedWrapper.d.ts.map +1 -0
- package/build/ui/atoms/AnimatedWrapper.js +61 -0
- package/build/ui/atoms/AnimatedWrapper.js.map +1 -0
- package/build/ui/atoms/ScrollViewAtom.d.ts +5 -0
- package/build/ui/atoms/ScrollViewAtom.d.ts.map +1 -0
- package/build/ui/atoms/ScrollViewAtom.js +10 -0
- package/build/ui/atoms/ScrollViewAtom.js.map +1 -0
- package/build/ui/atoms/TextAtom.d.ts +6 -0
- package/build/ui/atoms/TextAtom.d.ts.map +1 -0
- package/build/ui/atoms/TextAtom.js +9 -0
- package/build/ui/atoms/TextAtom.js.map +1 -0
- package/build/ui/atoms/ViewAtom.d.ts +6 -0
- package/build/ui/atoms/ViewAtom.d.ts.map +1 -0
- package/build/ui/atoms/ViewAtom.js +9 -0
- package/build/ui/atoms/ViewAtom.js.map +1 -0
- package/build/ui/index.d.ts +14 -0
- package/build/ui/index.d.ts.map +1 -0
- package/build/ui/index.js +14 -0
- package/build/ui/index.js.map +1 -0
- package/build/ui/types.d.ts +14 -0
- package/build/ui/types.d.ts.map +1 -0
- package/build/ui/types.js +2 -0
- package/build/ui/types.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/ZsUi.podspec +27 -0
- package/ios/ZsUiModule.swift +44 -0
- package/ios/ZsUiView.swift +7 -0
- package/package.json +54 -0
- package/src/ZsUi.types.ts +7 -0
- package/src/ZsUiModule.ts +5 -0
- package/src/ZsUiModule.web.ts +13 -0
- package/src/ZsUiView.tsx +11 -0
- package/src/ZsUiView.web.tsx +11 -0
- package/src/assets/SvgCheck.tsx +16 -0
- package/src/assets/SvgX.tsx +22 -0
- package/src/index.ts +52 -0
- package/src/model/types.ts +102 -0
- package/src/model/useNotify.ts +14 -0
- package/src/model/useNotifyProvider.tsx +251 -0
- package/src/model/useThemeProvider.tsx +99 -0
- package/src/model/utils.ts +31 -0
- package/src/notify/AlertNotify/index.tsx +177 -0
- package/src/notify/BottomSheetNotify/index.tsx +177 -0
- package/src/notify/BottomSheetNotify/model/useBottomSheetNotify.tsx +270 -0
- package/src/notify/BottomSheetNotify/types/index.ts +3 -0
- package/src/notify/BottomSheetNotify/ui/BSTextInput/index.tsx +28 -0
- package/src/notify/BottomSheetNotify/ui/ContentsComponent/index.tsx +76 -0
- package/src/notify/LoadingNotify/index.tsx +46 -0
- package/src/notify/PopOver/PopOverButton.tsx +56 -0
- package/src/notify/PopOver/PopOverMenu.tsx +95 -0
- package/src/notify/SnackbarNotify/index.tsx +43 -0
- package/src/notify/SnackbarNotify/ui/SnackbarItem.tsx +103 -0
- package/src/notify/index.ts +21 -0
- package/src/notify/ui/ModalBackground.tsx +46 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/palette.ts +374 -0
- package/src/theme/types.ts +150 -0
- package/src/theme/typography.ts +199 -0
- package/src/ui/ThrottleButton/index.tsx +119 -0
- package/src/ui/ZSBottomButton/index.tsx +151 -0
- package/src/ui/ZSContainer/index.tsx +92 -0
- package/src/ui/ZSPressable/index.tsx +82 -0
- package/src/ui/ZSRadioGroup/index.tsx +141 -0
- package/src/ui/ZSText/index.tsx +22 -0
- package/src/ui/ZSTextField/index.tsx +200 -0
- package/src/ui/ZSTextField/ui/ButtonClose.tsx +20 -0
- package/src/ui/ZSTextField/ui/ErrorComponent.tsx +25 -0
- package/src/ui/ZSView/index.tsx +30 -0
- package/src/ui/atoms/AnimatedWrapper.tsx +89 -0
- package/src/ui/atoms/ScrollViewAtom.tsx +17 -0
- package/src/ui/atoms/TextAtom.tsx +15 -0
- package/src/ui/atoms/ViewAtom.tsx +15 -0
- package/src/ui/index.ts +27 -0
- package/src/ui/types.ts +12 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
export const transparency = {
|
|
2
|
+
'0%': '00', // 완전 투명
|
|
3
|
+
'2%': '05',
|
|
4
|
+
'4%': '0A',
|
|
5
|
+
'6%': '0F',
|
|
6
|
+
'8%': '14',
|
|
7
|
+
'10%': '1A',
|
|
8
|
+
'12%': '1F',
|
|
9
|
+
'14%': '24',
|
|
10
|
+
'16%': '29',
|
|
11
|
+
'18%': '2E',
|
|
12
|
+
'20%': '33',
|
|
13
|
+
'22%': '38',
|
|
14
|
+
'24%': '3D',
|
|
15
|
+
'26%': '42',
|
|
16
|
+
'28%': '47',
|
|
17
|
+
'30%': '4D',
|
|
18
|
+
'32%': '52',
|
|
19
|
+
'34%': '57',
|
|
20
|
+
'36%': '5C',
|
|
21
|
+
'38%': '61',
|
|
22
|
+
'40%': '66',
|
|
23
|
+
'42%': '6B',
|
|
24
|
+
'44%': '70',
|
|
25
|
+
'46%': '75',
|
|
26
|
+
'48%': '7A',
|
|
27
|
+
'50%': '80',
|
|
28
|
+
'52%': '85',
|
|
29
|
+
'54%': '8A',
|
|
30
|
+
'56%': '8F',
|
|
31
|
+
'58%': '94',
|
|
32
|
+
'60%': '99',
|
|
33
|
+
'62%': '9E',
|
|
34
|
+
'64%': 'A3',
|
|
35
|
+
'66%': 'A8',
|
|
36
|
+
'68%': 'AD',
|
|
37
|
+
'70%': 'B3',
|
|
38
|
+
'72%': 'B8',
|
|
39
|
+
'74%': 'BD',
|
|
40
|
+
'76%': 'C2',
|
|
41
|
+
'78%': 'C7',
|
|
42
|
+
'80%': 'CC',
|
|
43
|
+
'82%': 'D1',
|
|
44
|
+
'84%': 'D6',
|
|
45
|
+
'86%': 'DB',
|
|
46
|
+
'88%': 'E0',
|
|
47
|
+
'90%': 'E6',
|
|
48
|
+
'92%': 'EB',
|
|
49
|
+
'94%': 'F0',
|
|
50
|
+
'96%': 'F5',
|
|
51
|
+
'98%': 'FA',
|
|
52
|
+
'100%': 'FF' // 완전 불투명
|
|
53
|
+
};
|
|
54
|
+
const MODAL_BG_COLOR = {
|
|
55
|
+
light: '#212B3688',
|
|
56
|
+
dark: '#00000088'
|
|
57
|
+
};
|
|
58
|
+
const SHADOW_COLORS = {
|
|
59
|
+
light: [
|
|
60
|
+
'rgba(0, 0, 0, 0.18)',
|
|
61
|
+
'rgba(0, 0, 0, 0.20)',
|
|
62
|
+
'rgba(0, 0, 0, 0.22)',
|
|
63
|
+
'rgba(0, 0, 0, 0.23)',
|
|
64
|
+
'rgba(0, 0, 0, 0.25)',
|
|
65
|
+
'rgba(0, 0, 0, 0.27)',
|
|
66
|
+
'rgba(0, 0, 0, 0.29)',
|
|
67
|
+
'rgba(0, 0, 0, 0.30)',
|
|
68
|
+
'rgba(0, 0, 0, 0.32)',
|
|
69
|
+
'rgba(0, 0, 0, 0.34)',
|
|
70
|
+
],
|
|
71
|
+
dark: [
|
|
72
|
+
'rgba(255, 255, 255, 0.58)',
|
|
73
|
+
'rgba(255, 255, 255, 0.60)',
|
|
74
|
+
'rgba(255, 255, 255, 0.62)',
|
|
75
|
+
'rgba(255, 255, 255, 0.63)',
|
|
76
|
+
'rgba(255, 255, 255, 0.65)',
|
|
77
|
+
'rgba(255, 255, 255, 0.67)',
|
|
78
|
+
'rgba(255, 255, 255, 0.69)',
|
|
79
|
+
'rgba(255, 255, 255, 0.70)',
|
|
80
|
+
'rgba(255, 255, 255, 0.72)',
|
|
81
|
+
'rgba(255, 255, 255, 0.74)',
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
const LIGHT_COLORS = {
|
|
85
|
+
primary: {
|
|
86
|
+
0: '#FFF7E6',
|
|
87
|
+
5: '#FCEDD0',
|
|
88
|
+
10: '#F9DAA3', // p-lighter
|
|
89
|
+
20: '#F5BF64', // p-light
|
|
90
|
+
30: '#fca54c',
|
|
91
|
+
40: '#ff9225',
|
|
92
|
+
50: '#FF9F06', // p-main
|
|
93
|
+
60: '#DD9434', // p-dark
|
|
94
|
+
70: '#AC7326', // p-darker
|
|
95
|
+
80: '#c46500',
|
|
96
|
+
90: '#995400',
|
|
97
|
+
100: '#663800',
|
|
98
|
+
lighter: '#F9DAA3',
|
|
99
|
+
light: '#F5BF64',
|
|
100
|
+
main: '#FF9F06',
|
|
101
|
+
dark: '#DD9434',
|
|
102
|
+
darker: '#AC7326',
|
|
103
|
+
},
|
|
104
|
+
secondary: {
|
|
105
|
+
0: '#E6F7FF',
|
|
106
|
+
5: '#D1EDFF',
|
|
107
|
+
10: '#ADE2FF',
|
|
108
|
+
20: '#85D4FF',
|
|
109
|
+
30: '#5CC5FF',
|
|
110
|
+
40: '#33B7FF',
|
|
111
|
+
50: '#007FFF',
|
|
112
|
+
60: '#0075E6',
|
|
113
|
+
70: '#006ACC',
|
|
114
|
+
80: '#005FB3',
|
|
115
|
+
90: '#005499',
|
|
116
|
+
100: '#003866',
|
|
117
|
+
main: '#007FFF',
|
|
118
|
+
},
|
|
119
|
+
danger: {
|
|
120
|
+
5: '#FEECF0',
|
|
121
|
+
10: '#FCD4DE',
|
|
122
|
+
20: '#F799B1',
|
|
123
|
+
30: '#F36689',
|
|
124
|
+
40: '#EF3E5E',
|
|
125
|
+
50: '#EB003B',
|
|
126
|
+
60: '#D50136',
|
|
127
|
+
70: '#8D0023',
|
|
128
|
+
80: '#5E0018',
|
|
129
|
+
90: '#2F000C',
|
|
130
|
+
main: '#EB003B',
|
|
131
|
+
},
|
|
132
|
+
warning: {
|
|
133
|
+
5: '#FFF8E9',
|
|
134
|
+
10: '#FFEAC1',
|
|
135
|
+
20: '#FFE2A7',
|
|
136
|
+
30: '#FFD47C',
|
|
137
|
+
40: '#FFC550',
|
|
138
|
+
50: '#FFB724',
|
|
139
|
+
60: '#98690A',
|
|
140
|
+
70: '#66490E',
|
|
141
|
+
80: '#4D370B',
|
|
142
|
+
90: '#332507',
|
|
143
|
+
main: '#FFB724',
|
|
144
|
+
},
|
|
145
|
+
success: {
|
|
146
|
+
5: '#EEF7F0',
|
|
147
|
+
10: '#CEE9D4',
|
|
148
|
+
20: '#B2DCBB',
|
|
149
|
+
30: '#8CCA99',
|
|
150
|
+
40: '#33A14B',
|
|
151
|
+
50: '#008A1E',
|
|
152
|
+
60: '#006E18',
|
|
153
|
+
70: '#005312',
|
|
154
|
+
80: '#00370C',
|
|
155
|
+
90: '#002207',
|
|
156
|
+
main: '#008A1E',
|
|
157
|
+
},
|
|
158
|
+
information: {
|
|
159
|
+
5: '#E9F0FF',
|
|
160
|
+
10: '#D4E1FF',
|
|
161
|
+
20: '#A9C3FF',
|
|
162
|
+
30: '#7DA4FF',
|
|
163
|
+
40: '#5286FF',
|
|
164
|
+
50: '#2768FF',
|
|
165
|
+
60: '#1F53CC',
|
|
166
|
+
70: '#173E99',
|
|
167
|
+
80: '#0C1F4D',
|
|
168
|
+
90: '#040A1A',
|
|
169
|
+
main: '#2768FF',
|
|
170
|
+
},
|
|
171
|
+
grey: {
|
|
172
|
+
0: '#FFFFFF',
|
|
173
|
+
5: '#F8F8F8',
|
|
174
|
+
10: '#F9FAFB',
|
|
175
|
+
20: '#F4F6F8',
|
|
176
|
+
30: '#DFE3E8',
|
|
177
|
+
40: '#C4CDD5',
|
|
178
|
+
50: '#919EAB',
|
|
179
|
+
60: '#637381',
|
|
180
|
+
70: '#454F5B',
|
|
181
|
+
80: '#1C252E',
|
|
182
|
+
90: '#141A21',
|
|
183
|
+
100: '#000000',
|
|
184
|
+
main: '#F4F6F8',
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
const DARK_COLORS = {
|
|
188
|
+
primary: {
|
|
189
|
+
...LIGHT_COLORS.primary,
|
|
190
|
+
main: '#FF9F06',
|
|
191
|
+
},
|
|
192
|
+
secondary: {
|
|
193
|
+
...LIGHT_COLORS.secondary,
|
|
194
|
+
main: '#007FFF',
|
|
195
|
+
},
|
|
196
|
+
danger: {
|
|
197
|
+
...LIGHT_COLORS.danger,
|
|
198
|
+
main: '#EB003B',
|
|
199
|
+
},
|
|
200
|
+
warning: {
|
|
201
|
+
...LIGHT_COLORS.warning,
|
|
202
|
+
main: '#FFB724',
|
|
203
|
+
},
|
|
204
|
+
success: {
|
|
205
|
+
...LIGHT_COLORS.success,
|
|
206
|
+
main: '#008A1E',
|
|
207
|
+
},
|
|
208
|
+
information: {
|
|
209
|
+
...LIGHT_COLORS.information,
|
|
210
|
+
main: '#2768FF',
|
|
211
|
+
},
|
|
212
|
+
grey: {
|
|
213
|
+
0: '#000000',
|
|
214
|
+
5: '#141414', // layer1
|
|
215
|
+
10: '#1F1F1F', // layer2
|
|
216
|
+
20: '#2C2C2C', // neutral
|
|
217
|
+
30: '#3D3D3D',
|
|
218
|
+
40: '#4F4F4F',
|
|
219
|
+
50: '#606060',
|
|
220
|
+
60: '#737373',
|
|
221
|
+
70: '#8C8C8C',
|
|
222
|
+
80: '#bfbfbf',
|
|
223
|
+
90: '#ededed',
|
|
224
|
+
100: '#FFFFFF',
|
|
225
|
+
main: '#2C2C2C',
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
const MAIN_COLORS = {
|
|
229
|
+
light: {
|
|
230
|
+
primary: LIGHT_COLORS.primary.main,
|
|
231
|
+
secondary: LIGHT_COLORS.secondary.main,
|
|
232
|
+
danger: LIGHT_COLORS.danger.main,
|
|
233
|
+
warning: LIGHT_COLORS.warning.main,
|
|
234
|
+
success: LIGHT_COLORS.success.main,
|
|
235
|
+
information: LIGHT_COLORS.information.main,
|
|
236
|
+
grey: LIGHT_COLORS.grey.main
|
|
237
|
+
},
|
|
238
|
+
dark: {
|
|
239
|
+
primary: DARK_COLORS.primary.main,
|
|
240
|
+
secondary: DARK_COLORS.secondary.main,
|
|
241
|
+
danger: DARK_COLORS.danger.main,
|
|
242
|
+
warning: DARK_COLORS.warning.main,
|
|
243
|
+
success: DARK_COLORS.success.main,
|
|
244
|
+
information: DARK_COLORS.information.main,
|
|
245
|
+
grey: DARK_COLORS.grey.main
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
const TEXT_COLORS = {
|
|
249
|
+
light: {
|
|
250
|
+
primary: LIGHT_COLORS.grey[80],
|
|
251
|
+
secondary: LIGHT_COLORS.grey[60],
|
|
252
|
+
disabled: LIGHT_COLORS.grey[50],
|
|
253
|
+
danger: LIGHT_COLORS.danger[60],
|
|
254
|
+
warning: LIGHT_COLORS.warning[60],
|
|
255
|
+
success: LIGHT_COLORS.success[60],
|
|
256
|
+
information: LIGHT_COLORS.information[60],
|
|
257
|
+
white: '#FFFFFF',
|
|
258
|
+
black: '#000000',
|
|
259
|
+
},
|
|
260
|
+
dark: {
|
|
261
|
+
primary: DARK_COLORS.grey[90],
|
|
262
|
+
secondary: DARK_COLORS.grey[70],
|
|
263
|
+
disabled: DARK_COLORS.grey[50],
|
|
264
|
+
danger: DARK_COLORS.danger[30],
|
|
265
|
+
warning: DARK_COLORS.warning[30],
|
|
266
|
+
success: DARK_COLORS.success[30],
|
|
267
|
+
information: DARK_COLORS.information[30],
|
|
268
|
+
white: '#FFFFFF',
|
|
269
|
+
black: '#000000',
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
const BORDER_COLORS = {
|
|
273
|
+
light: {
|
|
274
|
+
box: LIGHT_COLORS.grey[20],
|
|
275
|
+
active: LIGHT_COLORS.primary[50],
|
|
276
|
+
base: LIGHT_COLORS.grey[60],
|
|
277
|
+
danger: LIGHT_COLORS.danger[10],
|
|
278
|
+
warning: LIGHT_COLORS.warning[10],
|
|
279
|
+
success: LIGHT_COLORS.success[10],
|
|
280
|
+
information: LIGHT_COLORS.information[10],
|
|
281
|
+
},
|
|
282
|
+
dark: {
|
|
283
|
+
box: DARK_COLORS.grey[30],
|
|
284
|
+
active: DARK_COLORS.primary[50],
|
|
285
|
+
base: DARK_COLORS.grey[60],
|
|
286
|
+
danger: DARK_COLORS.danger[70],
|
|
287
|
+
warning: DARK_COLORS.warning[70],
|
|
288
|
+
success: DARK_COLORS.success[70],
|
|
289
|
+
information: DARK_COLORS.information[70],
|
|
290
|
+
},
|
|
291
|
+
};
|
|
292
|
+
const BACKGROUND_COLORS = {
|
|
293
|
+
light: {
|
|
294
|
+
layer1: LIGHT_COLORS.grey[5],
|
|
295
|
+
layer2: LIGHT_COLORS.grey[20],
|
|
296
|
+
neutral: LIGHT_COLORS.grey[30],
|
|
297
|
+
base: LIGHT_COLORS.grey[0],
|
|
298
|
+
danger: LIGHT_COLORS.danger[5],
|
|
299
|
+
warning: LIGHT_COLORS.warning[5],
|
|
300
|
+
success: LIGHT_COLORS.success[5],
|
|
301
|
+
information: LIGHT_COLORS.information[5],
|
|
302
|
+
},
|
|
303
|
+
dark: {
|
|
304
|
+
layer1: DARK_COLORS.grey[5],
|
|
305
|
+
layer2: DARK_COLORS.grey[20],
|
|
306
|
+
neutral: DARK_COLORS.grey[30],
|
|
307
|
+
base: DARK_COLORS.grey[0],
|
|
308
|
+
danger: DARK_COLORS.danger[80],
|
|
309
|
+
warning: DARK_COLORS.warning[80],
|
|
310
|
+
success: DARK_COLORS.success[80],
|
|
311
|
+
information: DARK_COLORS.information[80],
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
const ACTION_COLORS = {
|
|
315
|
+
light: {
|
|
316
|
+
hover: LIGHT_COLORS.primary[60],
|
|
317
|
+
pressed: LIGHT_COLORS.primary[70],
|
|
318
|
+
disable: LIGHT_COLORS.grey[20],
|
|
319
|
+
},
|
|
320
|
+
dark: {
|
|
321
|
+
hover: DARK_COLORS.primary[60],
|
|
322
|
+
pressed: DARK_COLORS.primary[70],
|
|
323
|
+
disable: DARK_COLORS.grey[30],
|
|
324
|
+
},
|
|
325
|
+
};
|
|
326
|
+
const DIVIDER_COLOR = {
|
|
327
|
+
light: LIGHT_COLORS.grey[50] + transparency['20%'],
|
|
328
|
+
dark: DARK_COLORS.grey[50] + transparency['20%'],
|
|
329
|
+
};
|
|
330
|
+
export default function palette({ mode = 'light', themeColors = {}, } = {}) {
|
|
331
|
+
const colors = mode === 'light' ? LIGHT_COLORS : DARK_COLORS;
|
|
332
|
+
const theme = {
|
|
333
|
+
mode,
|
|
334
|
+
...colors,
|
|
335
|
+
text: TEXT_COLORS[mode],
|
|
336
|
+
border: BORDER_COLORS[mode],
|
|
337
|
+
background: BACKGROUND_COLORS[mode],
|
|
338
|
+
action: ACTION_COLORS[mode],
|
|
339
|
+
divider: DIVIDER_COLOR[mode],
|
|
340
|
+
elevationShadow: SHADOW_COLORS[mode],
|
|
341
|
+
modalBgColor: MODAL_BG_COLOR[mode],
|
|
342
|
+
mainColor: MAIN_COLORS[mode]
|
|
343
|
+
};
|
|
344
|
+
// 사용자 정의 테마 컬러가 있을 경우 병합
|
|
345
|
+
if (themeColors?.[mode]) {
|
|
346
|
+
return {
|
|
347
|
+
...theme,
|
|
348
|
+
...themeColors[mode],
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
return theme;
|
|
352
|
+
}
|
|
353
|
+
//# sourceMappingURL=palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.js","sourceRoot":"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05',\n '4%': '0A',\n '6%': '0F',\n '8%': '14',\n '10%': '1A',\n '12%': '1F',\n '14%': '24',\n '16%': '29',\n '18%': '2E',\n '20%': '33',\n '22%': '38',\n '24%': '3D',\n '26%': '42',\n '28%': '47',\n '30%': '4D',\n '32%': '52',\n '34%': '57',\n '36%': '5C',\n '38%': '61',\n '40%': '66',\n '42%': '6B',\n '44%': '70',\n '46%': '75',\n '48%': '7A',\n '50%': '80',\n '52%': '85',\n '54%': '8A',\n '56%': '8F',\n '58%': '94',\n '60%': '99',\n '62%': '9E',\n '64%': 'A3',\n '66%': 'A8',\n '68%': 'AD',\n '70%': 'B3',\n '72%': 'B8',\n '74%': 'BD',\n '76%': 'C2',\n '78%': 'C7',\n '80%': 'CC',\n '82%': 'D1',\n '84%': 'D6',\n '86%': 'DB',\n '88%': 'E0',\n '90%': 'E6',\n '92%': 'EB',\n '94%': 'F0',\n '96%': 'F5',\n '98%': 'FA',\n '100%': 'FF' // 완전 불투명\n};\n\nconst MODAL_BG_COLOR = {\n light: '#212B3688',\n dark: '#00000088'\n}\n\nconst SHADOW_COLORS = {\n light: [\n 'rgba(0, 0, 0, 0.18)',\n 'rgba(0, 0, 0, 0.20)',\n 'rgba(0, 0, 0, 0.22)',\n 'rgba(0, 0, 0, 0.23)',\n 'rgba(0, 0, 0, 0.25)',\n 'rgba(0, 0, 0, 0.27)',\n 'rgba(0, 0, 0, 0.29)',\n 'rgba(0, 0, 0, 0.30)',\n 'rgba(0, 0, 0, 0.32)',\n 'rgba(0, 0, 0, 0.34)',\n ],\n dark: [\n 'rgba(255, 255, 255, 0.58)',\n 'rgba(255, 255, 255, 0.60)',\n 'rgba(255, 255, 255, 0.62)',\n 'rgba(255, 255, 255, 0.63)',\n 'rgba(255, 255, 255, 0.65)',\n 'rgba(255, 255, 255, 0.67)',\n 'rgba(255, 255, 255, 0.69)',\n 'rgba(255, 255, 255, 0.70)',\n 'rgba(255, 255, 255, 0.72)',\n 'rgba(255, 255, 255, 0.74)',\n ]\n}\n\nconst LIGHT_COLORS = {\n primary: {\n 0: '#FFF7E6',\n 5: '#FCEDD0',\n 10: '#F9DAA3', // p-lighter\n 20: '#F5BF64', // p-light\n 30: '#fca54c',\n 40: '#ff9225',\n 50: '#FF9F06', // p-main\n 60: '#DD9434', // p-dark\n 70: '#AC7326', // p-darker\n 80: '#c46500',\n 90: '#995400',\n 100: '#663800',\n lighter: '#F9DAA3',\n light: '#F5BF64',\n main: '#FF9F06',\n dark: '#DD9434',\n darker: '#AC7326',\n },\n secondary: {\n 0: '#E6F7FF',\n 5: '#D1EDFF',\n 10: '#ADE2FF',\n 20: '#85D4FF',\n 30: '#5CC5FF',\n 40: '#33B7FF',\n 50: '#007FFF',\n 60: '#0075E6',\n 70: '#006ACC',\n 80: '#005FB3',\n 90: '#005499',\n 100: '#003866',\n main: '#007FFF',\n },\n danger: {\n 5: '#FEECF0',\n 10: '#FCD4DE',\n 20: '#F799B1',\n 30: '#F36689',\n 40: '#EF3E5E',\n 50: '#EB003B',\n 60: '#D50136',\n 70: '#8D0023',\n 80: '#5E0018',\n 90: '#2F000C',\n main: '#EB003B',\n },\n warning: {\n 5: '#FFF8E9',\n 10: '#FFEAC1',\n 20: '#FFE2A7',\n 30: '#FFD47C',\n 40: '#FFC550',\n 50: '#FFB724',\n 60: '#98690A',\n 70: '#66490E',\n 80: '#4D370B',\n 90: '#332507',\n main: '#FFB724',\n },\n success: {\n 5: '#EEF7F0',\n 10: '#CEE9D4',\n 20: '#B2DCBB',\n 30: '#8CCA99',\n 40: '#33A14B',\n 50: '#008A1E',\n 60: '#006E18',\n 70: '#005312',\n 80: '#00370C',\n 90: '#002207',\n main: '#008A1E',\n },\n information: {\n 5: '#E9F0FF',\n 10: '#D4E1FF',\n 20: '#A9C3FF',\n 30: '#7DA4FF',\n 40: '#5286FF',\n 50: '#2768FF',\n 60: '#1F53CC',\n 70: '#173E99',\n 80: '#0C1F4D',\n 90: '#040A1A',\n main: '#2768FF',\n },\n grey: {\n 0: '#FFFFFF',\n 5: '#F8F8F8',\n 10: '#F9FAFB',\n 20: '#F4F6F8',\n 30: '#DFE3E8',\n 40: '#C4CDD5',\n 50: '#919EAB',\n 60: '#637381',\n 70: '#454F5B',\n 80: '#1C252E',\n 90: '#141A21',\n 100: '#000000',\n main: '#F4F6F8',\n },\n};\n\nconst DARK_COLORS = {\n primary: {\n ...LIGHT_COLORS.primary,\n main: '#FF9F06',\n },\n secondary: {\n ...LIGHT_COLORS.secondary,\n main: '#007FFF',\n },\n danger: {\n ...LIGHT_COLORS.danger,\n main: '#EB003B',\n },\n warning: {\n ...LIGHT_COLORS.warning,\n main: '#FFB724',\n },\n success: {\n ...LIGHT_COLORS.success,\n main: '#008A1E',\n },\n information: {\n ...LIGHT_COLORS.information,\n main: '#2768FF',\n },\n grey: {\n 0: '#000000',\n 5: '#141414', // layer1\n 10: '#1F1F1F', // layer2\n 20: '#2C2C2C', // neutral\n 30: '#3D3D3D',\n 40: '#4F4F4F',\n 50: '#606060',\n 60: '#737373',\n 70: '#8C8C8C',\n 80: '#bfbfbf',\n 90: '#ededed',\n 100: '#FFFFFF',\n main: '#2C2C2C',\n },\n};\n\nconst MAIN_COLORS = {\n light: {\n primary: LIGHT_COLORS.primary.main,\n secondary: LIGHT_COLORS.secondary.main,\n danger: LIGHT_COLORS.danger.main,\n warning: LIGHT_COLORS.warning.main,\n success: LIGHT_COLORS.success.main,\n information: LIGHT_COLORS.information.main,\n grey: LIGHT_COLORS.grey.main\n },\n dark: {\n primary: DARK_COLORS.primary.main,\n secondary: DARK_COLORS.secondary.main,\n danger: DARK_COLORS.danger.main,\n warning: DARK_COLORS.warning.main,\n success: DARK_COLORS.success.main,\n information: DARK_COLORS.information.main,\n grey: DARK_COLORS.grey.main\n }\n}\n\nconst TEXT_COLORS = {\n light: {\n primary: LIGHT_COLORS.grey[80],\n secondary: LIGHT_COLORS.grey[60],\n disabled: LIGHT_COLORS.grey[50],\n danger: LIGHT_COLORS.danger[60],\n warning: LIGHT_COLORS.warning[60],\n success: LIGHT_COLORS.success[60],\n information: LIGHT_COLORS.information[60],\n white: '#FFFFFF',\n black: '#000000',\n },\n dark: {\n primary: DARK_COLORS.grey[90],\n secondary: DARK_COLORS.grey[70],\n disabled: DARK_COLORS.grey[50],\n danger: DARK_COLORS.danger[30],\n warning: DARK_COLORS.warning[30],\n success: DARK_COLORS.success[30],\n information: DARK_COLORS.information[30],\n white: '#FFFFFF',\n black: '#000000',\n },\n};\n\nconst BORDER_COLORS = {\n light: {\n box: LIGHT_COLORS.grey[20],\n active: LIGHT_COLORS.primary[50],\n base: LIGHT_COLORS.grey[60],\n danger: LIGHT_COLORS.danger[10],\n warning: LIGHT_COLORS.warning[10],\n success: LIGHT_COLORS.success[10],\n information: LIGHT_COLORS.information[10],\n },\n dark: {\n box: DARK_COLORS.grey[30],\n active: DARK_COLORS.primary[50],\n base: DARK_COLORS.grey[60],\n danger: DARK_COLORS.danger[70],\n warning: DARK_COLORS.warning[70],\n success: DARK_COLORS.success[70],\n information: DARK_COLORS.information[70],\n },\n};\n\nconst BACKGROUND_COLORS = {\n light: {\n layer1: LIGHT_COLORS.grey[5],\n layer2: LIGHT_COLORS.grey[20],\n neutral: LIGHT_COLORS.grey[30],\n base: LIGHT_COLORS.grey[0],\n danger: LIGHT_COLORS.danger[5],\n warning: LIGHT_COLORS.warning[5],\n success: LIGHT_COLORS.success[5],\n information: LIGHT_COLORS.information[5],\n },\n dark: {\n layer1: DARK_COLORS.grey[5],\n layer2: DARK_COLORS.grey[20],\n neutral: DARK_COLORS.grey[30],\n base: DARK_COLORS.grey[0],\n danger: DARK_COLORS.danger[80],\n warning: DARK_COLORS.warning[80],\n success: DARK_COLORS.success[80],\n information: DARK_COLORS.information[80],\n },\n};\n\nconst ACTION_COLORS = {\n light: {\n hover: LIGHT_COLORS.primary[60],\n pressed: LIGHT_COLORS.primary[70],\n disable: LIGHT_COLORS.grey[20],\n },\n dark: {\n hover: DARK_COLORS.primary[60],\n pressed: DARK_COLORS.primary[70],\n disable: DARK_COLORS.grey[30],\n },\n};\n\nconst DIVIDER_COLOR = {\n light: LIGHT_COLORS.grey[50] + transparency['20%'],\n dark: DARK_COLORS.grey[50] + transparency['20%'],\n};\n\nexport default function palette({\n mode = 'light',\n themeColors = {},\n}: {\n mode?: 'light' | 'dark';\n themeColors?: { light?: Theme; dark?: Theme };\n} = {}): Theme {\n const colors = mode === 'light' ? LIGHT_COLORS : DARK_COLORS;\n\n const theme: Theme = {\n mode,\n ...colors,\n text: TEXT_COLORS[mode],\n border: BORDER_COLORS[mode],\n background: BACKGROUND_COLORS[mode],\n action: ACTION_COLORS[mode],\n divider: DIVIDER_COLOR[mode],\n elevationShadow: SHADOW_COLORS[mode],\n modalBgColor: MODAL_BG_COLOR[mode],\n mainColor: MAIN_COLORS[mode]\n };\n\n // 사용자 정의 테마 컬러가 있을 경우 병합\n if (themeColors?.[mode]) {\n return {\n ...theme,\n ...themeColors[mode],\n };\n }\n\n return theme;\n}\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
export type ColorPalette = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export interface ThemeTextType {
|
|
6
|
+
primary: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
disabled: string;
|
|
9
|
+
danger: string;
|
|
10
|
+
warning: string;
|
|
11
|
+
success: string;
|
|
12
|
+
information: string;
|
|
13
|
+
white: string;
|
|
14
|
+
black: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ThemeBorderType {
|
|
17
|
+
box: string;
|
|
18
|
+
active: string;
|
|
19
|
+
base: string;
|
|
20
|
+
danger: string;
|
|
21
|
+
warning: string;
|
|
22
|
+
success: string;
|
|
23
|
+
information: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ThemeBackground {
|
|
26
|
+
layer1: string;
|
|
27
|
+
layer2: string;
|
|
28
|
+
neutral: string;
|
|
29
|
+
base: string;
|
|
30
|
+
danger: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
success: string;
|
|
33
|
+
information: string;
|
|
34
|
+
}
|
|
35
|
+
export interface MainColors {
|
|
36
|
+
primary: string;
|
|
37
|
+
secondary: string;
|
|
38
|
+
danger: string;
|
|
39
|
+
warning: string;
|
|
40
|
+
success: string;
|
|
41
|
+
information: string;
|
|
42
|
+
grey: string;
|
|
43
|
+
}
|
|
44
|
+
export interface Theme {
|
|
45
|
+
mode: 'light' | 'dark';
|
|
46
|
+
primary: ColorPalette;
|
|
47
|
+
secondary: ColorPalette;
|
|
48
|
+
danger: ColorPalette;
|
|
49
|
+
warning: ColorPalette;
|
|
50
|
+
success: ColorPalette;
|
|
51
|
+
information: ColorPalette;
|
|
52
|
+
grey: ColorPalette;
|
|
53
|
+
text: ThemeTextType;
|
|
54
|
+
border: ThemeBorderType;
|
|
55
|
+
background: ThemeBackground;
|
|
56
|
+
action: {
|
|
57
|
+
hover: string;
|
|
58
|
+
pressed: string;
|
|
59
|
+
disable: string;
|
|
60
|
+
};
|
|
61
|
+
divider: string;
|
|
62
|
+
elevationShadow: string[];
|
|
63
|
+
modalBgColor: string;
|
|
64
|
+
mainColor: MainColors;
|
|
65
|
+
}
|
|
66
|
+
export interface TypographyVariants {
|
|
67
|
+
themeFonts?: ThemeFonts;
|
|
68
|
+
heading: TypoNumber;
|
|
69
|
+
label: TypoNumber;
|
|
70
|
+
title: TypoNumber;
|
|
71
|
+
subTitle: TypoNumber;
|
|
72
|
+
body: TypoNumber;
|
|
73
|
+
caption: TypoNumber;
|
|
74
|
+
}
|
|
75
|
+
export interface ThemeFonts {
|
|
76
|
+
100?: string;
|
|
77
|
+
200?: string;
|
|
78
|
+
300?: string;
|
|
79
|
+
400: string;
|
|
80
|
+
500?: string;
|
|
81
|
+
600?: string;
|
|
82
|
+
700: string;
|
|
83
|
+
800?: string;
|
|
84
|
+
900?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface TypoNumber {
|
|
87
|
+
'1': TextProps['style'];
|
|
88
|
+
'2': TextProps['style'];
|
|
89
|
+
'3': TextProps['style'];
|
|
90
|
+
'4': TextProps['style'];
|
|
91
|
+
'5': TextProps['style'];
|
|
92
|
+
'6': TextProps['style'];
|
|
93
|
+
}
|
|
94
|
+
export interface TypographyVariantsProps extends TypographyVariants {
|
|
95
|
+
themeFonts?: ThemeFonts;
|
|
96
|
+
}
|
|
97
|
+
export type TypoStyle = 'heading' | 'title' | 'subTitle' | 'label' | 'body' | 'caption';
|
|
98
|
+
export type TypoOptions = 'heading.1' | 'heading.2' | 'heading.3' | 'heading.4' | 'heading.5' | 'heading.6' | 'title.1' | 'title.2' | 'title.3' | 'title.4' | 'title.5' | 'title.6' | 'subTitle.1' | 'subTitle.2' | 'subTitle.3' | 'subTitle.4' | 'subTitle.5' | 'subTitle.6' | 'body.1' | 'body.2' | 'body.3' | 'body.4' | 'body.5' | 'body.6' | 'label.1' | 'label.2' | 'label.3' | 'label.4' | 'label.5' | 'label.6' | 'caption.1' | 'caption.2' | 'caption.3' | 'caption.4' | 'caption.5' | 'caption.6';
|
|
99
|
+
export type TypoSubStyle = '1' | '2' | '3' | '4' | '5' | '6';
|
|
100
|
+
export type TextColorOptions = 'primary' | 'secondary' | 'disabled' | 'danger' | 'warning' | 'success' | 'information' | 'white' | 'black';
|
|
101
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,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,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAExF,MAAM,MAAM,WAAW,GACrB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/theme/types.ts"],"names":[],"mappings":"AAgFC,CAAC;AAYD,CAAC;AAaD,CAAC","sourcesContent":["import { TextProps } from \"react-native\";\n\nexport type ColorPalette = {\n [key: string]: string;\n};\n\nexport interface ThemeTextType {\n primary: string;\n secondary: string;\n disabled: string;\n danger: string;\n warning: string;\n success: string;\n information: string;\n white: string;\n black: string;\n}\n\nexport interface ThemeBorderType {\n box: string;\n active: string;\n base: string;\n danger: string;\n warning: string;\n success: string;\n information: string;\n}\n\nexport interface ThemeBackground {\n layer1: string;\n layer2: string;\n neutral: string;\n base: string;\n danger: string;\n warning: string;\n success: string;\n information: string;\n}\n\nexport interface MainColors {\n primary: string;\n secondary: string;\n danger: string;\n warning: string;\n success: string;\n information: string;\n grey: string;\n}\n\nexport interface Theme {\n mode: 'light' | 'dark';\n primary: ColorPalette;\n secondary: ColorPalette;\n danger: ColorPalette;\n warning: ColorPalette;\n success: ColorPalette;\n information: ColorPalette;\n grey: ColorPalette;\n text: ThemeTextType;\n border: ThemeBorderType;\n background: ThemeBackground;\n action: {\n hover: string;\n pressed: string;\n disable: string;\n };\n divider: string;\n elevationShadow: string[];\n modalBgColor: string;\n mainColor: MainColors;\n}\n\nexport interface TypographyVariants {\n themeFonts?: ThemeFonts;\n heading: TypoNumber;\n label: TypoNumber;\n title: TypoNumber;\n subTitle: TypoNumber;\n body: TypoNumber;\n caption: TypoNumber;\n};\n\nexport interface ThemeFonts {\n 100?: string;\n 200?: string;\n 300?: string;\n 400: string;\n 500?: string;\n 600?: string;\n 700: string;\n 800?: string;\n 900?: string;\n};\n\nexport interface TypoNumber {\n '1': TextProps['style'];\n '2': TextProps['style'];\n '3': TextProps['style'];\n '4': TextProps['style'];\n '5': TextProps['style'];\n '6': TextProps['style'];\n}\n\nexport interface TypographyVariantsProps extends TypographyVariants {\n themeFonts?: ThemeFonts;\n};\n\nexport type TypoStyle = 'heading' | 'title' | 'subTitle' | 'label' | 'body' | 'caption';\n\nexport type TypoOptions =\n 'heading.1' |\n 'heading.2' |\n 'heading.3' |\n 'heading.4' |\n 'heading.5' |\n 'heading.6' |\n 'title.1' |\n 'title.2' |\n 'title.3' |\n 'title.4' |\n 'title.5' |\n 'title.6' |\n 'subTitle.1' |\n 'subTitle.2' |\n 'subTitle.3' |\n 'subTitle.4' |\n 'subTitle.5' |\n 'subTitle.6' |\n 'body.1' |\n 'body.2' |\n 'body.3' |\n 'body.4' |\n 'body.5' |\n 'body.6' |\n 'label.1' |\n 'label.2' |\n 'label.3' |\n 'label.4' |\n 'label.5' |\n 'label.6' |\n 'caption.1' |\n 'caption.2' |\n 'caption.3' |\n 'caption.4' |\n 'caption.5' |\n 'caption.6';\n\nexport type TypoSubStyle = '1' | '2' | '3' | '4' | '5' | '6';\n\nexport type TextColorOptions = 'primary' | 'secondary' | 'disabled' | 'danger' | 'warning' | 'success' | 'information' | 'white' | 'black';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/theme/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,GAAG,uBAAuB,CAoMvG"}
|