be-components 3.3.6 → 3.3.7
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/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +53 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +54 -70
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +35 -45
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +15 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- 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/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
- package/src/Authenticator/Components/LoginForm.tsx +50 -54
- package/src/Authenticator/Components/StrategyForm.tsx +135 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +50 -59
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
package/src/Squares/index.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react"
|
|
2
|
-
import { ActivityIndicator,
|
|
2
|
+
import { ActivityIndicator, Image, Modal, FlatList } from 'react-native';
|
|
3
3
|
import type { BEEventProps, BuySquaresResponseProps, EventProps, LeagueProps, OfferResponseProps, PlayerBalanceProps, PlayerSquareProps, PublicPlayerProps, SquareOfferProps, SquarePrizeProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../types"
|
|
4
4
|
import Colors from "../constants/colors";
|
|
5
5
|
import { SqauresHelpers, SquaresApi } from "./api";
|
|
6
|
-
import {
|
|
6
|
+
import { Icons } from "../Components";
|
|
7
7
|
import SquaresBoard from "./components/SquaresBoard";
|
|
8
8
|
import BidForm from "./components/BidForm";
|
|
9
9
|
import SocketManager from "../Socket";
|
|
@@ -14,10 +14,11 @@ import BoardStats from "./components/BoardStats";
|
|
|
14
14
|
import SquareOwnersCard from "./components/SquareOwners";
|
|
15
15
|
import OfferForm from "./components/OfferForm";
|
|
16
16
|
import MySquaresCard from "./components/MySquaresCard";
|
|
17
|
-
import { view_styles } from "../constants/styles";
|
|
18
17
|
import MyStatsCard from "./components/MyStatsCard";
|
|
19
18
|
import SquareOffersCard from "./components/SquareOffersCard";
|
|
20
19
|
import PrizeCard from './components/PrizeCard';
|
|
20
|
+
import { Button, Text, View } from "../Components/Themed";
|
|
21
|
+
import { useColors } from "../constants/useColors";
|
|
21
22
|
|
|
22
23
|
type SquaresModuleProps = {
|
|
23
24
|
player_id?:string,
|
|
@@ -29,7 +30,10 @@ type SquaresModuleProps = {
|
|
|
29
30
|
onEvent:(ev:BEEventProps) => void
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
const squares_sections = ['header','event', 'board', 'board_stats', 'my_stats', 'results', 'my_squares', 'winners','hidden_prizes','details','owners']
|
|
34
|
+
|
|
32
35
|
const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }:SquaresModuleProps) => {
|
|
36
|
+
const C = useColors();
|
|
33
37
|
const [ needs_reload, setNeedsReload ] = useState(false);
|
|
34
38
|
const [ module_size, setModuleSize ] = useState({ width:0, height:0 })
|
|
35
39
|
const [ bid_form_expanded, setBidFormExpanded ] = useState(false);
|
|
@@ -84,7 +88,7 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
84
88
|
const home_abbr = event?.home?.abbr??squares_competition?.event_backup?.home?.abbr
|
|
85
89
|
const away_abbr = event?.away?.abbr??squares_competition?.event_backup?.away?.abbr
|
|
86
90
|
const joined = SqauresHelpers.amIParticipating(player_squares, player_square_history, player_id);
|
|
87
|
-
|
|
91
|
+
console.log(joined)
|
|
88
92
|
useEffect(() => {
|
|
89
93
|
if(!sq_comp_id){ return }
|
|
90
94
|
if(!loaded){ SquaresApi.setEnvironment(); }
|
|
@@ -284,76 +288,163 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
284
288
|
})
|
|
285
289
|
}
|
|
286
290
|
|
|
291
|
+
const renderSections = (data: { item: string, index:number }) => {
|
|
292
|
+
switch(data.item){
|
|
293
|
+
case 'header':
|
|
294
|
+
if(!squares_competition){ return <></> }
|
|
295
|
+
return (
|
|
296
|
+
<View type='header' nativeID="squares_header" style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
297
|
+
<View transparent>
|
|
298
|
+
<Image
|
|
299
|
+
source={{ uri: squares_competition.image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1649737862/be_logo_jte2ux.webp' }}
|
|
300
|
+
style={{ height:50, width:50, borderRadius:4 }}
|
|
301
|
+
resizeMode="cover"
|
|
302
|
+
/>
|
|
303
|
+
</View>
|
|
304
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
305
|
+
<Text theme='h1'>{squares_competition.sq_comp_name}</Text>
|
|
306
|
+
<Text style={{ marginTop:4 }} theme='h2'>{squares_competition.sq_comp_description}</Text>
|
|
307
|
+
</View>
|
|
308
|
+
<Button float onPress={() => onShareCompetition(squares_competition)}>
|
|
309
|
+
<Icons.ShareIcon color={C.text.h1} size={14} />
|
|
310
|
+
</Button>
|
|
311
|
+
</View>
|
|
312
|
+
)
|
|
313
|
+
case 'event':
|
|
314
|
+
if(!event){ return <></> }
|
|
315
|
+
return (
|
|
316
|
+
<EventCard
|
|
317
|
+
event={event}
|
|
318
|
+
league={league}
|
|
319
|
+
/>
|
|
320
|
+
)
|
|
321
|
+
case 'board_stats':
|
|
322
|
+
if(!squares_competition){ return <></> }
|
|
323
|
+
return (
|
|
324
|
+
<BoardStats
|
|
325
|
+
squares_competition={squares_competition}
|
|
326
|
+
squares={squares}
|
|
327
|
+
player_squares={player_squares}
|
|
328
|
+
/>
|
|
329
|
+
)
|
|
330
|
+
case 'my_stats':
|
|
331
|
+
if(!squares_competition){ return <></> }
|
|
332
|
+
return (
|
|
333
|
+
<MyStatsCard
|
|
334
|
+
player_id={player_id}
|
|
335
|
+
players={players}
|
|
336
|
+
home_abbr={home_abbr}
|
|
337
|
+
squares_expected_value={squares_expected_value}
|
|
338
|
+
away_abbr={away_abbr}
|
|
339
|
+
onSquareBid={(square, action) => {
|
|
340
|
+
handleSquareBid(square, action)
|
|
341
|
+
setBidFormExpanded(true);
|
|
342
|
+
}}
|
|
343
|
+
squares={squares}
|
|
344
|
+
player_square_history={player_square_history}
|
|
345
|
+
player_squares={player_squares}
|
|
346
|
+
square_results={square_results}
|
|
347
|
+
squares_competition={squares_competition}
|
|
348
|
+
/>
|
|
349
|
+
)
|
|
350
|
+
case 'results':
|
|
351
|
+
if(square_results.length == 0){ return <></> }
|
|
352
|
+
return (
|
|
353
|
+
<ResultsCard
|
|
354
|
+
home_abbr={home_abbr}
|
|
355
|
+
away_abbr={away_abbr}
|
|
356
|
+
squares={squares}
|
|
357
|
+
square_results={square_results}
|
|
358
|
+
onPlayerSelect={onPlayerSelect}
|
|
359
|
+
/>
|
|
360
|
+
)
|
|
361
|
+
case 'hidden_prizes':
|
|
362
|
+
return (
|
|
363
|
+
<PrizeCard
|
|
364
|
+
square_prizes={square_prizes}
|
|
365
|
+
squares={squares}
|
|
366
|
+
players={players}
|
|
367
|
+
event={event}
|
|
368
|
+
/>
|
|
369
|
+
)
|
|
370
|
+
case 'details':
|
|
371
|
+
if(!squares_competition){ return <></> }
|
|
372
|
+
return (
|
|
373
|
+
<SquaresDetails
|
|
374
|
+
squares_competition={squares_competition}
|
|
375
|
+
squares_payout_type={squares_payout_type}
|
|
376
|
+
squares_type={squares_type}
|
|
377
|
+
/>
|
|
378
|
+
)
|
|
379
|
+
case 'owners':
|
|
380
|
+
return (
|
|
381
|
+
<SquareOwnersCard
|
|
382
|
+
players={players}
|
|
383
|
+
player_squares={player_squares}
|
|
384
|
+
onPlayerSelect={onPlayerSelect}
|
|
385
|
+
/>
|
|
386
|
+
)
|
|
387
|
+
case 'board':
|
|
388
|
+
if(!squares_competition){ return <></> }
|
|
389
|
+
return (
|
|
390
|
+
<View>
|
|
391
|
+
<SquaresBoard
|
|
392
|
+
player_id={player_id}
|
|
393
|
+
onSquareBid={handleSquareBid}
|
|
394
|
+
onSquareOffer={handleSquareOffer}
|
|
395
|
+
onRefreshCompetition={() => getDataFromServer(sq_comp_id)}
|
|
396
|
+
square_bids={square_bids}
|
|
397
|
+
draft_square_offers={draft_square_offers}
|
|
398
|
+
squares_competition={squares_competition}
|
|
399
|
+
squares={squares}
|
|
400
|
+
event={event}
|
|
401
|
+
player_squares={player_squares}
|
|
402
|
+
player_square_history={player_square_history}
|
|
403
|
+
square_results={square_results}
|
|
404
|
+
square_offers={square_offers}
|
|
405
|
+
/>
|
|
406
|
+
</View>
|
|
407
|
+
)
|
|
408
|
+
case 'my_squares':
|
|
409
|
+
if(my_squares.length == 0){ return <></> }
|
|
410
|
+
console.log(squares.length)
|
|
411
|
+
return (
|
|
412
|
+
<MySquaresCard
|
|
413
|
+
player_squares={my_squares}
|
|
414
|
+
squares={squares}
|
|
415
|
+
square_offers={square_offers}
|
|
416
|
+
away_abbr={away_abbr}
|
|
417
|
+
my_square_values={squares_expected_value.my_square_values}
|
|
418
|
+
home_abbr={home_abbr}
|
|
419
|
+
comp_status={comp_status}
|
|
420
|
+
onSquareOffer={handleSquareOffer}
|
|
421
|
+
/>
|
|
422
|
+
)
|
|
423
|
+
default: return <></>
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
287
427
|
if(loading || !squares_competition){
|
|
288
428
|
return (
|
|
289
|
-
<View style={{ flex:1
|
|
290
|
-
<ActivityIndicator style={{ padding:20, alignSelf:'center' }} color={
|
|
429
|
+
<View style={{ flex:1 }}>
|
|
430
|
+
<ActivityIndicator style={{ padding:20, alignSelf:'center' }} color={C.text.h1} size='large' />
|
|
291
431
|
</View>
|
|
292
432
|
)
|
|
293
433
|
}
|
|
294
434
|
|
|
295
435
|
const comp_status = SqauresHelpers.getCompStatus(event, squares_competition)
|
|
296
436
|
return (
|
|
297
|
-
<View style={{ flex:1
|
|
298
|
-
<ScrollView style={{flex:1}} onLayout={(ev) => {
|
|
437
|
+
<View style={{ flex:1 }} onLayout={(ev) => {
|
|
299
438
|
const { width, height } = ev.nativeEvent.layout
|
|
300
439
|
setModuleSize({ width, height })
|
|
301
440
|
}}>
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
style={{ height:50, width:50, borderRadius:4 }}
|
|
308
|
-
resizeMode="cover"
|
|
309
|
-
/>
|
|
310
|
-
</View>
|
|
311
|
-
<View style={{ flex:1, marginLeft:10 }}>
|
|
312
|
-
<Text theme='header'>{squares_competition.sq_comp_name}</Text>
|
|
313
|
-
<Text style={{ marginTop:4 }} theme='header_2>'>{squares_competition.sq_comp_description}</Text>
|
|
314
|
-
</View>
|
|
315
|
-
<TouchableOpacity onPress={() => onShareCompetition(squares_competition)}>
|
|
316
|
-
<Icons.ShareIcon color={Colors.brand.midnight} size={14} />
|
|
317
|
-
</TouchableOpacity>
|
|
318
|
-
</View>
|
|
319
|
-
{event ?
|
|
320
|
-
<EventCard
|
|
321
|
-
event={event}
|
|
322
|
-
league={league}
|
|
441
|
+
<FlatList
|
|
442
|
+
key='squares_section'
|
|
443
|
+
data={squares_sections}
|
|
444
|
+
renderItem={renderSections}
|
|
445
|
+
keyExtractor={(item) => item}
|
|
323
446
|
/>
|
|
324
|
-
|
|
325
|
-
<BoardStats
|
|
326
|
-
squares_competition={squares_competition}
|
|
327
|
-
squares={squares}
|
|
328
|
-
player_squares={player_squares}
|
|
329
|
-
/>
|
|
330
|
-
{joined ?
|
|
331
|
-
<MyStatsCard
|
|
332
|
-
player_id={player_id}
|
|
333
|
-
players={players}
|
|
334
|
-
home_abbr={home_abbr}
|
|
335
|
-
squares_expected_value={squares_expected_value}
|
|
336
|
-
away_abbr={away_abbr}
|
|
337
|
-
onSquareBid={(square, action) => {
|
|
338
|
-
handleSquareBid(square, action)
|
|
339
|
-
setBidFormExpanded(true);
|
|
340
|
-
}}
|
|
341
|
-
squares={squares}
|
|
342
|
-
player_square_history={player_square_history}
|
|
343
|
-
player_squares={player_squares}
|
|
344
|
-
square_results={square_results}
|
|
345
|
-
squares_competition={squares_competition}
|
|
346
|
-
/>
|
|
347
|
-
:<></>}
|
|
348
|
-
{square_results.length > 0 ?
|
|
349
|
-
<ResultsCard
|
|
350
|
-
home_abbr={home_abbr}
|
|
351
|
-
away_abbr={away_abbr}
|
|
352
|
-
squares={squares}
|
|
353
|
-
square_results={square_results}
|
|
354
|
-
onPlayerSelect={onPlayerSelect}
|
|
355
|
-
/>
|
|
356
|
-
:<></>}
|
|
447
|
+
|
|
357
448
|
{square_offers.length > 0 ?
|
|
358
449
|
<SquareOffersCard
|
|
359
450
|
player_squares={player_squares}
|
|
@@ -365,63 +456,7 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
365
456
|
onRequestAuthenticate={() => onRequestAuthenticate(squares_competition.auth_strategy_id)}
|
|
366
457
|
/>
|
|
367
458
|
:<></>}
|
|
368
|
-
|
|
369
|
-
square_prizes={square_prizes}
|
|
370
|
-
squares={squares}
|
|
371
|
-
players={players}
|
|
372
|
-
event={event}
|
|
373
|
-
/>
|
|
374
|
-
<View>
|
|
375
|
-
<SquaresBoard
|
|
376
|
-
player_id={player_id}
|
|
377
|
-
onSquareBid={handleSquareBid}
|
|
378
|
-
onSquareOffer={handleSquareOffer}
|
|
379
|
-
onRefreshCompetition={() => getDataFromServer(sq_comp_id)}
|
|
380
|
-
square_bids={square_bids}
|
|
381
|
-
draft_square_offers={draft_square_offers}
|
|
382
|
-
squares_competition={squares_competition}
|
|
383
|
-
squares={squares}
|
|
384
|
-
event={event}
|
|
385
|
-
player_squares={player_squares}
|
|
386
|
-
player_square_history={player_square_history}
|
|
387
|
-
square_results={square_results}
|
|
388
|
-
square_offers={square_offers}
|
|
389
|
-
/>
|
|
390
|
-
{square_bids.length > 0 && !bid_form_expanded ?
|
|
391
|
-
<View style={{ position:'absolute', flexDirection:'row', alignItems:'center', top:10, left:10, backgroundColor:Colors.shades.shade600, padding:10, borderRadius:8, borderBottomLeftRadius:0, ...view_styles.float }}>
|
|
392
|
-
<Text theme="header">{square_bids.length} Squares</Text>
|
|
393
|
-
<Button
|
|
394
|
-
title="SET AMOUNTS"
|
|
395
|
-
style={{ marginLeft:10, flex:1 }}
|
|
396
|
-
title_color={Colors.shades.white}
|
|
397
|
-
backgroundColor={Colors.brand.electric}
|
|
398
|
-
onPress={() => setBidFormExpanded(true)}
|
|
399
|
-
/>
|
|
400
|
-
</View>
|
|
401
|
-
:<></>}
|
|
402
|
-
</View>
|
|
403
|
-
{my_squares.length > 0 ?
|
|
404
|
-
<MySquaresCard
|
|
405
|
-
player_squares={my_squares}
|
|
406
|
-
squares={squares}
|
|
407
|
-
square_offers={square_offers}
|
|
408
|
-
away_abbr={away_abbr}
|
|
409
|
-
my_square_values={squares_expected_value.my_square_values}
|
|
410
|
-
home_abbr={home_abbr}
|
|
411
|
-
comp_status={comp_status}
|
|
412
|
-
onSquareOffer={handleSquareOffer}
|
|
413
|
-
/>
|
|
414
|
-
:<></>}
|
|
415
|
-
<SquaresDetails
|
|
416
|
-
squares_competition={squares_competition}
|
|
417
|
-
squares_payout_type={squares_payout_type}
|
|
418
|
-
squares_type={squares_type}
|
|
419
|
-
/>
|
|
420
|
-
<SquareOwnersCard
|
|
421
|
-
players={players}
|
|
422
|
-
player_squares={player_squares}
|
|
423
|
-
onPlayerSelect={onPlayerSelect}
|
|
424
|
-
/>
|
|
459
|
+
|
|
425
460
|
<SocketManager
|
|
426
461
|
//access_token={access_token}
|
|
427
462
|
onConnect={() => {
|
|
@@ -445,13 +480,12 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
445
480
|
}}
|
|
446
481
|
subscribed_events={['V1_UPDATE_SQUARE_DETAILS']}
|
|
447
482
|
/>
|
|
448
|
-
</ScrollView>
|
|
449
483
|
<Modal
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
<View style={{ flex:1, justifyContent:'flex-end'
|
|
484
|
+
transparent
|
|
485
|
+
visible={bid_form_expanded}
|
|
486
|
+
animationType='slide'
|
|
487
|
+
>
|
|
488
|
+
<View type='blur' style={{ flex:1, justifyContent:'flex-end' }}>
|
|
455
489
|
<BidForm
|
|
456
490
|
player_id={player_id}
|
|
457
491
|
player_balance={player_balance}
|
|
@@ -469,25 +503,43 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
469
503
|
/>
|
|
470
504
|
</View>
|
|
471
505
|
</Modal>
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
506
|
+
<Modal
|
|
507
|
+
transparent
|
|
508
|
+
visible={draft_square_offers.length > 0 ? true: false}
|
|
509
|
+
animationType='slide'
|
|
510
|
+
>
|
|
511
|
+
<View type='blur' style={{ flex:1, justifyContent:'flex-end' }}>
|
|
512
|
+
<OfferForm
|
|
513
|
+
player_id={player_id}
|
|
514
|
+
draft_square_offers={draft_square_offers}
|
|
515
|
+
home_abbr={home_abbr}
|
|
516
|
+
player_balance={player_balance}
|
|
517
|
+
width={module_size.width}
|
|
518
|
+
away_abbr={away_abbr}
|
|
519
|
+
squares={squares}
|
|
520
|
+
submit_ready={submit_ready}
|
|
521
|
+
market_type={squares_competition.market_type}
|
|
522
|
+
player_squares={player_squares}
|
|
523
|
+
onClearOffers={handleClearOffers}
|
|
524
|
+
onRequestAuthenticate={() => onRequestAuthenticate(squares_competition.auth_strategy_id)}
|
|
525
|
+
onOfferAmountChange={(offer, player_square, direction) => handleOfferAmountChange(offer, player_square, direction)}
|
|
526
|
+
onSubmitOffer={() => handleSubmitOffer()}
|
|
527
|
+
/>
|
|
528
|
+
</View>
|
|
529
|
+
</Modal>
|
|
530
|
+
{square_bids.length > 0 && !bid_form_expanded ?
|
|
531
|
+
<View float style={{ position:'absolute', bottom:10, left:10, padding:10}}>
|
|
532
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center'}}>
|
|
533
|
+
<Text theme="h1">{square_bids.length} Squares</Text>
|
|
534
|
+
<Button
|
|
535
|
+
title="SET AMOUNTS"
|
|
536
|
+
style={{ marginLeft:10}}
|
|
537
|
+
title_color={Colors.shades.white}
|
|
538
|
+
backgroundColor={Colors.brand.electric}
|
|
539
|
+
onPress={() => setBidFormExpanded(true)}
|
|
540
|
+
/>
|
|
541
|
+
</View>
|
|
542
|
+
</View>
|
|
491
543
|
:<></>}
|
|
492
544
|
</View>
|
|
493
545
|
|
package/src/constants/colors.ts
CHANGED
|
@@ -1,65 +1,73 @@
|
|
|
1
|
-
|
|
2
1
|
const Colors = {
|
|
3
2
|
brand: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
cobalt: '#003566',
|
|
4
|
+
midnight: '#002A51',
|
|
5
|
+
midnightTopGradient: '#003a85',
|
|
6
|
+
electric: '#005FB7',
|
|
7
|
+
cyan: '#08A4BD',
|
|
8
|
+
slate: '#6E8894',
|
|
9
|
+
slateLight: '#B0C4D4', // NEW: Lighter version of slate for description text in dark mode
|
|
10
|
+
mint: '#B2F2D6',
|
|
11
|
+
yellow: '#FFD60A',
|
|
12
|
+
facebook: '#1877F2',
|
|
13
|
+
new: '#264A6B',
|
|
14
|
+
midnightLight: '#395983', // NEW: Lighter version of midnight for text and borders in dark mode
|
|
15
|
+
electricLight: '#6CA0E0', // NEW: Lighter version of electric for text in dark mode
|
|
16
|
+
successDark: '#395B4A', // NEW: Darker version of success for dark mode backgrounds
|
|
17
|
+
errorDark: '#5A2A2A', // NEW: Darker version of error for dark mode backgrounds
|
|
14
18
|
},
|
|
15
|
-
chart:{
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
chart: {
|
|
20
|
+
cyan: '#52BCD1',
|
|
21
|
+
electric: '#4D8FCD',
|
|
18
22
|
},
|
|
19
23
|
company: {
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
paypal: '#FCBB32',
|
|
25
|
+
paypal_blue: '#012169',
|
|
22
26
|
},
|
|
23
27
|
shades: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
white: '#FFFFFF',
|
|
29
|
+
shade100: '#F2F5F7',
|
|
30
|
+
shade200: '#F8F8F8',
|
|
31
|
+
shade300: '#EEEEEE',
|
|
32
|
+
shade400: '#DAE1E4',
|
|
33
|
+
shade500: '#4A4A4A',
|
|
34
|
+
shade600: '#DBE9F5',
|
|
35
|
+
black: '#111111',
|
|
36
|
+
black_faded: 'rgba(0,0,0,0.25)',
|
|
37
|
+
black_faded_heavy: 'rgba(0,0,0,0.5)',
|
|
38
|
+
black_faded_super_heavy: 'rgba(0,0,0,0.9)',
|
|
39
|
+
blackFadedHeavy: '#222831', // NEW: Slightly lighter black for headers/footers in dark mode
|
|
36
40
|
},
|
|
37
41
|
accents: {
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
accent100: '#ADD7FF',
|
|
43
|
+
accent200: '#7F9AB2',
|
|
40
44
|
},
|
|
41
45
|
highlights: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
highlight100: '#620AFF',
|
|
47
|
+
highlight100Faded: `rgba(98,10,255,0.4)`,
|
|
48
|
+
highlight200: '#FCA311',
|
|
49
|
+
highlight200Faded: 'rgba(252,163,17,0.4)',
|
|
50
|
+
highlight300: '#FF4747',
|
|
51
|
+
highlight300Faded: 'rgba(255,71,71,0.4)',
|
|
52
|
+
highlight400: '#4DBA58',
|
|
53
|
+
highlight400Faded: 'rgba(125,205,133,0.4)',
|
|
54
|
+
highlight500: '#05A4BD',
|
|
55
|
+
highlight500Faded: 'rgba(5,164,189,0.25)',
|
|
52
56
|
},
|
|
53
57
|
utility: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
success: '#7DCD85',
|
|
59
|
+
error: '#D5573B',
|
|
60
|
+
warning: '#FCA311',
|
|
57
61
|
},
|
|
58
62
|
incentive: {
|
|
59
63
|
gold: '#AB9F5E',
|
|
60
64
|
gold_faded: 'rgba(171,159,94, 0.1)',
|
|
61
65
|
silver: '#C0C0C0',
|
|
62
|
-
bronze: '#997840'
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
bronze: '#997840',
|
|
67
|
+
goldDark: '#8A7A4B', // NEW: Darker gold for dark mode
|
|
68
|
+
silverDark: '#9A9A9A', // NEW: Muted silver for dark mode
|
|
69
|
+
bronzeDark: '#7A5F30', // NEW: Deeper bronze for dark mode
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default Colors
|
package/src/constants/styles.ts
CHANGED
|
@@ -17,7 +17,7 @@ export const view_styles = StyleSheet.create({
|
|
|
17
17
|
float: {
|
|
18
18
|
shadowColor: "rgba(0, 0, 0, 0.06)", shadowOffset: { width: 0, height: 10 }, shadowRadius: 10, shadowOpacity: 1
|
|
19
19
|
},
|
|
20
|
-
section: { margin:10,
|
|
20
|
+
section: { margin:10, borderRadius:8, shadowColor: "rgba(0, 0, 0, 0.06)", shadowOffset: { width: 0, height: 10 }, shadowRadius: 10, shadowOpacity: 1, elevation: 4 },
|
|
21
21
|
section_header: { padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, paddingLeft:20, paddingRight:20, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 },
|
|
22
22
|
section_body: { padding:20 },
|
|
23
23
|
section_footer: { padding:10, borderBottomRightRadius:8, borderBottomLeftRadius:8, paddingLeft:20, paddingRight:20, flexDirection:'row', alignItems:'center', borderTopWidth:1, borderTopColor:Colors.shades.shade600, backgroundColor:Colors.shades.shade100 },
|
|
@@ -67,4 +67,40 @@ export const text_styles = StyleSheet.create({
|
|
|
67
67
|
error_body: { color:Colors.utility.error, fontSize: 14, fontFamily: 'BarlowRegular', textAlign:'left' },
|
|
68
68
|
body_2: { color:Colors.brand.midnight, fontSize: 12, fontFamily: 'BarlowRegular', textAlign:'left' },
|
|
69
69
|
error_body_2: { color:Colors.utility.error, fontSize: 12, fontFamily: 'BarlowRegular', textAlign:'left' }
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
export const MyViewStyles = StyleSheet.create({
|
|
75
|
+
container: { flex:1 },
|
|
76
|
+
floatLight: {
|
|
77
|
+
backgroundColor: '#FFFFFF', // White background for light mode
|
|
78
|
+
shadowColor: 'rgba(0, 0, 0, 0.06)', // Light shadow
|
|
79
|
+
shadowOffset: { width: 0, height: 10 }, // Vertical shadow offset
|
|
80
|
+
shadowRadius: 10, // Rounded shadow edges
|
|
81
|
+
shadowOpacity: 1, // Full opacity for shadow
|
|
82
|
+
borderColor: '#EEEEEE', // Light gray border
|
|
83
|
+
borderWidth: 1, // Subtle border width
|
|
84
|
+
borderRadius: 8, // Rounded corners
|
|
85
|
+
elevation: 5, // Shadow for Android
|
|
86
|
+
},
|
|
87
|
+
floatDark: {
|
|
88
|
+
backgroundColor: '#1C1C1E', // Slightly lighter dark gray for contrast
|
|
89
|
+
shadowColor: 'rgba(0, 0, 0, 0.8)', // Stronger shadow for depth
|
|
90
|
+
shadowOffset: { width: 0, height: 10 }, // Vertical shadow offset
|
|
91
|
+
shadowRadius: 14, // Larger shadow radius to enhance floating effect
|
|
92
|
+
shadowOpacity: 1, // Full shadow opacity
|
|
93
|
+
borderColor: '#4A4A4A', // Subtle border to define edges
|
|
94
|
+
borderWidth: 1, // Consistent border width
|
|
95
|
+
borderRadius: 8, // Rounded corners for consistency
|
|
96
|
+
elevation: 10, // Higher elevation for Android shadows
|
|
97
|
+
},
|
|
98
|
+
section_header: { flexDirection:'row', alignItems:'center' }
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export const MyTextStyles = StyleSheet.create({
|
|
102
|
+
h1: { fontSize: 16, fontFamily: 'BarlowBold' },
|
|
103
|
+
h2: { fontSize: 14, fontFamily: 'BarlowSemiBold' },
|
|
104
|
+
description: { fontSize: 12, fontFamily: 'BarlowRegular' },
|
|
105
|
+
descriptionLight: { fontSize:12, fontFamily: 'BarlowLight' },
|
|
70
106
|
})
|