oolib 2.61.2 → 2.61.4
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.
|
@@ -14,7 +14,7 @@ var mixins_1 = require("../../themes/mixins");
|
|
|
14
14
|
var globalVariables_1 = require("../../globalStyles/globalVariables");
|
|
15
15
|
var greyColor80 = themes_1.colors.greyColor80, greyColor5 = themes_1.colors.greyColor5, greyColor70 = themes_1.colors.greyColor70, greyColor10 = themes_1.colors.greyColor10, primaryColor100 = themes_1.colors.primaryColor100, greyColor40 = themes_1.colors.greyColor40, white = themes_1.colors.white, primaryColor10 = themes_1.colors.primaryColor10, greyColor15 = themes_1.colors.greyColor15, greyColor3 = themes_1.colors.greyColor3, greyColor100 = themes_1.colors.greyColor100, primaryColor40 = themes_1.colors.primaryColor40;
|
|
16
16
|
exports.StyledDateInputContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: fit-content;\n\n &:focus-within .calender-container {\n visibility: visible;\n }\n\n"], ["\n position: relative;\n width: fit-content;\n\n &:focus-within .calender-container {\n visibility: visible;\n }\n\n"])));
|
|
17
|
-
exports.StyledInput = styled_components_1.default.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n background: ", ";\n outline: none;\n border: none;\n width:
|
|
17
|
+
exports.StyledInput = styled_components_1.default.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n background: ", ";\n outline: none;\n border: none;\n width: 13rem;\n height: 4rem;\n color: ", ";\n ", "\n\n &:focus {\n background-color: ", ";\n }\n\n ", "\n\n &::placeholder {\n color: ", ";\n }\n\n"], ["\n ", "\n background: ", ";\n outline: none;\n border: none;\n width: 13rem;\n height: 4rem;\n color: ", ";\n ", "\n\n &:focus {\n background-color: ", ";\n }\n\n ", "\n\n &::placeholder {\n color: ", ";\n }\n\n"])), globalVariables_1.inputElemPadding, function (_a) {
|
|
18
18
|
var invert = _a.invert;
|
|
19
19
|
return (invert ? greyColor80 : greyColor5);
|
|
20
20
|
}, function (_a) {
|
|
@@ -11,7 +11,7 @@ var createFormattedDate = function (inputDate, altDate, prefix, options) {
|
|
|
11
11
|
if (prefix === void 0) { prefix = null; }
|
|
12
12
|
if (options === void 0) { options = {}; }
|
|
13
13
|
//alt date is only to deal with the blunder of not saving published date sometime back
|
|
14
|
-
var _a = options.switchDisplayFormatAfter, switchDisplayFormatAfter = _a === void 0 ?
|
|
14
|
+
var _a = options.switchDisplayFormatAfter, switchDisplayFormatAfter = _a === void 0 ? 1 : _a, _b = options.format, format = _b === void 0 ? "DD MMM YYYY" : _b;
|
|
15
15
|
if (!inputDate && !altDate)
|
|
16
16
|
return null;
|
|
17
17
|
var inputMoment = inputDate ? (0, moment_1.default)(inputDate) : (0, moment_1.default)(altDate);
|