@escolalms/components
Advanced tools
Comparing version 0.0.47 to 0.0.48
@@ -52,2 +52,5 @@ "use strict"; | ||
} | ||
return props.theme.mode === "dark" | ||
? props.theme.white | ||
: props.theme.gray1; | ||
}, function (props) { | ||
@@ -54,0 +57,0 @@ var backgroundLabel = props.theme.mode === "dark" ? props.theme.black : props.theme.white; |
@@ -50,3 +50,3 @@ "use strict"; | ||
var Button_1 = require("../../atoms/Button/Button"); | ||
var StyledCheckoutCard = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 15px;\n width: 100%;\n box-sizing: border-box;\n border-radius: ", "px;\n background-color: ", ";\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n .checkout-card-discount {\n color: ", ";\n text-decoration: line-through;\n }\n\n .checkout-card-top {\n border-bottom: 1px solid ", ";\n }\n\n .checkout-card-remove {\n margin-left: 40px;\n }\n\n .checkout-card-summary {\n padding-top: 20px;\n display: flex;\n border-top: 1px solid ", ";\n }\n\n .checkout-card-img {\n width: ", ";\n margin-right: ", ";\n flex-shrink: 0;\n background-color: ", ";\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n\n .checkout-card-summary-item {\n margin-right: ", ";\n }\n\n svg {\n path {\n fill: currentColor;\n }\n\n &.icon-primary {\n path {\n fill: ", ";\n }\n }\n\n &.icon-stroke {\n path {\n stroke: currentColor;\n fill: none;\n }\n }\n }\n"], ["\n padding: 15px;\n width: 100%;\n box-sizing: border-box;\n border-radius: ", "px;\n background-color: ", ";\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n .checkout-card-discount {\n color: ", ";\n text-decoration: line-through;\n }\n\n .checkout-card-top {\n border-bottom: 1px solid ", ";\n }\n\n .checkout-card-remove {\n margin-left: 40px;\n }\n\n .checkout-card-summary {\n padding-top: 20px;\n display: flex;\n border-top: 1px solid ", ";\n }\n\n .checkout-card-img {\n width: ", ";\n margin-right: ", ";\n flex-shrink: 0;\n background-color: ", ";\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n\n .checkout-card-summary-item {\n margin-right: ", ";\n }\n\n svg {\n path {\n fill: currentColor;\n }\n\n &.icon-primary {\n path {\n fill: ", ";\n }\n }\n\n &.icon-stroke {\n path {\n stroke: currentColor;\n fill: none;\n }\n }\n }\n"])), function (_a) { | ||
var StyledCheckoutCard = (0, styled_components_1.default)("div")(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 15px;\n width: 100%;\n box-sizing: border-box;\n border-radius: ", "px;\n background-color: ", ";\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n .checkout-card-discount {\n color: ", ";\n text-decoration: line-through;\n }\n\n .checkout-card-top {\n border-bottom: 1px solid ", ";\n }\n\n .checkout-card-remove {\n margin-left: 40px;\n }\n\n .checkout-card-summary {\n padding-top: 20px;\n display: flex;\n border-top: 1px solid ", ";\n }\n\n svg {\n path {\n fill: currentColor;\n }\n\n &.icon-primary {\n path {\n fill: ", ";\n }\n }\n\n &.icon-stroke {\n path {\n stroke: currentColor;\n fill: none;\n }\n }\n }\n\n .checkout-card-img {\n width: ", ";\n margin-right: ", ";\n flex-shrink: 0;\n\n svg {\n fill: ", ";\n }\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n\n .checkout-card-summary-item {\n margin-right: ", ";\n }\n"], ["\n padding: 15px;\n width: 100%;\n box-sizing: border-box;\n border-radius: ", "px;\n background-color: ", ";\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n .checkout-card-discount {\n color: ", ";\n text-decoration: line-through;\n }\n\n .checkout-card-top {\n border-bottom: 1px solid ", ";\n }\n\n .checkout-card-remove {\n margin-left: 40px;\n }\n\n .checkout-card-summary {\n padding-top: 20px;\n display: flex;\n border-top: 1px solid ", ";\n }\n\n svg {\n path {\n fill: currentColor;\n }\n\n &.icon-primary {\n path {\n fill: ", ";\n }\n }\n\n &.icon-stroke {\n path {\n stroke: currentColor;\n fill: none;\n }\n }\n }\n\n .checkout-card-img {\n width: ", ";\n margin-right: ", ";\n flex-shrink: 0;\n\n svg {\n fill: ", ";\n }\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n\n .checkout-card-summary-item {\n margin-right: ", ";\n }\n"])), function (_a) { | ||
var theme = _a.theme; | ||
@@ -68,9 +68,9 @@ return theme.cardRadius; | ||
return theme.gray3; | ||
}, function (_a) { | ||
var theme = _a.theme; | ||
return theme.primaryColor; | ||
}, function (props) { return (props.mobile ? "45px" : "100%"); }, function (props) { return (props.mobile ? "15px" : "0"); }, function (_a) { | ||
var theme = _a.theme; | ||
return theme.white; | ||
}, function (props) { return (props.mobile ? "10px" : "25px"); }, function (_a) { | ||
var theme = _a.theme; | ||
return theme.primaryColor; | ||
}); | ||
return theme.mode == "light" ? theme.gray2 : theme.white; | ||
}, function (props) { return (props.mobile ? "10px" : "25px"); }); | ||
var IconBin = function () { | ||
@@ -77,0 +77,0 @@ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M5 2C5 0.89543 5.89543 0 7 0H13C14.1046 0 15 0.895431 15 2V4H16.9897C16.9959 3.99994 17.0021 3.99994 17.0083 4H19C19.5523 4 20 4.44772 20 5C20 5.55228 19.5523 6 19 6H17.9311L17.0638 18.1425C16.989 19.1891 16.1182 20 15.0689 20H4.93112C3.88184 20 3.01096 19.1891 2.9362 18.1425L2.06888 6H1C0.447715 6 0 5.55228 0 5C0 4.44772 0.447715 4 1 4H2.99174C2.99795 3.99994 3.00414 3.99994 3.01032 4H5V2ZM7 4H13V2H7V4ZM4.07398 6L4.93112 18H15.0689L15.926 6H4.07398ZM8 8C8.55228 8 9 8.44772 9 9V15C9 15.5523 8.55228 16 8 16C7.44772 16 7 15.5523 7 15V9C7 8.44772 7.44772 8 8 8ZM12 8C12.5523 8 13 8.44772 13 9V15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15V9C11 8.44772 11.4477 8 12 8Z", fill: "#6D6D6D" }) }))); |
@@ -118,2 +118,5 @@ import i18n from "i18next"; | ||
}; | ||
Upload: { | ||
button: string; | ||
}; | ||
}; | ||
@@ -241,2 +244,5 @@ }; | ||
}; | ||
Upload: { | ||
button: string; | ||
}; | ||
}; | ||
@@ -243,0 +249,0 @@ }; |
@@ -128,2 +128,5 @@ "use strict"; | ||
}, | ||
Upload: { | ||
button: "Choose a file", | ||
}, | ||
}, | ||
@@ -251,2 +254,5 @@ }, | ||
}, | ||
Upload: { | ||
button: "Wybierz plik", | ||
}, | ||
}, | ||
@@ -253,0 +259,0 @@ }, |
{ | ||
"name": "@escolalms/components", | ||
"version": "0.0.47", | ||
"version": "0.0.48", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -124,2 +124,5 @@ import i18n from "i18next"; | ||
}, | ||
Upload: { | ||
button: "Choose a file", | ||
}, | ||
}, | ||
@@ -248,2 +251,5 @@ }, | ||
}, | ||
Upload: { | ||
button: "Wybierz plik", | ||
}, | ||
}, | ||
@@ -250,0 +256,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16960092
25961