heroes-of-chess-components 0.6.8 → 0.6.10
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/HocComponents/HAccordion/HAccordion.js +105 -0
- package/dist/lib/HocComponents/HAccordion/HAccordion.styled.js +33 -0
- package/dist/lib/HocComponents/HBackground/HBackground.js +32 -0
- package/dist/lib/HocComponents/HBackground/HBackground.styled.js +18 -0
- package/dist/lib/HocComponents/HBlackBack/HBlackBack.js +15 -0
- package/dist/lib/HocComponents/HBlackBack/HBlackBack.styled.js +4 -0
- package/dist/lib/HocComponents/HBox/HBox.js +66 -0
- package/dist/lib/HocComponents/HBox/HBox.styled.js +51 -0
- package/dist/lib/HocComponents/HButton/HButton.js +55 -0
- package/dist/lib/HocComponents/HButton/HButton.styled.js +51 -0
- package/dist/lib/HocComponents/HCalendar/HCalendar.js +34 -0
- package/dist/lib/HocComponents/HCalendar/HCalendar.styled.js +5 -0
- package/dist/lib/HocComponents/HCalendarStyled/HCalendarStyled.js +30 -0
- package/dist/lib/HocComponents/HCalendarStyled/HCalendarStyled.styled.js +25 -0
- package/dist/lib/HocComponents/HCards/Cards.styled.js +26 -0
- package/dist/lib/HocComponents/HCards/HCardLayout.js +41 -0
- package/dist/lib/HocComponents/HCards/HPlayerCard/HCardPlayerActions.js +78 -0
- package/dist/lib/HocComponents/HCards/HPlayerCard/HCardPlayerInfo.js +51 -0
- package/dist/lib/HocComponents/HCards/HProductCard/HCardProductInfo.js +82 -0
- package/dist/lib/HocComponents/HCards/HProductCard/HCardProductsActions.js +33 -0
- package/dist/lib/HocComponents/HCircularButton/HCircularButton.js +80 -0
- package/dist/lib/HocComponents/HCircularButton/HCircularButton.styled.js +43 -0
- package/dist/lib/HocComponents/HCircularTextButton/HCircularTextButton.js +37 -0
- package/dist/lib/HocComponents/HCircularTextButton/HCircularTextButton.styled.js +37 -0
- package/dist/lib/HocComponents/HClientCalendar/ClientCalendarComponent.js +22 -6
- package/dist/lib/HocComponents/HCoinLabel/HCoin.styled.js +53 -0
- package/dist/lib/HocComponents/HCoinLabel/HCoinLabel.js +67 -0
- package/dist/lib/HocComponents/HDropdown/HDropdown.js +281 -0
- package/dist/lib/HocComponents/HDropdown/HDropdown.styled.js +162 -0
- package/dist/lib/HocComponents/HInitBackgroundAnimation/HInitBackgroundAnimation.js +32 -0
- package/dist/lib/HocComponents/HInitBackgroundAnimation/HInitBackgroundAnimation.styled.js +15 -0
- package/dist/lib/HocComponents/HInput/HInput.js +150 -0
- package/dist/lib/HocComponents/HInput/HInput.styled.js +137 -0
- package/dist/lib/HocComponents/HInputArea/HInputArea.js +73 -0
- package/dist/lib/HocComponents/HInputArea/HInputArea.styled.js +81 -0
- package/dist/lib/HocComponents/HLevelUpAnimation/HLevelUpAnimation.js +83 -0
- package/dist/lib/HocComponents/HLevelUpAnimation/HLevelUpAnimation.styled.js +6 -0
- package/dist/lib/HocComponents/HLoaderSpinner/HLoaderSpinner.js +22 -0
- package/dist/lib/HocComponents/HLogin/HLogin.js +325 -0
- package/dist/lib/HocComponents/HLogin/HLogin.styled.js +30 -0
- package/dist/lib/HocComponents/HModal/HModal.js +201 -0
- package/dist/lib/HocComponents/HModal/HModal.styled.js +60 -0
- package/dist/lib/HocComponents/HModal/HModalSecurityCode.js +38 -0
- package/dist/lib/HocComponents/HModalData/HModalData.js +167 -0
- package/dist/lib/HocComponents/HNavbar/HHeader/HHeader.js +0 -0
- package/dist/lib/HocComponents/HNavbar/HHeader/Header.styled.js +48 -0
- package/dist/lib/HocComponents/HNavbar/HHeaderCharacter/HeaderCharacter.js +353 -0
- package/dist/lib/HocComponents/HNavbar/HHeaderCharacter/HeaderCharacter.styled.js +63 -0
- package/dist/lib/HocComponents/HNavbar/HHeaderSideMenu/HeaderSideMenu.js +106 -0
- package/dist/lib/HocComponents/HNavbar/HHeaderSideMenu/HeaderSideMenu.styled.js +47 -0
- package/dist/lib/HocComponents/HPagination/HPagination.js +79 -0
- package/dist/lib/HocComponents/HPopUp/HPopUp.js +98 -0
- package/dist/lib/HocComponents/HProgressBar/HProgressBar.js +31 -0
- package/dist/lib/HocComponents/HProgressBar/HProgressBar.styled.js +14 -0
- package/dist/lib/HocComponents/HRadio/HRadio.js +107 -0
- package/dist/lib/HocComponents/HRadio/HRadio.styled.js +50 -0
- package/dist/lib/HocComponents/HScoreBar/HScoreBar.js +46 -0
- package/dist/lib/HocComponents/HScoreBar/HScoreBar.styled.js +49 -0
- package/dist/lib/HocComponents/HSearchInput/HSearchInput.js +68 -0
- package/dist/lib/HocComponents/HSearchInput/HSearchInput.styled.js +64 -0
- package/dist/lib/HocComponents/HSlider/HSlider.js +31 -0
- package/dist/lib/HocComponents/HSlider/HSlider.styled.js +15 -0
- package/dist/lib/HocComponents/HTabs/HTabs.js +45 -0
- package/dist/lib/HocComponents/HTabs/HTabs.styled.js +19 -0
- package/dist/lib/HocComponents/HText/HText.js +50 -0
- package/dist/lib/HocComponents/HText/HText.styled.js +56 -0
- package/dist/lib/HocComponents/HTitle/HTitle.js +54 -0
- package/dist/lib/HocComponents/HTitle/HTitle.styled.js +54 -0
- package/dist/lib/HocComponents/HToggleButton/HToggleButton.js +76 -0
- package/dist/lib/HocComponents/HToggleButton/HToggleButton.styled.js +49 -0
- package/dist/lib/HocComponents/HToggleButtonCustom/HCustomToggle.styled.js +59 -0
- package/dist/lib/HocComponents/HToggleButtonCustom/HToggleButtonCustom.js +65 -0
- package/dist/lib/HocComponents/HVideoPlayer/HVideoPlayer.js +36 -0
- package/dist/lib/assets/HocLogos/logoCircular.svg +21 -21
- package/dist/lib/assets/HocLogos/logoLogin.svg +28 -28
- package/dist/lib/assets/HocLogos/shieldTitans.svg +32 -32
- package/dist/lib/assets/HocLogos/shieldWithLogo.svg +33 -33
- package/dist/lib/assets/HocLogos/shiledTitans.svg +33 -0
- 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/blackBishop.svg +1 -0
- package/dist/lib/assets/Icons/ui/blackKing.svg +32 -0
- package/dist/lib/assets/Icons/ui/blackKnight.svg +1 -0
- package/dist/lib/assets/Icons/ui/blackQueen.svg +1 -0
- package/dist/lib/assets/Icons/ui/blackRook.svg +1 -0
- package/dist/lib/assets/Icons/ui/booking/index.js +1 -0
- package/dist/lib/assets/Icons/ui/booking/videos.svg +14 -0
- 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/close.svg +18 -0
- 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/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/message.svg +11 -0
- 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/notificationRing.svg +13 -0
- 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/startGold.svg +10 -0
- 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/ticketsNavbar.svg +5 -5
- 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/whiteBishop.svg +1 -0
- package/dist/lib/assets/Icons/ui/whiteKing.svg +25 -0
- package/dist/lib/assets/Icons/ui/whiteKnight.svg +1 -0
- package/dist/lib/assets/Icons/ui/whiteQueen.svg +1 -0
- package/dist/lib/assets/Icons/ui/whiteRook.svg +1 -0
- package/dist/lib/assets/Icons/ui/wrongAnswer.svg +542 -542
- package/dist/lib/assets/aiCharacters/defaultFrame.svg +9 -9
- package/dist/lib/assets/backgrounds/backgroundBoard.svg +203 -0
- 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/characters/Evelot barber.png +0 -0
- package/dist/lib/assets/characters/Perdita farmer.png +0 -0
- package/dist/lib/assets/characters/Rowan.webp +0 -0
- package/dist/lib/assets/chessboard/blackBishop.svg +47 -47
- package/dist/lib/assets/chessboard/blackKing.svg +51 -51
- package/dist/lib/assets/chessboard/blackKnight.svg +63 -63
- package/dist/lib/assets/chessboard/blackPawn.svg +30 -30
- package/dist/lib/assets/chessboard/blackQueen.svg +68 -68
- package/dist/lib/assets/chessboard/blackRook.svg +81 -81
- package/dist/lib/assets/chessboard/whiteBishop.svg +40 -40
- package/dist/lib/assets/chessboard/whiteKing.svg +35 -35
- package/dist/lib/assets/chessboard/whiteKnight.svg +44 -44
- package/dist/lib/assets/chessboard/whitePawn.svg +26 -26
- package/dist/lib/assets/chessboard/whiteQueen.svg +54 -54
- package/dist/lib/assets/chessboard/whiteRook.svg +50 -50
- 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/levelZero/index.js +1 -1
- package/dist/lib/assets/levelZero/lv0Capture.svg +27 -0
- package/dist/lib/assets/levelZero/lv0Capture2.svg +27 -0
- package/dist/lib/assets/levelZero/lv0Combat.svg +32 -0
- package/dist/lib/assets/levelZero/lv0Combat2.svg +32 -0
- package/dist/lib/assets/levelZero/lv0MateInOne.svg +16 -0
- package/dist/lib/assets/levelZero/lv0MateInOne2.svg +16 -0
- package/dist/lib/assets/levelZero/lv0OutOfCheck.svg +27 -0
- package/dist/lib/assets/levelZero/lv0OutOfCheck2.svg +27 -0
- package/dist/lib/assets/levelZero/lv0Protection.svg +20 -0
- package/dist/lib/assets/levelZero/lv0Protection2.svg +20 -0
- package/dist/lib/assets/miniGames/sudoku/bgMiniGames.svg +962 -0
- 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/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/sounds/Attention Sound.wav +0 -0
- package/dist/lib/assets/sounds/Boton de reclamar.wav +0 -0
- package/dist/lib/assets/sounds/Cancelar.wav +0 -0
- package/dist/lib/assets/sounds/Chat Message.wav +0 -0
- package/dist/lib/assets/sounds/Confirmar.wav +0 -0
- package/dist/lib/assets/sounds/Draw.wav +0 -0
- package/dist/lib/assets/sounds/Invitacion a duelo 1.wav +0 -0
- package/dist/lib/assets/sounds/Mover ficha de ajedrez.wav +0 -0
- package/dist/lib/assets/sounds/Next level.wav +0 -0
- package/dist/lib/assets/sounds/Rechazar duelo.wav +0 -0
- package/dist/lib/assets/sounds/Ruleta sound.wav +0 -0
- package/dist/lib/assets/sounds/Sonido correcto.wav +0 -0
- package/dist/lib/assets/sounds/Sonido incorrecto.wav +0 -0
- package/dist/lib/assets/sounds/Sonido semaforo.wav +0 -0
- package/dist/lib/assets/sounds/Vanquish Pop.wav +0 -0
- package/dist/lib/assets/sounds/VanquishPop.wav +0 -0
- package/dist/lib/assets/sounds/abrir chat.wav +0 -0
- package/dist/lib/assets/sounds/abrir settings.wav +0 -0
- package/dist/lib/assets/sounds/acceptModal.wav +0 -0
- package/dist/lib/assets/sounds/aceptar duelo.wav +0 -0
- package/dist/lib/assets/sounds/amenaza al rey.wav +0 -0
- package/dist/lib/assets/sounds/attentionSound.wav +0 -0
- package/dist/lib/assets/sounds/avatarButton.wav +0 -0
- package/dist/lib/assets/sounds/bloqueado no deja acceder.wav +0 -0
- package/dist/lib/assets/sounds/book-cover-close-01.wav +0 -0
- package/dist/lib/assets/sounds/book.wav +0 -0
- package/dist/lib/assets/sounds/boton avatar.wav +0 -0
- package/dist/lib/assets/sounds/button-1.wav +0 -0
- package/dist/lib/assets/sounds/button-2.wav +0 -0
- package/dist/lib/assets/sounds/button-25.wav +0 -0
- package/dist/lib/assets/sounds/cambiar opcion.wav +0 -0
- package/dist/lib/assets/sounds/cancel.wav +0 -0
- package/dist/lib/assets/sounds/cerrar sonido.wav +0 -0
- package/dist/lib/assets/sounds/chatMessage.wav +0 -0
- package/dist/lib/assets/sounds/chicken.wav +0 -0
- package/dist/lib/assets/sounds/chooseGame.wav +0 -0
- package/dist/lib/assets/sounds/claimButton.wav +0 -0
- package/dist/lib/assets/sounds/coins-Jackpot.wav +0 -0
- package/dist/lib/assets/sounds/comfirmacion modal.wav +0 -0
- package/dist/lib/assets/sounds/comienzo del duelo.wav +0 -0
- package/dist/lib/assets/sounds/confirm.wav +0 -0
- package/dist/lib/assets/sounds/correctMove.wav +0 -0
- package/dist/lib/assets/sounds/correctMovement.wav +0 -0
- package/dist/lib/assets/sounds/diamantes.mp3 +0 -0
- package/dist/lib/assets/sounds/enroque.wav +0 -0
- package/dist/lib/assets/sounds/escoger juego.wav +0 -0
- package/dist/lib/assets/sounds/in passant.wav +0 -0
- package/dist/lib/assets/sounds/inicio video.wav +0 -0
- package/dist/lib/assets/sounds/jugada correcta.wav +0 -0
- package/dist/lib/assets/sounds/level-up.wav +0 -0
- package/dist/lib/assets/sounds/levelUp.wav +0 -0
- package/dist/lib/assets/sounds/link.wav +0 -0
- package/dist/lib/assets/sounds/monedas.wav +0 -0
- package/dist/lib/assets/sounds/muerte rey.wav +0 -0
- package/dist/lib/assets/sounds/next.wav +0 -0
- package/dist/lib/assets/sounds/nextLevel.wav +0 -0
- package/dist/lib/assets/sounds/notificacion.wav +0 -0
- package/dist/lib/assets/sounds/openChat.wav +0 -0
- package/dist/lib/assets/sounds/openSettings.wav +0 -0
- package/dist/lib/assets/sounds/optionSettings.wav +0 -0
- package/dist/lib/assets/sounds/page-flip-1.wav +0 -0
- package/dist/lib/assets/sounds/page-flip-8.wav +0 -0
- package/dist/lib/assets/sounds/pageFlip1.wav +0 -0
- package/dist/lib/assets/sounds/pageFlip2.wav +0 -0
- package/dist/lib/assets/sounds/pasar las cartas.wav +0 -0
- package/dist/lib/assets/sounds/passCards.wav +0 -0
- package/dist/lib/assets/sounds/presionar opciones settings.wav +0 -0
- package/dist/lib/assets/sounds/quiz.wav +0 -0
- package/dist/lib/assets/sounds/regresar.wav +0 -0
- package/dist/lib/assets/sounds/secondaryAreaSelection.wav +0 -0
- package/dist/lib/assets/sounds/seleccion de areas secundarias.wav +0 -0
- package/dist/lib/assets/sounds/seleccionar pilar.wav +0 -0
- package/dist/lib/assets/sounds/slot.wav +0 -0
- package/dist/lib/assets/sounds/sonido de matar pieza.wav +0 -0
- package/dist/lib/assets/sounds/startVideo.wav +0 -0
- package/dist/lib/assets/sounds/tape-recorder-close-1.wav +0 -0
- package/dist/lib/assets/sounds/tape-recorder-eject-1.wav +0 -0
- package/dist/lib/assets/sounds/toggle off.wav +0 -0
- package/dist/lib/assets/sounds/toggle on.wav +0 -0
- package/dist/lib/assets/sounds/toggle secundario.wav +0 -0
- package/dist/lib/assets/sounds/toggleOff.wav +0 -0
- package/dist/lib/assets/sounds/toggleOn.wav +0 -0
- package/dist/lib/assets/sounds/whip-whoosh-02.wav +0 -0
- package/dist/lib/assets/sounds/whip-whoosh-03.wav +0 -0
- package/dist/lib/assets/store/brainRot.svg +23 -23
- package/dist/lib/assets/store/brainRotActive.svg +23 -23
- package/dist/lib/assets/store/dragonball.svg +16 -0
- package/dist/lib/assets/store/dragonballActive.svg +16 -0
- package/dist/lib/assets/store/halloween.svg +18 -18
- package/dist/lib/assets/store/halloweenActive.svg +18 -18
- package/dist/lib/assets/store/stitch.svg +19 -19
- package/dist/lib/assets/store/stitchActive.svg +19 -19
- package/dist/lib/assets/studiesCards/1-Learn To Play Chess_1-Pawn Promotion.png +0 -0
- package/dist/lib/assets/studiesCards/1-Learn To Play Chess_2-En Passant.png +0 -0
- Capturing.png +0 -0
- package/dist/lib/assets/studiesCards/1-Learn To Play Chess_4-Castling.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_1-Sacrificing to Win.png +0 -0
- Zwischenzug.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_2-Trapped Piece.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_3-Discovered Attack.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_4-Discovered Check.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_5-Double Check.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_6-Remove the Defender.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_7-smothered mate.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_8-Deflection.png +0 -0
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_9-Decoy.png +0 -0
- package/dist/lib/assets/studiesCards/11-Forcing Moves_1-Powerful moves.png +0 -0
- package/dist/lib/assets/studiesCards/11-Forcing Moves_2-Combinations.png +0 -0
- package/dist/lib/assets/studiesCards/11-Forcing Moves_3-Checkmate in 3 Moves.png +0 -0
- package/dist/lib/assets/studiesCards/11-Forcing Moves_4-Queen Sacrifices.png +0 -0
- package/dist/lib/assets/studiesCards/11-Forcing Moves_5-Saving Draws.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_1-Pawn Structures.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_2-Pawn Chains.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_3-Space.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_4-Open, Closed, Semi-open Games.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_5-Push, Capture, or Ignore.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_5-When to Trade Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/12-Reading the Board_6-Advanced Chess Notation.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_1-Offbeat Openings.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_1-Offbeat Openings/342/200/250.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_2-Popular e4 Openings.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_3-Popular e4 Defenses The Sicilian.png +0 -0
- Caro-Kann.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_5-Popular d4 Openings.png +0 -0
- the Dutch.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_7-Gambits.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_7-Gambits/342/200/250.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_8-Opening Traps.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_1-How to Choose a Move.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_2-Making a Plan.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_3-Positional Play.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_4-Good & Bad Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_5-Playing a Bad Position.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_6-When You're Losing.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_7-Winning the Won Game.png +0 -0
- package/dist/lib/assets/studiesCards/14-Choosing the Best Move_8-Overcoming Your Emotions.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_1-Breakthrough.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_10-Windmill.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_2-Pawns in the Middlegame.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_3-Blockading Pawns.png +0 -0
- Hanging Pawns.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_5-Outposts.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_6-Using the Bishop Pair.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_7-Bishops vs Knights.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_8-Batteries.png +0 -0
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_9-Pigs on the 7th Rank.png +0 -0
- package/dist/lib/assets/studiesCards/16-Advanced Endgames_1-Endgame Principles.png +0 -0
- package/dist/lib/assets/studiesCards/16-Advanced Endgames_2-Common Rook Endgames.png +0 -0
- package/dist/lib/assets/studiesCards/16-Advanced Endgames_3-King Opposition.png +0 -0
- package/dist/lib/assets/studiesCards/16-Advanced Endgames_4-Zugzwang.png +0 -0
- package/dist/lib/assets/studiesCards/16-Advanced Endgames_5-Opposite Colored Bishops in the Endgame.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_1-King in Danger.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_2-Attacking the Castled King.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_3-Advanced Checkmate Patterns.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_4-Mating Net.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_5-Provoking Weaknesses.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_6-Defending the King.png +0 -0
- package/dist/lib/assets/studiesCards/17-Attacking the King_6-Pawn Storms.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_1-Exchange Sacrifices.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_1-Exchange Sacrifices/342/200/250.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_2-Clearance Sacrifices.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_3-Overloading.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_4-Interference.png +0 -0
- package/dist/lib/assets/studiesCards/18-Advanced Tactics_5-Underpromotion.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_1-Distant Opposition.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_2-Triangulation.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_3-Lucena Position.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_4-Philidor Position.png +0 -0
- Pawns.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_6-Queen vs Pawn.png +0 -0
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_7-Two Bishop Checkmate.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_1-The Value Of The Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_2-Finding the Right Move.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_3-The Language of Chess.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_4-Playing a Game.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_5-Stalemate.png +0 -0
- package/dist/lib/assets/studiesCards/2-Playing the Game_6-Other Draws.png +0 -0
- package/dist/lib/assets/studiesCards/3-Opening Principles_1-Control the Center.png +0 -0
- package/dist/lib/assets/studiesCards/3-Opening Principles_2-Develop Your Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/3-Opening Principles_3-Protect Your King.png +0 -0
- package/dist/lib/assets/studiesCards/3-Opening Principles_4-Active Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/3-Opening Principles_5-Phases of the Game.png +0 -0
- package/dist/lib/assets/studiesCards/4-Winning the game_1-The 4-Move Checkmate.png +0 -0
- package/dist/lib/assets/studiesCards/4-Winning the game_2-Assisted Checkmates.png +0 -0
- package/dist/lib/assets/studiesCards/4-Winning the game_3-Checkmate with Two Rooks.png +0 -0
- package/dist/lib/assets/studiesCards/4-Winning the game_4-Checkmate with the Queen.png +0 -0
- package/dist/lib/assets/studiesCards/4-Winning the game_5-Checkmate with the Rook.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_1-Evaluating Captures.png +0 -0
- Hanging Pieces.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_3-Counting Captures.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_4-Forks.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_5-Pins.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_6-Piling Up.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_7-Skewers.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_8-Avoiding Bad Trades.png +0 -0
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_9-Your Opponent's Move.png +0 -0
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_1-Pawn Race.png +0 -0
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_2-Back Rank Checkmates.png +0 -0
- f7.png +0 -0
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_4-King Safety.png +0 -0
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_5-Don't Just Check.png +0 -0
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_6-Checkmate in 2 Moves.png +0 -0
- package/dist/lib/assets/studiesCards/7-Intro to Book Openings_1-e4 Openings for Beginners.png +0 -0
- package/dist/lib/assets/studiesCards/7-Intro to Book Openings_2-d4 Openings for Beginners.png +0 -0
- the Sicilian.png +0 -0
- package/dist/lib/assets/studiesCards/7-Intro to Book Openings_4-Defending Against e4 French Caro-Kann Scandinavian.png +0 -0
- Nf6.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_1-Using Your Knights.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_1-Using Your Knights/342/200/250.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_2-Using Your Bishops.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_3-Using Your Rooks.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_4-Using Your Queen.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_5-Using Your King.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_6-Using Your Pawns.png +0 -0
- package/dist/lib/assets/studiesCards/8-Make the Most of Your Pieces_7-Pieces Working Together.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_1-Passed Pawns.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_2-Escort the Pawn.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_3-Sacrificing to Promote.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_4-3 v 3 Pawn Breakthrough.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_4-Exchanging Down to a Win.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_5-Rule of the Square.png +0 -0
- package/dist/lib/assets/studiesCards/9-Understanding End games_6-Creating a Passed Pawn.png +0 -0
- package/dist/lib/assets/tickets/spamIcon.svg +115 -115
- package/dist/lib/assets/tickets/vulgarityIcon.svg +127 -127
- package/dist/lib/assets/ticketsPage/buttonTicket1.svg +18 -0
- package/dist/lib/assets/ticketsPage/buttonTicket2.svg +3 -0
- 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/AllExercises copy.js +1311 -0
- package/dist/lib/data/AllStudies.js +1265 -0
- package/dist/lib/data/AllStudiesLegacy.js +40 -0
- package/dist/lib/data/Characters.js +783 -0
- package/dist/lib/functions/captureCalendarValidations.js +58 -0
- package/dist/lib/hooks/useArchetype.js +19 -0
- package/dist/lib/hooks/useBooking.js +247 -0
- package/dist/lib/hooks/useCharacters.js +36 -0
- package/dist/lib/hooks/useDates.js +115 -0
- package/dist/lib/hooks/useDebounce.js +17 -0
- package/dist/lib/hooks/useMobile.js +106 -0
- package/dist/lib/hooks/useSounds.js +335 -0
- package/dist/lib/hooks/useTournament.js +219 -0
- package/dist/lib/styles/GlobalStyles.css +6 -6
- package/dist/types.d.ts +9 -0
- 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,105 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["items", "sectionTitle", "singleOpen", "style", "className", "openIndexes", "setOpenIndexes"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import React, { useState } from "react";
|
|
11
|
+
import PropTypes from "prop-types";
|
|
12
|
+
import { HAccordionContainer, HAccordionSection, HAccordionHeader, HAccordionContent } from "./HAccordion.styled";
|
|
13
|
+
import HText from "../HText/HText";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var renderAnswer = function renderAnswer(answer) {
|
|
16
|
+
if (Array.isArray(answer)) {
|
|
17
|
+
return /*#__PURE__*/_jsx("ul", {
|
|
18
|
+
style: {
|
|
19
|
+
paddingLeft: 0,
|
|
20
|
+
margin: 0,
|
|
21
|
+
listStyle: "none"
|
|
22
|
+
},
|
|
23
|
+
children: answer.map(function (item, idx) {
|
|
24
|
+
return /*#__PURE__*/_jsxs("li", {
|
|
25
|
+
style: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "flex-start",
|
|
28
|
+
marginBottom: 6,
|
|
29
|
+
fontWeight: item.bold ? 700 : 400,
|
|
30
|
+
fontSize: 16
|
|
31
|
+
},
|
|
32
|
+
children: [item.bullet && /*#__PURE__*/_jsx("span", {
|
|
33
|
+
style: {
|
|
34
|
+
display: "inline-block",
|
|
35
|
+
width: 8,
|
|
36
|
+
height: 8,
|
|
37
|
+
background: "#6c3eb6",
|
|
38
|
+
borderRadius: "50%",
|
|
39
|
+
marginRight: 10,
|
|
40
|
+
marginTop: 7,
|
|
41
|
+
flexShrink: 0
|
|
42
|
+
}
|
|
43
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
44
|
+
children: item.text
|
|
45
|
+
})]
|
|
46
|
+
}, idx);
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return answer;
|
|
51
|
+
};
|
|
52
|
+
var HAccordion = function HAccordion(_ref) {
|
|
53
|
+
var _items$items;
|
|
54
|
+
var _ref$items = _ref.items,
|
|
55
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
56
|
+
sectionTitle = _ref.sectionTitle,
|
|
57
|
+
_ref$singleOpen = _ref.singleOpen,
|
|
58
|
+
singleOpen = _ref$singleOpen === void 0 ? true : _ref$singleOpen,
|
|
59
|
+
style = _ref.style,
|
|
60
|
+
className = _ref.className,
|
|
61
|
+
openIndexes = _ref.openIndexes,
|
|
62
|
+
setOpenIndexes = _ref.setOpenIndexes,
|
|
63
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
64
|
+
var toggle = function toggle(idx) {
|
|
65
|
+
setOpenIndexes(function (prev) {
|
|
66
|
+
var _prev$section;
|
|
67
|
+
var section = sectionTitle || "default";
|
|
68
|
+
return _defineProperty({}, section, _defineProperty({}, idx, !((_prev$section = prev[section]) !== null && _prev$section !== void 0 && _prev$section[idx])));
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
var section = sectionTitle || "default";
|
|
72
|
+
var sectionOpenIndexes = openIndexes[section] || {};
|
|
73
|
+
return /*#__PURE__*/_jsxs(HAccordionContainer, _objectSpread(_objectSpread({
|
|
74
|
+
style: style,
|
|
75
|
+
className: className
|
|
76
|
+
}, props), {}, {
|
|
77
|
+
children: [sectionTitle && /*#__PURE__*/_jsx(HText, {
|
|
78
|
+
as: "h6",
|
|
79
|
+
margin: "40px 0px 0px 0px",
|
|
80
|
+
children: sectionTitle
|
|
81
|
+
}), items === null || items === void 0 || (_items$items = items.items) === null || _items$items === void 0 ? void 0 : _items$items.map(function (item, idx) {
|
|
82
|
+
var isOpen = !!sectionOpenIndexes[idx];
|
|
83
|
+
return /*#__PURE__*/_jsxs(HAccordionSection, {
|
|
84
|
+
isOpen: isOpen,
|
|
85
|
+
onClick: function onClick() {
|
|
86
|
+
return toggle(idx);
|
|
87
|
+
},
|
|
88
|
+
children: [/*#__PURE__*/_jsxs(HAccordionHeader, {
|
|
89
|
+
isOpen: isOpen,
|
|
90
|
+
"aria-expanded": isOpen,
|
|
91
|
+
"aria-controls": "hacontent-".concat(idx),
|
|
92
|
+
children: [item.question, /*#__PURE__*/_jsx("span", {
|
|
93
|
+
children: isOpen ? "-" : "+"
|
|
94
|
+
})]
|
|
95
|
+
}), /*#__PURE__*/_jsx(HAccordionContent, {
|
|
96
|
+
isOpen: isOpen,
|
|
97
|
+
id: "hacontent-".concat(idx),
|
|
98
|
+
"aria-hidden": !isOpen,
|
|
99
|
+
children: renderAnswer(item.answer)
|
|
100
|
+
})]
|
|
101
|
+
}, idx);
|
|
102
|
+
})]
|
|
103
|
+
}));
|
|
104
|
+
};
|
|
105
|
+
export default HAccordion;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 HAccordionContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 12px;\n"])));
|
|
5
|
+
export var HAccordionSection = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 12px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);\n padding: 0;\n transition: background 0.2s;\n"])), function (_ref) {
|
|
6
|
+
var isOpen = _ref.isOpen,
|
|
7
|
+
theme = _ref.theme;
|
|
8
|
+
return isOpen ? (theme === null || theme === void 0 ? void 0 : theme.shadePurpleLight) || "#f3eaff" : (theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) || "linear-gradient(180deg, #7025be 6.25%, #3c1b85 91.73%)";
|
|
9
|
+
});
|
|
10
|
+
export var HAccordionHeader = styled.button(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n background: transparent;\n color: ", ";\n border: none;\n outline: none;\n border-radius: 12px;\n padding: ", ";\n font-size: 18px;\n font-weight: 700;\n text-align: left;\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n box-shadow: ", ";\n letter-spacing: 0.01em;\n transition: color 0.2s, box-shadow 0.2s;\n"])), function (_ref2) {
|
|
11
|
+
var isOpen = _ref2.isOpen,
|
|
12
|
+
theme = _ref2.theme;
|
|
13
|
+
return isOpen ? (theme === null || theme === void 0 ? void 0 : theme.purpleMedium) || "#6c3eb6" : (theme === null || theme === void 0 ? void 0 : theme.white) || "#fff";
|
|
14
|
+
}, function (_ref3) {
|
|
15
|
+
var isOpen = _ref3.isOpen;
|
|
16
|
+
return isOpen ? "18px 20px 0px 20px" : "18px 20px 20px 20px";
|
|
17
|
+
}, function (_ref4) {
|
|
18
|
+
var isOpen = _ref4.isOpen;
|
|
19
|
+
return isOpen ? "none" : "0 1px 4px 0 rgba(60,27,133,0.10)";
|
|
20
|
+
});
|
|
21
|
+
export var HAccordionContent = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-height: ", ";\n overflow: hidden;\n transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);\n padding: ", ";\n color: ", ";\n font-size: 16px;\n text-align: left;\n opacity: ", ";\n transition-property: max-height, opacity, padding;\n transition-duration: 0.25s, 0.15s, 0.25s;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease,\n cubic-bezier(0.4, 0, 0.2, 1);\n"])), function (_ref5) {
|
|
22
|
+
var isOpen = _ref5.isOpen;
|
|
23
|
+
return isOpen ? "1000px" : "0px";
|
|
24
|
+
}, function (_ref6) {
|
|
25
|
+
var isOpen = _ref6.isOpen;
|
|
26
|
+
return isOpen ? "8px 15px 20px 38px" : "0 0 0 38px";
|
|
27
|
+
}, function (_ref7) {
|
|
28
|
+
var theme = _ref7.theme;
|
|
29
|
+
return (theme === null || theme === void 0 ? void 0 : theme.purpleMedium) || "#6c3eb6";
|
|
30
|
+
}, function (_ref8) {
|
|
31
|
+
var isOpen = _ref8.isOpen;
|
|
32
|
+
return isOpen ? 1 : 0;
|
|
33
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["bgImg", "bgSize"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { HBackgroundContainer, HDarkBackgroundContainer, HDarkBackgroundSquare } from "./HBackground.styled";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var HBackground = function HBackground(_ref) {
|
|
13
|
+
var bgImg = _ref.bgImg,
|
|
14
|
+
_ref$bgSize = _ref.bgSize,
|
|
15
|
+
bgSize = _ref$bgSize === void 0 ? "100px" : _ref$bgSize,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
if (!(bgImg !== null && bgImg !== void 0 && bgImg.includes("dark"))) {
|
|
18
|
+
return /*#__PURE__*/_jsx(HBackgroundContainer, _objectSpread(_objectSpread({}, props), {}, {
|
|
19
|
+
bgSize: bgSize,
|
|
20
|
+
bgImg: bgImg,
|
|
21
|
+
children: props.children
|
|
22
|
+
}));
|
|
23
|
+
} else {
|
|
24
|
+
return /*#__PURE__*/_jsxs(HDarkBackgroundContainer, _objectSpread(_objectSpread({}, props), {}, {
|
|
25
|
+
bgSize: bgSize,
|
|
26
|
+
children: [/*#__PURE__*/_jsx(HDarkBackgroundSquare, {
|
|
27
|
+
bgImg: bgImg
|
|
28
|
+
}), props.children]
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export default HBackground;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 HBackgroundContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: 100vh;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n background-color: rgb(244, 242, 247);\n background-image: ", ";\n background-repeat: repeat;\n background-size: ", ";\n"])), function (_ref) {
|
|
5
|
+
var bgImg = _ref.bgImg;
|
|
6
|
+
return "url(".concat(bgImg, ")");
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var bgSize = _ref2.bgSize;
|
|
9
|
+
return bgSize || "100px";
|
|
10
|
+
});
|
|
11
|
+
export var HDarkBackgroundContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-height: 100vh;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n background: ", ";\n"])), function (_ref3) {
|
|
12
|
+
var theme = _ref3.theme;
|
|
13
|
+
return theme.shadePurpleDark2;
|
|
14
|
+
});
|
|
15
|
+
export var HDarkBackgroundSquare = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-image: ", ";\n"])), function (_ref4) {
|
|
16
|
+
var bgImg = _ref4.bgImg;
|
|
17
|
+
return "url(".concat(bgImg, ")");
|
|
18
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
8
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
import { HBlackBackContainer } from "./HBlackBack.styled";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
var HBlackBack = function HBlackBack(_ref) {
|
|
12
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
13
|
+
return /*#__PURE__*/_jsx(HBlackBackContainer, _objectSpread({}, props));
|
|
14
|
+
};
|
|
15
|
+
export default HBlackBack;
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
export var HBlackBackContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100vh;\n width: 100vw;\n position: fixed;\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n"])));
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["children", "direction", "gap", "align", "justify", "wrap", "width", "height", "padding", "margin", "border", "borderRadius", "background", "overflowX", "overflowY", "boxShadow", "position"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { HBoxContainer } from "./HBox.styled";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var HBox = function HBox(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
_ref$direction = _ref.direction,
|
|
15
|
+
direction = _ref$direction === void 0 ? "row" : _ref$direction,
|
|
16
|
+
_ref$gap = _ref.gap,
|
|
17
|
+
gap = _ref$gap === void 0 ? "10px" : _ref$gap,
|
|
18
|
+
_ref$align = _ref.align,
|
|
19
|
+
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
20
|
+
_ref$justify = _ref.justify,
|
|
21
|
+
justify = _ref$justify === void 0 ? "center" : _ref$justify,
|
|
22
|
+
_ref$wrap = _ref.wrap,
|
|
23
|
+
wrap = _ref$wrap === void 0 ? "nowrap" : _ref$wrap,
|
|
24
|
+
_ref$width = _ref.width,
|
|
25
|
+
width = _ref$width === void 0 ? "auto" : _ref$width,
|
|
26
|
+
_ref$height = _ref.height,
|
|
27
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
28
|
+
_ref$padding = _ref.padding,
|
|
29
|
+
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
30
|
+
_ref$margin = _ref.margin,
|
|
31
|
+
margin = _ref$margin === void 0 ? "0" : _ref$margin,
|
|
32
|
+
_ref$border = _ref.border,
|
|
33
|
+
border = _ref$border === void 0 ? "none" : _ref$border,
|
|
34
|
+
_ref$borderRadius = _ref.borderRadius,
|
|
35
|
+
borderRadius = _ref$borderRadius === void 0 ? "0" : _ref$borderRadius,
|
|
36
|
+
background = _ref.background,
|
|
37
|
+
_ref$overflowX = _ref.overflowX,
|
|
38
|
+
overflowX = _ref$overflowX === void 0 ? "visible" : _ref$overflowX,
|
|
39
|
+
_ref$overflowY = _ref.overflowY,
|
|
40
|
+
overflowY = _ref$overflowY === void 0 ? "visible" : _ref$overflowY,
|
|
41
|
+
boxShadow = _ref.boxShadow,
|
|
42
|
+
_ref$position = _ref.position,
|
|
43
|
+
position = _ref$position === void 0 ? "relative" : _ref$position,
|
|
44
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
return /*#__PURE__*/_jsx(HBoxContainer, _objectSpread(_objectSpread({
|
|
46
|
+
background: background,
|
|
47
|
+
direction: direction,
|
|
48
|
+
gap: gap,
|
|
49
|
+
align: align,
|
|
50
|
+
justify: justify,
|
|
51
|
+
wrap: wrap,
|
|
52
|
+
width: width,
|
|
53
|
+
height: height,
|
|
54
|
+
padding: padding,
|
|
55
|
+
margin: margin,
|
|
56
|
+
border: border,
|
|
57
|
+
$borderRadius: borderRadius,
|
|
58
|
+
$overflowX: overflowX,
|
|
59
|
+
$overflowY: overflowY,
|
|
60
|
+
boxShadow: boxShadow,
|
|
61
|
+
position: position
|
|
62
|
+
}, props), {}, {
|
|
63
|
+
children: children
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
export default HBox;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
export var HBoxContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", "; /* Direcci\xF3n (row o column) */\n gap: ", "; /* Espaciado entre elementos */\n align-items: ", "; /* Alineaci\xF3n en el eje cruzado */\n justify-content: ", "; /* Justificaci\xF3n en el eje principal */\n flex-wrap: ", "; /* Flex wrap */\n width: ", "; /* Ancho del contenedor */\n height: ", "; /* Altura del contenedor */\n padding: ", "; /* Padding */\n margin: ", "; /* Margin */\n border: ", "; /* Border */\n border-radius: ", "; /* Bordes redondeados */\n position: ", "; /* Posici\xF3n del contenedor */\n background: ", ";\n transition: all 0.3s ease;\n overflow-x: ", ";\n overflow-y: ", ";\n box-shadow: ", "; /* Sombra */\n\n /* Estilos de la barra de scroll */\n &::-webkit-scrollbar {\n width: 8px; /* Ancho de la barra vertical */\n height: 10px; /* Alto de la barra horizontal */\n }\n\n &::-webkit-scrollbar-track {\n background: ", "; /* Color del track */\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ", "; /* Color del \"pulgar\" */\n border-radius: 10px;\n border: 2px solid ", ";\n }\n"])), function (props) {
|
|
5
|
+
return props.direction;
|
|
6
|
+
}, function (props) {
|
|
7
|
+
return props.gap;
|
|
8
|
+
}, function (props) {
|
|
9
|
+
return props.align;
|
|
10
|
+
}, function (props) {
|
|
11
|
+
return props.justify;
|
|
12
|
+
}, function (props) {
|
|
13
|
+
return props.wrap;
|
|
14
|
+
}, function (props) {
|
|
15
|
+
return props.width;
|
|
16
|
+
}, function (props) {
|
|
17
|
+
return props.height;
|
|
18
|
+
}, function (props) {
|
|
19
|
+
return props.padding;
|
|
20
|
+
}, function (props) {
|
|
21
|
+
return props.margin;
|
|
22
|
+
}, function (props) {
|
|
23
|
+
return props.border;
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.$borderRadius;
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return props.position;
|
|
28
|
+
}, function (_ref) {
|
|
29
|
+
var theme = _ref.theme,
|
|
30
|
+
background = _ref.background;
|
|
31
|
+
return (theme === null || theme === void 0 ? void 0 : theme[background]) || background || "transparent";
|
|
32
|
+
}, function (props) {
|
|
33
|
+
var _props$$overflowX;
|
|
34
|
+
return (_props$$overflowX = props.$overflowX) !== null && _props$$overflowX !== void 0 ? _props$$overflowX : "auto";
|
|
35
|
+
}, function (props) {
|
|
36
|
+
var _props$$overflowY;
|
|
37
|
+
return (_props$$overflowY = props.$overflowY) !== null && _props$$overflowY !== void 0 ? _props$$overflowY : "auto";
|
|
38
|
+
}, function (_ref2) {
|
|
39
|
+
var boxShadow = _ref2.boxShadow,
|
|
40
|
+
theme = _ref2.theme;
|
|
41
|
+
return (theme === null || theme === void 0 ? void 0 : theme[boxShadow]) || boxShadow || "none";
|
|
42
|
+
}, function (_ref3) {
|
|
43
|
+
var theme = _ref3.theme;
|
|
44
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleLight) || "#3c1b85";
|
|
45
|
+
}, function (_ref4) {
|
|
46
|
+
var theme = _ref4.theme;
|
|
47
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) || "#8545c7";
|
|
48
|
+
}, function (_ref5) {
|
|
49
|
+
var theme = _ref5.theme;
|
|
50
|
+
return (theme === null || theme === void 0 ? void 0 : theme.shadePurpleDark) || "#3c1b85";
|
|
51
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["onClick", "children", "text", "background", "boxShadow", "color", "width", "height", "fontSize", "fontWeight", "borderRadius", "hoverBackground", "activeBackground", "padding", "disabled", "type", "margin"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { Button } from "./HButton.styled";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
var HButton = function HButton(_ref) {
|
|
13
|
+
var onClick = _ref.onClick,
|
|
14
|
+
children = _ref.children,
|
|
15
|
+
_ref$text = _ref.text,
|
|
16
|
+
text = _ref$text === void 0 ? "" : _ref$text,
|
|
17
|
+
background = _ref.background,
|
|
18
|
+
boxShadow = _ref.boxShadow,
|
|
19
|
+
color = _ref.color,
|
|
20
|
+
width = _ref.width,
|
|
21
|
+
height = _ref.height,
|
|
22
|
+
fontSize = _ref.fontSize,
|
|
23
|
+
fontWeight = _ref.fontWeight,
|
|
24
|
+
borderRadius = _ref.borderRadius,
|
|
25
|
+
hoverBackground = _ref.hoverBackground,
|
|
26
|
+
activeBackground = _ref.activeBackground,
|
|
27
|
+
padding = _ref.padding,
|
|
28
|
+
_ref$disabled = _ref.disabled,
|
|
29
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
30
|
+
type = _ref.type,
|
|
31
|
+
margin = _ref.margin,
|
|
32
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
|
|
34
|
+
margin: margin,
|
|
35
|
+
type: type,
|
|
36
|
+
onClick: onClick,
|
|
37
|
+
background: background,
|
|
38
|
+
boxShadow: boxShadow,
|
|
39
|
+
color: color,
|
|
40
|
+
width: width,
|
|
41
|
+
height: height,
|
|
42
|
+
$fontSize: fontSize,
|
|
43
|
+
$fontWeight: fontWeight,
|
|
44
|
+
$borderRadius: borderRadius,
|
|
45
|
+
$hoverBackground: hoverBackground,
|
|
46
|
+
$activeBackground: activeBackground,
|
|
47
|
+
padding: padding,
|
|
48
|
+
disabled: disabled,
|
|
49
|
+
opacity: disabled ? 0.5 : 1,
|
|
50
|
+
pointerEvents: disabled ? "none" : "auto"
|
|
51
|
+
}, props), {}, {
|
|
52
|
+
children: children || text
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
export default HButton;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
export var Button = styled.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", " !important;\n color: ", " !important;\n\n font-size: ", " !important;\n\n font-weight: ", " !important;\n\n width: ", ";\n height: ", ";\n border-radius: ", " !important;\n border: none;\n outline: none;\n transition: all 0.3s ease;\n padding: ", ";\n text-transform: uppercase;\n margin: ", ";\n box-shadow: ", " !important; /* Sombra */\n opacity: ", ";\n pointer-events: ", ";\n"])), function (_ref) {
|
|
5
|
+
var background = _ref.background,
|
|
6
|
+
theme = _ref.theme;
|
|
7
|
+
return (theme === null || theme === void 0 ? void 0 : theme[background]) || background || theme.shadePurpleDark;
|
|
8
|
+
}, function (_ref2) {
|
|
9
|
+
var color = _ref2.color,
|
|
10
|
+
theme = _ref2.theme;
|
|
11
|
+
return (theme === null || theme === void 0 ? void 0 : theme[color]) || color || theme.goldColor;
|
|
12
|
+
}, function (_ref3) {
|
|
13
|
+
var $fontSize = _ref3.$fontSize;
|
|
14
|
+
if (!$fontSize) return "var(--h4)";
|
|
15
|
+
if ($fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("h") || $fontSize !== null && $fontSize !== void 0 && $fontSize.startsWith("p")) {
|
|
16
|
+
return "var(--".concat($fontSize, ", var(--h4))");
|
|
17
|
+
}
|
|
18
|
+
return $fontSize;
|
|
19
|
+
}, function (_ref4) {
|
|
20
|
+
var $fontWeight = _ref4.$fontWeight;
|
|
21
|
+
if (!$fontWeight) return "var(--weight-bold)";
|
|
22
|
+
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
23
|
+
return "var(--".concat($fontWeight, ", var(--weight-bold))");
|
|
24
|
+
}
|
|
25
|
+
return $fontWeight; // 400, 700, 'inherit', etc.
|
|
26
|
+
}, function (_ref5) {
|
|
27
|
+
var width = _ref5.width;
|
|
28
|
+
return width || "auto";
|
|
29
|
+
}, function (_ref6) {
|
|
30
|
+
var height = _ref6.height;
|
|
31
|
+
return height || "auto";
|
|
32
|
+
}, function (_ref7) {
|
|
33
|
+
var $borderRadius = _ref7.$borderRadius;
|
|
34
|
+
return $borderRadius || "8px";
|
|
35
|
+
}, function (_ref8) {
|
|
36
|
+
var padding = _ref8.padding;
|
|
37
|
+
return padding !== null && padding !== void 0 ? padding : "10px";
|
|
38
|
+
}, function (_ref9) {
|
|
39
|
+
var margin = _ref9.margin;
|
|
40
|
+
return margin || "0";
|
|
41
|
+
}, function (_ref0) {
|
|
42
|
+
var boxShadow = _ref0.boxShadow,
|
|
43
|
+
theme = _ref0.theme;
|
|
44
|
+
return (theme === null || theme === void 0 ? void 0 : theme[boxShadow]) || boxShadow || "none";
|
|
45
|
+
}, function (_ref1) {
|
|
46
|
+
var opacity = _ref1.opacity;
|
|
47
|
+
return opacity || 1;
|
|
48
|
+
}, function (_ref10) {
|
|
49
|
+
var pointerEvents = _ref10.pointerEvents;
|
|
50
|
+
return pointerEvents || "auto";
|
|
51
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HCalendarWrapper } from "./HCalendar.styled";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
var HCalendar = function HCalendar(_ref) {
|
|
4
|
+
var value = _ref.value,
|
|
5
|
+
onChange = _ref.onChange,
|
|
6
|
+
label = _ref.label,
|
|
7
|
+
name = _ref.name,
|
|
8
|
+
min = _ref.min,
|
|
9
|
+
max = _ref.max,
|
|
10
|
+
disabled = _ref.disabled,
|
|
11
|
+
labelPosition = _ref.labelPosition,
|
|
12
|
+
labelWidth = _ref.labelWidth,
|
|
13
|
+
labelColor = _ref.labelColor,
|
|
14
|
+
labelSize = _ref.labelSize,
|
|
15
|
+
labelWeight = _ref.labelWeight,
|
|
16
|
+
width = _ref.width;
|
|
17
|
+
return /*#__PURE__*/_jsx(HCalendarWrapper, {
|
|
18
|
+
labelWeight: labelWeight !== null && labelWeight !== void 0 ? labelWeight : "bold",
|
|
19
|
+
labelPosition: labelPosition !== null && labelPosition !== void 0 ? labelPosition : "flex-start",
|
|
20
|
+
labelWidth: labelWidth !== null && labelWidth !== void 0 ? labelWidth : "100%",
|
|
21
|
+
labelSize: labelSize !== null && labelSize !== void 0 ? labelSize : "var(--p16)",
|
|
22
|
+
labelColor: labelColor !== null && labelColor !== void 0 ? labelColor : "purpleMedium",
|
|
23
|
+
label: label !== null && label !== void 0 ? label : "Date",
|
|
24
|
+
type: "date",
|
|
25
|
+
name: name !== null && name !== void 0 ? name : "date",
|
|
26
|
+
onChange: onChange,
|
|
27
|
+
value: value,
|
|
28
|
+
width: width !== null && width !== void 0 ? width : "100%",
|
|
29
|
+
min: min !== null && min !== void 0 ? min : null,
|
|
30
|
+
max: max !== null && max !== void 0 ? max : null,
|
|
31
|
+
disabled: disabled
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default HCalendar;
|
|
@@ -0,0 +1,5 @@
|
|
|
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 HInput from "../HInput/HInput";
|
|
5
|
+
export var HCalendarWrapper = styled(HInput)(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["value", "handleChange", "minDate"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { StyledDatePicker } from './HCalendarStyled.styled';
|
|
11
|
+
import Calendar from 'react-calendar';
|
|
12
|
+
import 'react-calendar/dist/Calendar.css';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var HCalendarStyled = function HCalendarStyled(_ref) {
|
|
15
|
+
var value = _ref.value,
|
|
16
|
+
handleChange = _ref.handleChange,
|
|
17
|
+
minDate = _ref.minDate,
|
|
18
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var date = new Date();
|
|
20
|
+
var sixYearsAgo = new Date(date.getFullYear() - 6, date.getMonth(), date.getDate());
|
|
21
|
+
return /*#__PURE__*/_jsx(StyledDatePicker, {
|
|
22
|
+
children: /*#__PURE__*/_jsx(Calendar, _objectSpread({
|
|
23
|
+
onChange: handleChange,
|
|
24
|
+
defaultValue: value === null ? sixYearsAgo : date,
|
|
25
|
+
value: value,
|
|
26
|
+
minDate: minDate
|
|
27
|
+
}, props))
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export default HCalendarStyled;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export var StyledDatePicker = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: 10px;\n box-shadow: 0px 3px 20px 0px #7025be;\n font-family: inherit;\n margin-top: 15px;\n font-weight: bold;\n width: 100%;\n\n .react-calendar {\n border-radius: 10px;\n }\n\n .react-calendar__month-view__days{\n background: ", ";\n }\n \n .react-calendar__navigation {\n background: linear-gradient(180deg, #7025be 11.32%, #3c096c 100%);\n border-radius: 10px 10px 0 0;\n height: 70px;\n margin-bottom: 0;\n }\n\n .react-calendar__navigation button {\n color: white;\n font-size: var(--h4);\n font-weight: var(--weight-bold);\n }\n \n .react-calendar__month-view__weekdays {\n background: ", ";\n padding: 10px 5px;\n }\n\n .react-calendar__month-view__weekdays__weekday {\n color: ", ";\n font-weight: var(--weight-bold);\n font-size: var(--p14);\n }\n\n .react-calendar__tile {\n color: ", ";\n font-weight: var(--weight-medium);\n font-size: var(--p16);\n padding: 15px 0;\n }\n\n .react-calendar__tile--active,\n .react-calendar__tile--now {\n background: ", ";\n color: white;\n border-radius: 50%;\n }\n\n .react-calendar__tile:enabled:hover,\n .react-calendar__tile:enabled:focus {\n background: ", ";\n color: ", ";\n border-radius: 50%;\n }\n"])), function (_ref) {
|
|
5
|
+
var theme = _ref.theme;
|
|
6
|
+
return theme.purpleLight;
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var theme = _ref2.theme;
|
|
9
|
+
return theme.purpleLight2;
|
|
10
|
+
}, function (_ref3) {
|
|
11
|
+
var theme = _ref3.theme;
|
|
12
|
+
return theme.purpleMedium;
|
|
13
|
+
}, function (_ref4) {
|
|
14
|
+
var theme = _ref4.theme;
|
|
15
|
+
return theme.purpleMedium;
|
|
16
|
+
}, function (_ref5) {
|
|
17
|
+
var theme = _ref5.theme;
|
|
18
|
+
return theme.purpleMedium;
|
|
19
|
+
}, function (_ref6) {
|
|
20
|
+
var theme = _ref6.theme;
|
|
21
|
+
return theme.purpleLight;
|
|
22
|
+
}, function (_ref7) {
|
|
23
|
+
var theme = _ref7.theme;
|
|
24
|
+
return theme.purpleMedium;
|
|
25
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
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 CardContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: ", ";\n width: 100%;\n height: ", ";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: ", ";\n border-radius: 25px;\n\n h1 {\n position: absolute;\n left: -25px;\n top: 50%;\n transform: translateY(-50%);\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background: ", ";\n font-weight: var(--weight-bold);\n color: ", ";\n font-size: var(--h3);\n display: flex;\n align-items: center;\n z-index: 999;\n justify-content: center;\n }\n"])), function (_ref) {
|
|
5
|
+
var maxWidth = _ref.maxWidth;
|
|
6
|
+
return maxWidth || "800px";
|
|
7
|
+
}, function (_ref2) {
|
|
8
|
+
var height = _ref2.height;
|
|
9
|
+
return height || "160px";
|
|
10
|
+
}, function (_ref3) {
|
|
11
|
+
var theme = _ref3.theme;
|
|
12
|
+
return theme.shadePurpleLight;
|
|
13
|
+
}, function (_ref4) {
|
|
14
|
+
var theme = _ref4.theme;
|
|
15
|
+
return theme.shadePurpleLight;
|
|
16
|
+
}, function (_ref5) {
|
|
17
|
+
var theme = _ref5.theme;
|
|
18
|
+
return theme.purpleMedium;
|
|
19
|
+
});
|
|
20
|
+
export var CardImage = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 100%;\n width: 212px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", ";\n border-radius: 25px 0px 0px 25px;\n img {\n position: absolute;\n width: 124px;\n height: 124px;\n border-radius: 50%;\n border: 6px solid ", ";\n }\n\n .portrait {\n position: absolute;\n width: 200px;\n height: 200px;\n border-radius: 50%;\n z-index: 1;\n z-index: 999;\n }\n"])), function (_ref6) {
|
|
21
|
+
var theme = _ref6.theme;
|
|
22
|
+
return theme.shadePurpleDark;
|
|
23
|
+
}, function (_ref7) {
|
|
24
|
+
var theme = _ref7.theme;
|
|
25
|
+
return theme.goldColor;
|
|
26
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["index", "img", "infoCardComponent", "actionsComponent", "maxWidth", "height"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { CardContainer, CardImage } from "./Cards.styled";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
var HCardLayout = function HCardLayout(_ref) {
|
|
13
|
+
var _ref$index = _ref.index,
|
|
14
|
+
index = _ref$index === void 0 ? 1 : _ref$index,
|
|
15
|
+
img = _ref.img,
|
|
16
|
+
infoCardComponent = _ref.infoCardComponent,
|
|
17
|
+
actionsComponent = _ref.actionsComponent,
|
|
18
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
19
|
+
maxWidth = _ref$maxWidth === void 0 ? "800px" : _ref$maxWidth,
|
|
20
|
+
height = _ref.height,
|
|
21
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_jsxs(CardContainer, _objectSpread(_objectSpread({
|
|
23
|
+
maxWidth: maxWidth,
|
|
24
|
+
height: height
|
|
25
|
+
}, props), {}, {
|
|
26
|
+
children: [/*#__PURE__*/_jsx("h1", {
|
|
27
|
+
children: index
|
|
28
|
+
}), (img === null || img === void 0 ? void 0 : img.img) && /*#__PURE__*/_jsxs(CardImage, {
|
|
29
|
+
className: "card-image",
|
|
30
|
+
children: [(img === null || img === void 0 ? void 0 : img.avatarPortrait) && /*#__PURE__*/_jsx("img", {
|
|
31
|
+
className: "portrait",
|
|
32
|
+
src: img.avatarPortrait,
|
|
33
|
+
alt: "Portrait"
|
|
34
|
+
}), /*#__PURE__*/_jsx("img", {
|
|
35
|
+
src: img.img,
|
|
36
|
+
alt: img.alt
|
|
37
|
+
})]
|
|
38
|
+
}), infoCardComponent, actionsComponent]
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
export default HCardLayout;
|