@jamadd/react-native-template-ui 0.8.5 → 0.8.7

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 (248) hide show
  1. package/lib/module/components/button/AnimatedThemedPressable.js +13 -3
  2. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  3. package/lib/module/components/button/ThemedButton.js +84 -23
  4. package/lib/module/components/button/ThemedButton.js.map +1 -1
  5. package/lib/module/components/button/ThemedIconButton.js +62 -16
  6. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  7. package/lib/module/components/button/ThemedIconTextButton.js +118 -29
  8. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  9. package/lib/module/components/button/ThemedPressable.js +13 -3
  10. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  11. package/lib/module/components/icon/ThemedIcon.js +56 -15
  12. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  13. package/lib/module/components/list/List.js +131 -39
  14. package/lib/module/components/list/List.js.map +1 -1
  15. package/lib/module/components/loading/ThemedLoading.js +50 -13
  16. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  17. package/lib/module/components/overlay/actionSheet/ActionSheet.js +64 -19
  18. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  19. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +76 -0
  20. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -0
  21. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +19 -8
  22. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  23. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +87 -31
  24. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  25. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +113 -0
  26. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -0
  27. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +69 -28
  28. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  29. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +39 -14
  30. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  31. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +58 -25
  32. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
  33. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +45 -21
  34. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
  35. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +75 -32
  36. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
  37. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +72 -30
  38. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  39. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +45 -18
  40. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  41. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +152 -36
  42. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  43. package/lib/module/components/overlay/alert/Alert.js +142 -51
  44. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  45. package/lib/module/components/overlay/alert/AlertButton.js +62 -26
  46. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  47. package/lib/module/components/overlay/alert/AlertButtons.js +58 -23
  48. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  49. package/lib/module/components/overlay/alert/AlertContent.js +76 -17
  50. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  51. package/lib/module/components/overlay/alert/AlertWrap.js +125 -43
  52. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  53. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +96 -21
  54. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  55. package/lib/module/components/overlay/modal/ThemedModal.js +76 -23
  56. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  57. package/lib/module/components/overlay/toast/ThemedToast.js +339 -90
  58. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  59. package/lib/module/components/provider/GestureProvider.js +15 -3
  60. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  61. package/lib/module/components/provider/InsetsProvider.js +15 -3
  62. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  63. package/lib/module/components/provider/ReactNativeTemplateProviders.js +23 -11
  64. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  65. package/lib/module/components/provider/ThemeProvider.js +15 -3
  66. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  67. package/lib/module/components/separator/ThemedSeparator.js +53 -14
  68. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  69. package/lib/module/components/slider/Slider.js +625 -137
  70. package/lib/module/components/slider/Slider.js.map +1 -1
  71. package/lib/module/components/slider/ThemedSlider.js +178 -54
  72. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  73. package/lib/module/components/slider/ThemedSlider.web.js +206 -0
  74. package/lib/module/components/slider/ThemedSlider.web.js.map +1 -0
  75. package/lib/module/components/slider/ThemedSliderStepIndicator.js +40 -15
  76. package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
  77. package/lib/module/components/switch/ThemedSwitch.js +81 -21
  78. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  79. package/lib/module/components/text/ThemedIconText.js +124 -35
  80. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  81. package/lib/module/components/text/ThemedText.js +15 -3
  82. package/lib/module/components/text/ThemedText.js.map +1 -1
  83. package/lib/module/components/view/AnimatedThemedView.js +42 -11
  84. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  85. package/lib/module/components/view/ThemedScreenWrap.js +144 -39
  86. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  87. package/lib/module/components/view/ThemedScreenWrap.web.js +111 -32
  88. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  89. package/lib/module/components/view/ThemedScrollView.js +126 -38
  90. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  91. package/lib/module/components/view/ThemedView.js +33 -10
  92. package/lib/module/components/view/ThemedView.js.map +1 -1
  93. package/lib/module/hooks/button.js +263 -84
  94. package/lib/module/hooks/button.js.map +1 -1
  95. package/lib/module/hooks/list.js +50 -10
  96. package/lib/module/hooks/list.js.map +1 -1
  97. package/lib/module/hooks/overlay.js +575 -187
  98. package/lib/module/hooks/overlay.js.map +1 -1
  99. package/lib/module/hooks/react.js +90 -27
  100. package/lib/module/hooks/react.js.map +1 -1
  101. package/lib/module/hooks/reanimated.js.map +1 -1
  102. package/lib/module/hooks/style.js +43 -18
  103. package/lib/module/hooks/style.js.map +1 -1
  104. package/lib/module/hooks/switch.js +182 -43
  105. package/lib/module/hooks/switch.js.map +1 -1
  106. package/lib/module/hooks/theme.js +17 -8
  107. package/lib/module/hooks/theme.js.map +1 -1
  108. package/lib/module/hooks/view.js +56 -14
  109. package/lib/module/hooks/view.js.map +1 -1
  110. package/lib/module/index.js +2 -2
  111. package/lib/module/index.js.map +1 -1
  112. package/lib/module/utils/reanimated/func.js +60 -10
  113. package/lib/module/utils/reanimated/func.js.map +1 -1
  114. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +5 -0
  115. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +1 -0
  116. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
  117. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
  118. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
  119. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
  120. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +4 -0
  121. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +1 -0
  122. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
  123. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
  124. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
  125. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
  126. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
  127. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
  128. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -2
  129. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
  130. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
  131. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
  132. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
  133. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
  134. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -2
  135. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
  136. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
  137. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
  138. package/lib/typescript/src/components/slider/Slider.d.ts +3 -2
  139. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  140. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  141. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +5 -0
  142. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -0
  143. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
  144. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  145. package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -2
  146. package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
  147. package/lib/typescript/src/hooks/overlay.d.ts +0 -27
  148. package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
  149. package/lib/typescript/src/hooks/switch.d.ts +1 -20
  150. package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
  151. package/lib/typescript/src/types/list.d.ts +1 -10
  152. package/lib/typescript/src/types/list.d.ts.map +1 -1
  153. package/lib/typescript/src/types/overlay.d.ts +1 -31
  154. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  155. package/lib/typescript/src/utils/overlay/const.d.ts +0 -33
  156. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  157. package/lib/typescript/src/utils/reanimated/func.d.ts +1 -5
  158. package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
  159. package/lib/typescript/src/utils/switch/const.d.ts +1 -2
  160. package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
  161. package/package.json +14 -15
  162. package/src/components/button/AnimatedPressable.tsx +0 -7
  163. package/src/components/button/AnimatedThemedPressable.tsx +0 -12
  164. package/src/components/button/ThemedButton.tsx +0 -45
  165. package/src/components/button/ThemedIconButton.tsx +0 -33
  166. package/src/components/button/ThemedIconTextButton.tsx +0 -56
  167. package/src/components/button/ThemedPressable.tsx +0 -12
  168. package/src/components/icon/ThemedIcon.tsx +0 -31
  169. package/src/components/list/List.tsx +0 -55
  170. package/src/components/loading/ThemedLoading.tsx +0 -29
  171. package/src/components/overlay/actionSheet/ActionSheet.tsx +0 -31
  172. package/src/components/overlay/actionSheet/ActionSheetContentGesture.tsx +0 -15
  173. package/src/components/overlay/actionSheet/ActionSheetHeader.tsx +0 -72
  174. package/src/components/overlay/actionSheet/ActionSheetListView.tsx +0 -54
  175. package/src/components/overlay/actionSheet/ActionSheetListViewContent.tsx +0 -32
  176. package/src/components/overlay/actionSheet/ActionSheetOptionList.tsx +0 -51
  177. package/src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx +0 -43
  178. package/src/components/overlay/actionSheet/ActionSheetOptions.tsx +0 -61
  179. package/src/components/overlay/actionSheet/ActionSheetScrollView.tsx +0 -57
  180. package/src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx +0 -38
  181. package/src/components/overlay/actionSheet/ActionSheetWrap.tsx +0 -75
  182. package/src/components/overlay/alert/Alert.tsx +0 -86
  183. package/src/components/overlay/alert/AlertButton.tsx +0 -41
  184. package/src/components/overlay/alert/AlertButtons.tsx +0 -32
  185. package/src/components/overlay/alert/AlertContent.tsx +0 -60
  186. package/src/components/overlay/alert/AlertWrap.tsx +0 -93
  187. package/src/components/overlay/modal/ThemedLoadingModal.tsx +0 -47
  188. package/src/components/overlay/modal/ThemedModal.tsx +0 -42
  189. package/src/components/overlay/toast/ThemedToast.tsx +0 -160
  190. package/src/components/provider/GestureProvider.tsx +0 -9
  191. package/src/components/provider/InsetsProvider.tsx +0 -11
  192. package/src/components/provider/ReactNativeTemplateProviders.tsx +0 -20
  193. package/src/components/provider/ThemeProvider.tsx +0 -8
  194. package/src/components/separator/ThemedSeparator.tsx +0 -24
  195. package/src/components/slider/Slider.tsx +0 -229
  196. package/src/components/slider/ThemedSlider.tsx +0 -103
  197. package/src/components/slider/ThemedSliderStepIndicator.tsx +0 -24
  198. package/src/components/switch/ThemedSwitch.tsx +0 -49
  199. package/src/components/text/Text.tsx +0 -7
  200. package/src/components/text/ThemedIconText.tsx +0 -58
  201. package/src/components/text/ThemedText.tsx +0 -7
  202. package/src/components/view/AnimatedThemedView.tsx +0 -18
  203. package/src/components/view/AnimatedView.tsx +0 -7
  204. package/src/components/view/Box.tsx +0 -7
  205. package/src/components/view/ThemedScreenWrap.tsx +0 -48
  206. package/src/components/view/ThemedScreenWrap.web.tsx +0 -41
  207. package/src/components/view/ThemedScrollView.tsx +0 -54
  208. package/src/components/view/ThemedView.tsx +0 -19
  209. package/src/hooks/button.ts +0 -152
  210. package/src/hooks/list.ts +0 -42
  211. package/src/hooks/overlay.ts +0 -471
  212. package/src/hooks/react.ts +0 -34
  213. package/src/hooks/reanimated.ts +0 -6
  214. package/src/hooks/separator.ts +0 -29
  215. package/src/hooks/style.ts +0 -79
  216. package/src/hooks/switch.ts +0 -119
  217. package/src/hooks/theme.ts +0 -65
  218. package/src/hooks/view.ts +0 -28
  219. package/src/index.ts +0 -59
  220. package/src/test/utils/const.ts +0 -9
  221. package/src/test/utils/func.ts +0 -55
  222. package/src/test/utils/testingLib.tsx +0 -17
  223. package/src/types/button.ts +0 -50
  224. package/src/types/global.d.ts +0 -5
  225. package/src/types/icon.ts +0 -21
  226. package/src/types/list.ts +0 -61
  227. package/src/types/loading.ts +0 -14
  228. package/src/types/overlay.ts +0 -216
  229. package/src/types/provider.ts +0 -6
  230. package/src/types/react.ts +0 -8
  231. package/src/types/reanimated.ts +0 -11
  232. package/src/types/separator.ts +0 -28
  233. package/src/types/slider.ts +0 -59
  234. package/src/types/style.ts +0 -26
  235. package/src/types/switch.ts +0 -31
  236. package/src/types/text.ts +0 -25
  237. package/src/types/theme.ts +0 -39
  238. package/src/types/view.ts +0 -58
  239. package/src/utils/button/const.ts +0 -10
  240. package/src/utils/overlay/const.ts +0 -77
  241. package/src/utils/overlay/func.ts +0 -107
  242. package/src/utils/reanimated/func.ts +0 -39
  243. package/src/utils/slider/const.ts +0 -23
  244. package/src/utils/style/const.ts +0 -4
  245. package/src/utils/style/func.ts +0 -37
  246. package/src/utils/switch/const.ts +0 -2
  247. package/src/utils/theme/const.ts +0 -189
  248. package/src/utils/theme/restyle.ts +0 -87
@@ -1,13 +1,23 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { useAnimatedThemedPressable } from "../../hooks/button.js";
4
5
  import AnimatedPressable from "./AnimatedPressable.js";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  const AnimatedThemedPressable = props => {
8
+ const $ = _c(2);
7
9
  const animatedThemedPressableProps = useAnimatedThemedPressable(props);
8
- return /*#__PURE__*/_jsx(AnimatedPressable, {
9
- ...animatedThemedPressableProps
10
- });
10
+ let t0;
11
+ if ($[0] !== animatedThemedPressableProps) {
12
+ t0 = /*#__PURE__*/_jsx(AnimatedPressable, {
13
+ ...animatedThemedPressableProps
14
+ });
15
+ $[0] = animatedThemedPressableProps;
16
+ $[1] = t0;
17
+ } else {
18
+ t0 = $[1];
19
+ }
20
+ return t0;
11
21
  };
12
22
  export default AnimatedThemedPressable;
13
23
  //# sourceMappingURL=AnimatedThemedPressable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","animatedThemedPressableProps"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":";;AACA,SAASA,0BAA0B,QAAQ,uBAAoB;AAE/D,OAAOC,iBAAiB,MAAM,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,uBAAyD,GAAIC,KAAK,IAAK;EAC3E,MAAMC,4BAA4B,GAAGN,0BAA0B,CAACK,KAAK,CAAC;EAEtE,oBAAOF,IAAA,CAACF,iBAAiB;IAAA,GAAKK;EAA4B,CAAG,CAAC;AAChE,CAAC;AAED,eAAeF,uBAAuB","ignoreList":[]}
1
+ {"version":3,"names":["useAnimatedThemedPressable","AnimatedPressable","jsx","_jsx","AnimatedThemedPressable","props","$","_c","animatedThemedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/AnimatedThemedPressable.tsx"],"mappings":";;;AACA,SAASA,0BAA0B,QAAQ,uBAAoB;AAE/D,OAAOC,iBAAiB,MAAM,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,uBAAyD,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChE,MAAAC,4BAAA,GAAqCR,0BAA0B,CAACK,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,4BAAA;IAEhEC,EAAA,gBAAAN,IAAA,CAACF,iBAAiB;MAAA,GAAKO;IAA4B,CAAG,CAAC;IAAAF,CAAA,MAAAE,4BAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvDG,EAAuD;AAAA,CAC/D;AAED,eAAeL,uBAAuB","ignoreList":[]}
@@ -1,30 +1,59 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { ButtonScaleRatio } from "../../utils/button/const.js";
4
5
  import ThemedText from "../text/ThemedText.js";
5
6
  import ThemedPressable from "./ThemedPressable.js";
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const ThemedButton = ({
8
- text,
9
- textVariant,
10
- textFontSize,
11
- textFontWeight,
12
- textColor = 'textButton',
13
- textStyle,
14
- textProps,
15
- children,
16
- ...props
17
- }) => {
18
- return /*#__PURE__*/_jsxs(ThemedPressable, {
19
- scaleRatio: ButtonScaleRatio.Rectangle,
20
- flexDirection: 'row',
21
- alignItems: 'center',
22
- justifyContent: children ? 'space-between' : 'center',
23
- paddingVertical: 's',
24
- paddingHorizontal: 'm',
25
- backgroundColor: 'themePri',
26
- ...props,
27
- children: [/*#__PURE__*/_jsx(ThemedText, {
8
+ const ThemedButton = t0 => {
9
+ const $ = _c(23);
10
+ let children;
11
+ let props;
12
+ let t1;
13
+ let text;
14
+ let textFontSize;
15
+ let textFontWeight;
16
+ let textProps;
17
+ let textStyle;
18
+ let textVariant;
19
+ if ($[0] !== t0) {
20
+ ({
21
+ text,
22
+ textVariant,
23
+ textFontSize,
24
+ textFontWeight,
25
+ textColor: t1,
26
+ textStyle,
27
+ textProps,
28
+ children,
29
+ ...props
30
+ } = t0);
31
+ $[0] = t0;
32
+ $[1] = children;
33
+ $[2] = props;
34
+ $[3] = t1;
35
+ $[4] = text;
36
+ $[5] = textFontSize;
37
+ $[6] = textFontWeight;
38
+ $[7] = textProps;
39
+ $[8] = textStyle;
40
+ $[9] = textVariant;
41
+ } else {
42
+ children = $[1];
43
+ props = $[2];
44
+ t1 = $[3];
45
+ text = $[4];
46
+ textFontSize = $[5];
47
+ textFontWeight = $[6];
48
+ textProps = $[7];
49
+ textStyle = $[8];
50
+ textVariant = $[9];
51
+ }
52
+ const textColor = t1 === undefined ? "textButton" : t1;
53
+ const t2 = children ? "space-between" : "center";
54
+ let t3;
55
+ if ($[10] !== text || $[11] !== textColor || $[12] !== textFontSize || $[13] !== textFontWeight || $[14] !== textProps || $[15] !== textStyle || $[16] !== textVariant) {
56
+ t3 = /*#__PURE__*/_jsx(ThemedText, {
28
57
  numberOfLines: 1,
29
58
  variant: textVariant,
30
59
  fontSize: textFontSize,
@@ -33,8 +62,40 @@ const ThemedButton = ({
33
62
  style: textStyle,
34
63
  ...textProps,
35
64
  children: text
36
- }), children]
37
- });
65
+ });
66
+ $[10] = text;
67
+ $[11] = textColor;
68
+ $[12] = textFontSize;
69
+ $[13] = textFontWeight;
70
+ $[14] = textProps;
71
+ $[15] = textStyle;
72
+ $[16] = textVariant;
73
+ $[17] = t3;
74
+ } else {
75
+ t3 = $[17];
76
+ }
77
+ let t4;
78
+ if ($[18] !== children || $[19] !== props || $[20] !== t2 || $[21] !== t3) {
79
+ t4 = /*#__PURE__*/_jsxs(ThemedPressable, {
80
+ scaleRatio: ButtonScaleRatio.Rectangle,
81
+ flexDirection: "row",
82
+ alignItems: "center",
83
+ justifyContent: t2,
84
+ paddingVertical: "s",
85
+ paddingHorizontal: "m",
86
+ backgroundColor: "themePri",
87
+ ...props,
88
+ children: [t3, children]
89
+ });
90
+ $[18] = children;
91
+ $[19] = props;
92
+ $[20] = t2;
93
+ $[21] = t3;
94
+ $[22] = t4;
95
+ } else {
96
+ t4 = $[22];
97
+ }
98
+ return t4;
38
99
  };
39
100
  export default ThemedButton;
40
101
  //# sourceMappingURL=ThemedButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","text","textVariant","textFontSize","textFontWeight","textColor","textStyle","textProps","children","props","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","backgroundColor","numberOfLines","variant","fontSize","fontWeight","color","style"],"sourceRoot":"../../../../src","sources":["components/button/ThemedButton.tsx"],"mappings":";;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,YAAmC,GAAGA,CAAC;EAC3CC,IAAI;EACJC,WAAW;EACXC,YAAY;EACZC,cAAc;EACdC,SAAS,GAAG,YAAY;EACxBC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEV,KAAA,CAACJ,eAAe;IACde,UAAU,EAAEjB,gBAAgB,CAACkB,SAAU;IACvCC,aAAa,EAAE,KAAM;IACrBC,UAAU,EAAE,QAAS;IACrBC,cAAc,EAAEN,QAAQ,GAAG,eAAe,GAAG,QAAS;IACtDO,eAAe,EAAE,GAAI;IACrBC,iBAAiB,EAAE,GAAI;IACvBC,eAAe,EAAE,UAAW;IAAA,GACxBR,KAAK;IAAAD,QAAA,gBAETX,IAAA,CAACH,UAAU;MACTwB,aAAa,EAAE,CAAE;MACjBC,OAAO,EAAEjB,WAAY;MACrBkB,QAAQ,EAAEjB,YAAa;MACvBkB,UAAU,EAAEjB,cAAe;MAC3BkB,KAAK,EAAEjB,SAAU;MACjBkB,KAAK,EAAEjB,SAAU;MAAA,GACbC,SAAS;MAAAC,QAAA,EAEZP;IAAI,CACK,CAAC,EACZO,QAAQ;EAAA,CACM,CAAC;AAEtB,CAAC;AAED,eAAeR,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["ButtonScaleRatio","ThemedText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedButton","t0","$","_c","children","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","numberOfLines","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/button/ThemedButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,YAAmC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,cAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,WAAA;EAAA,IAAAV,CAAA,QAAAD,EAAA;IAAC;MAAAM,IAAA;MAAAK,WAAA;MAAAJ,YAAA;MAAAC,cAAA;MAAAI,SAAA,EAAAP,EAAA;MAAAK,SAAA;MAAAD,SAAA;MAAAN,QAAA;MAAA,GAAAC;IAAA,IAAAJ,EAU5C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAK,IAAA;IAAAL,CAAA,MAAAM,YAAA;IAAAN,CAAA,MAAAO,cAAA;IAAAP,CAAA,MAAAQ,SAAA;IAAAR,CAAA,MAAAS,SAAA;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,EAAA,IAAAb,CAAA,SAAAc,EAAA;IApBfE,EAAA,gBAAAnB,KAAA,CAACJ,eAAe;MACFwB,UAA0B,EAA1B1B,gBAAgB,CAAA2B,SAAU;MACvBC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACJC,cAAqC,EAArCR,EAAqC;MACpCS,eAAG,EAAH,GAAG;MACDC,iBAAG,EAAH,GAAG;MACLC,eAAU,EAAV,UAAU;MAAA,GACvBrB,KAAK;MAAAD,QAAA,GAETY,EAUa,EACZZ,QAAQ;IAAA,CACM,CAAC;IAAAF,CAAA,OAAAE,QAAA;IAAAF,CAAA,OAAAG,KAAA;IAAAH,CAAA,OAAAa,EAAA;IAAAb,CAAA,OAAAc,EAAA;IAAAd,CAAA,OAAAgB,EAAA;EAAA;IAAAA,EAAA,GAAAhB,CAAA;EAAA;EAAA,OAtBlBgB,EAsBkB;AAAA,CAErB;AAED,eAAelB,YAAY","ignoreList":[]}
@@ -1,30 +1,76 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { ButtonScaleRatio } from "../../utils/button/const.js";
4
5
  import ThemedIcon from "../icon/ThemedIcon.js";
5
6
  import ThemedPressable from "./ThemedPressable.js";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
- const ThemedIconButton = ({
8
- iconName,
9
- iconSize,
10
- iconColor,
11
- iconStyle,
12
- iconProps,
13
- ...props
14
- }) => {
15
- return /*#__PURE__*/_jsx(ThemedPressable, {
16
- scaleRatio: ButtonScaleRatio.Square,
17
- alignItems: 'center',
18
- padding: 's',
19
- ...props,
20
- children: /*#__PURE__*/_jsx(ThemedIcon, {
8
+ const ThemedIconButton = t0 => {
9
+ const $ = _c(16);
10
+ let iconColor;
11
+ let iconName;
12
+ let iconProps;
13
+ let iconSize;
14
+ let iconStyle;
15
+ let props;
16
+ if ($[0] !== t0) {
17
+ ({
18
+ iconName,
19
+ iconSize,
20
+ iconColor,
21
+ iconStyle,
22
+ iconProps,
23
+ ...props
24
+ } = t0);
25
+ $[0] = t0;
26
+ $[1] = iconColor;
27
+ $[2] = iconName;
28
+ $[3] = iconProps;
29
+ $[4] = iconSize;
30
+ $[5] = iconStyle;
31
+ $[6] = props;
32
+ } else {
33
+ iconColor = $[1];
34
+ iconName = $[2];
35
+ iconProps = $[3];
36
+ iconSize = $[4];
37
+ iconStyle = $[5];
38
+ props = $[6];
39
+ }
40
+ let t1;
41
+ if ($[7] !== iconColor || $[8] !== iconName || $[9] !== iconProps || $[10] !== iconSize || $[11] !== iconStyle) {
42
+ t1 = /*#__PURE__*/_jsx(ThemedIcon, {
21
43
  name: iconName,
22
44
  size: iconSize,
23
45
  color: iconColor,
24
46
  style: iconStyle,
25
47
  ...iconProps
26
- })
27
- });
48
+ });
49
+ $[7] = iconColor;
50
+ $[8] = iconName;
51
+ $[9] = iconProps;
52
+ $[10] = iconSize;
53
+ $[11] = iconStyle;
54
+ $[12] = t1;
55
+ } else {
56
+ t1 = $[12];
57
+ }
58
+ let t2;
59
+ if ($[13] !== props || $[14] !== t1) {
60
+ t2 = /*#__PURE__*/_jsx(ThemedPressable, {
61
+ scaleRatio: ButtonScaleRatio.Square,
62
+ alignItems: "center",
63
+ padding: "s",
64
+ ...props,
65
+ children: t1
66
+ });
67
+ $[13] = props;
68
+ $[14] = t1;
69
+ $[15] = t2;
70
+ } else {
71
+ t2 = $[15];
72
+ }
73
+ return t2;
28
74
  };
29
75
  export default ThemedIconButton;
30
76
  //# sourceMappingURL=ThemedIconButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","iconName","iconSize","iconColor","iconStyle","iconProps","props","scaleRatio","Square","alignItems","padding","children","name","size","color","style"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconButton.tsx"],"mappings":";;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,gBAA2C,GAAGA,CAAC;EACnDC,QAAQ;EACRC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,SAAS;EACT,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEP,IAAA,CAACF,eAAe;IACdU,UAAU,EAAEZ,gBAAgB,CAACa,MAAO;IACpCC,UAAU,EAAE,QAAS;IACrBC,OAAO,EAAE,GAAI;IAAA,GACTJ,KAAK;IAAAK,QAAA,eAETZ,IAAA,CAACH,UAAU;MACTgB,IAAI,EAAEX,QAAS;MACfY,IAAI,EAAEX,QAAS;MACfY,KAAK,EAAEX,SAAU;MACjBY,KAAK,EAAEX,SAAU;MAAA,GACbC;IAAS,CACd;EAAC,CACa,CAAC;AAEtB,CAAC;AAED,eAAeL,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["ButtonScaleRatio","ThemedIcon","ThemedPressable","jsx","_jsx","ThemedIconButton","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","t2","scaleRatio","Square","alignItems","padding","children"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhD,MAAMC,gBAA2C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,KAAA;EAAA,IAAAP,CAAA,QAAAD,EAAA;IAAC;MAAAI,QAAA;MAAAE,QAAA;MAAAH,SAAA;MAAAI,SAAA;MAAAF,SAAA;MAAA,GAAAG;IAAA,IAAAR,EAOpD;IAAAC,CAAA,M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IAAAA,EAAA,GAAAT,CAAA;EAAA;EAAA,OAblBS,EAakB;AAAA,CAErB;AAED,eAAeX,gBAAgB","ignoreList":[]}
@@ -1,36 +1,87 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { ButtonScaleRatio } from "../../utils/button/const.js";
4
5
  import ThemedIconText from "../text/ThemedIconText.js";
5
6
  import ThemedPressable from "./ThemedPressable.js";
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const ThemedIconTextButton = ({
8
- flip,
9
- iconTextProps,
10
- iconName,
11
- iconSize,
12
- iconColor,
13
- iconStyle,
14
- iconProps,
15
- text,
16
- textVariant,
17
- textFontSize,
18
- textFontWeight,
19
- textColor = 'themePri',
20
- textStyle,
21
- textProps,
22
- children,
23
- ...props
24
- }) => {
25
- return /*#__PURE__*/_jsxs(ThemedPressable, {
26
- scaleRatio: ButtonScaleRatio.Rectangle,
27
- flexDirection: 'row',
28
- alignItems: 'center',
29
- justifyContent: children ? 'space-between' : 'center',
30
- paddingVertical: 's',
31
- paddingHorizontal: 'm',
32
- ...props,
33
- children: [/*#__PURE__*/_jsx(ThemedIconText, {
8
+ const ThemedIconTextButton = t0 => {
9
+ const $ = _c(37);
10
+ let children;
11
+ let flip;
12
+ let iconColor;
13
+ let iconName;
14
+ let iconProps;
15
+ let iconSize;
16
+ let iconStyle;
17
+ let iconTextProps;
18
+ let props;
19
+ let t1;
20
+ let text;
21
+ let textFontSize;
22
+ let textFontWeight;
23
+ let textProps;
24
+ let textStyle;
25
+ let textVariant;
26
+ if ($[0] !== t0) {
27
+ ({
28
+ flip,
29
+ iconTextProps,
30
+ iconName,
31
+ iconSize,
32
+ iconColor,
33
+ iconStyle,
34
+ iconProps,
35
+ text,
36
+ textVariant,
37
+ textFontSize,
38
+ textFontWeight,
39
+ textColor: t1,
40
+ textStyle,
41
+ textProps,
42
+ children,
43
+ ...props
44
+ } = t0);
45
+ $[0] = t0;
46
+ $[1] = children;
47
+ $[2] = flip;
48
+ $[3] = iconColor;
49
+ $[4] = iconName;
50
+ $[5] = iconProps;
51
+ $[6] = iconSize;
52
+ $[7] = iconStyle;
53
+ $[8] = iconTextProps;
54
+ $[9] = props;
55
+ $[10] = t1;
56
+ $[11] = text;
57
+ $[12] = textFontSize;
58
+ $[13] = textFontWeight;
59
+ $[14] = textProps;
60
+ $[15] = textStyle;
61
+ $[16] = textVariant;
62
+ } else {
63
+ children = $[1];
64
+ flip = $[2];
65
+ iconColor = $[3];
66
+ iconName = $[4];
67
+ iconProps = $[5];
68
+ iconSize = $[6];
69
+ iconStyle = $[7];
70
+ iconTextProps = $[8];
71
+ props = $[9];
72
+ t1 = $[10];
73
+ text = $[11];
74
+ textFontSize = $[12];
75
+ textFontWeight = $[13];
76
+ textProps = $[14];
77
+ textStyle = $[15];
78
+ textVariant = $[16];
79
+ }
80
+ const textColor = t1 === undefined ? "themePri" : t1;
81
+ const t2 = children ? "space-between" : "center";
82
+ let t3;
83
+ if ($[17] !== flip || $[18] !== iconColor || $[19] !== iconName || $[20] !== iconProps || $[21] !== iconSize || $[22] !== iconStyle || $[23] !== iconTextProps || $[24] !== text || $[25] !== textColor || $[26] !== textFontSize || $[27] !== textFontWeight || $[28] !== textProps || $[29] !== textStyle || $[30] !== textVariant) {
84
+ t3 = /*#__PURE__*/_jsx(ThemedIconText, {
34
85
  iconName: iconName,
35
86
  iconSize: iconSize,
36
87
  iconColor: iconColor,
@@ -45,8 +96,46 @@ const ThemedIconTextButton = ({
45
96
  textProps: textProps,
46
97
  flip: flip,
47
98
  ...iconTextProps
48
- }), children]
49
- });
99
+ });
100
+ $[17] = flip;
101
+ $[18] = iconColor;
102
+ $[19] = iconName;
103
+ $[20] = iconProps;
104
+ $[21] = iconSize;
105
+ $[22] = iconStyle;
106
+ $[23] = iconTextProps;
107
+ $[24] = text;
108
+ $[25] = textColor;
109
+ $[26] = textFontSize;
110
+ $[27] = textFontWeight;
111
+ $[28] = textProps;
112
+ $[29] = textStyle;
113
+ $[30] = textVariant;
114
+ $[31] = t3;
115
+ } else {
116
+ t3 = $[31];
117
+ }
118
+ let t4;
119
+ if ($[32] !== children || $[33] !== props || $[34] !== t2 || $[35] !== t3) {
120
+ t4 = /*#__PURE__*/_jsxs(ThemedPressable, {
121
+ scaleRatio: ButtonScaleRatio.Rectangle,
122
+ flexDirection: "row",
123
+ alignItems: "center",
124
+ justifyContent: t2,
125
+ paddingVertical: "s",
126
+ paddingHorizontal: "m",
127
+ ...props,
128
+ children: [t3, children]
129
+ });
130
+ $[32] = children;
131
+ $[33] = props;
132
+ $[34] = t2;
133
+ $[35] = t3;
134
+ $[36] = t4;
135
+ } else {
136
+ t4 = $[36];
137
+ }
138
+ return t4;
50
139
  };
51
140
  export default ThemedIconTextButton;
52
141
  //# sourceMappingURL=ThemedIconTextButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","flip","iconTextProps","iconName","iconSize","iconColor","iconStyle","iconProps","text","textVariant","textFontSize","textFontWeight","textColor","textStyle","textProps","children","props","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconTextButton.tsx"],"mappings":";;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,oBAAmD,GAAGA,CAAC;EAC3DC,IAAI;EACJC,aAAa;EACbC,QAAQ;EACRC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,SAAS;EACTC,IAAI;EACJC,WAAW;EACXC,YAAY;EACZC,cAAc;EACdC,SAAS,GAAG,UAAU;EACtBC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEjB,KAAA,CAACJ,eAAe;IACdsB,UAAU,EAAExB,gBAAgB,CAACyB,SAAU;IACvCC,aAAa,EAAE,KAAM;IACrBC,UAAU,EAAE,QAAS;IACrBC,cAAc,EAAEN,QAAQ,GAAG,eAAe,GAAG,QAAS;IACtDO,eAAe,EAAE,GAAI;IACrBC,iBAAiB,EAAE,GAAI;IAAA,GACnBP,KAAK;IAAAD,QAAA,gBAETlB,IAAA,CAACH,cAAc;MACbS,QAAQ,EAAEA,QAAS;MACnBC,QAAQ,EAAEA,QAAS;MACnBC,SAAS,EAAEA,SAAU;MACrBC,SAAS,EAAEA,SAAU;MACrBC,SAAS,EAAEA,SAAU;MACrBC,IAAI,EAAEA,IAAK;MACXC,WAAW,EAAEA,WAAY;MACzBC,YAAY,EAAEA,YAAa;MAC3BC,cAAc,EAAEA,cAAe;MAC/BC,SAAS,EAAEA,SAAU;MACrBC,SAAS,EAAEA,SAAU;MACrBC,SAAS,EAAEA,SAAU;MACrBb,IAAI,EAAEA,IAAK;MAAA,GACPC;IAAa,CAClB,CAAC,EACDa,QAAQ;EAAA,CACM,CAAC;AAEtB,CAAC;AAED,eAAef,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["ButtonScaleRatio","ThemedIconText","ThemedPressable","jsx","_jsx","jsxs","_jsxs","ThemedIconTextButton","t0","$","_c","children","flip","iconColor","iconName","iconProps","iconSize","iconStyle","iconTextProps","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","t4","scaleRatio","Rectangle","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal"],"sourceRoot":"../../../../src","sources":["components/button/ThemedIconTextButton.tsx"],"mappings":";;;AAEA,SAASA,gBAAgB,QAAQ,6BAA0B;AAC3D,OAAOC,cAAc,MAAM,2BAAwB;AACnD,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,I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3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { Pressable } from 'react-native';
4
5
  import { useThemedPressable } from "../../hooks/button.js";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  const ThemedPressable = props => {
8
+ const $ = _c(2);
7
9
  const themedPressableProps = useThemedPressable(props);
8
- return /*#__PURE__*/_jsx(Pressable, {
9
- ...themedPressableProps
10
- });
10
+ let t0;
11
+ if ($[0] !== themedPressableProps) {
12
+ t0 = /*#__PURE__*/_jsx(Pressable, {
13
+ ...themedPressableProps
14
+ });
15
+ $[0] = themedPressableProps;
16
+ $[1] = t0;
17
+ } else {
18
+ t0 = $[1];
19
+ }
20
+ return t0;
11
21
  };
12
22
  export default ThemedPressable;
13
23
  //# sourceMappingURL=ThemedPressable.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","themedPressableProps"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":";;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxD,MAAMC,eAAyC,GAAIC,KAAK,IAAK;EAC3D,MAAMC,oBAAoB,GAAGL,kBAAkB,CAACI,KAAK,CAAC;EAEtD,oBAAOF,IAAA,CAACH,SAAS;IAAA,GAAKM;EAAoB,CAAG,CAAC;AAChD,CAAC;AAED,eAAeF,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["Pressable","useThemedPressable","jsx","_jsx","ThemedPressable","props","$","_c","themedPressableProps","t0"],"sourceRoot":"../../../../src","sources":["components/button/ThemedPressable.tsx"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxD,MAAMC,eAAyC,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAChD,MAAAC,oBAAA,GAA6BP,kBAAkB,CAACI,KAAK,CAAC;EAAC,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,oBAAA;IAEhDC,EAAA,gBAAAN,IAAA,CAACH,SAAS;MAAA,GAAKQ;IAAoB,CAAG,CAAC;IAAAF,CAAA,MAAAE,oBAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAA,OAAvCG,EAAuC;AAAA,CAC/C;AAED,eAAeL,eAAe","ignoreList":[]}
@@ -1,25 +1,66 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import Icon, { IconSize } from '@jamadd/react-native-template-icons';
4
5
  import { useRestyle } from '@shopify/restyle';
5
6
  import { themedIconColorRestyleFuncs, themedIconRestyleFuncs } from "../../utils/theme/restyle.js";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
- const ThemedIcon = ({
8
- name,
9
- size = IconSize.M,
10
- color = 'themePri',
11
- ...props
12
- }) => {
8
+ const ThemedIcon = t0 => {
9
+ const $ = _c(12);
10
+ let name;
11
+ let props;
12
+ let t1;
13
+ let t2;
14
+ if ($[0] !== t0) {
15
+ ({
16
+ name,
17
+ size: t1,
18
+ color: t2,
19
+ ...props
20
+ } = t0);
21
+ $[0] = t0;
22
+ $[1] = name;
23
+ $[2] = props;
24
+ $[3] = t1;
25
+ $[4] = t2;
26
+ } else {
27
+ name = $[1];
28
+ props = $[2];
29
+ t1 = $[3];
30
+ t2 = $[4];
31
+ }
32
+ const size = t1 === undefined ? IconSize.M : t1;
33
+ const color = t2 === undefined ? "themePri" : t2;
13
34
  const restyle = useRestyle(themedIconRestyleFuncs, props);
14
- const colorRestyle = useRestyle(themedIconColorRestyleFuncs, {
15
- color
16
- });
17
- return /*#__PURE__*/_jsx(Icon, {
18
- name: name,
19
- size: size,
20
- color: colorRestyle.style[0]?.color,
21
- ...restyle
22
- });
35
+ let t3;
36
+ if ($[5] !== color) {
37
+ t3 = {
38
+ color
39
+ };
40
+ $[5] = color;
41
+ $[6] = t3;
42
+ } else {
43
+ t3 = $[6];
44
+ }
45
+ const colorRestyle = useRestyle(themedIconColorRestyleFuncs, t3);
46
+ const t4 = colorRestyle.style[0]?.color;
47
+ let t5;
48
+ if ($[7] !== name || $[8] !== restyle || $[9] !== size || $[10] !== t4) {
49
+ t5 = /*#__PURE__*/_jsx(Icon, {
50
+ name: name,
51
+ size: size,
52
+ color: t4,
53
+ ...restyle
54
+ });
55
+ $[7] = name;
56
+ $[8] = restyle;
57
+ $[9] = size;
58
+ $[10] = t4;
59
+ $[11] = t5;
60
+ } else {
61
+ t5 = $[11];
62
+ }
63
+ return t5;
23
64
  };
24
65
  export default ThemedIcon;
25
66
  //# sourceMappingURL=ThemedIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","name","size","M","color","props","restyle","colorRestyle","style"],"sourceRoot":"../../../../src","sources":["components/icon/ThemedIcon.tsx"],"mappings":";;AAAA,OAAOA,IAAI,IAAIC,QAAQ,QAAQ,qCAAqC;AACpE,SAASC,UAAU,QAAQ,kBAAkB;AAG7C,SACEC,2BAA2B,EAC3BC,sBAAsB,QACjB,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,MAAMC,UAA+B,GAAGA,CAAC;EACvCC,IAAI;EACJC,IAAI,GAAGR,QAAQ,CAACS,CAAC;EACjBC,KAAK,GAAG,UAAU;EAClB,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,OAAO,GAAGX,UAAU,CAACE,sBAAsB,EAAEQ,KAAK,CAAC;EACzD,MAAME,YAAY,GAAGZ,UAAU,CAACC,2BAA2B,EAAE;IAC3DQ;EACF,CAAmC,CAAmC;EAEtE,oBACEL,IAAA,CAACN,IAAI;IACHQ,IAAI,EAAEA,IAAK;IACXC,IAAI,EAAEA,IAAK;IACXE,KAAK,EAAEG,YAAY,CAACC,KAAK,CAAC,CAAC,CAAC,EAAEJ,KAAM;IAAA,GAChCE;EAAO,CACZ,CAAC;AAEN,CAAC;AAED,eAAeN,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["Icon","IconSize","useRestyle","themedIconColorRestyleFuncs","themedIconRestyleFuncs","jsx","_jsx","ThemedIcon","t0","$","_c","name","props","t1","t2","size","color","undefined","M","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/icon/ThemedIcon.tsx"],"mappings":";;;AAAA,OAAOA,IAAI,IAAIC,QAAQ,QAAQ,qCAAqC;AACpE,SAASC,UAAU,QAAQ,kBAAkB;AAG7C,SACEC,2BAA2B,EAC3BC,sBAAsB,QACjB,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,MAAMC,UAA+B,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAD,EAAA;IAAC;MAAAG,IAAA;MAAAI,IAAA,EAAAF,EAAA;MAAAG,KAAA,EAAAF,EAAA;MAAA,GAAAF;IAAA,IAAAJ,EAKxC;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,IAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAI,EAAA;IAAAJ,CAAA,MAAAK,EAAA;EAAA;IAAAH,IAAA,GAAAF,CAAA;IAAAG,KAAA,GAAAH,CAAA;IAAAI,EAAA,GAAAJ,CAAA;IAAAK,EAAA,GAAAL,CAAA;EAAA;EAHC,MAAAM,IAAA,GAAAF,EAAiB,KAAjBI,SAAiB,GAAVhB,QAAQ,CAAAiB,CAAE,GAAjBL,EAAiB;EACjB,MAAAG,KAAA,GAAAF,EAAkB,KAAlBG,SAAkB,GAAlB,UAAkB,GAAlBH,EAAkB;EAGlB,MAAAK,OAAA,GA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