oolib 2.154.0 → 2.155.1
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/components/ActionMenu/index.js +11 -4
- package/dist/components/cards/CardContent/index.d.ts +11 -0
- package/dist/components/cards/CardContent/index.js +76 -144
- package/dist/components/cards/CardContent/styled.d.ts +7 -0
- package/dist/components/cards/CardContent/styled.js +53 -60
- package/dist/components/cards/ListContent/index.d.ts +12 -0
- package/dist/components/cards/ListContent/index.js +87 -172
- package/dist/components/cards/ListContent/styled.d.ts +7 -0
- package/dist/components/cards/ListContent/styled.js +26 -71
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/stories/Oolib/components/Playground.stories.d.ts +0 -16
- package/dist/stories/Oolib/components/Playground.stories.js +10 -10
- package/dist/stories/{Oolib/components/cards/CardContent.stories.d.ts → v2/components/Accordion.stories.d.ts} +2 -1
- package/dist/stories/{Oolib/components/BarChart.stories.js → v2/components/Accordion.stories.js} +19 -12
- package/dist/stories/v2/components/BarChart.stories.js +265 -0
- package/dist/stories/v2/components/DataVizAccordion.stories.d.ts +7 -0
- package/dist/stories/v2/components/DataVizAccordion.stories.js +141 -0
- package/dist/stories/v2/components/ImagePlaceHolder.stories.d.ts +2 -0
- package/dist/stories/v2/components/ImagePlaceHolder.stories.js +7 -2
- package/dist/stories/{Oolib/components/cards/ListContent.stories.d.ts → v2/components/PieChart.stories.d.ts} +2 -1
- package/dist/stories/v2/components/PieChart.stories.js +76 -0
- package/dist/v2/components/Accordion/index.d.ts +14 -0
- package/dist/v2/components/Accordion/index.js +105 -0
- package/dist/v2/components/BarChart/comps/CustomizedLabel/index.d.ts +32 -0
- package/dist/v2/components/BarChart/comps/CustomizedLabel/index.js +50 -0
- package/dist/v2/components/BarChart/index.d.ts +29 -0
- package/dist/v2/components/BarChart/index.js +261 -0
- package/dist/v2/components/BlockLabel/index.styled.js +1 -1
- package/dist/v2/components/DataVizAccordion/index.d.ts +6 -0
- package/dist/v2/components/DataVizAccordion/index.js +63 -0
- package/dist/v2/components/ImagePlaceholder/index.d.ts +3 -1
- package/dist/v2/components/ImagePlaceholder/index.js +3 -3
- package/dist/v2/components/ImagePlaceholder/styled.js +2 -2
- package/dist/v2/components/PieChart/index.d.ts +13 -0
- package/dist/v2/components/PieChart/index.js +116 -0
- package/dist/v2/themes/colors.d.ts +1 -0
- package/dist/v2/themes/colors.js +35 -1
- package/dist/v2/themes/typo.js +7 -7
- package/package.json +1 -1
- package/dist/components/dataViz/comps/BarChart/index.d.ts +0 -2
- package/dist/components/dataViz/comps/BarChart/index.js +0 -184
- package/dist/components/dataViz/utils/index.d.ts +0 -24
- package/dist/components/dataViz/utils/index.js +0 -50
- package/dist/stories/Oolib/components/cards/CardContent.stories.js +0 -47
- package/dist/stories/Oolib/components/cards/ListContent.stories.js +0 -50
- /package/dist/stories/{Oolib → v2}/components/BarChart.stories.d.ts +0 -0
|
@@ -112,11 +112,18 @@ var ActionMenu = function (_a) {
|
|
|
112
112
|
}))));
|
|
113
113
|
};
|
|
114
114
|
return (react_1.default.createElement(styled_1.StyledActionMenu, { ref: actionMenuRef },
|
|
115
|
-
typeof CustomSelectComp === 'function' ? (react_1.default.createElement(
|
|
115
|
+
react_1.default.createElement("div", { style: { zIndex: 1002, position: "relative" } }, typeof CustomSelectComp === 'function' ? (react_1.default.createElement("div", { onClick: function (e) {
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
e.stopPropagation();
|
|
118
|
+
}, onMouseDown: function (e) {
|
|
119
|
+
e.preventDefault();
|
|
120
|
+
e.stopPropagation();
|
|
121
|
+
} },
|
|
122
|
+
react_1.default.createElement(CustomSelectComp, { active: showActions, onClick: function () {
|
|
123
|
+
setShowActions(!showActions);
|
|
124
|
+
} }))) : (react_1.default.createElement(ButtonComp, __assign({}, buttonSize, { icon: icon, iconSize: iconSize, invert: invert, stopPropagation: true, preventDefault: true, onClick: function (e) {
|
|
116
125
|
setShowActions(!showActions);
|
|
117
|
-
}
|
|
118
|
-
setShowActions(!showActions);
|
|
119
|
-
}, active: showActions }))),
|
|
126
|
+
}, active: showActions })))),
|
|
120
127
|
popOutOfOverflowHiddenParent && (react_1.default.createElement(styled_1.StyledActionMenuTracker, { storybookPreview: storybookPreview, align: align, ref: trackerRef })),
|
|
121
128
|
popOutOfOverflowHiddenParent
|
|
122
129
|
? (0, react_dom_1.createPortal)(genLighbox(), document.getElementById("actionmenu-lightbox-root"))
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function CardContent({ id, data, config, to, onClick, openInNewTab, actions, highlight }: {
|
|
2
|
+
id: any;
|
|
3
|
+
data: any;
|
|
4
|
+
config: any;
|
|
5
|
+
to: any;
|
|
6
|
+
onClick: any;
|
|
7
|
+
openInNewTab: any;
|
|
8
|
+
actions: any;
|
|
9
|
+
highlight: any;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
import React from "react";
|
|
@@ -1,144 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// }}
|
|
78
|
-
// >
|
|
79
|
-
// <LABEL
|
|
80
|
-
// style={{
|
|
81
|
-
// textOverflow: "ellipsis",
|
|
82
|
-
// overflow: "hidden",
|
|
83
|
-
// whiteSpace: "nowrap",
|
|
84
|
-
// }}
|
|
85
|
-
// color={getPrimaryColorText(theme?.colors)}
|
|
86
|
-
// >
|
|
87
|
-
// {cardLabel}
|
|
88
|
-
// </LABEL>
|
|
89
|
-
// <div style={{ marginTop: "-1rem", marginRight: "-1rem" }}>
|
|
90
|
-
// {actions && <ActionMenu actions={actions} />}
|
|
91
|
-
// </div>
|
|
92
|
-
// </div>
|
|
93
|
-
// ) : null}
|
|
94
|
-
// {title ? (
|
|
95
|
-
// <div style={{ display: "flex", alignItems: "end", gap: ".5rem" }}>
|
|
96
|
-
// {" "}
|
|
97
|
-
// <LineClampWrapper noOfLines_M={6} title={title}>
|
|
98
|
-
// <StyledTitle capitalize className="StyledTitle">
|
|
99
|
-
// <StyledTitleSpan className="StyledTitleSpan">
|
|
100
|
-
// {localize(title)}
|
|
101
|
-
// </StyledTitleSpan>
|
|
102
|
-
// </StyledTitle>
|
|
103
|
-
// </LineClampWrapper>
|
|
104
|
-
// </div>
|
|
105
|
-
// ) : null}
|
|
106
|
-
// </StyledContainer1>
|
|
107
|
-
// {/* {((Array.isArray(tagDisplay?.data) && tagDisplay?.data?.length > 0) || typeof tagDisplay === "string") && <TagDisplay display={Array.isArray(tagDisplay?.data) ? tagDisplay?.data[0]?.display : tagDisplay} to={tagDisplay?.collectionId ? `/published-page/${tagDisplay?.collectionId}?id=${tagDisplay?.data[0]?._id}` : "#"} color="green"/>} */}
|
|
108
|
-
// {tagDisplay && <TagDisplay display={tagDisplay} color="green"/>}
|
|
109
|
-
// {metaBlock?.length > 0 ? (
|
|
110
|
-
// <MetaBlock data={data} config={metaBlock} /> //show only two meta for cardContent
|
|
111
|
-
// ) : null}
|
|
112
|
-
// </StyledUpperSection>
|
|
113
|
-
// {showEmbedSection && (
|
|
114
|
-
// <StyledEmbedSection>
|
|
115
|
-
// {!imageDataExists(image) && !videoDataExists(video) &&
|
|
116
|
-
// <CardPlaceholder/>
|
|
117
|
-
// }
|
|
118
|
-
// {imageDataExists(image) && (
|
|
119
|
-
// <div style={{ width: "100%" }}>
|
|
120
|
-
// {
|
|
121
|
-
// <ImageInput
|
|
122
|
-
// value={image}
|
|
123
|
-
// aspectRatio={"5/3"}
|
|
124
|
-
// readOnly={true}
|
|
125
|
-
// defaultImageSpread={"cover"} //meaning if a spread is not defined in image data, it will fallback to this.
|
|
126
|
-
// enableCaptions={false}
|
|
127
|
-
// disableImageBorder={true}
|
|
128
|
-
// />
|
|
129
|
-
// }
|
|
130
|
-
// </div>
|
|
131
|
-
// )}
|
|
132
|
-
// {videoDataExists(video) && !imageDataExists(image) ? (
|
|
133
|
-
// <div style={{ width: "100%", position: 'relative' }}>
|
|
134
|
-
// <VideoInput value={video} readOnly={true} light={true} />
|
|
135
|
-
// {/**below div ensures the video is not clickable */}
|
|
136
|
-
// <div style={{position: 'absolute', top: 0, left: 0, width: '100%', height: '100%'}}/>
|
|
137
|
-
// </div>
|
|
138
|
-
// ) : null}
|
|
139
|
-
// </StyledEmbedSection>
|
|
140
|
-
// )}
|
|
141
|
-
// </StyledCardWrapper>
|
|
142
|
-
// </LinkComp>
|
|
143
|
-
// );
|
|
144
|
-
// };
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CardContent = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var styled_components_1 = require("styled-components");
|
|
9
|
+
var injectHttps_1 = require("../../../utils/injectHttps");
|
|
10
|
+
var utilsOolib_1 = require("../../../utilsOolib");
|
|
11
|
+
var ActionMenu_1 = require("../../ActionMenu");
|
|
12
|
+
var Typo_1 = require("../../Typo");
|
|
13
|
+
var VideoInput_1 = __importDefault(require("../../VideoInput"));
|
|
14
|
+
var MetaBlock_1 = __importDefault(require("../../MetaBlock"));
|
|
15
|
+
var LineClampWrapper_1 = require("../comps/LineClampWrapper");
|
|
16
|
+
var styled_1 = require("../styled");
|
|
17
|
+
var decideLinkCompAndTarget_1 = require("../utils/decideLinkCompAndTarget");
|
|
18
|
+
var dontRenderIfBothOnClickAndTo_1 = require("../utils/dontRenderIfBothOnClickAndTo");
|
|
19
|
+
var parseCardConfig_1 = require("../utils/parseCardConfig");
|
|
20
|
+
var mediaDataExists_1 = require("../utils/mediaDataExists");
|
|
21
|
+
var styled_2 = require("./styled");
|
|
22
|
+
var CardPlaceholder_1 = require("../comps/CardPlaceholder");
|
|
23
|
+
var ImageInput_1 = require("../../ImageInput");
|
|
24
|
+
var icons_1 = require("../../../icons");
|
|
25
|
+
var Tags_1 = require("../../Tags");
|
|
26
|
+
var CrownSimple = icons_1.icons.CrownSimple;
|
|
27
|
+
var CardContent = function (_a) {
|
|
28
|
+
var id = _a.id, data = _a.data, config = _a.config, to = _a.to, onClick = _a.onClick, openInNewTab = _a.openInNewTab, actions = _a.actions, highlight = _a.highlight;
|
|
29
|
+
var theme = (0, styled_components_1.useTheme)();
|
|
30
|
+
var localize = (0, utilsOolib_1.useLocale)();
|
|
31
|
+
var parseSpecialSyntax = (theme || {}).parseSpecialSyntax;
|
|
32
|
+
var showEmbedSection = !!((config === null || config === void 0 ? void 0 : config.image) || (config === null || config === void 0 ? void 0 : config.video));
|
|
33
|
+
var _b = (0, parseCardConfig_1.parseCardConfig)({
|
|
34
|
+
config: config,
|
|
35
|
+
data: data,
|
|
36
|
+
parseSpecialSyntax: parseSpecialSyntax
|
|
37
|
+
}), cardLabel = _b.cardLabel, title = _b.title, video = _b.video, image = _b.image, metaBlock = _b.metaBlock, tagDisplay = _b.tagDisplay;
|
|
38
|
+
var dontRenderRes = (0, dontRenderIfBothOnClickAndTo_1.dontRenderIfBothOnClickAndTo)({ onClick: onClick, to: to });
|
|
39
|
+
if (dontRenderRes)
|
|
40
|
+
return dontRenderRes;
|
|
41
|
+
var _c = (0, decideLinkCompAndTarget_1.decideLinkCompAndTarget)({ to: to, openInNewTab: openInNewTab }), LinkComp = _c.LinkComp, target = _c.target, externalUrl = _c.externalUrl;
|
|
42
|
+
return (react_1.default.createElement(LinkComp, { target: target, href: (0, injectHttps_1.injectHttps)(to), to: to },
|
|
43
|
+
react_1.default.createElement(styled_2.StyledCardWrapper, { id: id, highlight: highlight, onClick: onClick ? function (e) { return onClick(e, data); } : undefined },
|
|
44
|
+
highlight && react_1.default.createElement(styled_2.StyledCrownWrapper, null,
|
|
45
|
+
react_1.default.createElement(styled_2.StyledCrown, null,
|
|
46
|
+
react_1.default.createElement(CrownSimple, { size: 24 }))),
|
|
47
|
+
react_1.default.createElement(styled_2.StyledUpperSection, { highlight: highlight },
|
|
48
|
+
react_1.default.createElement(styled_2.StyledContainer1, null,
|
|
49
|
+
cardLabel ? (react_1.default.createElement("div", { title: cardLabel, style: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
gap: "2rem",
|
|
52
|
+
justifyContent: "space-between",
|
|
53
|
+
} },
|
|
54
|
+
react_1.default.createElement(Typo_1.LABEL, { style: {
|
|
55
|
+
textOverflow: "ellipsis",
|
|
56
|
+
overflow: "hidden",
|
|
57
|
+
whiteSpace: "nowrap",
|
|
58
|
+
}, color: (0, utilsOolib_1.getPrimaryColorText)(theme === null || theme === void 0 ? void 0 : theme.colors) }, cardLabel),
|
|
59
|
+
react_1.default.createElement("div", { style: { marginTop: "-1rem", marginRight: "-1rem" } }, actions && react_1.default.createElement(ActionMenu_1.ActionMenu, { actions: actions })))) : null,
|
|
60
|
+
title ? (react_1.default.createElement("div", { style: { display: "flex", alignItems: "end", gap: ".5rem" } },
|
|
61
|
+
" ",
|
|
62
|
+
react_1.default.createElement(LineClampWrapper_1.LineClampWrapper, { noOfLines_M: 6, title: title },
|
|
63
|
+
react_1.default.createElement(styled_1.StyledTitle, { capitalize: true, className: "StyledTitle" },
|
|
64
|
+
react_1.default.createElement(styled_1.StyledTitleSpan, { className: "StyledTitleSpan" }, localize(title)))))) : null),
|
|
65
|
+
tagDisplay && react_1.default.createElement(Tags_1.TagDisplay, { display: tagDisplay, color: "green" }),
|
|
66
|
+
(metaBlock === null || metaBlock === void 0 ? void 0 : metaBlock.length) > 0 ? (react_1.default.createElement(MetaBlock_1.default, { data: data, config: metaBlock }) //show only two meta for cardContent
|
|
67
|
+
) : null),
|
|
68
|
+
showEmbedSection && (react_1.default.createElement(styled_2.StyledEmbedSection, null,
|
|
69
|
+
!(0, mediaDataExists_1.imageDataExists)(image) && !(0, mediaDataExists_1.videoDataExists)(video) &&
|
|
70
|
+
react_1.default.createElement(CardPlaceholder_1.CardPlaceholder, null),
|
|
71
|
+
(0, mediaDataExists_1.imageDataExists)(image) && (react_1.default.createElement("div", { style: { width: "100%" } }, react_1.default.createElement(ImageInput_1.ImageInput, { value: image, aspectRatio: "5/3", readOnly: true, defaultImageSpread: "cover", enableCaptions: false, disableImageBorder: true }))),
|
|
72
|
+
(0, mediaDataExists_1.videoDataExists)(video) && !(0, mediaDataExists_1.imageDataExists)(image) ? (react_1.default.createElement("div", { style: { width: "100%", position: 'relative' } },
|
|
73
|
+
react_1.default.createElement(VideoInput_1.default, { value: video, readOnly: true, light: true }),
|
|
74
|
+
react_1.default.createElement("div", { style: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' } }))) : null)))));
|
|
75
|
+
};
|
|
76
|
+
exports.CardContent = CardContent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const StyledContainer1: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export const StyledMetaBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export const StyledEmbedSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export const StyledCardWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export const StyledUpperSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export const StyledCrownWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export const StyledCrown: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,60 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// justify-content: flex-end
|
|
55
|
-
// `;
|
|
56
|
-
// export const StyledCrown = styled.div`
|
|
57
|
-
// width: max-content;
|
|
58
|
-
// background-color: ${invertGreen};
|
|
59
|
-
// padding: 1rem;
|
|
60
|
-
// `
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.StyledCrown = exports.StyledCrownWrapper = exports.StyledUpperSection = exports.StyledCardWrapper = exports.StyledEmbedSection = exports.StyledMetaBlock = exports.StyledContainer1 = void 0;
|
|
31
|
+
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
var colors_1 = require("../../../themes/colors");
|
|
33
|
+
var transitions_1 = require("../../../themes/mixins/transitions");
|
|
34
|
+
var styled_1 = require("../styled");
|
|
35
|
+
var greyColor5 = colors_1.colors.greyColor5, white = colors_1.colors.white, invertGreen = colors_1.colors.invertGreen;
|
|
36
|
+
var flexColumn = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
37
|
+
exports.StyledContainer1 = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n gap: 1rem;\n"], ["\n ", "\n gap: 1rem;\n"])), flexColumn);
|
|
38
|
+
exports.StyledMetaBlock = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n gap: 0.5em;\n"], ["\n display: flex;\n gap: 0.5em;\n"])));
|
|
39
|
+
exports.StyledEmbedSection = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100px;\n display: flex;\n align-items: center;\n overflow: hidden;\n width: 100%;\n"], ["\n height: 100px;\n display: flex;\n align-items: center;\n overflow: hidden;\n width: 100%;\n"])));
|
|
40
|
+
exports.StyledCardWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n border: 2px solid ", ";\n background-color: ", "; \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n ", "\n\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n ", ";\n #CardPlaceholder {\n opacity: 1;\n }\n }\n"], ["\n height: 100%;\n border: 2px solid ", ";\n background-color: ", "; \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n ", "\n\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n ", ";\n #CardPlaceholder {\n opacity: 1;\n }\n }\n"])), greyColor5, function (_a) {
|
|
41
|
+
var highlight = _a.highlight;
|
|
42
|
+
return highlight ? colors_1.colors.lightGreen : greyColor5;
|
|
43
|
+
}, (0, transitions_1.transition)("background-color"), white, styled_1.CSSTitleAnimationOnHover);
|
|
44
|
+
exports.StyledUpperSection = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n /* height: 100%; */\n flex-grow: 1;\n justify-content: space-between;\n padding: 2rem;\n ", "\n gap: ", ";\n padding-top: ", ";\n"], ["\n /* height: 100%; */\n flex-grow: 1;\n justify-content: space-between;\n padding: 2rem;\n ", "\n gap: ", ";\n padding-top: ", ";\n"])), flexColumn, function (_a) {
|
|
45
|
+
var highlight = _a.highlight;
|
|
46
|
+
return highlight ? '2rem' : '3rem';
|
|
47
|
+
}, function (_a) {
|
|
48
|
+
var highlight = _a.highlight;
|
|
49
|
+
return highlight ? "1rem" : "2rem";
|
|
50
|
+
});
|
|
51
|
+
exports.StyledCrownWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 100%;\n display: flex; \n justify-content: flex-end\n"], ["\n width: 100%;\n display: flex; \n justify-content: flex-end\n"])));
|
|
52
|
+
exports.StyledCrown = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: max-content;\n background-color: ", ";\n padding: 1rem;\n"], ["\n width: max-content;\n background-color: ", ";\n padding: 1rem;\n"])), invertGreen);
|
|
53
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function ListContent({ id, data, config, to, onClick, openInNewTab, actions, statusTag, variant, }: {
|
|
2
|
+
id: any;
|
|
3
|
+
data: any;
|
|
4
|
+
config: any;
|
|
5
|
+
to: any;
|
|
6
|
+
onClick: any;
|
|
7
|
+
openInNewTab: any;
|
|
8
|
+
actions: any;
|
|
9
|
+
statusTag: any;
|
|
10
|
+
variant?: string;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
import React from "react";
|