heroes-of-chess-components 0.5.74 → 0.5.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/.gitattributes +2 -0
- package/dist/lib/HocComponents/HAccordion/HAccordion.styled.js +33 -0
- package/dist/lib/HocComponents/HBackground/HBackground.styled.js +18 -0
- package/dist/lib/HocComponents/HBlackBack/HBlackBack.styled.js +4 -0
- package/dist/lib/HocComponents/HBox/HBox.styled.js +59 -0
- package/dist/lib/HocComponents/HButton/HButton.styled.js +51 -0
- package/dist/lib/HocComponents/HButton/HButton.styled.ts +6 -1
- package/dist/lib/HocComponents/HCalendarStyled/HCalendarStyled.styled.js +25 -0
- package/dist/lib/HocComponents/HCards/Cards.styled.js +26 -0
- package/dist/lib/HocComponents/HCircularButton/HCircularButton.styled.js +53 -0
- package/dist/lib/HocComponents/HCircularTextButton/HCircularTextButton.styled.js +35 -0
- package/dist/lib/HocComponents/HCoinLabel/HCoin.styled.js +52 -0
- package/dist/lib/HocComponents/HDropdown/HDropdown.styled.js +117 -0
- package/dist/lib/HocComponents/HInitBackgroundAnimation/HInitBackgroundAnimation.styled.js +16 -0
- package/dist/lib/HocComponents/HInput/HInput.styled.js +133 -0
- package/dist/lib/HocComponents/HInputArea/HInputArea.styled.js +68 -0
- package/dist/lib/HocComponents/HLevelUpAnimation/HLevelUpAnimation.styled.js +6 -0
- package/dist/lib/HocComponents/HLogin/HLogin.styled.js +45 -0
- package/dist/lib/HocComponents/HModal/HModal.styled.js +56 -0
- package/dist/lib/HocComponents/HNews/aca +0 -0
- package/dist/lib/HocComponents/HProgressBar/HProgressBar.styled.js +21 -0
- package/dist/lib/HocComponents/HRadio/HRadio.styled.js +56 -0
- package/dist/lib/HocComponents/HScoreBar/HScoreBar.styled.js +53 -0
- package/dist/lib/HocComponents/HSearchInput/HSearchInput.styled.js +72 -0
- package/dist/lib/HocComponents/HSlider/HSlider.styled.js +18 -0
- package/dist/lib/HocComponents/HTabs/HTabs.styled.js +22 -0
- package/dist/lib/HocComponents/HText/HText.styled.js +56 -0
- package/dist/lib/HocComponents/HTitle/HTitle.styled.js +54 -0
- package/dist/lib/HocComponents/HToggleButton/HToggleButton.styled.js +53 -0
- package/dist/lib/HocComponents/HToggleButtonCustom/HCustomToggle.styled.js +61 -0
- package/dist/lib/assets/HocLogos/Titans.svg +25 -25
- package/dist/lib/assets/HocLogos/logoCircular.svg +21 -21
- package/dist/lib/assets/HocLogos/logoLogin.svg +28 -28
- package/dist/lib/assets/HocLogos/shieldWithLogo.svg +33 -33
- package/dist/lib/assets/Icons/ui/accountsConsole.svg +17 -17
- package/dist/lib/assets/Icons/ui/addIcon.svg +10 -10
- package/dist/lib/assets/Icons/ui/aiChessGameConsole.svg +25 -25
- package/dist/lib/assets/Icons/ui/backArrow.svg +10 -10
- package/dist/lib/assets/Icons/ui/bankLogo.svg +9 -9
- package/dist/lib/assets/Icons/ui/battle.svg +20 -20
- package/dist/lib/assets/Icons/ui/bugIcon.svg +13 -13
- package/dist/lib/assets/Icons/ui/calendar.svg +23 -23
- package/dist/lib/assets/Icons/ui/calendarToggle1.svg +15 -15
- package/dist/lib/assets/Icons/ui/calendarToggle2.svg +16 -16
- package/dist/lib/assets/Icons/ui/clientConsole.svg +16 -16
- package/dist/lib/assets/Icons/ui/coin.svg +36 -36
- package/dist/lib/assets/Icons/ui/coinConsole.svg +15 -15
- package/dist/lib/assets/Icons/ui/connectCustomer.svg +17 -17
- package/dist/lib/assets/Icons/ui/correctAnswer.svg +9 -9
- package/dist/lib/assets/Icons/ui/couponConsole.svg +10 -10
- package/dist/lib/assets/Icons/ui/delete.svg +17 -17
- package/dist/lib/assets/Icons/ui/diamond.svg +83 -83
- package/dist/lib/assets/Icons/ui/eventConsole.svg +13 -13
- package/dist/lib/assets/Icons/ui/financialConsole.svg +17 -17
- package/dist/lib/assets/Icons/ui/frame.svg +9 -9
- package/dist/lib/assets/Icons/ui/gameConsole.svg +16 -16
- package/dist/lib/assets/Icons/ui/gameRoomConsole.svg +26 -26
- package/dist/lib/assets/Icons/ui/group.svg +19 -19
- package/dist/lib/assets/Icons/ui/hamburger.svg +18 -18
- package/dist/lib/assets/Icons/ui/noticeConsole.svg +20 -20
- package/dist/lib/assets/Icons/ui/notification.svg +17 -17
- package/dist/lib/assets/Icons/ui/physicGameConsole.svg +30 -30
- package/dist/lib/assets/Icons/ui/profile.svg +17 -17
- package/dist/lib/assets/Icons/ui/profileConsole.svg +10 -10
- package/dist/lib/assets/Icons/ui/queen.svg +13 -13
- package/dist/lib/assets/Icons/ui/queenActive.svg +23 -23
- package/dist/lib/assets/Icons/ui/racer.svg +17 -17
- package/dist/lib/assets/Icons/ui/ranking.svg +27 -27
- package/dist/lib/assets/Icons/ui/rewardsQRConsole.svg +30 -30
- package/dist/lib/assets/Icons/ui/rotateScreen.svg +37 -37
- package/dist/lib/assets/Icons/ui/scannerQR.svg +23 -23
- package/dist/lib/assets/Icons/ui/searchIcon.svg +10 -10
- package/dist/lib/assets/Icons/ui/settings.svg +12 -12
- package/dist/lib/assets/Icons/ui/shieldWithLogo.svg +33 -33
- package/dist/lib/assets/Icons/ui/signOut.svg +17 -17
- package/dist/lib/assets/Icons/ui/star.svg +3 -3
- package/dist/lib/assets/Icons/ui/statistics.svg +13 -13
- package/dist/lib/assets/Icons/ui/store.svg +12 -12
- package/dist/lib/assets/Icons/ui/storeItems.svg +16 -16
- package/dist/lib/assets/Icons/ui/storeMenu.svg +25 -25
- package/dist/lib/assets/Icons/ui/storeProductConsole.svg +20 -20
- package/dist/lib/assets/Icons/ui/storePurchased.svg +15 -15
- package/dist/lib/assets/Icons/ui/tournamentConsole.svg +12 -12
- package/dist/lib/assets/Icons/ui/tournamentConsoleHandle.svg +12 -12
- package/dist/lib/assets/Icons/ui/type3d.svg +14 -14
- package/dist/lib/assets/Icons/ui/type3dYellow.svg +23 -23
- package/dist/lib/assets/Icons/ui/typeCharacters.svg +14 -14
- package/dist/lib/assets/Icons/ui/typeCharactersYellow.svg +23 -23
- package/dist/lib/assets/Icons/ui/typeVr.svg +18 -18
- package/dist/lib/assets/Icons/ui/typeVrYellow.svg +23 -23
- package/dist/lib/assets/Icons/ui/wrongAnswer.svg +542 -542
- package/dist/lib/assets/aiCharacters/defaultFrame.svg +9 -9
- package/dist/lib/assets/bank/bankCoins.svg +14 -14
- package/dist/lib/assets/bank/bankFrame.svg +355 -355
- package/dist/lib/assets/bank/bankMiei.svg +547 -547
- package/dist/lib/assets/bank/verticalToggleBank1.svg +9 -9
- package/dist/lib/assets/bank/verticalToggleBank2.svg +10 -10
- package/dist/lib/assets/games/cardMemory.svg +9 -9
- package/dist/lib/assets/groupRanking/ballGreen.svg +15 -15
- package/dist/lib/assets/groupRanking/ballRed.svg +15 -15
- package/dist/lib/assets/groupRanking/ballThunder.svg +19 -19
- package/dist/lib/assets/groupRanking/ballWater.svg +15 -15
- package/dist/lib/assets/groupRanking/ballYellow.svg +5 -5
- package/dist/lib/assets/groupRanking/knightIcon.svg +17 -17
- package/dist/lib/assets/groupRanking/puzzleIcon.svg +45 -45
- package/dist/lib/assets/groupRanking/stormIcon.svg +229 -229
- package/dist/lib/assets/groupRanking/streakIcon.svg +94 -94
- package/dist/lib/assets/groupRanking/targetIcon.svg +19 -19
- package/dist/lib/assets/groupRanking/verticalFlag.svg +94 -94
- package/dist/lib/assets/notifications/birthday-icon.svg +18 -18
- package/dist/lib/assets/notifications/elo-down.svg +20 -20
- package/dist/lib/assets/notifications/elo-up.svg +20 -20
- package/dist/lib/assets/notifications/finish-tournament.svg +12 -12
- package/dist/lib/assets/notifications/general-earn-coin.svg +21 -21
- package/dist/lib/assets/notifications/general-earn-diamond.svg +27 -27
- package/dist/lib/assets/notifications/general-lose-coin.svg +21 -21
- package/dist/lib/assets/notifications/general-lose-diamond.svg +27 -27
- package/dist/lib/assets/notifications/level-up.svg +20 -20
- package/dist/lib/assets/notifications/new-notice.svg +18 -18
- package/dist/lib/assets/notifications/newStore.svg +15 -15
- package/dist/lib/assets/notifications/pet-evolution.svg +22 -22
- package/dist/lib/assets/notifications/roulette.svg +22 -22
- package/dist/lib/assets/notifications/store-action.svg +22 -22
- package/dist/lib/assets/notifications/ticket-point.svg +17 -17
- package/dist/lib/assets/notifications/vr gastar.svg +21 -21
- package/dist/lib/assets/physicGames/Ludo.svg +190 -190
- package/dist/lib/assets/physicGames/addIcon.svg +25 -25
- package/dist/lib/assets/physicGames/battleship.svg +873 -873
- package/dist/lib/assets/physicGames/drawModal.svg +9 -9
- package/dist/lib/assets/physicGames/errorSubmit.svg +9 -9
- package/dist/lib/assets/physicGames/frameFlag.svg +410 -410
- package/dist/lib/assets/physicGames/gold.svg +9 -9
- package/dist/lib/assets/physicGames/gold2.svg +9 -9
- package/dist/lib/assets/physicGames/gold3.svg +9 -9
- package/dist/lib/assets/physicGames/gold4.svg +14 -14
- package/dist/lib/assets/physicGames/header.svg +26 -26
- package/dist/lib/assets/physicGames/matchTheDots.svg +58 -58
- package/dist/lib/assets/physicGames/morePlayers.svg +23 -23
- package/dist/lib/assets/physicGames/place1icon.svg +21 -21
- package/dist/lib/assets/physicGames/place2icon.svg +21 -21
- package/dist/lib/assets/physicGames/place3icon.svg +21 -21
- package/dist/lib/assets/physicGames/place4icon.svg +21 -21
- package/dist/lib/assets/physicGames/place5icon.svg +23 -23
- package/dist/lib/assets/physicGames/place6icon.svg +21 -21
- package/dist/lib/assets/physicGames/quantik.svg +105 -105
- package/dist/lib/assets/physicGames/removeIcon.svg +31 -31
- package/dist/lib/assets/physicGames/risultatoMore.svg +350 -350
- package/dist/lib/assets/physicGames/surrenderModal.svg +9 -9
- package/dist/lib/assets/physicGames/surrenderPurple.svg +22 -22
- package/dist/lib/assets/physicGames/tabletQR.svg +29 -29
- package/dist/lib/assets/physicGames/timer.svg +25 -25
- package/dist/lib/assets/physicGames/video.svg +44 -44
- package/dist/lib/assets/physicGames/videoGame.svg +28 -28
- package/dist/lib/assets/physicGames/vsPurple.svg +48 -48
- package/dist/lib/assets/puzzleArena/corner.svg +17 -17
- package/dist/lib/assets/puzzleArena/horseIcon.svg +19 -19
- package/dist/lib/assets/puzzleArena/keyDisabledPurple.svg +12 -12
- package/dist/lib/assets/puzzleArena/keyGold.svg +12 -12
- package/dist/lib/assets/puzzleArena/myPuzzles.svg +113 -113
- package/dist/lib/assets/puzzleArena/performanceIcon.svg +22 -22
- package/dist/lib/assets/puzzleArena/playedIcon.svg +18 -18
- package/dist/lib/assets/puzzleArena/practiceIcon.svg +49 -49
- package/dist/lib/assets/puzzleArena/puzzleChess/correctHand.svg +44 -44
- package/dist/lib/assets/puzzleArena/puzzleChess/framePet.svg +9 -9
- package/dist/lib/assets/puzzleArena/puzzleChess/grayStart.svg +3 -3
- package/dist/lib/assets/puzzleArena/puzzleChess/incorrectHand.svg +46 -46
- package/dist/lib/assets/puzzleArena/puzzleChess/violetStar.svg +3 -3
- package/dist/lib/assets/puzzleArena/videoIcon.svg +14 -14
- package/dist/lib/assets/race/blueCar.svg +39 -39
- package/dist/lib/assets/race/lightblueCar.svg +39 -39
- package/dist/lib/assets/race/podioRace.svg +585 -585
- package/dist/lib/assets/race/race_ilustration.svg +32 -32
- package/dist/lib/assets/race/redCar.svg +39 -39
- package/dist/lib/assets/race/yellowCar.svg +39 -39
- package/dist/lib/assets/store/brawlStars.svg +16 -16
- package/dist/lib/assets/store/brawlStarsActive.svg +16 -16
- package/dist/lib/assets/store/devilHunters.svg +33 -33
- package/dist/lib/assets/store/devilHuntersActive.svg +33 -33
- package/dist/lib/assets/tickets/DoNotBurp.svg +41 -41
- package/dist/lib/assets/tickets/DontFart.svg +80 -80
- package/dist/lib/assets/tickets/NotReportBugs.svg +52 -52
- package/dist/lib/assets/tickets/NotUsePhone.svg +40 -40
- package/dist/lib/assets/tickets/notObjectInMouth.svg +64 -64
- package/dist/lib/assets/tickets/notRemoveMat.svg +59 -59
- package/dist/lib/assets/tickets/notYoutube.svg +65 -65
- package/dist/lib/assets/tickets/spamIcon.svg +115 -115
- package/dist/lib/assets/tickets/vulgarityIcon.svg +127 -127
- package/dist/lib/assets/tournament/christmasLogo.svg +120 -120
- package/dist/lib/assets/tournament/classicTournament.svg +18 -18
- package/dist/lib/assets/tournament/clockTournament.svg +19 -19
- package/dist/lib/assets/tournament/darkTorch.svg +202 -202
- package/dist/lib/assets/tournament/digimonLogo.svg +101 -101
- package/dist/lib/assets/tournament/halloweenLogo.svg +43 -43
- package/dist/lib/assets/tournament/marioLogo.svg +81 -81
- package/dist/lib/assets/tournament/marioVillainsLogo.svg +111 -111
- package/dist/lib/assets/tournament/mickeyLogo.svg +17 -17
- package/dist/lib/assets/tournament/phygitalTournament.svg +23 -23
- package/dist/lib/assets/tournament/sonicLogo.svg +127 -127
- package/dist/lib/assets/tournament/tournamentLeague.svg +8 -8
- package/dist/lib/assets/tournament/trophyHocLeague.svg +10 -10
- package/dist/lib/assets/tournament/trophyModal2.svg +9 -9
- package/dist/lib/assets/tournament/turtlesLogo.svg +102 -102
- package/dist/lib/assets/tournament/uCategoryBall.svg +61 -61
- package/dist/lib/assets/tournament/whistleAdmin.svg +11 -11
- package/dist/lib/assets/videoSection/back.svg +10 -10
- package/dist/lib/assets/videoSection/backgroundBox.svg +117 -117
- package/dist/lib/assets/videoSection/en.svg +33 -33
- package/dist/lib/assets/videoSection/es.svg +12 -12
- package/dist/lib/assets/videoSection/frameBox.svg +14 -14
- package/dist/lib/assets/videoSection/frameDefeat.svg +9 -9
- package/dist/lib/assets/videoSection/it.svg +12 -12
- package/dist/lib/assets/videoSection/save.svg +7 -7
- package/dist/lib/assets/videoSection/saves.svg +11 -11
- package/dist/lib/assets/videoSection/studiesLogo1.svg +6 -6
- package/dist/lib/assets/videoSection/studiesLogo2.svg +10 -10
- package/dist/lib/assets/videoSection/youtubeIcon.svg +19 -19
- package/dist/lib/data/AllMiniGames.js +1 -1
- package/dist/lib/data/AllTicketsRewards.js +6 -6
- package/dist/lib/hooks/sounds/soundTypes.js +81 -0
- package/dist/lib/styles/GlobalStyles.css +6 -6
- package/package.json +1 -1
- package/dist/lib/assets/sounds/codeBrakerCheckCode.wav +0 -0
- package/dist/lib/assets/sounds/codeBrakerFinish.wav +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var HInputContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n width: ", ";\n align-items: center;\n justify-content: space-between;\n"])), function (_ref) {
|
|
5
|
+
var direction = _ref.direction;
|
|
6
|
+
return direction || "column";
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var gap = _ref2.gap;
|
|
9
|
+
return gap;
|
|
10
|
+
}, function (_ref3) {
|
|
11
|
+
var width = _ref3.width;
|
|
12
|
+
return width !== null && width !== void 0 ? width : "auto";
|
|
13
|
+
});
|
|
14
|
+
export var InputLabel = styled.label(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", "!important;\n font-weight: ", "!important;\n color: ", "!important;\n display: flex;\n align-items: center;\n justify-content: ", ";\n width: ", ";\n"])), function (_ref4) {
|
|
15
|
+
var $labelSize = _ref4.$labelSize;
|
|
16
|
+
if (!$labelSize) return "var(--p16)";
|
|
17
|
+
if ($labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("h") || $labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("p")) {
|
|
18
|
+
return "var(--".concat($labelSize, ", var(--p16))");
|
|
19
|
+
}
|
|
20
|
+
return $labelSize;
|
|
21
|
+
}, function (_ref5) {
|
|
22
|
+
var $labelWeight = _ref5.$labelWeight;
|
|
23
|
+
if (!$labelWeight) return "var(--weight-medium)";
|
|
24
|
+
if ($labelWeight !== null && $labelWeight !== void 0 && $labelWeight.startsWith("weight-")) {
|
|
25
|
+
return "var(--".concat($labelWeight, ", var(--weight-medium))");
|
|
26
|
+
}
|
|
27
|
+
return $labelWeight;
|
|
28
|
+
}, function (_ref6) {
|
|
29
|
+
var _ref7;
|
|
30
|
+
var $labelColor = _ref6.$labelColor,
|
|
31
|
+
theme = _ref6.theme;
|
|
32
|
+
return $labelColor && theme && typeof $labelColor === "string" && theme[$labelColor] ? theme[$labelColor] : (_ref7 = $labelColor !== null && $labelColor !== void 0 ? $labelColor : theme && theme.purpleMedium) !== null && _ref7 !== void 0 ? _ref7 : "#7c4dff";
|
|
33
|
+
}, function (_ref8) {
|
|
34
|
+
var $labelPosition = _ref8.$labelPosition;
|
|
35
|
+
return $labelPosition || "center";
|
|
36
|
+
}, function (_ref9) {
|
|
37
|
+
var $labelWidth = _ref9.$labelWidth;
|
|
38
|
+
return $labelWidth || "auto";
|
|
39
|
+
});
|
|
40
|
+
export var Input = styled.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n font-size: ", " !important;\n font-weight: ", " !important;\n color: ", " !important;\n background: ", " !important;\n border: ", " !important;\n text-align: ", ";\n padding: 0.2em 1em;\n border-radius: ", ";\n font-family: \"Poppins\", sans-serif;\n line-height: 1.5;\n box-shadow: rgba(112, 37, 190, 0.11) 0px -6px 26px inset,\n rgba(112, 37, 190, 0.27) 4px 4px 26px inset;\n &::placeholder {\n color: ", ";\n text-align: ", ";\n }\n &:focus,\n &:focus-visible {\n outline: none;\n }\n"])), function (_ref0) {
|
|
41
|
+
var $fontSize = _ref0.$fontSize;
|
|
42
|
+
if (!$fontSize) return "var(--p16)";
|
|
43
|
+
if ($fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("h") || $fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("p")) {
|
|
44
|
+
return "var(--".concat($fontSize, ", var(--p16))");
|
|
45
|
+
}
|
|
46
|
+
return $fontSize;
|
|
47
|
+
}, function (_ref1) {
|
|
48
|
+
var $fontWeight = _ref1.$fontWeight;
|
|
49
|
+
if (!$fontWeight) return "var(--weight-book)";
|
|
50
|
+
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
51
|
+
return "var(--".concat($fontWeight, ", var(--weight-book))");
|
|
52
|
+
}
|
|
53
|
+
return $fontWeight;
|
|
54
|
+
}, function (_ref10) {
|
|
55
|
+
var _ref11;
|
|
56
|
+
var $fontColor = _ref10.$fontColor,
|
|
57
|
+
theme = _ref10.theme;
|
|
58
|
+
return $fontColor && theme && typeof $fontColor === "string" && theme[$fontColor] ? theme[$fontColor] : (_ref11 = $fontColor !== null && $fontColor !== void 0 ? $fontColor : theme && theme.purpleDark) !== null && _ref11 !== void 0 ? _ref11 : "#2d1e4a";
|
|
59
|
+
}, function (_ref12) {
|
|
60
|
+
var $background = _ref12.$background,
|
|
61
|
+
theme = _ref12.theme;
|
|
62
|
+
return $background && theme && typeof $background === "string" && theme[$background] ? theme[$background] : $background !== null && $background !== void 0 ? $background : "white";
|
|
63
|
+
}, function (_ref13) {
|
|
64
|
+
var $border = _ref13.$border,
|
|
65
|
+
theme = _ref13.theme;
|
|
66
|
+
return $border !== null && $border !== void 0 ? $border : "2px solid ".concat(theme.purpleMedium);
|
|
67
|
+
}, function (_ref14) {
|
|
68
|
+
var $textAlign = _ref14.$textAlign;
|
|
69
|
+
return $textAlign !== null && $textAlign !== void 0 ? $textAlign : "left";
|
|
70
|
+
}, function (props) {
|
|
71
|
+
return props.$borderRadius || "20px";
|
|
72
|
+
}, function (_ref15) {
|
|
73
|
+
var $placeholderColor = _ref15.$placeholderColor,
|
|
74
|
+
theme = _ref15.theme;
|
|
75
|
+
return $placeholderColor && theme && typeof $placeholderColor === "string" && theme[$placeholderColor] ? theme[$placeholderColor] : $placeholderColor !== null && $placeholderColor !== void 0 ? $placeholderColor : "#999";
|
|
76
|
+
}, function (_ref16) {
|
|
77
|
+
var $textAlign = _ref16.$textAlign;
|
|
78
|
+
return $textAlign !== null && $textAlign !== void 0 ? $textAlign : "left";
|
|
79
|
+
});
|
|
80
|
+
export var TextareaStyled = styled.textarea(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n font-size: ", " !important;\n font-weight: ", " !important;\n color: ", " !important;\n background: ", " !important;\n border: ", " !important;\n text-align: ", ";\n padding: 0.2em 1em !important;\n border-radius: ", ";\n font-family: \"Poppins\", sans-serif;\n line-height: 1.5;\n box-shadow: rgba(112, 37, 190, 0.11) 0px -6px 26px inset,\n rgba(112, 37, 190, 0.27) 4px 4px 26px inset;\n &::placeholder {\n color: ", ";\n text-align: ", ";\n }\n &:focus,\n &:focus-visible {\n outline: none;\n }\n resize: none;\n min-height: 40px;\n max-height: 120px;\n box-sizing: border-box;\n overflow: hidden;\n"])), function (_ref17) {
|
|
81
|
+
var $fontSize = _ref17.$fontSize;
|
|
82
|
+
if (!$fontSize) return "var(--p16)";
|
|
83
|
+
if ($fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("h") || $fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("p")) {
|
|
84
|
+
return "var(--".concat($fontSize, ", var(--p16))");
|
|
85
|
+
}
|
|
86
|
+
return $fontSize;
|
|
87
|
+
}, function (_ref18) {
|
|
88
|
+
var $fontWeight = _ref18.$fontWeight;
|
|
89
|
+
if (!$fontWeight) return "var(--weight-book)";
|
|
90
|
+
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
91
|
+
return "var(--".concat($fontWeight, ", var(--weight-book))");
|
|
92
|
+
}
|
|
93
|
+
return $fontWeight;
|
|
94
|
+
}, function (_ref19) {
|
|
95
|
+
var _ref20;
|
|
96
|
+
var $fontColor = _ref19.$fontColor,
|
|
97
|
+
theme = _ref19.theme;
|
|
98
|
+
return $fontColor && theme && typeof $fontColor === "string" && theme[$fontColor] ? theme[$fontColor] : (_ref20 = $fontColor !== null && $fontColor !== void 0 ? $fontColor : theme && theme.purpleDark) !== null && _ref20 !== void 0 ? _ref20 : "#2d1e4a";
|
|
99
|
+
}, function (_ref21) {
|
|
100
|
+
var $background = _ref21.$background,
|
|
101
|
+
theme = _ref21.theme;
|
|
102
|
+
return $background && theme && typeof $background === "string" && theme[$background] ? theme[$background] : $background !== null && $background !== void 0 ? $background : "white";
|
|
103
|
+
}, function (_ref22) {
|
|
104
|
+
var $border = _ref22.$border,
|
|
105
|
+
theme = _ref22.theme;
|
|
106
|
+
return $border !== null && $border !== void 0 ? $border : "2px solid ".concat(theme.purpleMedium);
|
|
107
|
+
}, function (_ref23) {
|
|
108
|
+
var $textAlign = _ref23.$textAlign;
|
|
109
|
+
return $textAlign !== null && $textAlign !== void 0 ? $textAlign : "left";
|
|
110
|
+
}, function (props) {
|
|
111
|
+
return props.$borderRadius || "20px";
|
|
112
|
+
}, function (_ref24) {
|
|
113
|
+
var $placeholderColor = _ref24.$placeholderColor,
|
|
114
|
+
theme = _ref24.theme;
|
|
115
|
+
return $placeholderColor && theme && typeof $placeholderColor === "string" && theme[$placeholderColor] ? theme[$placeholderColor] : $placeholderColor !== null && $placeholderColor !== void 0 ? $placeholderColor : "#999";
|
|
116
|
+
}, function (_ref25) {
|
|
117
|
+
var $textAlign = _ref25.$textAlign;
|
|
118
|
+
return $textAlign !== null && $textAlign !== void 0 ? $textAlign : "left";
|
|
119
|
+
});
|
|
120
|
+
export var InputContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n flex-direction: ", ";\n height: ", ";\n width: ", ";\n img {\n margin: 0 ", ";\n }\n"])), function (_ref26) {
|
|
121
|
+
var theme = _ref26.theme;
|
|
122
|
+
return theme.purpleDark;
|
|
123
|
+
}, function (props) {
|
|
124
|
+
return props.$borderRadius || "20px";
|
|
125
|
+
}, function (props) {
|
|
126
|
+
return props.direction || "row";
|
|
127
|
+
}, function (props) {
|
|
128
|
+
return props.height || "auto";
|
|
129
|
+
}, function (props) {
|
|
130
|
+
return props.width || "auto";
|
|
131
|
+
}, function (props) {
|
|
132
|
+
return props.gap || "5px";
|
|
133
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var HTextAreaContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n width: ", ";\n align-items: center;\n justify-content: space-between;\n"])), function (_ref) {
|
|
5
|
+
var direction = _ref.direction;
|
|
6
|
+
return direction || "column";
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var gap = _ref2.gap;
|
|
9
|
+
return gap;
|
|
10
|
+
}, function (_ref3) {
|
|
11
|
+
var width = _ref3.width;
|
|
12
|
+
return width !== null && width !== void 0 ? width : "auto";
|
|
13
|
+
});
|
|
14
|
+
export var TextAreaLabel = styled.label(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", " !important;\n font-weight: ", " !important;\n color: ", ";\n display: flex;\n align-items: center;\n justify-content: ", ";\n width: ", ";\n"])), function (_ref4) {
|
|
15
|
+
var $labelSize = _ref4.$labelSize;
|
|
16
|
+
if (!$labelSize) return "var(--p16)";
|
|
17
|
+
if ($labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("h") || $labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("p")) {
|
|
18
|
+
return "var(--".concat($labelSize, ", var(--p16))");
|
|
19
|
+
}
|
|
20
|
+
return $labelSize;
|
|
21
|
+
}, function (_ref5) {
|
|
22
|
+
var $labelWeight = _ref5.$labelWeight;
|
|
23
|
+
if (!$labelWeight) return "var(--weight-medium)";
|
|
24
|
+
if ($labelWeight !== null && $labelWeight !== void 0 && $labelWeight.startsWith("weight-")) {
|
|
25
|
+
return "var(--".concat($labelWeight, ", var(--weight-medium))");
|
|
26
|
+
}
|
|
27
|
+
return $labelWeight;
|
|
28
|
+
}, function (_ref6) {
|
|
29
|
+
var _ref7;
|
|
30
|
+
var $labelColor = _ref6.$labelColor,
|
|
31
|
+
theme = _ref6.theme;
|
|
32
|
+
return $labelColor && theme && typeof $labelColor === "string" && theme[$labelColor] ? theme[$labelColor] : (_ref7 = $labelColor !== null && $labelColor !== void 0 ? $labelColor : theme && theme.purpleMedium) !== null && _ref7 !== void 0 ? _ref7 : "#7c4dff";
|
|
33
|
+
}, function (_ref8) {
|
|
34
|
+
var $labelPosition = _ref8.$labelPosition;
|
|
35
|
+
return $labelPosition || "center";
|
|
36
|
+
}, function (_ref9) {
|
|
37
|
+
var $labelWidth = _ref9.$labelWidth;
|
|
38
|
+
return $labelWidth || "auto";
|
|
39
|
+
});
|
|
40
|
+
export var StyledTextArea = styled.textarea(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n resize: ", ";\n font-size: ", " !important;\n font-weight: ", " !important;\n color: ", " !important;\n background: white;\n border: 2px solid ", ";\n padding: 0.6em 1em;\n border-radius: ", ";\n font-family: \"Poppins\", sans-serif;\n line-height: 1.5;\n box-shadow: rgba(112, 37, 190, 0.11) 0px -6px 26px inset,\n rgba(112, 37, 190, 0.27) 4px 4px 26px inset;\n &:focus,\n &:focus-visible {\n outline: none;\n }\n"])), function (_ref0) {
|
|
41
|
+
var $resizable = _ref0.$resizable;
|
|
42
|
+
return $resizable ? "vertical" : "none";
|
|
43
|
+
}, function (_ref1) {
|
|
44
|
+
var $fontSize = _ref1.$fontSize;
|
|
45
|
+
if (!$fontSize) return "var(--p16)";
|
|
46
|
+
if ($fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("h") || $fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("p")) {
|
|
47
|
+
return "var(--".concat($fontSize, ", var(--p16))");
|
|
48
|
+
}
|
|
49
|
+
return $fontSize;
|
|
50
|
+
}, function (_ref10) {
|
|
51
|
+
var $fontWeight = _ref10.$fontWeight;
|
|
52
|
+
if (!$fontWeight) return "var(--weight-book)";
|
|
53
|
+
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
54
|
+
return "var(--".concat($fontWeight, ", var(--weight-book))");
|
|
55
|
+
}
|
|
56
|
+
return $fontWeight;
|
|
57
|
+
}, function (_ref11) {
|
|
58
|
+
var _ref12;
|
|
59
|
+
var $fontColor = _ref11.$fontColor,
|
|
60
|
+
theme = _ref11.theme;
|
|
61
|
+
return $fontColor && theme && typeof $fontColor === "string" && theme[$fontColor] ? theme[$fontColor] : (_ref12 = $fontColor !== null && $fontColor !== void 0 ? $fontColor : theme && theme.purpleDark) !== null && _ref12 !== void 0 ? _ref12 : "#2d1e4a";
|
|
62
|
+
}, function (_ref13) {
|
|
63
|
+
var _purpleMedium;
|
|
64
|
+
var theme = _ref13.theme;
|
|
65
|
+
return (_purpleMedium = theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#7c4dff";
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.$borderRadius || "20px";
|
|
68
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled, { keyframes } from "styled-components";
|
|
4
|
+
var confettiScale1 = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale(1);\n }\n 10% {\n transform: scale(1.2);\n }\n 20% {\n transform: scale(1);\n }\n 30% {\n transform: scale(1.2);\n }\n 40% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.2);\n }\n 60% {\n transform: scale(1);\n }\n 70% {\n transform: scale(1.2);\n }\n 80% {\n transform: scale(1);\n }\n 90% {\n transform: scale(1.2);\n }\n 100% {\n transform: scale(1);\n }\n"])));
|
|
5
|
+
var confettiScale2 = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n transform: scale(1) scaleX(-1);\n }\n 10% {\n transform: scale(1.2) scaleX(-1);\n }\n 20% {\n transform: scale(1) scaleX(-1);\n }\n 30% {\n transform: scale(1.2) scaleX(-1);\n }\n 40% {\n transform: scale(1) scaleX(-1);\n }\n 50% {\n transform: scale(1.2) scaleX(-1);\n }\n 60% {\n transform: scale(1) scaleX(-1);\n }\n 70% {\n transform: scale(1.2) scaleX(-1);\n }\n 80% {\n transform: scale(1) scaleX(-1);\n }\n 90% {\n transform: scale(1.2) scaleX(-1);\n }\n 100% {\n transform: scale(1) scaleX(-1);\n }\n"])));
|
|
6
|
+
export var CongratulationContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.4);\n z-index: 999999;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n h1 {\n z-index: 999;\n font-family: \"AldoTheApalache\", sans-serif;\n font-size: 8vw;\n background: linear-gradient(\n 180deg,\n #eaa80c 0%,\n #fdcc06 35%,\n #fac707 48%,\n #f4ba0c 64%,\n #eaa415 79%,\n #dc8521 96%,\n #d87c25 100%\n );\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n -webkit-text-stroke: 1px #3c096c;\n letter-spacing: 7px;\n @media (max-width: 900px) {\n font-size: 6vw;\n }\n }\n\n .level {\n margin-top: -50px;\n @media (max-width: 900px) {\n margin-top: -20px;\n }\n @media (max-width: 500px) {\n margin-top: -0px;\n }\n }\n\n .trom1 {\n position: fixed;\n bottom: 65px;\n left: 0;\n width: 270px;\n transform: scaleX(-1);\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 220px;\n bottom: 70px;\n }\n }\n\n .trom2 {\n position: fixed;\n bottom: -13.5px;\n left: 0;\n width: 220px;\n transform: scaleX(-1);\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 170px;\n bottom: 0.5px;\n }\n }\n\n .trom3 {\n position: fixed;\n bottom: -70px;\n left: 0;\n width: 170px;\n transform: scaleX(-1);\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 120px;\n bottom: -50px;\n }\n }\n\n .trom4 {\n position: fixed;\n bottom: 65px;\n right: 0;\n width: 270px;\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 220px;\n bottom: 70px;\n }\n }\n\n .trom5 {\n position: fixed;\n bottom: -13.5px;\n right: 0;\n width: 220px;\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 170px;\n bottom: 0.5px;\n }\n }\n\n .trom6 {\n position: fixed;\n bottom: -70px;\n right: 0;\n width: 170px;\n animation: ", " 3.5s infinite;\n @media (max-width: 900px) {\n width: 120px;\n bottom: -50px;\n }\n }\n"])), confettiScale2, confettiScale2, confettiScale2, confettiScale1, confettiScale1, confettiScale1);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import HInput from "../HInput/HInput";
|
|
5
|
+
export var UsersList = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: -0.8em;\n width: 300px;\n max-height: 200px;\n overflow-y: auto;\n box-shadow: rgba(112, 37, 190, 0.11) 0px -6px 26px inset,\n rgba(112, 37, 190, 0.27) 4px 4px 26px inset;\n border: 2px solid ", ";\n border-radius: 5px;\n\n &::-webkit-scrollbar {\n width: 10px;\n background: ", ";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 10px;\n border: 2px solid\n ", ";\n }\n"])), function (_ref) {
|
|
6
|
+
var _purpleMedium;
|
|
7
|
+
var theme = _ref.theme;
|
|
8
|
+
return (_purpleMedium = theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#7c4dff";
|
|
9
|
+
}, function (_ref2) {
|
|
10
|
+
var _shadePurpleLight;
|
|
11
|
+
var theme = _ref2.theme;
|
|
12
|
+
return (_shadePurpleLight = theme.shadePurpleLight) !== null && _shadePurpleLight !== void 0 ? _shadePurpleLight : "#e1bee7";
|
|
13
|
+
}, function (_ref3) {
|
|
14
|
+
var _purpleMedium2;
|
|
15
|
+
var theme = _ref3.theme;
|
|
16
|
+
return (_purpleMedium2 = theme.purpleMedium) !== null && _purpleMedium2 !== void 0 ? _purpleMedium2 : "#7c4dff";
|
|
17
|
+
}, function (_ref4) {
|
|
18
|
+
var _shadePurpleLight2;
|
|
19
|
+
var theme = _ref4.theme;
|
|
20
|
+
return (_shadePurpleLight2 = theme.shadePurpleLight) !== null && _shadePurpleLight2 !== void 0 ? _shadePurpleLight2 : "#e1bee7";
|
|
21
|
+
});
|
|
22
|
+
export var OptionUsersList = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: var(--h6);\n font-weight: var(--weight-regular);\n color: ", " !important;\n background: ", ";\n width: 100%;\n text-align: center;\n margin: 0 !important;\n display: flex;\n justify-content: space-between;\n padding: 3px 10px;\n cursor: pointer;\n\n &:not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n &:hover {\n background: ", ";\n color: ", " !important;\n }\n"])), function (_ref5) {
|
|
23
|
+
var _purpleDark, _goldColor;
|
|
24
|
+
var theme = _ref5.theme,
|
|
25
|
+
active = _ref5.active;
|
|
26
|
+
return !active ? (_purpleDark = theme.purpleDark) !== null && _purpleDark !== void 0 ? _purpleDark : "#2d1e4a" : (_goldColor = theme.goldColor) !== null && _goldColor !== void 0 ? _goldColor : "#f9c407";
|
|
27
|
+
}, function (_ref6) {
|
|
28
|
+
var _shadePurpleDark;
|
|
29
|
+
var theme = _ref6.theme,
|
|
30
|
+
active = _ref6.active;
|
|
31
|
+
return !active ? "transparent" : (_shadePurpleDark = theme.shadePurpleDark) !== null && _shadePurpleDark !== void 0 ? _shadePurpleDark : "#2d1e4a";
|
|
32
|
+
}, function (_ref7) {
|
|
33
|
+
var _purpleMedium3;
|
|
34
|
+
var theme = _ref7.theme;
|
|
35
|
+
return (_purpleMedium3 = theme.purpleMedium) !== null && _purpleMedium3 !== void 0 ? _purpleMedium3 : "#7c4dff";
|
|
36
|
+
}, function (_ref8) {
|
|
37
|
+
var _shadePurpleLight3;
|
|
38
|
+
var theme = _ref8.theme;
|
|
39
|
+
return (_shadePurpleLight3 = theme.shadePurpleLight) !== null && _shadePurpleLight3 !== void 0 ? _shadePurpleLight3 : "#e1bee7";
|
|
40
|
+
}, function (_ref9) {
|
|
41
|
+
var _purpleDark2;
|
|
42
|
+
var theme = _ref9.theme;
|
|
43
|
+
return (_purpleDark2 = theme.purpleDark) !== null && _purpleDark2 !== void 0 ? _purpleDark2 : "#2d1e4a";
|
|
44
|
+
});
|
|
45
|
+
export var ResponsiveHInput = styled(HInput)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 300px;\n @media (max-width: 500px) {\n width: 100%;\n margin: 0;\n }\n"])));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var ModalContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgb(0 0 0 / 69%);\n z-index: 99999;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
5
|
+
export var ModalContent = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 16px;\n color: #555;\n margin: auto;\n margin-bottom: 16px;\n padding: 15px 10px;\n overflow-y: auto;\n overflow-x: hidden;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n\n p {\n text-align: center;\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n }\n\n &::-webkit-scrollbar {\n width: 8px;\n height: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 10px;\n border: 2px solid\n ", ";\n }\n"])), function (_ref) {
|
|
6
|
+
var _textSize;
|
|
7
|
+
var theme = _ref.theme;
|
|
8
|
+
return (_textSize = theme.textSize) !== null && _textSize !== void 0 ? _textSize : "var(--p16)";
|
|
9
|
+
}, function (_ref2) {
|
|
10
|
+
var _purpleDark;
|
|
11
|
+
var theme = _ref2.theme;
|
|
12
|
+
return (_purpleDark = theme.purpleDark) !== null && _purpleDark !== void 0 ? _purpleDark : "#2d1e4a";
|
|
13
|
+
}, function (_ref3) {
|
|
14
|
+
var _textWeight;
|
|
15
|
+
var theme = _ref3.theme;
|
|
16
|
+
return (_textWeight = theme.textWeight) !== null && _textWeight !== void 0 ? _textWeight : "var(--weight-book)";
|
|
17
|
+
}, function (_ref4) {
|
|
18
|
+
var theme = _ref4.theme;
|
|
19
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleLight) || "#3c1b85";
|
|
20
|
+
}, function (_ref5) {
|
|
21
|
+
var theme = _ref5.theme;
|
|
22
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) || "#8545c7";
|
|
23
|
+
}, function (_ref6) {
|
|
24
|
+
var theme = _ref6.theme;
|
|
25
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) || "#3c1b85";
|
|
26
|
+
});
|
|
27
|
+
export var ModalHeader = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n background: ", " !important;\n text-transform: uppercase;\n border-radius: 20px 20px 0 0;\n\n h3 {\n font-size: 20px;\n color: ", " !important;\n }\n"])), function (_ref7) {
|
|
28
|
+
var _shadePurpleDark;
|
|
29
|
+
var theme = _ref7.theme;
|
|
30
|
+
return (_shadePurpleDark = theme.shadePurpleDark) !== null && _shadePurpleDark !== void 0 ? _shadePurpleDark : "#2d1e4a";
|
|
31
|
+
}, function (_ref8) {
|
|
32
|
+
var _purpleLight;
|
|
33
|
+
var theme = _ref8.theme;
|
|
34
|
+
return (_purpleLight = theme.purpleLight2) !== null && _purpleLight !== void 0 ? _purpleLight : "#ce93d8";
|
|
35
|
+
});
|
|
36
|
+
export var CloseButton = styled.button(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: none;\n border: none;\n font-size: 20px;\n font-weight: bold;\n cursor: pointer;\n\n svg {\n color: ", " !important;\n }\n"])), function (_ref9) {
|
|
37
|
+
var _purpleLight2;
|
|
38
|
+
var theme = _ref9.theme;
|
|
39
|
+
return (_purpleLight2 = theme.purpleLight2) !== null && _purpleLight2 !== void 0 ? _purpleLight2 : "#ce93d8";
|
|
40
|
+
});
|
|
41
|
+
export var ModalBody = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-radius: 20px;\n width: ", ";\n height: ", ";\n background: ", " !important;\n display: flex;\n flex-direction: column;\n padding: 0 0 16px 0;\n align-items: center;\n justify-content: flex-start;\n z-index: 9999;\n border: 1px solid ", " !important;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n margin: 0px 10px;\n"])), function (_ref0) {
|
|
42
|
+
var width = _ref0.width;
|
|
43
|
+
return width !== null && width !== void 0 ? width : "500px";
|
|
44
|
+
}, function (_ref1) {
|
|
45
|
+
var height = _ref1.height;
|
|
46
|
+
return height !== null && height !== void 0 ? height : "auto";
|
|
47
|
+
}, function (_ref10) {
|
|
48
|
+
var _shadePurpleLight;
|
|
49
|
+
var theme = _ref10.theme;
|
|
50
|
+
return (_shadePurpleLight = theme.shadePurpleLight) !== null && _shadePurpleLight !== void 0 ? _shadePurpleLight : "#e1bee7";
|
|
51
|
+
}, function (_ref11) {
|
|
52
|
+
var _purpleDark2;
|
|
53
|
+
var theme = _ref11.theme;
|
|
54
|
+
return (_purpleDark2 = theme.purpleDark) !== null && _purpleDark2 !== void 0 ? _purpleDark2 : "#2d1e4a";
|
|
55
|
+
});
|
|
56
|
+
export var ModalFooter = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n gap: 8px;\n flex-wrap: wrap;\n"])));
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var ProgressBarContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n background: ", ";\n border-radius: 10px;\n padding: 3px;\n box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);\n padding: 2px;\n border: 2px solid #9a2eff;\n height: 28px;\n margin-top: 10px;\n position: relative;\n"])), function (_ref) {
|
|
5
|
+
var width = _ref.width;
|
|
6
|
+
return width !== null && width !== void 0 ? width : "100%";
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var _ref3;
|
|
9
|
+
var backgroundColor = _ref2.backgroundColor,
|
|
10
|
+
theme = _ref2.theme;
|
|
11
|
+
return (_ref3 = backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.shadePurpleLight) !== null && _ref3 !== void 0 ? _ref3 : "#e1bee7";
|
|
12
|
+
});
|
|
13
|
+
export var ProgressBarFill = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 20px;\n border-radius: 10px;\n background: ", ";\n width: ", ";\n position: relative;\n transition: width 0.3s ease;\n position: absolute;\n left: 0;\n height: 22px;\n"])), function (_ref4) {
|
|
14
|
+
var _ref5;
|
|
15
|
+
var fillColor = _ref4.fillColor,
|
|
16
|
+
theme = _ref4.theme;
|
|
17
|
+
return (_ref5 = fillColor !== null && fillColor !== void 0 ? fillColor : theme.shadePurpleDark) !== null && _ref5 !== void 0 ? _ref5 : "#2d1e4a";
|
|
18
|
+
}, function (props) {
|
|
19
|
+
return "".concat(Math.min(props.progress, 100), "%");
|
|
20
|
+
});
|
|
21
|
+
export var StarMarker = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 100%;\n height: 40px;\n width: 40px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n position: absolute;\n right: -20px;\n top: -10px;\n z-index: 2;\n"])));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
// Contenedor principal del componente
|
|
5
|
+
export var RadioContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n"])), function (_ref) {
|
|
6
|
+
var direction = _ref.direction;
|
|
7
|
+
return direction !== null && direction !== void 0 ? direction : "column";
|
|
8
|
+
}, function (_ref2) {
|
|
9
|
+
var gap = _ref2.gap;
|
|
10
|
+
return gap !== null && gap !== void 0 ? gap : "10px";
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Contenedor para cada opción (Radio o Checkbox)
|
|
14
|
+
export var OptionContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n align-items: center;\n gap: 10px;\n cursor: pointer;\n"])), function (_ref3) {
|
|
15
|
+
var $labelDirection = _ref3.$labelDirection;
|
|
16
|
+
return $labelDirection !== null && $labelDirection !== void 0 ? $labelDirection : "row";
|
|
17
|
+
});
|
|
18
|
+
export var RadioInput = styled.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n cursor: pointer;\n appearance: none;\n width: 25px;\n height: 25px;\n border: 1px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n position: relative;\n display: inline-block;\n transition: all 0.3s ease;\n\n &:checked[type=\"checkbox\"] {\n background-color: ", ";\n border-color: ", ";\n\n &::after {\n content: \"\u2714\";\n font-size: 20px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: white;\n }\n }\n\n &:checked[type=\"radio\"] {\n background-color: white;\n border-color: ", ";\n &::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background-color: ", ";\n }\n }\n"])), function (_ref4) {
|
|
19
|
+
var _purpleMedium;
|
|
20
|
+
var theme = _ref4.theme;
|
|
21
|
+
return (_purpleMedium = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#6c63ff";
|
|
22
|
+
}, function (_ref5) {
|
|
23
|
+
var type = _ref5.type;
|
|
24
|
+
return type === "checkbox" ? "4px" : "50%";
|
|
25
|
+
}, function (_ref6) {
|
|
26
|
+
var _backgroundLight;
|
|
27
|
+
var theme = _ref6.theme;
|
|
28
|
+
return (_backgroundLight = theme === null || theme === void 0 ? void 0 : theme.backgroundLight) !== null && _backgroundLight !== void 0 ? _backgroundLight : "#fff";
|
|
29
|
+
}, function (_ref7) {
|
|
30
|
+
var _purpleMedium2;
|
|
31
|
+
var theme = _ref7.theme;
|
|
32
|
+
return (_purpleMedium2 = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium2 !== void 0 ? _purpleMedium2 : "#6c63ff";
|
|
33
|
+
}, function (_ref8) {
|
|
34
|
+
var _purpleDark;
|
|
35
|
+
var theme = _ref8.theme;
|
|
36
|
+
return (_purpleDark = theme === null || theme === void 0 ? void 0 : theme.purpleDark) !== null && _purpleDark !== void 0 ? _purpleDark : "#4c3faa";
|
|
37
|
+
}, function (_ref9) {
|
|
38
|
+
var _purpleDark2;
|
|
39
|
+
var theme = _ref9.theme;
|
|
40
|
+
return (_purpleDark2 = theme === null || theme === void 0 ? void 0 : theme.purpleDark) !== null && _purpleDark2 !== void 0 ? _purpleDark2 : "#4c3faa";
|
|
41
|
+
}, function (_ref0) {
|
|
42
|
+
var _purpleDark3;
|
|
43
|
+
var theme = _ref0.theme;
|
|
44
|
+
return (_purpleDark3 = theme === null || theme === void 0 ? void 0 : theme.purpleDark) !== null && _purpleDark3 !== void 0 ? _purpleDark3 : "#4c3faa";
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Label de las opciones
|
|
48
|
+
export var RadioLabel = styled.label(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n"])), function (_ref1) {
|
|
49
|
+
var $labelSize = _ref1.$labelSize;
|
|
50
|
+
return $labelSize !== null && $labelSize !== void 0 ? $labelSize : "var(--h5)";
|
|
51
|
+
}, function (_ref10) {
|
|
52
|
+
var _ref11;
|
|
53
|
+
var $labelColor = _ref10.$labelColor,
|
|
54
|
+
theme = _ref10.theme;
|
|
55
|
+
return (_ref11 = $labelColor !== null && $labelColor !== void 0 ? $labelColor : theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _ref11 !== void 0 ? _ref11 : "black";
|
|
56
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var ScoreBarContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n width: 15px;\n position: relative;\n overflow: hidden;\n border-radius: 10px;\n margin-right: 15px;\n align-self: start;\n border: 3px solid ", ";\n"])), function (props) {
|
|
5
|
+
var _props$height;
|
|
6
|
+
return (_props$height = props.height) !== null && _props$height !== void 0 ? _props$height : 536;
|
|
7
|
+
}, function (_ref) {
|
|
8
|
+
var _purpleMedium;
|
|
9
|
+
var theme = _ref.theme;
|
|
10
|
+
return (_purpleMedium = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#6c63ff";
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Styled component for White's score indicator
|
|
14
|
+
export var WhiteScoreIndicator = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: ", "px;\n background-color: ", "; // White's color\n position: absolute;\n top: ", ";\n bottom: ", ";\n transition: height 0.3s ease-in-out;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n"])), function (props) {
|
|
15
|
+
return (props.height ? props.height / 2 : 268) + props.score / 1000 * (props.height ? props.height / 2 : 268);
|
|
16
|
+
}, function (_ref2) {
|
|
17
|
+
var _purpleLight;
|
|
18
|
+
var theme = _ref2.theme;
|
|
19
|
+
return (_purpleLight = theme === null || theme === void 0 ? void 0 : theme.purpleLight) !== null && _purpleLight !== void 0 ? _purpleLight : "#e1bee7";
|
|
20
|
+
}, function (props) {
|
|
21
|
+
return props.player === "white" ? null : 0;
|
|
22
|
+
}, function (props) {
|
|
23
|
+
return props.player === "white" ? 0 : null;
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.player === "white" ? 0 : 10;
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.player === "white" ? 0 : 10;
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return props.player === "white" ? 10 : 0;
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return props.player === "white" ? 10 : 0;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Styled component for Black's score indicator
|
|
35
|
+
export var BlackScoreIndicator = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n height: ", "px;\n background-color: ", "; // Black's color\n position: absolute;\n top: ", ";\n bottom: ", ";\n transition: height 0.3s ease-in-out;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n"])), function (props) {
|
|
36
|
+
return (props.height ? props.height / 2 : 268) - props.score / 1000 * (props.height ? props.height / 2 : 268);
|
|
37
|
+
}, function (_ref3) {
|
|
38
|
+
var _purpleMedium2;
|
|
39
|
+
var theme = _ref3.theme;
|
|
40
|
+
return (_purpleMedium2 = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium2 !== void 0 ? _purpleMedium2 : "#6c63ff";
|
|
41
|
+
}, function (props) {
|
|
42
|
+
return props.player === "white" ? 0 : null;
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return props.player === "white" ? null : 0;
|
|
45
|
+
}, function (props) {
|
|
46
|
+
return props.player !== "white" ? 0 : 10;
|
|
47
|
+
}, function (props) {
|
|
48
|
+
return props.player !== "white" ? 0 : 10;
|
|
49
|
+
}, function (props) {
|
|
50
|
+
return props.player !== "white" ? 10 : 0;
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.player !== "white" ? 10 : 0;
|
|
53
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var SearchContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", "; /* Direcci\xF3n (row o column) */\n gap: ", "; /* Espaciado entre label y select */\n"])), function (_ref) {
|
|
5
|
+
var direction = _ref.direction;
|
|
6
|
+
return direction !== null && direction !== void 0 ? direction : "column";
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var gap = _ref2.gap;
|
|
9
|
+
return gap;
|
|
10
|
+
});
|
|
11
|
+
export var SearchLabel = styled.label(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n font-weight: ", ";\n\n color: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n"])), function (_ref3) {
|
|
12
|
+
var $labelSize = _ref3.$labelSize;
|
|
13
|
+
if (!$labelSize) return "var(--p16)";
|
|
14
|
+
if ($labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("h") || $labelSize !== null && $labelSize !== void 0 && $labelSize.startsWith("p")) {
|
|
15
|
+
return "var(--".concat($labelSize, ", var(--p16))");
|
|
16
|
+
}
|
|
17
|
+
return $labelSize;
|
|
18
|
+
}, function (_ref4) {
|
|
19
|
+
var $labelWeight = _ref4.$labelWeight;
|
|
20
|
+
if (!$labelWeight) return "var(--weight-medium)";
|
|
21
|
+
if ($labelWeight !== null && $labelWeight !== void 0 && $labelWeight.startsWith("weight-")) {
|
|
22
|
+
return "var(--".concat($labelWeight, ", var(--weight-medium))");
|
|
23
|
+
}
|
|
24
|
+
return $labelWeight; // 400, 700, 'inherit', etc.
|
|
25
|
+
}, function (_ref5) {
|
|
26
|
+
var _purpleMedium;
|
|
27
|
+
var $labelColor = _ref5.$labelColor,
|
|
28
|
+
theme = _ref5.theme;
|
|
29
|
+
return $labelColor && (theme === null || theme === void 0 ? void 0 : theme["".concat($labelColor)]) || $labelColor || ((_purpleMedium = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#6c63ff");
|
|
30
|
+
});
|
|
31
|
+
export var SearchInputContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n width: ", "; /* Ancho predeterminado */\n height: ", "; /* Altura predeterminada */\n display: flex;\n align-items: center;\n border: 2.5px solid\n ", ";\n border-radius: ", ";\n background: white;\n box-shadow: rgba(112, 37, 190, 0.11) 0px -6px 26px inset,\n rgba(112, 37, 190, 0.27) 4px 4px 26px inset;\n padding: 0 ", ";\n\n img {\n margin-right: ", ";\n }\n"])), function (props) {
|
|
32
|
+
var _props$width;
|
|
33
|
+
return (_props$width = props.width) !== null && _props$width !== void 0 ? _props$width : "367px";
|
|
34
|
+
}, function (props) {
|
|
35
|
+
var _props$height;
|
|
36
|
+
return (_props$height = props.height) !== null && _props$height !== void 0 ? _props$height : "40px";
|
|
37
|
+
}, function (props) {
|
|
38
|
+
var _ref6, _props$borderColor, _props$theme;
|
|
39
|
+
return (_ref6 = (_props$borderColor = props.borderColor) !== null && _props$borderColor !== void 0 ? _props$borderColor : (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.purpleMedium) !== null && _ref6 !== void 0 ? _ref6 : "#6c63ff";
|
|
40
|
+
}, function (props) {
|
|
41
|
+
var _props$borderRadius;
|
|
42
|
+
return (_props$borderRadius = props.borderRadius) !== null && _props$borderRadius !== void 0 ? _props$borderRadius : "20px";
|
|
43
|
+
}, function (props) {
|
|
44
|
+
var _props$gap;
|
|
45
|
+
return (_props$gap = props.gap) !== null && _props$gap !== void 0 ? _props$gap : "10px";
|
|
46
|
+
}, function (props) {
|
|
47
|
+
var _props$gap2;
|
|
48
|
+
return (_props$gap2 = props.gap) !== null && _props$gap2 !== void 0 ? _props$gap2 : "10px";
|
|
49
|
+
});
|
|
50
|
+
export var SearchInput = styled.input(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n\n font-size: ", ";\n\n font-weight: ", ";\n\n color: ", "; /* Color del texto desde el theme */\n\n background: transparent;\n border: none;\n border-radius: ", ";\n font-family: \"Poppins\", sans-serif;\n line-height: 1.5;\n\n &:focus,\n &:focus-visible {\n outline: none;\n }\n"])), function (_ref7) {
|
|
51
|
+
var $fontSize = _ref7.$fontSize;
|
|
52
|
+
if (!$fontSize) return "var(--p16)";
|
|
53
|
+
if ($fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("h") || $fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("p")) {
|
|
54
|
+
return "var(--".concat($fontSize, ", var(--p16))");
|
|
55
|
+
}
|
|
56
|
+
return $fontSize;
|
|
57
|
+
}, function (_ref8) {
|
|
58
|
+
var $fontWeight = _ref8.$fontWeight;
|
|
59
|
+
if (!$fontWeight) return "var(--weight-book)";
|
|
60
|
+
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
61
|
+
return "var(--".concat($fontWeight, ", var(--weight-book))");
|
|
62
|
+
}
|
|
63
|
+
return $fontWeight; // 400, 700, 'inherit', etc.
|
|
64
|
+
}, function (_ref9) {
|
|
65
|
+
var _ref0, _ref1, _ref10;
|
|
66
|
+
var $fontColor = _ref9.$fontColor,
|
|
67
|
+
theme = _ref9.theme;
|
|
68
|
+
return (_ref0 = (_ref1 = (_ref10 = $fontColor && (theme === null || theme === void 0 ? void 0 : theme["".concat($fontColor)])) !== null && _ref10 !== void 0 ? _ref10 : $fontColor) !== null && _ref1 !== void 0 ? _ref1 : theme === null || theme === void 0 ? void 0 : theme.purpleLight2) !== null && _ref0 !== void 0 ? _ref0 : "#e1bee7";
|
|
69
|
+
}, function (props) {
|
|
70
|
+
var _props$borderRadius2;
|
|
71
|
+
return (_props$borderRadius2 = props.borderRadius) !== null && _props$borderRadius2 !== void 0 ? _props$borderRadius2 : "20px";
|
|
72
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import Slider from "rc-slider";
|
|
5
|
+
export var StyledSlider = styled(Slider)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 22px;\n width: 100%;\n max-width: 340px;\n\n .rc-slider-rail {\n border-radius: 7.5px;\n background: ", ";\n height: 10px;\n position: absolute;\n width: 100%;\n }\n\n .rc-slider-track {\n border-radius: 7.5px;\n background: ", ";\n height: 10px;\n position: absolute;\n }\n\n .rc-slider-handle {\n border-radius: 50%;\n background: ", ";\n height: 30px;\n width: 30px;\n margin-top: -11px;\n border: 8px white solid;\n box-shadow: 7px 7px 29px 0px rgba(112, 37, 190, 0.5) !important;\n border-color: white !important;\n opacity: 1;\n position: absolute;\n\n &:hover {\n background-color: unset;\n }\n\n &:focus-visible {\n border: 8px white solid;\n }\n }\n"])), function (_ref) {
|
|
6
|
+
var _purpleLight, _purpleLight2;
|
|
7
|
+
var theme = _ref.theme,
|
|
8
|
+
specialBg = _ref.specialBg;
|
|
9
|
+
return specialBg ? (_purpleLight = theme === null || theme === void 0 ? void 0 : theme.purpleLight) !== null && _purpleLight !== void 0 ? _purpleLight : "#e1bee7" : (_purpleLight2 = theme === null || theme === void 0 ? void 0 : theme.purpleLight2) !== null && _purpleLight2 !== void 0 ? _purpleLight2 : "#f3e5f5";
|
|
10
|
+
}, function (_ref2) {
|
|
11
|
+
var _shadePurpleDark;
|
|
12
|
+
var theme = _ref2.theme;
|
|
13
|
+
return (_shadePurpleDark = theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) !== null && _shadePurpleDark !== void 0 ? _shadePurpleDark : "#2d1e4a";
|
|
14
|
+
}, function (_ref3) {
|
|
15
|
+
var _shadePurpleDark2;
|
|
16
|
+
var theme = _ref3.theme;
|
|
17
|
+
return (_shadePurpleDark2 = theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) !== null && _shadePurpleDark2 !== void 0 ? _shadePurpleDark2 : "#2d1e4a";
|
|
18
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
export var TabContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border: 3px solid ", ";\n border-radius: 25px;\n"])), function (_ref) {
|
|
5
|
+
var _purpleMedium;
|
|
6
|
+
var theme = _ref.theme;
|
|
7
|
+
return (_purpleMedium = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium !== void 0 ? _purpleMedium : "#6c63ff";
|
|
8
|
+
});
|
|
9
|
+
export var Tab = styled.h1(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n font-weight: var(--weight-bold);\n border-radius: 25px;\n padding: 5px 20px;\n font-size: ", ";\n margin: 0;\n transition: all 0.3s ease;\n\n &:hover {\n opacity: 0.8;\n }\n"])), function (_ref2) {
|
|
10
|
+
var _shadePurpleDark;
|
|
11
|
+
var theme = _ref2.theme,
|
|
12
|
+
active = _ref2.active;
|
|
13
|
+
return active ? (_shadePurpleDark = theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) !== null && _shadePurpleDark !== void 0 ? _shadePurpleDark : "#2d1e4a" : "transparent";
|
|
14
|
+
}, function (_ref3) {
|
|
15
|
+
var _purpleLight, _purpleMedium2;
|
|
16
|
+
var theme = _ref3.theme,
|
|
17
|
+
active = _ref3.active;
|
|
18
|
+
return active ? (_purpleLight = theme === null || theme === void 0 ? void 0 : theme.purpleLight) !== null && _purpleLight !== void 0 ? _purpleLight : "#e1bee7" : (_purpleMedium2 = theme === null || theme === void 0 ? void 0 : theme.purpleMedium) !== null && _purpleMedium2 !== void 0 ? _purpleMedium2 : "#6c63ff";
|
|
19
|
+
}, function (_ref4) {
|
|
20
|
+
var moreFont = _ref4.moreFont;
|
|
21
|
+
return !moreFont ? "var(--p14)" : "var(--h6)";
|
|
22
|
+
});
|