oolib 2.102.0 → 2.104.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.
|
@@ -98,6 +98,12 @@ var bannerReducer = function (state, action) {
|
|
|
98
98
|
case "REMOVE_INFO":
|
|
99
99
|
newInfoState = state.infoState.filter(function (a) { return a.id !== action.id; });
|
|
100
100
|
return __assign(__assign({}, state), { infoState: newInfoState });
|
|
101
|
+
case "REMOVE_ALL_INFO":
|
|
102
|
+
newInfoState = [];
|
|
103
|
+
return __assign(__assign({}, state), { infoState: newInfoState });
|
|
104
|
+
case "REMOVE_ALL_ALERT":
|
|
105
|
+
newAlertState = [];
|
|
106
|
+
return __assign(__assign({}, state), { alertState: newAlertState });
|
|
101
107
|
default:
|
|
102
108
|
return state;
|
|
103
109
|
}
|
|
@@ -112,6 +118,12 @@ var BannerProvider = function (_a) {
|
|
|
112
118
|
var REMOVE_INFO_BANNER = function (e, id) {
|
|
113
119
|
BANNER_DISPATCH({ type: "REMOVE_INFO", id: id });
|
|
114
120
|
};
|
|
121
|
+
var REMOVE_ALL_INFO_BANNERS = function (e, id) {
|
|
122
|
+
BANNER_DISPATCH({ type: "REMOVE_ALL_INFO", id: id });
|
|
123
|
+
};
|
|
124
|
+
var REMOVE_ALL_ALERT_BANNERS = function (e, id) {
|
|
125
|
+
BANNER_DISPATCH({ type: "REMOVE_ALL_ALERT", id: id });
|
|
126
|
+
};
|
|
115
127
|
// the config of bannner can either be passed as a object, or plain arguments.
|
|
116
128
|
var SET_INFO_BANNER = function (options_msg, color, timeOut) {
|
|
117
129
|
var options = {};
|
|
@@ -144,7 +156,9 @@ var BannerProvider = function (_a) {
|
|
|
144
156
|
SET_INFO_BANNER: SET_INFO_BANNER,
|
|
145
157
|
SET_ALERT_BANNER: SET_ALERT_BANNER,
|
|
146
158
|
REMOVE_ALERT_BANNER: REMOVE_ALERT_BANNER,
|
|
147
|
-
REMOVE_INFO_BANNER: REMOVE_INFO_BANNER
|
|
159
|
+
REMOVE_INFO_BANNER: REMOVE_INFO_BANNER,
|
|
160
|
+
REMOVE_ALL_INFO_BANNERS: REMOVE_ALL_INFO_BANNERS,
|
|
161
|
+
REMOVE_ALL_ALERT_BANNERS: REMOVE_ALL_ALERT_BANNERS
|
|
148
162
|
} }, children));
|
|
149
163
|
};
|
|
150
164
|
exports.BannerProvider = BannerProvider;
|
|
@@ -395,14 +395,14 @@ var IndonesiaFlag = function (props) {
|
|
|
395
395
|
};
|
|
396
396
|
exports.IndonesiaFlag = IndonesiaFlag;
|
|
397
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" },
|
|
398
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size || 30, height: props.size || 30, fill: "none", viewBox: "-4 -4 24 16" },
|
|
399
399
|
react_1.default.createElement("path", { d: "M20 12H-4V-4h24z", fill: "#d52b1e" }),
|
|
400
400
|
react_1.default.createElement("path", { d: "M4 4h16v-8H-4z", fill: "#fff" }),
|
|
401
401
|
react_1.default.createElement("path", { d: "M4 4h-8v-8h8z", fill: "#0039a6" })));
|
|
402
402
|
};
|
|
403
403
|
exports.ChileFlag = ChileFlag;
|
|
404
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" },
|
|
405
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size || 30, height: props.size || 30, fill: "none", viewBox: "-75 -40 120 80" },
|
|
406
406
|
react_1.default.createElement("path", { fill: "#fff", d: "M-75-40H45v80H-75z" }),
|
|
407
407
|
react_1.default.createElement("path", { fill: "#01411C", d: "M-45-40h90v80h-90z" }),
|
|
408
408
|
react_1.default.createElement("circle", { r: "24", fill: "#fff" }),
|
|
@@ -411,7 +411,7 @@ var PakistanFlag = function (props) {
|
|
|
411
411
|
};
|
|
412
412
|
exports.PakistanFlag = PakistanFlag;
|
|
413
413
|
var SpainFlag = function (props) {
|
|
414
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
414
|
+
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size || 30, height: props.size || 30, viewBox: "0 0 36 36" },
|
|
415
415
|
react_1.default.createElement("path", { fill: "#C60A1D", d: "M36 27a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4h28a4 4 0 0 1 4 4z" }),
|
|
416
416
|
react_1.default.createElement("path", { fill: "#FFC400", d: "M0 12h36v12H0z" }),
|
|
417
417
|
react_1.default.createElement("path", { fill: "#EA596E", d: "M9 17v3a3 3 0 1 0 6 0v-3z" }),
|