heroes-of-chess-components 0.6.42 → 0.6.44

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.
@@ -13,7 +13,7 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
13
  import { useEffect, useState } from "react";
14
14
  import { HCircularButton, HBox, HCalendar, HCoinLabel, HDropdown,
15
15
  // HHeader,
16
- HInput, HLoaderSpinner, HModal, HPopUp, HPopUpContainer, HSearchInput, HTabs, HTitle, HToggleButton, HLogin, HProgressBar, HToggleButtonCustom, HPagination, HVideoPlayerReact, HBackground, HButton, HCircularTextButton, HInitBackgroundAnimation, HInputArea, HTable, HScoreBar, HNews, HText, HTrafficLight } from "./lib/HocComponents";
16
+ HInput, HLoaderSpinner, HModal, HPopUp, HPopUpContainer, HSearchInput, HTabs, HTitle, HToggleButton, HLogin, HProgressBar, HToggleButtonCustom, HPagination, HVideoPlayerReact, HBackground, HButton, HCircularTextButton, HInitBackgroundAnimation, HInputArea, HTable, HScoreBar, HNews, HText, HTrafficLight, HRaceTable } from "./lib/HocComponents";
17
17
  import { HProviders } from "./lib/providers";
18
18
  import { HocIconBirthdayGold, HocIconSettings, HocIconSwitchUser, HocIconVideoFAQ } from "./lib/assets/Icons/ui";
19
19
  import HAccordion from "./lib/HocComponents/HAccordion/HAccordion";
@@ -756,10 +756,157 @@ function HocComponentsPlayground() {
756
756
  "updatedAt": "2025-11-05T02:05:10.247Z",
757
757
  "__v": 0
758
758
  }];
759
+ var points = [{
760
+ "idCustomer": {
761
+ "profileInfo": {
762
+ "name": "Timo",
763
+ "lastName": "Gambella",
764
+ "birthDate": "11/01/2014",
765
+ "gender": "male",
766
+ "character": "Tsuruya",
767
+ "pet": "Umbratox",
768
+ "level": 1,
769
+ "levelReload": 0,
770
+ "aiLevel": 2,
771
+ "toSearch": "timogambella"
772
+ },
773
+ "_id": "66e9991a8000364e19d77d92"
774
+ },
775
+ "numberOfGames": 18,
776
+ "combo": 1,
777
+ "points": 13,
778
+ "omit": true,
779
+ "_id": "69382b1b2e9beae26d94c97f"
780
+ }, {
781
+ "idCustomer": {
782
+ "profileInfo": {
783
+ "name": "Riccardo",
784
+ "lastName": "Basiglio",
785
+ "birthDate": "10/09/2013",
786
+ "gender": "male",
787
+ "character": "Nykara",
788
+ "pet": "Virio",
789
+ "level": 13,
790
+ "levelReload": 50,
791
+ "aiLevel": 51,
792
+ "toSearch": "riccardobasiglio"
793
+ },
794
+ "_id": "631c7ed2de067f55ac9a7c0a"
795
+ },
796
+ "numberOfGames": 1,
797
+ "combo": 1,
798
+ "points": 1,
799
+ "omit": false,
800
+ "_id": "69382b422e9beae26d94ca38"
801
+ }, {
802
+ "idCustomer": {
803
+ "profileInfo": {
804
+ "name": "Caterina",
805
+ "lastName": "Zemma",
806
+ "birthDate": "06/04/2014",
807
+ "gender": "male",
808
+ "character": "Alice",
809
+ "pet": "Lux",
810
+ "level": 1,
811
+ "levelReload": 1,
812
+ "aiLevel": 1,
813
+ "toSearch": "caterinazemma"
814
+ },
815
+ "_id": "6508104b49a905c16f4756d3"
816
+ },
817
+ "numberOfGames": 0,
818
+ "combo": 0,
819
+ "points": 0,
820
+ "omit": false,
821
+ "_id": "69382b422e9beae26d94ca68"
822
+ }, {
823
+ "idCustomer": {
824
+ "profileInfo": {
825
+ "name": "Luca",
826
+ "lastName": "Bruno",
827
+ "birthDate": "28/06/2011",
828
+ "gender": "male",
829
+ "character": "Eryk",
830
+ "pet": "Ignis",
831
+ "level": 29,
832
+ "levelReload": 41,
833
+ "aiLevel": 42,
834
+ "toSearch": "lucabruno"
835
+ },
836
+ "_id": "650ed6d9a515a475d6bcfd10"
837
+ },
838
+ "numberOfGames": 0,
839
+ "combo": 0,
840
+ "points": 0,
841
+ "omit": false,
842
+ "_id": "69382b422e9beae26d14ca68"
843
+ }, {
844
+ "idCustomer": {
845
+ "profileInfo": {
846
+ "name": "Maya",
847
+ "lastName": "Collida",
848
+ "birthDate": "13/10/2016",
849
+ "gender": "female",
850
+ "character": "Vesper",
851
+ "pet": "Lux",
852
+ "level": 1,
853
+ "aiLevel": 2,
854
+ "toSearch": "mayacollida"
855
+ },
856
+ "_id": "63dd3bdf20d7d9c2b24db182"
857
+ },
858
+ "numberOfGames": 0,
859
+ "combo": 0,
860
+ "points": 0,
861
+ "omit": false,
862
+ "_id": "69382b422e9beae26d64ca68"
863
+ }, {
864
+ "idCustomer": {
865
+ "profileInfo": {
866
+ "name": "Pietro",
867
+ "lastName": "Gianelli",
868
+ "birthDate": "06/08/2011",
869
+ "gender": "male",
870
+ "character": "Brilin",
871
+ "pet": "Lux",
872
+ "level": 1,
873
+ "levelReload": 14,
874
+ "aiLevel": 15,
875
+ "toSearch": "pietrogianelli"
876
+ },
877
+ "_id": "6545208bef2b92fa85c1b1ca"
878
+ },
879
+ "numberOfGames": 0,
880
+ "combo": 0,
881
+ "points": 0,
882
+ "omit": false,
883
+ "_id": "69382b422e9beae26d94ca63"
884
+ }, {
885
+ "idCustomer": {
886
+ "profileInfo": {
887
+ "name": "Emanuele",
888
+ "lastName": "Bramardo",
889
+ "birthDate": "02/02/2013",
890
+ "gender": "male",
891
+ "character": "Eryk",
892
+ "pet": "Vireo",
893
+ "level": 1,
894
+ "levelReload": 22,
895
+ "aiLevel": 22,
896
+ "toSearch": "emanuelebramardo"
897
+ },
898
+ "_id": "650dbed9e82a5947a85eaf31"
899
+ },
900
+ "numberOfGames": 0,
901
+ "combo": 0,
902
+ "points": 0,
903
+ "omit": false,
904
+ "_id": "69382b722e9beae26d94ca68"
905
+ }];
759
906
  return /*#__PURE__*/_jsxs(HProviders, {
760
- children: [/*#__PURE__*/_jsx(HTrafficLight, {
761
- isStarting: true,
762
- timeRemainingStarting: 3
907
+ children: [/*#__PURE__*/_jsx(HRaceTable, {
908
+ points: points,
909
+ data: points
763
910
  }), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), /*#__PURE__*/_jsx("br", {}), news && news.length > 0 ? /*#__PURE__*/_jsx(HNews, {
764
911
  news: news
765
912
  }) : /*#__PURE__*/_jsx(_Fragment, {}), showInitBackground && /*#__PURE__*/_jsx(HInitBackgroundAnimation, {
@@ -7,7 +7,7 @@ import HTitle from "../HTitle/HTitle";
7
7
  import HBox from "../HBox/HBox";
8
8
 
9
9
  const CharacterImage = styled("img")<{ margin?: string }>`
10
- width: 70px;
10
+ width: 50px;
11
11
  border-radius: 50%;
12
12
  margin: ${({ margin }) => margin || "0"};
13
13
  `;
@@ -36,7 +36,7 @@ interface HRaceTableProps {
36
36
  }
37
37
 
38
38
  const HRaceTable: React.FC<HRaceTableProps> = ({ data, points }) => {
39
- const { isMobile } = useIsMobile(1050);
39
+ const { isMobile } = useIsMobile(1100);
40
40
  const { setCharacterPicture } = useCharacters();
41
41
 
42
42
  const knowCoinsAndDiamonds = ({
@@ -121,7 +121,7 @@ const HRaceTable: React.FC<HRaceTableProps> = ({ data, points }) => {
121
121
  <div style={{ maxWidth: "1200px", width: "100%" }}>
122
122
  <HBox
123
123
  borderRadius="23px"
124
- width="100%"
124
+ width="90%"
125
125
  direction="column"
126
126
  background={"purpleLight"}
127
127
  overflowY="auto"
@@ -242,7 +242,7 @@ const HRaceTable: React.FC<HRaceTableProps> = ({ data, points }) => {
242
242
  margin="0 0 -60px 30px"
243
243
  />
244
244
  </HBox>
245
- <img src={HocIconPodioRace} alt="racePodio" width={375} />
245
+ <img src={HocIconPodioRace} alt="racePodio" width={345} />
246
246
  </HBox>
247
247
  </div>
248
248
  </HBox>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heroes-of-chess-components",
3
- "version": "0.6.42",
3
+ "version": "0.6.44",
4
4
  "description": "Reusable React Components for Heroes of Chess Apps",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",