@ludo.ninja/components 2.3.0 → 2.3.2
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/build/dto/common/ItemType/data.js +5 -0
- package/build/dto/common/ItemType/index.d.ts +8 -4
- package/build/dto/common/ItemType/index.js +4 -0
- package/build/entities/labelCreationType/data.js +5 -0
- package/build/entities/labelCreationType/types.d.ts +8 -4
- package/build/entities/labelCreationType/types.js +4 -0
- package/build/modules/opportunity/OpportunityCard.js +1 -1
- package/package.json +1 -1
|
@@ -32,5 +32,10 @@ const labelsData = {
|
|
|
32
32
|
color: types_1.LabelColor.opportunity,
|
|
33
33
|
text: types_1.LabelText.opportunity,
|
|
34
34
|
},
|
|
35
|
+
[types_1.LabelKeys.airdrop]: {
|
|
36
|
+
backgroundColor: types_1.LabelBackground.airdrop,
|
|
37
|
+
color: types_1.LabelColor.airdrop,
|
|
38
|
+
text: types_1.LabelText.airdrop,
|
|
39
|
+
},
|
|
35
40
|
};
|
|
36
41
|
exports.default = labelsData;
|
|
@@ -4,7 +4,8 @@ declare enum LabelKeys {
|
|
|
4
4
|
gallery = "gallery",
|
|
5
5
|
favorites = "favorites",
|
|
6
6
|
likelist = "likelist",
|
|
7
|
-
opportunity = "opportunity"
|
|
7
|
+
opportunity = "opportunity",
|
|
8
|
+
airdrop = "TOKEN_AIRDROP"
|
|
8
9
|
}
|
|
9
10
|
declare enum LabelBackground {
|
|
10
11
|
asset = "#F3D6FD",
|
|
@@ -13,7 +14,8 @@ declare enum LabelBackground {
|
|
|
13
14
|
gallery = "#FFDFCD",
|
|
14
15
|
favorites = "#CDCFF8",
|
|
15
16
|
likelist = "#CDCFF8",
|
|
16
|
-
opportunity = "#CDF8D9"
|
|
17
|
+
opportunity = "#CDF8D9",
|
|
18
|
+
airdrop = "#FAB6B6"
|
|
17
19
|
}
|
|
18
20
|
declare enum LabelColor {
|
|
19
21
|
asset = "#9177B1",
|
|
@@ -22,7 +24,8 @@ declare enum LabelColor {
|
|
|
22
24
|
gallery = "#B19077",
|
|
23
25
|
favorites = "#7779B1",
|
|
24
26
|
likelist = "#7779B1",
|
|
25
|
-
opportunity = "#77B179"
|
|
27
|
+
opportunity = "#77B179",
|
|
28
|
+
airdrop = "#9B5050"
|
|
26
29
|
}
|
|
27
30
|
declare enum LabelText {
|
|
28
31
|
asset = "nft",
|
|
@@ -31,7 +34,8 @@ declare enum LabelText {
|
|
|
31
34
|
gallery = "gallery",
|
|
32
35
|
favorites = "favorites",
|
|
33
36
|
likelist = "liked",
|
|
34
|
-
opportunity = "opportunity"
|
|
37
|
+
opportunity = "opportunity",
|
|
38
|
+
airdrop = "airdrop"
|
|
35
39
|
}
|
|
36
40
|
type LabelType = {
|
|
37
41
|
backgroundColor: LabelBackground;
|
|
@@ -9,6 +9,7 @@ var LabelKeys;
|
|
|
9
9
|
LabelKeys["favorites"] = "favorites";
|
|
10
10
|
LabelKeys["likelist"] = "likelist";
|
|
11
11
|
LabelKeys["opportunity"] = "opportunity";
|
|
12
|
+
LabelKeys["airdrop"] = "TOKEN_AIRDROP";
|
|
12
13
|
})(LabelKeys || (exports.LabelKeys = LabelKeys = {}));
|
|
13
14
|
var LabelBackground;
|
|
14
15
|
(function (LabelBackground) {
|
|
@@ -19,6 +20,7 @@ var LabelBackground;
|
|
|
19
20
|
LabelBackground["favorites"] = "#CDCFF8";
|
|
20
21
|
LabelBackground["likelist"] = "#CDCFF8";
|
|
21
22
|
LabelBackground["opportunity"] = "#CDF8D9";
|
|
23
|
+
LabelBackground["airdrop"] = "#FAB6B6";
|
|
22
24
|
})(LabelBackground || (exports.LabelBackground = LabelBackground = {}));
|
|
23
25
|
var LabelColor;
|
|
24
26
|
(function (LabelColor) {
|
|
@@ -29,6 +31,7 @@ var LabelColor;
|
|
|
29
31
|
LabelColor["favorites"] = "#7779B1";
|
|
30
32
|
LabelColor["likelist"] = "#7779B1";
|
|
31
33
|
LabelColor["opportunity"] = "#77B179";
|
|
34
|
+
LabelColor["airdrop"] = "#9B5050";
|
|
32
35
|
})(LabelColor || (exports.LabelColor = LabelColor = {}));
|
|
33
36
|
var LabelText;
|
|
34
37
|
(function (LabelText) {
|
|
@@ -39,4 +42,5 @@ var LabelText;
|
|
|
39
42
|
LabelText["favorites"] = "favorites";
|
|
40
43
|
LabelText["likelist"] = "liked";
|
|
41
44
|
LabelText["opportunity"] = "opportunity";
|
|
45
|
+
LabelText["airdrop"] = "airdrop";
|
|
42
46
|
})(LabelText || (exports.LabelText = LabelText = {}));
|
|
@@ -32,5 +32,10 @@ const labelsData = {
|
|
|
32
32
|
color: types_1.LabelColor.opportunity,
|
|
33
33
|
text: types_1.LabelText.opportunity,
|
|
34
34
|
},
|
|
35
|
+
[types_1.LabelKeys.airdrop]: {
|
|
36
|
+
backgroundColor: types_1.LabelBackground.airdrop,
|
|
37
|
+
color: types_1.LabelColor.airdrop,
|
|
38
|
+
text: types_1.LabelText.airdrop,
|
|
39
|
+
},
|
|
35
40
|
};
|
|
36
41
|
exports.default = labelsData;
|
|
@@ -4,7 +4,8 @@ declare enum LabelKeys {
|
|
|
4
4
|
gallery = "gallery",
|
|
5
5
|
favorites = "favorites",
|
|
6
6
|
likelist = "likelist",
|
|
7
|
-
opportunity = "opportunity"
|
|
7
|
+
opportunity = "opportunity",
|
|
8
|
+
airdrop = "TOKEN_AIRDROP"
|
|
8
9
|
}
|
|
9
10
|
declare enum LabelBackground {
|
|
10
11
|
asset = "#F3D6FD",
|
|
@@ -13,7 +14,8 @@ declare enum LabelBackground {
|
|
|
13
14
|
gallery = "#FFDFCD",
|
|
14
15
|
favorites = "#CDCFF8",
|
|
15
16
|
likelist = "#CDCFF8",
|
|
16
|
-
opportunity = "#CDF8D9"
|
|
17
|
+
opportunity = "#CDF8D9",
|
|
18
|
+
airdrop = "#FAB6B6"
|
|
17
19
|
}
|
|
18
20
|
declare enum LabelColor {
|
|
19
21
|
asset = "#9177B1",
|
|
@@ -22,7 +24,8 @@ declare enum LabelColor {
|
|
|
22
24
|
gallery = "#B19077",
|
|
23
25
|
favorites = "#7779B1",
|
|
24
26
|
likelist = "#7779B1",
|
|
25
|
-
opportunity = "#77B179"
|
|
27
|
+
opportunity = "#77B179",
|
|
28
|
+
airdrop = "#9B5050"
|
|
26
29
|
}
|
|
27
30
|
declare enum LabelText {
|
|
28
31
|
asset = "nft",
|
|
@@ -31,7 +34,8 @@ declare enum LabelText {
|
|
|
31
34
|
gallery = "gallery",
|
|
32
35
|
favorites = "favorites",
|
|
33
36
|
likelist = "liked",
|
|
34
|
-
opportunity = "opportunity"
|
|
37
|
+
opportunity = "opportunity",
|
|
38
|
+
airdrop = "airdrop"
|
|
35
39
|
}
|
|
36
40
|
type LabelType = {
|
|
37
41
|
backgroundColor: LabelBackground;
|
|
@@ -9,6 +9,7 @@ var LabelKeys;
|
|
|
9
9
|
LabelKeys["favorites"] = "favorites";
|
|
10
10
|
LabelKeys["likelist"] = "likelist";
|
|
11
11
|
LabelKeys["opportunity"] = "opportunity";
|
|
12
|
+
LabelKeys["airdrop"] = "TOKEN_AIRDROP";
|
|
12
13
|
})(LabelKeys || (exports.LabelKeys = LabelKeys = {}));
|
|
13
14
|
var LabelBackground;
|
|
14
15
|
(function (LabelBackground) {
|
|
@@ -19,6 +20,7 @@ var LabelBackground;
|
|
|
19
20
|
LabelBackground["favorites"] = "#CDCFF8";
|
|
20
21
|
LabelBackground["likelist"] = "#CDCFF8";
|
|
21
22
|
LabelBackground["opportunity"] = "#CDF8D9";
|
|
23
|
+
LabelBackground["airdrop"] = "#FAB6B6";
|
|
22
24
|
})(LabelBackground || (exports.LabelBackground = LabelBackground = {}));
|
|
23
25
|
var LabelColor;
|
|
24
26
|
(function (LabelColor) {
|
|
@@ -29,6 +31,7 @@ var LabelColor;
|
|
|
29
31
|
LabelColor["favorites"] = "#7779B1";
|
|
30
32
|
LabelColor["likelist"] = "#7779B1";
|
|
31
33
|
LabelColor["opportunity"] = "#77B179";
|
|
34
|
+
LabelColor["airdrop"] = "#9B5050";
|
|
32
35
|
})(LabelColor || (exports.LabelColor = LabelColor = {}));
|
|
33
36
|
var LabelText;
|
|
34
37
|
(function (LabelText) {
|
|
@@ -39,4 +42,5 @@ var LabelText;
|
|
|
39
42
|
LabelText["favorites"] = "favorites";
|
|
40
43
|
LabelText["likelist"] = "liked";
|
|
41
44
|
LabelText["opportunity"] = "opportunity";
|
|
45
|
+
LabelText["airdrop"] = "airdrop";
|
|
42
46
|
})(LabelText || (exports.LabelText = LabelText = {}));
|
|
@@ -248,6 +248,6 @@ const OpportunityCard = ({ opportunity, toolsForRemove, }) => {
|
|
|
248
248
|
e.preventDefault();
|
|
249
249
|
}, children: (0, jsx_runtime_1.jsxs)("div", { className: "icons", children: [(0, jsx_runtime_1.jsx)("div", { className: "icon", onClick: () => {
|
|
250
250
|
openModalSidebarPortal((0, jsx_runtime_1.jsx)(OpportunityMenu_1.OpportunityMenu, { opportunity: opportunity, onClose: closeModalSidebarPortal }));
|
|
251
|
-
}, children: (0, jsx_runtime_1.jsx)(ShareIcon_1.ShareIcon, {}) }), !isProd() && ((0, jsx_runtime_1.jsx)(OpportunityLike, { isDefaultLiked: !!(isSignedIn && opportunity.liked), opportunityId: opportunity.opportunityId, toolsForRemove: toolsForRemove }))] }) })] }), (0, jsx_runtime_1.jsxs)(StyledCardContent, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContent", children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContentWrapper", children: [(0, jsx_runtime_1.jsx)("p", { className: `secondName`, children: opportunity.name }), (0, jsx_runtime_1.jsx)("p", { className: `mainName`, children: opportunity.description }), (0, jsx_runtime_1.jsx)("p", { className: `categoryName`, children: opportunity.categoryName })] }), (0, jsx_runtime_1.jsx)(OpportunityDropDown_1.OpportunityDropDown, { opportunity: opportunity })] }), (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "end", justifyContent: "space-between", className: `categoryFooter`, children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: data_1.default.opportunity }), opportunity.activeUntil && ((0, jsx_runtime_1.jsx)("div", { className: "date", children: `till ${(0, moment_1.default)(opportunity.activeUntil).format("LL")}` }))] })] })] }));
|
|
251
|
+
}, children: (0, jsx_runtime_1.jsx)(ShareIcon_1.ShareIcon, {}) }), !isProd() && ((0, jsx_runtime_1.jsx)(OpportunityLike, { isDefaultLiked: !!(isSignedIn && opportunity.liked), opportunityId: opportunity.opportunityId, toolsForRemove: toolsForRemove }))] }) })] }), (0, jsx_runtime_1.jsxs)(StyledCardContent, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContent", children: [(0, jsx_runtime_1.jsxs)("div", { className: "cardContentWrapper", children: [(0, jsx_runtime_1.jsx)("p", { className: `secondName`, children: opportunity.name }), (0, jsx_runtime_1.jsx)("p", { className: `mainName`, children: opportunity.description }), (0, jsx_runtime_1.jsx)("p", { className: `categoryName`, children: opportunity.categoryName })] }), (0, jsx_runtime_1.jsx)(OpportunityDropDown_1.OpportunityDropDown, { opportunity: opportunity })] }), (0, jsx_runtime_1.jsxs)(index_1.Flex, { alignItems: "end", justifyContent: "space-between", className: `categoryFooter`, children: [(0, jsx_runtime_1.jsx)(CardCategory_1.default, { label: data_1.default[opportunity.opportunityType] || data_1.default.opportunity }), opportunity.activeUntil && ((0, jsx_runtime_1.jsx)("div", { className: "date", children: `till ${(0, moment_1.default)(opportunity.activeUntil).format("LL")}` }))] })] })] }));
|
|
252
252
|
};
|
|
253
253
|
exports.OpportunityCard = OpportunityCard;
|