oolib 2.148.0 → 2.149.0
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/ImageInput/comps/GallerySlider/comps/SliderShell/index.js +1 -1
- package/dist/stories/Oolib/components/ActionMenu.stories.js +0 -1
- package/dist/stories/Oolib/components/DatePicker.stories.js +6 -6
- package/dist/stories/Oolib/components/GroupQuestionsInputSingle.stories.js +1 -1
- package/dist/stories/Oolib/components/LegendRadioList.stories.js +1 -1
- package/dist/stories/v2/components/cards/CardContent.stories.d.ts +2 -3
- package/dist/stories/v2/components/cards/CardContent.stories.js +0 -1
- package/dist/stories/v2/components/cards/utils/cardArgTypes.d.ts +7 -8
- package/dist/stories/v2/components/cards/utils/cardArgTypes.js +2 -1
- package/dist/v2/components/ImagePlaceholder/index.d.ts +2 -1
- package/dist/v2/components/ImagePlaceholder/index.js +7 -6
- package/dist/v2/components/MetaBlock/index.js +1 -1
- package/dist/v2/components/Tags/utils/getTypoComp.js +0 -1
- package/dist/v2/components/Typo2/index.js +0 -2
- package/dist/v2/components/cards/CardContent/index.js +7 -6
- package/dist/v2/components/cards/CardContent/styled.js +19 -10
- package/dist/v2/themes/colors.d.ts +6 -0
- package/dist/v2/themes/colors.js +6 -0
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ var SliderShell = function (_a) {
|
|
|
48
48
|
(0, react_1.useEffect)(function () {
|
|
49
49
|
updateHeight();
|
|
50
50
|
window.addEventListener('resize', updateHeight);
|
|
51
|
-
console.log({ imageMinusCaptionHeight
|
|
51
|
+
// console.log({ imageMinusCaptionHeight, wrapperRef })
|
|
52
52
|
var intervalId = setInterval(function () {
|
|
53
53
|
// to avoid issues in cases where height is initally 0 because parent block has display:hidden condition on initial render
|
|
54
54
|
if (!isHeightSet) {
|
|
@@ -124,7 +124,6 @@ var ActionMenu = function (args) {
|
|
|
124
124
|
__assign({ display: args.action3 }, (args.optionIcon3 ? { icon: args.optionIcon3, infoTooltip: args.tooltip && { text: "Tooltip Text" } } : {})),
|
|
125
125
|
];
|
|
126
126
|
args.M = args.buttonSize === 'M';
|
|
127
|
-
console.log({ nfaknjfasfs: args.invert });
|
|
128
127
|
return (react_1.default.createElement("div", { style: args.popOutOfOverflowHiddenParent
|
|
129
128
|
? { border: '2px solid lightgrey', height: '90vh', overflow: 'scroll' }
|
|
130
129
|
: {} },
|
|
@@ -55,7 +55,7 @@ var DatePicker_ = function (args) {
|
|
|
55
55
|
var handleDateChange = function (id, value) {
|
|
56
56
|
setSelectedDate(value);
|
|
57
57
|
};
|
|
58
|
-
console.log(selectedDate);
|
|
58
|
+
// console.log(selectedDate);
|
|
59
59
|
return (react_1.default.createElement("div", { style: {
|
|
60
60
|
width: '45vw',
|
|
61
61
|
height: '95vh',
|
|
@@ -94,7 +94,7 @@ var DateRangePicker_ = function (args) {
|
|
|
94
94
|
var _a = (0, react_1.useState)([]), dateRange = _a[0], setDateRange = _a[1];
|
|
95
95
|
var handleDateRangeChange = function (id, newValue) {
|
|
96
96
|
setDateRange(newValue);
|
|
97
|
-
console.log(dateRange)
|
|
97
|
+
// console.log(dateRange)
|
|
98
98
|
};
|
|
99
99
|
return (react_1.default.createElement("div", { style: {
|
|
100
100
|
width: '45vw',
|
|
@@ -136,7 +136,7 @@ exports.DateRangePicker_.args = {
|
|
|
136
136
|
};
|
|
137
137
|
var TimePicker = function (args) {
|
|
138
138
|
var _a = (0, react_1.useState)(), value = _a[0], setValue = _a[1];
|
|
139
|
-
console.log({
|
|
139
|
+
// console.log({value: value})
|
|
140
140
|
return (react_1.default.createElement("div", { style: {
|
|
141
141
|
width: '45vw',
|
|
142
142
|
height: '95vh',
|
|
@@ -164,7 +164,7 @@ exports.TimePicker.argTypes = {
|
|
|
164
164
|
};
|
|
165
165
|
var TimeRangePicker = function (args) {
|
|
166
166
|
var _a = (0, react_1.useState)(), selectedTimes = _a[0], setSelectedTimes = _a[1];
|
|
167
|
-
console.log({
|
|
167
|
+
// console.log({selectedTimes: selectedTimes})
|
|
168
168
|
return (react_1.default.createElement("div", { style: {
|
|
169
169
|
width: '45vw',
|
|
170
170
|
height: '95vh',
|
|
@@ -195,7 +195,7 @@ var DateTimePicker = function (args) {
|
|
|
195
195
|
var handleOnChange = function (id, value, props) {
|
|
196
196
|
setSelectedValue(value);
|
|
197
197
|
};
|
|
198
|
-
console.log({
|
|
198
|
+
// console.log({selectedValue: selectedValue})
|
|
199
199
|
return (react_1.default.createElement("div", { style: {
|
|
200
200
|
width: '45vw',
|
|
201
201
|
height: '95vh',
|
|
@@ -231,7 +231,7 @@ exports.DateTimePicker.argTypes = {
|
|
|
231
231
|
};
|
|
232
232
|
var DateTimeRangePicker = function (args) {
|
|
233
233
|
var _a = (0, react_1.useState)(), selectedValue = _a[0], setSelectedValue = _a[1];
|
|
234
|
-
console.log({
|
|
234
|
+
// console.log({selectedValue: selectedValue})
|
|
235
235
|
return (react_1.default.createElement("div", { style: {
|
|
236
236
|
width: '45vw',
|
|
237
237
|
height: '95vh',
|
|
@@ -26,7 +26,7 @@ exports.default = {
|
|
|
26
26
|
};
|
|
27
27
|
var _GroupQuestionsInputSingle = function (args) {
|
|
28
28
|
var _a = (0, react_1.useState)({}), value = _a[0], setValue = _a[1];
|
|
29
|
-
console.log({ valueParent: value })
|
|
29
|
+
// console.log({ valueParent: value })
|
|
30
30
|
return (React.createElement("div", { style: { background: args.invert ? themes_1.colors.greyColor100 : '' } },
|
|
31
31
|
React.createElement("div", { style: args.popOutOfOverflowHiddenParent
|
|
32
32
|
? { border: '2px solid lightgrey', height: '100%', width: '100%', overflow: 'scroll' }
|
|
@@ -56,7 +56,7 @@ var legendOptions = [
|
|
|
56
56
|
];
|
|
57
57
|
var LegendRadioList_ = function (args) {
|
|
58
58
|
var _a = (0, react_1.useState)(legendOptions[0]), selectedValue = _a[0], setSelectedValue = _a[1];
|
|
59
|
-
console.log({
|
|
59
|
+
// console.log({selectedValue: args})
|
|
60
60
|
return (React.createElement("div", { style: { width: "50svh", height: "50svh", display: "flex", alignItems: 'center', justifyContent: "center" } },
|
|
61
61
|
React.createElement(LegendRadioList_1.LegendRadioList, __assign({ options: legendOptions, onChange: function (k, v) { return setSelectedValue(v); }, value: selectedValue }, args))));
|
|
62
62
|
};
|
|
@@ -31,7 +31,6 @@ exports.default = {
|
|
|
31
31
|
};
|
|
32
32
|
var CardContent = function (args) {
|
|
33
33
|
var props = (0, parseCardArgs_1.parseCardArgs)(args);
|
|
34
|
-
console.log({ propscardcontent: props });
|
|
35
34
|
return (react_1.default.createElement(Container_1.Container, null,
|
|
36
35
|
react_1.default.createElement(Paddings_1.PaddingTopBottom30, null,
|
|
37
36
|
react_1.default.createElement(WrapperCardGrid_1.WrapperCardGrid, null,
|
|
@@ -81,18 +81,17 @@ export namespace cardContentArgTypes {
|
|
|
81
81
|
namespace highlight {
|
|
82
82
|
let name_8: string;
|
|
83
83
|
export { name_8 as name };
|
|
84
|
-
|
|
85
|
-
let type_1: string;
|
|
86
|
-
export { type_1 as type };
|
|
87
|
-
}
|
|
84
|
+
let control_8: string;
|
|
88
85
|
export { control_8 as control };
|
|
86
|
+
let options_1: string[];
|
|
87
|
+
export { options_1 as options };
|
|
89
88
|
}
|
|
90
89
|
namespace desc {
|
|
91
90
|
let name_9: string;
|
|
92
91
|
export { name_9 as name };
|
|
93
92
|
export namespace control_9 {
|
|
94
|
-
let
|
|
95
|
-
export {
|
|
93
|
+
let type_1: string;
|
|
94
|
+
export { type_1 as type };
|
|
96
95
|
}
|
|
97
96
|
export { control_9 as control };
|
|
98
97
|
}
|
|
@@ -101,7 +100,7 @@ export namespace cardContentArgTypes {
|
|
|
101
100
|
export { name_10 as name };
|
|
102
101
|
let control_10: string;
|
|
103
102
|
export { control_10 as control };
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
103
|
+
let options_2: string[];
|
|
104
|
+
export { options_2 as options };
|
|
106
105
|
}
|
|
107
106
|
}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ImagePlaceholder = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
7
8
|
var gradient_background_jpg_1 = __importDefault(require("../../../assets/images/gradient_background.jpg"));
|
|
8
9
|
var styled_1 = require("./styled");
|
|
9
10
|
var ImagePlaceholder = function (_a) {
|
|
@@ -21,11 +22,11 @@ var ImagePlaceholder = function (_a) {
|
|
|
21
22
|
var randomColor = colors[Math.floor(Math.random() * colors.length)];
|
|
22
23
|
randomColor += '80'; // to convert to RGBA format for 50% opacity
|
|
23
24
|
var firstLetter = title.charAt(0).toUpperCase();
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
return (react_1.default.createElement(styled_1.StyledContainer, { aspectRatio: aspectRatio },
|
|
26
|
+
react_1.default.createElement(styled_1.StyledImageLayer, null,
|
|
27
|
+
react_1.default.createElement(styled_1.StyledImage, { src: gradient_background_jpg_1.default, alt: title })),
|
|
28
|
+
react_1.default.createElement(styled_1.StyledColorOverlay, { color: randomColor }),
|
|
29
|
+
react_1.default.createElement(styled_1.StyledLetterContainer, null,
|
|
30
|
+
react_1.default.createElement(styled_1.StyledLetter, null, firstLetter))));
|
|
30
31
|
};
|
|
31
32
|
exports.ImagePlaceholder = ImagePlaceholder;
|
|
@@ -37,7 +37,7 @@ var OKELink_1 = require("../../../components/OKELink");
|
|
|
37
37
|
var parseMetaBlockConfig_1 = require("./utils/parseMetaBlockConfig");
|
|
38
38
|
var utilsOolib_1 = require("../../../utilsOolib");
|
|
39
39
|
var grey40 = colors_1.colors.grey40, grey50 = colors_1.colors.grey50, grey90 = colors_1.colors.grey90;
|
|
40
|
-
var StyledHorOrientContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap:
|
|
40
|
+
var StyledHorOrientContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 0.6rem;\n flex-wrap: wrap;\n ", "\n"], ["\n display: flex;\n align-items: center;\n gap: 0.6rem;\n flex-wrap: wrap;\n ", "\n"])), function (_a) {
|
|
41
41
|
var align = _a.align;
|
|
42
42
|
return align === "center" && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
43
43
|
});
|
|
@@ -28,7 +28,6 @@ exports.STYLED_ELLIPSIS_UI_CAPTION = (0, styled_components_1.default)(Typo2_1.UI
|
|
|
28
28
|
var getTypoComp = function (_a) {
|
|
29
29
|
var _b = _a.typo, typo = _b === void 0 ? "tag" : _b;
|
|
30
30
|
return function (props) {
|
|
31
|
-
console.log({ typo: typo });
|
|
32
31
|
return (typo === "caption"
|
|
33
32
|
? react_1.default.createElement(exports.STYLED_ELLIPSIS_UI_CAPTION, __assign({}, props))
|
|
34
33
|
: react_1.default.createElement(exports.STYLED_ELLIPSIS_UI_TAG, __assign({}, props)));
|
|
@@ -61,11 +61,9 @@ var genFontStylingProps = function (props) {
|
|
|
61
61
|
var GenComp = function (_a) {
|
|
62
62
|
var props = _a.props, Comp = _a.Comp;
|
|
63
63
|
var localize = (0, utilsOolib_1.useLocale)();
|
|
64
|
-
console.log({ props: props });
|
|
65
64
|
var value = props.value, suffix = props.suffix, color = props.color, children = props.children, theme = props.theme, style = props.style, className = props.className, restProps = __rest(props, ["value", "suffix", "color", "children", "theme", "style", "className"]);
|
|
66
65
|
var displayText = children || value;
|
|
67
66
|
var localText = localize(displayText);
|
|
68
|
-
console.log({ kljnflkajnfasF: genFontStylingProps(restProps) });
|
|
69
67
|
return (react_1.default.createElement(Comp, __assign({}, genFontStylingProps(restProps), { color: color, className: className, style: style }),
|
|
70
68
|
localText,
|
|
71
69
|
" ",
|
|
@@ -22,7 +22,7 @@ var themes_1 = require("../../../themes");
|
|
|
22
22
|
var Tags_1 = require("../../Tags");
|
|
23
23
|
var styled_2 = require("./styled");
|
|
24
24
|
var ImagePlaceholder_1 = require("../../ImagePlaceholder");
|
|
25
|
-
var Star = icons_1.icons.Star;
|
|
25
|
+
var Star = icons_1.icons.Star, CrownSimple = icons_1.icons.CrownSimple;
|
|
26
26
|
var success = themes_1.colors.success, white = themes_1.colors.white;
|
|
27
27
|
var CardLabelTag = function (_a) {
|
|
28
28
|
var label = _a.label, isEmbedPresent = _a.isEmbedPresent, isHighlightPresent = _a.isHighlightPresent;
|
|
@@ -31,12 +31,12 @@ var CardLabelTag = function (_a) {
|
|
|
31
31
|
};
|
|
32
32
|
var StatusTag = function (_a) {
|
|
33
33
|
var display = _a.display, isEmbedPresent = _a.isEmbedPresent, isHighlightPresent = _a.isHighlightPresent, statusTagVariant = _a.statusTagVariant;
|
|
34
|
-
console.log({ statusTagVariant: statusTagVariant });
|
|
35
34
|
return display ? (react_1.default.createElement(styled_2.StyledStatusTagWrapper, { isEmbedPresent: isEmbedPresent, isHighlightPresent: isHighlightPresent },
|
|
36
35
|
react_1.default.createElement(Tags_1.TagDisplay, { display: display, XS: true, variant: statusTagVariant || "positive" }))) : null;
|
|
37
36
|
};
|
|
38
37
|
var CardContent = function (_a) {
|
|
39
|
-
var id = _a.id, data = _a.data, config = _a.config, to = _a.to, onClick = _a.onClick, openInNewTab = _a.openInNewTab, highlight = _a.highlight,
|
|
38
|
+
var id = _a.id, data = _a.data, config = _a.config, to = _a.to, onClick = _a.onClick, openInNewTab = _a.openInNewTab, highlight = _a.highlight, // primary | secondary
|
|
39
|
+
statusTagVariant = _a.statusTagVariant;
|
|
40
40
|
var theme = (0, styled_components_1.useTheme)();
|
|
41
41
|
var localize = (0, utilsOolib_1.useLocale)();
|
|
42
42
|
var parseSpecialSyntax = (theme || {}).parseSpecialSyntax;
|
|
@@ -50,6 +50,7 @@ var CardContent = function (_a) {
|
|
|
50
50
|
if (dontRenderRes)
|
|
51
51
|
return dontRenderRes;
|
|
52
52
|
var _c = (0, decideLinkCompAndTarget_1.decideLinkCompAndTarget)({ to: to, openInNewTab: openInNewTab }), LinkComp = _c.LinkComp, target = _c.target;
|
|
53
|
+
var HighLightIcon = highlight === 'secondary' ? Star : CrownSimple;
|
|
53
54
|
return (react_1.default.createElement(LinkComp, { target: target, href: (0, injectHttps_1.injectHttps)(to), to: to },
|
|
54
55
|
react_1.default.createElement(styled_2.StyledCardWrapper, { id: id, highlight: highlight, onClick: onClick ? function (e) { return onClick(e, data); } : undefined },
|
|
55
56
|
showEmbedSection ? (react_1.default.createElement(styled_2.StyledEmbedSection, null,
|
|
@@ -59,10 +60,10 @@ var CardContent = function (_a) {
|
|
|
59
60
|
react_1.default.createElement("div", { style: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' } }))) : (react_1.default.createElement(ImagePlaceholder_1.ImagePlaceholder, { title: title })))) : (react_1.default.createElement(styled_2.StyledCardLabelAndStatusTagWrapper, null,
|
|
60
61
|
react_1.default.createElement(CardLabelTag, { label: cardLabel, isEmbedPresent: showEmbedSection, isHighlightPresent: highlight }),
|
|
61
62
|
react_1.default.createElement(StatusTag, { display: tagDisplay, isEmbedPresent: showEmbedSection, isHighlightPresent: highlight, statusTagVariant: statusTagVariant }))),
|
|
62
|
-
highlight && react_1.default.createElement(styled_2.StyledStarWrapper,
|
|
63
|
-
react_1.default.createElement(
|
|
63
|
+
highlight && react_1.default.createElement(styled_2.StyledStarWrapper, { highlight: highlight },
|
|
64
|
+
react_1.default.createElement(HighLightIcon, { size: 18, color: white, weight: "fill", style: { filter: "drop-shadow(0px 2px 8.2px rgba(0, 0, 0, 0.50 ))" } })),
|
|
64
65
|
showEmbedSection && (react_1.default.createElement(StatusTag, { display: tagDisplay, isEmbedPresent: showEmbedSection, isHighlightPresent: highlight, statusTagVariant: statusTagVariant })),
|
|
65
|
-
title ? (react_1.default.createElement(styled_2.StyledTitleWrapper,
|
|
66
|
+
title ? (react_1.default.createElement(styled_2.StyledTitleWrapper, { highlight: highlight, showEmbedSection: showEmbedSection },
|
|
66
67
|
react_1.default.createElement(LineClampWrapper_1.LineClampWrapper, { noOfLines_M: 6 },
|
|
67
68
|
react_1.default.createElement(styled_1.StyledTitle, { capitalize: true, className: "StyledTitle" }, localize(title))))) : null,
|
|
68
69
|
description ? (react_1.default.createElement(styled_2.StyledDescription, null,
|
|
@@ -11,26 +11,35 @@ exports.StyledMetaBlockWrapper = exports.StyledStarWrapper = exports.StyledStatu
|
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var colors_1 = require("../../../themes/colors");
|
|
13
13
|
var Typo2_1 = require("../../Typo2");
|
|
14
|
-
var white = colors_1.colors.white, grey10 = colors_1.colors.grey10, grey50 = colors_1.colors.grey50, grey60 = colors_1.colors.grey60, yellowBG = colors_1.colors.yellowBG, yellowStroke = colors_1.colors.yellowStroke, shadowDefault = colors_1.colors.shadowDefault, shadowHover = colors_1.colors.shadowHover, yellow = colors_1.colors.yellow;
|
|
14
|
+
var white = colors_1.colors.white, grey10 = colors_1.colors.grey10, grey50 = colors_1.colors.grey50, grey60 = colors_1.colors.grey60, yellowBG = colors_1.colors.yellowBG, yellowStroke = colors_1.colors.yellowStroke, shadowDefault = colors_1.colors.shadowDefault, shadowHover = colors_1.colors.shadowHover, yellow = colors_1.colors.yellow, meadow = colors_1.colors.meadow, meadowBG = colors_1.colors.meadowBG, meadowStroke = colors_1.colors.meadowStroke;
|
|
15
15
|
exports.StyledEmbedSection = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n max-height: 182px;\n width: 100%;\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n"], ["\n max-height: 182px;\n width: 100%;\n border-radius: 4px;\n overflow: hidden;\n display: flex;\n align-items: center;\n margin-bottom: 8px;\n"])));
|
|
16
|
-
exports.StyledCardWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n cursor: pointer;\n position: relative;\n padding: 12px;\n width: 100%;\n max-width: 450px
|
|
16
|
+
exports.StyledCardWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n cursor: pointer;\n position: relative;\n padding: 12px;\n width: 100%;\n /* max-width: 450px; */\n border-radius: 8px;\n box-shadow: 0px 4px 10px 0px ", ";\n \n &:hover {\n border: ", ";\n box-shadow: 0px 4px 10px 0px ", ";\n }\n"], ["\n height: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n cursor: pointer;\n position: relative;\n padding: 12px;\n width: 100%;\n /* max-width: 450px; */\n border-radius: 8px;\n box-shadow: 0px 4px 10px 0px ", ";\n \n &:hover {\n border: ", ";\n box-shadow: 0px 4px 10px 0px ", ";\n }\n"])), function (_a) {
|
|
17
17
|
var highlight = _a.highlight;
|
|
18
|
-
return highlight ? yellowStroke : grey10;
|
|
18
|
+
return highlight === "secondary" ? yellowStroke : highlight === "primary" ? meadowStroke : grey10;
|
|
19
19
|
}, function (_a) {
|
|
20
20
|
var highlight = _a.highlight;
|
|
21
|
-
return highlight ? yellowBG : white;
|
|
22
|
-
}, shadowDefault,
|
|
23
|
-
|
|
21
|
+
return highlight === "secondary" ? yellowBG : highlight === "primary" ? meadowBG : white;
|
|
22
|
+
}, shadowDefault, function (_a) {
|
|
23
|
+
var highlight = _a.highlight;
|
|
24
|
+
return highlight === 'secondary' ? "1px solid ".concat(yellow) : highlight === 'primary' ? "1px solid ".concat(meadow) : "1px solid ".concat(grey50);
|
|
25
|
+
}, shadowHover);
|
|
26
|
+
exports.StyledTitleWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n gap: 0.5rem;\n margin-bottom: 4px;\n width: ", " ; // 3.6rem is the width of the star wrapper, this condition avoids title from being cutoff\n"], ["\n display: flex;\n gap: 0.5rem;\n margin-bottom: 4px;\n width: ", " ; // 3.6rem is the width of the star wrapper, this condition avoids title from being cutoff\n"])), function (_a) {
|
|
27
|
+
var highlight = _a.highlight, showEmbedSection = _a.showEmbedSection;
|
|
28
|
+
return (highlight && !showEmbedSection) ? "calc(100% - 3.6rem)" : '100%';
|
|
29
|
+
});
|
|
24
30
|
exports.StyledDescription = (0, styled_components_1.default)(Typo2_1.UI_BODY_SM)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: 6px;\n color: ", ";\n"], ["\n margin-bottom: 6px;\n color: ", ";\n"])), grey60);
|
|
25
|
-
exports.StyledCardLabelAndStatusTagWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n gap: 0 6px;\n margin-bottom: -2px;\n"], ["\n display: flex;\n gap: 0 6px;\n margin-bottom: -2px;\n"])));
|
|
26
|
-
exports.StyledCardLabelWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: ", ";\n margin-bottom: 8px;\n max-width: ", "
|
|
31
|
+
exports.StyledCardLabelAndStatusTagWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n gap: 0 6px;\n margin-bottom: -2px;\n /* width: 100%; */\n /* overflow: hidden; */\n"], ["\n display: flex;\n gap: 0 6px;\n margin-bottom: -2px;\n /* width: 100%; */\n /* overflow: hidden; */\n"])));
|
|
32
|
+
exports.StyledCardLabelWrapper = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: ", ";\n margin-bottom: 8px;\n /* max-width: ", "; */\n top: 12px;\n left: 12px;\n z-index: 10;\n backdrop-filter: blur(10px);\n border-radius: 4px;\n"], ["\n position: ", ";\n margin-bottom: 8px;\n /* max-width: ", "; */\n top: 12px;\n left: 12px;\n z-index: 10;\n backdrop-filter: blur(10px);\n border-radius: 4px;\n"])), function (_a) {
|
|
27
33
|
var isEmbedPresent = _a.isEmbedPresent;
|
|
28
34
|
return isEmbedPresent ? "absolute" : "static";
|
|
29
35
|
}, function (_a) {
|
|
30
36
|
var isEmbedPresent = _a.isEmbedPresent;
|
|
31
37
|
return isEmbedPresent ? "38%" : "40%";
|
|
32
38
|
});
|
|
33
|
-
exports.StyledStatusTagWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-bottom: 8px;\n max-width: 40
|
|
34
|
-
exports.StyledStarWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width:
|
|
39
|
+
exports.StyledStatusTagWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-bottom: 8px;\n /* max-width: 40%; */\n"], ["\n margin-bottom: 8px;\n /* max-width: 40%; */\n"])));
|
|
40
|
+
exports.StyledStarWrapper = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: 3.6rem;\n height: 3.6rem;\n position: absolute;\n top: 1.2rem;\n right: 1.2rem;\n z-index: 10;\n display: flex; \n justify-content: center;\n align-items: center;\n padding: 7px;\n background-color: ", "; \n border-radius: 4px;\n"], ["\n width: 3.6rem;\n height: 3.6rem;\n position: absolute;\n top: 1.2rem;\n right: 1.2rem;\n z-index: 10;\n display: flex; \n justify-content: center;\n align-items: center;\n padding: 7px;\n background-color: ", "; \n border-radius: 4px;\n"])), function (_a) {
|
|
41
|
+
var highlight = _a.highlight;
|
|
42
|
+
return highlight === "secondary" ? yellow : highlight === "primary" ? meadow : white;
|
|
43
|
+
});
|
|
35
44
|
exports.StyledMetaBlockWrapper = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n"], ["\n color: ", ";\n font-family: ", ";\n"])), grey50, Typo2_1.UI_CAPTION);
|
|
36
45
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -32,6 +32,9 @@ export declare const colors: {
|
|
|
32
32
|
purple: string;
|
|
33
33
|
shadowDefault: string;
|
|
34
34
|
shadowHover: string;
|
|
35
|
+
meadow: string;
|
|
36
|
+
meadowBG: string;
|
|
37
|
+
meadowStroke: string;
|
|
35
38
|
};
|
|
36
39
|
export interface Colors2Type {
|
|
37
40
|
primary: string;
|
|
@@ -60,4 +63,7 @@ export interface Colors2Type {
|
|
|
60
63
|
success: string;
|
|
61
64
|
hintHover: string;
|
|
62
65
|
hint: string;
|
|
66
|
+
meadow: string;
|
|
67
|
+
meadowBG: string;
|
|
68
|
+
meadowStroke: string;
|
|
63
69
|
}
|
package/dist/v2/themes/colors.js
CHANGED
|
@@ -38,6 +38,9 @@ var shadowDefault = "#0000000f";
|
|
|
38
38
|
var shadowHover = "#0000001f";
|
|
39
39
|
var hintHover = "#F4E8C3";
|
|
40
40
|
var hint = "#B77222";
|
|
41
|
+
var meadow = '#1DBC8C';
|
|
42
|
+
var meadowBG = '#E4FFF7';
|
|
43
|
+
var meadowStroke = '#C3E5DB';
|
|
41
44
|
exports.colors = {
|
|
42
45
|
primary: primary,
|
|
43
46
|
secondary: secondary,
|
|
@@ -72,4 +75,7 @@ exports.colors = {
|
|
|
72
75
|
purple: purple,
|
|
73
76
|
shadowDefault: shadowDefault,
|
|
74
77
|
shadowHover: shadowHover,
|
|
78
|
+
meadow: meadow,
|
|
79
|
+
meadowBG: meadowBG,
|
|
80
|
+
meadowStroke: meadowStroke
|
|
75
81
|
};
|