@retray-dev/ui-kit 12.1.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPONENTS.md +98 -4
- package/README.md +4 -4
- package/dist/Accordion.d.mts +6 -0
- package/dist/Accordion.d.ts +6 -0
- package/dist/Accordion.js +16 -0
- package/dist/Accordion.mjs +2 -2
- package/dist/AlertBanner.js +2 -0
- package/dist/AlertBanner.mjs +2 -2
- package/dist/AppHeader.js +2 -0
- package/dist/AppHeader.mjs +3 -3
- package/dist/Avatar.js +2 -0
- package/dist/Avatar.mjs +2 -2
- package/dist/Badge.js +2 -0
- package/dist/Badge.mjs +2 -2
- package/dist/Button.js +17 -17
- package/dist/Button.mjs +2 -2
- package/dist/Card.js +2 -0
- package/dist/Card.mjs +2 -2
- package/dist/CategoryStrip.js +2 -0
- package/dist/CategoryStrip.mjs +2 -2
- package/dist/Checkbox.js +2 -0
- package/dist/Checkbox.mjs +2 -2
- package/dist/Chip.js +2 -0
- package/dist/Chip.mjs +2 -2
- package/dist/ConfirmDialog.js +26 -20
- package/dist/ConfirmDialog.mjs +3 -3
- package/dist/CurrencyDisplay.js +2 -0
- package/dist/CurrencyDisplay.mjs +2 -2
- package/dist/CurrencyInput.js +2 -0
- package/dist/CurrencyInput.mjs +3 -3
- package/dist/DetailRow.js +2 -0
- package/dist/DetailRow.mjs +2 -2
- package/dist/EmptyState.js +17 -17
- package/dist/EmptyState.mjs +3 -3
- package/dist/ErrorBoundary.js +2 -0
- package/dist/ErrorBoundary.mjs +2 -2
- package/dist/Form.js +2 -0
- package/dist/Form.mjs +2 -2
- package/dist/IconButton.js +2 -0
- package/dist/IconButton.mjs +2 -2
- package/dist/IconPicker.js +2 -0
- package/dist/IconPicker.mjs +3 -3
- package/dist/ImageUpload.d.mts +3 -1
- package/dist/ImageUpload.d.ts +3 -1
- package/dist/ImageUpload.js +10 -3
- package/dist/ImageUpload.mjs +3 -3
- package/dist/ImageViewer.js +2 -0
- package/dist/ImageViewer.mjs +4 -4
- package/dist/Input.js +2 -0
- package/dist/Input.mjs +2 -2
- package/dist/LabelValue.js +2 -0
- package/dist/LabelValue.mjs +2 -2
- package/dist/ListGroup.js +2 -0
- package/dist/ListGroup.mjs +2 -2
- package/dist/ListItem.js +2 -0
- package/dist/ListItem.mjs +2 -2
- package/dist/MediaCard.js +2 -0
- package/dist/MediaCard.mjs +2 -2
- package/dist/MenuGroup.js +2 -0
- package/dist/MenuGroup.mjs +2 -2
- package/dist/MenuItem.js +2 -0
- package/dist/MenuItem.mjs +2 -2
- package/dist/MonthPicker.js +2 -0
- package/dist/MonthPicker.mjs +2 -2
- package/dist/NumberStepper.js +2 -0
- package/dist/NumberStepper.mjs +2 -2
- package/dist/PagerDots.js +2 -0
- package/dist/PagerDots.mjs +2 -2
- package/dist/PricingCard.js +17 -17
- package/dist/PricingCard.mjs +4 -4
- package/dist/Progress.js +2 -0
- package/dist/Progress.mjs +2 -2
- package/dist/RadioGroup.js +2 -0
- package/dist/RadioGroup.mjs +2 -2
- package/dist/RetrayProvider.d.mts +1 -1
- package/dist/RetrayProvider.d.ts +1 -1
- package/dist/RetrayProvider.js +2 -0
- package/dist/RetrayProvider.mjs +3 -3
- package/dist/Select.js +2 -0
- package/dist/Select.mjs +2 -2
- package/dist/SelectableCard.d.mts +27 -0
- package/dist/SelectableCard.d.ts +27 -0
- package/dist/SelectableCard.js +511 -0
- package/dist/SelectableCard.mjs +8 -0
- package/dist/SelectableGrid.js +2 -0
- package/dist/SelectableGrid.mjs +2 -2
- package/dist/Separator.js +2 -0
- package/dist/Separator.mjs +2 -2
- package/dist/Sheet.js +11 -3
- package/dist/Sheet.mjs +2 -2
- package/dist/SheetSelect.js +2 -0
- package/dist/SheetSelect.mjs +2 -2
- package/dist/Skeleton.d.mts +3 -1
- package/dist/Skeleton.d.ts +3 -1
- package/dist/Skeleton.js +5 -2
- package/dist/Skeleton.mjs +2 -2
- package/dist/Slider.js +2 -0
- package/dist/Slider.mjs +2 -2
- package/dist/Spinner.js +2 -0
- package/dist/Spinner.mjs +2 -2
- package/dist/Stats.d.mts +4 -1
- package/dist/Stats.d.ts +4 -1
- package/dist/Stats.js +27 -3
- package/dist/Stats.mjs +2 -2
- package/dist/Switch.js +2 -0
- package/dist/Switch.mjs +2 -2
- package/dist/TabBar.js +2 -0
- package/dist/TabBar.mjs +2 -2
- package/dist/Tabs.js +2 -0
- package/dist/Tabs.mjs +2 -2
- package/dist/Text.js +2 -0
- package/dist/Text.mjs +2 -2
- package/dist/Textarea.js +2 -0
- package/dist/Textarea.mjs +2 -2
- package/dist/Toast.js +2 -0
- package/dist/Toast.mjs +2 -2
- package/dist/Toggle.js +2 -0
- package/dist/Toggle.mjs +2 -2
- package/dist/{chunk-JNVAIDLK.mjs → chunk-2BA3JMKK.mjs} +1 -1
- package/dist/{chunk-X26S5EVZ.mjs → chunk-2HFD4IHU.mjs} +1 -1
- package/dist/{chunk-ZHMSAYLT.mjs → chunk-2LG326TT.mjs} +1 -1
- package/dist/chunk-2P2CB235.mjs +236 -0
- package/dist/{chunk-MYZ2EDYU.mjs → chunk-3XCFYSX4.mjs} +1 -1
- package/dist/{chunk-DOGIPOF5.mjs → chunk-4J2PXL36.mjs} +16 -18
- package/dist/{chunk-V6NFJXKO.mjs → chunk-4OORJ2DY.mjs} +1 -1
- package/dist/{chunk-5OLNXP3S.mjs → chunk-4XOB5TTD.mjs} +26 -4
- package/dist/{chunk-P64WHW4A.mjs → chunk-57V2LXCK.mjs} +1 -1
- package/dist/{chunk-HJ46DTJE.mjs → chunk-7AFZWSCI.mjs} +1 -1
- package/dist/{chunk-AQEVCEXV.mjs → chunk-7ELGZ66G.mjs} +1 -1
- package/dist/{chunk-I4V5XZPS.mjs → chunk-AENAVIKT.mjs} +1 -1
- package/dist/{chunk-2CBQKU7H.mjs → chunk-BXF4AMHY.mjs} +1 -1
- package/dist/{chunk-JULSIZDM.mjs → chunk-C43HRKXH.mjs} +1 -1
- package/dist/{chunk-GK4VRMNE.mjs → chunk-CF27NBXO.mjs} +11 -6
- package/dist/{chunk-PGERH3P7.mjs → chunk-DF7JA72E.mjs} +1 -1
- package/dist/{chunk-F4V6XLP4.mjs → chunk-E5UKLSJZ.mjs} +3 -3
- package/dist/{chunk-FUVYSVGR.mjs → chunk-EDLCGYIO.mjs} +1 -1
- package/dist/{chunk-N4ZPVCJH.mjs → chunk-ELGEOM7I.mjs} +1 -1
- package/dist/{chunk-FA2KMTH5.mjs → chunk-F3YTWO3T.mjs} +1 -1
- package/dist/{chunk-3UYAZ7I4.mjs → chunk-GH67YXG6.mjs} +1 -1
- package/dist/{chunk-357YO24D.mjs → chunk-GUTDFUNF.mjs} +1 -1
- package/dist/{chunk-7HSILTC4.mjs → chunk-HC4VVCWY.mjs} +2 -2
- package/dist/{chunk-WOEWGSTU.mjs → chunk-HEDQPK4I.mjs} +1 -1
- package/dist/{chunk-3GEYJ7I5.mjs → chunk-IVSRW4HS.mjs} +1 -1
- package/dist/{chunk-P73V2EKS.mjs → chunk-KSUWPU2F.mjs} +1 -1
- package/dist/{chunk-BCWEHE34.mjs → chunk-LIS6I5UP.mjs} +1 -1
- package/dist/{chunk-J6Q2YJEV.mjs → chunk-LNPKGWBG.mjs} +1 -1
- package/dist/{chunk-DF6DU42P.mjs → chunk-LOBLCFMN.mjs} +1 -1
- package/dist/{chunk-2A2LEFZG.mjs → chunk-LPV4NJJK.mjs} +2 -2
- package/dist/{chunk-FFTYLPSB.mjs → chunk-M3C7XM2M.mjs} +11 -5
- package/dist/{chunk-BQZE3HAW.mjs → chunk-MEPSKGBO.mjs} +1 -1
- package/dist/{chunk-ISY26JQJ.mjs → chunk-MVMGPZN6.mjs} +2 -2
- package/dist/{chunk-265G6A46.mjs → chunk-NHDI3VQB.mjs} +15 -1
- package/dist/{chunk-D3Y2T42P.mjs → chunk-NJG7DHVF.mjs} +1 -1
- package/dist/{chunk-LRM4AVYY.mjs → chunk-NLZY4TXU.mjs} +1 -1
- package/dist/{chunk-OULVKTWL.mjs → chunk-OLVJFKXS.mjs} +1 -1
- package/dist/{chunk-BOVUP27T.mjs → chunk-QDAZGZUF.mjs} +4 -3
- package/dist/{chunk-S3KJCPEJ.mjs → chunk-QOLWA2PW.mjs} +1 -1
- package/dist/{chunk-JCZQOY4O.mjs → chunk-QXDGGOLC.mjs} +12 -6
- package/dist/{chunk-4WFMPFZB.mjs → chunk-RJNLAH76.mjs} +1 -1
- package/dist/{chunk-HLMPMUK2.mjs → chunk-RMRS44MQ.mjs} +1 -1
- package/dist/{chunk-KHYX4IOM.mjs → chunk-SAWUXP3A.mjs} +2 -2
- package/dist/{chunk-2I2AYECM.mjs → chunk-TS7DGUIR.mjs} +1 -1
- package/dist/{chunk-3N2M3WZL.mjs → chunk-UBUXUMER.mjs} +1 -1
- package/dist/{chunk-AKM4EPOT.mjs → chunk-ULGNQPNE.mjs} +1 -1
- package/dist/{chunk-FVTVCJAH.mjs → chunk-UNNRUJTM.mjs} +1 -1
- package/dist/{chunk-DI7CBDL6.mjs → chunk-UQ4742ET.mjs} +1 -1
- package/dist/{chunk-EFLFRAHD.mjs → chunk-VJBUCITV.mjs} +1 -1
- package/dist/{chunk-QSFV2P7O.mjs → chunk-YMYIEVZP.mjs} +1 -1
- package/dist/{chunk-EMUWGDWC.mjs → chunk-YTXRIXNZ.mjs} +2 -0
- package/dist/{chunk-XBAGGKLW.mjs → chunk-ZIMY2QUM.mjs} +2 -2
- package/dist/{chunk-NXI4YDZ2.mjs → chunk-ZR6HSEAB.mjs} +1 -1
- package/dist/{index-wt-orHUi.d.ts → index-CY34hxPN.d.mts} +1 -0
- package/dist/{index-wt-orHUi.d.mts → index-CY34hxPN.d.ts} +1 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +733 -453
- package/dist/index.mjs +53 -52
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +20 -0
- package/src/components/Button/Button.tsx +29 -26
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +10 -3
- package/src/components/ImageUpload/ImageUpload.tsx +10 -3
- package/src/components/SelectableCard/SelectableCard.tsx +304 -0
- package/src/components/SelectableCard/index.ts +1 -0
- package/src/components/Sheet/Sheet.tsx +10 -3
- package/src/components/Skeleton/Skeleton.tsx +5 -2
- package/src/components/Stats/Stats.tsx +35 -7
- package/src/index.ts +1 -0
- package/src/theme/colors.ts +7 -0
- package/src/theme/types.ts +4 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
2
|
+
import { COLOR_TRANSITION, SPRING_ELASTIC, OPACITY_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
3
|
+
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
|
+
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
|
+
import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
7
|
+
import React, { createContext, useContext } from 'react';
|
|
8
|
+
import { StyleSheet, View, Pressable, Text } from 'react-native';
|
|
9
|
+
import { EaseView } from 'react-native-ease';
|
|
10
|
+
|
|
11
|
+
var SelectableCardContext = createContext(null);
|
|
12
|
+
function SelectableCardGroup({
|
|
13
|
+
type,
|
|
14
|
+
value,
|
|
15
|
+
onValueChange,
|
|
16
|
+
variant = "elevated",
|
|
17
|
+
gap = s(8),
|
|
18
|
+
style,
|
|
19
|
+
children
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ React.createElement(SelectableCardContext.Provider, { value: { type, value, onValueChange, variant } }, /* @__PURE__ */ React.createElement(View, { style: [styles.group, { gap }, style] }, children));
|
|
22
|
+
}
|
|
23
|
+
function SelectableCard({
|
|
24
|
+
value,
|
|
25
|
+
title,
|
|
26
|
+
description,
|
|
27
|
+
iconName,
|
|
28
|
+
icon,
|
|
29
|
+
disabled = false,
|
|
30
|
+
style
|
|
31
|
+
}) {
|
|
32
|
+
const ctx = useContext(SelectableCardContext);
|
|
33
|
+
if (!ctx) {
|
|
34
|
+
throw new Error("SelectableCard must be used inside <SelectableCard.Group>");
|
|
35
|
+
}
|
|
36
|
+
const { colors } = useTheme();
|
|
37
|
+
const { type, value: selectedValue, onValueChange, variant } = ctx;
|
|
38
|
+
const isSelected = type === "radio" ? selectedValue === value : Array.isArray(selectedValue) && selectedValue.includes(value);
|
|
39
|
+
const handlePress = () => {
|
|
40
|
+
if (disabled) return;
|
|
41
|
+
impactLight();
|
|
42
|
+
if (type === "radio") {
|
|
43
|
+
onValueChange(value);
|
|
44
|
+
} else {
|
|
45
|
+
const arr = Array.isArray(selectedValue) ? selectedValue : [];
|
|
46
|
+
if (arr.includes(value)) {
|
|
47
|
+
onValueChange(arr.filter((v) => v !== value));
|
|
48
|
+
} else {
|
|
49
|
+
onValueChange([...arr, value]);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const variantStyle = (() => {
|
|
54
|
+
const borderWidth = 2;
|
|
55
|
+
const base = {
|
|
56
|
+
elevated: {
|
|
57
|
+
backgroundColor: colors.card,
|
|
58
|
+
borderWidth,
|
|
59
|
+
borderColor: "transparent"
|
|
60
|
+
// reserve space for selected border
|
|
61
|
+
},
|
|
62
|
+
outlined: {
|
|
63
|
+
backgroundColor: colors.card,
|
|
64
|
+
borderWidth,
|
|
65
|
+
borderColor: colors.border
|
|
66
|
+
},
|
|
67
|
+
filled: {
|
|
68
|
+
backgroundColor: colors.surfaceStrong,
|
|
69
|
+
borderWidth,
|
|
70
|
+
borderColor: colors.border
|
|
71
|
+
}
|
|
72
|
+
}[variant];
|
|
73
|
+
if (isSelected && !disabled) {
|
|
74
|
+
return {
|
|
75
|
+
...base,
|
|
76
|
+
borderColor: colors.primary,
|
|
77
|
+
shadowColor: "transparent",
|
|
78
|
+
shadowOpacity: 0,
|
|
79
|
+
shadowRadius: 0,
|
|
80
|
+
elevation: 0
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (disabled) {
|
|
84
|
+
return {
|
|
85
|
+
...base,
|
|
86
|
+
shadowColor: "transparent",
|
|
87
|
+
shadowOpacity: 0,
|
|
88
|
+
shadowRadius: 0,
|
|
89
|
+
elevation: 0,
|
|
90
|
+
borderColor: colors.border
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return base;
|
|
94
|
+
})();
|
|
95
|
+
const resolvedIcon = iconName ? renderIcon(iconName, ms(22), disabled ? colors.foregroundMuted : colors.foregroundMuted) : icon;
|
|
96
|
+
const resolvedIconElement = resolvedIcon ? /* @__PURE__ */ React.createElement(View, { style: [styles.iconWrapper, disabled && { opacity: 0.45 }] }, resolvedIcon) : null;
|
|
97
|
+
const selectorAccessibilityRole = type === "radio" ? "radio" : "checkbox";
|
|
98
|
+
return /* @__PURE__ */ React.createElement(
|
|
99
|
+
Pressable,
|
|
100
|
+
{
|
|
101
|
+
onPress: handlePress,
|
|
102
|
+
disabled,
|
|
103
|
+
accessibilityRole: "button",
|
|
104
|
+
accessibilityLabel: `${title}${description ? `, ${description}` : ""}`,
|
|
105
|
+
accessibilityState: { selected: isSelected, disabled },
|
|
106
|
+
style: [
|
|
107
|
+
styles.card,
|
|
108
|
+
variantStyle,
|
|
109
|
+
isSelected && !disabled && styles.cardSelected,
|
|
110
|
+
style
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.row }, /* @__PURE__ */ React.createElement(View, { style: styles.selectorContainer, accessibilityRole: selectorAccessibilityRole, accessibilityState: { selected: isSelected, disabled } }, type === "radio" ? /* @__PURE__ */ React.createElement(
|
|
114
|
+
EaseView,
|
|
115
|
+
{
|
|
116
|
+
style: styles.radioCircle,
|
|
117
|
+
animate: { borderColor: !disabled && isSelected ? colors.primary : colors.border },
|
|
118
|
+
transition: COLOR_TRANSITION
|
|
119
|
+
},
|
|
120
|
+
/* @__PURE__ */ React.createElement(
|
|
121
|
+
EaseView,
|
|
122
|
+
{
|
|
123
|
+
animate: {
|
|
124
|
+
scale: !disabled && isSelected ? 1 : 0,
|
|
125
|
+
opacity: !disabled && isSelected ? 1 : 0
|
|
126
|
+
},
|
|
127
|
+
transition: SPRING_ELASTIC
|
|
128
|
+
},
|
|
129
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles.radioDot, { backgroundColor: colors.primary }] })
|
|
130
|
+
)
|
|
131
|
+
) : /* @__PURE__ */ React.createElement(
|
|
132
|
+
EaseView,
|
|
133
|
+
{
|
|
134
|
+
style: styles.checkboxBox,
|
|
135
|
+
animate: {
|
|
136
|
+
borderColor: !disabled && isSelected ? colors.primary : colors.border,
|
|
137
|
+
backgroundColor: !disabled && isSelected ? colors.primary : "transparent"
|
|
138
|
+
},
|
|
139
|
+
transition: COLOR_TRANSITION
|
|
140
|
+
},
|
|
141
|
+
/* @__PURE__ */ React.createElement(
|
|
142
|
+
EaseView,
|
|
143
|
+
{
|
|
144
|
+
animate: { opacity: !disabled && isSelected ? 1 : 0 },
|
|
145
|
+
transition: OPACITY_TRANSITION
|
|
146
|
+
},
|
|
147
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles.checkmark, { borderColor: colors.primaryForeground }] })
|
|
148
|
+
)
|
|
149
|
+
)), resolvedIconElement, /* @__PURE__ */ React.createElement(View, { style: styles.textArea }, /* @__PURE__ */ React.createElement(
|
|
150
|
+
Text,
|
|
151
|
+
{
|
|
152
|
+
style: [styles.title, { color: disabled ? colors.foregroundMuted : colors.foreground }],
|
|
153
|
+
allowFontScaling: true,
|
|
154
|
+
numberOfLines: 2
|
|
155
|
+
},
|
|
156
|
+
title
|
|
157
|
+
), description ? /* @__PURE__ */ React.createElement(
|
|
158
|
+
Text,
|
|
159
|
+
{
|
|
160
|
+
style: [styles.description, { color: disabled ? colors.foregroundMuted : colors.foregroundSubtle }],
|
|
161
|
+
allowFontScaling: true,
|
|
162
|
+
numberOfLines: 4
|
|
163
|
+
},
|
|
164
|
+
description
|
|
165
|
+
) : null))
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
var styles = StyleSheet.create({
|
|
169
|
+
group: {
|
|
170
|
+
width: "100%"
|
|
171
|
+
},
|
|
172
|
+
card: {
|
|
173
|
+
borderRadius: RADIUS.md,
|
|
174
|
+
borderWidth: 1
|
|
175
|
+
},
|
|
176
|
+
cardSelected: {
|
|
177
|
+
backgroundColor: void 0
|
|
178
|
+
// overridden by variantStyle
|
|
179
|
+
},
|
|
180
|
+
row: {
|
|
181
|
+
flexDirection: "row",
|
|
182
|
+
alignItems: "flex-start",
|
|
183
|
+
padding: s(16),
|
|
184
|
+
gap: s(12)
|
|
185
|
+
},
|
|
186
|
+
selectorContainer: {
|
|
187
|
+
paddingTop: vs(1)
|
|
188
|
+
},
|
|
189
|
+
radioCircle: {
|
|
190
|
+
width: s(24),
|
|
191
|
+
height: s(24),
|
|
192
|
+
borderRadius: s(12),
|
|
193
|
+
borderWidth: 2,
|
|
194
|
+
alignItems: "center",
|
|
195
|
+
justifyContent: "center"
|
|
196
|
+
},
|
|
197
|
+
radioDot: {
|
|
198
|
+
width: s(10),
|
|
199
|
+
height: s(10),
|
|
200
|
+
borderRadius: s(5)
|
|
201
|
+
},
|
|
202
|
+
checkboxBox: {
|
|
203
|
+
width: s(24),
|
|
204
|
+
height: s(24),
|
|
205
|
+
borderRadius: ms(4),
|
|
206
|
+
borderWidth: 2,
|
|
207
|
+
alignItems: "center",
|
|
208
|
+
justifyContent: "center"
|
|
209
|
+
},
|
|
210
|
+
checkmark: {
|
|
211
|
+
width: s(12),
|
|
212
|
+
height: vs(7),
|
|
213
|
+
borderLeftWidth: 2,
|
|
214
|
+
borderBottomWidth: 2,
|
|
215
|
+
transform: [{ rotate: "-45deg" }, { translateY: -1 }]
|
|
216
|
+
},
|
|
217
|
+
iconWrapper: {
|
|
218
|
+
paddingTop: vs(1)
|
|
219
|
+
},
|
|
220
|
+
textArea: {
|
|
221
|
+
flex: 1,
|
|
222
|
+
gap: vs(4)
|
|
223
|
+
},
|
|
224
|
+
title: {
|
|
225
|
+
fontFamily: "Sohne-SemiBold",
|
|
226
|
+
fontSize: ms(16),
|
|
227
|
+
lineHeight: mvs(22)
|
|
228
|
+
},
|
|
229
|
+
description: {
|
|
230
|
+
fontFamily: "Sohne-Regular",
|
|
231
|
+
fontSize: ms(13),
|
|
232
|
+
lineHeight: mvs(18)
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
export { SelectableCard, SelectableCardGroup };
|
|
@@ -3,7 +3,7 @@ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
|
3
3
|
import { PRESS_SCALE, COLOR_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
5
5
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
6
|
-
import { useTheme } from './chunk-
|
|
6
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
7
7
|
import { ms, s, vs } from './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import React, { useCallback } from 'react';
|
|
9
9
|
import { TouchableOpacity, View, Text, StyleSheet, ScrollView } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableButton } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { impactMedium } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { TYPOGRAPHY, RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { vs, s, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, ActivityIndicator, Text } from 'react-native';
|
|
@@ -41,24 +41,26 @@ function ButtonBase({
|
|
|
41
41
|
impactMedium();
|
|
42
42
|
onPress?.();
|
|
43
43
|
};
|
|
44
|
-
const containerVariantStyle = {
|
|
44
|
+
const containerVariantStyle = isDisabled ? {
|
|
45
|
+
primary: { backgroundColor: colors.surface },
|
|
46
|
+
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.border },
|
|
47
|
+
text: { backgroundColor: "transparent" },
|
|
48
|
+
destructive: { backgroundColor: colors.surface }
|
|
49
|
+
}[variant] : {
|
|
45
50
|
primary: { backgroundColor: colors.primary },
|
|
46
51
|
secondary: { backgroundColor: "transparent", borderWidth: 1.5, borderColor: colors.primary },
|
|
47
52
|
text: { backgroundColor: "transparent" },
|
|
48
53
|
destructive: { backgroundColor: colors.destructive }
|
|
49
54
|
}[variant];
|
|
50
|
-
const
|
|
51
|
-
primary:
|
|
52
|
-
secondary:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// carry the brand voltage. Falls back to primary when no accent is defined.
|
|
56
|
-
text: { color: colors.accentResolved },
|
|
57
|
-
destructive: { color: colors.destructiveForeground }
|
|
55
|
+
const labelColor = isDisabled ? colors.foregroundMuted : {
|
|
56
|
+
primary: colors.primaryForeground,
|
|
57
|
+
secondary: colors.primary,
|
|
58
|
+
text: colors.accentResolved,
|
|
59
|
+
destructive: colors.destructiveForeground
|
|
58
60
|
}[variant];
|
|
59
|
-
const textColor = iconColor ??
|
|
61
|
+
const textColor = iconColor ?? labelColor;
|
|
60
62
|
const effectiveIcon = iconName ? renderIcon(iconName, iconSizeMap[size], textColor) : typeof icon === "function" ? icon({ label, size, variant, color: textColor }) : icon;
|
|
61
|
-
const spinnerColor = variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
63
|
+
const spinnerColor = isDisabled ? colors.foregroundMuted : variant === "destructive" ? colors.destructiveForeground : variant === "primary" ? colors.primaryForeground : colors.accentResolved;
|
|
62
64
|
const styleArray = Array.isArray(style) ? style : style ? [style] : [];
|
|
63
65
|
const flatStyle = StyleSheet.flatten(styleArray);
|
|
64
66
|
const { flex, ...restStyle } = flatStyle || {};
|
|
@@ -70,7 +72,6 @@ function ButtonBase({
|
|
|
70
72
|
containerVariantStyle,
|
|
71
73
|
containerSizeStyles[size],
|
|
72
74
|
fullWidth && styles.fullWidth,
|
|
73
|
-
isDisabled && styles.disabled,
|
|
74
75
|
restStyle
|
|
75
76
|
],
|
|
76
77
|
enabled: !isDisabled,
|
|
@@ -86,7 +87,7 @@ function ButtonBase({
|
|
|
86
87
|
loading ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "small", color: spinnerColor, style: { marginRight: s(6) } }), /* @__PURE__ */ React.createElement(
|
|
87
88
|
Text,
|
|
88
89
|
{
|
|
89
|
-
style: [styles.label,
|
|
90
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], styles.labelLoading],
|
|
90
91
|
allowFontScaling: true,
|
|
91
92
|
numberOfLines: 1
|
|
92
93
|
},
|
|
@@ -94,7 +95,7 @@ function ButtonBase({
|
|
|
94
95
|
)) : /* @__PURE__ */ React.createElement(React.Fragment, null, effectiveIcon && iconPosition === "left" && /* @__PURE__ */ React.createElement(React.Fragment, null, effectiveIcon), /* @__PURE__ */ React.createElement(
|
|
95
96
|
Text,
|
|
96
97
|
{
|
|
97
|
-
style: [styles.label,
|
|
98
|
+
style: [styles.label, { color: labelColor }, labelSizeStyles[size], effectiveIcon ? styles.labelWithIcon : void 0],
|
|
98
99
|
allowFontScaling: true,
|
|
99
100
|
numberOfLines: 1
|
|
100
101
|
},
|
|
@@ -113,9 +114,6 @@ var styles = StyleSheet.create({
|
|
|
113
114
|
fullWidth: {
|
|
114
115
|
width: "100%"
|
|
115
116
|
},
|
|
116
|
-
disabled: {
|
|
117
|
-
opacity: 0.45
|
|
118
|
-
},
|
|
119
117
|
label: {
|
|
120
118
|
fontFamily: "Sohne-Medium",
|
|
121
119
|
flexShrink: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
2
2
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
3
|
-
import { useTheme } from './chunk-
|
|
3
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
4
4
|
import { s, vs, ms } from './chunk-2CE3TQVY.mjs';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableCard } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { s, vs, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React, { useState, useCallback } from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -16,6 +16,7 @@ function StatsComponent({
|
|
|
16
16
|
iconName,
|
|
17
17
|
iconColor,
|
|
18
18
|
variant = "elevated",
|
|
19
|
+
size = "default",
|
|
19
20
|
onPress,
|
|
20
21
|
style,
|
|
21
22
|
accessibilityLabel
|
|
@@ -34,6 +35,27 @@ function StatsComponent({
|
|
|
34
35
|
onPress();
|
|
35
36
|
};
|
|
36
37
|
const isCompact = containerWidth > 0 && containerWidth < COMPACT_THRESHOLD && !!(icon ?? iconName);
|
|
38
|
+
const sizeStyles = size === "compact" ? {
|
|
39
|
+
valueFontFamily: "Sohne-SemiBold",
|
|
40
|
+
valueFontSize: ms(16),
|
|
41
|
+
valueLineHeight: mvs(20),
|
|
42
|
+
labelFontSize: ms(11),
|
|
43
|
+
labelLineHeight: mvs(14),
|
|
44
|
+
descriptionFontSize: ms(10),
|
|
45
|
+
descriptionLineHeight: mvs(14),
|
|
46
|
+
iconSize: ms(18),
|
|
47
|
+
padding: s(12)
|
|
48
|
+
} : {
|
|
49
|
+
valueFontFamily: "Sohne-Bold",
|
|
50
|
+
valueFontSize: ms(21),
|
|
51
|
+
valueLineHeight: mvs(25),
|
|
52
|
+
labelFontSize: ms(13),
|
|
53
|
+
labelLineHeight: mvs(18),
|
|
54
|
+
descriptionFontSize: ms(12),
|
|
55
|
+
descriptionLineHeight: mvs(16),
|
|
56
|
+
iconSize: ms(20),
|
|
57
|
+
padding: s(16)
|
|
58
|
+
};
|
|
37
59
|
const variantStyle = {
|
|
38
60
|
elevated: {
|
|
39
61
|
backgroundColor: colors.card,
|
|
@@ -58,10 +80,10 @@ function StatsComponent({
|
|
|
58
80
|
}
|
|
59
81
|
}[variant];
|
|
60
82
|
const iconColorResolved = iconColor ?? colors.primary;
|
|
61
|
-
const resolvedIcon = iconName ? renderIcon(iconName,
|
|
83
|
+
const resolvedIcon = iconName ? renderIcon(iconName, sizeStyles.iconSize, iconColorResolved) : icon;
|
|
62
84
|
const iconElement = resolvedIcon ? /* @__PURE__ */ React.createElement(View, { style: styles.iconWrapper }, resolvedIcon) : null;
|
|
63
|
-
const valueElement = /* @__PURE__ */ React.createElement(Text, { style: [styles.value, { color: colors.foreground }], allowFontScaling: true }, value);
|
|
64
|
-
const cardContent = /* @__PURE__ */ React.createElement(View, { style: [styles.card, variantStyle, style], onLayout: handleLayout }, isCompact ? /* @__PURE__ */ React.createElement(React.Fragment, null, iconElement, /* @__PURE__ */ React.createElement(View, { style: styles.compactValue }, valueElement), /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foregroundSubtle }], allowFontScaling: true }, label), description ? /* @__PURE__ */ React.createElement(Text, { style: [styles.description, { color: colors.foregroundMuted }], allowFontScaling: true }, description) : null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles.valueRow }, iconElement, valueElement), /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foregroundSubtle }], allowFontScaling: true }, label), description ? /* @__PURE__ */ React.createElement(Text, { style: [styles.description, { color: colors.foregroundMuted }], allowFontScaling: true }, description) : null));
|
|
85
|
+
const valueElement = /* @__PURE__ */ React.createElement(Text, { style: [styles.value, { color: colors.foreground, fontFamily: sizeStyles.valueFontFamily, fontSize: sizeStyles.valueFontSize, lineHeight: sizeStyles.valueLineHeight }], allowFontScaling: true }, value);
|
|
86
|
+
const cardContent = /* @__PURE__ */ React.createElement(View, { style: [styles.card, variantStyle, { padding: sizeStyles.padding }, style], onLayout: handleLayout }, isCompact ? /* @__PURE__ */ React.createElement(React.Fragment, null, iconElement, /* @__PURE__ */ React.createElement(View, { style: styles.compactValue }, valueElement), /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foregroundSubtle, fontSize: sizeStyles.labelFontSize, lineHeight: sizeStyles.labelLineHeight }], allowFontScaling: true }, label), description ? /* @__PURE__ */ React.createElement(Text, { style: [styles.description, { color: colors.foregroundMuted, fontSize: sizeStyles.descriptionFontSize, lineHeight: sizeStyles.descriptionLineHeight }], allowFontScaling: true }, description) : null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles.valueRow }, iconElement, valueElement), /* @__PURE__ */ React.createElement(Text, { style: [styles.label, { color: colors.foregroundSubtle, fontSize: sizeStyles.labelFontSize, lineHeight: sizeStyles.labelLineHeight }], allowFontScaling: true }, label), description ? /* @__PURE__ */ React.createElement(Text, { style: [styles.description, { color: colors.foregroundMuted, fontSize: sizeStyles.descriptionFontSize, lineHeight: sizeStyles.descriptionLineHeight }], allowFontScaling: true }, description) : null));
|
|
65
87
|
if (onPress) {
|
|
66
88
|
return /* @__PURE__ */ React.createElement(
|
|
67
89
|
PressableCard,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { mvs, ms, s } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -3,7 +3,7 @@ import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
|
3
3
|
import { SPRINGS, PRESS_SCALE } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { RADIUS, SHADOWS } from './chunk-QY3X2UYR.mjs';
|
|
5
5
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
6
|
-
import { useTheme } from './chunk-
|
|
6
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
7
7
|
import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { StyleSheet, View, Platform, Image, TouchableOpacity, Text } from 'react-native';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { s, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PressableCard } from './chunk-3DKJ2GIC.mjs';
|
|
2
2
|
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { vs, s, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { vs, s } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Spinner } from './chunk-
|
|
1
|
+
import { Spinner } from './chunk-LIS6I5UP.mjs';
|
|
2
2
|
import { PressableCard } from './chunk-3DKJ2GIC.mjs';
|
|
3
3
|
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
4
4
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { s, vs, ms } from './chunk-2CE3TQVY.mjs';
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
8
|
import { StyleSheet, Image, View, Text, Platform } from 'react-native';
|
|
9
9
|
import { Feather } from '@expo/vector-icons';
|
|
10
10
|
|
|
@@ -18,11 +18,13 @@ function ImageUpload({
|
|
|
18
18
|
height = 200,
|
|
19
19
|
borderRadius = RADIUS.lg,
|
|
20
20
|
resizeMode = "cover",
|
|
21
|
+
allowsEditing = true,
|
|
21
22
|
disabled = false,
|
|
22
23
|
style,
|
|
23
24
|
accessibilityLabel
|
|
24
25
|
}) {
|
|
25
26
|
const { colors } = useTheme();
|
|
27
|
+
const [imageLoaded, setImageLoaded] = useState(false);
|
|
26
28
|
const handlePress = async () => {
|
|
27
29
|
if (disabled || loading) return;
|
|
28
30
|
impactLight();
|
|
@@ -47,10 +49,11 @@ function ImageUpload({
|
|
|
47
49
|
}
|
|
48
50
|
const result = await picker.launchImageLibraryAsync({
|
|
49
51
|
mediaTypes: ["images"],
|
|
50
|
-
allowsEditing
|
|
52
|
+
allowsEditing,
|
|
51
53
|
quality: 0.8
|
|
52
54
|
});
|
|
53
55
|
if (!result.canceled && result.assets?.[0]) {
|
|
56
|
+
setImageLoaded(false);
|
|
54
57
|
onChange?.(result.assets[0].uri);
|
|
55
58
|
}
|
|
56
59
|
};
|
|
@@ -61,7 +64,7 @@ function ImageUpload({
|
|
|
61
64
|
borderWidth: value ? 0 : 1,
|
|
62
65
|
borderStyle: "dashed",
|
|
63
66
|
borderColor: colors.border,
|
|
64
|
-
backgroundColor: value ? "transparent" : colors.surface,
|
|
67
|
+
backgroundColor: value && imageLoaded ? "transparent" : colors.surface,
|
|
65
68
|
overflow: "hidden"
|
|
66
69
|
};
|
|
67
70
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -81,7 +84,9 @@ function ImageUpload({
|
|
|
81
84
|
{
|
|
82
85
|
source: { uri: value },
|
|
83
86
|
style: [StyleSheet.absoluteFillObject, { borderRadius }],
|
|
84
|
-
resizeMode
|
|
87
|
+
resizeMode,
|
|
88
|
+
onLoad: () => setImageLoaded(true),
|
|
89
|
+
onError: () => setImageLoaded(true)
|
|
85
90
|
}
|
|
86
91
|
) : /* @__PURE__ */ React.createElement(View, { style: styles.placeholder }, /* @__PURE__ */ React.createElement(Feather, { name: "image", size: ms(28), color: colors.foregroundMuted }), showPlaceholderText ? /* @__PURE__ */ React.createElement(
|
|
87
92
|
Text,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COLOR_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
2
2
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
3
|
-
import { useTheme } from './chunk-
|
|
3
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
4
4
|
import { ms, s, vs } from './chunk-2CE3TQVY.mjs';
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
import { Platform, StyleSheet, TouchableOpacity, View, Text, TextInput } from 'react-native';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Badge } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Badge } from './chunk-GH67YXG6.mjs';
|
|
2
|
+
import { Button } from './chunk-4J2PXL36.mjs';
|
|
3
3
|
import { RADIUS, SHADOWS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { mvs, ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableRow } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { ms, s, mvs, vs } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, Image, View, Text } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableButton } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { s, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -2,7 +2,7 @@ import { PressableChip } from './chunk-3DKJ2GIC.mjs';
|
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { COLOR_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
5
|
-
import { useTheme } from './chunk-
|
|
5
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
6
6
|
import { s, mvs, ms, vs } from './chunk-2CE3TQVY.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { vs, s, ms } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TYPOGRAPHY } from './chunk-QY3X2UYR.mjs';
|
|
2
|
-
import { useTheme } from './chunk-
|
|
2
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
3
3
|
import { mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Text as Text$1 } from 'react-native';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Button } from './chunk-4J2PXL36.mjs';
|
|
2
2
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
3
|
-
import { useTheme } from './chunk-
|
|
3
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
4
4
|
import { s, vs, mvs, ms } from './chunk-2CE3TQVY.mjs';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePressScale } from './chunk-YNROWHQJ.mjs';
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { PRESS_SCALE } from './chunk-DVK4G2GT.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { ms, vs, s } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React, { useState, useRef } from 'react';
|
|
7
7
|
import { Platform, StyleSheet, View, Text, TouchableOpacity, Modal } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PressableTab } from './chunk-3DKJ2GIC.mjs';
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { SPRINGS } from './chunk-DVK4G2GT.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { ms, s, vs } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
|
7
7
|
import { StyleSheet, View, Text } from 'react-native';
|
|
@@ -3,7 +3,7 @@ import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
|
3
3
|
import { COLOR_TRANSITION } from './chunk-DVK4G2GT.mjs';
|
|
4
4
|
import { RADIUS } from './chunk-QY3X2UYR.mjs';
|
|
5
5
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
6
|
-
import { useTheme } from './chunk-
|
|
6
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
7
7
|
import { ms, mvs, s, vs } from './chunk-2CE3TQVY.mjs';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { StyleSheet, View, Text, ScrollView } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePressScale } from './chunk-YNROWHQJ.mjs';
|
|
2
2
|
import { selectionAsync } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { PRESS_SCALE, COLOR_TRANSITION, SPRING_ELASTIC } from './chunk-DVK4G2GT.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { mvs, ms, s, vs } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PressableButton } from './chunk-3DKJ2GIC.mjs';
|
|
2
2
|
import { impactLight } from './chunk-EJ7ZPXOH.mjs';
|
|
3
3
|
import { renderIcon } from './chunk-KA7LTET3.mjs';
|
|
4
|
-
import { useTheme } from './chunk-
|
|
4
|
+
import { useTheme } from './chunk-YTXRIXNZ.mjs';
|
|
5
5
|
import { s, ms } from './chunk-2CE3TQVY.mjs';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { StyleSheet, View, ActivityIndicator, Text } from 'react-native';
|