@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.mjs
CHANGED
|
@@ -5404,10 +5404,6 @@ function SolSlider({
|
|
|
5404
5404
|
const filledWidth = `${ratio * 100}%`;
|
|
5405
5405
|
const markers = [min, max * 0.25, max * 0.5, max * 0.75, max];
|
|
5406
5406
|
return /* @__PURE__ */ jsxs13(View14, { style: styles13.container, children: [
|
|
5407
|
-
/* @__PURE__ */ jsxs13(View14, { style: styles13.valueRow, children: [
|
|
5408
|
-
/* @__PURE__ */ jsx16(Text14, { style: [styles13.valueText, { color: accent }], children: parseFloat(value.toFixed(4)) }),
|
|
5409
|
-
/* @__PURE__ */ jsx16(Text14, { style: [styles13.solLabel, { color: accent }], children: "SOL" })
|
|
5410
|
-
] }),
|
|
5411
5407
|
/* @__PURE__ */ jsxs13(
|
|
5412
5408
|
View14,
|
|
5413
5409
|
{
|
|
@@ -5463,25 +5459,7 @@ function SolSlider({
|
|
|
5463
5459
|
}
|
|
5464
5460
|
var styles13 = StyleSheet14.create({
|
|
5465
5461
|
container: {
|
|
5466
|
-
paddingVertical:
|
|
5467
|
-
},
|
|
5468
|
-
valueRow: {
|
|
5469
|
-
flexDirection: "row",
|
|
5470
|
-
alignItems: "baseline",
|
|
5471
|
-
justifyContent: "center",
|
|
5472
|
-
marginBottom: 16,
|
|
5473
|
-
gap: 4
|
|
5474
|
-
},
|
|
5475
|
-
valueText: {
|
|
5476
|
-
fontSize: 36,
|
|
5477
|
-
fontWeight: "900",
|
|
5478
|
-
letterSpacing: -1,
|
|
5479
|
-
fontVariant: ["tabular-nums"]
|
|
5480
|
-
},
|
|
5481
|
-
solLabel: {
|
|
5482
|
-
fontSize: 16,
|
|
5483
|
-
fontWeight: "700",
|
|
5484
|
-
opacity: 0.6
|
|
5462
|
+
paddingVertical: 4
|
|
5485
5463
|
},
|
|
5486
5464
|
trackContainer: {
|
|
5487
5465
|
height: THUMB_SIZE + 16,
|
|
@@ -5652,7 +5630,6 @@ function JoinGameSheet({
|
|
|
5652
5630
|
const potentialWinnings = selectedOdds !== "\u2014" ? formatSol(parseFloat(selectedOdds) * wager) : "\u2014";
|
|
5653
5631
|
const homeName = shortName ? shortName(opponents[0]?.name) : opponents[0]?.name || "Home";
|
|
5654
5632
|
const awayName = shortName ? shortName(opponents[1]?.name) : opponents[1]?.name || "Away";
|
|
5655
|
-
const selectedName = selectedTeam === "home" ? homeName : selectedTeam === "away" ? awayName : "\u2014";
|
|
5656
5633
|
const alreadyJoined = useMemo9(() => {
|
|
5657
5634
|
if (!wallet.publicKey) return false;
|
|
5658
5635
|
const addr = wallet.publicKey.toBase58();
|
|
@@ -5759,18 +5736,6 @@ function JoinGameSheet({
|
|
|
5759
5736
|
)
|
|
5760
5737
|
] })
|
|
5761
5738
|
] }),
|
|
5762
|
-
selectedTeam && !isPoolModeEnabled && /* @__PURE__ */ jsx17(View15, { style: styles14.sliderSection, children: /* @__PURE__ */ jsx17(
|
|
5763
|
-
SolSlider,
|
|
5764
|
-
{
|
|
5765
|
-
value: wager,
|
|
5766
|
-
min: game.buyIn,
|
|
5767
|
-
max: maxWager,
|
|
5768
|
-
step: 0.01,
|
|
5769
|
-
accentColor: selectedTeam === "home" ? homeColor : awayColor,
|
|
5770
|
-
onValueChange: setWager,
|
|
5771
|
-
onTick: onSliderTick
|
|
5772
|
-
}
|
|
5773
|
-
) }),
|
|
5774
5739
|
/* @__PURE__ */ jsxs14(View15, { style: [styles14.summaryCard, { backgroundColor: t.surface, borderColor: t.border }], children: [
|
|
5775
5740
|
/* @__PURE__ */ jsxs14(View15, { style: styles14.summaryRow, children: [
|
|
5776
5741
|
/* @__PURE__ */ jsx17(Text15, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Your wager" }),
|
|
@@ -5794,11 +5759,6 @@ function JoinGameSheet({
|
|
|
5794
5759
|
] })
|
|
5795
5760
|
] })
|
|
5796
5761
|
] }) : /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
5797
|
-
/* @__PURE__ */ jsxs14(View15, { style: styles14.summaryRow, children: [
|
|
5798
|
-
/* @__PURE__ */ jsx17(Text15, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Your side" }),
|
|
5799
|
-
/* @__PURE__ */ jsx17(Text15, { style: [styles14.summaryValue, { color: t.text }], children: selectedName })
|
|
5800
|
-
] }),
|
|
5801
|
-
/* @__PURE__ */ jsx17(View15, { style: [styles14.summarySep, { backgroundColor: t.border }] }),
|
|
5802
5762
|
/* @__PURE__ */ jsxs14(View15, { style: styles14.summaryRow, children: [
|
|
5803
5763
|
/* @__PURE__ */ jsx17(Text15, { style: [styles14.summaryLabel, { color: t.textMuted }], children: "Total pool" }),
|
|
5804
5764
|
/* @__PURE__ */ jsxs14(Text15, { style: [styles14.summaryValue, { color: t.text }], children: [
|
|
@@ -5813,6 +5773,18 @@ function JoinGameSheet({
|
|
|
5813
5773
|
] })
|
|
5814
5774
|
] })
|
|
5815
5775
|
] }),
|
|
5776
|
+
selectedTeam && !isPoolModeEnabled && /* @__PURE__ */ jsx17(
|
|
5777
|
+
SolSlider,
|
|
5778
|
+
{
|
|
5779
|
+
value: wager,
|
|
5780
|
+
min: game.buyIn,
|
|
5781
|
+
max: maxWager,
|
|
5782
|
+
step: 0.01,
|
|
5783
|
+
accentColor: selectedTeam === "home" ? homeColor : awayColor,
|
|
5784
|
+
onValueChange: setWager,
|
|
5785
|
+
onTick: onSliderTick
|
|
5786
|
+
}
|
|
5787
|
+
),
|
|
5816
5788
|
alreadyJoined && /* @__PURE__ */ jsx17(View15, { style: [styles14.errorBox, { backgroundColor: t.surface, borderColor: t.border }], children: /* @__PURE__ */ jsx17(Text15, { style: [styles14.errorText, { color: t.textMuted }], children: isPoolModeEnabled ? "You've already joined this pool." : "You've already joined this game." }) }),
|
|
5817
5789
|
mutation.error && /* @__PURE__ */ jsx17(View15, { style: [styles14.errorBox, { backgroundColor: t.errorBg, borderColor: t.errorBorder }], children: /* @__PURE__ */ jsx17(Text15, { style: [styles14.errorText, { color: t.errorText }], children: mutation.error.message }) }),
|
|
5818
5790
|
/* @__PURE__ */ jsx17(
|
|
@@ -5994,11 +5966,8 @@ var styles14 = StyleSheet15.create({
|
|
|
5994
5966
|
flexDirection: "row",
|
|
5995
5967
|
gap: 12
|
|
5996
5968
|
},
|
|
5997
|
-
sliderSection: {
|
|
5998
|
-
marginTop: 16
|
|
5999
|
-
},
|
|
6000
5969
|
summaryCard: {
|
|
6001
|
-
marginTop:
|
|
5970
|
+
marginTop: 20,
|
|
6002
5971
|
borderRadius: 16,
|
|
6003
5972
|
borderWidth: 1,
|
|
6004
5973
|
overflow: "hidden"
|