@trafilea/afrodita-components 5.0.0-beta.108 → 5.0.0-beta.109
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.
- package/build/index.d.ts +2 -1
- package/build/index.esm.js +7 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +7 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -12437,12 +12437,16 @@ var ScrollToTop = function (_a) {
|
|
|
12437
12437
|
};
|
|
12438
12438
|
var templateObject_1$F, templateObject_2$r;
|
|
12439
12439
|
|
|
12440
|
-
var
|
|
12440
|
+
var DEFAULT_COLOR = '#dfefeb';
|
|
12441
|
+
var Container$q = newStyled.div(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0.75rem 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0.75rem 0;\n"])), function (_a) {
|
|
12442
|
+
var color = _a.color;
|
|
12443
|
+
return color !== null && color !== void 0 ? color : DEFAULT_COLOR;
|
|
12444
|
+
});
|
|
12441
12445
|
var H1 = newStyled.h1(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"], ["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"])), function (props) { return props.color; });
|
|
12442
12446
|
var OrderBar = function (_a) {
|
|
12443
|
-
var message = _a.message;
|
|
12447
|
+
var message = _a.message, color = _a.color;
|
|
12444
12448
|
var theme = useTheme();
|
|
12445
|
-
return (jsxRuntime.jsxs(Container$q, { children: [jsxRuntime.jsx(Icon.Actions.Check, { width: 1.25, height: 0.875, fill: "#2F806A" }, void 0), jsxRuntime.jsx(H1, __assign$1({ color: theme.colors.shades['700'].color }, { children: message }), void 0)] }, void 0));
|
|
12449
|
+
return (jsxRuntime.jsxs(Container$q, __assign$1({ color: color }, { children: [jsxRuntime.jsx(Icon.Actions.Check, { width: 1.25, height: 0.875, fill: "#2F806A" }, void 0), jsxRuntime.jsx(H1, __assign$1({ color: theme.colors.shades['700'].color }, { children: message }), void 0)] }), void 0));
|
|
12446
12450
|
};
|
|
12447
12451
|
var templateObject_1$E, templateObject_2$q;
|
|
12448
12452
|
|