react-gldn-kit 0.1.13 → 0.1.14
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/index.js +1 -1
- package/dist/lib/components/LastBigWinners/index.js +1 -1
- package/dist/lib/components/Layouts/ModalLayout/index.js +2 -2
- package/dist/lib/components/Layouts/ModalLayout/types.d.ts +0 -1
- package/dist/lib/components/Modals/Alert/index.js +1 -4
- package/dist/lib/components/Wheel/index.js +2 -2
- package/dist/lib/components/Wheel/types.d.ts +8 -0
- package/dist/main.css +110 -143
- package/package.json +1 -1
- package/dist/lib/components/Modals/Alert/components/OneStepPrize/index.d.ts +0 -2
- package/dist/lib/components/Modals/Alert/components/OneStepPrize/index.js +0 -80
|
@@ -116,7 +116,7 @@ var LastBigWinners = function (props) {
|
|
|
116
116
|
}
|
|
117
117
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperBox, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.hiddenBox, ref: wrapperHiddenBox, style: {
|
|
118
118
|
// Notice +8 only for styling
|
|
119
|
-
transform: "translateX(calc(var(--big-win-winner-card-size) * ".concat(-activePosition, " - (var(--indent-
|
|
119
|
+
transform: "translateX(calc(var(--big-win-winner-card-size) * ".concat(-activePosition, " - (var(--indent-m) / 2 * ").concat(activePosition, ") + 8px))"),
|
|
120
120
|
} }, { children: [lastGames.map(function (i, inx) { return ((0, react_1.createElement)(LastBigWinner_1.default, __assign({}, i, { handleClick: handleClick, key: "".concat(i.id, "_").concat(inx, "_").concat(i.prize), classes: (0, classnames_1.default)(classesCard, styles.marginLeft) }))); }), lastGames.map(function (i, inx) { return ((0, jsx_runtime_1.jsx)(LastBigWinner_1.default, { isLoading: true, classes: (0, classnames_1.default)(classesCard, styles.marginLeft) }, "".concat(i.id, "_loading_").concat(i.prize, "_").concat(inx))); })] })) })));
|
|
121
121
|
};
|
|
122
122
|
exports.LastBigWinners = LastBigWinners;
|
|
@@ -45,8 +45,8 @@ var PortalLayout_1 = require("../PortalLayout");
|
|
|
45
45
|
var ModalContent_1 = require("./component/ModalContent");
|
|
46
46
|
var styles = __importStar(require("./ModalLayout.module.css"));
|
|
47
47
|
var ModalLayout = function (props) {
|
|
48
|
-
var children = props.children, classes = props.classes,
|
|
48
|
+
var children = props.children, classes = props.classes, popUpHeaderProps = props.popUpHeaderProps, closeCallback = props.closeCallback;
|
|
49
49
|
var title = popUpHeaderProps.title, closeButton = popUpHeaderProps.closeButton;
|
|
50
|
-
return ((0, jsx_runtime_1.jsx)(PortalLayout_1.PortalLayout, __assign({ classes: classes, closeCallback: closeCallback }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className:
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(PortalLayout_1.PortalLayout, __assign({ classes: classes, closeCallback: closeCallback }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperModalLayout }, { children: [(closeButton || title) && ((0, jsx_runtime_1.jsx)(Headers_1.PopUpHeader, __assign({}, (popUpHeaderProps || { title: ' ' }), { closeButton: closeButton, classes: (0, classnames_1.default)((popUpHeaderProps === null || popUpHeaderProps === void 0 ? void 0 : popUpHeaderProps.classes) || '', styles.overflow) }))), (0, jsx_runtime_1.jsx)(ModalContent_1.ModalContent, { children: children })] })) })));
|
|
51
51
|
};
|
|
52
52
|
exports.ModalLayout = ModalLayout;
|
|
@@ -3,7 +3,6 @@ import { PopUpHeaderProps } from 'components/ui/Headers/PopUpHeader/types';
|
|
|
3
3
|
export type ModalLayoutProps = {
|
|
4
4
|
children: React.ReactElement;
|
|
5
5
|
classes?: string;
|
|
6
|
-
modalClasses?: string;
|
|
7
6
|
popUpHeaderProps?: PopUpHeaderProps;
|
|
8
7
|
closeCallback?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
8
|
};
|
|
@@ -111,7 +111,6 @@ var Credentials = (0, react_1.lazy)(function () { return __awaiter(void 0, void
|
|
|
111
111
|
case 1: return [2 /*return*/, _a.sent()];
|
|
112
112
|
}
|
|
113
113
|
}); }); });
|
|
114
|
-
var OneStepPrize_1 = __importDefault(require("./components/OneStepPrize"));
|
|
115
114
|
var styles = __importStar(require("./Alert.module.css"));
|
|
116
115
|
var Alerts = function (props) {
|
|
117
116
|
var _a;
|
|
@@ -140,8 +139,6 @@ var Alerts = function (props) {
|
|
|
140
139
|
return ((0, jsx_runtime_1.jsx)(SignIn, { sendCommand: sendCommand }));
|
|
141
140
|
case types_1.EModalTypes.Credentials:
|
|
142
141
|
return (0, jsx_runtime_1.jsx)(Credentials, { sendCommand: sendCommand });
|
|
143
|
-
case types_1.EModalTypes.Prize:
|
|
144
|
-
return (0, jsx_runtime_1.jsx)(OneStepPrize_1.default, {});
|
|
145
142
|
default:
|
|
146
143
|
return null;
|
|
147
144
|
}
|
|
@@ -179,6 +176,6 @@ var Alerts = function (props) {
|
|
|
179
176
|
// [styles.modalCloseDesktopAnimation]: isCloseModal && !isMobile,
|
|
180
177
|
_a[styles.animationFadeIn] = isActiveModal,
|
|
181
178
|
_a[styles.animationFadeOutModal] = isCloseModal,
|
|
182
|
-
_a))
|
|
179
|
+
_a)) }, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, __assign({ fallback: (0, jsx_runtime_1.jsx)("div", __assign({ className: "full center" }, { children: "LOADING" })) }, { children: getModalComponent() })) })));
|
|
183
180
|
};
|
|
184
181
|
exports.Alerts = Alerts;
|
|
@@ -123,10 +123,10 @@ var Wheel = function (props) {
|
|
|
123
123
|
position: 'absolute',
|
|
124
124
|
zIndex: Number(!activeBorder),
|
|
125
125
|
} }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.disk, 'KIT_Wheel_wrapper_content_disk', (_a = {},
|
|
126
|
-
_a[styles.spinning] = isSpin,
|
|
126
|
+
_a[styles.spinning] = isSpin && !customSpinningAnimation,
|
|
127
127
|
_a[customSpinningAnimation] = isSpin,
|
|
128
128
|
_a), classesWheel), style: {
|
|
129
129
|
animationDuration: "".concat(customTime, "ms"),
|
|
130
|
-
} }, { children: [(0, jsx_runtime_1.jsx)("img", { src: wheelContentPath, className: styles.wheelContentImg }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.list, wheelTextColor) }, { children: list.map(function (l, inx) { return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.item, styles === null || styles === void 0 ? void 0 : styles["item".concat(inx + 1)]) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textBold }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.bold }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textRegular }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.regular }) }))] }), inx)); }) }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.spinBtn, classesButton), onClick: handleSpin }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ className: styles.bntText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: btnText }) })), (0, jsx_runtime_1.jsx)("img", { src: isSpin ? wheelButtonHoverPath : wheelButtonPath, className: styles.btnImg })] })), (0, jsx_runtime_1.jsx)("img", { src: slotNamePath, className: (0, classnames_1.default)(styles.slotName, classesSlotName) })] }))] })));
|
|
130
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("img", { src: wheelContentPath, className: styles.wheelContentImg }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.list, wheelTextColor, 'KIT_Wheel_wrapper_content_disk_list') }, { children: list.map(function (l, inx) { return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.item, styles === null || styles === void 0 ? void 0 : styles["item".concat(inx + 1)], 'KIT_Wheel_wrapper_content_disk_list_item') }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textBold }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.bold }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textRegular }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: l.regular }) }))] }), inx)); }) }))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.spinBtn, classesButton, 'KIT_Wheel_wrapper_content_disk_button'), onClick: handleSpin }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ className: styles.bntText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: btnText }) })), (0, jsx_runtime_1.jsx)("img", { src: isSpin ? wheelButtonHoverPath : wheelButtonPath, className: styles.btnImg })] })), (0, jsx_runtime_1.jsx)("img", { src: slotNamePath, className: (0, classnames_1.default)(styles.slotName, classesSlotName) })] }))] })));
|
|
131
131
|
};
|
|
132
132
|
exports.Wheel = Wheel;
|
|
@@ -14,34 +14,42 @@ export type WheelProps = {
|
|
|
14
14
|
{
|
|
15
15
|
bold: string;
|
|
16
16
|
regular: string;
|
|
17
|
+
modified?: string;
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
bold: string;
|
|
20
21
|
regular: string;
|
|
22
|
+
modified?: string;
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
25
|
bold: string;
|
|
24
26
|
regular: string;
|
|
27
|
+
modified?: string;
|
|
25
28
|
},
|
|
26
29
|
{
|
|
27
30
|
bold: string;
|
|
28
31
|
regular: string;
|
|
32
|
+
modified?: string;
|
|
29
33
|
},
|
|
30
34
|
{
|
|
31
35
|
bold: string;
|
|
32
36
|
regular: string;
|
|
37
|
+
modified?: string;
|
|
33
38
|
},
|
|
34
39
|
{
|
|
35
40
|
bold: string;
|
|
36
41
|
regular: string;
|
|
42
|
+
modified?: string;
|
|
37
43
|
},
|
|
38
44
|
{
|
|
39
45
|
bold: string;
|
|
40
46
|
regular: string;
|
|
47
|
+
modified?: string;
|
|
41
48
|
},
|
|
42
49
|
{
|
|
43
50
|
bold: string;
|
|
44
51
|
regular: string;
|
|
52
|
+
modified?: string;
|
|
45
53
|
}
|
|
46
54
|
];
|
|
47
55
|
wheelTextColor?: string;
|