oolib 2.122.0 → 2.122.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.
|
@@ -9,12 +9,12 @@ var icons_1 = require("../../icons");
|
|
|
9
9
|
var themes_1 = require("../../themes");
|
|
10
10
|
var App = function (_a) {
|
|
11
11
|
var invert = _a.invert;
|
|
12
|
-
var Inspiring = icons_1.icons.Inspiring, Celebrate = icons_1.icons.Celebrate, Learning = icons_1.icons.Learning,
|
|
12
|
+
var Inspiring = icons_1.icons.Inspiring, Celebrate = icons_1.icons.Celebrate, Learning = icons_1.icons.Learning, Like = icons_1.icons.Like;
|
|
13
13
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
14
14
|
react_1.default.createElement(Celebrate, { size: 24, weight: "fill" }),
|
|
15
15
|
react_1.default.createElement(Inspiring, { size: 24, weight: "fill" }),
|
|
16
16
|
react_1.default.createElement(Learning, { size: 24, weight: "fill" }),
|
|
17
|
-
react_1.default.createElement(
|
|
17
|
+
react_1.default.createElement(Like, { size: 24, weight: "fill" })));
|
|
18
18
|
};
|
|
19
19
|
var Playground = function (_a) {
|
|
20
20
|
var invert = _a.invert;
|
|
@@ -25,20 +25,20 @@ var icons_1 = require("../../../icons");
|
|
|
25
25
|
var Tags_1 = require("../../Tags");
|
|
26
26
|
var CrownSimple = icons_1.icons.CrownSimple;
|
|
27
27
|
var CardContent = function (_a) {
|
|
28
|
-
var _b, _c;
|
|
28
|
+
var _b, _c, _d;
|
|
29
29
|
var id = _a.id, data = _a.data, config = _a.config, to = _a.to, onClick = _a.onClick, openInNewTab = _a.openInNewTab, actions = _a.actions;
|
|
30
30
|
var theme = (0, styled_components_1.useTheme)();
|
|
31
31
|
var parseSpecialSyntax = (theme || {}).parseSpecialSyntax;
|
|
32
32
|
var showEmbedSection = !!((config === null || config === void 0 ? void 0 : config.image) || (config === null || config === void 0 ? void 0 : config.video));
|
|
33
|
-
var
|
|
33
|
+
var _e = (0, parseCardConfig_1.parseCardConfig)({
|
|
34
34
|
config: config,
|
|
35
35
|
data: data,
|
|
36
36
|
parseSpecialSyntax: parseSpecialSyntax
|
|
37
|
-
}), cardLabel =
|
|
37
|
+
}), cardLabel = _e.cardLabel, title = _e.title, video = _e.video, image = _e.image, metaBlock = _e.metaBlock, tagDisplay = _e.tagDisplay, variant = _e.variant;
|
|
38
38
|
var dontRenderRes = (0, dontRenderIfBothOnClickAndTo_1.dontRenderIfBothOnClickAndTo)({ onClick: onClick, to: to });
|
|
39
39
|
if (dontRenderRes)
|
|
40
40
|
return dontRenderRes;
|
|
41
|
-
var
|
|
41
|
+
var _f = (0, decideLinkCompAndTarget_1.decideLinkCompAndTarget)({ to: to, openInNewTab: openInNewTab }), LinkComp = _f.LinkComp, target = _f.target, externalUrl = _f.externalUrl;
|
|
42
42
|
return (react_1.default.createElement(LinkComp, { target: target, href: (0, injectHttps_1.injectHttps)(to), to: to },
|
|
43
43
|
react_1.default.createElement(styled_2.StyledCardWrapper, { id: id, variant: variant, onClick: onClick ? function (e) { return onClick(e, data); } : undefined },
|
|
44
44
|
(variant === "success") && react_1.default.createElement(styled_2.StyledCrownWrapper, null,
|
|
@@ -62,7 +62,7 @@ var CardContent = function (_a) {
|
|
|
62
62
|
react_1.default.createElement(LineClampWrapper_1.LineClampWrapper, { noOfLines_M: 6, title: title },
|
|
63
63
|
react_1.default.createElement(styled_1.StyledTitle, { capitalize: true, className: "StyledTitle" },
|
|
64
64
|
react_1.default.createElement(styled_1.StyledTitleSpan, { className: "StyledTitleSpan" }, title))))) : null),
|
|
65
|
-
tagDisplay && react_1.default.createElement(Tags_1.TagLink, { display: Array.isArray(tagDisplay.data) ? (
|
|
65
|
+
((Array.isArray(tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.data) && ((_b = tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.data) === null || _b === void 0 ? void 0 : _b.length) > 0) || typeof tagDisplay === "string") && react_1.default.createElement(Tags_1.TagLink, { display: Array.isArray(tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.data) ? (_c = tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.data[0]) === null || _c === void 0 ? void 0 : _c.display : tagDisplay, to: (tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.collectionId) ? "/published-page/".concat(tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.collectionId, "?id=").concat((_d = tagDisplay === null || tagDisplay === void 0 ? void 0 : tagDisplay.data[0]) === null || _d === void 0 ? void 0 : _d._id) : "#", color: "green" }),
|
|
66
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
67
|
) : null),
|
|
68
68
|
showEmbedSection && (react_1.default.createElement(styled_2.StyledEmbedSection, null,
|
|
@@ -66,3 +66,4 @@ export declare const Stars: (props: any) => React.JSX.Element;
|
|
|
66
66
|
export declare const Celebrate: (props: any) => React.JSX.Element;
|
|
67
67
|
export declare const Inspiring: (props: any) => React.JSX.Element;
|
|
68
68
|
export declare const Learning: (props: any) => React.JSX.Element;
|
|
69
|
+
export declare const Like: (props: any) => React.JSX.Element;
|
|
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.USAFlag = exports.UKFlag = exports.MalaysiaFlag = exports.ColombiaFlag = exports.BrazilFlag = exports.AudioEmbedIcon = exports.VideoEmbedIcon = exports.Attachment2 = exports.PDFIcon = exports.RichFormatToolOrderedList = exports.RichFormatToolUnorderedList = exports.RichFormatToolH2 = exports.RichFormatToolBlockquote = exports.LinkIcon = exports.UnderlineBtn = exports.ItalicBtn = exports.BoldBtn = exports.SettingsSM = exports.Close_S = exports.UploadImage = exports.KebabMenu = exports.Website_solid_SM = exports.Phone_solid_SM = exports.Mail_solid_SM = exports.Youtube_solid_SM = exports.Instagram_solid_SM = exports.Twitter_solid_SM = exports.Linkedin_solid_SM = exports.Facebook_solid_SM = exports.EditSM = exports.AddXS = exports.UploadSM = exports.Download = exports.Download__nofill = exports.Index = exports.Person14 = exports.Location14 = exports.ModalBulbIcon = exports.KenyaFlag = exports.NigeriaFlag = exports.IndiaFlag = exports.BadgeVetted = exports.BadgeMod = exports.BadgeSuperAdmin = exports.BadgeAdmin = exports.OkeGoogleIcon = exports.LetterH = exports.LanguageIcon = exports.MultipleImages = exports.IndexIcon = void 0;
|
|
18
|
-
exports.Learning = exports.Inspiring = exports.Celebrate = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = void 0;
|
|
18
|
+
exports.Like = exports.Learning = exports.Inspiring = exports.Celebrate = exports.Stars = exports.SpainFlag = exports.PakistanFlag = exports.ChileFlag = exports.IndonesiaFlag = void 0;
|
|
19
19
|
var react_1 = __importDefault(require("react"));
|
|
20
20
|
var themes_1 = require("../../themes");
|
|
21
21
|
var DisplayIcon_1 = require("../../utils/comps/DisplayIcon");
|
|
@@ -449,3 +449,13 @@ var Learning = function (props) {
|
|
|
449
449
|
react_1.default.createElement("path", { d: "M20.3571 7.00065H14.5714C14.0724 7.00065 13.5803 7.12113 13.134 7.35254C12.6876 7.58396 12.2994 7.91995 12 8.33392C11.7006 7.91995 11.3124 7.58396 10.866 7.35254C10.4197 7.12113 9.92757 7.00065 9.42857 7.00065H3.64286C3.47236 7.00065 3.30885 7.07088 3.18829 7.1959C3.06773 7.32092 3 7.49048 3 7.66728V17.6668C3 17.8436 3.06773 18.0132 3.18829 18.1382C3.30885 18.2632 3.47236 18.3335 3.64286 18.3335H9.42857C9.94006 18.3335 10.4306 18.5442 10.7923 18.9192C11.154 19.2943 11.3571 19.803 11.3571 20.3334C11.3571 20.5102 11.4249 20.6797 11.5454 20.8047C11.666 20.9298 11.8295 21 12 21C12.1705 21 12.334 20.9298 12.4546 20.8047C12.5751 20.6797 12.6429 20.5102 12.6429 20.3334C12.6429 19.803 12.846 19.2943 13.2077 18.9192C13.5694 18.5442 14.0599 18.3335 14.5714 18.3335H20.3571C20.5276 18.3335 20.6912 18.2632 20.8117 18.1382C20.9323 18.0132 21 17.8436 21 17.6668V7.66728C21 7.49048 20.9323 7.32092 20.8117 7.1959C20.6912 7.07088 20.5276 7.00065 20.3571 7.00065ZM9.42857 17.0002H4.28571V8.33392H9.42857C9.94006 8.33392 10.4306 8.54462 10.7923 8.91968C11.154 9.29473 11.3571 9.80342 11.3571 10.3338V17.6668C10.8013 17.2331 10.1242 16.999 9.42857 17.0002ZM19.7143 17.0002H14.5714C13.8758 16.999 13.1987 17.2331 12.6429 17.6668V10.3338C12.6429 9.80342 12.846 9.29473 13.2077 8.91968C13.5694 8.54462 14.0599 8.33392 14.5714 8.33392H19.7143V17.0002ZM8.91429 4.59993C9.27357 4.10316 9.73945 3.69997 10.275 3.42227C10.8106 3.14457 11.4012 3 12 3C12.5988 3 13.1894 3.14457 13.725 3.42227C14.2606 3.69997 14.7264 4.10316 15.0857 4.59993C15.1882 4.74126 15.2324 4.91903 15.2085 5.09413C15.1846 5.26924 15.0946 5.42733 14.9583 5.53363C14.8221 5.63994 14.6506 5.68574 14.4818 5.66097C14.3129 5.6362 14.1605 5.54289 14.0579 5.40156C13.8185 5.07006 13.5078 4.80099 13.1506 4.61565C12.7934 4.43032 12.3994 4.33383 12 4.33383C11.6006 4.33383 11.2066 4.43032 10.8494 4.61565C10.4922 4.80099 10.1815 5.07006 9.94205 5.40156C9.8913 5.47154 9.82774 5.53046 9.75502 5.57497C9.6823 5.61948 9.60184 5.64871 9.51823 5.66097C9.43462 5.67324 9.3495 5.6683 9.26773 5.64645C9.18596 5.62461 9.10914 5.58627 9.04165 5.53363C8.97417 5.481 8.91734 5.41509 8.87442 5.33968C8.8315 5.26427 8.80332 5.18084 8.79149 5.09413C8.77966 5.00743 8.78442 4.91916 8.80549 4.83437C8.82656 4.74957 8.86353 4.66991 8.91429 4.59993Z", fill: "#EB5A51" })));
|
|
450
450
|
};
|
|
451
451
|
exports.Learning = Learning;
|
|
452
|
+
var Like = function (props) {
|
|
453
|
+
return (react_1.default.createElement("svg", { width: props.size || 30, height: props.size || 30, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
454
|
+
react_1.default.createElement("g", { "clip-path": "url(#clip0_190_4242)" },
|
|
455
|
+
react_1.default.createElement("path", { d: "M20.2813 8.25938C20.1053 8.05994 19.8888 7.90023 19.6464 7.79086C19.4039 7.68148 19.141 7.62495 18.875 7.625H14.5V6.375C14.5 5.5462 14.1708 4.75134 13.5847 4.16529C12.9987 3.57924 12.2038 3.25 11.375 3.25C11.2589 3.24992 11.145 3.28218 11.0462 3.34317C10.9474 3.40417 10.8676 3.49148 10.8156 3.59531L7.86406 9.5H4.5C4.16848 9.5 3.85054 9.6317 3.61612 9.86612C3.3817 10.1005 3.25 10.4185 3.25 10.75V17.625C3.25 17.9565 3.3817 18.2745 3.61612 18.5089C3.85054 18.7433 4.16848 18.875 4.5 18.875H17.9375C18.3943 18.8752 18.8354 18.7085 19.1781 18.4065C19.5208 18.1044 19.7413 17.6876 19.7984 17.2344L20.7359 9.73438C20.7692 9.47033 20.7458 9.20224 20.6674 8.94792C20.589 8.6936 20.4574 8.45888 20.2813 8.25938ZM4.5 10.75H7.625V17.625H4.5V10.75Z", fill: props.weight === "fill" ? "#C0CFF7" : "" }),
|
|
456
|
+
react_1.default.createElement("path", { d: "M20.2813 8.25938C20.1053 8.05994 19.8888 7.90023 19.6464 7.79086C19.4039 7.68148 19.141 7.62495 18.875 7.625H14.5V6.375C14.5 5.5462 14.1708 4.75134 13.5847 4.16529C12.9987 3.57924 12.2038 3.25 11.375 3.25C11.2589 3.24992 11.145 3.28218 11.0462 3.34317C10.9474 3.40417 10.8676 3.49148 10.8156 3.59531L7.86406 9.5H4.5C4.16848 9.5 3.85054 9.6317 3.61612 9.86612C3.3817 10.1005 3.25 10.4185 3.25 10.75V17.625C3.25 17.9565 3.3817 18.2745 3.61612 18.5089C3.85054 18.7433 4.16848 18.875 4.5 18.875H17.9375C18.3943 18.8752 18.8354 18.7085 19.1781 18.4065C19.5208 18.1044 19.7413 17.6876 19.7984 17.2344L20.7359 9.73438C20.7692 9.47033 20.7458 9.20224 20.6674 8.94792C20.589 8.6936 20.4574 8.45888 20.2813 8.25938ZM4.5 10.75H7.625V17.625H4.5V10.75ZM19.4953 9.57812L18.5578 17.0781C18.5388 17.2292 18.4653 17.3681 18.351 17.4688C18.2368 17.5695 18.0898 17.6251 17.9375 17.625H8.875V10.2727L11.743 4.53594C12.168 4.62101 12.5505 4.85075 12.8253 5.18605C13.1 5.52135 13.2501 5.9415 13.25 6.375V8.25C13.25 8.41576 13.3158 8.57473 13.4331 8.69194C13.5503 8.80915 13.7092 8.875 13.875 8.875H18.875C18.9637 8.87497 19.0514 8.89382 19.1322 8.93028C19.2131 8.96675 19.2852 9.02001 19.3439 9.08652C19.4026 9.15303 19.4464 9.23126 19.4725 9.31602C19.4986 9.40078 19.5064 9.49013 19.4953 9.57812Z", fill: "#3D71F7" })),
|
|
457
|
+
react_1.default.createElement("defs", null,
|
|
458
|
+
react_1.default.createElement("clipPath", { id: "clip0_190_4242" },
|
|
459
|
+
react_1.default.createElement("rect", { width: "20", height: "20", fill: "white", transform: "translate(2 2)" })))));
|
|
460
|
+
};
|
|
461
|
+
exports.Like = Like;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -168,6 +168,7 @@ export namespace icons {
|
|
|
168
168
|
export { Celebrate };
|
|
169
169
|
export { Inspiring };
|
|
170
170
|
export { Learning };
|
|
171
|
+
export { Like };
|
|
171
172
|
}
|
|
172
173
|
import { PencilSimple } from 'phosphor-react';
|
|
173
174
|
import { PencilLine } from 'phosphor-react';
|
|
@@ -338,3 +339,4 @@ import { Stars } from "./custom";
|
|
|
338
339
|
import { Celebrate } from "./custom";
|
|
339
340
|
import { Inspiring } from "./custom";
|
|
340
341
|
import { Learning } from "./custom";
|
|
342
|
+
import { Like } from "./custom";
|
package/dist/icons/index.js
CHANGED