@kukkim/react-native-ui 0.1.3 → 0.1.5

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.
Files changed (126) hide show
  1. package/lib/module/assets/icons/apple.svg +1 -0
  2. package/lib/module/assets/icons/facebook.svg +1 -0
  3. package/lib/module/assets/icons/google.svg +1 -0
  4. package/lib/module/assets/icons/kakaotalk.svg +1 -0
  5. package/lib/module/assets/icons/loader-circle.svg +1 -0
  6. package/lib/module/assets/icons/naver.svg +1 -0
  7. package/lib/module/components/badge/commonBadge.js +18 -16
  8. package/lib/module/components/badge/commonBadge.js.map +1 -1
  9. package/lib/module/components/badge/numberBadge.js +47 -0
  10. package/lib/module/components/badge/numberBadge.js.map +1 -0
  11. package/lib/module/components/button/index.js +2 -1
  12. package/lib/module/components/button/index.js.map +1 -1
  13. package/lib/module/components/button/socialLoginButton.js +48 -0
  14. package/lib/module/components/button/socialLoginButton.js.map +1 -0
  15. package/lib/module/components/card/foldableCard.js +9 -18
  16. package/lib/module/components/card/foldableCard.js.map +1 -1
  17. package/lib/module/components/icon/Apple.js +18 -0
  18. package/lib/module/components/icon/Apple.js.map +1 -0
  19. package/lib/module/components/icon/Facebook.js +18 -0
  20. package/lib/module/components/icon/Facebook.js.map +1 -0
  21. package/lib/module/components/icon/Google.js +18 -0
  22. package/lib/module/components/icon/Google.js.map +1 -0
  23. package/lib/module/components/icon/Kakaotalk.js +18 -0
  24. package/lib/module/components/icon/Kakaotalk.js.map +1 -0
  25. package/lib/module/components/icon/LoaderCircle.js +24 -0
  26. package/lib/module/components/icon/LoaderCircle.js.map +1 -0
  27. package/lib/module/components/icon/Naver.js +18 -0
  28. package/lib/module/components/icon/Naver.js.map +1 -0
  29. package/lib/module/components/icon/index.js +15 -2
  30. package/lib/module/components/icon/index.js.map +1 -1
  31. package/lib/module/components/index.js +4 -1
  32. package/lib/module/components/index.js.map +1 -1
  33. package/lib/module/components/select/commonSelect.js +135 -0
  34. package/lib/module/components/select/commonSelect.js.map +1 -0
  35. package/lib/module/components/select/index.js +5 -0
  36. package/lib/module/components/select/index.js.map +1 -0
  37. package/lib/module/components/select/types.js +4 -0
  38. package/lib/module/components/select/types.js.map +1 -0
  39. package/lib/module/components/slider/index.js +103 -1
  40. package/lib/module/components/slider/index.js.map +1 -1
  41. package/lib/module/components/slider/types.js +2 -0
  42. package/lib/module/components/spinner/commonSpinner.js +49 -0
  43. package/lib/module/components/spinner/commonSpinner.js.map +1 -0
  44. package/lib/module/components/spinner/index.js +3 -1
  45. package/lib/module/components/spinner/index.js.map +1 -1
  46. package/lib/module/components/spinner/types.js +2 -0
  47. package/lib/module/index.js +1 -1
  48. package/lib/module/index.js.map +1 -1
  49. package/lib/typescript/src/components/badge/commonBadge.d.ts +1 -1
  50. package/lib/typescript/src/components/badge/commonBadge.d.ts.map +1 -1
  51. package/lib/typescript/src/components/badge/numberBadge.d.ts +4 -0
  52. package/lib/typescript/src/components/badge/numberBadge.d.ts.map +1 -0
  53. package/lib/typescript/src/components/button/index.d.ts +2 -1
  54. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  55. package/lib/typescript/src/components/button/socialLoginButton.d.ts +4 -0
  56. package/lib/typescript/src/components/button/socialLoginButton.d.ts.map +1 -0
  57. package/lib/typescript/src/components/button/types.d.ts +3 -0
  58. package/lib/typescript/src/components/button/types.d.ts.map +1 -1
  59. package/lib/typescript/src/components/card/foldableCard.d.ts.map +1 -1
  60. package/lib/typescript/src/components/icon/Apple.d.ts +4 -0
  61. package/lib/typescript/src/components/icon/Apple.d.ts.map +1 -0
  62. package/lib/typescript/src/components/icon/Facebook.d.ts +4 -0
  63. package/lib/typescript/src/components/icon/Facebook.d.ts.map +1 -0
  64. package/lib/typescript/src/components/icon/Google.d.ts +4 -0
  65. package/lib/typescript/src/components/icon/Google.d.ts.map +1 -0
  66. package/lib/typescript/src/components/icon/Kakaotalk.d.ts +4 -0
  67. package/lib/typescript/src/components/icon/Kakaotalk.d.ts.map +1 -0
  68. package/lib/typescript/src/components/icon/LoaderCircle.d.ts +4 -0
  69. package/lib/typescript/src/components/icon/LoaderCircle.d.ts.map +1 -0
  70. package/lib/typescript/src/components/icon/Naver.d.ts +4 -0
  71. package/lib/typescript/src/components/icon/Naver.d.ts.map +1 -0
  72. package/lib/typescript/src/components/icon/index.d.ts.map +1 -1
  73. package/lib/typescript/src/components/icon/types.d.ts +1 -1
  74. package/lib/typescript/src/components/icon/types.d.ts.map +1 -1
  75. package/lib/typescript/src/components/index.d.ts +4 -1
  76. package/lib/typescript/src/components/index.d.ts.map +1 -1
  77. package/lib/typescript/src/components/select/commonSelect.d.ts +5 -0
  78. package/lib/typescript/src/components/select/commonSelect.d.ts.map +1 -0
  79. package/lib/typescript/src/components/select/index.d.ts +3 -0
  80. package/lib/typescript/src/components/select/index.d.ts.map +1 -0
  81. package/lib/typescript/src/components/select/types.d.ts +16 -0
  82. package/lib/typescript/src/components/select/types.d.ts.map +1 -0
  83. package/lib/typescript/src/components/slider/index.d.ts +2 -0
  84. package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
  85. package/lib/typescript/src/components/slider/types.d.ts +9 -0
  86. package/lib/typescript/src/components/slider/types.d.ts.map +1 -1
  87. package/lib/typescript/src/components/spinner/commonSpinner.d.ts +4 -0
  88. package/lib/typescript/src/components/spinner/commonSpinner.d.ts.map +1 -0
  89. package/lib/typescript/src/components/spinner/index.d.ts +2 -0
  90. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
  91. package/lib/typescript/src/components/spinner/types.d.ts +8 -0
  92. package/lib/typescript/src/components/spinner/types.d.ts.map +1 -1
  93. package/lib/typescript/src/index.d.ts +1 -1
  94. package/lib/typescript/src/index.d.ts.map +1 -1
  95. package/package.json +3 -1
  96. package/src/assets/icons/apple.svg +1 -0
  97. package/src/assets/icons/facebook.svg +1 -0
  98. package/src/assets/icons/google.svg +1 -0
  99. package/src/assets/icons/kakaotalk.svg +1 -0
  100. package/src/assets/icons/loader-circle.svg +1 -0
  101. package/src/assets/icons/naver.svg +1 -0
  102. package/src/components/badge/commonBadge.tsx +23 -26
  103. package/src/components/badge/numberBadge.tsx +49 -0
  104. package/src/components/button/index.ts +2 -1
  105. package/src/components/button/socialLoginButton.tsx +49 -0
  106. package/src/components/button/types.ts +4 -0
  107. package/src/components/card/foldableCard.tsx +14 -18
  108. package/src/components/icon/Apple.tsx +15 -0
  109. package/src/components/icon/Facebook.tsx +15 -0
  110. package/src/components/icon/Google.tsx +15 -0
  111. package/src/components/icon/Kakaotalk.tsx +15 -0
  112. package/src/components/icon/LoaderCircle.tsx +20 -0
  113. package/src/components/icon/Naver.tsx +15 -0
  114. package/src/components/icon/index.tsx +14 -1
  115. package/src/components/icon/types.ts +7 -3
  116. package/src/components/index.ts +4 -1
  117. package/src/components/select/commonSelect.tsx +170 -0
  118. package/src/components/select/index.ts +3 -0
  119. package/src/components/select/types.ts +18 -0
  120. package/src/components/slider/index.tsx +118 -1
  121. package/src/components/slider/types.ts +10 -0
  122. package/src/components/spinner/commonSpinner.tsx +48 -0
  123. package/src/components/spinner/index.ts +3 -0
  124. package/src/components/spinner/types.ts +9 -0
  125. package/src/index.tsx +5 -0
  126. package/src/components/spinner/index.tsx +0 -1
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+
3
+ import React, { useState } from 'react';
4
+ import { Pressable, StyleSheet, View } from 'react-native';
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { CommonIcon } from "../icon/index.js";
7
+ import { CommonText } from "../text/index.js";
8
+ import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export const SelectItem = _props => {
11
+ return null;
12
+ };
13
+ export const CommonSelect = ({
14
+ children,
15
+ placeholder = 'Select',
16
+ value,
17
+ // defaultValue,
18
+ onChange,
19
+ style
20
+ }) => {
21
+ const {
22
+ theme
23
+ } = useTheme();
24
+ const [open, setOpen] = useState(false);
25
+ const [internalValue, setInternalValue] = useState(
26
+ // defaultValue
27
+ '');
28
+ const selectedValue = value ?? internalValue;
29
+ const items = React.Children.toArray(children).filter(React.isValidElement);
30
+ const selectedItem = items.find(item => item.props.value === selectedValue);
31
+ const handleSelect = nextValue => {
32
+ if (value === undefined) {
33
+ setInternalValue(nextValue);
34
+ }
35
+ onChange?.(nextValue);
36
+ setOpen(false);
37
+ };
38
+ const rotate = useSharedValue(0);
39
+ const arrowAnimatedStyle = useAnimatedStyle(() => {
40
+ return {
41
+ transform: [{
42
+ rotate: `${rotate.value}deg`
43
+ }]
44
+ };
45
+ });
46
+ return /*#__PURE__*/_jsxs(View, {
47
+ style: [styles.container, style],
48
+ children: [/*#__PURE__*/_jsxs(Pressable, {
49
+ style: [styles.trigger, {
50
+ borderColor: theme.colors.border,
51
+ backgroundColor: theme.colors.background
52
+ }],
53
+ onPress: () => {
54
+ const nextOpen = !open;
55
+ rotate.value = withTiming(nextOpen ? 180 : 0, {
56
+ duration: 200
57
+ });
58
+ setOpen(nextOpen);
59
+ },
60
+ children: [/*#__PURE__*/_jsx(CommonText, {
61
+ size: "m",
62
+ style: [!selectedItem && {
63
+ color: theme.colors.disabled
64
+ }],
65
+ children: selectedItem?.props.label ?? placeholder
66
+ }), /*#__PURE__*/_jsx(Animated.View, {
67
+ style: arrowAnimatedStyle,
68
+ children: /*#__PURE__*/_jsx(CommonIcon, {
69
+ iconType: "down"
70
+ })
71
+ })]
72
+ }), open && /*#__PURE__*/_jsx(View, {
73
+ style: [{
74
+ borderColor: theme.colors.border,
75
+ backgroundColor: theme.colors.background
76
+ }, styles.dropdown],
77
+ children: items.map(item => {
78
+ const isSelected = item.props.value === selectedValue;
79
+ return /*#__PURE__*/_jsx(Pressable, {
80
+ style: [styles.option, isSelected && styles.selectedOption],
81
+ onPress: () => handleSelect(item.props.value),
82
+ children: /*#__PURE__*/_jsx(CommonText, {
83
+ style: [styles.optionText, isSelected && styles.selectedOptionText],
84
+ children: item.props.label
85
+ })
86
+ }, String(item.props.value));
87
+ })
88
+ })]
89
+ });
90
+ };
91
+ const styles = StyleSheet.create({
92
+ container: {
93
+ position: 'relative',
94
+ width: '100%',
95
+ zIndex: 999
96
+ },
97
+ trigger: {
98
+ minHeight: 44,
99
+ borderWidth: 1,
100
+ borderRadius: 8,
101
+ paddingHorizontal: 10,
102
+ flexDirection: 'row',
103
+ alignItems: 'center',
104
+ justifyContent: 'space-between'
105
+ },
106
+ arrow: {
107
+ fontSize: 12,
108
+ color: '#667085'
109
+ },
110
+ dropdown: {
111
+ position: 'absolute',
112
+ top: 46,
113
+ left: 0,
114
+ right: 0,
115
+ borderWidth: 1,
116
+ borderRadius: 8,
117
+ zIndex: 999,
118
+ elevation: 10
119
+ },
120
+ option: {
121
+ paddingVertical: 12,
122
+ paddingHorizontal: 12
123
+ },
124
+ selectedOption: {
125
+ backgroundColor: '#F2F4F7'
126
+ },
127
+ optionText: {
128
+ fontSize: 14,
129
+ color: '#101828'
130
+ },
131
+ selectedOptionText: {
132
+ fontWeight: '600'
133
+ }
134
+ });
135
+ //# sourceMappingURL=commonSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","Pressable","StyleSheet","View","useTheme","CommonIcon","CommonText","Animated","useAnimatedStyle","useSharedValue","withTiming","jsx","_jsx","jsxs","_jsxs","SelectItem","_props","CommonSelect","children","placeholder","value","onChange","style","theme","open","setOpen","internalValue","setInternalValue","selectedValue","items","Children","toArray","filter","isValidElement","selectedItem","find","item","props","handleSelect","nextValue","undefined","rotate","arrowAnimatedStyle","transform","styles","container","trigger","borderColor","colors","border","backgroundColor","background","onPress","nextOpen","duration","size","color","disabled","label","iconType","dropdown","map","isSelected","option","selectedOption","optionText","selectedOptionText","String","create","position","width","zIndex","minHeight","borderWidth","borderRadius","paddingHorizontal","flexDirection","alignItems","justifyContent","arrow","fontSize","top","left","right","elevation","paddingVertical","fontWeight"],"sourceRoot":"../../../../src","sources":["components/select/commonSelect.tsx"],"mappings":";;AAAA,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AClB,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE,EAAE;IACZxB,KAAK,EAAE;EACT,CAAC;EACDI,QAAQ,EAAE;IACRS,QAAQ,EAAE,UAAU;IACpBY,GAAG,EAAE,EAAE;IACPC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IAERV,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfH,MAAM,EAAE,GAAG;IACXa,SAAS,EAAE;EACb,CAAC;EACDrB,MAAM,EAAE;IACNsB,eAAe,EAAE,EAAE;IACnBV,iBAAiB,EAAE;EACrB,CAAC;EACDX,cAAc,EAAE;IACdd,eAAe,EAAE;EACnB,CAAC;EACDe,UAAU,EAAE;IACVe,QAAQ,EAAE,EAAE;IACZxB,KAAK,EAAE;EACT,CAAC;EACDU,kBAAkB,EAAE;IAClBoB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import { CommonSelect, SelectItem } from "./commonSelect.js";
4
+ export { CommonSelect, SelectItem };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CommonSelect","SelectItem"],"sourceRoot":"../../../../src","sources":["components/select/index.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,UAAU,QAAQ,mBAAgB;AAEzD,SAASD,YAAY,EAAEC,UAAU","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/select/types.ts"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,105 @@
1
- // TODO: slider 구현 필요
2
1
  "use strict";
2
+
3
+ import { View, StyleSheet } from 'react-native';
4
+ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
5
+ import Animated, { useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
6
+ import { CommonText } from "../text/index.js";
7
+ import { useTheme } from "../../hooks/useTheme.js";
8
+
9
+ // TODO: Thumb가 범위 바깥으로 넘어가는 것 수정 필요.
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ export const CommonSlider = ({
12
+ labels = []
13
+ }) => {
14
+ const {
15
+ theme
16
+ } = useTheme();
17
+ const position = useSharedValue(0);
18
+ const startPosition = useSharedValue(0);
19
+ const panGesture = Gesture.Pan().onBegin(() => {
20
+ startPosition.value = position.value;
21
+ }).onUpdate(event => {
22
+ const nextValue = startPosition.value + event.translationX;
23
+ if (nextValue < 0) {
24
+ position.value = 0;
25
+ } else {
26
+ position.value = nextValue;
27
+ }
28
+ });
29
+ const animatedStyle = useAnimatedStyle(() => ({
30
+ transform: [{
31
+ translateX: position.value
32
+ }]
33
+ }));
34
+ const activeTrackStyle = useAnimatedStyle(() => ({
35
+ width: position.value + 15
36
+ }));
37
+ return /*#__PURE__*/_jsxs(View, {
38
+ style: styles.container,
39
+ children: [/*#__PURE__*/_jsxs(View, {
40
+ style: [styles.sliderBar, {
41
+ backgroundColor: theme.colors.secondary
42
+ }],
43
+ children: [/*#__PURE__*/_jsx(Animated.View, {
44
+ style: [{
45
+ backgroundColor: theme.colors.primary
46
+ }, styles.filledSliderBar, activeTrackStyle]
47
+ }), /*#__PURE__*/_jsx(GestureDetector, {
48
+ gesture: panGesture,
49
+ children: /*#__PURE__*/_jsx(Animated.View, {
50
+ style: [animatedStyle, {
51
+ backgroundColor: theme.colors.text
52
+ }, styles.thumb]
53
+ })
54
+ })]
55
+ }), /*#__PURE__*/_jsx(View, {
56
+ style: styles.labelBar,
57
+ children: labels.map((label, index) => {
58
+ const percent = labels.length === 1 ? 0 : index / (labels.length - 1);
59
+ return /*#__PURE__*/_jsx(CommonText, {
60
+ size: "s",
61
+ style: [styles.labelText, {
62
+ color: theme.colors.text,
63
+ left: `${percent * 100}%`
64
+ }],
65
+ children: label
66
+ }, `${label}-${index}`);
67
+ })
68
+ })]
69
+ });
70
+ };
71
+ const styles = StyleSheet.create({
72
+ container: {
73
+ padding: 20,
74
+ width: '100%'
75
+ },
76
+ sliderBar: {
77
+ width: '100%',
78
+ height: 10
79
+ },
80
+ filledSliderBar: {
81
+ position: 'absolute',
82
+ left: 0,
83
+ top: 0,
84
+ height: 10,
85
+ borderRadius: 5
86
+ },
87
+ labelBar: {
88
+ position: 'relative',
89
+ height: 24,
90
+ marginTop: 12
91
+ },
92
+ labelText: {
93
+ position: 'absolute',
94
+ transform: [{
95
+ translateX: -8
96
+ }]
97
+ },
98
+ thumb: {
99
+ bottom: 10,
100
+ width: 30,
101
+ height: 30,
102
+ borderRadius: 15
103
+ }
104
+ });
3
105
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/slider/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["View","StyleSheet","Gesture","GestureDetector","Animated","useAnimatedStyle","useSharedValue","CommonText","useTheme","jsx","_jsx","jsxs","_jsxs","CommonSlider","labels","theme","position","startPosition","panGesture","Pan","onBegin","value","onUpdate","event","nextValue","translationX","animatedStyle","transform","translateX","activeTrackStyle","width","style","styles","container","children","sliderBar","backgroundColor","colors","secondary","primary","filledSliderBar","gesture","text","thumb","labelBar","map","label","index","percent","length","size","labelText","color","left","create","padding","height","top","borderRadius","marginTop","bottom"],"sourceRoot":"../../../../src","sources":["components/slider/index.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,OAAO,EAAEC,eAAe,QAAQ,8BAA8B;AACvE,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,cAAc,QACT,yBAAyB;AAChC,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;;AAE/C;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,OAAO,MAAMC,Y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AE,UAAU;IACpBqC,IAAI,EAAE,CAAC;IACPI,GAAG,EAAE,CAAC;IACND,MAAM,EAAE,EAAE;IACVE,YAAY,EAAE;EAChB,CAAC;EACDd,QAAQ,EAAE;IACR5B,QAAQ,EAAE,UAAU;IACpBwC,MAAM,EAAE,EAAE;IACVG,SAAS,EAAE;EACb,CAAC;EACDR,SAAS,EAAE;IACTnC,QAAQ,EAAE,UAAU;IACpBW,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAE,CAAC;IAAE,CAAC;EAChC,CAAC;EACDe,KAAK,EAAE;IACLiB,MAAM,EAAE,EAAE;IACV9B,KAAK,EAAE,EAAE;IACT0B,MAAM,EAAE,EAAE;IACVE,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
+
3
+ export {};
2
4
  //# sourceMappingURL=types.js.map
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ import { useEffect } from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ import Animated, { Easing, useAnimatedStyle, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated';
6
+ import { CommonIcon } from "../icon/index.js";
7
+ import { useTheme } from "../../hooks/useTheme.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const CommonSpinner = ({
10
+ type = 'primary',
11
+ ...props
12
+ }) => {
13
+ const {
14
+ theme
15
+ } = useTheme();
16
+ const rotateValue = useSharedValue(0);
17
+ const animatedStyles = useAnimatedStyle(() => ({
18
+ transform: [{
19
+ rotate: `${rotateValue.value}deg`
20
+ }]
21
+ }));
22
+ useEffect(() => {
23
+ rotateValue.value = withRepeat(withTiming(360, {
24
+ duration: 1000,
25
+ easing: Easing.linear
26
+ }), -1,
27
+ // infinite
28
+ false);
29
+ });
30
+ return /*#__PURE__*/_jsx(View, {
31
+ style: styles.container,
32
+ ...props,
33
+ children: /*#__PURE__*/_jsx(Animated.View, {
34
+ style: [animatedStyles],
35
+ children: /*#__PURE__*/_jsx(CommonIcon, {
36
+ color: theme.colors[type],
37
+ iconType: "loaderCircle"
38
+ })
39
+ })
40
+ });
41
+ };
42
+ const styles = StyleSheet.create({
43
+ container: {
44
+ width: 24,
45
+ height: 24
46
+ }
47
+ });
48
+ export default CommonSpinner;
49
+ //# sourceMappingURL=commonSpinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","StyleSheet","View","Animated","Easing","useAnimatedStyle","useSharedValue","withRepeat","withTiming","CommonIcon","useTheme","jsx","_jsx","CommonSpinner","type","props","theme","rotateValue","animatedStyles","transform","rotate","value","duration","easing","linear","style","styles","container","children","color","colors","iconType","create","width","height"],"sourceRoot":"../../../../src","sources":["components/spinner/commonSpinner.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,QAAQ,IACbC,MAAM,EACNC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,EACVC,UAAU,QACL,yBAAyB;AAChC,SAASC,UAAU,QAAQ,kBAAS;AAEpC,SAASC,QAAQ,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,aAAa,GAAGA,CAAC;EAAEC,IAAI,GAAG,SAAS;EAAE,GAAGC;AAAoB,CAAC,KAAK;EACtE,MAAM;IAAEC;EAAM,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAC5B,MAAMO,WAAW,GAAGX,cAAc,CAAC,CAAC,CAAC;EACrC,MAAMY,cAAc,GAAGb,gBAAgB,CAAC,OAAO;IAC7Cc,SAAS,EAAE,CAAC;MAAEC,MAAM,EAAE,GAAGH,WAAW,CAACI,KAAK;IAAM,CAAC;EACnD,CAAC,CAAC,CAAC;EAEHrB,SAAS,CAAC,MAAM;IACdiB,WAAW,CAACI,KAAK,GAAGd,UAAU,CAC5BC,UAAU,CAAC,GAAG,EAAE;MACdc,QAAQ,EAAE,IAAI;MACdC,MAAM,EAAEnB,MAAM,CAACoB;IACjB,CAAC,CAAC,EACF,CAAC,CAAC;IAAE;IACJ,KACF,CAAC;EACH,CAAC,CAAC;EAEF,oBACEZ,IAAA,CAACV,IAAI;IAACuB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAA,GAAKZ,KAAK;IAAAa,QAAA,eACtChB,IAAA,CAACT,QAAQ,CAACD,IAAI;MAACuB,KAAK,EAAE,CAACP,cAAc,CAAE;MAAAU,QAAA,eACrChB,IAAA,CAACH,UAAU;QAACoB,KAAK,EAAEb,KAAK,CAACc,MAAM,CAAChB,IAAI,CAAE;QAACiB,QAAQ,EAAC;MAAc,CAAE;IAAC,CACpD;EAAC,CACZ,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGzB,UAAU,CAAC+B,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAerB,aAAa","ignoreList":[]}
@@ -1,3 +1,5 @@
1
- // TODO: spinner 구현 필요
2
1
  "use strict";
2
+
3
+ import CommonSpinner from "./commonSpinner.js";
4
+ export { CommonSpinner };
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/spinner/index.tsx"],"mappings":"AAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["CommonSpinner"],"sourceRoot":"../../../../src","sources":["components/spinner/index.ts"],"mappings":";;AAAA,OAAOA,aAAa,MAAM,oBAAiB;AAE3C,SAASA,aAAa","ignoreList":[]}
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
+
3
+ export {};
2
4
  //# sourceMappingURL=types.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
- export { CommonText, CommonButton, CommonBadge, SafeAreaContainer, ScrollViewContainer, CommonIcon, CommonRating, CommonAvatar, CommonImage, CheckBox, CommonHeader, CommonCard, FoldableCard, LinearProgressBar, CircularProgressBar, CommonInput, CommonPopOver, CommonSwitch } from "./components/index.js";
3
+ export { CommonText, CommonButton, CommonBadge, SafeAreaContainer, ScrollViewContainer, CommonIcon, CommonRating, CommonAvatar, CommonImage, CheckBox, CommonHeader, CommonCard, FoldableCard, LinearProgressBar, CircularProgressBar, CommonInput, CommonPopOver, CommonSwitch, SocialLoginButton, CommonSpinner, CommonSlider, CommonSelect, SelectItem } from "./components/index.js";
4
4
  export { ThemeProvider } from "./theme/themeProvider.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar","CommonInput","CommonPopOver","CommonSwitch","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,EACnBC,WAAW,EACXC,aAAa,EACbC,YAAY,QACP,uBAAc;AACrB,SAASC,aAAa,QAAQ,0BAAuB","ignoreList":[]}
1
+ {"version":3,"names":["CommonText","CommonButton","CommonBadge","SafeAreaContainer","ScrollViewContainer","CommonIcon","CommonRating","CommonAvatar","CommonImage","CheckBox","CommonHeader","CommonCard","FoldableCard","LinearProgressBar","CircularProgressBar","CommonInput","CommonPopOver","CommonSwitch","SocialLoginButton","CommonSpinner","CommonSlider","CommonSelect","SelectItem","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,EACnBC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,iBAAiB,EACjBC,aAAa,EACbC,YAAY,EACZC,YAAY,EACZC,UAAU,QACL,uBAAc;AACrB,SAASC,aAAa,QAAQ,0BAAuB","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import { type CommonBadgeProps } from './types.js';
2
- declare const CommonBadge: ({ type, size, typeText, ...props }: CommonBadgeProps) => import("react").JSX.Element;
2
+ declare const CommonBadge: ({ type, size, typeText, style, ...props }: CommonBadgeProps) => import("react").JSX.Element;
3
3
  export default CommonBadge;
4
4
  //# sourceMappingURL=commonBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commonBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/commonBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,YAAS,CAAC;AAIxE,QAAA,MAAM,WAAW,GAAI,oCAKlB,gBAAgB,gCAwBlB,CAAC;AAcF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"commonBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/commonBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,YAAS,CAAC;AAGxE,QAAA,MAAM,WAAW,GAAI,2CAMlB,gBAAgB,gCAsBlB,CAAC;AAaF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type NumberBadgeProps } from './types.js';
2
+ declare const NumberBadge: ({ type, number, maxNumber, size, style, ...props }: NumberBadgeProps) => import("react").JSX.Element;
3
+ export default NumberBadge;
4
+ //# sourceMappingURL=numberBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/numberBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,gBAAgB,EAItB,MAAM,YAAS,CAAC;AAGjB,QAAA,MAAM,WAAW,GAAI,oDAOlB,gBAAgB,gCAkBlB,CAAC;AAaF,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import CommonButton from './commonButton.js';
2
- export { CommonButton };
2
+ import SocialLoginButton from './socialLoginButton.js';
3
+ export { CommonButton, SocialLoginButton };
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,mBAAgB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,mBAAgB,CAAC;AAC1C,OAAO,iBAAiB,MAAM,wBAAqB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type SocialLoginButtonProps } from './types.js';
2
+ declare const SocialLoginButton: ({ type, provider, disabled, ...props }: SocialLoginButtonProps) => import("react").JSX.Element;
3
+ export default SocialLoginButton;
4
+ //# sourceMappingURL=socialLoginButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socialLoginButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/socialLoginButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAS,CAAC;AAGtD,QAAA,MAAM,iBAAiB,GAAI,wCAKxB,sBAAsB,gCAuBxB,CAAC;AAcF,eAAe,iBAAiB,CAAC"}
@@ -10,5 +10,8 @@ export interface ButtonProps extends PressableProps {
10
10
  export interface CommonButtonProps extends ButtonProps {
11
11
  title?: string;
12
12
  }
13
+ export interface SocialLoginButtonProps extends ButtonProps {
14
+ provider: 'apple' | 'facebook' | 'google' | 'kakaotalk' | 'naver';
15
+ }
13
16
  export {};
14
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AACvC,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAInD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAIvD,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AACvC,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAInD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAIvD,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,QAAQ,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;CACnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"foldableCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/foldableCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAUjD,QAAA,MAAM,YAAY,GAAI,4CAMnB,iBAAiB,gCA6CnB,CAAC;AAwBF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"foldableCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/card/foldableCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAUjD,QAAA,MAAM,YAAY,GAAI,4CAMnB,iBAAiB,gCAyCnB,CAAC;AAwBF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgApple: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgApple;
4
+ //# sourceMappingURL=Apple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Apple.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Apple.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,QAAQ,GAAI,OAAO,QAAQ,gCAUhC,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgFacebook: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgFacebook;
4
+ //# sourceMappingURL=Facebook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Facebook.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Facebook.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,gCAUnC,CAAC;AACF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgGoogle: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgGoogle;
4
+ //# sourceMappingURL=Google.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Google.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,SAAS,GAAI,OAAO,QAAQ,gCAUjC,CAAC;AACF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgKakaotalk: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgKakaotalk;
4
+ //# sourceMappingURL=Kakaotalk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Kakaotalk.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Kakaotalk.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,YAAY,GAAI,OAAO,QAAQ,gCAUpC,CAAC;AACF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgLoaderCircle: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgLoaderCircle;
4
+ //# sourceMappingURL=LoaderCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoaderCircle.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/LoaderCircle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,eAAe,GAAI,OAAO,QAAQ,gCAgBvC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SvgProps } from 'react-native-svg';
2
+ declare const SvgNaver: (props: SvgProps) => import("react").JSX.Element;
3
+ export default SvgNaver;
4
+ //# sourceMappingURL=Naver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Naver.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Naver.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,QAAA,MAAM,QAAQ,GAAI,OAAO,QAAQ,gCAUhC,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,YAAS,CAAC;AAuBnD,eAAO,MAAM,UAAU,GAAI,qCAKxB,SAAS,uCAiBX,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,YAAS,CAAC;AAoCnD,eAAO,MAAM,UAAU,GAAI,qCAKxB,SAAS,uCAiBX,CAAC"}
@@ -3,7 +3,7 @@ type Variant = 'primary' | 'secondary';
3
3
  type SizeVariant = 's' | 'm' | 'l';
4
4
  export declare const sizeType: Record<SizeVariant, number>;
5
5
  export interface IconProps extends ViewProps {
6
- iconType: 'check' | 'back' | 'close' | 'star_empty' | 'star_half' | 'star_full';
6
+ iconType: 'check' | 'back' | 'down' | 'close' | 'apple' | 'facebook' | 'google' | 'kakaotalk' | 'naver' | 'loaderCircle' | 'star_empty' | 'star_half' | 'star_full';
7
7
  type?: Variant;
8
8
  size?: SizeVariant;
9
9
  color?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AACvC,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIhD,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,QAAQ,EAGJ,OAAO,GACP,MAAM,GACN,OAAO,GAMP,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,KAAK,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AACvC,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAIhD,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,QAAQ,EAGJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,WAAW,GACX,OAAO,GACP,cAAc,GAGd,YAAY,GACZ,WAAW,GACX,WAAW,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,5 +1,5 @@
1
1
  export { CommonText } from './text/index.js';
2
- export { CommonButton } from './button/index.js';
2
+ export { CommonButton, SocialLoginButton } from './button/index.js';
3
3
  export { CommonBadge } from './badge/index.js';
4
4
  export { SafeAreaContainer, ScrollViewContainer } from './screenContainer/index.js';
5
5
  export { CommonIcon } from './icon/index.js';
@@ -13,4 +13,7 @@ export { LinearProgressBar, CircularProgressBar } from './progressBar/index.js';
13
13
  export { CommonInput } from './input/index.js';
14
14
  export { CommonPopOver } from './popOver/index.js';
15
15
  export { CommonSwitch } from './switch/index.js';
16
+ export { CommonSpinner } from './spinner/index.js';
17
+ export { CommonSlider } from './slider/index.js';
18
+ export { CommonSelect, SelectItem } from './select/index.js';
16
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAU,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAS,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,4BAAmB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAQ,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAU,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAU,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAU,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAQ,CAAC;AAClD,OAAO,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M,mBAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type CommonSelectItemProps, type CommonSelectProps } from './types.js';
3
+ export declare const SelectItem: (_props: CommonSelectItemProps) => null;
4
+ export declare const CommonSelect: ({ children, placeholder, value, onChange, style, }: CommonSelectProps) => React.JSX.Element;
5
+ //# sourceMappingURL=commonSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/commonSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAO7E,eAAO,MAAM,UAAU,GAAI,QAAQ,qBAAqB,SAEvD,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,oDAO1B,iBAAiB,sBAqGnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommonSelect, SelectItem } from './commonSelect.js';
2
+ export { CommonSelect, SelectItem };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ type SizeVariant = 's' | 'm' | 'l';
4
+ export interface CommonSelectProps extends ViewProps {
5
+ size?: SizeVariant;
6
+ value?: string;
7
+ placeholder?: string;
8
+ onChange?: (value: string) => void;
9
+ children: ReactNode;
10
+ }
11
+ export interface CommonSelectItemProps extends ViewProps {
12
+ label: string;
13
+ value: string;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1,3 @@
1
+ import { type SliderProps } from './types.js';
2
+ export declare const CommonSlider: ({ labels }: SliderProps) => import("react").JSX.Element;
1
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/index.tsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAS,CAAC;AAI3C,eAAO,MAAM,YAAY,GAAI,YAAiB,WAAW,gCAyExD,CAAC"}
@@ -1 +1,10 @@
1
+ import { type ViewProps } from 'react-native';
2
+ type Variant = 'primary' | 'secondary';
3
+ type SizeVariant = 's' | 'm' | 'l';
4
+ export interface SliderProps extends ViewProps {
5
+ type?: Variant;
6
+ size?: SizeVariant;
7
+ labels?: (string | number)[];
8
+ }
9
+ export {};
1
10
  //# sourceMappingURL=types.d.ts.map