heroes-of-chess-components 0.6.20 → 0.6.23
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/HTrafficLight/HTrafficLight.js +57 -0
- package/dist/lib/HocComponents/index.js +2 -1
- package/dist/lib/assets/HocLogos/Titans.svg +25 -25
- package/dist/lib/assets/HocLogos/shieldTitans.svg +32 -32
- package/dist/lib/assets/Icons/ui/connectCustomer.svg +17 -17
- package/dist/lib/assets/Icons/ui/petStore.svg +14 -14
- package/dist/lib/assets/Icons/ui/petStoreYellow.svg +7 -7
- package/dist/lib/assets/Icons/ui/ticketsNavbar.svg +5 -5
- 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/games/cardMemory.svg +9 -9
- package/dist/lib/assets/notifications/newStore.svg +15 -15
- package/dist/lib/assets/store/brainRot.svg +23 -23
- package/dist/lib/assets/store/brainRotActive.svg +23 -23
- 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/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/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/vulgaritiesInChat.svg +49 -49
- 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/data/AllAICharacters.js +50 -50
- package/dist/lib/data/AllPets.js +9 -9
- package/package.json +1 -1
- package/dist/lib/HocComponents/HAccordion/HAccordion.js +0 -105
- package/dist/lib/HocComponents/HAccordion/HAccordion.styled.js +0 -33
- package/dist/lib/HocComponents/HBackground/HBackground.js +0 -32
- package/dist/lib/HocComponents/HBackground/HBackground.styled.js +0 -18
- package/dist/lib/HocComponents/HBlackBack/HBlackBack.js +0 -15
- package/dist/lib/HocComponents/HBlackBack/HBlackBack.styled.js +0 -4
- package/dist/lib/HocComponents/HBox/HBox.js +0 -66
- package/dist/lib/HocComponents/HBox/HBox.styled.js +0 -51
- package/dist/lib/HocComponents/HButton/HButton.js +0 -55
- package/dist/lib/HocComponents/HButton/HButton.styled.js +0 -51
- package/dist/lib/HocComponents/HCalendar/HCalendar.js +0 -34
- package/dist/lib/HocComponents/HCalendar/HCalendar.styled.js +0 -5
- package/dist/lib/HocComponents/HCalendarStyled/HCalendarStyled.js +0 -30
- package/dist/lib/HocComponents/HCalendarStyled/HCalendarStyled.styled.js +0 -25
- package/dist/lib/HocComponents/HCards/Cards.styled.js +0 -26
- package/dist/lib/HocComponents/HCards/HCardLayout.js +0 -41
- package/dist/lib/HocComponents/HCards/HPlayerCard/HCardPlayerActions.js +0 -78
- package/dist/lib/HocComponents/HCards/HPlayerCard/HCardPlayerInfo.js +0 -51
- package/dist/lib/HocComponents/HCards/HProductCard/HCardProductInfo.js +0 -82
- package/dist/lib/HocComponents/HCards/HProductCard/HCardProductsActions.js +0 -33
- package/dist/lib/HocComponents/HCircularButton/HCircularButton.js +0 -80
- package/dist/lib/HocComponents/HCircularButton/HCircularButton.styled.js +0 -43
- package/dist/lib/HocComponents/HCircularTextButton/HCircularTextButton.js +0 -37
- package/dist/lib/HocComponents/HCircularTextButton/HCircularTextButton.styled.js +0 -37
- package/dist/lib/HocComponents/HCoinLabel/HCoin.styled.js +0 -53
- package/dist/lib/HocComponents/HCoinLabel/HCoinLabel.js +0 -67
- package/dist/lib/HocComponents/HDropdown/HDropdown.js +0 -281
- package/dist/lib/HocComponents/HDropdown/HDropdown.styled.js +0 -162
- package/dist/lib/HocComponents/HInitBackgroundAnimation/HInitBackgroundAnimation.js +0 -32
- package/dist/lib/HocComponents/HInitBackgroundAnimation/HInitBackgroundAnimation.styled.js +0 -15
- package/dist/lib/HocComponents/HInput/HInput.js +0 -150
- package/dist/lib/HocComponents/HInput/HInput.styled.js +0 -137
- package/dist/lib/HocComponents/HInputArea/HInputArea.js +0 -73
- package/dist/lib/HocComponents/HInputArea/HInputArea.styled.js +0 -81
- package/dist/lib/HocComponents/HLevelUpAnimation/HLevelUpAnimation.js +0 -83
- package/dist/lib/HocComponents/HLevelUpAnimation/HLevelUpAnimation.styled.js +0 -6
- package/dist/lib/HocComponents/HLoaderSpinner/HLoaderSpinner.js +0 -22
- package/dist/lib/HocComponents/HLogin/HLogin.js +0 -325
- package/dist/lib/HocComponents/HLogin/HLogin.styled.js +0 -30
- package/dist/lib/HocComponents/HModal/HModal.js +0 -201
- package/dist/lib/HocComponents/HModal/HModal.styled.js +0 -60
- package/dist/lib/HocComponents/HModal/HModalSecurityCode.js +0 -38
- package/dist/lib/HocComponents/HModalData/HModalData.js +0 -167
- package/dist/lib/HocComponents/HNavbar/HHeader/HHeader.js +0 -0
- package/dist/lib/HocComponents/HNavbar/HHeader/Header.styled.js +0 -48
- package/dist/lib/HocComponents/HNavbar/HHeaderCharacter/HeaderCharacter.js +0 -353
- package/dist/lib/HocComponents/HNavbar/HHeaderCharacter/HeaderCharacter.styled.js +0 -63
- package/dist/lib/HocComponents/HNavbar/HHeaderSideMenu/HeaderSideMenu.js +0 -106
- package/dist/lib/HocComponents/HNavbar/HHeaderSideMenu/HeaderSideMenu.styled.js +0 -47
- package/dist/lib/HocComponents/HPagination/HPagination.js +0 -79
- package/dist/lib/HocComponents/HPopUp/HPopUp.js +0 -98
- package/dist/lib/HocComponents/HProgressBar/HProgressBar.js +0 -31
- package/dist/lib/HocComponents/HProgressBar/HProgressBar.styled.js +0 -14
- package/dist/lib/HocComponents/HRadio/HRadio.js +0 -107
- package/dist/lib/HocComponents/HRadio/HRadio.styled.js +0 -50
- package/dist/lib/HocComponents/HScoreBar/HScoreBar.js +0 -46
- package/dist/lib/HocComponents/HScoreBar/HScoreBar.styled.js +0 -49
- package/dist/lib/HocComponents/HSearchInput/HSearchInput.js +0 -68
- package/dist/lib/HocComponents/HSearchInput/HSearchInput.styled.js +0 -64
- package/dist/lib/HocComponents/HSlider/HSlider.js +0 -31
- package/dist/lib/HocComponents/HSlider/HSlider.styled.js +0 -15
- package/dist/lib/HocComponents/HTabs/HTabs.js +0 -45
- package/dist/lib/HocComponents/HTabs/HTabs.styled.js +0 -19
- package/dist/lib/HocComponents/HText/HText.js +0 -50
- package/dist/lib/HocComponents/HText/HText.styled.js +0 -56
- package/dist/lib/HocComponents/HTitle/HTitle.js +0 -54
- package/dist/lib/HocComponents/HTitle/HTitle.styled.js +0 -54
- package/dist/lib/HocComponents/HToggleButton/HToggleButton.js +0 -76
- package/dist/lib/HocComponents/HToggleButton/HToggleButton.styled.js +0 -49
- package/dist/lib/HocComponents/HToggleButtonCustom/HCustomToggle.styled.js +0 -59
- package/dist/lib/HocComponents/HToggleButtonCustom/HToggleButtonCustom.js +0 -65
- package/dist/lib/HocComponents/HVideoPlayer/HVideoPlayer.js +0 -36
- package/dist/lib/assets/HocLogos/shiledTitans.svg +0 -33
- package/dist/lib/assets/Icons/ui/blackBishop.svg +0 -1
- package/dist/lib/assets/Icons/ui/blackKing.svg +0 -32
- package/dist/lib/assets/Icons/ui/blackKnight.svg +0 -1
- package/dist/lib/assets/Icons/ui/blackQueen.svg +0 -1
- package/dist/lib/assets/Icons/ui/blackRook.svg +0 -1
- package/dist/lib/assets/Icons/ui/booking/index.js +0 -1
- package/dist/lib/assets/Icons/ui/booking/videos.svg +0 -14
- package/dist/lib/assets/Icons/ui/close.svg +0 -18
- package/dist/lib/assets/Icons/ui/message.svg +0 -11
- package/dist/lib/assets/Icons/ui/notificationRing.svg +0 -13
- package/dist/lib/assets/Icons/ui/startGold.svg +0 -10
- package/dist/lib/assets/Icons/ui/whiteBishop.svg +0 -1
- package/dist/lib/assets/Icons/ui/whiteKing.svg +0 -25
- package/dist/lib/assets/Icons/ui/whiteKnight.svg +0 -1
- package/dist/lib/assets/Icons/ui/whiteQueen.svg +0 -1
- package/dist/lib/assets/Icons/ui/whiteRook.svg +0 -1
- package/dist/lib/assets/backgrounds/backgroundBoard.svg +0 -203
- 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/levelZero/lv0Capture.svg +0 -27
- package/dist/lib/assets/levelZero/lv0Capture2.svg +0 -27
- package/dist/lib/assets/levelZero/lv0Combat.svg +0 -32
- package/dist/lib/assets/levelZero/lv0Combat2.svg +0 -32
- package/dist/lib/assets/levelZero/lv0MateInOne.svg +0 -16
- package/dist/lib/assets/levelZero/lv0MateInOne2.svg +0 -16
- package/dist/lib/assets/levelZero/lv0OutOfCheck.svg +0 -27
- package/dist/lib/assets/levelZero/lv0OutOfCheck2.svg +0 -27
- package/dist/lib/assets/levelZero/lv0Protection.svg +0 -20
- package/dist/lib/assets/levelZero/lv0Protection2.svg +0 -20
- package/dist/lib/assets/miniGames/sudoku/bgMiniGames.svg +0 -962
- 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/dragonball.svg +0 -16
- package/dist/lib/assets/store/dragonballActive.svg +0 -16
- 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
- package/dist/lib/assets/studiesCards/1-Learn To Play Chess_3-Moving and 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
- package/dist/lib/assets/studiesCards/10-Winning with Tactics_10-Desperado and 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
- package/dist/lib/assets/studiesCards/13-Key Openings_4-Popular e4 Defenses French and Caro-Kann.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_5-Popular d4 Openings.png +0 -0
- package/dist/lib/assets/studiesCards/13-Key Openings_6-Popular d4 Defenses nf6 and 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
- package/dist/lib/assets/studiesCards/15-Activating Your Pieces_4-Isolated and 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
- package/dist/lib/assets/studiesCards/19-Endgame Patterns_5-Pieces and 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
- package/dist/lib/assets/studiesCards/5-Capturing Pieces_2-Tactics and 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
- package/dist/lib/assets/studiesCards/6-Finding Checkmate_3-Weak Targets f2 and 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
- package/dist/lib/assets/studiesCards/7-Intro to Book Openings_3-Defending Against e4 e5 and 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
- package/dist/lib/assets/studiesCards/7-Intro to Book Openings_5-Defending Against d4 d5 and 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/ticketsPage/buttonTicket1.svg +0 -18
- package/dist/lib/assets/ticketsPage/buttonTicket2.svg +0 -3
- package/dist/lib/data/AllExercises copy.js +0 -1311
- package/dist/lib/data/AllStudies.js +0 -1265
- package/dist/lib/data/AllStudiesLegacy.js +0 -40
- package/dist/lib/data/Characters.js +0 -783
- package/dist/lib/hooks/useArchetype.js +0 -19
- package/dist/lib/hooks/useBooking.js +0 -247
- package/dist/lib/hooks/useCharacters.js +0 -36
- package/dist/lib/hooks/useDates.js +0 -115
- package/dist/lib/hooks/useDebounce.js +0 -17
- package/dist/lib/hooks/useMobile.js +0 -106
- package/dist/lib/hooks/useSounds.js +0 -335
- package/dist/lib/hooks/useTournament.js +0 -219
- package/dist/types.d.ts +0 -9
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
-
import { ScoreBarContainer, WhiteScoreIndicator, BlackScoreIndicator } from "./HScoreBar.styled";
|
|
8
|
-
import React, { useEffect, useState } from "react";
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var HScoreBar = function HScoreBar(_ref) {
|
|
11
|
-
var _ref$whiteScore = _ref.whiteScore,
|
|
12
|
-
whiteScore = _ref$whiteScore === void 0 ? 0 : _ref$whiteScore,
|
|
13
|
-
_ref$blackScore = _ref.blackScore,
|
|
14
|
-
blackScore = _ref$blackScore === void 0 ? 0 : _ref$blackScore,
|
|
15
|
-
game = _ref.game;
|
|
16
|
-
var _useState = useState(536),
|
|
17
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
-
barHeight = _useState2[0],
|
|
19
|
-
setBarHeight = _useState2[1];
|
|
20
|
-
useEffect(function () {
|
|
21
|
-
var updateHeight = function updateHeight() {
|
|
22
|
-
var chessground = document.getElementById("chessground");
|
|
23
|
-
if (chessground) {
|
|
24
|
-
setBarHeight(chessground.clientHeight);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
updateHeight();
|
|
28
|
-
window.addEventListener("resize", updateHeight);
|
|
29
|
-
return function () {
|
|
30
|
-
return window.removeEventListener("resize", updateHeight);
|
|
31
|
-
};
|
|
32
|
-
}, []);
|
|
33
|
-
return /*#__PURE__*/_jsxs(ScoreBarContainer, {
|
|
34
|
-
height: barHeight,
|
|
35
|
-
children: [/*#__PURE__*/_jsx(WhiteScoreIndicator, {
|
|
36
|
-
score: whiteScore,
|
|
37
|
-
player: game === null || game === void 0 ? void 0 : game.customerColor,
|
|
38
|
-
height: barHeight
|
|
39
|
-
}), /*#__PURE__*/_jsx(BlackScoreIndicator, {
|
|
40
|
-
score: blackScore,
|
|
41
|
-
player: game === null || game === void 0 ? void 0 : game.customerColor,
|
|
42
|
-
height: barHeight
|
|
43
|
-
})]
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
export default HScoreBar;
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
return props.height || 536;
|
|
6
|
-
}, function (_ref) {
|
|
7
|
-
var theme = _ref.theme;
|
|
8
|
-
return theme.purpleMedium;
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
// Styled component for White's score indicator
|
|
12
|
-
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) {
|
|
13
|
-
return (props.height ? props.height / 2 : 268) + props.score / 1000 * (props.height ? props.height / 2 : 268);
|
|
14
|
-
}, function (_ref2) {
|
|
15
|
-
var theme = _ref2.theme;
|
|
16
|
-
return theme.purpleLight;
|
|
17
|
-
}, function (props) {
|
|
18
|
-
return props.player === 'white' ? null : 0;
|
|
19
|
-
}, function (props) {
|
|
20
|
-
return props.player === 'white' ? 0 : null;
|
|
21
|
-
}, function (props) {
|
|
22
|
-
return props.player === 'white' ? 0 : 10;
|
|
23
|
-
}, function (props) {
|
|
24
|
-
return props.player === 'white' ? 0 : 10;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return props.player === 'white' ? 10 : 0;
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.player === 'white' ? 10 : 0;
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
// Styled component for Black's score indicator
|
|
32
|
-
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) {
|
|
33
|
-
return (props.height ? props.height / 2 : 268) - props.score / 1000 * (props.height ? props.height / 2 : 268);
|
|
34
|
-
}, function (_ref3) {
|
|
35
|
-
var theme = _ref3.theme;
|
|
36
|
-
return theme.purpleMedium;
|
|
37
|
-
}, function (props) {
|
|
38
|
-
return props.player === 'white' ? 0 : null;
|
|
39
|
-
}, function (props) {
|
|
40
|
-
return props.player === 'white' ? null : 0;
|
|
41
|
-
}, function (props) {
|
|
42
|
-
return props.player !== 'white' ? 0 : 10;
|
|
43
|
-
}, function (props) {
|
|
44
|
-
return props.player !== 'white' ? 0 : 10;
|
|
45
|
-
}, function (props) {
|
|
46
|
-
return props.player !== 'white' ? 10 : 0;
|
|
47
|
-
}, function (props) {
|
|
48
|
-
return props.player !== 'white' ? 10 : 0;
|
|
49
|
-
});
|
|
@@ -1,68 +0,0 @@
|
|
|
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 = ["direction", "placeholder", "value", "onChange", "icon", "width", "height", "borderColor", "iconSize", "gap", "fontSize", "fontColor", "fontWeight", "label", "labelColor", "labelSize", "labelWeight"];
|
|
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 from "react";
|
|
11
|
-
import { SearchInput, SearchInputContainer, SearchContainer, SearchLabel } from "./HSearchInput.styled";
|
|
12
|
-
import { HocIconSearch } from "../../assets/Icons/ui";
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
var HSearchInput = function HSearchInput(_ref) {
|
|
15
|
-
var _ref$direction = _ref.direction,
|
|
16
|
-
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
17
|
-
_ref$placeholder = _ref.placeholder,
|
|
18
|
-
placeholder = _ref$placeholder === void 0 ? "Search..." : _ref$placeholder,
|
|
19
|
-
_ref$value = _ref.value,
|
|
20
|
-
value = _ref$value === void 0 ? "" : _ref$value,
|
|
21
|
-
onChange = _ref.onChange,
|
|
22
|
-
_ref$icon = _ref.icon,
|
|
23
|
-
icon = _ref$icon === void 0 ? HocIconSearch : _ref$icon,
|
|
24
|
-
width = _ref.width,
|
|
25
|
-
height = _ref.height,
|
|
26
|
-
borderColor = _ref.borderColor,
|
|
27
|
-
_ref$iconSize = _ref.iconSize,
|
|
28
|
-
iconSize = _ref$iconSize === void 0 ? "20px" : _ref$iconSize,
|
|
29
|
-
_ref$gap = _ref.gap,
|
|
30
|
-
gap = _ref$gap === void 0 ? "10px" : _ref$gap,
|
|
31
|
-
fontSize = _ref.fontSize,
|
|
32
|
-
fontColor = _ref.fontColor,
|
|
33
|
-
fontWeight = _ref.fontWeight,
|
|
34
|
-
label = _ref.label,
|
|
35
|
-
labelColor = _ref.labelColor,
|
|
36
|
-
labelSize = _ref.labelSize,
|
|
37
|
-
labelWeight = _ref.labelWeight,
|
|
38
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
-
return /*#__PURE__*/_jsxs(SearchContainer, _objectSpread(_objectSpread({}, props), {}, {
|
|
40
|
-
gap: gap,
|
|
41
|
-
direction: direction,
|
|
42
|
-
children: [label && /*#__PURE__*/_jsx(SearchLabel, {
|
|
43
|
-
$labelColor: labelColor,
|
|
44
|
-
$labelSize: labelSize,
|
|
45
|
-
$labelWeight: labelWeight,
|
|
46
|
-
children: label
|
|
47
|
-
}), /*#__PURE__*/_jsxs(SearchInputContainer, {
|
|
48
|
-
width: width,
|
|
49
|
-
height: height,
|
|
50
|
-
borderColor: borderColor,
|
|
51
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
52
|
-
src: icon,
|
|
53
|
-
alt: "search-icon",
|
|
54
|
-
style: {
|
|
55
|
-
width: iconSize
|
|
56
|
-
}
|
|
57
|
-
}), /*#__PURE__*/_jsx(SearchInput, {
|
|
58
|
-
placeholder: placeholder,
|
|
59
|
-
value: value,
|
|
60
|
-
onChange: onChange,
|
|
61
|
-
$fontSize: fontSize,
|
|
62
|
-
$fontColor: fontColor,
|
|
63
|
-
$fontWeight: fontWeight
|
|
64
|
-
})]
|
|
65
|
-
})]
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
export default HSearchInput;
|
|
@@ -1,64 +0,0 @@
|
|
|
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 || "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 $labelColor = _ref5.$labelColor,
|
|
27
|
-
theme = _ref5.theme;
|
|
28
|
-
return (theme === null || theme === void 0 ? void 0 : theme[$labelColor]) || $labelColor || theme.purpleMedium;
|
|
29
|
-
});
|
|
30
|
-
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) {
|
|
31
|
-
return props.width || "367px";
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return props.height || "40px";
|
|
34
|
-
}, function (props) {
|
|
35
|
-
return props.borderColor || props.theme.purpleMedium;
|
|
36
|
-
}, function (props) {
|
|
37
|
-
return props.borderRadius || "20px";
|
|
38
|
-
}, function (props) {
|
|
39
|
-
return props.gap || "10px";
|
|
40
|
-
}, function (props) {
|
|
41
|
-
return props.gap || "10px";
|
|
42
|
-
});
|
|
43
|
-
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 (_ref6) {
|
|
44
|
-
var $fontSize = _ref6.$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 (_ref7) {
|
|
51
|
-
var $fontWeight = _ref7.$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; // 400, 700, 'inherit', etc.
|
|
57
|
-
}, function (_ref8) {
|
|
58
|
-
var _ref9, _theme$$fontColor;
|
|
59
|
-
var $fontColor = _ref8.$fontColor,
|
|
60
|
-
theme = _ref8.theme;
|
|
61
|
-
return (_ref9 = (_theme$$fontColor = theme[$fontColor]) !== null && _theme$$fontColor !== void 0 ? _theme$$fontColor : $fontColor) !== null && _ref9 !== void 0 ? _ref9 : theme.purpleLight2;
|
|
62
|
-
}, function (props) {
|
|
63
|
-
return props.borderRadius || "20px";
|
|
64
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { formatNumber } from "../../functions/formatNumber";
|
|
2
|
-
import HBox from "../HBox/HBox";
|
|
3
|
-
import HText from "../HText/HText";
|
|
4
|
-
import { StyledSlider } from "./HSlider.styled";
|
|
5
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
var HSlider = function HSlider(_ref) {
|
|
7
|
-
var min = _ref.min,
|
|
8
|
-
max = _ref.max,
|
|
9
|
-
step = _ref.step,
|
|
10
|
-
value = _ref.value,
|
|
11
|
-
onChange = _ref.onChange;
|
|
12
|
-
return /*#__PURE__*/_jsxs(HBox, {
|
|
13
|
-
width: "90%",
|
|
14
|
-
direction: "column",
|
|
15
|
-
style: {
|
|
16
|
-
maxWidth: "340px"
|
|
17
|
-
},
|
|
18
|
-
children: [/*#__PURE__*/_jsx(StyledSlider, {
|
|
19
|
-
min: min,
|
|
20
|
-
max: max,
|
|
21
|
-
step: step,
|
|
22
|
-
value: value,
|
|
23
|
-
onChange: onChange
|
|
24
|
-
}), /*#__PURE__*/_jsx(HText, {
|
|
25
|
-
as: "h4",
|
|
26
|
-
margin: "10px 0px 0px 0px",
|
|
27
|
-
children: formatNumber(value)
|
|
28
|
-
})]
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
export default HSlider;
|
|
@@ -1,15 +0,0 @@
|
|
|
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 .rc-slider-rail{\n border-radius: 7.5px;\n background: ", ";\n height: 10px;\n position: absolute;\n width: 100%;\n }\n .rc-slider-track{\n border-radius: 7.5px;\n background: ", ";\n height: 10px;\n position: absolute;\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.50) !important;\n border-color: white !important;\n opacity: 1;\n position: absolute;\n &:hover{\n background-color: unset;\n }\n &:focus-visible{\n border: 8px white solid;\n }\n }\n"])), function (_ref) {
|
|
6
|
-
var theme = _ref.theme,
|
|
7
|
-
specialBg = _ref.specialBg;
|
|
8
|
-
return specialBg ? theme.purpleLight : theme.purpleLight2;
|
|
9
|
-
}, function (_ref2) {
|
|
10
|
-
var theme = _ref2.theme;
|
|
11
|
-
return theme.shadePurpleDark;
|
|
12
|
-
}, function (_ref3) {
|
|
13
|
-
var theme = _ref3.theme;
|
|
14
|
-
return theme.shadePurpleDark;
|
|
15
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
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 = ["tabs", "moreFont"];
|
|
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 from "react";
|
|
11
|
-
import { Tab, TabContainer } from "./HTabs.styled";
|
|
12
|
-
import { useSounds } from "../../hooks";
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
var HTabs = function HTabs(_ref) {
|
|
15
|
-
var tabs = _ref.tabs,
|
|
16
|
-
_ref$moreFont = _ref.moreFont,
|
|
17
|
-
moreFont = _ref$moreFont === void 0 ? true : _ref$moreFont,
|
|
18
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
var _useSounds = useSounds(),
|
|
20
|
-
playSound = _useSounds.playSound,
|
|
21
|
-
HOC_SOUNDS = _useSounds.HOC_SOUNDS;
|
|
22
|
-
var onClickTabWithSound = function onClickTabWithSound(tab) {
|
|
23
|
-
// Solo ejecutar si hay onClick definido
|
|
24
|
-
if (tab.onClick) {
|
|
25
|
-
playSound(HOC_SOUNDS.changeOption);
|
|
26
|
-
tab.onClick();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
return /*#__PURE__*/_jsx(TabContainer, _objectSpread(_objectSpread({}, props), {}, {
|
|
30
|
-
children: tabs.map(function (tab, index) {
|
|
31
|
-
return /*#__PURE__*/_jsx(Tab, {
|
|
32
|
-
active: tab.active,
|
|
33
|
-
onClick: tab.onClick ? function () {
|
|
34
|
-
return onClickTabWithSound(tab);
|
|
35
|
-
} : undefined,
|
|
36
|
-
moreFont: moreFont,
|
|
37
|
-
style: _objectSpread({
|
|
38
|
-
cursor: tab.onClick ? 'pointer' : 'default'
|
|
39
|
-
}, tab.style),
|
|
40
|
-
children: tab.title
|
|
41
|
-
}, (tab === null || tab === void 0 ? void 0 : tab.title) + index);
|
|
42
|
-
})
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
export default HTabs;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 theme = _ref.theme;
|
|
6
|
-
return theme.purpleMedium;
|
|
7
|
-
});
|
|
8
|
-
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"])), function (_ref2) {
|
|
9
|
-
var theme = _ref2.theme,
|
|
10
|
-
active = _ref2.active;
|
|
11
|
-
return active ? theme.shadePurpleDark : "transparent";
|
|
12
|
-
}, function (_ref3) {
|
|
13
|
-
var theme = _ref3.theme,
|
|
14
|
-
active = _ref3.active;
|
|
15
|
-
return active ? theme.purpleLight : theme.purpleMedium;
|
|
16
|
-
}, function (_ref4) {
|
|
17
|
-
var moreFont = _ref4.moreFont;
|
|
18
|
-
return !moreFont ? "var(--p14)" : "var(--h6)";
|
|
19
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
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 = ["as", "text", "fontSize", "fontWeight", "color", "textAlign", "margin", "padding", "lineHeight", "letterSpacing", "children", "background", "borderRadius", "underline", "width", "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 { Text } from "./HText.styled";
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var HText = function HText(_ref) {
|
|
13
|
-
var as = _ref.as,
|
|
14
|
-
text = _ref.text,
|
|
15
|
-
fontSize = _ref.fontSize,
|
|
16
|
-
fontWeight = _ref.fontWeight,
|
|
17
|
-
color = _ref.color,
|
|
18
|
-
_ref$textAlign = _ref.textAlign,
|
|
19
|
-
textAlign = _ref$textAlign === void 0 ? "center" : _ref$textAlign,
|
|
20
|
-
margin = _ref.margin,
|
|
21
|
-
padding = _ref.padding,
|
|
22
|
-
lineHeight = _ref.lineHeight,
|
|
23
|
-
letterSpacing = _ref.letterSpacing,
|
|
24
|
-
children = _ref.children,
|
|
25
|
-
background = _ref.background,
|
|
26
|
-
borderRadius = _ref.borderRadius,
|
|
27
|
-
underline = _ref.underline,
|
|
28
|
-
width = _ref.width,
|
|
29
|
-
height = _ref.height,
|
|
30
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
return /*#__PURE__*/_jsx(Text, _objectSpread(_objectSpread({
|
|
32
|
-
as: as,
|
|
33
|
-
width: width,
|
|
34
|
-
$fontSize: fontSize,
|
|
35
|
-
$fontWeight: fontWeight,
|
|
36
|
-
color: color,
|
|
37
|
-
$textAlign: textAlign,
|
|
38
|
-
margin: margin,
|
|
39
|
-
padding: padding,
|
|
40
|
-
$lineHeight: lineHeight,
|
|
41
|
-
$letterSpacing: letterSpacing,
|
|
42
|
-
$underline: underline,
|
|
43
|
-
background: background,
|
|
44
|
-
$borderRadius: borderRadius,
|
|
45
|
-
height: height
|
|
46
|
-
}, props), {}, {
|
|
47
|
-
children: children !== null && children !== void 0 ? children : text
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
export default HText;
|
|
@@ -1,56 +0,0 @@
|
|
|
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 Text = styled.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n font-size: ", " !important; /* Tama\xF1o de fuente */\n font-weight: ", " !important;\n\n color: ", " !important; /* Color del texto */\n text-align: ", "; /* Alineaci\xF3n del texto */\n margin: ", "; /* Margen */\n padding: ", "; /* Padding */\n line-height: ", "; /* Altura de l\xEDnea */\n letter-spacing: ", "; /* Espaciado entre letras */\n text-transform: ", "; /* Transformaci\xF3n del texto */\n background: ", " !important;\n border-radius: ", ";\n text-decoration: ", "; /* Subrayado */\n cursor: ", "; /* Cursor */\n"])), function (_ref) {
|
|
5
|
-
var height = _ref.height;
|
|
6
|
-
return height || "auto";
|
|
7
|
-
}, function (_ref2) {
|
|
8
|
-
var width = _ref2.width;
|
|
9
|
-
return width || "auto";
|
|
10
|
-
}, function (_ref3) {
|
|
11
|
-
var $fontSize = _ref3.$fontSize,
|
|
12
|
-
as = _ref3.as;
|
|
13
|
-
return as ? "var(--".concat(as, ")") : $fontSize ? $fontSize : "32px";
|
|
14
|
-
}, function (_ref4) {
|
|
15
|
-
var $fontWeight = _ref4.$fontWeight;
|
|
16
|
-
if (!$fontWeight) return "var(--weight-regular)";
|
|
17
|
-
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
18
|
-
return "var(--".concat($fontWeight, ", var(--weight-regular))");
|
|
19
|
-
}
|
|
20
|
-
return $fontWeight; // 400, 700, 'inherit', etc.
|
|
21
|
-
}, function (_ref5) {
|
|
22
|
-
var color = _ref5.color,
|
|
23
|
-
theme = _ref5.theme;
|
|
24
|
-
return (theme === null || theme === void 0 ? void 0 : theme[color]) || color || theme.purpleMedium || "#000";
|
|
25
|
-
}, function (_ref6) {
|
|
26
|
-
var $textAlign = _ref6.$textAlign;
|
|
27
|
-
return $textAlign || "left";
|
|
28
|
-
}, function (_ref7) {
|
|
29
|
-
var margin = _ref7.margin;
|
|
30
|
-
return margin || "0";
|
|
31
|
-
}, function (_ref8) {
|
|
32
|
-
var padding = _ref8.padding;
|
|
33
|
-
return padding || "0";
|
|
34
|
-
}, function (_ref9) {
|
|
35
|
-
var $lineHeight = _ref9.$lineHeight;
|
|
36
|
-
return $lineHeight || "1.5";
|
|
37
|
-
}, function (_ref0) {
|
|
38
|
-
var $letterSpacing = _ref0.$letterSpacing;
|
|
39
|
-
return $letterSpacing || "normal";
|
|
40
|
-
}, function (_ref1) {
|
|
41
|
-
var $textTransform = _ref1.$textTransform;
|
|
42
|
-
return $textTransform || "none";
|
|
43
|
-
}, function (_ref10) {
|
|
44
|
-
var theme = _ref10.theme,
|
|
45
|
-
background = _ref10.background;
|
|
46
|
-
return (theme === null || theme === void 0 ? void 0 : theme[background]) || background || "transparent";
|
|
47
|
-
}, function (_ref11) {
|
|
48
|
-
var $borderRadius = _ref11.$borderRadius;
|
|
49
|
-
return $borderRadius || "0";
|
|
50
|
-
}, function (_ref12) {
|
|
51
|
-
var $underline = _ref12.$underline;
|
|
52
|
-
return $underline ? "underline" : "none";
|
|
53
|
-
}, function (_ref13) {
|
|
54
|
-
var $underline = _ref13.$underline;
|
|
55
|
-
return $underline ? "pointer" : "default";
|
|
56
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
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 = ["text", "fontSize", "fontWeight", "color", "textAlign", "margin", "padding", "lineHeight", "letterSpacing", "textTransform", "as", "children", "background", "boxShadow", "borderRadius", "width", "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 React from "react";
|
|
11
|
-
import { HTitleText } from "./HTitle.styled";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
var HTitle = function HTitle(_ref) {
|
|
14
|
-
var text = _ref.text,
|
|
15
|
-
fontSize = _ref.fontSize,
|
|
16
|
-
fontWeight = _ref.fontWeight,
|
|
17
|
-
color = _ref.color,
|
|
18
|
-
textAlign = _ref.textAlign,
|
|
19
|
-
margin = _ref.margin,
|
|
20
|
-
padding = _ref.padding,
|
|
21
|
-
lineHeight = _ref.lineHeight,
|
|
22
|
-
letterSpacing = _ref.letterSpacing,
|
|
23
|
-
_ref$textTransform = _ref.textTransform,
|
|
24
|
-
textTransform = _ref$textTransform === void 0 ? "uppercase" : _ref$textTransform,
|
|
25
|
-
as = _ref.as,
|
|
26
|
-
children = _ref.children,
|
|
27
|
-
background = _ref.background,
|
|
28
|
-
boxShadow = _ref.boxShadow,
|
|
29
|
-
borderRadius = _ref.borderRadius,
|
|
30
|
-
width = _ref.width,
|
|
31
|
-
height = _ref.height,
|
|
32
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
-
return /*#__PURE__*/_jsx(HTitleText, _objectSpread(_objectSpread({
|
|
34
|
-
width: width,
|
|
35
|
-
$fontSize: fontSize,
|
|
36
|
-
$fontWeight: fontWeight,
|
|
37
|
-
color: color,
|
|
38
|
-
$textAlign: textAlign,
|
|
39
|
-
margin: margin,
|
|
40
|
-
padding: padding,
|
|
41
|
-
$lineHeight: lineHeight,
|
|
42
|
-
$letterSpacing: letterSpacing,
|
|
43
|
-
$textTransform: textTransform,
|
|
44
|
-
as: as // Permite cambiar el tipo de etiqueta (h1, h2, etc.)
|
|
45
|
-
,
|
|
46
|
-
background: background,
|
|
47
|
-
boxShadow: boxShadow,
|
|
48
|
-
$borderRadius: borderRadius,
|
|
49
|
-
height: height
|
|
50
|
-
}, props), {}, {
|
|
51
|
-
children: children !== null && children !== void 0 ? children : text
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
export default HTitle;
|
|
@@ -1,54 +0,0 @@
|
|
|
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 HTitleText = styled.p(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n font-size: ", " !important; /* Tama\xF1o de fuente */\n font-weight: ", " !important;\n color: ", " !important; /* Color del texto */\n text-align: ", "; /* Alineaci\xF3n del texto */\n margin: ", "; /* Margen */\n padding: ", "; /* Padding */\n line-height: ", "; /* Altura de l\xEDnea */\n letter-spacing: ", "; /* Espaciado entre letras */\n text-transform: ", "; /* Transformaci\xF3n del texto */\n background: ", " !important;\n box-shadow: ", "; /* Sombra */\n border-radius: ", ";\n"])), function (_ref) {
|
|
5
|
-
var height = _ref.height;
|
|
6
|
-
return height || "auto";
|
|
7
|
-
}, function (_ref2) {
|
|
8
|
-
var width = _ref2.width;
|
|
9
|
-
return width || "auto";
|
|
10
|
-
}, function (_ref3) {
|
|
11
|
-
var $fontSize = _ref3.$fontSize,
|
|
12
|
-
as = _ref3.as;
|
|
13
|
-
return as ? "var(--".concat(as, ")") : $fontSize ? $fontSize : "32px";
|
|
14
|
-
}, function (_ref4) {
|
|
15
|
-
var $fontWeight = _ref4.$fontWeight;
|
|
16
|
-
if (!$fontWeight) return "var(--weight-bold)";
|
|
17
|
-
if ($fontWeight !== null && $fontWeight !== void 0 && $fontWeight.startsWith("weight-")) {
|
|
18
|
-
return "var(--".concat($fontWeight, ", var(--weight-bold))");
|
|
19
|
-
}
|
|
20
|
-
return $fontWeight; // 400, 700, 'inherit', etc.
|
|
21
|
-
}, function (_ref5) {
|
|
22
|
-
var color = _ref5.color,
|
|
23
|
-
theme = _ref5.theme;
|
|
24
|
-
return (theme === null || theme === void 0 ? void 0 : theme[color]) || color || theme.purpleMedium || "#000";
|
|
25
|
-
}, function (_ref6) {
|
|
26
|
-
var $textAlign = _ref6.$textAlign;
|
|
27
|
-
return $textAlign || "left";
|
|
28
|
-
}, function (_ref7) {
|
|
29
|
-
var margin = _ref7.margin;
|
|
30
|
-
return margin || "0";
|
|
31
|
-
}, function (_ref8) {
|
|
32
|
-
var padding = _ref8.padding;
|
|
33
|
-
return padding || "0";
|
|
34
|
-
}, function (_ref9) {
|
|
35
|
-
var $lineHeight = _ref9.$lineHeight;
|
|
36
|
-
return $lineHeight || "1.5";
|
|
37
|
-
}, function (_ref0) {
|
|
38
|
-
var $letterSpacing = _ref0.$letterSpacing;
|
|
39
|
-
return $letterSpacing || "normal";
|
|
40
|
-
}, function (_ref1) {
|
|
41
|
-
var $textTransform = _ref1.$textTransform;
|
|
42
|
-
return $textTransform || "none";
|
|
43
|
-
}, function (_ref10) {
|
|
44
|
-
var theme = _ref10.theme,
|
|
45
|
-
background = _ref10.background;
|
|
46
|
-
return (theme === null || theme === void 0 ? void 0 : theme[background]) || background || "transparent";
|
|
47
|
-
}, function (_ref11) {
|
|
48
|
-
var boxShadow = _ref11.boxShadow,
|
|
49
|
-
theme = _ref11.theme;
|
|
50
|
-
return (theme === null || theme === void 0 ? void 0 : theme[boxShadow]) || boxShadow || "none";
|
|
51
|
-
}, function (_ref12) {
|
|
52
|
-
var $borderRadius = _ref12.$borderRadius;
|
|
53
|
-
return $borderRadius || "0";
|
|
54
|
-
});
|