@dubsdotapp/expo 0.5.8 → 0.5.9
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/dist/index.js +14 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ui/game/JoinGameSheet.tsx +14 -25
- package/src/ui/game/SolSlider.tsx +1 -27
- package/dist/index.d.mts +0 -1477
- package/dist/index.d.ts +0 -1477
package/dist/index.js
CHANGED
|
@@ -5409,10 +5409,6 @@ function SolSlider({
|
|
|
5409
5409
|
const filledWidth = `${ratio * 100}%`;
|
|
5410
5410
|
const markers = [min, max * 0.25, max * 0.5, max * 0.75, max];
|
|
5411
5411
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_native19.View, { style: styles13.container, children: [
|
|
5412
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_native19.View, { style: styles13.valueRow, children: [
|
|
5413
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_native19.Text, { style: [styles13.valueText, { color: accent }], children: parseFloat(value.toFixed(4)) }),
|
|
5414
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_native19.Text, { style: [styles13.solLabel, { color: accent }], children: "SOL" })
|
|
5415
|
-
] }),
|
|
5416
5412
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
5417
5413
|
import_react_native19.View,
|
|
5418
5414
|
{
|
|
@@ -5468,25 +5464,7 @@ function SolSlider({
|
|
|
5468
5464
|
}
|
|
5469
5465
|
var styles13 = import_react_native19.StyleSheet.create({
|
|
5470
5466
|
container: {
|
|
5471
|
-
paddingVertical:
|
|
5472
|
-
},
|
|
5473
|
-
valueRow: {
|
|
5474
|
-
flexDirection: "row",
|
|
5475
|
-
alignItems: "baseline",
|
|
5476
|
-
justifyContent: "center",
|
|
5477
|
-
marginBottom: 16,
|
|
5478
|
-
gap: 4
|
|
5479
|
-
},
|
|
5480
|
-
valueText: {
|
|
5481
|
-
fontSize: 36,
|
|
5482
|
-
fontWeight: "900",
|
|
5483
|
-
letterSpacing: -1,
|
|
5484
|
-
fontVariant: ["tabular-nums"]
|
|
5485
|
-
},
|
|
5486
|
-
solLabel: {
|
|
5487
|
-
fontSize: 16,
|
|
5488
|
-
fontWeight: "700",
|
|
5489
|
-
opacity: 0.6
|
|
5467
|
+
paddingVertical: 4
|
|
5490
5468
|
},
|
|
5491
5469
|
trackContainer: {
|
|
5492
5470
|
height: THUMB_SIZE + 16,
|
|
@@ -5657,7 +5635,6 @@ function JoinGameSheet({
|
|
|
5657
5635
|
const potentialWinnings = selectedOdds !== "\u2014" ? formatSol(parseFloat(selectedOdds) * wager) : "\u2014";
|
|
5658
5636
|
const homeName = shortName ? shortName(opponents[0]?.name) : opponents[0]?.name || "Home";
|
|
5659
5637
|
const awayName = shortName ? shortName(opponents[1]?.name) : opponents[1]?.name || "Away";
|
|
5660
|
-
const selectedName = selectedTeam === "home" ? homeName : selectedTeam === "away" ? awayName : "\u2014";
|
|
5661
5638
|
const alreadyJoined = (0, import_react34.useMemo)(() => {
|
|
5662
5639
|
if (!wallet.publicKey) return false;
|
|
5663
5640
|
const addr = wallet.publicKey.toBase58();
|
|
@@ -5764,18 +5741,6 @@ function JoinGameSheet({
|
|
|
5764
5741
|
)
|
|
5765
5742
|
] })
|
|
5766
5743
|
] }),
|
|
5767
|
-
selectedTeam && !isPoolModeEnabled && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.View, { style: styles14.sliderSection, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
5768
|
-
SolSlider,
|
|
5769
|
-
{
|
|
5770
|
-
value: wager,
|
|
5771
|
-
min: game.buyIn,
|
|
5772
|
-
max: maxWager,
|
|
5773
|
-
step: 0.01,
|
|
5774
|
-
accentColor: selectedTeam === "home" ? homeColor : awayColor,
|
|
5775
|
-
onValueChange: setWager,
|
|
5776
|
-
onTick: onSliderTick
|
|
5777
|
-
}
|
|
5778
|
-
) }),
|
|
5779
5744
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native20.View, { style: [styles14.summaryCard, { backgroundColor: t.surface, borderColor: t.border }], children: [
|
|
5780
5745
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native20.View, { style: styles14.summaryRow, children: [
|
|
5781
5746
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Your wager" }),
|
|
@@ -5799,11 +5764,6 @@ function JoinGameSheet({
|
|
|
5799
5764
|
] })
|
|
5800
5765
|
] })
|
|
5801
5766
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
5802
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native20.View, { style: styles14.summaryRow, children: [
|
|
5803
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Your side" }),
|
|
5804
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.summaryValue, { color: t.text }], children: selectedName })
|
|
5805
|
-
] }),
|
|
5806
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.View, { style: [styles14.summarySep, { backgroundColor: t.border }] }),
|
|
5807
5767
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native20.View, { style: styles14.summaryRow, children: [
|
|
5808
5768
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Total pool" }),
|
|
5809
5769
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native20.Text, { style: [styles14.summaryValue, { color: t.text }], children: [
|
|
@@ -5818,6 +5778,18 @@ function JoinGameSheet({
|
|
|
5818
5778
|
] })
|
|
5819
5779
|
] })
|
|
5820
5780
|
] }),
|
|
5781
|
+
selectedTeam && !isPoolModeEnabled && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
5782
|
+
SolSlider,
|
|
5783
|
+
{
|
|
5784
|
+
value: wager,
|
|
5785
|
+
min: game.buyIn,
|
|
5786
|
+
max: maxWager,
|
|
5787
|
+
step: 0.01,
|
|
5788
|
+
accentColor: selectedTeam === "home" ? homeColor : awayColor,
|
|
5789
|
+
onValueChange: setWager,
|
|
5790
|
+
onTick: onSliderTick
|
|
5791
|
+
}
|
|
5792
|
+
),
|
|
5821
5793
|
alreadyJoined && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.View, { style: [styles14.errorBox, { backgroundColor: t.surface, borderColor: t.border }], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.errorText, { color: t.textMuted }], children: isPoolModeEnabled ? "You've already joined this pool." : "You've already joined this game." }) }),
|
|
5822
5794
|
mutation.error && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.View, { style: [styles14.errorBox, { backgroundColor: t.errorBg, borderColor: t.errorBorder }], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_native20.Text, { style: [styles14.errorText, { color: t.errorText }], children: mutation.error.message }) }),
|
|
5823
5795
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -5999,11 +5971,8 @@ var styles14 = import_react_native20.StyleSheet.create({
|
|
|
5999
5971
|
flexDirection: "row",
|
|
6000
5972
|
gap: 12
|
|
6001
5973
|
},
|
|
6002
|
-
sliderSection: {
|
|
6003
|
-
marginTop: 16
|
|
6004
|
-
},
|
|
6005
5974
|
summaryCard: {
|
|
6006
|
-
marginTop:
|
|
5975
|
+
marginTop: 20,
|
|
6007
5976
|
borderRadius: 16,
|
|
6008
5977
|
borderWidth: 1,
|
|
6009
5978
|
overflow: "hidden"
|