be-components 1.0.8 → 1.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.
- package/lib/commonjs/AdServer/components/CompanyAdCard.js +3 -5
- package/lib/commonjs/AdServer/components/CompanyAdCard.js.map +1 -1
- package/lib/commonjs/AdServer/index.js +9 -10
- package/lib/commonjs/AdServer/index.js.map +1 -1
- package/lib/commonjs/ApiOverrides/index.js +6 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +16 -17
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +58 -60
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +67 -69
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +14 -16
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/BettorSearch/index.js +8 -10
- package/lib/commonjs/BettorSearch/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js +92 -94
- package/lib/commonjs/Bracket/components/BracketCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js +37 -39
- package/lib/commonjs/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js +18 -19
- package/lib/commonjs/Bracket/components/BracketPlay/BracketNavigator.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js +7 -8
- package/lib/commonjs/Bracket/components/BracketPlay/BracketRound.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js +45 -46
- package/lib/commonjs/Bracket/components/BracketPlay/RoundEvent.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketPlay/index.js +27 -29
- package/lib/commonjs/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/commonjs/Bracket/components/BracketSelector.js +21 -22
- package/lib/commonjs/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js +34 -36
- package/lib/commonjs/Bracket/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js +20 -22
- package/lib/commonjs/Bracket/components/JoinCompetitionCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js +6 -7
- package/lib/commonjs/Bracket/components/PlayerBalanceCard.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js +75 -77
- package/lib/commonjs/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/commonjs/Bracket/components/PlayerBrackets.js +27 -28
- package/lib/commonjs/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/commonjs/Bracket/components/RoomMenu.js +15 -16
- package/lib/commonjs/Bracket/components/RoomMenu.js.map +1 -1
- package/lib/commonjs/Bracket/index.js +9 -11
- package/lib/commonjs/Bracket/index.js.map +1 -1
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +43 -44
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +7 -8
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +12 -13
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +2 -4
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +7 -8
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +58 -60
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +20 -21
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionCard.js +25 -26
- package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +31 -32
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +34 -36
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +116 -118
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +16 -17
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSelector.js +14 -16
- package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js +43 -45
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +29 -31
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +39 -41
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/ManageSeasonForm.js +85 -87
- package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +17 -19
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/MatchMarketCard.js +25 -26
- package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/NavOutPrompt.js +18 -19
- package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/SeasonInfoModal.js +52 -54
- package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +30 -31
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +30 -32
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +3 -5
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +7 -8
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +3 -4
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +650 -373
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/ImageUploader.js +3 -5
- package/lib/commonjs/Components/ImageUploader.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +124 -125
- package/lib/commonjs/Components/Jerseys.js.map +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js +7 -9
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/Spring.js +1 -3
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/Components/Switch.js +8 -9
- package/lib/commonjs/Components/Switch.js.map +1 -1
- package/lib/commonjs/Components/Text.js +33 -5
- package/lib/commonjs/Components/Text.js.map +1 -1
- package/lib/commonjs/Components/TextInput.js +1 -2
- package/lib/commonjs/Components/TextInput.js.map +1 -1
- package/lib/commonjs/LocationTracker/index.js +27 -28
- package/lib/commonjs/LocationTracker/index.js.map +1 -1
- package/lib/commonjs/Observer/Observer.js +2 -4
- package/lib/commonjs/Observer/Observer.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignPlay.js +56 -58
- package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignProgressBar.js +11 -13
- package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignResult.js +56 -58
- package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -1
- package/lib/commonjs/Poll/components/CampaignSelector.js +12 -14
- package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCampaignCard.js +7 -8
- package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollCard.js +49 -51
- package/lib/commonjs/Poll/components/PollCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollOptionCard.js +14 -16
- package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -1
- package/lib/commonjs/Poll/components/PollSelectCard.js +25 -26
- package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/commonjs/Poll/components/ResponseTimer.js +3 -5
- package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -1
- package/lib/commonjs/Poll/components/WidgetHeader.js +11 -12
- package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/ResultCard.js +47 -49
- package/lib/commonjs/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/commonjs/Poll/flashmarket/index.js +52 -54
- package/lib/commonjs/Poll/flashmarket/index.js.map +1 -1
- package/lib/commonjs/Poll/index.js +6 -8
- package/lib/commonjs/Poll/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +35 -37
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +35 -36
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +50 -52
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +24 -26
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +36 -38
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +17 -19
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +15 -16
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +66 -68
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +29 -31
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +63 -65
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +16 -18
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js +11 -12
- package/lib/commonjs/SocialComponents/PlayerCard.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js +3 -4
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerList.js +4 -6
- package/lib/commonjs/SocialComponents/PlayerList.js.map +1 -1
- package/lib/commonjs/Socket/api/index.js +18 -0
- package/lib/commonjs/Socket/api/index.js.map +1 -0
- package/lib/commonjs/Socket/index.js +120 -0
- package/lib/commonjs/Socket/index.js.map +1 -0
- package/lib/commonjs/Squares/api/index.js +97 -0
- package/lib/commonjs/Squares/api/index.js.map +1 -0
- package/lib/commonjs/Squares/components/BidForm.js +173 -0
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -0
- package/lib/commonjs/Squares/components/BidToggle.js +63 -0
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -0
- package/lib/commonjs/Squares/components/BoardStats.js +144 -0
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -0
- package/lib/commonjs/Squares/components/EventCard.js +132 -0
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -0
- package/lib/commonjs/Squares/components/MySquaresCard.js +109 -0
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -0
- package/lib/commonjs/Squares/components/OfferForm.js +181 -0
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -0
- package/lib/commonjs/Squares/components/ResultsCard.js +108 -0
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareCard.js +337 -0
- package/lib/commonjs/Squares/components/SquareCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareOfferCard.js +266 -0
- package/lib/commonjs/Squares/components/SquareOfferCard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquareOwners.js +123 -0
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -0
- package/lib/commonjs/Squares/components/SquaresBoard.js +209 -0
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -0
- package/lib/commonjs/Squares/components/SquaresDetails.js +90 -0
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -0
- package/lib/commonjs/Squares/index.js +568 -0
- package/lib/commonjs/Squares/index.js.map +1 -0
- package/lib/commonjs/Wallet/components/ACHAddCard.js +38 -39
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js +17 -18
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js +32 -34
- package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +31 -32
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +31 -33
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +7 -8
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +44 -46
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +41 -43
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +54 -55
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +15 -17
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +23 -25
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +40 -42
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js +36 -38
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +33 -35
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +47 -49
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +34 -35
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +15 -17
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js +10 -12
- package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js +20 -22
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +49 -51
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js +98 -100
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +58 -60
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +46 -48
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +45 -47
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +86 -0
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/AdServer/components/CompanyAdCard.js +1 -1
- package/lib/module/AdServer/components/CompanyAdCard.js.map +1 -1
- package/lib/module/AdServer/index.js +2 -1
- package/lib/module/AdServer/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +6 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +0 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +1 -1
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/BettorSearch/index.js +1 -1
- package/lib/module/BettorSearch/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketCompetitionCard.js +1 -1
- package/lib/module/Bracket/components/BracketCompetitionCard.js.map +1 -1
- package/lib/module/Bracket/components/BracketCompetitionSelector.js +1 -1
- package/lib/module/Bracket/components/BracketCompetitionSelector.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/BracketNavigator.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/BracketNavigator.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/BracketRound.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/BracketRound.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/RoundEvent.js +0 -1
- package/lib/module/Bracket/components/BracketPlay/RoundEvent.js.map +1 -1
- package/lib/module/Bracket/components/BracketPlay/index.js +1 -1
- package/lib/module/Bracket/components/BracketPlay/index.js.map +1 -1
- package/lib/module/Bracket/components/BracketSelector.js +0 -1
- package/lib/module/Bracket/components/BracketSelector.js.map +1 -1
- package/lib/module/Bracket/components/CompetitionLeaderboard.js +1 -1
- package/lib/module/Bracket/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Bracket/components/JoinCompetitionCard.js +1 -1
- package/lib/module/Bracket/components/JoinCompetitionCard.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBalanceCard.js +0 -1
- package/lib/module/Bracket/components/PlayerBalanceCard.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBracketManager.js +1 -1
- package/lib/module/Bracket/components/PlayerBracketManager.js.map +1 -1
- package/lib/module/Bracket/components/PlayerBrackets.js +0 -1
- package/lib/module/Bracket/components/PlayerBrackets.js.map +1 -1
- package/lib/module/Bracket/components/RoomMenu.js +0 -1
- package/lib/module/Bracket/components/RoomMenu.js.map +1 -1
- package/lib/module/Bracket/index.js +1 -1
- package/lib/module/Bracket/index.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +0 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js +0 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js +0 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js +0 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js +0 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +1 -1
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +0 -1
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionCard.js +0 -1
- package/lib/module/Competition/components/CompetitionCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +0 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js +0 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionSelector.js +1 -1
- package/lib/module/Competition/components/CompetitionSelector.js.map +1 -1
- package/lib/module/Competition/components/CompetitionTypeCard.js +1 -1
- package/lib/module/Competition/components/CompetitionTypeCard.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +1 -1
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/ManageSeasonForm.js +1 -1
- package/lib/module/Competition/components/ManageSeasonForm.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +1 -1
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/MatchMarketCard.js +0 -1
- package/lib/module/Competition/components/MatchMarketCard.js.map +1 -1
- package/lib/module/Competition/components/NavOutPrompt.js +0 -1
- package/lib/module/Competition/components/NavOutPrompt.js.map +1 -1
- package/lib/module/Competition/components/SeasonInfoModal.js +1 -1
- package/lib/module/Competition/components/SeasonInfoModal.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +0 -1
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +1 -1
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +1 -1
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +0 -1
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/Checkbox.js +0 -1
- package/lib/module/Components/Checkbox.js.map +1 -1
- package/lib/module/Components/Icons.js +279 -2
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/ImageUploader.js +1 -1
- package/lib/module/Components/ImageUploader.js.map +1 -1
- package/lib/module/Components/Jerseys.js +0 -1
- package/lib/module/Components/Jerseys.js.map +1 -1
- package/lib/module/Components/LinearDiagnal.js +1 -1
- package/lib/module/Components/LinearDiagnal.js.map +1 -1
- package/lib/module/Components/Spring.js +0 -1
- package/lib/module/Components/Spring.js.map +1 -1
- package/lib/module/Components/Switch.js +0 -1
- package/lib/module/Components/Switch.js.map +1 -1
- package/lib/module/Components/Text.js +33 -5
- package/lib/module/Components/Text.js.map +1 -1
- package/lib/module/Components/TextInput.js +0 -1
- package/lib/module/Components/TextInput.js.map +1 -1
- package/lib/module/LocationTracker/index.js +0 -1
- package/lib/module/LocationTracker/index.js.map +1 -1
- package/lib/module/Observer/Observer.js +0 -1
- package/lib/module/Observer/Observer.js.map +1 -1
- package/lib/module/Poll/components/CampaignPlay.js +0 -1
- package/lib/module/Poll/components/CampaignPlay.js.map +1 -1
- package/lib/module/Poll/components/CampaignProgressBar.js +0 -1
- package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -1
- package/lib/module/Poll/components/CampaignResult.js +0 -1
- package/lib/module/Poll/components/CampaignResult.js.map +1 -1
- package/lib/module/Poll/components/CampaignSelector.js +1 -1
- package/lib/module/Poll/components/CampaignSelector.js.map +1 -1
- package/lib/module/Poll/components/PollCampaignCard.js +0 -1
- package/lib/module/Poll/components/PollCampaignCard.js.map +1 -1
- package/lib/module/Poll/components/PollCard.js +0 -1
- package/lib/module/Poll/components/PollCard.js.map +1 -1
- package/lib/module/Poll/components/PollOptionCard.js +1 -1
- package/lib/module/Poll/components/PollOptionCard.js.map +1 -1
- package/lib/module/Poll/components/PollSelectCard.js +0 -1
- package/lib/module/Poll/components/PollSelectCard.js.map +1 -1
- package/lib/module/Poll/components/ResponseTimer.js +1 -1
- package/lib/module/Poll/components/ResponseTimer.js.map +1 -1
- package/lib/module/Poll/components/WidgetHeader.js +0 -1
- package/lib/module/Poll/components/WidgetHeader.js.map +1 -1
- package/lib/module/Poll/flashmarket/ResultCard.js +1 -1
- package/lib/module/Poll/flashmarket/ResultCard.js.map +1 -1
- package/lib/module/Poll/flashmarket/index.js +1 -1
- package/lib/module/Poll/flashmarket/index.js.map +1 -1
- package/lib/module/Poll/index.js +1 -1
- package/lib/module/Poll/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +0 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +0 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +1 -1
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/SocialComponents/PlayerCard.js +0 -1
- package/lib/module/SocialComponents/PlayerCard.js.map +1 -1
- package/lib/module/SocialComponents/PlayerFollowButton.js +0 -1
- package/lib/module/SocialComponents/PlayerFollowButton.js.map +1 -1
- package/lib/module/SocialComponents/PlayerList.js +1 -1
- package/lib/module/SocialComponents/PlayerList.js.map +1 -1
- package/lib/module/Socket/api/index.js +13 -0
- package/lib/module/Socket/api/index.js.map +1 -0
- package/lib/module/Socket/index.js +113 -0
- package/lib/module/Socket/index.js.map +1 -0
- package/lib/module/Squares/api/index.js +91 -0
- package/lib/module/Squares/api/index.js.map +1 -0
- package/lib/module/Squares/components/BidForm.js +166 -0
- package/lib/module/Squares/components/BidForm.js.map +1 -0
- package/lib/module/Squares/components/BidToggle.js +56 -0
- package/lib/module/Squares/components/BidToggle.js.map +1 -0
- package/lib/module/Squares/components/BoardStats.js +137 -0
- package/lib/module/Squares/components/BoardStats.js.map +1 -0
- package/lib/module/Squares/components/EventCard.js +125 -0
- package/lib/module/Squares/components/EventCard.js.map +1 -0
- package/lib/module/Squares/components/MySquaresCard.js +102 -0
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -0
- package/lib/module/Squares/components/OfferForm.js +174 -0
- package/lib/module/Squares/components/OfferForm.js.map +1 -0
- package/lib/module/Squares/components/ResultsCard.js +101 -0
- package/lib/module/Squares/components/ResultsCard.js.map +1 -0
- package/lib/module/Squares/components/SquareCard.js +330 -0
- package/lib/module/Squares/components/SquareCard.js.map +1 -0
- package/lib/module/Squares/components/SquareOfferCard.js +259 -0
- package/lib/module/Squares/components/SquareOfferCard.js.map +1 -0
- package/lib/module/Squares/components/SquareOwners.js +116 -0
- package/lib/module/Squares/components/SquareOwners.js.map +1 -0
- package/lib/module/Squares/components/SquaresBoard.js +202 -0
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -0
- package/lib/module/Squares/components/SquaresDetails.js +83 -0
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -0
- package/lib/module/Squares/index.js +561 -0
- package/lib/module/Squares/index.js.map +1 -0
- package/lib/module/Wallet/components/ACHAddCard.js +0 -1
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountCard.js +0 -1
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +0 -1
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/module/Wallet/components/AddressCard.js +0 -1
- package/lib/module/Wallet/components/AddressCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +1 -1
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +1 -1
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +0 -1
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js +0 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +0 -1
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/OrderManager.js +1 -1
- package/lib/module/Wallet/components/OrderManager.js.map +1 -1
- package/lib/module/Wallet/components/RemoveAccount.js +0 -1
- package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js +0 -1
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +1 -1
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +1 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/styles.js +86 -0
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/AdServer/components/CompanyAdCard.d.ts +1 -2
- package/lib/typescript/src/AdServer/components/CompanyAdCard.d.ts.map +1 -1
- package/lib/typescript/src/AdServer/index.d.ts +2 -3
- package/lib/typescript/src/AdServer/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +1 -2
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +1 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/index.d.ts +1 -2
- package/lib/typescript/src/BettorSearch/index.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketCompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketCompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketCompetitionSelector.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketCompetitionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketNavigator.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketNavigator.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketRound.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/BracketRound.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/RoundEvent.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/RoundEvent.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketPlay/index.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketPlay/index.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/BracketSelector.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/BracketSelector.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/CompetitionLeaderboard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/JoinCompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/JoinCompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBalanceCard.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBalanceCard.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBracketManager.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBracketManager.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/PlayerBrackets.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/PlayerBrackets.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/components/RoomMenu.d.ts +1 -2
- package/lib/typescript/src/Bracket/components/RoomMenu.d.ts.map +1 -1
- package/lib/typescript/src/Bracket/index.d.ts +1 -2
- package/lib/typescript/src/Bracket/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts +1 -2
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts +1 -2
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -2
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +1 -2
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts +1 -2
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +1 -2
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts +1 -2
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +1 -2
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/Checkbox.d.ts +1 -2
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +57 -53
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts +1 -2
- package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/src/Components/Jerseys.d.ts +2 -3
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/src/Components/LinearDiagnal.d.ts +1 -2
- package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Spring.d.ts +1 -2
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/src/Components/Switch.d.ts +1 -2
- package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
- package/lib/typescript/src/Components/Text.d.ts +3 -2
- package/lib/typescript/src/Components/Text.d.ts.map +1 -1
- package/lib/typescript/src/Components/TextInput.d.ts +1 -2
- package/lib/typescript/src/Components/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/index.d.ts +1 -2
- package/lib/typescript/src/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/src/Observer/Observer.d.ts +1 -2
- package/lib/typescript/src/Observer/Observer.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts +1 -2
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +1 -2
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts +1 -2
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts.map +1 -1
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts +1 -2
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts.map +1 -1
- package/lib/typescript/src/Poll/flashmarket/ResultCard.d.ts +1 -2
- package/lib/typescript/src/Poll/flashmarket/ResultCard.d.ts.map +1 -1
- package/lib/typescript/src/Poll/flashmarket/index.d.ts +1 -2
- package/lib/typescript/src/Poll/flashmarket/index.d.ts.map +1 -1
- package/lib/typescript/src/Poll/index.d.ts +1 -2
- package/lib/typescript/src/Poll/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts +1 -2
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts.map +1 -1
- package/lib/typescript/src/Socket/api/index.d.ts +6 -0
- package/lib/typescript/src/Socket/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Socket/index.d.ts +11 -0
- package/lib/typescript/src/Socket/index.d.ts.map +1 -0
- package/lib/typescript/src/Squares/api/index.d.ts +29 -0
- package/lib/typescript/src/Squares/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BidForm.d.ts +21 -0
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BidToggle.d.ts +9 -0
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/BoardStats.d.ts +10 -0
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/EventCard.d.ts +8 -0
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts +13 -0
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/OfferForm.d.ts +22 -0
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts +11 -0
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareCard.d.ts +20 -0
- package/lib/typescript/src/Squares/components/SquareCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts +12 -0
- package/lib/typescript/src/Squares/components/SquareOfferCard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts +9 -0
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts +18 -0
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -0
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts +9 -0
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -0
- package/lib/typescript/src/Squares/index.d.ts +14 -0
- package/lib/typescript/src/Squares/index.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts +1 -2
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +86 -0
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AdServer/components/CompanyAdCard.tsx +1 -1
- package/src/AdServer/index.tsx +2 -1
- package/src/ApiOverrides/index.ts +6 -3
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +0 -1
- package/src/Authenticator/Components/LoginForm.tsx +1 -1
- package/src/Authenticator/Components/StrategyForm.tsx +1 -1
- package/src/Authenticator/index.tsx +1 -1
- package/src/BettorSearch/index.tsx +1 -1
- package/src/Bracket/components/BracketCompetitionCard.tsx +1 -1
- package/src/Bracket/components/BracketCompetitionSelector.tsx +1 -1
- package/src/Bracket/components/BracketPlay/BracketNavigator.tsx +0 -1
- package/src/Bracket/components/BracketPlay/BracketRound.tsx +0 -1
- package/src/Bracket/components/BracketPlay/RoundEvent.tsx +0 -1
- package/src/Bracket/components/BracketPlay/index.tsx +1 -1
- package/src/Bracket/components/BracketSelector.tsx +0 -1
- package/src/Bracket/components/CompetitionLeaderboard.tsx +1 -1
- package/src/Bracket/components/JoinCompetitionCard.tsx +1 -1
- package/src/Bracket/components/PlayerBalanceCard.tsx +0 -1
- package/src/Bracket/components/PlayerBracketManager.tsx +1 -1
- package/src/Bracket/components/PlayerBrackets.tsx +0 -1
- package/src/Bracket/components/RoomMenu.tsx +0 -1
- package/src/Bracket/index.tsx +1 -1
- package/src/Checkout/components/AccountSummaryCard.tsx +0 -1
- package/src/Checkout/components/ItemSummaryCard.tsx +0 -1
- package/src/Checkout/components/OrderSummaryCard.tsx +0 -1
- package/src/Checkout/components/PayPalOrderCapture.tsx +0 -1
- package/src/Checkout/components/ShippingSummaryCard.tsx +0 -1
- package/src/Checkout/index.tsx +1 -1
- package/src/Competition/components/AthleteMarketCard.tsx +0 -1
- package/src/Competition/components/CompetitionCard.tsx +0 -1
- package/src/Competition/components/CompetitionInfoCard.tsx +0 -1
- package/src/Competition/components/CompetitionLeaderboard.tsx +1 -1
- package/src/Competition/components/CompetitionPlay.tsx +1 -1
- package/src/Competition/components/CompetitionSeasonCard.tsx +0 -1
- package/src/Competition/components/CompetitionSelector.tsx +1 -1
- package/src/Competition/components/CompetitionTypeCard.tsx +1 -1
- package/src/Competition/components/EnterCompetitionPrompt.tsx +1 -1
- package/src/Competition/components/LeaderPicks.tsx +1 -1
- package/src/Competition/components/ManageSeasonForm.tsx +1 -1
- package/src/Competition/components/MarketsCard.tsx +1 -1
- package/src/Competition/components/MatchMarketCard.tsx +0 -1
- package/src/Competition/components/NavOutPrompt.tsx +0 -1
- package/src/Competition/components/SeasonInfoModal.tsx +1 -1
- package/src/Competition/components/TeamEventCard.tsx +0 -1
- package/src/Competition/components/WagerPickForm.tsx +1 -1
- package/src/Competition/index.tsx +1 -1
- package/src/Components/Button.tsx +0 -1
- package/src/Components/Checkbox.tsx +0 -1
- package/src/Components/Icons.tsx +76 -2
- package/src/Components/ImageUploader.tsx +1 -1
- package/src/Components/Jerseys.tsx +0 -1
- package/src/Components/LinearDiagnal.tsx +1 -1
- package/src/Components/Spring.tsx +0 -1
- package/src/Components/Switch.tsx +0 -1
- package/src/Components/Text.tsx +23 -3
- package/src/Components/TextInput.tsx +0 -1
- package/src/LocationTracker/index.tsx +0 -1
- package/src/Observer/Observer.tsx +0 -1
- package/src/Poll/components/CampaignPlay.tsx +0 -1
- package/src/Poll/components/CampaignProgressBar.tsx +0 -1
- package/src/Poll/components/CampaignResult.tsx +0 -1
- package/src/Poll/components/CampaignSelector.tsx +1 -1
- package/src/Poll/components/PollCampaignCard.tsx +0 -1
- package/src/Poll/components/PollCard.tsx +0 -1
- package/src/Poll/components/PollOptionCard.tsx +1 -1
- package/src/Poll/components/PollSelectCard.tsx +0 -1
- package/src/Poll/components/ResponseTimer.tsx +1 -1
- package/src/Poll/components/WidgetHeader.tsx +0 -1
- package/src/Poll/flashmarket/ResultCard.tsx +1 -1
- package/src/Poll/flashmarket/index.tsx +1 -1
- package/src/Poll/index.tsx +1 -1
- package/src/ProfileManager/Components/BasicInfoManager.tsx +1 -1
- package/src/ProfileManager/Components/BasicStatus.tsx +0 -1
- package/src/ProfileManager/Components/CodeRedeem.tsx +1 -1
- package/src/ProfileManager/Components/DOBManager.tsx +1 -1
- package/src/ProfileManager/Components/EmailManager.tsx +1 -1
- package/src/ProfileManager/Components/PasswordManager.tsx +1 -1
- package/src/ProfileManager/Components/PhoneManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfilePicManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfileWelcome.tsx +0 -1
- package/src/ProfileManager/Components/ProfileWizard.tsx +1 -1
- package/src/ProfileManager/Components/SettingsManager.tsx +1 -1
- package/src/ProfileManager/Components/VouchCard.tsx +1 -1
- package/src/ProfileManager/index.tsx +1 -1
- package/src/SocialComponents/PlayerCard.tsx +0 -1
- package/src/SocialComponents/PlayerFollowButton.tsx +0 -1
- package/src/SocialComponents/PlayerList.tsx +1 -1
- package/src/Socket/api/index.ts +15 -0
- package/src/Socket/index.tsx +96 -0
- package/src/Squares/api/index.ts +69 -0
- package/src/Squares/components/BidForm.tsx +85 -0
- package/src/Squares/components/BidToggle.tsx +27 -0
- package/src/Squares/components/BoardStats.tsx +70 -0
- package/src/Squares/components/EventCard.tsx +77 -0
- package/src/Squares/components/MySquaresCard.tsx +80 -0
- package/src/Squares/components/OfferForm.tsx +94 -0
- package/src/Squares/components/ResultsCard.tsx +67 -0
- package/src/Squares/components/SquareCard.tsx +190 -0
- package/src/Squares/components/SquareOfferCard.tsx +101 -0
- package/src/Squares/components/SquareOwners.tsx +69 -0
- package/src/Squares/components/SquaresBoard.tsx +161 -0
- package/src/Squares/components/SquaresDetails.tsx +54 -0
- package/src/Squares/index.tsx +398 -0
- package/src/Wallet/components/ACHAddCard.tsx +0 -1
- package/src/Wallet/components/AccountCard.tsx +0 -1
- package/src/Wallet/components/AccountLimitManager.tsx +1 -1
- package/src/Wallet/components/AccountManager.tsx +0 -1
- package/src/Wallet/components/AccountSnoozeManager.tsx +1 -1
- package/src/Wallet/components/AddressCard.tsx +0 -1
- package/src/Wallet/components/AddressManager.tsx +1 -1
- package/src/Wallet/components/DepositCard.tsx +1 -1
- package/src/Wallet/components/FundAccountCard.tsx +0 -1
- package/src/Wallet/components/ItemOrderCard.tsx +1 -1
- package/src/Wallet/components/ItemOrderDetailCard.tsx +0 -1
- package/src/Wallet/components/LinkAccountManager.tsx +1 -1
- package/src/Wallet/components/ManageAccountCard.tsx +1 -1
- package/src/Wallet/components/ManualACHAdd.tsx +1 -1
- package/src/Wallet/components/ManualCardAdd.tsx +1 -1
- package/src/Wallet/components/MyBalance.tsx +0 -1
- package/src/Wallet/components/OrderManager.tsx +1 -1
- package/src/Wallet/components/RemoveAccount.tsx +0 -1
- package/src/Wallet/components/VerifyACHAccount.tsx +1 -1
- package/src/Wallet/components/WalletActionSelector.tsx +1 -1
- package/src/Wallet/components/WalletSettings.tsx +0 -1
- package/src/Wallet/components/WalletSetup.tsx +1 -1
- package/src/Wallet/components/WithdrawCard.tsx +1 -1
- package/src/Wallet/index.tsx +1 -1
- package/src/constants/styles.ts +15 -2
- package/src/index.tsx +6 -1
- package/src/types.d.ts +52 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { View, FlatList, Image, TouchableOpacity } from "react-native"
|
|
2
|
+
import { view_styles } from "../../constants/styles"
|
|
3
|
+
import { Icons, Text } from "../../Components"
|
|
4
|
+
import Colors from "../../constants/colors"
|
|
5
|
+
import type { PublicPlayerProps, SquareProps, SquareResultProps } from "../../types"
|
|
6
|
+
import { useState } from "react"
|
|
7
|
+
|
|
8
|
+
type ResultCardProps = {
|
|
9
|
+
square_results:SquareResultProps[],
|
|
10
|
+
squares:SquareProps[],
|
|
11
|
+
home_abbr?:string,
|
|
12
|
+
away_abbr?:string,
|
|
13
|
+
onPlayerSelect:(player:PublicPlayerProps) => void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const ResultsCard = ({ square_results, squares, home_abbr, away_abbr, onPlayerSelect }:ResultCardProps) => {
|
|
17
|
+
const [ expanded, setExpanded ] = useState(false);
|
|
18
|
+
|
|
19
|
+
const renderResults = (data: { item:SquareResultProps, index:number }) => {
|
|
20
|
+
if(!data.item.playerDetails){ return <></> }
|
|
21
|
+
const square = squares.find(s => s.sq_square_id == data.item.sq_square_id);
|
|
22
|
+
return (
|
|
23
|
+
<TouchableOpacity style={{ ...view_styles.body_row, borderBottomWidth:1, borderColor:Colors.shades.shade600 }} onPress={() => onPlayerSelect(data.item.playerDetails)}>
|
|
24
|
+
<View style={{ marginRight:10 }}>
|
|
25
|
+
<Text theme="header_2">Q{data.item.iteration_num}</Text>
|
|
26
|
+
</View>
|
|
27
|
+
<Image
|
|
28
|
+
source={{ uri: data.item.playerDetails.profile_pic && data.item.playerDetails.profile_pic != '' ? data.item.playerDetails.profile_pic : 'https://res.cloudinary.com/hoabts6mc/image/upload/v1722453927/default_man_n96ofq.webp' }}
|
|
29
|
+
style={{ height:40, width:40, borderRadius:100 }}
|
|
30
|
+
resizeMode="cover"
|
|
31
|
+
/>
|
|
32
|
+
<View style={{ flex:1, marginLeft:5 }}>
|
|
33
|
+
<Text theme="header_2">@{data.item.playerDetails.username}</Text>
|
|
34
|
+
{square ?
|
|
35
|
+
<Text style={{ marginTop:3 }} theme='body_2'>{home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
36
|
+
:<></>}
|
|
37
|
+
</View>
|
|
38
|
+
<View style={{ paddingLeft:5, paddingRight:5 }}>
|
|
39
|
+
<Text size={14} color={Colors.utility.success} weight='bold'>${data.item.winnings.toFixed(2)}</Text>
|
|
40
|
+
</View>
|
|
41
|
+
</TouchableOpacity>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
return (
|
|
45
|
+
<View style={{ ...view_styles.section, minWidth:350 }}>
|
|
46
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
47
|
+
<Icons.TrophyIcon size={18} color={Colors.incentive.gold} />
|
|
48
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
49
|
+
<Text theme='header'>WINNERS</Text>
|
|
50
|
+
<Text style={{ marginTop:3 }} theme="body_2">See the winners of past quarters</Text>
|
|
51
|
+
</View>
|
|
52
|
+
<Icons.ChevronIcon direction={true?'down':'up'} size={8} color={Colors.brand.midnight} />
|
|
53
|
+
</TouchableOpacity>
|
|
54
|
+
{expanded ?
|
|
55
|
+
<View style={view_styles.section_body}>
|
|
56
|
+
<FlatList
|
|
57
|
+
data={square_results.sort((a,b) => a.iteration_num - b.iteration_num)}
|
|
58
|
+
renderItem={renderResults}
|
|
59
|
+
keyExtractor={(item) => item.squares_result_id.toString()}
|
|
60
|
+
/>
|
|
61
|
+
</View>
|
|
62
|
+
:<></>}
|
|
63
|
+
</View>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export default ResultsCard
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from "react-native"
|
|
2
|
+
import type { EventProps, PlayerSquareProps, SquareOfferProps, SquareProps, SquareResultProps, SquareStateProps } from "../../types"
|
|
3
|
+
import Colors from "../../constants/colors"
|
|
4
|
+
import { Icons, Text } from "../../Components"
|
|
5
|
+
|
|
6
|
+
type SquareCardProps = {
|
|
7
|
+
square:SquareProps,
|
|
8
|
+
player_square?:PlayerSquareProps,
|
|
9
|
+
event?:EventProps,
|
|
10
|
+
player_id?:string,
|
|
11
|
+
event_status:'not_started'|'in_progress'|'closed',
|
|
12
|
+
market_type:string,
|
|
13
|
+
square_result?:SquareResultProps,
|
|
14
|
+
draft_player_square?:PlayerSquareProps,
|
|
15
|
+
square_offer?:SquareOfferProps,
|
|
16
|
+
draft_square_offer?:SquareOfferProps,
|
|
17
|
+
outbid_player_square?:PlayerSquareProps,
|
|
18
|
+
square_state_override?:SquareStateProps,
|
|
19
|
+
ip_result?:boolean
|
|
20
|
+
onSquareSelect: (data:any, hey:any) => void,
|
|
21
|
+
}
|
|
22
|
+
const SquareCard = ({ player_id, square, player_square, event, event_status, market_type, draft_player_square, square_offer, draft_square_offer, outbid_player_square, square_state_override, onSquareSelect }:SquareCardProps) => {
|
|
23
|
+
|
|
24
|
+
const cl = market_type == 'FOR_MONEY' ? '$' : 'E';
|
|
25
|
+
|
|
26
|
+
const getStateOfSquare = ():SquareStateProps => {
|
|
27
|
+
if(square_state_override){ return square_state_override }
|
|
28
|
+
if(event_status === 'not_started'){
|
|
29
|
+
//No bids on the square
|
|
30
|
+
if(!player_square && !draft_player_square){ return 'no_bid' }
|
|
31
|
+
//There is a bid and currently no draft bid and there is an outbid square
|
|
32
|
+
if(player_square && !draft_player_square && outbid_player_square){ return 'outbid' }
|
|
33
|
+
//There is a bid and currently no draft bid
|
|
34
|
+
if(player_square && !draft_player_square){ return 'existing_bid' }
|
|
35
|
+
//There is a draft bid on the square and no previous bid
|
|
36
|
+
if(!player_square && draft_player_square){ return 'bid_draft' }
|
|
37
|
+
//There is a draft bid on the square, but a previous bid is higher
|
|
38
|
+
if(player_square && draft_player_square && draft_player_square.purchase_price <= player_square.purchase_price){ return 'outbid_draft' }
|
|
39
|
+
//There is a draft bid on the square and it is higher than the previous bid
|
|
40
|
+
if(player_square && draft_player_square){ return 'bid_draft' }
|
|
41
|
+
return 'no_bid'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//There is an existing bid and no current offer
|
|
45
|
+
if(player_square && !draft_square_offer && !square_offer){ return 'no_offer' }
|
|
46
|
+
//There is an existing bid and an existing offer and currently no draft offer
|
|
47
|
+
if(player_square && !draft_square_offer && square_offer && square_offer.buy_sell_ind === 'sell'){ return 'existing_sell_offer' }
|
|
48
|
+
if(player_square && !draft_square_offer && square_offer && square_offer.buy_sell_ind === 'buy'){ return 'existing_buy_offer' }
|
|
49
|
+
//There is an existing bid and an existing draft buy offer
|
|
50
|
+
if(player_square && draft_square_offer && draft_square_offer.buy_sell_ind === 'buy'){ return 'draft_buy_offer' }
|
|
51
|
+
//There is an existing bid and an existing draft sell offer
|
|
52
|
+
if(player_square && draft_square_offer && draft_square_offer.buy_sell_ind === 'sell'){ return 'draft_sell_offer' }
|
|
53
|
+
return 'no_offer'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const getSquareBackgroundColor = (square_state:SquareStateProps) => {
|
|
57
|
+
switch(square_state){
|
|
58
|
+
case 'no_bid': return Colors.shades.white
|
|
59
|
+
case 'existing_bid':
|
|
60
|
+
if(player_square?.player_id == player_id){ return Colors.brand.electric } else { return Colors.shades.white }
|
|
61
|
+
case 'bid_draft': return Colors.shades.white
|
|
62
|
+
case 'outbid_draft': return Colors.shades.white
|
|
63
|
+
case 'outbid': return `rgba(255,71,71,0.2)`
|
|
64
|
+
case 'no_offer':
|
|
65
|
+
if(player_square?.player_id == player_id){ return Colors.brand.electric } else { return Colors.shades.white }
|
|
66
|
+
case 'draft_buy_offer': return Colors.shades.white
|
|
67
|
+
case 'draft_sell_offer': return Colors.shades.white
|
|
68
|
+
case 'existing_buy_offer':
|
|
69
|
+
if(player_square?.player_id == player_id){ return 'rgba(125,205,133,0.2)' } else { return Colors.shades.white }
|
|
70
|
+
case 'existing_sell_offer':
|
|
71
|
+
if(player_square?.player_id == player_id){ return '#D9E8F7' } else { return '#D9E8F7' }
|
|
72
|
+
default: return Colors.shades.white
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const getSquareBorderWidth = (square_state:SquareStateProps) => {
|
|
76
|
+
switch(square_state){
|
|
77
|
+
case 'no_bid': return 0
|
|
78
|
+
case 'existing_bid': return 0
|
|
79
|
+
case 'bid_draft': return 2
|
|
80
|
+
case 'outbid_draft': return 2
|
|
81
|
+
case 'outbid': return 0
|
|
82
|
+
case 'no_offer': return 0
|
|
83
|
+
case 'draft_buy_offer': return 2
|
|
84
|
+
case 'draft_sell_offer': return 2
|
|
85
|
+
case 'existing_buy_offer':
|
|
86
|
+
if(player_square?.player_id == player_id){ return 1 } else { return 0 }
|
|
87
|
+
case 'existing_sell_offer':
|
|
88
|
+
if(player_square?.player_id == player_id){ return 1 } else { return 1 }
|
|
89
|
+
|
|
90
|
+
default: return 0
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const getSquareBorderColor = (square_state:SquareStateProps) => {
|
|
94
|
+
switch(square_state){
|
|
95
|
+
case 'no_bid': return Colors.shades.white
|
|
96
|
+
case 'existing_bid': return Colors.shades.white
|
|
97
|
+
case 'bid_draft': return Colors.brand.electric
|
|
98
|
+
case 'outbid_draft': return Colors.utility.error
|
|
99
|
+
case 'outbid': return Colors.utility.error
|
|
100
|
+
case 'no_offer': return Colors.shades.white
|
|
101
|
+
case 'draft_buy_offer': return Colors.brand.electric
|
|
102
|
+
case 'draft_sell_offer': return Colors.brand.electric
|
|
103
|
+
case 'existing_buy_offer':
|
|
104
|
+
if(player_square?.player_id == player_id){ return Colors.utility.success } else { return Colors.shades.white }
|
|
105
|
+
case 'existing_sell_offer':
|
|
106
|
+
if(player_square?.player_id == player_id){ return Colors.brand.cyan } else { return Colors.brand.electric }
|
|
107
|
+
default: return Colors.shades.white
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const getSquareFontColor = (square_state:SquareStateProps) => {
|
|
111
|
+
switch(square_state){
|
|
112
|
+
case 'no_bid': return Colors.brand.slate
|
|
113
|
+
case 'existing_bid':
|
|
114
|
+
if(player_square?.player_id == player_id){ return Colors.shades.white } else { return Colors.brand.slate }
|
|
115
|
+
case 'bid_draft': return Colors.brand.electric
|
|
116
|
+
case 'outbid_draft': return Colors.utility.error
|
|
117
|
+
case 'outbid': return Colors.utility.error
|
|
118
|
+
case 'no_offer':
|
|
119
|
+
if(player_square?.player_id == player_id){ return Colors.shades.white } else { return Colors.brand.electric }
|
|
120
|
+
case 'draft_buy_offer': return Colors.brand.electric
|
|
121
|
+
case 'draft_sell_offer': return Colors.brand.electric
|
|
122
|
+
case 'existing_buy_offer':
|
|
123
|
+
if(player_square?.player_id == player_id){ return Colors.brand.slate } else { return Colors.brand.slate }
|
|
124
|
+
case 'existing_sell_offer':
|
|
125
|
+
if(player_square?.player_id == player_id){ return Colors.brand.slate } else { return Colors.brand.slate }
|
|
126
|
+
default: return Colors.brand.slate
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const isUserIconVisible = (square_state:SquareStateProps) => {
|
|
131
|
+
if(!square_state){ return false }
|
|
132
|
+
if(player_square?.player_id == player_id){ return true }
|
|
133
|
+
if(draft_square_offer){ return true }
|
|
134
|
+
if(draft_player_square){ return true }
|
|
135
|
+
if(player_square && player_square.player_id == player_id){ return true }
|
|
136
|
+
return false
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const getSquareBorderTopWidth = (square_state:SquareStateProps) => {
|
|
140
|
+
switch(square_state){
|
|
141
|
+
case 'existing_sell_offer': return 6
|
|
142
|
+
case 'existing_buy_offer':
|
|
143
|
+
if(player_square?.player_id == player_id){ return 6 } else { return 0 }
|
|
144
|
+
|
|
145
|
+
default: return getSquareBorderWidth(square_state)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const getSquareText = (square_state:SquareStateProps) => {
|
|
150
|
+
switch(square_state){
|
|
151
|
+
case 'no_bid': return 'BID'
|
|
152
|
+
case 'existing_bid': return `${cl}${player_square?.purchase_price?.toFixed(2)}`
|
|
153
|
+
case 'bid_draft': return `${cl}${draft_player_square?.purchase_price?.toFixed(2)}`
|
|
154
|
+
case 'outbid_draft': return `${cl}${draft_player_square?.purchase_price?.toFixed(2)}`
|
|
155
|
+
case 'outbid': return `${cl}${player_square?.purchase_price?.toFixed(2)}`
|
|
156
|
+
case 'no_offer':
|
|
157
|
+
if(player_square?.player_id == player_id){ return 'SELL' } else { return 'OFFER' }
|
|
158
|
+
case 'draft_buy_offer': return `${cl}${draft_square_offer?.amount?.toFixed(2)}`
|
|
159
|
+
case 'draft_sell_offer': return `${cl}${draft_square_offer?.amount?.toFixed(2)}`
|
|
160
|
+
case 'existing_buy_offer': return `${cl}${square_offer?.amount?.toFixed(2)}`
|
|
161
|
+
case 'existing_sell_offer': return `${cl}${square_offer?.amount?.toFixed(2)}`
|
|
162
|
+
default: return 'BID'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const square_state = getStateOfSquare()
|
|
166
|
+
let showSubText:string|undefined
|
|
167
|
+
if(square_state === 'existing_buy_offer' && player_square?.player_id != player_id){ showSubText = 'OFFER' }
|
|
168
|
+
if(square_state === 'existing_buy_offer' && player_square?.player_id == player_id){ showSubText = 'SELL' }
|
|
169
|
+
if(square_state === 'existing_sell_offer' && player_square?.player_id != player_id){ showSubText = 'BUY' }
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
<TouchableOpacity style={{ margin:3, height:40, width:40, borderRadius:4, justifyContent:'center', alignItems:'center', backgroundColor:getSquareBackgroundColor(square_state), borderWidth:getSquareBorderWidth(square_state), borderTopWidth:getSquareBorderTopWidth(square_state), borderColor:getSquareBorderColor(square_state) }} onPress={() => onSquareSelect(square, draft_player_square||draft_square_offer?'remove':'add')}>
|
|
173
|
+
{isUserIconVisible(square_state) ?
|
|
174
|
+
<Icons.UserIcon size={14} color={getSquareFontColor(square_state)} />
|
|
175
|
+
:<></>}
|
|
176
|
+
<View>
|
|
177
|
+
{square_state == 'no_bid' ?
|
|
178
|
+
<Icons.UnbidSquare color={event?.home?.primary_color} secondary_color={event?.away?.primary_color}/>
|
|
179
|
+
:
|
|
180
|
+
<Text size={12} weight='regular' color={getSquareFontColor(square_state)} textAlign='center'>{getSquareText(square_state)}</Text>
|
|
181
|
+
}
|
|
182
|
+
</View>
|
|
183
|
+
{showSubText ?
|
|
184
|
+
<Text size={12} weight='regular' color={Colors.brand.electric} textAlign='center'>{showSubText}</Text>
|
|
185
|
+
:<></>}
|
|
186
|
+
</TouchableOpacity>
|
|
187
|
+
)
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export default SquareCard
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { View, Image, TouchableOpacity, ImageBackground } from 'react-native';
|
|
3
|
+
import { Text } from '../../Components';
|
|
4
|
+
import Colors from '../../constants/colors';
|
|
5
|
+
import type { EventProps, PlayerSquareProps, SquareOfferProps, SquareProps } from '../../types';
|
|
6
|
+
import { SquaresApi } from '../api';
|
|
7
|
+
|
|
8
|
+
type SquareOfferCardProps = {
|
|
9
|
+
player_id:string,
|
|
10
|
+
square:SquareProps,
|
|
11
|
+
player_square:PlayerSquareProps,
|
|
12
|
+
square_offer:SquareOfferProps,
|
|
13
|
+
offerCompetitionSquares:any,
|
|
14
|
+
event?:EventProps
|
|
15
|
+
}
|
|
16
|
+
const SquareOfferCard = ({ player_id, square, player_square, square_offer, event }: SquareOfferCardProps ) => {
|
|
17
|
+
const [ loading, setLoading ] = useState(false)
|
|
18
|
+
const handleResponse = async(response:string) => {
|
|
19
|
+
if(loading){ return } //No mashymashy
|
|
20
|
+
setLoading(true)
|
|
21
|
+
switch(response){
|
|
22
|
+
case 'accepted':
|
|
23
|
+
await SquaresApi.offserSquare({ ...square_offer, status: 'accepted' })
|
|
24
|
+
break
|
|
25
|
+
case 'rejected':
|
|
26
|
+
await SquaresApi.offserSquare({ ...square_offer, status: 'rejected' })
|
|
27
|
+
break
|
|
28
|
+
case 'withdrawn':
|
|
29
|
+
await SquaresApi.offserSquare({ ...square_offer, status: 'withdrawn' })
|
|
30
|
+
break
|
|
31
|
+
default: break
|
|
32
|
+
}
|
|
33
|
+
setLoading(false)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
const cl = square_offer.market_type === 'FOR_MONEY' ? '$' : 'E'
|
|
38
|
+
const mine = square_offer.offerer_id == player_id ? true : false
|
|
39
|
+
return (
|
|
40
|
+
<View style={{ flex:1, width:330, margin:5, borderRadius:10, backgroundColor:Colors.shades.white }}>
|
|
41
|
+
<View style={{padding:10}}>
|
|
42
|
+
<View style={{flexDirection:'row', alignItems:'flex-start', justifyContent:'space-between', marginBottom:16}}>
|
|
43
|
+
<View style={{flexDirection:'row', alignItems:'center'}}>
|
|
44
|
+
<View style={{backgroundColor:Colors.brand.cyan, height:36, width:36, borderRadius:4, justifyContent:'center', alignItems:'center'}}>
|
|
45
|
+
<Image style={{height: 18, width:18}} source={require('../../../assets/images/icon_sparkline.png')} />
|
|
46
|
+
</View>
|
|
47
|
+
<View style={{marginLeft:12}}>
|
|
48
|
+
<Text size={14} color={Colors.brand.midnight} weight='semibold'>Squares{square_offer.buy_sell_ind === 'sell'?' Sale':' Buy'} Offer</Text>
|
|
49
|
+
</View>
|
|
50
|
+
</View>
|
|
51
|
+
<View />
|
|
52
|
+
</View>
|
|
53
|
+
|
|
54
|
+
<View style={{flexDirection:'row', alignItems:'center'}}>
|
|
55
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' style={{flex:3/4}}>Square</Text>
|
|
56
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' textAlign='right' style={{flex:1/4}}>{event?.home?.abbr+': '??''}{square.square_score_x}, {event?.away?.abbr+': '??''}{square.square_score_y}</Text>
|
|
57
|
+
</View>
|
|
58
|
+
<View style={{flexDirection:'row', alignItems:'center', marginTop:10}}>
|
|
59
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' style={{flex:3/4}}>Purchased For</Text>
|
|
60
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' textAlign='right' style={{flex:1/4}}>{cl}{player_square.purchase_price.toFixed(2)}</Text>
|
|
61
|
+
</View>
|
|
62
|
+
<View style={{flexDirection:'row', alignItems:'center', marginTop:10}}>
|
|
63
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' style={{flex:3/4}}>Offer Amount</Text>
|
|
64
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular' textAlign='right' style={{flex:1/4}}>{cl}{square_offer.amount.toFixed(2)}</Text>
|
|
65
|
+
</View>
|
|
66
|
+
</View>
|
|
67
|
+
{mine ?
|
|
68
|
+
|
|
69
|
+
<ImageBackground source={require('../../../assets/images/offer_action_bar.png')} style={{flex:1, flexDirection:'row', alignItems:'center', padding:12, borderBottomRightRadius:10, borderBottomLeftRadius:10}}>
|
|
70
|
+
<View style={{flex:3/7}}>
|
|
71
|
+
<Text size={12} color={Colors.shades.white} weight='semibold'>WITHDRAW OFFER?</Text>
|
|
72
|
+
<Text size={12} color={Colors.shades.white} weight='regular'>Do you wish to withdraw this offer?</Text>
|
|
73
|
+
</View>
|
|
74
|
+
<View style={{flex:4/7, flexDirection:'row', alignItems:'center', paddingLeft:10}}>
|
|
75
|
+
<TouchableOpacity style={{flex:1, borderWidth:1, borderColor:Colors.shades.white, borderRadius:60, padding:10, marginLeft:4}} onPress={() => handleResponse('withdrawn')}>
|
|
76
|
+
<Text size={12} weight='semibold' textAlign='center' color={Colors.shades.white}>Withdraw</Text>
|
|
77
|
+
</TouchableOpacity>
|
|
78
|
+
</View>
|
|
79
|
+
</ImageBackground>
|
|
80
|
+
:
|
|
81
|
+
<ImageBackground source={require('../../../assets/images/offer_action_bar.png')} style={{flex:1, flexDirection:'row', alignItems:'center', padding:12, borderBottomRightRadius:10, borderBottomLeftRadius:10}}>
|
|
82
|
+
<View style={{flex:3/7}}>
|
|
83
|
+
<Text size={12} color={Colors.shades.white} weight='semibold'>ACCEPT OFFER?</Text>
|
|
84
|
+
<Text size={12} color={Colors.shades.white} weight='regular'>Do you wish to sell your square for this offer?</Text>
|
|
85
|
+
</View>
|
|
86
|
+
<View style={{flex:4/7, flexDirection:'row', alignItems:'center', paddingLeft:10}}>
|
|
87
|
+
<TouchableOpacity style={{flex:1, borderRadius:60, padding:10, marginRight:4, backgroundColor:Colors.shades.white}} onPress={() => handleResponse('accepted')}>
|
|
88
|
+
<Text size={12} weight='semibold' textAlign='center' color={Colors.brand.midnight}>Accept</Text>
|
|
89
|
+
</TouchableOpacity>
|
|
90
|
+
<TouchableOpacity style={{flex:1, borderWidth:1, borderColor:Colors.shades.white, borderRadius:60, padding:10, marginLeft:4}} onPress={() => handleResponse('rejected')}>
|
|
91
|
+
<Text size={12} weight='semibold' textAlign='center' color={Colors.shades.white}>Decline</Text>
|
|
92
|
+
</TouchableOpacity>
|
|
93
|
+
</View>
|
|
94
|
+
</ImageBackground>
|
|
95
|
+
}
|
|
96
|
+
</View>
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
export default SquareOfferCard
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { View, FlatList, Image, TouchableOpacity } from 'react-native';
|
|
2
|
+
import type { PlayerSquareProps, PublicPlayerProps } from "../../types";
|
|
3
|
+
import { view_styles } from '../../constants/styles';
|
|
4
|
+
import { Icons, Text } from '../../Components';
|
|
5
|
+
import { SqauresHelpers } from '../api';
|
|
6
|
+
import Colors from '../../constants/colors';
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
type SquareOwnersCardProps = {
|
|
11
|
+
player_squares:PlayerSquareProps[],
|
|
12
|
+
players:PublicPlayerProps[],
|
|
13
|
+
onPlayerSelect:(player:PublicPlayerProps) => void
|
|
14
|
+
}
|
|
15
|
+
const SquareOwnersCard = ({ player_squares, players, onPlayerSelect }:SquareOwnersCardProps) => {
|
|
16
|
+
const [ expanded, setExpanded ] = useState(false);
|
|
17
|
+
|
|
18
|
+
const ownerships = SqauresHelpers.getOwnerShipPercents(player_squares);
|
|
19
|
+
|
|
20
|
+
const renderOwners = (data:{ item: { player_id:string, owned_squares:number, owned_pct:number }, index:number }) => {
|
|
21
|
+
const player = players.find(p => p.player_id == data.item.player_id);
|
|
22
|
+
if(!player){ return <></> }
|
|
23
|
+
return (
|
|
24
|
+
<TouchableOpacity style={{ margin:3, borderRadius:4, borderColor:Colors.shades.shade600, justifyContent:'center', maxWidth:100, ...view_styles.float }} onPress={() => onPlayerSelect(player)}>
|
|
25
|
+
<Image
|
|
26
|
+
source={{ uri: player.profile_pic && player.profile_pic != '' ? player.profile_pic : 'https://res.cloudinary.com/hoabts6mc/image/upload/v1722453927/default_man_n96ofq.webp' }}
|
|
27
|
+
style={{ height:90, width:90, borderRadius:4 }}
|
|
28
|
+
resizeMode='cover'
|
|
29
|
+
/>
|
|
30
|
+
<View style={{ position:'absolute', left:0, right:0, bottom:0, borderBottomRightRadius:4, borderBottomLeftRadius:4, backgroundColor:Colors.shades.white }}>
|
|
31
|
+
<View style={{ padding:10 }}>
|
|
32
|
+
<Text theme='header_2'>@{player.username}</Text>
|
|
33
|
+
</View>
|
|
34
|
+
<View style={{ position:'absolute', left:0, right:0, top:-15, justifyContent:'center', alignItems:'center' }}>
|
|
35
|
+
<View style={{ height:30, width:30, backgroundColor:Colors.shades.white, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
36
|
+
<Text color={Colors.brand.midnight} size={12} weight='bold'>{(data.item.owned_pct * 100).toFixed()}%</Text>
|
|
37
|
+
</View>
|
|
38
|
+
|
|
39
|
+
</View>
|
|
40
|
+
</View>
|
|
41
|
+
</TouchableOpacity>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<View style={{ ...view_styles.section, minWidth:350 }}>
|
|
47
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
48
|
+
<Icons.OwnedSquareIcon size={18} color={Colors.brand.midnight} />
|
|
49
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
50
|
+
<Text theme='header'>SQUARE OWNERS</Text>
|
|
51
|
+
<Text style={{ marginTop:3 }} theme='body_2'>Players that own or have highest bid on at least 1 square</Text>
|
|
52
|
+
</View>
|
|
53
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} size={8} color={Colors.brand.midnight} />
|
|
54
|
+
</TouchableOpacity>
|
|
55
|
+
{expanded ?
|
|
56
|
+
<View style={view_styles.section_body}>
|
|
57
|
+
<FlatList
|
|
58
|
+
data={ownerships}
|
|
59
|
+
renderItem={renderOwners}
|
|
60
|
+
horizontal
|
|
61
|
+
keyExtractor={(item) => item.player_id.toString()}
|
|
62
|
+
/>
|
|
63
|
+
</View>
|
|
64
|
+
:<></>}
|
|
65
|
+
</View>
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default SquareOwnersCard
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Icons, Text } from "../../Components";
|
|
2
|
+
import type { EventProps, PlayerSquareProps, SquareOfferProps, SquareProps, SquareResultProps, SquaresCompetitionProps } from "../../types"
|
|
3
|
+
import { View, FlatList, ScrollView, TouchableOpacity } from 'react-native';
|
|
4
|
+
import SquareCard from "./SquareCard";
|
|
5
|
+
import { SqauresHelpers } from "../api";
|
|
6
|
+
import Colors from "../../constants/colors";
|
|
7
|
+
import { view_styles } from "../../constants/styles";
|
|
8
|
+
import { useState } from "react";
|
|
9
|
+
|
|
10
|
+
type SquaresBoardProps = {
|
|
11
|
+
squares_competition:SquaresCompetitionProps,
|
|
12
|
+
squares:SquareProps[],
|
|
13
|
+
event?:EventProps,
|
|
14
|
+
onSquareBid:(square:SquareProps, action:'add'|'remove') => void,
|
|
15
|
+
onSquareOffer:(square:SquareProps, action:'add'|'remove') => void,
|
|
16
|
+
player_id?:string,
|
|
17
|
+
square_offers:SquareOfferProps[],
|
|
18
|
+
player_squares:PlayerSquareProps[],
|
|
19
|
+
player_square_history:PlayerSquareProps[],
|
|
20
|
+
square_results:SquareResultProps[],
|
|
21
|
+
square_bids:PlayerSquareProps[],
|
|
22
|
+
draft_square_offers:SquareOfferProps[]
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
const SquaresBoard = ({
|
|
26
|
+
player_id, event, square_bids, draft_square_offers, squares_competition, player_square_history, square_offers, squares, player_squares, onSquareBid, onSquareOffer
|
|
27
|
+
}:SquaresBoardProps) => {
|
|
28
|
+
const [ expanded, setExpanded ] = useState(true);
|
|
29
|
+
|
|
30
|
+
const comp_status = SqauresHelpers.getCompStatus(event, squares_competition);
|
|
31
|
+
const unique_score_y = [ ...new Set(squares.map(s => s.square_score_y)) ].sort((a,b) => a - b)
|
|
32
|
+
|
|
33
|
+
const handleSquareSelect = (square:SquareProps, action:'remove'|'add') => {
|
|
34
|
+
switch(comp_status){
|
|
35
|
+
case 'not_started': return onSquareBid(square, action)
|
|
36
|
+
case 'closed': return alert('Auction squares has completed')
|
|
37
|
+
case 'in_progress': return onSquareOffer(square, action)
|
|
38
|
+
default: return
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const renderXSquares = (data: { item:SquareProps, index:number }) => {
|
|
43
|
+
let player_square = player_squares.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
44
|
+
let draft_player_square = square_bids.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
45
|
+
let draft_square_offer = draft_square_offers.find(s => s.sq_player_square_id == player_square?.sq_player_square_id)
|
|
46
|
+
let outbid_player_square:PlayerSquareProps | undefined = undefined
|
|
47
|
+
let square_offer = square_offers.find(s => s.sq_player_square_id == player_square?.sq_player_square_id)
|
|
48
|
+
if(player_id && player_square && player_square.player_id != player_id){
|
|
49
|
+
outbid_player_square = player_square_history.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
50
|
+
}
|
|
51
|
+
const event_status = SqauresHelpers.getCompStatus(event, squares_competition);
|
|
52
|
+
return (
|
|
53
|
+
<SquareCard
|
|
54
|
+
player_id={player_id}
|
|
55
|
+
square={data.item}
|
|
56
|
+
outbid_player_square={outbid_player_square}
|
|
57
|
+
market_type={squares_competition.market_type}
|
|
58
|
+
player_square={player_square}
|
|
59
|
+
draft_player_square={draft_player_square}
|
|
60
|
+
draft_square_offer={draft_square_offer}
|
|
61
|
+
square_offer={square_offer}
|
|
62
|
+
event_status={event_status}
|
|
63
|
+
onSquareSelect={(square, action) => handleSquareSelect(square, action)}
|
|
64
|
+
/>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const renderYSquares = (data: { item:number, index:number }) => {
|
|
69
|
+
const x_squares = squares.filter(s => s.square_score_y == data.item);
|
|
70
|
+
return (
|
|
71
|
+
<View>
|
|
72
|
+
<FlatList
|
|
73
|
+
data={x_squares.sort((a,b) => a.square_score_x - b.square_score_x)}
|
|
74
|
+
horizontal
|
|
75
|
+
scrollEnabled={false}
|
|
76
|
+
renderItem={renderXSquares}
|
|
77
|
+
keyExtractor={(item) => item.sq_square_id.toString()}
|
|
78
|
+
/>
|
|
79
|
+
</View>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const away_name = `${event?.away?.market_name} ${event?.away?.name}`
|
|
84
|
+
const TEXT_LENGTH = away_name.length * 8
|
|
85
|
+
const TEXT_HEIGHT = 20;
|
|
86
|
+
const OFFSET = TEXT_LENGTH / 2 - TEXT_HEIGHT / 2
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<View style={{ ...view_styles.section, minWidth:350, maxWidth:600 }}>
|
|
90
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
91
|
+
<Icons.SquaresIcon size={18} color={Colors.brand.midnight} />
|
|
92
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
93
|
+
<Text theme="header">SQUARES BOARD</Text>
|
|
94
|
+
<Text style={{ marginTop:3 }} theme="body_2">Bid, buy, sell squares using the board below.</Text>
|
|
95
|
+
</View>
|
|
96
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={Colors.brand.midnight} size={8} />
|
|
97
|
+
</TouchableOpacity>
|
|
98
|
+
{expanded ?
|
|
99
|
+
<View style={view_styles.section_body} nativeID="board">
|
|
100
|
+
<ScrollView horizontal style={{ marginLeft:20 }}>
|
|
101
|
+
<View>
|
|
102
|
+
<View style={{ flexDirection:'row', overflow:'scroll', marginLeft:4 }}>
|
|
103
|
+
{unique_score_y.map(num => {
|
|
104
|
+
return (
|
|
105
|
+
<View key={`y_${num}`} style={{ margin:3, justifyContent:'center', alignItems:'center', height:20, width:40, backgroundColor:'transparent' }}>
|
|
106
|
+
<Text theme="header_2" textAlign="center">{num}</Text>
|
|
107
|
+
</View>
|
|
108
|
+
)
|
|
109
|
+
})}
|
|
110
|
+
</View>
|
|
111
|
+
<View style={{ backgroundColor:Colors.shades.shade100, padding:2, borderRadius:8, marginLeft:2 }}>
|
|
112
|
+
<FlatList
|
|
113
|
+
data={unique_score_y}
|
|
114
|
+
renderItem={renderYSquares}
|
|
115
|
+
keyExtractor={(item) => `x_${item}`}
|
|
116
|
+
/>
|
|
117
|
+
</View>
|
|
118
|
+
</View>
|
|
119
|
+
</ScrollView>
|
|
120
|
+
<View style={{ position:'absolute', top: 47, backgroundColor:'transparent' }}>
|
|
121
|
+
{unique_score_y.map(num => {
|
|
122
|
+
return (
|
|
123
|
+
<View key={`x_${num}`} style={{ margin:3, justifyContent:'center', alignItems:'center', height:40, width:20, backgroundColor:'transparent' }}>
|
|
124
|
+
<Text theme='header_2'>{num}</Text>
|
|
125
|
+
</View>
|
|
126
|
+
)
|
|
127
|
+
})}
|
|
128
|
+
</View>
|
|
129
|
+
{event && event.home ?
|
|
130
|
+
<View style={{ position:'absolute', top:4, left:0, right:0, justifyContent:'center', alignItems:'center' }}>
|
|
131
|
+
<Text theme="header_2">{event.home.market_name} {event.home.name}</Text>
|
|
132
|
+
</View>
|
|
133
|
+
:<></>}
|
|
134
|
+
{event && event.away ?
|
|
135
|
+
<View style={{ position:'absolute', top:0, left:4, bottom:0, justifyContent:'center' }}>
|
|
136
|
+
<View style={{ width: TEXT_HEIGHT, height: TEXT_LENGTH }}>
|
|
137
|
+
<Text
|
|
138
|
+
textAlign="center"
|
|
139
|
+
style={{
|
|
140
|
+
transform: [
|
|
141
|
+
{ rotate: "-90deg" },
|
|
142
|
+
{ translateX: -OFFSET },
|
|
143
|
+
{ translateY: -OFFSET }
|
|
144
|
+
],
|
|
145
|
+
width: TEXT_LENGTH,
|
|
146
|
+
height: TEXT_HEIGHT
|
|
147
|
+
}}
|
|
148
|
+
theme="header_2"
|
|
149
|
+
>
|
|
150
|
+
{away_name}
|
|
151
|
+
</Text>
|
|
152
|
+
</View>
|
|
153
|
+
</View>
|
|
154
|
+
:<></>}
|
|
155
|
+
</View>
|
|
156
|
+
:<></>}
|
|
157
|
+
</View>
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export default SquaresBoard
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from "react-native"
|
|
2
|
+
import type { SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../../types"
|
|
3
|
+
import { view_styles } from "../../constants/styles"
|
|
4
|
+
import { Icons, Text } from "../../Components"
|
|
5
|
+
import Colors from "../../constants/colors"
|
|
6
|
+
import { useState } from "react"
|
|
7
|
+
|
|
8
|
+
type SquaresDetailsProps = {
|
|
9
|
+
squares_competition:SquaresCompetitionProps,
|
|
10
|
+
squares_type?:SquaresTypeProps,
|
|
11
|
+
squares_payout_type?:SquaresPayoutProps
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const SquaresDetails = ({ squares_competition, squares_type, squares_payout_type }:SquaresDetailsProps) => {
|
|
15
|
+
const [ expanded, setExpanded ] = useState(false);
|
|
16
|
+
return (
|
|
17
|
+
<View nativeID="competition_details" style={{ ...view_styles.section, minWidth:350 }}>
|
|
18
|
+
<TouchableOpacity style={view_styles.section_header} onPress={() => setExpanded(!expanded)}>
|
|
19
|
+
<Icons.SettingsIcon size={18} color={Colors.brand.midnight} />
|
|
20
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
21
|
+
<Text theme="header">COMPETITION DETAILS</Text>
|
|
22
|
+
<Text style={{ marginTop: 4 }} theme="body_2">Detailed Information on this competition</Text>
|
|
23
|
+
</View>
|
|
24
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={Colors.brand.midnight} size={8} />
|
|
25
|
+
</TouchableOpacity>
|
|
26
|
+
{expanded ?
|
|
27
|
+
<View style={{ ...view_styles.section_body }}>
|
|
28
|
+
{squares_type ?
|
|
29
|
+
<View style={view_styles.body_row}>
|
|
30
|
+
<Text style={{flex:1}} theme="body">Type</Text>
|
|
31
|
+
<Text theme="header_2">{squares_type.sq_type_name}</Text>
|
|
32
|
+
</View>
|
|
33
|
+
:<></>}
|
|
34
|
+
<View style={view_styles.body_row}>
|
|
35
|
+
<Text style={{flex:1}} theme="body">Initial Square Price</Text>
|
|
36
|
+
<Text theme="header_2">${squares_competition.minimum_square_price.toFixed(2)}</Text>
|
|
37
|
+
</View>
|
|
38
|
+
{squares_payout_type ?
|
|
39
|
+
<View style={view_styles.body_row}>
|
|
40
|
+
<Text style={{flex:1}} theme="body">Payout</Text>
|
|
41
|
+
<Text theme="header_2">{squares_payout_type.sq_payout_name.toUpperCase()}</Text>
|
|
42
|
+
</View>
|
|
43
|
+
:<></>}
|
|
44
|
+
<View style={view_styles.body_row}>
|
|
45
|
+
<Text style={{flex:1}} theme="body">Payout Frequency</Text>
|
|
46
|
+
<Text theme="header_2">{squares_competition.payout_frequency} Quarters</Text>
|
|
47
|
+
</View>
|
|
48
|
+
</View>
|
|
49
|
+
:<></>}
|
|
50
|
+
</View>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default SquaresDetails
|