@hakit/components
Version:
A series of components to work with @hakit/core
29 lines (28 loc) • 1.3 kB
JavaScript
import { j as e } from "../../../emotion-react-jsx-runtime.browser.esm-BErL7L7Y.js";
import { c as l } from "../../../emotion-styled-base.browser.esm-Dyg8Y4aq.js";
import { css as i } from "@emotion/react";
import { isValidProp as a } from "../../utils/isValidProp.js";
const n = /* @__PURE__ */ l("div", {
shouldForwardProp: (t) => a(t),
target: "ev4xl8t0"
})("display:flex;flex-direction:row;flex-wrap:", ({
wrap: t
}) => t || "wrap", ";justify-content:", ({
justifyContent: t
}) => t || "center", ";align-items:", ({
alignItems: t
}) => t || "center", ";", ({
alignItems: t
}) => `
--stretch: ${t === "stretch" ? "100%" : "false"};
`, " ", (t) => typeof t.gap == "string" && `
gap: ${t.gap};
--gap: ${t.gap ?? "0px"};
`, " ", (t) => t.fullHeight && "height: 100%;", " ", (t) => t.fullWidth && "width: 100%;", ";");
function o(t) {
return /* @__PURE__ */ e(n, { ...t, css: /* @__PURE__ */ i(t.cssStyles ?? "", ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Row;")), className: `${t.className ?? ""} ${t.fullHeight ? "full-height" : ""} ${t.fullWidth ? "full-width" : ""} ${t.justifyContent ? t.justifyContent : "center"} ${t.alignItems ? t.alignItems : "center"} ${t.wrap ? t.wrap : "wrap"}` });
}
export {
o as Row
};
//# sourceMappingURL=index.js.map