heroes-of-chess-components 0.6.25 → 0.6.26
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 } 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 } 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";
|
|
@@ -757,7 +757,10 @@ function HocComponentsPlayground() {
|
|
|
757
757
|
"__v": 0
|
|
758
758
|
}];
|
|
759
759
|
return /*#__PURE__*/_jsxs(HProviders, {
|
|
760
|
-
children: [/*#__PURE__*/_jsx(
|
|
760
|
+
children: [/*#__PURE__*/_jsx(HTrafficLight, {
|
|
761
|
+
isStarting: true,
|
|
762
|
+
timeRemainingStarting: 3
|
|
763
|
+
}), /*#__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, {
|
|
761
764
|
news: news
|
|
762
765
|
}) : /*#__PURE__*/_jsx(_Fragment, {}), showInitBackground && /*#__PURE__*/_jsx(HInitBackgroundAnimation, {
|
|
763
766
|
showBackground: showInitBackground
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
HocIconTrafficLightComplete,
|
|
4
|
+
HocIconTrafficLightGreen,
|
|
5
|
+
HocIconTrafficLightRed,
|
|
6
|
+
HocIconTrafficLightYellow,
|
|
7
|
+
} from "../../assets/Icons/ui";
|
|
8
|
+
import HBox from "../HBox/HBox";
|
|
9
|
+
import HModal from "../HModal/HModal";
|
|
10
|
+
import HText from "../HText/HText";
|
|
11
|
+
import { HTrafficLightProps } from "./types";
|
|
12
|
+
|
|
13
|
+
const HTrafficLight: React.FC<HTrafficLightProps> = ({
|
|
14
|
+
isStarting,
|
|
15
|
+
timeRemainingStarting,
|
|
16
|
+
}) => {
|
|
17
|
+
return (
|
|
18
|
+
<HModal
|
|
19
|
+
showModal={isStarting}
|
|
20
|
+
showButtonAccept={false}
|
|
21
|
+
showButtonCancel={false}
|
|
22
|
+
title=""
|
|
23
|
+
>
|
|
24
|
+
<HBox direction="column">
|
|
25
|
+
<HText as="h2" color="purpleMedium">
|
|
26
|
+
Preparati per il gioco!
|
|
27
|
+
</HText>
|
|
28
|
+
<img
|
|
29
|
+
src={
|
|
30
|
+
timeRemainingStarting === 3
|
|
31
|
+
? HocIconTrafficLightRed
|
|
32
|
+
: timeRemainingStarting === 2
|
|
33
|
+
? HocIconTrafficLightYellow
|
|
34
|
+
: timeRemainingStarting === 1
|
|
35
|
+
? HocIconTrafficLightGreen
|
|
36
|
+
: HocIconTrafficLightComplete
|
|
37
|
+
}
|
|
38
|
+
alt=""
|
|
39
|
+
width={220}
|
|
40
|
+
/>
|
|
41
|
+
<HText fontSize="80px" color="purpleMedium">
|
|
42
|
+
{timeRemainingStarting && timeRemainingStarting > 0
|
|
43
|
+
? timeRemainingStarting
|
|
44
|
+
: "VIA!"}
|
|
45
|
+
</HText>
|
|
46
|
+
</HBox>
|
|
47
|
+
</HModal>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default HTrafficLight;
|