@kukkim/react-native-ui 0.1.0
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/LICENSE +20 -0
- package/README.md +33 -0
- package/lib/module/assets/icons/arrow-down-to-line.svg +1 -0
- package/lib/module/assets/icons/arrow-down-wide-narrow.svg +1 -0
- package/lib/module/assets/icons/arrow-left.svg +1 -0
- package/lib/module/assets/icons/check.svg +1 -0
- package/lib/module/assets/icons/chevron-down.svg +1 -0
- package/lib/module/assets/icons/copy.svg +1 -0
- package/lib/module/assets/icons/rotate-cw.svg +1 -0
- package/lib/module/assets/icons/square-arrow-out-up-right.svg +1 -0
- package/lib/module/assets/icons/star-empty.svg +1 -0
- package/lib/module/assets/icons/star-full.svg +1 -0
- package/lib/module/assets/icons/star-half.svg +25 -0
- package/lib/module/assets/icons/x.svg +1 -0
- package/lib/module/assets/images/defaultImage.png +0 -0
- package/lib/module/components/avatar/index.js +45 -0
- package/lib/module/components/avatar/index.js.map +1 -0
- package/lib/module/components/avatar/types.js +49 -0
- package/lib/module/components/avatar/types.js.map +1 -0
- package/lib/module/components/badge/commonBadge.js +44 -0
- package/lib/module/components/badge/commonBadge.js.map +1 -0
- package/lib/module/components/badge/index.js +5 -0
- package/lib/module/components/badge/index.js.map +1 -0
- package/lib/module/components/badge/types.js +48 -0
- package/lib/module/components/badge/types.js.map +1 -0
- package/lib/module/components/button/commonButton.js +43 -0
- package/lib/module/components/button/commonButton.js.map +1 -0
- package/lib/module/components/button/index.js +5 -0
- package/lib/module/components/button/index.js.map +1 -0
- package/lib/module/components/button/types.js +28 -0
- package/lib/module/components/button/types.js.map +1 -0
- package/lib/module/components/card/commonCard.js +57 -0
- package/lib/module/components/card/commonCard.js.map +1 -0
- package/lib/module/components/card/foldableCard.js +76 -0
- package/lib/module/components/card/foldableCard.js.map +1 -0
- package/lib/module/components/card/index.js +6 -0
- package/lib/module/components/card/index.js.map +1 -0
- package/lib/module/components/card/types.js +4 -0
- package/lib/module/components/card/types.js.map +1 -0
- package/lib/module/components/checkBox/index.js +38 -0
- package/lib/module/components/checkBox/index.js.map +1 -0
- package/lib/module/components/checkBox/types.js +17 -0
- package/lib/module/components/checkBox/types.js.map +1 -0
- package/lib/module/components/header/commonHeader.js +72 -0
- package/lib/module/components/header/commonHeader.js.map +1 -0
- package/lib/module/components/header/index.js +5 -0
- package/lib/module/components/header/index.js.map +1 -0
- package/lib/module/components/header/types.js +28 -0
- package/lib/module/components/header/types.js.map +1 -0
- package/lib/module/components/icon/ArrowDownToLine.js +25 -0
- package/lib/module/components/icon/ArrowDownToLine.js.map +1 -0
- package/lib/module/components/icon/ArrowDownWideNarrow.js +25 -0
- package/lib/module/components/icon/ArrowDownWideNarrow.js.map +1 -0
- package/lib/module/components/icon/ArrowLeft.js +25 -0
- package/lib/module/components/icon/ArrowLeft.js.map +1 -0
- package/lib/module/components/icon/Check.js +25 -0
- package/lib/module/components/icon/Check.js.map +1 -0
- package/lib/module/components/icon/ChevronDown.js +25 -0
- package/lib/module/components/icon/ChevronDown.js.map +1 -0
- package/lib/module/components/icon/Copy.js +32 -0
- package/lib/module/components/icon/Copy.js.map +1 -0
- package/lib/module/components/icon/RotateCw.js +27 -0
- package/lib/module/components/icon/RotateCw.js.map +1 -0
- package/lib/module/components/icon/SquareArrowOutUpRight.js +25 -0
- package/lib/module/components/icon/SquareArrowOutUpRight.js.map +1 -0
- package/lib/module/components/icon/StarEmpty.js +25 -0
- package/lib/module/components/icon/StarEmpty.js.map +1 -0
- package/lib/module/components/icon/StarFull.js +25 -0
- package/lib/module/components/icon/StarFull.js.map +1 -0
- package/lib/module/components/icon/StarHalf.js +34 -0
- package/lib/module/components/icon/StarHalf.js.map +1 -0
- package/lib/module/components/icon/X.js +25 -0
- package/lib/module/components/icon/X.js.map +1 -0
- package/lib/module/components/icon/index.js +54 -0
- package/lib/module/components/icon/index.js.map +1 -0
- package/lib/module/components/icon/types.js +8 -0
- package/lib/module/components/icon/types.js.map +1 -0
- package/lib/module/components/image/index.js +25 -0
- package/lib/module/components/image/index.js.map +1 -0
- package/lib/module/components/image/types.js +39 -0
- package/lib/module/components/image/types.js.map +1 -0
- package/lib/module/components/index.js +15 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/progressBar/circularProgressBar.js +59 -0
- package/lib/module/components/progressBar/circularProgressBar.js.map +1 -0
- package/lib/module/components/progressBar/index.js +7 -0
- package/lib/module/components/progressBar/index.js.map +1 -0
- package/lib/module/components/progressBar/linearProgressBar.js +42 -0
- package/lib/module/components/progressBar/linearProgressBar.js.map +1 -0
- package/lib/module/components/progressBar/types.js +13 -0
- package/lib/module/components/progressBar/types.js.map +1 -0
- package/lib/module/components/rating/index.js +84 -0
- package/lib/module/components/rating/index.js.map +1 -0
- package/lib/module/components/rating/types.js +8 -0
- package/lib/module/components/rating/types.js.map +1 -0
- package/lib/module/components/screenContainer/SafeAreaContainer.js +26 -0
- package/lib/module/components/screenContainer/SafeAreaContainer.js.map +1 -0
- package/lib/module/components/screenContainer/ScrollViewContainer.js +24 -0
- package/lib/module/components/screenContainer/ScrollViewContainer.js.map +1 -0
- package/lib/module/components/screenContainer/index.js +6 -0
- package/lib/module/components/screenContainer/index.js.map +1 -0
- package/lib/module/components/skeleton/index.js +3 -0
- package/lib/module/components/skeleton/index.js.map +1 -0
- package/lib/module/components/skeleton/types.js +2 -0
- package/lib/module/components/skeleton/types.js.map +1 -0
- package/lib/module/components/slider/index.js +3 -0
- package/lib/module/components/slider/index.js.map +1 -0
- package/lib/module/components/slider/types.js +2 -0
- package/lib/module/components/slider/types.js.map +1 -0
- package/lib/module/components/switch/index.js +3 -0
- package/lib/module/components/switch/index.js.map +1 -0
- package/lib/module/components/switch/types.js +2 -0
- package/lib/module/components/switch/types.js.map +1 -0
- package/lib/module/components/text/commonText.js +28 -0
- package/lib/module/components/text/commonText.js.map +1 -0
- package/lib/module/components/text/index.js +5 -0
- package/lib/module/components/text/index.js.map +1 -0
- package/lib/module/components/text/types.js +17 -0
- package/lib/module/components/text/types.js.map +1 -0
- package/lib/module/hooks/useTheme.js +12 -0
- package/lib/module/hooks/useTheme.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/theme/color.js +10 -0
- package/lib/module/theme/color.js.map +1 -0
- package/lib/module/theme/style.js +17 -0
- package/lib/module/theme/style.js.map +1 -0
- package/lib/module/theme/themeProvider.js +22 -0
- package/lib/module/theme/themeProvider.js.map +1 -0
- package/lib/module/theme/themes.js +41 -0
- package/lib/module/theme/themes.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/avatar/index.d.ts +3 -0
- package/lib/typescript/src/components/avatar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/avatar/types.d.ts +16 -0
- package/lib/typescript/src/components/avatar/types.d.ts.map +1 -0
- package/lib/typescript/src/components/badge/commonBadge.d.ts +4 -0
- package/lib/typescript/src/components/badge/commonBadge.d.ts.map +1 -0
- package/lib/typescript/src/components/badge/index.d.ts +3 -0
- package/lib/typescript/src/components/badge/index.d.ts.map +1 -0
- package/lib/typescript/src/components/badge/types.d.ts +19 -0
- package/lib/typescript/src/components/badge/types.d.ts.map +1 -0
- package/lib/typescript/src/components/button/commonButton.d.ts +4 -0
- package/lib/typescript/src/components/button/commonButton.d.ts.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts +3 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/button/types.d.ts +14 -0
- package/lib/typescript/src/components/button/types.d.ts.map +1 -0
- package/lib/typescript/src/components/card/commonCard.d.ts +4 -0
- package/lib/typescript/src/components/card/commonCard.d.ts.map +1 -0
- package/lib/typescript/src/components/card/foldableCard.d.ts +4 -0
- package/lib/typescript/src/components/card/foldableCard.d.ts.map +1 -0
- package/lib/typescript/src/components/card/index.d.ts +4 -0
- package/lib/typescript/src/components/card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/card/types.d.ts +16 -0
- package/lib/typescript/src/components/card/types.d.ts.map +1 -0
- package/lib/typescript/src/components/checkBox/index.d.ts +3 -0
- package/lib/typescript/src/components/checkBox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/checkBox/types.d.ts +11 -0
- package/lib/typescript/src/components/checkBox/types.d.ts.map +1 -0
- package/lib/typescript/src/components/header/commonHeader.d.ts +4 -0
- package/lib/typescript/src/components/header/commonHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/header/index.d.ts +3 -0
- package/lib/typescript/src/components/header/index.d.ts.map +1 -0
- package/lib/typescript/src/components/header/types.d.ts +19 -0
- package/lib/typescript/src/components/header/types.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/ArrowDownToLine.d.ts +4 -0
- package/lib/typescript/src/components/icon/ArrowDownToLine.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/ArrowDownWideNarrow.d.ts +4 -0
- package/lib/typescript/src/components/icon/ArrowDownWideNarrow.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/ArrowLeft.d.ts +4 -0
- package/lib/typescript/src/components/icon/ArrowLeft.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/Check.d.ts +4 -0
- package/lib/typescript/src/components/icon/Check.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/ChevronDown.d.ts +4 -0
- package/lib/typescript/src/components/icon/ChevronDown.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/Copy.d.ts +4 -0
- package/lib/typescript/src/components/icon/Copy.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/RotateCw.d.ts +4 -0
- package/lib/typescript/src/components/icon/RotateCw.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/SquareArrowOutUpRight.d.ts +4 -0
- package/lib/typescript/src/components/icon/SquareArrowOutUpRight.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/StarEmpty.d.ts +4 -0
- package/lib/typescript/src/components/icon/StarEmpty.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/StarFull.d.ts +4 -0
- package/lib/typescript/src/components/icon/StarFull.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/StarHalf.d.ts +4 -0
- package/lib/typescript/src/components/icon/StarHalf.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/X.d.ts +4 -0
- package/lib/typescript/src/components/icon/X.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/index.d.ts +3 -0
- package/lib/typescript/src/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/src/components/icon/types.d.ts +12 -0
- package/lib/typescript/src/components/icon/types.d.ts.map +1 -0
- package/lib/typescript/src/components/image/index.d.ts +3 -0
- package/lib/typescript/src/components/image/index.d.ts.map +1 -0
- package/lib/typescript/src/components/image/types.d.ts +9 -0
- package/lib/typescript/src/components/image/types.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +13 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/progressBar/circularProgressBar.d.ts +4 -0
- package/lib/typescript/src/components/progressBar/circularProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/progressBar/index.d.ts +4 -0
- package/lib/typescript/src/components/progressBar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/progressBar/linearProgressBar.d.ts +4 -0
- package/lib/typescript/src/components/progressBar/linearProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/components/progressBar/types.d.ts +12 -0
- package/lib/typescript/src/components/progressBar/types.d.ts.map +1 -0
- package/lib/typescript/src/components/rating/index.d.ts +3 -0
- package/lib/typescript/src/components/rating/index.d.ts.map +1 -0
- package/lib/typescript/src/components/rating/types.d.ts +13 -0
- package/lib/typescript/src/components/rating/types.d.ts.map +1 -0
- package/lib/typescript/src/components/screenContainer/SafeAreaContainer.d.ts +4 -0
- package/lib/typescript/src/components/screenContainer/SafeAreaContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/screenContainer/ScrollViewContainer.d.ts +4 -0
- package/lib/typescript/src/components/screenContainer/ScrollViewContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/screenContainer/index.d.ts +4 -0
- package/lib/typescript/src/components/screenContainer/index.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/index.d.ts +1 -0
- package/lib/typescript/src/components/skeleton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/skeleton/types.d.ts +1 -0
- package/lib/typescript/src/components/skeleton/types.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/index.d.ts +1 -0
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/types.d.ts +1 -0
- package/lib/typescript/src/components/slider/types.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/index.d.ts +1 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/types.d.ts +1 -0
- package/lib/typescript/src/components/switch/types.d.ts.map +1 -0
- package/lib/typescript/src/components/text/commonText.d.ts +4 -0
- package/lib/typescript/src/components/text/commonText.d.ts.map +1 -0
- package/lib/typescript/src/components/text/index.d.ts +3 -0
- package/lib/typescript/src/components/text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/text/types.d.ts +11 -0
- package/lib/typescript/src/components/text/types.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useTheme.d.ts +5 -0
- package/lib/typescript/src/hooks/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/color.d.ts +8 -0
- package/lib/typescript/src/theme/color.d.ts.map +1 -0
- package/lib/typescript/src/theme/style.d.ts +15 -0
- package/lib/typescript/src/theme/style.d.ts.map +1 -0
- package/lib/typescript/src/theme/themeProvider.d.ts +13 -0
- package/lib/typescript/src/theme/themeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/themes.d.ts +25 -0
- package/lib/typescript/src/theme/themes.d.ts.map +1 -0
- package/package.json +170 -0
- package/src/assets/icons/arrow-down-to-line.svg +1 -0
- package/src/assets/icons/arrow-down-wide-narrow.svg +1 -0
- package/src/assets/icons/arrow-left.svg +1 -0
- package/src/assets/icons/check.svg +1 -0
- package/src/assets/icons/chevron-down.svg +1 -0
- package/src/assets/icons/copy.svg +1 -0
- package/src/assets/icons/rotate-cw.svg +1 -0
- package/src/assets/icons/square-arrow-out-up-right.svg +1 -0
- package/src/assets/icons/star-empty.svg +1 -0
- package/src/assets/icons/star-full.svg +1 -0
- package/src/assets/icons/star-half.svg +25 -0
- package/src/assets/icons/x.svg +1 -0
- package/src/assets/images/defaultImage.png +0 -0
- package/src/components/avatar/index.tsx +58 -0
- package/src/components/avatar/types.ts +38 -0
- package/src/components/badge/commonBadge.tsx +50 -0
- package/src/components/badge/index.ts +3 -0
- package/src/components/badge/types.ts +36 -0
- package/src/components/button/commonButton.tsx +43 -0
- package/src/components/button/index.ts +3 -0
- package/src/components/button/types.ts +29 -0
- package/src/components/card/commonCard.tsx +67 -0
- package/src/components/card/foldableCard.tsx +88 -0
- package/src/components/card/index.ts +4 -0
- package/src/components/card/types.ts +18 -0
- package/src/components/checkBox/index.tsx +41 -0
- package/src/components/checkBox/types.ts +16 -0
- package/src/components/header/commonHeader.tsx +55 -0
- package/src/components/header/index.ts +3 -0
- package/src/components/header/types.ts +30 -0
- package/src/components/icon/ArrowDownToLine.tsx +21 -0
- package/src/components/icon/ArrowDownWideNarrow.tsx +21 -0
- package/src/components/icon/ArrowLeft.tsx +21 -0
- package/src/components/icon/Check.tsx +21 -0
- package/src/components/icon/ChevronDown.tsx +21 -0
- package/src/components/icon/Copy.tsx +22 -0
- package/src/components/icon/RotateCw.tsx +22 -0
- package/src/components/icon/SquareArrowOutUpRight.tsx +21 -0
- package/src/components/icon/StarEmpty.tsx +21 -0
- package/src/components/icon/StarFull.tsx +21 -0
- package/src/components/icon/StarHalf.tsx +32 -0
- package/src/components/icon/X.tsx +21 -0
- package/src/components/icon/index.tsx +54 -0
- package/src/components/icon/types.ts +30 -0
- package/src/components/image/index.tsx +21 -0
- package/src/components/image/types.ts +20 -0
- package/src/components/index.ts +12 -0
- package/src/components/progressBar/circularProgressBar.tsx +64 -0
- package/src/components/progressBar/index.ts +5 -0
- package/src/components/progressBar/linearProgressBar.tsx +51 -0
- package/src/components/progressBar/types.ts +22 -0
- package/src/components/rating/index.tsx +106 -0
- package/src/components/rating/types.ts +17 -0
- package/src/components/screenContainer/SafeAreaContainer.tsx +22 -0
- package/src/components/screenContainer/ScrollViewContainer.tsx +19 -0
- package/src/components/screenContainer/index.ts +4 -0
- package/src/components/skeleton/index.tsx +1 -0
- package/src/components/skeleton/types.ts +0 -0
- package/src/components/slider/index.tsx +1 -0
- package/src/components/slider/types.ts +0 -0
- package/src/components/switch/index.tsx +1 -0
- package/src/components/switch/types.ts +0 -0
- package/src/components/text/commonText.tsx +27 -0
- package/src/components/text/index.ts +3 -0
- package/src/components/text/types.ts +16 -0
- package/src/hooks/useTheme.ts +12 -0
- package/src/index.tsx +18 -0
- package/src/theme/color.ts +7 -0
- package/src/theme/style.ts +15 -0
- package/src/theme/themeProvider.tsx +25 -0
- package/src/theme/themes.ts +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Image","StyleSheet","sizeType","jsx","_jsx","CommonImage","size","props","style","styles","container","source","require","create"],"sourceRoot":"../../../../src","sources":["components/image/index.tsx"],"mappings":";;AAAA;AACA,SAASA,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAChD,SAAgCC,QAAQ,QAAQ,YAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1D,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,IAAI,GAAG,GAAG;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACzE;EACA,oBACEH,IAAA,CAACJ,KAAK;IACJQ,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAER,QAAQ,CAACI,IAAI,CAAC,CAAE;IAC1CK,MAAM,EAAEC,OAAO,CAAC,sCAAsC;IACtD;IACA;IACA;IAAA;IAAA,GACIL;EAAK,CACV,CAAC;AAEN,CAAC;AAED,MAAME,MAAM,GAAGR,UAAU,CAACY,MAAM,CAAC;EAC/BH,SAAS,EAAE,CAAC;AACd,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// type Variant = 'primary' | 'secondary';
|
|
4
|
+
|
|
5
|
+
export const sizeType = {
|
|
6
|
+
s: {
|
|
7
|
+
width: 24,
|
|
8
|
+
height: 24
|
|
9
|
+
},
|
|
10
|
+
m: {
|
|
11
|
+
width: 48,
|
|
12
|
+
height: 48
|
|
13
|
+
},
|
|
14
|
+
l: {
|
|
15
|
+
width: 72,
|
|
16
|
+
height: 72
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export const avatarSizeType = {
|
|
20
|
+
s: {
|
|
21
|
+
width: 24,
|
|
22
|
+
height: 24,
|
|
23
|
+
borderRadius: 12,
|
|
24
|
+
borderWidth: 1
|
|
25
|
+
},
|
|
26
|
+
m: {
|
|
27
|
+
width: 48,
|
|
28
|
+
height: 48,
|
|
29
|
+
borderRadius: 24,
|
|
30
|
+
borderWidth: 1
|
|
31
|
+
},
|
|
32
|
+
l: {
|
|
33
|
+
width: 72,
|
|
34
|
+
height: 72,
|
|
35
|
+
borderRadius: 36,
|
|
36
|
+
borderWidth: 1
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","width","height","m","l","avatarSizeType","borderRadius","borderWidth"],"sourceRoot":"../../../../src","sources":["components/image/types.ts"],"mappings":";;AAEA;;AAGA,OAAO,MAAMA,QAAyC,GAAG;EACvDC,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC5BC,CAAC,EAAE;IAAEF,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC5BE,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG;AAC7B,CAAC;AAED,OAAO,MAAMG,cAA+C,GAAG;EAC7DL,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE,CAAC;EAC9DJ,CAAC,EAAE;IAAEF,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE,CAAC;EAC9DH,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEI,YAAY,EAAE,EAAE;IAAEC,WAAW,EAAE;EAAE;AAC/D,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { CommonText } from "./text/index.js";
|
|
4
|
+
export { CommonButton } from "./button/index.js";
|
|
5
|
+
export { CommonBadge } from "./badge/index.js";
|
|
6
|
+
export { SafeAreaContainer, ScrollViewContainer } from "./screenContainer/index.js";
|
|
7
|
+
export { CommonIcon } from "./icon/index.js";
|
|
8
|
+
export { CommonRating } from "./rating/index.js";
|
|
9
|
+
export { CommonAvatar } from "./avatar/index.js";
|
|
10
|
+
export { CommonImage } from "./image/index.js";
|
|
11
|
+
export { CheckBox } from "./checkBox/index.js";
|
|
12
|
+
export { CommonHeader } from "./header/index.js";
|
|
13
|
+
export { CommonCard, FoldableCard } from "./card/index.js";
|
|
14
|
+
export { LinearProgressBar, CircularProgressBar } from "./progressBar/index.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAQ;AACnC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,WAAW,QAAQ,kBAAS;AACrC,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,4BAAmB;AAC1E,SAASC,UAAU,QAAQ,iBAAQ;AACnC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,WAAW,QAAQ,kBAAS;AACrC,SAASC,QAAQ,QAAQ,qBAAY;AACrC,SAASC,YAAY,QAAQ,mBAAU;AACvC,SAASC,UAAU,EAAEC,YAAY,QAAQ,iBAAQ;AACjD,SAASC,iBAAiB,EAAEC,mBAAmB,QAAQ,wBAAe","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import Svg, { Circle } from 'react-native-svg';
|
|
5
|
+
import { sizeType, strokeWidthType } from "./types.js";
|
|
6
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const CircularProgressBar = ({
|
|
9
|
+
type = 'primary',
|
|
10
|
+
size = 'm',
|
|
11
|
+
value,
|
|
12
|
+
style,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
theme
|
|
17
|
+
} = useTheme();
|
|
18
|
+
const progress = Math.min(Math.max(value, 0), 1);
|
|
19
|
+
const svgSize = sizeType[size];
|
|
20
|
+
const strokeWidth = strokeWidthType[size];
|
|
21
|
+
const radius = (svgSize - strokeWidth) / 2;
|
|
22
|
+
const circumference = 2 * Math.PI * radius;
|
|
23
|
+
const strokeDashoffset = circumference * (1 - progress);
|
|
24
|
+
return /*#__PURE__*/_jsx(View, {
|
|
25
|
+
style: [styles.container, style],
|
|
26
|
+
...props,
|
|
27
|
+
children: /*#__PURE__*/_jsxs(Svg, {
|
|
28
|
+
width: svgSize,
|
|
29
|
+
height: svgSize,
|
|
30
|
+
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
31
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
32
|
+
cx: svgSize / 2,
|
|
33
|
+
cy: svgSize / 2,
|
|
34
|
+
r: radius,
|
|
35
|
+
stroke: theme.colors.disabled,
|
|
36
|
+
strokeWidth: strokeWidth,
|
|
37
|
+
fill: "none"
|
|
38
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
39
|
+
cx: svgSize / 2,
|
|
40
|
+
cy: svgSize / 2,
|
|
41
|
+
r: radius,
|
|
42
|
+
stroke: theme.colors[type],
|
|
43
|
+
strokeWidth: strokeWidth,
|
|
44
|
+
fill: "none",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeDasharray: circumference,
|
|
47
|
+
strokeDashoffset: strokeDashoffset,
|
|
48
|
+
rotation: "-90",
|
|
49
|
+
originX: svgSize / 2,
|
|
50
|
+
originY: svgSize / 2
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
container: {}
|
|
57
|
+
});
|
|
58
|
+
export default CircularProgressBar;
|
|
59
|
+
//# sourceMappingURL=circularProgressBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","Svg","Circle","sizeType","strokeWidthType","useTheme","jsx","_jsx","jsxs","_jsxs","CircularProgressBar","type","size","value","style","props","theme","progress","Math","min","max","svgSize","strokeWidth","radius","circumference","PI","strokeDashoffset","styles","container","children","width","height","viewBox","cx","cy","r","stroke","colors","disabled","fill","strokeLinecap","strokeDasharray","rotation","originX","originY","create"],"sourceRoot":"../../../../src","sources":["components/progressBar/circularProgressBar.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,GAAG,IAAIC,MAAM,QAAQ,kBAAkB;AAC9C,SAAgCC,QAAQ,EAAEC,eAAe,QAAQ,YAAS;AAC1E,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,KAAK;EACLC,KAAK;EACL,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAE5B,MAAMY,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACP,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EAEhD,MAAMQ,OAAO,GAAGlB,QAAQ,CAACS,IAAI,CAAC;EAC9B,MAAMU,WAAW,GAAGlB,eAAe,CAACQ,IAAI,CAAC;EAEzC,MAAMW,MAAM,GAAG,CAACF,OAAO,GAAGC,WAAW,IAAI,CAAC;EAC1C,MAAME,aAAa,GAAG,CAAC,GAAGN,IAAI,CAACO,EAAE,GAAGF,MAAM;EAE1C,MAAMG,gBAAgB,GAAGF,aAAa,IAAI,CAAC,GAAGP,QAAQ,CAAC;EAEvD,oBACEV,IAAA,CAACP,IAAI;IAACc,KAAK,EAAE,CAACa,MAAM,CAACC,SAAS,EAAEd,KAAK,CAAE;IAAA,GAAKC,KAAK;IAAAc,QAAA,eAC/CpB,KAAA,CAACR,GAAG;MACF6B,KAAK,EAAET,OAAQ;MACfU,MAAM,EAAEV,OAAQ;MAChBW,OAAO,EAAE,OAAOX,OAAO,IAAIA,OAAO,EAAG;MAAAQ,QAAA,gBAErCtB,IAAA,CAACL,MAAM;QACL+B,EAAE,EAAEZ,OAAO,GAAG,CAAE;QAChBa,EAAE,EAAEb,OAAO,GAAG,CAAE;QAChBc,CAAC,EAAEZ,MAAO;QACVa,MAAM,EAAEpB,KAAK,CAACqB,MAAM,CAACC,QAAS;QAC9BhB,WAAW,EAAEA,WAAY;QACzBiB,IAAI,EAAC;MAAM,CACZ,CAAC,eAEFhC,IAAA,CAACL,MAAM;QACL+B,EAAE,EAAEZ,OAAO,GAAG,CAAE;QAChBa,EAAE,EAAEb,OAAO,GAAG,CAAE;QAChBc,CAAC,EAAEZ,MAAO;QACVa,MAAM,EAAEpB,KAAK,CAACqB,MAAM,CAAC1B,IAAI,CAAE;QAC3BW,WAAW,EAAEA,WAAY;QACzBiB,IAAI,EAAC,MAAM;QACXC,aAAa,EAAC,OAAO;QACrBC,eAAe,EAAEjB,aAAc;QAC/BE,gBAAgB,EAAEA,gBAAiB;QACnCgB,QAAQ,EAAC,KAAK;QACdC,OAAO,EAAEtB,OAAO,GAAG,CAAE;QACrBuB,OAAO,EAAEvB,OAAO,GAAG;MAAE,CACtB,CAAC;IAAA,CACC;EAAC,CACF,CAAC;AAEX,CAAC;AAED,MAAMM,MAAM,GAAG5B,UAAU,CAAC8C,MAAM,CAAC;EAC/BjB,SAAS,EAAE,CAAC;AACd,CAAC,CAAC;AAEF,eAAelB,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// TODO: progressbar에 react-native-reanimated를 이용한 animation적용 필요.
|
|
4
|
+
import LinearProgressBar from "./linearProgressBar.js";
|
|
5
|
+
import CircularProgressBar from "./circularProgressBar.js";
|
|
6
|
+
export { LinearProgressBar, CircularProgressBar };
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LinearProgressBar","CircularProgressBar"],"sourceRoot":"../../../../src","sources":["components/progressBar/index.ts"],"mappings":";;AAAA;AACA,OAAOA,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,mBAAmB,MAAM,0BAAuB;AAEvD,SAASD,iBAAiB,EAAEC,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const LinearProgressBar = ({
|
|
7
|
+
type = 'primary',
|
|
8
|
+
value,
|
|
9
|
+
style,
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
theme
|
|
14
|
+
} = useTheme();
|
|
15
|
+
const progress = Math.min(Math.max(value, 0), 1);
|
|
16
|
+
return /*#__PURE__*/_jsx(View, {
|
|
17
|
+
style: [styles.container, {
|
|
18
|
+
backgroundColor: theme.colors.disabled
|
|
19
|
+
}, style],
|
|
20
|
+
...props,
|
|
21
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
22
|
+
style: [styles.progress, {
|
|
23
|
+
width: `${progress * 100}%`,
|
|
24
|
+
backgroundColor: theme.colors[type]
|
|
25
|
+
}]
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
container: {
|
|
31
|
+
width: '100%',
|
|
32
|
+
height: 8,
|
|
33
|
+
borderRadius: 999,
|
|
34
|
+
overflow: 'hidden'
|
|
35
|
+
},
|
|
36
|
+
progress: {
|
|
37
|
+
height: '100%',
|
|
38
|
+
borderRadius: 999
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export default LinearProgressBar;
|
|
42
|
+
//# sourceMappingURL=linearProgressBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","useTheme","jsx","_jsx","LinearProgressBar","type","value","style","props","theme","progress","Math","min","max","styles","container","backgroundColor","colors","disabled","children","width","create","height","borderRadius","overflow"],"sourceRoot":"../../../../src","sources":["components/progressBar/linearProgressBar.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,IAAI,GAAG,SAAS;EAChBC,KAAK;EACLC,KAAK;EACL,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAC5B,MAAMS,QAAQ,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACP,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EAEhD,oBACEH,IAAA,CAACH,IAAI;IACHO,KAAK,EAAE,CACLO,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACC;IAChC,CAAC,EACDX,KAAK,CACL;IAAA,GACEC,KAAK;IAAAW,QAAA,eAEThB,IAAA,CAACH,IAAI;MACHO,KAAK,EAAE,CACLO,MAAM,CAACJ,QAAQ,EACf;QACEU,KAAK,EAAE,GAAGV,QAAQ,GAAG,GAAG,GAAG;QAC3BM,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACZ,IAAI;MACpC,CAAC;IACD,CACH;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGf,UAAU,CAACsB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTK,KAAK,EAAE,MAAM;IACbE,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,GAAG;IACjBC,QAAQ,EAAE;EACZ,CAAC;EACDd,QAAQ,EAAE;IACRY,MAAM,EAAE,MAAM;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAenB,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","m","l","strokeWidthType"],"sourceRoot":"../../../../src","sources":["components/progressBar/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,QAAqC,GAAG;EACnDC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE;AACL,CAAC;AAED,OAAO,MAAMC,eAA4C,GAAG;EAC1DH,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE,CAAC;EACJC,CAAC,EAAE;AACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
4
|
+
import { CommonIcon } from "../icon/index.js";
|
|
5
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
6
|
+
import { sizeType } from "./types.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export const CommonRating = ({
|
|
9
|
+
type = 'primary',
|
|
10
|
+
value,
|
|
11
|
+
onChange,
|
|
12
|
+
editable = false,
|
|
13
|
+
size = 'm',
|
|
14
|
+
maxRating = 5
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
theme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
const renderStar = index => {
|
|
20
|
+
const starNumber = index + 1;
|
|
21
|
+
let iconType = 'star_empty';
|
|
22
|
+
if (value >= starNumber) {
|
|
23
|
+
iconType = 'star_full';
|
|
24
|
+
} else if (value >= starNumber - 0.5) {
|
|
25
|
+
iconType = 'star_half';
|
|
26
|
+
}
|
|
27
|
+
if (!editable) {
|
|
28
|
+
return /*#__PURE__*/_jsx(View, {
|
|
29
|
+
children: /*#__PURE__*/_jsx(CommonIcon, {
|
|
30
|
+
iconType: iconType,
|
|
31
|
+
size: size,
|
|
32
|
+
color: theme.colors[type]
|
|
33
|
+
})
|
|
34
|
+
}, index);
|
|
35
|
+
}
|
|
36
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
37
|
+
style: [{
|
|
38
|
+
width: sizeType[size],
|
|
39
|
+
height: sizeType[size]
|
|
40
|
+
}, styles.starContainer],
|
|
41
|
+
children: [/*#__PURE__*/_jsx(CommonIcon, {
|
|
42
|
+
iconType: iconType,
|
|
43
|
+
size: size,
|
|
44
|
+
color: theme.colors[type]
|
|
45
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
46
|
+
style: [StyleSheet.absoluteFillObject, {
|
|
47
|
+
width: sizeType[size] / 2
|
|
48
|
+
}, styles.left],
|
|
49
|
+
onPress: () => {
|
|
50
|
+
onChange?.(index + 0.5);
|
|
51
|
+
}
|
|
52
|
+
}), /*#__PURE__*/_jsx(Pressable, {
|
|
53
|
+
style: [StyleSheet.absoluteFillObject, {
|
|
54
|
+
width: sizeType[size] / 2,
|
|
55
|
+
left: sizeType[size] / 2
|
|
56
|
+
}],
|
|
57
|
+
onPress: () => {
|
|
58
|
+
onChange?.(index + 1);
|
|
59
|
+
}
|
|
60
|
+
})]
|
|
61
|
+
}, index);
|
|
62
|
+
};
|
|
63
|
+
return /*#__PURE__*/_jsx(View, {
|
|
64
|
+
style: styles.container,
|
|
65
|
+
children: Array.from({
|
|
66
|
+
length: maxRating
|
|
67
|
+
}).map((_, index) => renderStar(index))
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
container: {
|
|
72
|
+
flexDirection: 'row',
|
|
73
|
+
alignItems: 'center'
|
|
74
|
+
},
|
|
75
|
+
starContainer: {
|
|
76
|
+
position: 'relative',
|
|
77
|
+
justifyContent: 'center',
|
|
78
|
+
alignItems: 'center'
|
|
79
|
+
},
|
|
80
|
+
left: {
|
|
81
|
+
left: 0
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","View","CommonIcon","useTheme","sizeType","jsx","_jsx","jsxs","_jsxs","CommonRating","type","value","onChange","editable","size","maxRating","theme","renderStar","index","starNumber","iconType","children","color","colors","style","width","height","styles","starContainer","absoluteFillObject","left","onPress","container","Array","from","length","map","_","create","flexDirection","alignItems","position","justifyContent"],"sourceRoot":"../../../../src","sources":["components/rating/index.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","m","l"],"sourceRoot":"../../../../src","sources":["components/rating/types.ts"],"mappings":";;AAGA,OAAO,MAAMA,QAAqC,GAAG;EACnDC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE,EAAE;EACLC,CAAC,EAAE;AACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const SafeAreaContainer = ({
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
10
|
+
const {
|
|
11
|
+
theme
|
|
12
|
+
} = useTheme();
|
|
13
|
+
return /*#__PURE__*/_jsx(SafeAreaView, {
|
|
14
|
+
style: [styles.container, {
|
|
15
|
+
backgroundColor: theme.colors.background
|
|
16
|
+
}],
|
|
17
|
+
children: children
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
container: {
|
|
22
|
+
flex: 1
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export default SafeAreaContainer;
|
|
26
|
+
//# sourceMappingURL=SafeAreaContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useTheme","StyleSheet","SafeAreaView","jsx","_jsx","SafeAreaContainer","children","theme","style","styles","container","backgroundColor","colors","background","create","flex"],"sourceRoot":"../../../../src","sources":["components/screenContainer/SafeAreaContainer.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,yBAAsB;AAC/C,SAASC,UAAU,QAAwB,cAAc;AACzD,SAASC,YAAY,QAAQ,gCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC;AAAoB,CAAC,KAAK;EACrD,MAAM;IAAEC;EAAM,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC5B,oBACEI,IAAA,CAACF,YAAY;IACXM,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE;MAAEC,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACC;IAAW,CAAC,CAAE;IAAAP,QAAA,EAEvEA;EAAQ,CACG,CAAC;AAEnB,CAAC;AAED,MAAMG,MAAM,GAAGR,UAAU,CAACa,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeV,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ScrollView, StyleSheet } from 'react-native';
|
|
4
|
+
import SafeAreaContainer from "./SafeAreaContainer.js";
|
|
5
|
+
|
|
6
|
+
//TODO : SafeAreaContainer가 적용되지 않음.
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const ScrollViewContainer = ({
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(SafeAreaContainer, {
|
|
12
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
13
|
+
style: [styles.container],
|
|
14
|
+
children: children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const styles = StyleSheet.create({
|
|
19
|
+
container: {
|
|
20
|
+
flex: 1
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export default ScrollViewContainer;
|
|
24
|
+
//# sourceMappingURL=ScrollViewContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ScrollView","StyleSheet","SafeAreaContainer","jsx","_jsx","ScrollViewContainer","children","style","styles","container","create","flex"],"sourceRoot":"../../../../src","sources":["components/screenContainer/ScrollViewContainer.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,QAAwB,cAAc;AACrE,OAAOC,iBAAiB,MAAM,wBAAqB;;AAEnD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;AAAoB,CAAC,KAAK;EACvD,oBACEF,IAAA,CAACF,iBAAiB;IAAAI,QAAA,eAChBF,IAAA,CAACJ,UAAU;MAACO,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,CAAE;MAAAH,QAAA,EAAEA;IAAQ,CAAa;EAAC,CAC7C,CAAC;AAExB,CAAC;AAED,MAAME,MAAM,GAAGP,UAAU,CAACS,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeN,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SafeAreaContainer","ScrollViewContainer"],"sourceRoot":"../../../../src","sources":["components/screenContainer/index.ts"],"mappings":";;AAAA,OAAOA,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,mBAAmB,MAAM,0BAAuB;AAEvD,SAASD,iBAAiB,EAAEC,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/skeleton/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/skeleton/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/slider/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/slider/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/switch/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/switch/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, Text } from 'react-native';
|
|
4
|
+
import { fontSizeType } from "./types.js";
|
|
5
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const CommonText = ({
|
|
8
|
+
size = 'm',
|
|
9
|
+
children,
|
|
10
|
+
style
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
theme
|
|
14
|
+
} = useTheme();
|
|
15
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
16
|
+
style: [{
|
|
17
|
+
color: theme.colors.text
|
|
18
|
+
}, styles.innerText, fontSizeType[size], style],
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const styles = StyleSheet.create({
|
|
23
|
+
innerText: {
|
|
24
|
+
fontFamily: 'Roboto'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export default CommonText;
|
|
28
|
+
//# sourceMappingURL=commonText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","Text","fontSizeType","useTheme","jsx","_jsx","CommonText","size","children","style","theme","color","colors","text","styles","innerText","create","fontFamily"],"sourceRoot":"../../../../src","sources":["components/text/commonText.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAA+BC,YAAY,QAAQ,YAAS;AAC5D,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,UAAU,GAAGA,CAAC;EAAEC,IAAI,GAAG,GAAG;EAAEC,QAAQ;EAAEC;AAAuB,CAAC,KAAK;EACvE,MAAM;IAAEC;EAAM,CAAC,GAAGP,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACJ,IAAI;IACHQ,KAAK,EAAE,CACL;MAAEE,KAAK,EAAED,KAAK,CAACE,MAAM,CAACC;IAAK,CAAC,EAC5BC,MAAM,CAACC,SAAS,EAChBb,YAAY,CAACK,IAAI,CAAC,EAClBE,KAAK,CACL;IAAAD,QAAA,EAEDA;EAAQ,CACL,CAAC;AAEX,CAAC;AAED,MAAMM,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAeX,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonText"],"sourceRoot":"../../../../src","sources":["components/text/index.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,iBAAc;AAErC,SAASA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fontSizeType","s","fontSize","fontWeight","m","l"],"sourceRoot":"../../../../src","sources":["components/text/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,YAA4C,GAAG;EAC1DC,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EACtCC,CAAC,EAAE;IAAEF,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EACtCE,CAAC,EAAE;IAAEH,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM;AACvC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { ThemeContext } from "../theme/themeProvider.js";
|
|
5
|
+
export function useTheme() {
|
|
6
|
+
const context = useContext(ThemeContext);
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error('useTheme must be used within ThemeProvider');
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=useTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","ThemeContext","useTheme","context","Error"],"sourceRoot":"../../../src","sources":["hooks/useTheme.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,YAAY,QAAQ,2BAAwB;AAErD,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,MAAMC,OAAO,GAAGH,UAAU,CAACC,YAAY,CAAC;EAExC,IAAI,CAACE,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,4CAA4C,CAAC;EAC/D;EAEA,OAAOD,OAAO;AAChB","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { CommonText, CommonButton, CommonBadge, SafeAreaContainer, ScrollViewContainer, CommonIcon, CommonRating, CommonAvatar, CommonImage, CheckBox, CommonHeader, CommonCard, FoldableCard, LinearProgressBar, CircularProgressBar } from "./components/index.js";
|
|
4
|
+
export { ThemeProvider } from "./theme/themeProvider.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar","ThemeProvider"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SACEA,UAAU,EACVC,YAAY,EACZC,WAAW,EACXC,iBAAiB,EACjBC,mBAAmB,EACnBC,UAAU,EACVC,YAAY,EACZC,YAAY,EACZC,WAAW,EACXC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,YAAY,EACZC,iBAAiB,EACjBC,mBAAmB,QACd,uBAAc;AACrB,SAASC,aAAa,QAAQ,0BAAuB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["palette","blue500","gray100","gray900","red500","yellow500"],"sourceRoot":"../../../src","sources":["theme/color.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAG;EACrBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,SAAS;EACjBC,SAAS,EAAE;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["spacing","none","xs","sm","md","lg","xl","radius","full"],"sourceRoot":"../../../src","sources":["theme/style.ts"],"mappings":";;AAAA,OAAO,MAAMA,OAAO,GAAG;EACrBC,IAAI,EAAE,CAAC;EACPC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE;AACN,CAAC;AAED,OAAO,MAAMC,MAAM,GAAG;EACpBJ,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,EAAE;EACNG,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useMemo } from 'react';
|
|
4
|
+
import { lightTheme, darkTheme } from "./themes.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const ThemeContext = /*#__PURE__*/createContext(null);
|
|
7
|
+
export function ThemeProvider({
|
|
8
|
+
children,
|
|
9
|
+
mode = 'light'
|
|
10
|
+
}) {
|
|
11
|
+
const theme = useMemo(() => {
|
|
12
|
+
return mode === 'dark' ? darkTheme : lightTheme;
|
|
13
|
+
}, [mode]);
|
|
14
|
+
return /*#__PURE__*/_jsx(ThemeContext.Provider, {
|
|
15
|
+
value: {
|
|
16
|
+
theme,
|
|
17
|
+
mode
|
|
18
|
+
},
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=themeProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","useMemo","lightTheme","darkTheme","jsx","_jsx","ThemeContext","ThemeProvider","children","mode","theme","Provider","value"],"sourceRoot":"../../../src","sources":["theme/themeProvider.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAA0BC,OAAO,QAAQ,OAAO;AACtE,SAASC,UAAU,EAAEC,SAAS,QAAuC,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhF,OAAO,MAAMC,YAAY,gBAAGN,aAAa,CAA2B,IAAI,CAAC;AAMzE,OAAO,SAASO,aAAaA,CAAC;EAAEC,QAAQ;EAAEC,IAAI,GAAG;AAAe,CAAC,EAAE;EACjE,MAAMC,KAAK,GAAGT,OAAO,CAAC,MAAM;IAC1B,OAAOQ,IAAI,KAAK,MAAM,GAAGN,SAAS,GAAGD,UAAU;EACjD,CAAC,EAAE,CAACO,IAAI,CAAC,CAAC;EAEV,oBACEJ,IAAA,CAACC,YAAY,CAACK,QAAQ;IAACC,KAAK,EAAE;MAAEF,KAAK;MAAED;IAAK,CAAE;IAAAD,QAAA,EAC3CA;EAAQ,CACY,CAAC;AAE5B","ignoreList":[]}
|