@retray-dev/ui-kit 7.0.1 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/COMPONENTS.md +567 -14
  2. package/EXAMPLES.md +21 -14
  3. package/README.md +14 -8
  4. package/dist/Accordion.js +57 -5
  5. package/dist/Accordion.mjs +4 -3
  6. package/dist/AlertBanner.js +4 -1
  7. package/dist/AlertBanner.mjs +3 -2
  8. package/dist/AppHeader.d.mts +40 -0
  9. package/dist/AppHeader.d.ts +40 -0
  10. package/dist/AppHeader.js +515 -0
  11. package/dist/AppHeader.mjs +10 -0
  12. package/dist/Avatar.js +39 -29
  13. package/dist/Avatar.mjs +2 -1
  14. package/dist/Badge.js +11 -1
  15. package/dist/Badge.mjs +2 -1
  16. package/dist/Button.d.mts +8 -3
  17. package/dist/Button.d.ts +8 -3
  18. package/dist/Button.js +126 -108
  19. package/dist/Button.mjs +6 -5
  20. package/dist/ButtonGroup.mjs +1 -0
  21. package/dist/Card.js +90 -70
  22. package/dist/Card.mjs +5 -4
  23. package/dist/CategoryStrip.js +79 -22
  24. package/dist/CategoryStrip.mjs +6 -6
  25. package/dist/Checkbox.js +118 -86
  26. package/dist/Checkbox.mjs +5 -5
  27. package/dist/Chip.js +113 -80
  28. package/dist/Chip.mjs +5 -5
  29. package/dist/ConfirmDialog.js +140 -110
  30. package/dist/ConfirmDialog.mjs +7 -6
  31. package/dist/CurrencyDisplay.mjs +1 -0
  32. package/dist/CurrencyInput.d.mts +1 -1
  33. package/dist/CurrencyInput.d.ts +1 -1
  34. package/dist/CurrencyInput.js +9 -5
  35. package/dist/CurrencyInput.mjs +5 -4
  36. package/dist/DetailRow.mjs +1 -0
  37. package/dist/EmptyState.js +131 -111
  38. package/dist/EmptyState.mjs +7 -6
  39. package/dist/ErrorBoundary.d.mts +42 -0
  40. package/dist/ErrorBoundary.d.ts +42 -0
  41. package/dist/ErrorBoundary.js +351 -0
  42. package/dist/ErrorBoundary.mjs +7 -0
  43. package/dist/Form.mjs +1 -0
  44. package/dist/HolographicCard.d.mts +55 -0
  45. package/dist/HolographicCard.d.ts +55 -0
  46. package/dist/HolographicCard.js +316 -0
  47. package/dist/HolographicCard.mjs +191 -0
  48. package/dist/IconButton.d.mts +8 -3
  49. package/dist/IconButton.d.ts +8 -3
  50. package/dist/IconButton.js +115 -98
  51. package/dist/IconButton.mjs +5 -4
  52. package/dist/ImageViewer.d.mts +23 -0
  53. package/dist/ImageViewer.d.ts +23 -0
  54. package/dist/ImageViewer.js +582 -0
  55. package/dist/ImageViewer.mjs +8 -0
  56. package/dist/Input.mjs +4 -3
  57. package/dist/LabelValue.mjs +1 -0
  58. package/dist/ListGroup.mjs +1 -0
  59. package/dist/ListItem.js +131 -117
  60. package/dist/ListItem.mjs +6 -5
  61. package/dist/MediaCard.js +54 -6
  62. package/dist/MediaCard.mjs +6 -5
  63. package/dist/MenuGroup.mjs +1 -0
  64. package/dist/MenuItem.js +91 -79
  65. package/dist/MenuItem.mjs +6 -5
  66. package/dist/MonthPicker.d.mts +10 -2
  67. package/dist/MonthPicker.d.ts +10 -2
  68. package/dist/MonthPicker.js +80 -17
  69. package/dist/MonthPicker.mjs +3 -2
  70. package/dist/PagerDots.d.mts +35 -0
  71. package/dist/PagerDots.d.ts +35 -0
  72. package/dist/PagerDots.js +392 -0
  73. package/dist/PagerDots.mjs +7 -0
  74. package/dist/Pressable.d.mts +5 -5
  75. package/dist/Pressable.d.ts +5 -5
  76. package/dist/Pressable.js +97 -86
  77. package/dist/Pressable.mjs +5 -4
  78. package/dist/PricingCard.d.mts +50 -0
  79. package/dist/PricingCard.d.ts +50 -0
  80. package/dist/PricingCard.js +636 -0
  81. package/dist/PricingCard.mjs +11 -0
  82. package/dist/Progress.mjs +3 -2
  83. package/dist/RadioGroup.js +81 -30
  84. package/dist/RadioGroup.mjs +5 -5
  85. package/dist/RetrayProvider.d.mts +2 -0
  86. package/dist/RetrayProvider.d.ts +2 -0
  87. package/dist/RetrayProvider.js +214 -0
  88. package/dist/RetrayProvider.mjs +5 -0
  89. package/dist/Select.js +51 -4
  90. package/dist/Select.mjs +5 -4
  91. package/dist/SelectableGrid.d.mts +44 -0
  92. package/dist/SelectableGrid.d.ts +44 -0
  93. package/dist/SelectableGrid.js +448 -0
  94. package/dist/SelectableGrid.mjs +9 -0
  95. package/dist/Separator.mjs +1 -0
  96. package/dist/Sheet.d.mts +13 -1
  97. package/dist/Sheet.d.ts +13 -1
  98. package/dist/Sheet.js +115 -5
  99. package/dist/Sheet.mjs +4 -2
  100. package/dist/Skeleton.d.mts +50 -0
  101. package/dist/Skeleton.d.ts +50 -0
  102. package/dist/Skeleton.js +61 -0
  103. package/dist/Skeleton.mjs +4 -2
  104. package/dist/Slider.js +51 -4
  105. package/dist/Slider.mjs +3 -2
  106. package/dist/Spinner.js +28 -7
  107. package/dist/Spinner.mjs +2 -1
  108. package/dist/Switch.js +98 -48
  109. package/dist/Switch.mjs +4 -3
  110. package/dist/TabBar.d.mts +42 -0
  111. package/dist/TabBar.d.ts +42 -0
  112. package/dist/TabBar.js +361 -0
  113. package/dist/TabBar.mjs +6 -0
  114. package/dist/Tabs.js +92 -62
  115. package/dist/Tabs.mjs +5 -4
  116. package/dist/Text.js +16 -0
  117. package/dist/Text.mjs +2 -1
  118. package/dist/Textarea.mjs +4 -3
  119. package/dist/Toast.d.mts +7 -7
  120. package/dist/Toast.d.ts +7 -7
  121. package/dist/Toast.mjs +1 -0
  122. package/dist/Toggle.d.mts +6 -3
  123. package/dist/Toggle.d.ts +6 -3
  124. package/dist/Toggle.js +135 -120
  125. package/dist/Toggle.mjs +5 -5
  126. package/dist/VirtualList.mjs +1 -0
  127. package/dist/{chunk-7H2OR44A.mjs → chunk-26BCI223.mjs} +1 -1
  128. package/dist/{chunk-CRYBX2CM.mjs → chunk-2TFTAWVJ.mjs} +44 -59
  129. package/dist/chunk-3DKJ2GIC.mjs +30 -0
  130. package/dist/{chunk-KWCPOM6W.mjs → chunk-3U4SSNWP.mjs} +32 -48
  131. package/dist/chunk-4I7D47FH.mjs +139 -0
  132. package/dist/chunk-4K625MVM.mjs +142 -0
  133. package/dist/{chunk-MN7OG7IY.mjs → chunk-6OAZJ577.mjs} +6 -4
  134. package/dist/{chunk-L7E7TVEZ.mjs → chunk-756RAKE4.mjs} +2 -2
  135. package/dist/{chunk-HSPSMN6U.mjs → chunk-7QHVVCB3.mjs} +2 -2
  136. package/dist/{chunk-URLL5JBR.mjs → chunk-A3A6KNQN.mjs} +3 -3
  137. package/dist/chunk-AJ7ZDNBT.mjs +120 -0
  138. package/dist/{chunk-FTLJOUOQ.mjs → chunk-AV4EMIRH.mjs} +25 -28
  139. package/dist/chunk-AZJF2BLK.mjs +115 -0
  140. package/dist/chunk-BNP626TY.mjs +159 -0
  141. package/dist/{chunk-5IKW3VNC.mjs → chunk-DVK4G2GT.mjs} +17 -1
  142. package/dist/{chunk-6LQYY7HC.mjs → chunk-EH745HE5.mjs} +2 -2
  143. package/dist/chunk-EJ7ZPXOH.mjs +163 -0
  144. package/dist/{chunk-RKLHUDZS.mjs → chunk-GD6KXMG5.mjs} +29 -15
  145. package/dist/{chunk-RR2VQLKE.mjs → chunk-GQYFLP3D.mjs} +14 -17
  146. package/dist/{chunk-Y6MXOREN.mjs → chunk-ID72TK46.mjs} +8 -17
  147. package/dist/{chunk-NQGVLMWG.mjs → chunk-JMOZEC77.mjs} +1 -1
  148. package/dist/{chunk-GCWOGZYL.mjs → chunk-JT7HKXRB.mjs} +39 -29
  149. package/dist/{chunk-LWG526VX.mjs → chunk-KIHCWCWL.mjs} +47 -62
  150. package/dist/chunk-LXJIIOYQ.mjs +104 -0
  151. package/dist/{chunk-SBZYEV4S.mjs → chunk-M6ZXVBTK.mjs} +5 -2
  152. package/dist/{chunk-XDMN67KV.mjs → chunk-MAC465BB.mjs} +10 -8
  153. package/dist/chunk-MBMXYJJV.mjs +36 -0
  154. package/dist/chunk-MLF3EZFW.mjs +119 -0
  155. package/dist/chunk-NA7PARID.mjs +147 -0
  156. package/dist/{chunk-QXGYKWI7.mjs → chunk-O3HA6TYM.mjs} +9 -4
  157. package/dist/{chunk-63357L2X.mjs → chunk-OB4JUQ3O.mjs} +1 -1
  158. package/dist/{chunk-AU2VDY4P.mjs → chunk-PFZTM6D5.mjs} +52 -4
  159. package/dist/chunk-QKH5ZOD5.mjs +97 -0
  160. package/dist/{chunk-KZJRQOIU.mjs → chunk-TERDKCLE.mjs} +11 -1
  161. package/dist/{chunk-U4N7WF4Z.mjs → chunk-UREA2GYY.mjs} +28 -23
  162. package/dist/{chunk-TAJ2PQ2O.mjs → chunk-VGTDN7SW.mjs} +7 -6
  163. package/dist/{chunk-URDE3EUU.mjs → chunk-VQ57HWPL.mjs} +27 -15
  164. package/dist/chunk-WBOOUHSS.mjs +62 -0
  165. package/dist/{chunk-GNGLDL6Z.mjs → chunk-WJLKJMKR.mjs} +18 -0
  166. package/dist/{chunk-YZJAFS4P.mjs → chunk-X4G6APW6.mjs} +22 -19
  167. package/dist/chunk-Y6FXYEAI.mjs +8 -0
  168. package/dist/chunk-YFZ3ELX5.mjs +16 -0
  169. package/dist/{chunk-QCNARS3X.mjs → chunk-YNROWHQJ.mjs} +1 -1
  170. package/dist/chunk-Z4BVUWW6.mjs +196 -0
  171. package/dist/{chunk-GPOUINK5.mjs → chunk-ZJKGQMYH.mjs} +10 -27
  172. package/dist/index-wt-orHUi.d.mts +85 -0
  173. package/dist/index-wt-orHUi.d.ts +85 -0
  174. package/dist/index.d.mts +59 -51
  175. package/dist/index.d.ts +59 -51
  176. package/dist/index.js +1940 -744
  177. package/dist/index.mjs +49 -39
  178. package/package.json +35 -5
  179. package/src/components/Accordion/Accordion.tsx +12 -1
  180. package/src/components/AlertBanner/AlertBanner.tsx +5 -0
  181. package/src/components/AppHeader/AppHeader.tsx +172 -0
  182. package/src/components/AppHeader/index.ts +1 -0
  183. package/src/components/Avatar/Avatar.tsx +10 -2
  184. package/src/components/Badge/Badge.tsx +8 -1
  185. package/src/components/Button/Button.tsx +20 -27
  186. package/src/components/Card/Card.tsx +12 -23
  187. package/src/components/CategoryStrip/CategoryStrip.tsx +17 -21
  188. package/src/components/Checkbox/Checkbox.tsx +26 -40
  189. package/src/components/Chip/Chip.tsx +24 -33
  190. package/src/components/CurrencyInput/CurrencyInput.tsx +10 -8
  191. package/src/components/EmptyState/EmptyState.tsx +2 -1
  192. package/src/components/ErrorBoundary/ErrorBoundary.tsx +153 -0
  193. package/src/components/ErrorBoundary/index.ts +1 -0
  194. package/src/components/HolographicCard/HolographicCard.tsx +315 -0
  195. package/src/components/HolographicCard/index.ts +1 -0
  196. package/src/components/IconButton/IconButton.tsx +19 -27
  197. package/src/components/ImageViewer/ImageViewer.tsx +290 -0
  198. package/src/components/ImageViewer/index.ts +1 -0
  199. package/src/components/ListItem/ListItem.tsx +70 -67
  200. package/src/components/MediaCard/MediaCard.tsx +8 -2
  201. package/src/components/MenuItem/MenuItem.tsx +10 -25
  202. package/src/components/MonthPicker/MonthPicker.tsx +39 -13
  203. package/src/components/MonthPicker/index.ts +1 -1
  204. package/src/components/PagerDots/PagerDots.tsx +200 -0
  205. package/src/components/PagerDots/index.ts +1 -0
  206. package/src/components/Pressable/Pressable.tsx +19 -35
  207. package/src/components/PricingCard/PricingCard.tsx +220 -0
  208. package/src/components/PricingCard/index.ts +1 -0
  209. package/src/components/RadioGroup/RadioGroup.tsx +14 -27
  210. package/src/components/RetrayProvider/RetrayProvider.tsx +59 -0
  211. package/src/components/RetrayProvider/index.ts +1 -0
  212. package/src/components/SelectableGrid/SelectableGrid.tsx +205 -0
  213. package/src/components/SelectableGrid/index.ts +1 -0
  214. package/src/components/Sheet/Sheet.tsx +65 -1
  215. package/src/components/Skeleton/Skeleton.tsx +142 -1
  216. package/src/components/Spinner/Spinner.tsx +17 -2
  217. package/src/components/Switch/Switch.tsx +30 -58
  218. package/src/components/TabBar/TabBar.tsx +169 -0
  219. package/src/components/TabBar/index.ts +1 -0
  220. package/src/components/Tabs/Tabs.tsx +23 -26
  221. package/src/components/Text/Text.tsx +2 -0
  222. package/src/components/Toggle/Toggle.tsx +35 -51
  223. package/src/fonts.ts +4 -1
  224. package/src/index.ts +23 -2
  225. package/src/utils/animations.ts +29 -1
  226. package/src/utils/fontGuard.ts +34 -0
  227. package/src/utils/haptics.ts +211 -9
  228. package/src/utils/pressable.ts +66 -0
  229. package/dist/chunk-76PFOSM2.mjs +0 -41
  230. package/dist/chunk-DITNP6PL.mjs +0 -106
  231. package/dist/chunk-JBLL7U3U.mjs +0 -64
  232. package/dist/chunk-LG4DO3DK.mjs +0 -174
  233. package/dist/chunk-RMMK64W5.mjs +0 -54
  234. package/dist/chunk-RTC3CFXF.mjs +0 -29
@@ -0,0 +1,115 @@
1
+ import { IconButton } from './chunk-3U4SSNWP.mjs';
2
+ import { BREAKPOINTS } from './chunk-QY3X2UYR.mjs';
3
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
4
+ import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
5
+ import React from 'react';
6
+ import { StyleSheet, useWindowDimensions, View, Text } from 'react-native';
7
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
8
+
9
+ function AppHeader({
10
+ title,
11
+ subtitle,
12
+ onBack,
13
+ backIconName = "chevron-left",
14
+ left,
15
+ right,
16
+ titleAlign = "auto",
17
+ bordered = true,
18
+ withSafeArea = true,
19
+ backgroundColor,
20
+ style
21
+ }) {
22
+ const { colors } = useTheme();
23
+ const insets = useSafeAreaInsets();
24
+ const { width } = useWindowDimensions();
25
+ const isWide = width >= BREAKPOINTS.wide;
26
+ const centered = titleAlign === "center" || titleAlign === "auto" && isWide;
27
+ const leftNode = left ?? (onBack ? /* @__PURE__ */ React.createElement(
28
+ IconButton,
29
+ {
30
+ iconName: backIconName,
31
+ variant: "text",
32
+ size: "md",
33
+ onPress: onBack,
34
+ accessibilityLabel: "Go back"
35
+ }
36
+ ) : null);
37
+ const titleBlock = /* @__PURE__ */ React.createElement(View, { style: [styles.titleBlock, centered && styles.titleBlockCentered], pointerEvents: "none" }, title ? /* @__PURE__ */ React.createElement(
38
+ Text,
39
+ {
40
+ style: [styles.title, { color: colors.foreground }, centered && styles.textCentered],
41
+ numberOfLines: 1,
42
+ allowFontScaling: true,
43
+ accessibilityRole: "header"
44
+ },
45
+ title
46
+ ) : null, subtitle ? /* @__PURE__ */ React.createElement(
47
+ Text,
48
+ {
49
+ style: [styles.subtitle, { color: colors.foregroundMuted }, centered && styles.textCentered],
50
+ numberOfLines: 1,
51
+ allowFontScaling: true
52
+ },
53
+ subtitle
54
+ ) : null);
55
+ return /* @__PURE__ */ React.createElement(
56
+ View,
57
+ {
58
+ style: [
59
+ styles.container,
60
+ {
61
+ backgroundColor: backgroundColor ?? colors.background,
62
+ paddingTop: withSafeArea ? insets.top : 0,
63
+ borderBottomWidth: bordered ? StyleSheet.hairlineWidth : 0,
64
+ borderBottomColor: colors.border
65
+ },
66
+ style
67
+ ]
68
+ },
69
+ /* @__PURE__ */ React.createElement(View, { style: styles.bar }, centered ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: StyleSheet.absoluteFill }, titleBlock), /* @__PURE__ */ React.createElement(View, { style: styles.side }, leftNode), /* @__PURE__ */ React.createElement(View, { style: [styles.side, styles.sideRight] }, right)) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles.side }, leftNode), titleBlock, /* @__PURE__ */ React.createElement(View, { style: [styles.side, styles.sideRight] }, right)))
70
+ );
71
+ }
72
+ var styles = StyleSheet.create({
73
+ container: {
74
+ width: "100%"
75
+ },
76
+ bar: {
77
+ minHeight: vs(48),
78
+ flexDirection: "row",
79
+ alignItems: "center",
80
+ paddingHorizontal: s(8)
81
+ },
82
+ side: {
83
+ minWidth: s(44),
84
+ flexDirection: "row",
85
+ alignItems: "center",
86
+ justifyContent: "flex-start"
87
+ },
88
+ sideRight: {
89
+ justifyContent: "flex-end"
90
+ },
91
+ titleBlock: {
92
+ flex: 1,
93
+ justifyContent: "center",
94
+ paddingHorizontal: s(8),
95
+ gap: vs(1)
96
+ },
97
+ titleBlockCentered: {
98
+ alignItems: "center"
99
+ },
100
+ title: {
101
+ fontFamily: "Sohne-SemiBold",
102
+ fontSize: ms(18),
103
+ lineHeight: mvs(24)
104
+ },
105
+ subtitle: {
106
+ fontFamily: "Sohne-Regular",
107
+ fontSize: ms(13),
108
+ lineHeight: mvs(16)
109
+ },
110
+ textCentered: {
111
+ textAlign: "center"
112
+ }
113
+ });
114
+
115
+ export { AppHeader };
@@ -0,0 +1,159 @@
1
+ import { PressableRow } from './chunk-3DKJ2GIC.mjs';
2
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
3
+ import { RADIUS } from './chunk-QY3X2UYR.mjs';
4
+ import { renderIcon } from './chunk-T7XZ7H7Y.mjs';
5
+ import { useTheme } from './chunk-SOYNZDVY.mjs';
6
+ import { ms, s, mvs, vs } from './chunk-2CE3TQVY.mjs';
7
+ import React from 'react';
8
+ import { StyleSheet, View, Text } from 'react-native';
9
+ import { Entypo } from '@expo/vector-icons';
10
+
11
+ function ListItemBase({
12
+ leftRender,
13
+ rightRender,
14
+ trailing,
15
+ icon,
16
+ leftIcon,
17
+ rightIcon,
18
+ leftIconColor,
19
+ rightIconColor,
20
+ title,
21
+ subtitle,
22
+ caption,
23
+ variant = "plain",
24
+ showChevron = false,
25
+ showSeparator = false,
26
+ onPress,
27
+ disabled,
28
+ style,
29
+ titleStyle,
30
+ subtitleStyle,
31
+ captionStyle,
32
+ accessibilityLabel
33
+ }) {
34
+ const { colors } = useTheme();
35
+ const handlePress = () => {
36
+ selectionAsync();
37
+ onPress?.();
38
+ };
39
+ const effectiveLeft = leftIcon ? renderIcon(leftIcon, 24, leftIconColor ?? colors.foreground) : leftRender ?? icon;
40
+ const effectiveRight = rightIcon ? renderIcon(rightIcon, 24, rightIconColor ?? colors.foregroundMuted) : rightRender ?? trailing;
41
+ const cardStyle = variant === "card" ? {
42
+ backgroundColor: colors.card,
43
+ borderRadius: RADIUS.md,
44
+ borderWidth: 1,
45
+ borderColor: colors.border,
46
+ shadowColor: "#000",
47
+ shadowOffset: { width: 0, height: 2 },
48
+ shadowOpacity: 0.06,
49
+ shadowRadius: 6,
50
+ elevation: 2
51
+ } : {};
52
+ const a11yLabel = accessibilityLabel ?? [title, subtitle, caption].filter(Boolean).join(". ");
53
+ const content = /* @__PURE__ */ React.createElement(React.Fragment, null, effectiveLeft ? /* @__PURE__ */ React.createElement(View, { style: styles.leftContainer }, effectiveLeft) : null, /* @__PURE__ */ React.createElement(View, { style: styles.content }, /* @__PURE__ */ React.createElement(
54
+ Text,
55
+ {
56
+ style: [styles.title, { color: colors.foreground }, titleStyle],
57
+ numberOfLines: 2,
58
+ allowFontScaling: true
59
+ },
60
+ title
61
+ ), subtitle ? /* @__PURE__ */ React.createElement(
62
+ Text,
63
+ {
64
+ style: [styles.subtitle, { color: colors.foregroundMuted }, subtitleStyle],
65
+ numberOfLines: 2,
66
+ allowFontScaling: true
67
+ },
68
+ subtitle
69
+ ) : null, caption ? /* @__PURE__ */ React.createElement(
70
+ Text,
71
+ {
72
+ style: [styles.caption, { color: colors.foregroundMuted }, captionStyle],
73
+ numberOfLines: 1,
74
+ allowFontScaling: true
75
+ },
76
+ caption
77
+ ) : null), effectiveRight !== void 0 ? /* @__PURE__ */ React.createElement(View, { style: styles.rightContainer }, typeof effectiveRight === "string" ? /* @__PURE__ */ React.createElement(
78
+ Text,
79
+ {
80
+ style: [styles.rightText, { color: colors.foregroundMuted }],
81
+ allowFontScaling: true
82
+ },
83
+ effectiveRight
84
+ ) : effectiveRight) : showChevron ? /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-with-circle-right", size: 20, color: colors.foregroundMuted }) : null);
85
+ if (onPress) {
86
+ return /* @__PURE__ */ React.createElement(View, { style: disabled && styles.disabled }, /* @__PURE__ */ React.createElement(
87
+ PressableRow,
88
+ {
89
+ style: [styles.container, cardStyle, style],
90
+ onPress: handlePress,
91
+ enabled: !disabled,
92
+ rippleColor: "transparent",
93
+ touchSoundDisabled: true,
94
+ activateOnHover: true,
95
+ accessibilityRole: "button",
96
+ accessibilityLabel: a11yLabel,
97
+ accessibilityState: { disabled: !!disabled }
98
+ },
99
+ content
100
+ ), showSeparator ? /* @__PURE__ */ React.createElement(View, { style: [styles.separator, { backgroundColor: colors.separator }] }) : null);
101
+ }
102
+ return /* @__PURE__ */ React.createElement(View, { style: [disabled && styles.disabled] }, /* @__PURE__ */ React.createElement(View, { style: [styles.container, cardStyle, style] }, content), showSeparator ? /* @__PURE__ */ React.createElement(View, { style: [styles.separator, { backgroundColor: colors.separator }] }) : null);
103
+ }
104
+ var ListItem = React.memo(ListItemBase);
105
+ var styles = StyleSheet.create({
106
+ container: {
107
+ flexDirection: "row",
108
+ alignItems: "center",
109
+ paddingHorizontal: s(16),
110
+ paddingVertical: vs(10),
111
+ gap: s(12)
112
+ },
113
+ leftContainer: {
114
+ width: s(44),
115
+ height: s(44),
116
+ alignItems: "center",
117
+ justifyContent: "center",
118
+ flexShrink: 0
119
+ },
120
+ content: {
121
+ flex: 1,
122
+ gap: vs(4)
123
+ },
124
+ title: {
125
+ fontFamily: "Sohne-Medium",
126
+ fontSize: ms(15),
127
+ lineHeight: mvs(22)
128
+ },
129
+ subtitle: {
130
+ fontFamily: "Sohne-Regular",
131
+ fontSize: ms(13),
132
+ lineHeight: mvs(18)
133
+ },
134
+ caption: {
135
+ fontFamily: "Sohne-Regular",
136
+ fontSize: ms(12),
137
+ lineHeight: mvs(16),
138
+ opacity: 0.7
139
+ },
140
+ rightContainer: {
141
+ alignItems: "flex-end",
142
+ justifyContent: "center",
143
+ flexShrink: 0,
144
+ maxWidth: s(160)
145
+ },
146
+ rightText: {
147
+ fontFamily: "Sohne-Regular",
148
+ fontSize: ms(14)
149
+ },
150
+ separator: {
151
+ height: StyleSheet.hairlineWidth,
152
+ marginRight: 0
153
+ },
154
+ disabled: {
155
+ opacity: 0.45
156
+ }
157
+ });
158
+
159
+ export { ListItem };
@@ -33,6 +33,22 @@ var EASINGS = {
33
33
  /** Quick ease-in for collapsing. */
34
34
  collapse: Easing.in(Easing.ease)
35
35
  };
36
+ var COLOR_TRANSITION = {
37
+ type: "timing",
38
+ duration: TIMINGS.state.duration,
39
+ easing: [0.2, 0, 0, 1]
40
+ };
41
+ var OPACITY_TRANSITION = {
42
+ type: "timing",
43
+ duration: TIMINGS.state.duration,
44
+ easing: [0.2, 0, 0, 1]
45
+ };
46
+ var SPRING_ELASTIC = {
47
+ type: "spring",
48
+ stiffness: 320,
49
+ damping: 22,
50
+ mass: 0.7
51
+ };
36
52
  var PRESS_SCALE = {
37
53
  button: 0.95,
38
54
  card: 0.98,
@@ -40,4 +56,4 @@ var PRESS_SCALE = {
40
56
  chip: 0.94
41
57
  };
42
58
 
43
- export { EASINGS, PRESS_SCALE, SPRINGS, TIMINGS };
59
+ export { COLOR_TRANSITION, EASINGS, OPACITY_TRANSITION, PRESS_SCALE, SPRINGS, SPRING_ELASTIC, TIMINGS };
@@ -1,6 +1,6 @@
1
- import { useColorTransition } from './chunk-7H2OR44A.mjs';
1
+ import { useColorTransition } from './chunk-26BCI223.mjs';
2
+ import { TIMINGS } from './chunk-DVK4G2GT.mjs';
2
3
  import { renderIcon } from './chunk-T7XZ7H7Y.mjs';
3
- import { TIMINGS } from './chunk-5IKW3VNC.mjs';
4
4
  import { useTheme } from './chunk-SOYNZDVY.mjs';
5
5
  import { vs, ms, s } from './chunk-2CE3TQVY.mjs';
6
6
  import React, { useState } from 'react';
@@ -0,0 +1,163 @@
1
+ import { __require } from './chunk-Y6FXYEAI.mjs';
2
+ import { Platform, NativeModules } from 'react-native';
3
+
4
+ var _haptics = null;
5
+ var _hapticsLoaded = false;
6
+ async function getHaptics() {
7
+ if (Platform.OS === "web") return null;
8
+ if (!_hapticsLoaded) {
9
+ _hapticsLoaded = true;
10
+ try {
11
+ _haptics = await import('expo-haptics');
12
+ } catch {
13
+ _haptics = null;
14
+ }
15
+ }
16
+ return _haptics;
17
+ }
18
+ var _pulsar = null;
19
+ var _pulsarChecked = false;
20
+ var _pulsarAvailable = false;
21
+ function isPulsarNativeRegistered() {
22
+ try {
23
+ const g = globalThis;
24
+ if (typeof g.__turboModuleProxy === "function") {
25
+ return g.__turboModuleProxy("RNPulsar") != null;
26
+ }
27
+ return NativeModules?.RNPulsar != null;
28
+ } catch {
29
+ return false;
30
+ }
31
+ }
32
+ function getPulsar() {
33
+ if (Platform.OS === "web") return null;
34
+ if (!_pulsarChecked) {
35
+ _pulsarChecked = true;
36
+ try {
37
+ if (isPulsarNativeRegistered()) {
38
+ _pulsar = __require("react-native-pulsar");
39
+ _pulsarAvailable = true;
40
+ }
41
+ } catch {
42
+ _pulsar = null;
43
+ _pulsarAvailable = false;
44
+ }
45
+ }
46
+ return _pulsarAvailable ? _pulsar : null;
47
+ }
48
+ function selectionAsync() {
49
+ if (Platform.OS === "web") return;
50
+ getHaptics().then((h) => {
51
+ if (h) {
52
+ h.selectionAsync();
53
+ } else {
54
+ getPulsar()?.Presets.System.selection();
55
+ }
56
+ });
57
+ }
58
+ function impactLight() {
59
+ if (Platform.OS === "web") return;
60
+ getHaptics().then((h) => {
61
+ if (h) {
62
+ h.impactAsync(h.ImpactFeedbackStyle.Light);
63
+ } else {
64
+ getPulsar()?.Presets.System.impactLight();
65
+ }
66
+ });
67
+ }
68
+ function impactMedium() {
69
+ if (Platform.OS === "web") return;
70
+ getHaptics().then((h) => {
71
+ if (h) {
72
+ h.impactAsync(h.ImpactFeedbackStyle.Medium);
73
+ } else {
74
+ getPulsar()?.Presets.System.impactMedium();
75
+ }
76
+ });
77
+ }
78
+ function impactHeavy() {
79
+ if (Platform.OS === "web") return;
80
+ getHaptics().then((h) => {
81
+ if (h) {
82
+ h.impactAsync(h.ImpactFeedbackStyle.Heavy);
83
+ } else {
84
+ getPulsar()?.Presets.System.impactHeavy();
85
+ }
86
+ });
87
+ }
88
+ function notificationSuccess() {
89
+ if (Platform.OS === "web") return;
90
+ getHaptics().then((h) => {
91
+ if (h) {
92
+ h.notificationAsync(h.NotificationFeedbackType.Success);
93
+ } else {
94
+ getPulsar()?.Presets.System.notificationSuccess();
95
+ }
96
+ });
97
+ }
98
+ function notificationError() {
99
+ if (Platform.OS === "web") return;
100
+ getHaptics().then((h) => {
101
+ if (h) {
102
+ h.notificationAsync(h.NotificationFeedbackType.Error);
103
+ } else {
104
+ getPulsar()?.Presets.System.notificationError();
105
+ }
106
+ });
107
+ }
108
+ function notificationWarning() {
109
+ if (Platform.OS === "web") return;
110
+ getHaptics().then((h) => {
111
+ if (h) {
112
+ h.notificationAsync(h.NotificationFeedbackType.Warning);
113
+ } else {
114
+ getPulsar()?.Presets.System.notificationWarning();
115
+ }
116
+ });
117
+ }
118
+ var richHaptics = {
119
+ /** Hammer strike — strong confirmation feedback. */
120
+ hammer: () => {
121
+ if (Platform.OS === "web") return;
122
+ const p = getPulsar();
123
+ if (p) p.Presets.hammer();
124
+ else impactHeavy();
125
+ },
126
+ /** Pulse — rhythmic feedback for toggles or state changes. */
127
+ pulse: () => {
128
+ if (Platform.OS === "web") return;
129
+ const p = getPulsar();
130
+ if (p) p.Presets.pulse();
131
+ else selectionAsync();
132
+ },
133
+ /** Buzz — continuous vibration for attention. */
134
+ buzz: () => {
135
+ if (Platform.OS === "web") return;
136
+ const p = getPulsar();
137
+ if (p) p.Presets.buzz();
138
+ else impactMedium();
139
+ },
140
+ /** Flick — crisp click feedback. */
141
+ flick: () => {
142
+ if (Platform.OS === "web") return;
143
+ const p = getPulsar();
144
+ if (p) p.Presets.flick();
145
+ else selectionAsync();
146
+ },
147
+ /** Soft — gentle, subtle feedback. */
148
+ soft: () => {
149
+ if (Platform.OS === "web") return;
150
+ const p = getPulsar();
151
+ if (p) p.Presets.System.impactSoft();
152
+ else impactLight();
153
+ },
154
+ /** Rigid — firm, solid feedback. */
155
+ rigid: () => {
156
+ if (Platform.OS === "web") return;
157
+ const p = getPulsar();
158
+ if (p) p.Presets.System.impactRigid();
159
+ else impactMedium();
160
+ }
161
+ };
162
+
163
+ export { impactHeavy, impactLight, impactMedium, notificationError, notificationSuccess, notificationWarning, richHaptics, selectionAsync };
@@ -1,4 +1,4 @@
1
- import { selectionAsync } from './chunk-RTC3CFXF.mjs';
1
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
2
2
  import { useTheme } from './chunk-SOYNZDVY.mjs';
3
3
  import { s, mvs, ms } from './chunk-2CE3TQVY.mjs';
4
4
  import React from 'react';
@@ -11,38 +11,47 @@ var MONTH_NAMES = {
11
11
  pt: ["janeiro", "fevereiro", "mar\xE7o", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"],
12
12
  fr: ["janvier", "f\xE9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\xFBt", "septembre", "octobre", "novembre", "d\xE9cembre"]
13
13
  };
14
- function MonthPicker({ value, onChange, locale = "en", formatLabel, style }) {
14
+ function dateToMonthPickerValue(date) {
15
+ return { month: date.getMonth() + 1, year: date.getFullYear() };
16
+ }
17
+ function monthPickerValueToDate(value) {
18
+ return new Date(value.year, value.month - 1, 1);
19
+ }
20
+ var toIndex = (v) => v.year * 12 + (v.month - 1);
21
+ var fromIndex = (i) => ({ year: Math.floor(i / 12), month: i % 12 + 1 });
22
+ function MonthPicker({ value, onChange, minValue, maxValue, locale = "en", formatLabel, style }) {
15
23
  const { colors } = useTheme();
24
+ const index = toIndex(value);
25
+ const minIndex = minValue ? toIndex(minValue) : -Infinity;
26
+ const maxIndex = maxValue ? toIndex(maxValue) : Infinity;
27
+ const prevDisabled = index - 1 < minIndex;
28
+ const nextDisabled = index + 1 > maxIndex;
16
29
  const getLabel = () => {
17
30
  if (formatLabel) return formatLabel(value);
18
31
  const names = MONTH_NAMES[locale] ?? MONTH_NAMES.en;
19
32
  return `${names[value.month - 1]} ${value.year}`;
20
33
  };
21
34
  const handlePrev = () => {
35
+ if (prevDisabled) return;
22
36
  selectionAsync();
23
- if (value.month === 1) {
24
- onChange({ month: 12, year: value.year - 1 });
25
- } else {
26
- onChange({ month: value.month - 1, year: value.year });
27
- }
37
+ onChange(fromIndex(index - 1));
28
38
  };
29
39
  const handleNext = () => {
40
+ if (nextDisabled) return;
30
41
  selectionAsync();
31
- if (value.month === 12) {
32
- onChange({ month: 1, year: value.year + 1 });
33
- } else {
34
- onChange({ month: value.month + 1, year: value.year });
35
- }
42
+ onChange(fromIndex(index + 1));
36
43
  };
37
44
  return /* @__PURE__ */ React.createElement(View, { style: [styles.container, style], accessibilityRole: "adjustable", accessibilityLabel: getLabel() }, /* @__PURE__ */ React.createElement(
38
45
  TouchableOpacity,
39
46
  {
40
- style: styles.arrow,
47
+ style: [styles.arrow, prevDisabled && styles.arrowDisabled],
41
48
  onPress: handlePrev,
49
+ disabled: prevDisabled,
42
50
  activeOpacity: 0.6,
43
51
  touchSoundDisabled: true,
44
52
  accessibilityRole: "button",
45
53
  accessibilityLabel: "Previous month",
54
+ accessibilityState: { disabled: prevDisabled },
46
55
  hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }
47
56
  },
48
57
  /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-left", size: 22, color: colors.foreground })
@@ -57,12 +66,14 @@ function MonthPicker({ value, onChange, locale = "en", formatLabel, style }) {
57
66
  ), /* @__PURE__ */ React.createElement(
58
67
  TouchableOpacity,
59
68
  {
60
- style: styles.arrow,
69
+ style: [styles.arrow, nextDisabled && styles.arrowDisabled],
61
70
  onPress: handleNext,
71
+ disabled: nextDisabled,
62
72
  activeOpacity: 0.6,
63
73
  touchSoundDisabled: true,
64
74
  accessibilityRole: "button",
65
75
  accessibilityLabel: "Next month",
76
+ accessibilityState: { disabled: nextDisabled },
66
77
  hitSlop: { top: 8, bottom: 8, left: 8, right: 8 }
67
78
  },
68
79
  /* @__PURE__ */ React.createElement(Entypo, { name: "chevron-right", size: 22, color: colors.foreground })
@@ -80,6 +91,9 @@ var styles = StyleSheet.create({
80
91
  alignItems: "center",
81
92
  justifyContent: "center"
82
93
  },
94
+ arrowDisabled: {
95
+ opacity: 0.3
96
+ },
83
97
  label: {
84
98
  fontFamily: "Sohne-Medium",
85
99
  fontSize: ms(17),
@@ -89,4 +103,4 @@ var styles = StyleSheet.create({
89
103
  }
90
104
  });
91
105
 
92
- export { MonthPicker };
106
+ export { MonthPicker, dateToMonthPickerValue, monthPickerValueToDate };
@@ -1,10 +1,10 @@
1
- import { usePressScale } from './chunk-QCNARS3X.mjs';
2
- import { selectionAsync } from './chunk-RTC3CFXF.mjs';
3
- import { SPRINGS, PRESS_SCALE } from './chunk-5IKW3VNC.mjs';
1
+ import { PressableTab } from './chunk-3DKJ2GIC.mjs';
2
+ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
3
+ import { SPRINGS } from './chunk-DVK4G2GT.mjs';
4
4
  import { useTheme } from './chunk-SOYNZDVY.mjs';
5
5
  import { ms, s, vs } from './chunk-2CE3TQVY.mjs';
6
6
  import React, { useState, useRef, useCallback, useEffect } from 'react';
7
- import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
7
+ import { StyleSheet, View, Text } from 'react-native';
8
8
  import Animated, { useSharedValue, withSpring, useAnimatedStyle } from 'react-native-reanimated';
9
9
 
10
10
  function TabTrigger({
@@ -15,12 +15,9 @@ function TabTrigger({
15
15
  variant
16
16
  }) {
17
17
  const { colors } = useTheme();
18
- const { animatedStyle, onPressIn, onPressOut } = usePressScale({
19
- pressScale: PRESS_SCALE.button
20
- });
21
18
  const isUnderline = variant === "underline";
22
- return /* @__PURE__ */ React.createElement(
23
- TouchableOpacity,
19
+ return /* @__PURE__ */ React.createElement(View, { onLayout, style: styles.triggerWrap }, /* @__PURE__ */ React.createElement(
20
+ PressableTab,
24
21
  {
25
22
  style: [
26
23
  styles.trigger,
@@ -28,16 +25,13 @@ function TabTrigger({
28
25
  isUnderline && isActive && { borderBottomColor: colors.primary }
29
26
  ],
30
27
  onPress,
31
- onPressIn,
32
- onPressOut,
33
- onLayout,
34
- activeOpacity: 1,
28
+ rippleColor: "transparent",
35
29
  touchSoundDisabled: true,
36
30
  accessibilityRole: "tab",
37
31
  accessibilityState: { selected: isActive },
38
32
  accessibilityLabel: tab.label
39
33
  },
40
- /* @__PURE__ */ React.createElement(Animated.View, { style: animatedStyle }, /* @__PURE__ */ React.createElement(View, { style: styles.triggerInner }, tab.icon ? typeof tab.icon === "function" ? tab.icon(isActive) : tab.icon : null, /* @__PURE__ */ React.createElement(
34
+ /* @__PURE__ */ React.createElement(View, { style: styles.triggerInner }, tab.icon ? typeof tab.icon === "function" ? tab.icon(isActive) : tab.icon : null, /* @__PURE__ */ React.createElement(
41
35
  Text,
42
36
  {
43
37
  style: [
@@ -51,8 +45,8 @@ function TabTrigger({
51
45
  allowFontScaling: true
52
46
  },
53
47
  tab.label
54
- )))
55
- );
48
+ ))
49
+ ));
56
50
  }
57
51
  function Tabs({ tabs, variant = "pill", value, onValueChange, children, style }) {
58
52
  const [internal, setInternal] = useState(tabs[0]?.value ?? "");
@@ -153,6 +147,9 @@ var styles = StyleSheet.create({
153
147
  borderBottomWidth: 1
154
148
  },
155
149
  pill: {},
150
+ triggerWrap: {
151
+ flex: 1
152
+ },
156
153
  trigger: {
157
154
  flex: 1,
158
155
  paddingVertical: vs(7),
@@ -163,7 +160,7 @@ var styles = StyleSheet.create({
163
160
  zIndex: 1
164
161
  },
165
162
  triggerUnderline: {
166
- flex: 0,
163
+ flex: 1,
167
164
  paddingVertical: vs(12),
168
165
  paddingHorizontal: s(16),
169
166
  borderRadius: 0,