@jamadd/react-native-template-ui 0.8.6 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +8 -0
  2. package/lib/module/components/accordion/ThemedAccordion.js +245 -0
  3. package/lib/module/components/accordion/ThemedAccordion.js.map +1 -0
  4. package/lib/module/components/accordion/ThemedAccordion.web.js +245 -0
  5. package/lib/module/components/accordion/ThemedAccordion.web.js.map +1 -0
  6. package/lib/module/components/button/AnimatedThemedPressable.js +13 -3
  7. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  8. package/lib/module/components/button/ThemedButton.js +84 -23
  9. package/lib/module/components/button/ThemedButton.js.map +1 -1
  10. package/lib/module/components/button/ThemedIconButton.js +62 -16
  11. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  12. package/lib/module/components/button/ThemedIconTextButton.js +118 -29
  13. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  14. package/lib/module/components/button/ThemedPressable.js +13 -3
  15. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  16. package/lib/module/components/icon/ThemedIcon.js +56 -15
  17. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  18. package/lib/module/components/list/List.js +131 -39
  19. package/lib/module/components/list/List.js.map +1 -1
  20. package/lib/module/components/loading/ThemedLoading.js +50 -13
  21. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  22. package/lib/module/components/overlay/actionSheet/ActionSheet.js +64 -19
  23. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  24. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +64 -19
  25. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -1
  26. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +19 -8
  27. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  28. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +87 -31
  29. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  30. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +87 -31
  31. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -1
  32. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +68 -27
  33. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  34. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +39 -14
  35. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  36. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +58 -25
  37. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
  38. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +45 -21
  39. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
  40. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +74 -31
  41. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
  42. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +71 -29
  43. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  44. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +45 -18
  45. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  46. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +152 -36
  47. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  48. package/lib/module/components/overlay/alert/Alert.js +142 -51
  49. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  50. package/lib/module/components/overlay/alert/AlertButton.js +62 -26
  51. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  52. package/lib/module/components/overlay/alert/AlertButtons.js +58 -23
  53. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  54. package/lib/module/components/overlay/alert/AlertContent.js +76 -17
  55. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  56. package/lib/module/components/overlay/alert/AlertWrap.js +125 -43
  57. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  58. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +96 -21
  59. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  60. package/lib/module/components/overlay/modal/ThemedModal.js +76 -23
  61. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  62. package/lib/module/components/overlay/toast/ThemedToast.js +339 -90
  63. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  64. package/lib/module/components/provider/GestureProvider.js +15 -3
  65. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  66. package/lib/module/components/provider/InsetsProvider.js +15 -3
  67. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  68. package/lib/module/components/provider/ReactNativeTemplateProviders.js +23 -11
  69. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  70. package/lib/module/components/provider/ThemeProvider.js +15 -3
  71. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  72. package/lib/module/components/separator/ThemedSeparator.js +53 -14
  73. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  74. package/lib/module/components/slider/Slider.js +549 -140
  75. package/lib/module/components/slider/Slider.js.map +1 -1
  76. package/lib/module/components/slider/Slider.web.js +595 -0
  77. package/lib/module/components/slider/Slider.web.js.map +1 -0
  78. package/lib/module/components/slider/ThemedSlider.js +179 -55
  79. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  80. package/lib/module/components/slider/ThemedSlider.web.js +179 -55
  81. package/lib/module/components/slider/ThemedSlider.web.js.map +1 -1
  82. package/lib/module/components/slider/ThemedSliderStepIndicator.js +40 -15
  83. package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
  84. package/lib/module/components/switch/ThemedSwitch.js +81 -21
  85. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  86. package/lib/module/components/text/ThemedIconText.js +124 -35
  87. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  88. package/lib/module/components/text/ThemedText.js +15 -3
  89. package/lib/module/components/text/ThemedText.js.map +1 -1
  90. package/lib/module/components/view/AnimatedThemedView.js +42 -11
  91. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  92. package/lib/module/components/view/ThemedScreenWrap.js +144 -39
  93. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  94. package/lib/module/components/view/ThemedScreenWrap.web.js +111 -32
  95. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  96. package/lib/module/components/view/ThemedScrollView.js +126 -38
  97. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  98. package/lib/module/components/view/ThemedView.js +33 -10
  99. package/lib/module/components/view/ThemedView.js.map +1 -1
  100. package/lib/module/hooks/button.js +263 -84
  101. package/lib/module/hooks/button.js.map +1 -1
  102. package/lib/module/hooks/list.js +50 -10
  103. package/lib/module/hooks/list.js.map +1 -1
  104. package/lib/module/hooks/overlay.js +575 -187
  105. package/lib/module/hooks/overlay.js.map +1 -1
  106. package/lib/module/hooks/react.js +90 -27
  107. package/lib/module/hooks/react.js.map +1 -1
  108. package/lib/module/hooks/reanimated.js.map +1 -1
  109. package/lib/module/hooks/style.js +43 -18
  110. package/lib/module/hooks/style.js.map +1 -1
  111. package/lib/module/hooks/switch.js +182 -43
  112. package/lib/module/hooks/switch.js.map +1 -1
  113. package/lib/module/hooks/theme.js +17 -8
  114. package/lib/module/hooks/theme.js.map +1 -1
  115. package/lib/module/hooks/view.js +56 -14
  116. package/lib/module/hooks/view.js.map +1 -1
  117. package/lib/module/index.js +2 -0
  118. package/lib/module/index.js.map +1 -1
  119. package/lib/module/types/accordion.js +4 -0
  120. package/lib/module/types/accordion.js.map +1 -0
  121. package/lib/module/utils/reanimated/func.js +60 -10
  122. package/lib/module/utils/reanimated/func.js.map +1 -1
  123. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +5 -0
  124. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -0
  125. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts +5 -0
  126. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts.map +1 -0
  127. package/lib/typescript/src/components/slider/Slider.d.ts +3 -2
  128. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  129. package/lib/typescript/src/components/slider/Slider.web.d.ts +5 -0
  130. package/lib/typescript/src/components/slider/Slider.web.d.ts.map +1 -0
  131. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  132. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -1
  133. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
  134. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  135. package/lib/typescript/src/components/text/Text.d.ts +2 -2
  136. package/lib/typescript/src/components/view/Box.d.ts +18 -18
  137. package/lib/typescript/src/index.d.ts +2 -0
  138. package/lib/typescript/src/index.d.ts.map +1 -1
  139. package/lib/typescript/src/types/accordion.d.ts +16 -0
  140. package/lib/typescript/src/types/accordion.d.ts.map +1 -0
  141. package/lib/typescript/src/utils/theme/restyle.d.ts +385 -385
  142. package/package.json +14 -14
@@ -1,23 +1,48 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  /** @internal */
4
-
5
- import { memo } from 'react';
6
5
  import { sliderStepIndicatorDefaultWidth } from "../../utils/slider/const.js";
7
6
  import ThemedView from "../view/ThemedView.js";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
- const ThemedSliderStepIndicator = ({
10
- width = sliderStepIndicatorDefaultWidth,
11
- height,
12
- ...props
13
- }) => {
14
- return /*#__PURE__*/_jsx(ThemedView, {
15
- position: 'absolute',
16
- width: width,
17
- height: height,
18
- backgroundColor: 'themePri',
19
- ...props
20
- });
8
+ const ThemedSliderStepIndicator = t0 => {
9
+ const $ = _c(8);
10
+ let height;
11
+ let props;
12
+ let t1;
13
+ if ($[0] !== t0) {
14
+ ({
15
+ width: t1,
16
+ height,
17
+ ...props
18
+ } = t0);
19
+ $[0] = t0;
20
+ $[1] = height;
21
+ $[2] = props;
22
+ $[3] = t1;
23
+ } else {
24
+ height = $[1];
25
+ props = $[2];
26
+ t1 = $[3];
27
+ }
28
+ const width = t1 === undefined ? sliderStepIndicatorDefaultWidth : t1;
29
+ let t2;
30
+ if ($[4] !== height || $[5] !== props || $[6] !== width) {
31
+ t2 = /*#__PURE__*/_jsx(ThemedView, {
32
+ position: "absolute",
33
+ width: width,
34
+ height: height,
35
+ backgroundColor: "themePri",
36
+ ...props
37
+ });
38
+ $[4] = height;
39
+ $[5] = props;
40
+ $[6] = width;
41
+ $[7] = t2;
42
+ } else {
43
+ t2 = $[7];
44
+ }
45
+ return t2;
21
46
  };
22
- export default /*#__PURE__*/memo(ThemedSliderStepIndicator);
47
+ export default ThemedSliderStepIndicator;
23
48
  //# sourceMappingURL=ThemedSliderStepIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["memo","sliderStepIndicatorDefaultWidth","ThemedView","jsx","_jsx","ThemedSliderStepIndicator","width","height","props","position","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/slider/ThemedSliderStepIndicator.tsx"],"mappings":";;AAAA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,+BAA+B,QAAQ,6BAA0B;AAC1E,OAAOC,UAAU,MAAM,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5C,MAAMC,yBAA6D,GAAGA,CAAC;EACrEC,KAAK,GAAGL,+BAA+B;EACvCM,MAAM;EACN,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEJ,IAAA,CAACF,UAAU;IACTO,QAAQ,EAAE,UAAW;IACrBH,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfG,eAAe,EAAE,UAAW;IAAA,GACxBF;EAAK,CACV,CAAC;AAEN,CAAC;AAED,4BAAeR,IAAI,CAACK,yBAAyB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["sliderStepIndicatorDefaultWidth","ThemedView","jsx","_jsx","ThemedSliderStepIndicator","t0","$","_c","height","props","t1","width","undefined","t2","position","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/slider/ThemedSliderStepIndicator.tsx"],"mappings":";;;AAAA;AAGA,SAASA,+BAA+B,QAAQ,6BAA0B;AAC1E,OAAOC,UAAU,MAAM,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5C,MAAMC,yBAA6D,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAJ,CAAA,QAAAD,EAAA;IAAC;MAAAM,KAAA,EAAAD,EAAA;MAAAF,MAAA;MAAA,GAAAC;IAAA,IAAAJ,EAItE;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,MAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAI,EAAA;EAAA;IAAAF,MAAA,GAAAF,CAAA;IAAAG,KAAA,GAAAH,CAAA;IAAAI,EAAA,GAAAJ,CAAA;EAAA;EAHC,MAAAK,KAAA,GAAAD,EAAuC,KAAvCE,SAAuC,GAAvCZ,+BAAuC,GAAvCU,EAAuC;EAAA,IAAAG,EAAA;EAAA,IAAAP,CAAA,QAAAE,MAAA,IAAAF,CAAA,QAAAG,KAAA,IAAAH,CAAA,QAAAK,KAAA;IAKrCE,EAAA,gBAAAV,IAAA,CAACF,UAAU;MACCa,QAAU,EAAV,UAAU;MACbH,KAAK,EAALA,KAAK;MACJH,MAAM,EAANA,MAAM;MACGO,eAAU,EAAV,UAAU;MAAA,GACvBN;IAAK,CACV,CAAC;IAAAH,CAAA,MAAAE,MAAA;IAAAF,CAAA,MAAAG,KAAA;IAAAH,CAAA,MAAAK,KAAA;IAAAL,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAAA,OANFO,EAME;AAAA,CAEL;AAED,eAAeT,yBAAyB","ignoreList":[]}
@@ -1,40 +1,100 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { useThemedSwitch } from "../../hooks/switch.js";
4
5
  import { SwitchSize } from "../../utils/theme/const.js";
5
6
  import AnimatedThemedPressable from "../button/AnimatedThemedPressable.js";
6
7
  import AnimatedThemedView from "../view/AnimatedThemedView.js";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
- const ThemedSwitch = ({
9
- onPress,
10
- enabled,
11
- size = SwitchSize.M,
12
- onPressDelayConfig,
13
- customEnableAnimation,
14
- customDisableAnimation,
15
- customColors,
16
- thumbProps,
17
- style,
18
- ...props
19
- }) => {
9
+ const ThemedSwitch = t0 => {
10
+ const $ = _c(21);
11
+ let customColors;
12
+ let customDisableAnimation;
13
+ let customEnableAnimation;
14
+ let enabled;
15
+ let onPress;
16
+ let onPressDelayConfig;
17
+ let props;
18
+ let style;
19
+ let t1;
20
+ let thumbProps;
21
+ if ($[0] !== t0) {
22
+ ({
23
+ onPress,
24
+ enabled,
25
+ size: t1,
26
+ onPressDelayConfig,
27
+ customEnableAnimation,
28
+ customDisableAnimation,
29
+ customColors,
30
+ thumbProps,
31
+ style,
32
+ ...props
33
+ } = t0);
34
+ $[0] = t0;
35
+ $[1] = customColors;
36
+ $[2] = customDisableAnimation;
37
+ $[3] = customEnableAnimation;
38
+ $[4] = enabled;
39
+ $[5] = onPress;
40
+ $[6] = onPressDelayConfig;
41
+ $[7] = props;
42
+ $[8] = style;
43
+ $[9] = t1;
44
+ $[10] = thumbProps;
45
+ } else {
46
+ customColors = $[1];
47
+ customDisableAnimation = $[2];
48
+ customEnableAnimation = $[3];
49
+ enabled = $[4];
50
+ onPress = $[5];
51
+ onPressDelayConfig = $[6];
52
+ props = $[7];
53
+ style = $[8];
54
+ t1 = $[9];
55
+ thumbProps = $[10];
56
+ }
57
+ const size = t1 === undefined ? SwitchSize.M : t1;
20
58
  const {
21
59
  toggleSwitch,
22
60
  trackAnimatedStyle,
23
61
  thumbAnimatedStyle
24
62
  } = useThemedSwitch(onPress, enabled, size, onPressDelayConfig, customEnableAnimation, customDisableAnimation, customColors);
25
- return /*#__PURE__*/_jsx(AnimatedThemedPressable, {
26
- onPress: toggleSwitch,
27
- style: style,
28
- animatedStyle: trackAnimatedStyle,
29
- role: 'switch',
30
- ...props,
31
- children: /*#__PURE__*/_jsx(AnimatedThemedView, {
63
+ let t2;
64
+ if ($[11] !== size || $[12] !== thumbAnimatedStyle || $[13] !== thumbProps) {
65
+ t2 = /*#__PURE__*/_jsx(AnimatedThemedView, {
32
66
  width: size,
33
67
  aspectRatio: 1,
34
68
  animatedStyle: thumbAnimatedStyle,
35
69
  ...thumbProps
36
- })
37
- });
70
+ });
71
+ $[11] = size;
72
+ $[12] = thumbAnimatedStyle;
73
+ $[13] = thumbProps;
74
+ $[14] = t2;
75
+ } else {
76
+ t2 = $[14];
77
+ }
78
+ let t3;
79
+ if ($[15] !== props || $[16] !== style || $[17] !== t2 || $[18] !== toggleSwitch || $[19] !== trackAnimatedStyle) {
80
+ t3 = /*#__PURE__*/_jsx(AnimatedThemedPressable, {
81
+ onPress: toggleSwitch,
82
+ style: style,
83
+ animatedStyle: trackAnimatedStyle,
84
+ role: "switch",
85
+ ...props,
86
+ children: t2
87
+ });
88
+ $[15] = props;
89
+ $[16] = style;
90
+ $[17] = t2;
91
+ $[18] = toggleSwitch;
92
+ $[19] = trackAnimatedStyle;
93
+ $[20] = t3;
94
+ } else {
95
+ t3 = $[20];
96
+ }
97
+ return t3;
38
98
  };
39
99
  export default ThemedSwitch;
40
100
  //# sourceMappingURL=ThemedSwitch.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useThemedSwitch","SwitchSize","AnimatedThemedPressable","AnimatedThemedView","jsx","_jsx","ThemedSwitch","onPress","enabled","size","M","onPressDelayConfig","customEnableAnimation","customDisableAnimation","customColors","thumbProps","style","props","toggleSwitch","trackAnimatedStyle","thumbAnimatedStyle","animatedStyle","role","children","width","aspectRatio"],"sourceRoot":"../../../../src","sources":["components/switch/ThemedSwitch.tsx"],"mappings":";;AACA,SAASA,eAAe,QAAQ,uBAAoB;AAEpD,SAASC,UAAU,QAAQ,4BAAyB;AACpD,OAAOC,uBAAuB,MAAM,sCAAmC;AACvE,OAAOC,kBAAkB,MAAM,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAMC,YAAmC,GAAGA,CAAC;EAC3CC,OAAO;EACPC,OAAO;EACPC,IAAI,GAAGR,UAAU,CAACS,CAAC;EACnBC,kBAAkB;EAClBC,qBAAqB;EACrBC,sBAAsB;EACtBC,YAAY;EACZC,UAAU;EACVC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,YAAY;IAAEC,kBAAkB;IAAEC;EAAmB,CAAC,GAC5DpB,eAAe,CACbO,OAAO,EACPC,OAAO,EACPC,IAAI,EACJE,kBAAkB,EAClBC,qBAAqB,EACrBC,sBAAsB,EACtBC,YACF,CAAC;EAEH,oBACET,IAAA,CAACH,uBAAuB;IACtBK,OAAO,EAAEW,YAAa;IACtBF,KAAK,EAAEA,KAAM;IACbK,aAAa,EAAEF,kBAAmB;IAClCG,IAAI,EAAE,QAAS;IAAA,GACXL,KAAK;IAAAM,QAAA,eAETlB,IAAA,CAACF,kBAAkB;MACjBqB,KAAK,EAAEf,IAAK;MACZgB,WAAW,EAAE,CAAE;MACfJ,aAAa,EAAED,kBAAmB;MAAA,GAC9BL;IAAU,CACf;EAAC,CACqB,CAAC;AAE9B,CAAC;AAED,eAAeT,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["useThemedSwitch","SwitchSize","AnimatedThemedPressable","AnimatedThemedView","jsx","_jsx","ThemedSwitch","t0","$","_c","customColors","customDisableAnimation","customEnableAnimation","enabled","onPress","onPressDelayConfig","props","style","t1","thumbProps","size","undefined","M","toggleSwitch","trackAnimatedStyle","thumbAnimatedStyle","t2","aspectRatio","t3","role","children"],"sourceRoot":"../../../../src","sources":["components/switch/ThemedSwitch.tsx"],"mappings":";;;AACA,SAASA,eAAe,QAAQ,uBAAoB;AAEpD,SAASC,UAAU,QAAQ,4BAAyB;AACpD,OAAOC,uBAAuB,MAAM,sCAAmC;AACvE,OAAOC,kBAAkB,MAAM,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAMC,YAAmC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,sBAAA;EAAA,IAAAC,qBAAA;EAAA,IAAAC,OAAA;EAAA,IAAAC,OAAA;EAAA,IAAAC,kBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,UAAA;EAAA,IAAAX,CAAA,QAAAD,EAAA;IAAC;MAAAO,OAAA;MAAAD,OAAA;MAAAO,IAAA,EAAAF,EAAA;MAAAH,kBAAA;MAAAH,qBAAA;MAAAD,sBAAA;MAAAD,YAAA;MAAAS,UAAA;MAAAF,KAAA;MAAA,GAAAD;IAAA,IAAAT,EAW5C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,YAAA;IAAAF,CAAA,MAAAG,sBAAA;IAAAH,CAAA,MAAAI,qBAAA;IAAAJ,CAAA,MAAAK,OAAA;IAAAL,CAAA,MAAAM,OAAA;IAAAN,CAAA,MAAAO,kBAAA;IAAAP,CAAA,MAAAQ,KAAA;IAAAR,CAAA,MAAAS,KAAA;IAAAT,CAAA,MAAAU,EAAA;IAAAV,CAAA,OAAAW,UAAA;EAAA;IAAAT,YAAA,GAAAF,CAAA;IAAAG,sBAAA,GAAAH,CAAA;IAAAI,qBAAA,GAAAJ,CAAA;IAAAK,OAAA,GAAAL,CAAA;IAAAM,OAAA,GAAAN,CAAA;IAAAO,kBAAA,GAAAP,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OAAAkB,EAAA;IAAAlB,CAAA,OAAAe,YAAA;IAAAf,CAAA,OAAAgB,kBAAA;IAAAhB,CAAA,OAAAoB,EAAA;EAAA;IAAAA,EAAA,GAAApB,CAAA;EAAA;EAAA,OAb1BoB,EAa0B;AAAA,CAE7B;AAED,eAAetB,YAAY","ignoreList":[]}
@@ -1,49 +1,138 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import ThemedIcon from "../icon/ThemedIcon.js";
4
5
  import ThemedView from "../view/ThemedView.js";
5
6
  import ThemedText from "./ThemedText.js";
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const ThemedIconText = ({
8
- flip = false,
9
- iconName,
10
- iconSize,
11
- iconColor,
12
- iconStyle,
13
- iconProps,
14
- text,
15
- textVariant,
16
- textFontSize,
17
- textFontWeight,
18
- textColor,
19
- textStyle,
20
- textProps,
21
- ...props
22
- }) => {
23
- const themedText = /*#__PURE__*/_jsx(ThemedText, {
24
- numberOfLines: 1,
25
- variant: textVariant,
26
- fontSize: textFontSize,
27
- fontWeight: textFontWeight,
28
- color: textColor,
29
- style: textStyle,
30
- ...textProps,
31
- children: text
32
- });
33
- return /*#__PURE__*/_jsxs(ThemedView, {
34
- flexDirection: 'row',
35
- alignItems: 'center',
36
- gap: 's',
37
- backgroundColor: 'transparent',
38
- ...props,
39
- children: [flip && themedText, /*#__PURE__*/_jsx(ThemedIcon, {
8
+ const ThemedIconText = t0 => {
9
+ const $ = _c(34);
10
+ let iconColor;
11
+ let iconName;
12
+ let iconProps;
13
+ let iconSize;
14
+ let iconStyle;
15
+ let props;
16
+ let t1;
17
+ let text;
18
+ let textColor;
19
+ let textFontSize;
20
+ let textFontWeight;
21
+ let textProps;
22
+ let textStyle;
23
+ let textVariant;
24
+ if ($[0] !== t0) {
25
+ ({
26
+ flip: t1,
27
+ iconName,
28
+ iconSize,
29
+ iconColor,
30
+ iconStyle,
31
+ iconProps,
32
+ text,
33
+ textVariant,
34
+ textFontSize,
35
+ textFontWeight,
36
+ textColor,
37
+ textStyle,
38
+ textProps,
39
+ ...props
40
+ } = t0);
41
+ $[0] = t0;
42
+ $[1] = iconColor;
43
+ $[2] = iconName;
44
+ $[3] = iconProps;
45
+ $[4] = iconSize;
46
+ $[5] = iconStyle;
47
+ $[6] = props;
48
+ $[7] = t1;
49
+ $[8] = text;
50
+ $[9] = textColor;
51
+ $[10] = textFontSize;
52
+ $[11] = textFontWeight;
53
+ $[12] = textProps;
54
+ $[13] = textStyle;
55
+ $[14] = textVariant;
56
+ } else {
57
+ iconColor = $[1];
58
+ iconName = $[2];
59
+ iconProps = $[3];
60
+ iconSize = $[4];
61
+ iconStyle = $[5];
62
+ props = $[6];
63
+ t1 = $[7];
64
+ text = $[8];
65
+ textColor = $[9];
66
+ textFontSize = $[10];
67
+ textFontWeight = $[11];
68
+ textProps = $[12];
69
+ textStyle = $[13];
70
+ textVariant = $[14];
71
+ }
72
+ const flip = t1 === undefined ? false : t1;
73
+ let t2;
74
+ if ($[15] !== text || $[16] !== textColor || $[17] !== textFontSize || $[18] !== textFontWeight || $[19] !== textProps || $[20] !== textStyle || $[21] !== textVariant) {
75
+ t2 = /*#__PURE__*/_jsx(ThemedText, {
76
+ numberOfLines: 1,
77
+ variant: textVariant,
78
+ fontSize: textFontSize,
79
+ fontWeight: textFontWeight,
80
+ color: textColor,
81
+ style: textStyle,
82
+ ...textProps,
83
+ children: text
84
+ });
85
+ $[15] = text;
86
+ $[16] = textColor;
87
+ $[17] = textFontSize;
88
+ $[18] = textFontWeight;
89
+ $[19] = textProps;
90
+ $[20] = textStyle;
91
+ $[21] = textVariant;
92
+ $[22] = t2;
93
+ } else {
94
+ t2 = $[22];
95
+ }
96
+ const themedText = t2;
97
+ const t3 = flip && themedText;
98
+ let t4;
99
+ if ($[23] !== iconColor || $[24] !== iconName || $[25] !== iconProps || $[26] !== iconSize || $[27] !== iconStyle) {
100
+ t4 = /*#__PURE__*/_jsx(ThemedIcon, {
40
101
  name: iconName,
41
102
  size: iconSize,
42
103
  color: iconColor,
43
104
  style: iconStyle,
44
105
  ...iconProps
45
- }), !flip && themedText]
46
- });
106
+ });
107
+ $[23] = iconColor;
108
+ $[24] = iconName;
109
+ $[25] = iconProps;
110
+ $[26] = iconSize;
111
+ $[27] = iconStyle;
112
+ $[28] = t4;
113
+ } else {
114
+ t4 = $[28];
115
+ }
116
+ const t5 = !flip && themedText;
117
+ let t6;
118
+ if ($[29] !== props || $[30] !== t3 || $[31] !== t4 || $[32] !== t5) {
119
+ t6 = /*#__PURE__*/_jsxs(ThemedView, {
120
+ flexDirection: "row",
121
+ alignItems: "center",
122
+ gap: "s",
123
+ backgroundColor: "transparent",
124
+ ...props,
125
+ children: [t3, t4, t5]
126
+ });
127
+ $[29] = props;
128
+ $[30] = t3;
129
+ $[31] = t4;
130
+ $[32] = t5;
131
+ $[33] = t6;
132
+ } else {
133
+ t6 = $[33];
134
+ }
135
+ return t6;
47
136
  };
48
137
  export default ThemedIconText;
49
138
  //# sourceMappingURL=ThemedIconText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","flip","iconName","iconSize","iconColor","iconStyle","iconProps","text","textVariant","textFontSize","textFontWeight","textColor","textStyle","textProps","props","themedText","numberOfLines","variant","fontSize","fontWeight","color","style","children","flexDirection","alignItems","gap","backgroundColor","name","size"],"sourceRoot":"../../../../src","sources":["components/text/ThemedIconText.tsx"],"mappings":";;AAEA,OAAOA,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtC,MAAMC,cAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,KAAK;EACZC,QAAQ;EACRC,QAAQ;EACRC,SAAS;EACTC,SAAS;EACTC,SAAS;EACTC,IAAI;EACJC,WAAW;EACXC,YAAY;EACZC,cAAc;EACdC,SAAS;EACTC,SAAS;EACTC,SAAS;EACT,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,gBACdlB,IAAA,CAACF,UAAU;IACTqB,aAAa,EAAE,CAAE;IACjBC,OAAO,EAAET,WAAY;IACrBU,QAAQ,EAAET,YAAa;IACvBU,UAAU,EAAET,cAAe;IAC3BU,KAAK,EAAET,SAAU;IACjBU,KAAK,EAAET,SAAU;IAAA,GACbC,SAAS;IAAAS,QAAA,EAEZf;EAAI,CACK,CACb;EAED,oBACER,KAAA,CAACL,UAAU;IACT6B,aAAa,EAAE,KAAM;IACrBC,UAAU,EAAE,QAAS;IACrBC,GAAG,EAAE,GAAI;IACTC,eAAe,EAAE,aAAc;IAAA,GAC3BZ,KAAK;IAAAQ,QAAA,GAERrB,IAAI,IAAIc,UAAU,eACnBlB,IAAA,CAACJ,UAAU;MACTkC,IAAI,EAAEzB,QAAS;MACf0B,IAAI,EAAEzB,QAAS;MACfiB,KAAK,EAAEhB,SAAU;MACjBiB,KAAK,EAAEhB,SAAU;MAAA,GACbC;IAAS,CACd,CAAC,EACD,CAACL,IAAI,IAAIc,UAAU;EAAA,CACV,CAAC;AAEjB,CAAC;AAED,eAAef,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","text","textColor","textFontSize","textFontWeight","textProps","textStyle","textVariant","flip","undefined","t2","numberOfLines","children","themedText","t3","t4","t5","t6","flexDirection","alignItems","gap","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/text/ThemedIconText.tsx"],"mappings":";;;AAEA,OAAOA,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAA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5B,IAAA,CAACJ,UAAU;MACHY,IAAQ,EAARA,QAAQ;MACRE,IAAQ,EAARA,QAAQ;MACPH,KAAS,EAATA,SAAS;MACTI,KAAS,EAATA,SAAS;MAAA,GACZF;IAAS,CACd,CAAC;IAAAJ,CAAA,OAAAE,SAAA;IAAAF,CAAA,OAAAG,QAAA;IAAAH,CAAA,OAAAI,SAAA;IAAAJ,CAAA,OAAAK,QAAA;IAAAL,CAAA,OAAAM,SAAA;IAAAN,CAAA,OAAAuB,EAAA;EAAA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EACD,MAAAwB,EAAA,IAACR,IAAkB,IAAnBK,UAAmB;EAAA,IAAAI,EAAA;EAAA,IAAAzB,CAAA,SAAAO,KAAA,IAAAP,CAAA,SAAAsB,EAAA,IAAAtB,CAAA,SAAAuB,EAAA,IAAAvB,CAAA,SAAAwB,EAAA;IAftBC,EAAA,gBAAA5B,KAAA,CAACL,UAAU;MACMkC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACfC,GAAG,EAAH,GAAG;MACSC,eAAa,EAAb,aAAa;MAAA,GAC1BtB,KAAK;MAAAa,QAAA,GAERE,EAAkB,EACnBC,EAME,EACDC,EAAmB;IAAA,CACV,CAAC;IAAAxB,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAsB,EAAA;IAAAtB,CAAA,OAAAuB,EAAA;IAAAvB,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAyB,EAAA;EAAA;IAAAA,EAAA,GAAAzB,CAAA;EAAA;EAAA,OAhBbyB,EAgBa;AAAA,CAEhB;AAED,eAAe3B,cAAc","ignoreList":[]}
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import Text from "./Text.js";
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
- const ThemedText = props => /*#__PURE__*/_jsx(Text, {
6
- ...props
7
- });
6
+ const ThemedText = props => {
7
+ const $ = _c(2);
8
+ let t0;
9
+ if ($[0] !== props) {
10
+ t0 = /*#__PURE__*/_jsx(Text, {
11
+ ...props
12
+ });
13
+ $[0] = props;
14
+ $[1] = t0;
15
+ } else {
16
+ t0 = $[1];
17
+ }
18
+ return t0;
19
+ };
8
20
  export default ThemedText;
9
21
  //# sourceMappingURL=ThemedText.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Text","jsx","_jsx","ThemedText","props"],"sourceRoot":"../../../../src","sources":["components/text/ThemedText.tsx"],"mappings":";;AAEA,OAAOA,IAAI,MAAM,WAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1B,MAAMC,UAA+B,GAAIC,KAAK,iBAAKF,IAAA,CAACF,IAAI;EAAA,GAAKI;AAAK,CAAG,CAAC;AAEtE,eAAeD,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["Text","jsx","_jsx","ThemedText","props","$","_c","t0"],"sourceRoot":"../../../../src","sources":["components/text/ThemedText.tsx"],"mappings":";;;AAEA,OAAOA,IAAI,MAAM,WAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1B,MAAMC,UAA+B,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAF,CAAA,QAAAD,KAAA;IAAWG,EAAA,gBAAAL,IAAA,CAACF,IAAI;MAAA,GAAKI;IAAK,CAAG,CAAC;IAAAC,CAAA,MAAAD,KAAA;IAAAC,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OAAnBE,EAAmB;AAAA;AAEtE,eAAeJ,UAAU","ignoreList":[]}
@@ -1,19 +1,50 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { useAnimatedThemedView } from "../../hooks/view.js";
4
5
  import AnimatedView from "./AnimatedView.js";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
- const AnimatedThemedView = ({
7
- backgroundColor = 'background',
8
- ...props
9
- }) => {
10
- const animatedThemedViewProps = useAnimatedThemedView({
11
- backgroundColor,
12
- ...props
13
- });
14
- return /*#__PURE__*/_jsx(AnimatedView, {
15
- ...animatedThemedViewProps
16
- });
7
+ const AnimatedThemedView = t0 => {
8
+ const $ = _c(8);
9
+ let props;
10
+ let t1;
11
+ if ($[0] !== t0) {
12
+ ({
13
+ backgroundColor: t1,
14
+ ...props
15
+ } = t0);
16
+ $[0] = t0;
17
+ $[1] = props;
18
+ $[2] = t1;
19
+ } else {
20
+ props = $[1];
21
+ t1 = $[2];
22
+ }
23
+ const backgroundColor = t1 === undefined ? "background" : t1;
24
+ let t2;
25
+ if ($[3] !== backgroundColor || $[4] !== props) {
26
+ t2 = {
27
+ backgroundColor,
28
+ ...props
29
+ };
30
+ $[3] = backgroundColor;
31
+ $[4] = props;
32
+ $[5] = t2;
33
+ } else {
34
+ t2 = $[5];
35
+ }
36
+ const animatedThemedViewProps = useAnimatedThemedView(t2);
37
+ let t3;
38
+ if ($[6] !== animatedThemedViewProps) {
39
+ t3 = /*#__PURE__*/_jsx(AnimatedView, {
40
+ ...animatedThemedViewProps
41
+ });
42
+ $[6] = animatedThemedViewProps;
43
+ $[7] = t3;
44
+ } else {
45
+ t3 = $[7];
46
+ }
47
+ return t3;
17
48
  };
18
49
  export default AnimatedThemedView;
19
50
  //# sourceMappingURL=AnimatedThemedView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useAnimatedThemedView","AnimatedView","jsx","_jsx","AnimatedThemedView","backgroundColor","props","animatedThemedViewProps"],"sourceRoot":"../../../../src","sources":["components/view/AnimatedThemedView.tsx"],"mappings":";;AACA,SAASA,qBAAqB,QAAQ,qBAAkB;AAExD,OAAOC,YAAY,MAAM,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,kBAA+C,GAAGA,CAAC;EACvDC,eAAe,GAAG,YAAY;EAC9B,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,uBAAuB,GAAGP,qBAAqB,CAAC;IACpDK,eAAe;IACf,GAAGC;EACL,CAAC,CAAC;EAEF,oBAAOH,IAAA,CAACF,YAAY;IAAA,GAAKM;EAAuB,CAAG,CAAC;AACtD,CAAC;AAED,eAAeH,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["useAnimatedThemedView","AnimatedView","jsx","_jsx","AnimatedThemedView","t0","$","_c","props","t1","backgroundColor","undefined","t2","animatedThemedViewProps","t3"],"sourceRoot":"../../../../src","sources":["components/view/AnimatedThemedView.tsx"],"mappings":";;;AACA,SAASA,qBAAqB,QAAQ,qBAAkB;AAExD,OAAOC,YAAY,MAAM,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,kBAA+C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAH,CAAA,QAAAD,EAAA;IAAC;MAAAK,eAAA,EAAAD,EAAA;MAAA,GAAAD;IAAA,IAAAH,EAGxD;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAD,KAAA,GAAAF,CAAA;IAAAG,EAAA,GAAAH,CAAA;EAAA;EAFC,MAAAI,eAAA,GAAAD,EAA8B,KAA9BE,SAA8B,GAA9B,YAA8B,GAA9BF,EAA8B;EAAA,IAAAG,EAAA;EAAA,IAAAN,CAAA,QAAAI,eAAA,IAAAJ,CAAA,QAAAE,KAAA;IAGwBI,EAAA;MAAAF,eAAA;MAAA,GAEjDF;IACL,CAAC;IAAAF,CAAA,MAAAI,eAAA;IAAAJ,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAHD,MAAAO,uBAAA,GAAgCb,qBAAqB,CAACY,EAGrD,CAAC;EAAC,IAAAE,EAAA;EAAA,IAAAR,CAAA,QAAAO,uBAAA;IAEIC,EAAA,gBAAAX,IAAA,CAACF,YAAY;MAAA,GAAKY;IAAuB,CAAG,CAAC;IAAAP,CAAA,MAAAO,uBAAA;IAAAP,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,OAA7CQ,EAA6C;AAAA,CACrD;AAED,eAAeV,kBAAkB","ignoreList":[]}