@oxyhq/services 5.4.3 → 5.4.4
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/README.md +14 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/commonjs/assets/icons/OxyServices.js +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/core/index.js +2 -2
- package/lib/commonjs/index.js +22 -22
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/node/createAuth.js +95 -0
- package/lib/commonjs/node/createAuth.js.map +1 -0
- package/lib/commonjs/node/index.js +15 -6
- package/lib/commonjs/node/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/components/Avatar.js +3 -3
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +3 -3
- package/lib/commonjs/ui/components/GroupedSection.js +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +146 -141
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +2 -2
- package/lib/commonjs/ui/components/ProfileCard.js +2 -2
- package/lib/commonjs/ui/components/Section.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/icon/index.js +1 -1
- package/lib/commonjs/ui/components/index.js +12 -12
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +576 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +1 -1
- package/lib/commonjs/ui/index.js +19 -11
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +23 -18
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +18 -18
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +3 -3
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +4 -4
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +5 -5
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +3 -3
- package/lib/commonjs/ui/screens/AppInfoScreen.js +6 -6
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +3 -3
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +3 -3
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +3 -3
- package/lib/commonjs/ui/screens/ProfileScreen.js +2 -2
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +2 -2
- package/lib/commonjs/ui/screens/SignInScreen.js +182 -304
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +811 -712
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/commonjs/ui/store/index.js +52 -0
- package/lib/commonjs/ui/store/index.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +2 -2
- package/lib/commonjs/ui/styles/theme.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/module/assets/icons/OxyServices.js +1 -1
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/assets/illustrations/HighFive.js +55 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/core/index.js +2 -2
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/index.js +10 -10
- package/lib/module/index.js.map +1 -1
- package/lib/module/node/createAuth.js +90 -0
- package/lib/module/node/createAuth.js.map +1 -0
- package/lib/module/node/index.js +8 -4
- package/lib/module/node/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/ui/components/Avatar.js +2 -2
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +3 -3
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +1 -1
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/OxyLogo.js +1 -1
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +143 -138
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +2 -2
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +2 -2
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/Section.js +1 -1
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/icon/index.js +1 -1
- package/lib/module/ui/components/icon/index.js.map +1 -1
- package/lib/module/ui/components/index.js +12 -12
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +571 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +1 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/index.js +12 -10
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/OxyRouter.js +23 -18
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +5 -5
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +2 -2
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +4 -4
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +5 -5
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +3 -3
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +6 -6
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +3 -3
- package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +3 -3
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +3 -3
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +2 -2
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +2 -2
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +182 -304
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +810 -712
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +3 -3
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/store/index.js +44 -0
- package/lib/module/ui/store/index.js.map +1 -0
- package/lib/module/ui/styles/index.js +2 -2
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/theme.js +1 -1
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/node/createAuth.d.ts +7 -0
- package/lib/typescript/node/createAuth.d.ts.map +1 -0
- package/lib/typescript/node/index.d.ts +2 -0
- package/lib/typescript/node/index.d.ts.map +1 -1
- package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
- package/lib/typescript/types/express.d.ts +5 -0
- package/lib/typescript/types/react-redux.d.ts +5 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +2 -0
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
- package/lib/typescript/ui/store/index.d.ts +19 -0
- package/lib/typescript/ui/store/index.d.ts.map +1 -0
- package/package.json +10 -25
- package/src/assets/illustrations/HighFive.tsx +41 -0
- package/src/node/createAuth.ts +116 -0
- package/src/node/index.ts +4 -0
- package/src/types/expo-vector-icons.d.ts +3 -0
- package/src/types/express.d.ts +5 -0
- package/src/types/react-redux.d.ts +5 -0
- package/src/ui/components/OxyProvider.tsx +136 -135
- package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
- package/src/ui/components/internal/TextField.tsx +694 -0
- package/src/ui/index.ts +6 -2
- package/src/ui/navigation/OxyRouter.tsx +8 -3
- package/src/ui/screens/FeedbackScreen.tsx +1042 -0
- package/src/ui/screens/SignInScreen.tsx +179 -222
- package/src/ui/screens/SignUpScreen.tsx +772 -608
- package/src/ui/store/index.ts +51 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _vectorIcons = require("@expo/vector-icons");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const GroupedPillButtons = ({
|
|
13
|
+
buttons,
|
|
14
|
+
colors,
|
|
15
|
+
gap = 8
|
|
16
|
+
}) => {
|
|
17
|
+
const getButtonStyle = (button, index, totalButtons) => {
|
|
18
|
+
const baseStyle = {
|
|
19
|
+
flexDirection: 'row',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
paddingVertical: 6,
|
|
22
|
+
paddingHorizontal: 12,
|
|
23
|
+
gap: 6,
|
|
24
|
+
minWidth: 70,
|
|
25
|
+
borderWidth: 1,
|
|
26
|
+
shadowOffset: {
|
|
27
|
+
width: 0,
|
|
28
|
+
height: 2
|
|
29
|
+
},
|
|
30
|
+
shadowOpacity: 0.1,
|
|
31
|
+
shadowRadius: 4,
|
|
32
|
+
elevation: 2
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// Determine border radius based on position
|
|
36
|
+
let borderRadius = {
|
|
37
|
+
borderTopLeftRadius: 35,
|
|
38
|
+
borderBottomLeftRadius: 35,
|
|
39
|
+
borderTopRightRadius: 35,
|
|
40
|
+
borderBottomRightRadius: 35
|
|
41
|
+
};
|
|
42
|
+
if (totalButtons > 1) {
|
|
43
|
+
if (index === 0) {
|
|
44
|
+
// First button
|
|
45
|
+
borderRadius = {
|
|
46
|
+
borderTopLeftRadius: 35,
|
|
47
|
+
borderBottomLeftRadius: 35,
|
|
48
|
+
borderTopRightRadius: 12,
|
|
49
|
+
borderBottomRightRadius: 12
|
|
50
|
+
};
|
|
51
|
+
} else if (index === totalButtons - 1) {
|
|
52
|
+
// Last button
|
|
53
|
+
borderRadius = {
|
|
54
|
+
borderTopLeftRadius: 12,
|
|
55
|
+
borderBottomLeftRadius: 12,
|
|
56
|
+
borderTopRightRadius: 35,
|
|
57
|
+
borderBottomRightRadius: 35
|
|
58
|
+
};
|
|
59
|
+
} else {
|
|
60
|
+
// Middle button (if 3 buttons)
|
|
61
|
+
borderRadius = {
|
|
62
|
+
borderTopLeftRadius: 12,
|
|
63
|
+
borderBottomLeftRadius: 12,
|
|
64
|
+
borderTopRightRadius: 12,
|
|
65
|
+
borderBottomRightRadius: 12
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Determine colors based on variant
|
|
71
|
+
let backgroundColor = 'transparent';
|
|
72
|
+
let borderColor = colors.border;
|
|
73
|
+
let shadowColor = colors.border;
|
|
74
|
+
let textColor = colors.text;
|
|
75
|
+
switch (button.variant) {
|
|
76
|
+
case 'primary':
|
|
77
|
+
backgroundColor = colors.primary;
|
|
78
|
+
borderColor = colors.primary;
|
|
79
|
+
shadowColor = colors.primary;
|
|
80
|
+
textColor = '#FFFFFF';
|
|
81
|
+
break;
|
|
82
|
+
case 'secondary':
|
|
83
|
+
backgroundColor = colors.secondary || colors.primary;
|
|
84
|
+
borderColor = colors.secondary || colors.primary;
|
|
85
|
+
shadowColor = colors.secondary || colors.primary;
|
|
86
|
+
textColor = '#FFFFFF';
|
|
87
|
+
break;
|
|
88
|
+
case 'transparent':
|
|
89
|
+
default:
|
|
90
|
+
backgroundColor = 'transparent';
|
|
91
|
+
borderColor = colors.border;
|
|
92
|
+
shadowColor = colors.border;
|
|
93
|
+
textColor = colors.text;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
...baseStyle,
|
|
98
|
+
...borderRadius,
|
|
99
|
+
backgroundColor,
|
|
100
|
+
borderColor,
|
|
101
|
+
shadowColor
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
const getTextStyle = (button, colors) => {
|
|
105
|
+
const baseTextStyle = {
|
|
106
|
+
fontSize: 15,
|
|
107
|
+
fontWeight: '600',
|
|
108
|
+
flex: 1
|
|
109
|
+
};
|
|
110
|
+
let textColor = colors.text;
|
|
111
|
+
switch (button.variant) {
|
|
112
|
+
case 'primary':
|
|
113
|
+
case 'secondary':
|
|
114
|
+
textColor = '#FFFFFF';
|
|
115
|
+
break;
|
|
116
|
+
case 'transparent':
|
|
117
|
+
default:
|
|
118
|
+
textColor = colors.text;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
...baseTextStyle,
|
|
123
|
+
color: textColor
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
const getIconColor = (button, colors) => {
|
|
127
|
+
switch (button.variant) {
|
|
128
|
+
case 'primary':
|
|
129
|
+
case 'secondary':
|
|
130
|
+
return '#FFFFFF';
|
|
131
|
+
case 'transparent':
|
|
132
|
+
default:
|
|
133
|
+
return colors.text;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const isBackButton = button => {
|
|
137
|
+
return button.text.toLowerCase().includes('back') || button.icon === 'arrow-back' || button.icon === 'chevron-back';
|
|
138
|
+
};
|
|
139
|
+
const renderButtonContent = (button, colors, index) => {
|
|
140
|
+
const iconColor = getIconColor(button, colors);
|
|
141
|
+
const isBack = isBackButton(button);
|
|
142
|
+
const isFirstButton = index === 0;
|
|
143
|
+
const isSingleButton = buttons.length === 1;
|
|
144
|
+
if (button.loading) {
|
|
145
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
146
|
+
color: iconColor,
|
|
147
|
+
size: "small"
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Auto-detect icon placement based on button order and type
|
|
152
|
+
if (isSingleButton) {
|
|
153
|
+
// Single button: icon on right
|
|
154
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
155
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
156
|
+
style: getTextStyle(button, colors),
|
|
157
|
+
children: button.text
|
|
158
|
+
}), button.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
159
|
+
name: button.icon,
|
|
160
|
+
size: 16,
|
|
161
|
+
color: iconColor
|
|
162
|
+
})]
|
|
163
|
+
});
|
|
164
|
+
} else if (isFirstButton || isBack) {
|
|
165
|
+
// First button or back button: icon on left, text on right
|
|
166
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
167
|
+
children: [button.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
168
|
+
name: button.icon,
|
|
169
|
+
size: 16,
|
|
170
|
+
color: iconColor
|
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
172
|
+
style: getTextStyle(button, colors),
|
|
173
|
+
children: button.text
|
|
174
|
+
})]
|
|
175
|
+
});
|
|
176
|
+
} else {
|
|
177
|
+
// Second button or forward/action button: text on left, icon on right
|
|
178
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
179
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
180
|
+
style: getTextStyle(button, colors),
|
|
181
|
+
children: button.text
|
|
182
|
+
}), button.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
183
|
+
name: button.icon,
|
|
184
|
+
size: 16,
|
|
185
|
+
color: iconColor
|
|
186
|
+
})]
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
191
|
+
style: [styles.container, {
|
|
192
|
+
gap
|
|
193
|
+
}],
|
|
194
|
+
children: buttons.map((button, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
195
|
+
style: getButtonStyle(button, index, buttons.length),
|
|
196
|
+
onPress: button.onPress,
|
|
197
|
+
disabled: button.disabled || button.loading,
|
|
198
|
+
testID: button.testID,
|
|
199
|
+
children: renderButtonContent(button, colors, index)
|
|
200
|
+
}, index))
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
const styles = _reactNative.StyleSheet.create({
|
|
204
|
+
container: {
|
|
205
|
+
flexDirection: 'row',
|
|
206
|
+
justifyContent: 'center',
|
|
207
|
+
marginTop: 16,
|
|
208
|
+
marginBottom: 8,
|
|
209
|
+
width: '100%'
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
var _default = exports.default = GroupedPillButtons;
|
|
213
|
+
//# sourceMappingURL=GroupedPillButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_jsxRuntime","e","__esModule","default","GroupedPillButtons","buttons","colors","gap","getButtonStyle","button","index","totalButtons","baseStyle","flexDirection","alignItems","paddingVertical","paddingHorizontal","minWidth","borderWidth","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderRadius","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","backgroundColor","borderColor","border","shadowColor","textColor","text","variant","primary","secondary","getTextStyle","baseTextStyle","fontSize","fontWeight","flex","color","getIconColor","isBackButton","toLowerCase","includes","icon","renderButtonContent","iconColor","isBack","isFirstButton","isSingleButton","length","loading","jsx","ActivityIndicator","size","jsxs","Fragment","children","Text","style","Ionicons","name","View","styles","container","map","TouchableOpacity","onPress","disabled","testID","StyleSheet","create","justifyContent","marginTop","marginBottom","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/internal/GroupedPillButtons.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA8C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAkB9C,MAAMG,kBAAqD,GAAGA,CAAC;EAC3DC,OAAO;EACPC,MAAM;EACNC,GAAG,GAAG;AACV,CAAC,KAAK;EACF,MAAMC,cAAc,GAAGA,CAACC,MAAoB,EAAEC,KAAa,EAAEC,YAAoB,KAAK;IAClF,MAAMC,SAAS,GAAG;MACdC,aAAa,EAAE,KAAc;MAC7BC,UAAU,EAAE,QAAiB;MAC7BC,eAAe,EAAE,CAAC;MAClBC,iBAAiB,EAAE,EAAE;MACrBT,GAAG,EAAE,CAAC;MACNU,QAAQ,EAAE,EAAE;MACZC,WAAW,EAAE,CAAC;MACdC,YAAY,EAAE;QACVC,KAAK,EAAE,CAAC;QACRC,MAAM,EAAE;M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