@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
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kukkim
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @kukkim/react-native-ui
|
|
2
|
+
|
|
3
|
+
ui library for react native
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @kukkim/react-native-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { } from '@kukkim/react-native-ui';
|
|
15
|
+
|
|
16
|
+
// ...
|
|
17
|
+
|
|
18
|
+
const ...
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Contributing
|
|
22
|
+
|
|
23
|
+
- [Development workflow](CONTRIBUTING.md#development-workflow)
|
|
24
|
+
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
|
|
25
|
+
- [Code of conduct](CODE_OF_CONDUCT.md)
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-to-line-icon lucide-arrow-down-to-line"><path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-down-wide-narrow-icon lucide-arrow-down-wide-narrow"><path d="m3 16 4 4 4-4"/><path d="M7 20V4"/><path d="M11 4h10"/><path d="M11 8h7"/><path d="M11 12h4"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left-icon lucide-arrow-left"><path d="m12 19-7-7 7-7"/><path d="M19 12H5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy-icon lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rotate-cw-icon lucide-rotate-cw"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-arrow-out-up-right-icon lucide-square-arrow-out-up-right"><path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/><path d="m21 3-9 9"/><path d="M15 3h6v6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star-icon lucide-star"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star-icon lucide-star"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/></svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
width="24"
|
|
4
|
+
height="24"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="half">
|
|
9
|
+
<rect x="0" y="0" width="12" height="24" />
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
<path
|
|
13
|
+
clip-path="url(#half)"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
d="M12 2.5l2.93 5.94 6.56.96-4.75 4.63 1.12 6.53L12 17.5l-5.86 3.06 1.12-6.53L2.51 9.4l6.56-.96L12 2.5z"
|
|
16
|
+
/>
|
|
17
|
+
<path
|
|
18
|
+
fill="none"
|
|
19
|
+
stroke="currentColor"
|
|
20
|
+
stroke-width="2"
|
|
21
|
+
stroke-linecap="round"
|
|
22
|
+
stroke-linejoin="round"
|
|
23
|
+
d="M12 2.5l2.93 5.94 6.56.96-4.75 4.63 1.12 6.53L12 17.5l-5.86 3.06 1.12-6.53L2.51 9.4l6.56-.96L12 2.5z"
|
|
24
|
+
/>
|
|
25
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x-icon lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { CommonText } from "../text/index.js";
|
|
5
|
+
import { CommonImage } from "../image/index.js";
|
|
6
|
+
import { fontSizeType, sizeType, imageSizeType } from "./types.js";
|
|
7
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export const CommonAvatar = ({
|
|
10
|
+
type = 'primary',
|
|
11
|
+
size = 'm',
|
|
12
|
+
title,
|
|
13
|
+
source,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
theme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
return /*#__PURE__*/_jsx(View, {
|
|
20
|
+
style: [styles.container, sizeType[size], {
|
|
21
|
+
backgroundColor: theme.colors[type]
|
|
22
|
+
}],
|
|
23
|
+
...props,
|
|
24
|
+
children: source ? /*#__PURE__*/_jsx(CommonImage, {
|
|
25
|
+
style: [styles.container, imageSizeType[size]],
|
|
26
|
+
source: source
|
|
27
|
+
}) : /*#__PURE__*/_jsx(CommonText, {
|
|
28
|
+
style: [styles.innerText, fontSizeType[size], {
|
|
29
|
+
color: theme.colors.white
|
|
30
|
+
}],
|
|
31
|
+
children: title ?? 'None'
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
borderRadius: 12,
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center'
|
|
40
|
+
},
|
|
41
|
+
innerText: {
|
|
42
|
+
fontSize: 20
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","CommonText","CommonImage","fontSizeType","sizeType","imageSizeType","useTheme","jsx","_jsx","CommonAvatar","type","size","title","source","props","theme","style","styles","container","backgroundColor","colors","children","innerText","color","white","create","borderRadius","alignItems","justifyContent","fontSize"],"sourceRoot":"../../../../src","sources":["components/avatar/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAASC,WAAW,QAAQ,mBAAU;AACtC,SAEEC,YAAY,EACZC,QAAQ,EACRC,aAAa,QACR,YAAS;AAChB,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,KAAK;EACLC,MAAM;EACN,GAAGC;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACR,IAAI;IACHgB,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBd,QAAQ,CAACO,IAAI,CAAC,EACd;MAAEQ,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACV,IAAI;IAAE,CAAC,CACvC;IAAA,GACEI,KAAK;IAAAO,QAAA,EAERR,MAAM,gBACLL,IAAA,CAACN,WAAW;MACVc,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEb,aAAa,CAACM,IAAI,CAAC,CAAE;MAC/CE,MAAM,EAAEA;IAAO,CAChB,CAAC,gBAEFL,IAAA,CAACP,UAAU;MACTe,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChBnB,YAAY,CAACQ,IAAI,CAAC,EAClB;QAAEY,KAAK,EAAER,KAAK,CAACK,MAAM,CAACI;MAAM,CAAC,CAC7B;MAAAH,QAAA,EAEDT,KAAK,IAAI;IAAM,CACN;EACb,CACG,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGlB,UAAU,CAAC0B,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDN,SAAS,EAAE;IACTO,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const sizeType = {
|
|
4
|
+
s: {
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16,
|
|
7
|
+
borderRadius: 8
|
|
8
|
+
},
|
|
9
|
+
m: {
|
|
10
|
+
width: 20,
|
|
11
|
+
height: 20,
|
|
12
|
+
borderRadius: 10
|
|
13
|
+
},
|
|
14
|
+
l: {
|
|
15
|
+
width: 24,
|
|
16
|
+
height: 24,
|
|
17
|
+
borderRadius: 12
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
// TODO: sizeType과 동일한 코드인데 type때문에 코드 중복이 발생함 수정필요.
|
|
21
|
+
export const imageSizeType = {
|
|
22
|
+
s: {
|
|
23
|
+
width: 16,
|
|
24
|
+
height: 16,
|
|
25
|
+
borderRadius: 8
|
|
26
|
+
},
|
|
27
|
+
m: {
|
|
28
|
+
width: 20,
|
|
29
|
+
height: 20,
|
|
30
|
+
borderRadius: 10
|
|
31
|
+
},
|
|
32
|
+
l: {
|
|
33
|
+
width: 24,
|
|
34
|
+
height: 24,
|
|
35
|
+
borderRadius: 12
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export const fontSizeType = {
|
|
39
|
+
s: {
|
|
40
|
+
fontSize: 10
|
|
41
|
+
},
|
|
42
|
+
m: {
|
|
43
|
+
fontSize: 12
|
|
44
|
+
},
|
|
45
|
+
l: {
|
|
46
|
+
fontSize: 14
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","width","height","borderRadius","m","l","imageSizeType","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/avatar/types.ts"],"mappings":";;AAWA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EAC7CC,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG,CAAC;EAC9CE,CAAC,EAAE;IAAEJ,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG;AAC/C,CAAC;AACD;AACA,OAAO,MAAMG,aAA8C,GAAG;EAC5DN,CAAC,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EAC7CC,CAAC,EAAE;IAAEH,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG,CAAC;EAC9CE,CAAC,EAAE;IAAEJ,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAG;AAC/C,CAAC;AAED,OAAO,MAAMI,YAA4C,GAAG;EAC1DP,CAAC,EAAE;IAAEQ,QAAQ,EAAE;EAAG,CAAC;EACnBJ,CAAC,EAAE;IAAEI,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { CommonText } from "../text/index.js";
|
|
5
|
+
import { fontSizeType, sizeType } from "./types.js";
|
|
6
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
7
|
+
|
|
8
|
+
// TODO: 부모컴포넌트의 정렬기준에 따라 컴포넌트의 형태가 변함.
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const CommonBadge = ({
|
|
11
|
+
type = 'primary',
|
|
12
|
+
size = 'm',
|
|
13
|
+
typeText,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
theme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
return /*#__PURE__*/_jsx(View, {
|
|
20
|
+
style: [styles.container, sizeType[size], {
|
|
21
|
+
backgroundColor: theme.colors[type]
|
|
22
|
+
}],
|
|
23
|
+
...props,
|
|
24
|
+
children: typeText && /*#__PURE__*/_jsx(CommonText, {
|
|
25
|
+
style: [styles.innerText, fontSizeType[size], {
|
|
26
|
+
color: theme.colors.white
|
|
27
|
+
}],
|
|
28
|
+
children: typeText
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
container: {
|
|
34
|
+
borderRadius: 12,
|
|
35
|
+
alignSelf: 'auto',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center'
|
|
38
|
+
},
|
|
39
|
+
innerText: {
|
|
40
|
+
fontSize: 20
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export default CommonBadge;
|
|
44
|
+
//# sourceMappingURL=commonBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","CommonText","fontSizeType","sizeType","useTheme","jsx","_jsx","CommonBadge","type","size","typeText","props","theme","style","styles","container","backgroundColor","colors","children","innerText","color","white","create","borderRadius","alignSelf","alignItems","justifyContent","fontSize"],"sourceRoot":"../../../../src","sources":["components/badge/commonBadge.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAAgCC,YAAY,EAAEC,QAAQ,QAAQ,YAAS;AACvE,SAASC,QAAQ,QAAQ,yBAAsB;;AAE/C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,WAAW,GAAGA,CAAC;EACnBC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,QAAQ;EACR,GAAGC;AACa,CAAC,KAAK;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAGR,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACN,IAAI;IACHa,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBZ,QAAQ,CAACM,IAAI,CAAC,EACd;MAAEO,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,CACvC;IAAA,GACEG,KAAK;IAAAO,QAAA,EAERR,QAAQ,iBACPJ,IAAA,CAACL,UAAU;MACTY,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChBjB,YAAY,CAACO,IAAI,CAAC,EAClB;QAAEW,KAAK,EAAER,KAAK,CAACK,MAAM,CAACI;MAAM,CAAC,CAC7B;MAAAH,QAAA,EAEDR;IAAQ,CACC;EACb,CACG,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGf,UAAU,CAACuB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,MAAM;IACjBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDP,SAAS,EAAE;IACTQ,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAepB,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonBadge"],"sourceRoot":"../../../../src","sources":["components/badge/index.ts"],"mappings":";;AAAA,OAAOA,WAAW,MAAM,kBAAe;AAEvC,SAASA,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const sizeType = {
|
|
4
|
+
s: {
|
|
5
|
+
minWidth: 18,
|
|
6
|
+
height: 18,
|
|
7
|
+
borderRadius: 8,
|
|
8
|
+
paddingHorizontal: 4
|
|
9
|
+
},
|
|
10
|
+
m: {
|
|
11
|
+
minWidth: 20,
|
|
12
|
+
height: 20,
|
|
13
|
+
borderRadius: 10,
|
|
14
|
+
paddingHorizontal: 4
|
|
15
|
+
},
|
|
16
|
+
l: {
|
|
17
|
+
minWidth: 22,
|
|
18
|
+
height: 22,
|
|
19
|
+
borderRadius: 12,
|
|
20
|
+
paddingHorizontal: 4
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export const expandedSizeType = {
|
|
24
|
+
s: {
|
|
25
|
+
minWidth: 32,
|
|
26
|
+
height: 16
|
|
27
|
+
},
|
|
28
|
+
m: {
|
|
29
|
+
minWidth: 36,
|
|
30
|
+
height: 20
|
|
31
|
+
},
|
|
32
|
+
l: {
|
|
33
|
+
minWidth: 40,
|
|
34
|
+
height: 24
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export const fontSizeType = {
|
|
38
|
+
s: {
|
|
39
|
+
fontSize: 10
|
|
40
|
+
},
|
|
41
|
+
m: {
|
|
42
|
+
fontSize: 12
|
|
43
|
+
},
|
|
44
|
+
l: {
|
|
45
|
+
fontSize: 14
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","minWidth","height","borderRadius","paddingHorizontal","m","l","expandedSizeType","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/badge/types.ts"],"mappings":";;AAKA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,CAAC;IAAEC,iBAAiB,EAAE;EAAE,CAAC;EACtEC,CAAC,EAAE;IAAEJ,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,iBAAiB,EAAE;EAAE,CAAC;EACvEE,CAAC,EAAE;IAAEL,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,iBAAiB,EAAE;EAAE;AACxE,CAAC;AAED,OAAO,MAAMG,gBAAgD,GAAG;EAC9DP,CAAC,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC/BG,CAAC,EAAE;IAAEJ,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG,CAAC;EAC/BI,CAAC,EAAE;IAAEL,QAAQ,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAG;AAChC,CAAC;AAED,OAAO,MAAMM,YAA4C,GAAG;EAC1DR,CAAC,EAAE;IAAES,QAAQ,EAAE;EAAG,CAAC;EACnBJ,CAAC,EAAE;IAAEI,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, StyleSheet } from 'react-native';
|
|
4
|
+
import { CommonText } from "../text/index.js";
|
|
5
|
+
import { fontSizeType } from "./types.js";
|
|
6
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const CommonButton = ({
|
|
9
|
+
title,
|
|
10
|
+
type = 'primary',
|
|
11
|
+
size = 'm',
|
|
12
|
+
disabled,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
theme
|
|
17
|
+
} = useTheme();
|
|
18
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
19
|
+
style: [styles.container, disabled ? {
|
|
20
|
+
backgroundColor: theme.colors[type]
|
|
21
|
+
} : {
|
|
22
|
+
backgroundColor: theme.colors[type]
|
|
23
|
+
}],
|
|
24
|
+
...props,
|
|
25
|
+
children: /*#__PURE__*/_jsx(CommonText, {
|
|
26
|
+
style: [fontSizeType[size], {
|
|
27
|
+
color: theme.colors.white
|
|
28
|
+
}],
|
|
29
|
+
isInner: true,
|
|
30
|
+
children: title
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
margin: 5,
|
|
37
|
+
paddingVertical: 10,
|
|
38
|
+
paddingHorizontal: 20,
|
|
39
|
+
borderRadius: 3
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export default CommonButton;
|
|
43
|
+
//# sourceMappingURL=commonButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","CommonText","fontSizeType","useTheme","jsx","_jsx","CommonButton","title","type","size","disabled","props","theme","style","styles","container","backgroundColor","colors","children","color","white","isInner","create","margin","paddingVertical","paddingHorizontal","borderRadius"],"sourceRoot":"../../../../src","sources":["components/button/commonButton.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,SAASC,UAAU,QAAQ,kBAAS;AACpC,SAAiCC,YAAY,QAAQ,YAAS;AAC9D,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,YAAY,GAAGA,CAAC;EACpBC,KAAK;EACLC,IAAI,GAAG,SAAS;EAChBC,IAAI,GAAG,GAAG;EACVC,QAAQ;EACR,GAAGC;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEE,IAAA,CAACN,SAAS;IACRc,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBL,QAAQ,GACJ;MAAEM,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,GACvC;MAAEQ,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACT,IAAI;IAAE,CAAC,CAC3C;IAAA,GACEG,KAAK;IAAAO,QAAA,eAETb,IAAA,CAACJ,UAAU;MACTY,KAAK,EAAE,CAACX,YAAY,CAACO,IAAI,CAAC,EAAE;QAAEU,KAAK,EAAEP,KAAK,CAACK,MAAM,CAACG;MAAM,CAAC,CAAE;MAC3DC,OAAO,EAAE,IAAK;MAAAH,QAAA,EAEbX;IAAK,CACI;EAAC,CACJ,CAAC;AAEhB,CAAC;AAED,MAAMO,MAAM,GAAGd,UAAU,CAACsB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAepB,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonButton"],"sourceRoot":"../../../../src","sources":["components/button/index.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,mBAAgB;AAEzC,SAASA,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const sizeType = {
|
|
4
|
+
s: {
|
|
5
|
+
width: 16,
|
|
6
|
+
height: 16
|
|
7
|
+
},
|
|
8
|
+
m: {
|
|
9
|
+
width: 20,
|
|
10
|
+
height: 20
|
|
11
|
+
},
|
|
12
|
+
l: {
|
|
13
|
+
width: 24,
|
|
14
|
+
height: 24
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export const fontSizeType = {
|
|
18
|
+
s: {
|
|
19
|
+
fontSize: 12
|
|
20
|
+
},
|
|
21
|
+
m: {
|
|
22
|
+
fontSize: 16
|
|
23
|
+
},
|
|
24
|
+
l: {
|
|
25
|
+
fontSize: 20
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["sizeType","s","width","height","m","l","fontSizeType","fontSize"],"sourceRoot":"../../../../src","sources":["components/button/types.ts"],"mappings":";;AASA,OAAO,MAAMA,QAAwC,GAAG;EACtDC,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,YAA4C,GAAG;EAC1DL,CAAC,EAAE;IAAEM,QAAQ,EAAE;EAAG,CAAC;EACnBH,CAAC,EAAE;IAAEG,QAAQ,EAAE;EAAG,CAAC;EACnBF,CAAC,EAAE;IAAEE,QAAQ,EAAE;EAAG;AACpB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { CommonText } from "../text/index.js";
|
|
5
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const CommonCard = ({
|
|
8
|
+
children,
|
|
9
|
+
type = 'primary',
|
|
10
|
+
title
|
|
11
|
+
}) => {
|
|
12
|
+
const {
|
|
13
|
+
theme
|
|
14
|
+
} = useTheme();
|
|
15
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
16
|
+
style: styles.container,
|
|
17
|
+
children: [title && /*#__PURE__*/_jsx(View, {
|
|
18
|
+
style: [styles.titleContainer, {
|
|
19
|
+
backgroundColor: theme.colors[type]
|
|
20
|
+
}],
|
|
21
|
+
children: /*#__PURE__*/_jsx(CommonText, {
|
|
22
|
+
style: [styles.titleText, {
|
|
23
|
+
color: theme.colors.white
|
|
24
|
+
}],
|
|
25
|
+
children: title
|
|
26
|
+
})
|
|
27
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
28
|
+
style: [styles.contentContainer, {
|
|
29
|
+
borderColor: theme.colors[type]
|
|
30
|
+
}],
|
|
31
|
+
children: children
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
width: '100%',
|
|
38
|
+
padding: 10
|
|
39
|
+
},
|
|
40
|
+
titleContainer: {
|
|
41
|
+
alignSelf: 'flex-start',
|
|
42
|
+
borderRadius: 5,
|
|
43
|
+
marginLeft: 5,
|
|
44
|
+
padding: 5,
|
|
45
|
+
zIndex: 1
|
|
46
|
+
},
|
|
47
|
+
titleText: {
|
|
48
|
+
fontSize: 20
|
|
49
|
+
},
|
|
50
|
+
contentContainer: {
|
|
51
|
+
borderWidth: 2,
|
|
52
|
+
borderRadius: 5,
|
|
53
|
+
padding: 10
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export default CommonCard;
|
|
57
|
+
//# sourceMappingURL=commonCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","CommonText","useTheme","jsx","_jsx","jsxs","_jsxs","CommonCard","children","type","title","theme","style","styles","container","titleContainer","backgroundColor","colors","titleText","color","white","contentContainer","borderColor","create","width","padding","alignSelf","borderRadius","marginLeft","zIndex","fontSize","borderWidth"],"sourceRoot":"../../../../src","sources":["components/card/commonCard.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,UAAU,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,IAAI,GAAG,SAAS;EAAEC;AAAuB,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,oBACEI,KAAA,CAACN,IAAI;IAACY,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAN,QAAA,GAC3BE,KAAK,iBACJN,IAAA,CAACJ,IAAI;MACHY,KAAK,EAAE,CACLC,MAAM,CAACE,cAAc,EACrB;QACEC,eAAe,EAAEL,KAAK,CAACM,MAAM,CAACR,IAAI;MACpC,CAAC,CACD;MAAAD,QAAA,eAEFJ,IAAA,CAACH,UAAU;QACTW,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChB;UACEC,KAAK,EAAER,KAAK,CAACM,MAAM,CAACG;QACtB,CAAC,CACD;QAAAZ,QAAA,EAEDE;MAAK,CACI;IAAC,CACT,CACP,eACDN,IAAA,CAACJ,IAAI;MACHY,KAAK,EAAE,CACLC,MAAM,CAACQ,gBAAgB,EACvB;QACEC,WAAW,EAAEX,KAAK,CAACM,MAAM,CAACR,IAAI;MAChC,CAAC,CACD;MAAAD,QAAA,EAEDA;IAAQ,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGd,UAAU,CAACwB,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,KAAK,EAAE,MAAM;IACbC,OAAO,EAAE;EACX,CAAC;EACDV,cAAc,EAAE;IACdW,SAAS,EAAE,YAAY;IACvBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbH,OAAO,EAAE,CAAC;IACVI,MAAM,EAAE;EACV,CAAC;EACDX,SAAS,EAAE;IACTY,QAAQ,EAAE;EACZ,CAAC;EACDT,gBAAgB,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdJ,YAAY,EAAE,CAAC;IACfF,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAelB,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View, Pressable } from 'react-native';
|
|
4
|
+
import { CommonText } from "../text/index.js";
|
|
5
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
6
|
+
// import Animated, {
|
|
7
|
+
// FadeIn,
|
|
8
|
+
// FadeOut,
|
|
9
|
+
// LinearTransition,
|
|
10
|
+
// } from 'react-native-reanimated';
|
|
11
|
+
|
|
12
|
+
//TODO: React-native-reanimated 적용시키기
|
|
13
|
+
// const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const FoldableCard = ({
|
|
16
|
+
children,
|
|
17
|
+
type = 'primary',
|
|
18
|
+
title,
|
|
19
|
+
value,
|
|
20
|
+
onPress
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
theme
|
|
24
|
+
} = useTheme();
|
|
25
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
|
+
style: styles.container,
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Pressable
|
|
28
|
+
// <AnimatedPressable
|
|
29
|
+
, {
|
|
30
|
+
style: [styles.titleContainer, {
|
|
31
|
+
backgroundColor: theme.colors[type]
|
|
32
|
+
}],
|
|
33
|
+
onPress: onPress
|
|
34
|
+
// layout={LinearTransition.duration(200)}
|
|
35
|
+
,
|
|
36
|
+
children: /*#__PURE__*/_jsx(CommonText, {
|
|
37
|
+
style: [styles.titleText, {
|
|
38
|
+
color: theme.colors.white
|
|
39
|
+
}],
|
|
40
|
+
children: title
|
|
41
|
+
})
|
|
42
|
+
}), value && /*#__PURE__*/_jsx(View
|
|
43
|
+
// <Animated.View
|
|
44
|
+
// entering={FadeIn}
|
|
45
|
+
// exiting={FadeOut}
|
|
46
|
+
, {
|
|
47
|
+
style: [styles.contentContainer, {
|
|
48
|
+
borderColor: theme.colors[type]
|
|
49
|
+
}],
|
|
50
|
+
children: children
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const styles = StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
width: '100%',
|
|
57
|
+
padding: 10
|
|
58
|
+
},
|
|
59
|
+
titleContainer: {
|
|
60
|
+
alignSelf: 'flex-start',
|
|
61
|
+
borderRadius: 5,
|
|
62
|
+
marginLeft: 5,
|
|
63
|
+
padding: 5,
|
|
64
|
+
zIndex: 1
|
|
65
|
+
},
|
|
66
|
+
titleText: {
|
|
67
|
+
fontSize: 20
|
|
68
|
+
},
|
|
69
|
+
contentContainer: {
|
|
70
|
+
borderWidth: 2,
|
|
71
|
+
borderRadius: 5,
|
|
72
|
+
padding: 10
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export default FoldableCard;
|
|
76
|
+
//# sourceMappingURL=foldableCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","Pressable","CommonText","useTheme","jsx","_jsx","jsxs","_jsxs","FoldableCard","children","type","title","value","onPress","theme","style","styles","container","titleContainer","backgroundColor","colors","titleText","color","white","contentContainer","borderColor","create","width","padding","alignSelf","borderRadius","marginLeft","zIndex","fontSize","borderWidth"],"sourceRoot":"../../../../src","sources":["components/card/foldableCard.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;AAC1D,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,YAAY,GAAGA,CAAC;EACpBC,QAAQ;EACRC,IAAI,GAAG,SAAS;EAChBC,KAAK;EACLC,KAAK;EACLC;AACiB,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAM,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAC5B,oBACEI,KAAA,CAACP,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAR,QAAA,gBAC5BJ,IAAA,CAACJ;IACC;IAAA;MACAc,KAAK,EAAE,CACLC,MAAM,CAACE,cAAc,EACrB;QACEC,eAAe,EAAEL,KAAK,CAACM,MAAM,CAACV,IAAI;MACpC,CAAC,CACD;MACFG,OAAO,EAAEA;MACT;MAAA;MAAAJ,QAAA,eAEAJ,IAAA,CAACH,UAAU;QACTa,KAAK,EAAE,CACLC,MAAM,CAACK,SAAS,EAChB;UACEC,KAAK,EAAER,KAAK,CAACM,MAAM,CAACG;QACtB,CAAC,CACD;QAAAd,QAAA,EAEDE;MAAK,CACI;IAAC,CAEJ,CAAC,EACXC,KAAK,iBACJP,IAAA,CAACL;IACC;IACA;IACA;IAAA;MACAe,KAAK,EAAE,CACLC,MAAM,CAACQ,gBAAgB,EACvB;QACEC,WAAW,EAAEX,KAAK,CAACM,MAAM,CAACV,IAAI;MAChC,CAAC,CACD;MAAAD,QAAA,EAEDA;IAAQ,CAEL,CACP;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAGjB,UAAU,CAAC2B,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,KAAK,EAAE,MAAM;IACbC,OAAO,EAAE;EACX,CAAC;EACDV,cAAc,EAAE;IACdW,SAAS,EAAE,YAAY;IACvBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbH,OAAO,EAAE,CAAC;IACVI,MAAM,EAAE;EACV,CAAC;EACDX,SAAS,EAAE;IACTY,QAAQ,EAAE;EACZ,CAAC;EACDT,gBAAgB,EAAE;IAChBU,WAAW,EAAE,CAAC;IACdJ,YAAY,EAAE,CAAC;IACfF,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,eAAepB,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommonCard","FoldableCard"],"sourceRoot":"../../../../src","sources":["components/card/index.ts"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,iBAAc;AACrC,OAAOC,YAAY,MAAM,mBAAgB;AAEzC,SAASD,UAAU,EAAEC,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/card/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, StyleSheet } from 'react-native';
|
|
4
|
+
import { sizeType } from "./types.js";
|
|
5
|
+
import { useTheme } from "../../hooks/useTheme.js";
|
|
6
|
+
import { CommonIcon } from "../icon/index.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export const CheckBox = ({
|
|
9
|
+
size = 'm',
|
|
10
|
+
disabled,
|
|
11
|
+
value,
|
|
12
|
+
onPress,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
theme
|
|
17
|
+
} = useTheme();
|
|
18
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
19
|
+
onPress: onPress,
|
|
20
|
+
style: [sizeType[size], styles.container, disabled ? {
|
|
21
|
+
borderColor: theme.colors.disabled
|
|
22
|
+
} : {
|
|
23
|
+
borderColor: theme.colors.primary
|
|
24
|
+
}],
|
|
25
|
+
disabled: disabled,
|
|
26
|
+
...props,
|
|
27
|
+
children: value && /*#__PURE__*/_jsx(CommonIcon, {
|
|
28
|
+
color: disabled ? theme.colors.disabled : theme.colors.primary,
|
|
29
|
+
iconType: "check"
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const styles = StyleSheet.create({
|
|
34
|
+
container: {
|
|
35
|
+
borderWidth: 1
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|