oolib 2.97.0 → 2.98.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.
|
@@ -88,15 +88,7 @@ var Modal = function (_a) {
|
|
|
88
88
|
? react_1.default.createElement(Buttons_1.ButtonPrimary, { onClick: onConfirm }, onConfirmText) // In some cases we want to pass button directly to the component as prop
|
|
89
89
|
: onConfirm,
|
|
90
90
|
showCloseBtn && react_1.default.createElement(Buttons_1.ButtonGhost, { onClick: onClose }, onCloseText)))))); };
|
|
91
|
-
|
|
92
|
-
(0, react_1.useEffect)(function () {
|
|
93
|
-
window.addEventListener('resize', setScreenHeight(window.visualViewport.height));
|
|
94
|
-
return function () {
|
|
95
|
-
window.removeEventListener('resize', setScreenHeight(window.visualViewport.height));
|
|
96
|
-
};
|
|
97
|
-
}, []);
|
|
98
|
-
var isKeyboardOpen = window.visualViewport.height < screenHeight;
|
|
99
|
-
return ((0, react_dom_1.createPortal)(react_1.default.createElement(styled_1.StyledModalLargeBg, { style: { height: isKeyboardOpen ? 'auto' : '100svh', overflow: 'hidden' } },
|
|
91
|
+
return ((0, react_dom_1.createPortal)(react_1.default.createElement(styled_1.StyledModalLargeBg, null,
|
|
100
92
|
react_1.default.createElement(styled_1.StyledModalLargeBgColor, { initial: { opacity: initAnimPos.opacity }, animate: { opacity: animPos.opacity }, transition: {
|
|
101
93
|
type: "tween",
|
|
102
94
|
ease: "easeOut",
|
|
@@ -59,3 +59,5 @@ export declare const MalaysiaFlag: (props: any) => React.JSX.Element;
|
|
|
59
59
|
export declare const UKFlag: (props: any) => React.JSX.Element;
|
|
60
60
|
export declare const USAFlag: (props: any) => React.JSX.Element;
|
|
61
61
|
export declare const IndonesiaFlag: (props: any) => React.JSX.Element;
|
|
62
|
+
export declare const ChileFlag: (props: any) => React.JSX.Element;
|
|
63
|
+
export declare const PakistanFlag: (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.IndonesiaFlag = void 0;
|
|
18
|
+
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");
|
|
@@ -394,3 +394,19 @@ var IndonesiaFlag = function (props) {
|
|
|
394
394
|
react_1.default.createElement("path", { fill: "#EEE", d: "M36 27a4 4 0 01-4 4H4a4 4 0 01-4-4v-9h36v9z" })));
|
|
395
395
|
};
|
|
396
396
|
exports.IndonesiaFlag = IndonesiaFlag;
|
|
397
|
+
var ChileFlag = function (props) {
|
|
398
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 30, fill: "none", viewBox: "-4 -4 24 16" },
|
|
399
|
+
react_1.default.createElement("path", { d: "M20 12H-4V-4h24z", fill: "#d52b1e" }),
|
|
400
|
+
react_1.default.createElement("path", { d: "M4 4h16v-8H-4z", fill: "#fff" }),
|
|
401
|
+
react_1.default.createElement("path", { d: "M4 4h-8v-8h8z", fill: "#0039a6" })));
|
|
402
|
+
};
|
|
403
|
+
exports.ChileFlag = ChileFlag;
|
|
404
|
+
var PakistanFlag = function (props) {
|
|
405
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 30, fill: "none", viewBox: "-75 -40 120 80" },
|
|
406
|
+
react_1.default.createElement("path", { fill: "#fff", d: "M-75-40H45v80H-75z" }),
|
|
407
|
+
react_1.default.createElement("path", { fill: "#01411C", d: "M-45-40h90v80h-90z" }),
|
|
408
|
+
react_1.default.createElement("circle", { r: "24", fill: "#fff" }),
|
|
409
|
+
react_1.default.createElement("circle", { r: "22", cx: "-7", cy: "-40", fill: "#01411C", transform: "rotate(-41.634 45 -40)" }),
|
|
410
|
+
react_1.default.createElement("path", { fill: "#fff", d: "M8.751-17.959l10.11 11.373L3.997-9.844l13.94-6.1-7.692 13.129z" })));
|
|
411
|
+
};
|
|
412
|
+
exports.PakistanFlag = PakistanFlag;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -160,6 +160,8 @@ export namespace icons {
|
|
|
160
160
|
export { MalaysiaFlag };
|
|
161
161
|
export { BrazilFlag };
|
|
162
162
|
export { ColombiaFlag };
|
|
163
|
+
export { ChileFlag };
|
|
164
|
+
export { PakistanFlag };
|
|
163
165
|
}
|
|
164
166
|
import { PencilSimple } from "phosphor-react";
|
|
165
167
|
import { PencilLine } from "phosphor-react";
|
|
@@ -322,3 +324,5 @@ import { UKFlag } from "./custom";
|
|
|
322
324
|
import { MalaysiaFlag } from "./custom";
|
|
323
325
|
import { BrazilFlag } from "./custom";
|
|
324
326
|
import { ColombiaFlag } from "./custom";
|
|
327
|
+
import { ChileFlag } from "./custom";
|
|
328
|
+
import { PakistanFlag } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -165,5 +165,7 @@ exports.icons = {
|
|
|
165
165
|
UKFlag: custom_1.UKFlag,
|
|
166
166
|
MalaysiaFlag: custom_1.MalaysiaFlag,
|
|
167
167
|
BrazilFlag: custom_1.BrazilFlag,
|
|
168
|
-
ColombiaFlag: custom_1.ColombiaFlag
|
|
168
|
+
ColombiaFlag: custom_1.ColombiaFlag,
|
|
169
|
+
ChileFlag: custom_1.ChileFlag,
|
|
170
|
+
PakistanFlag: custom_1.PakistanFlag
|
|
169
171
|
};
|