@vokality/design-system 1.3.0 → 2.0.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.
@@ -1,8 +1,7 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { createElement } from "react";
2
2
  import { cx } from "../../lib/cx.js";
3
3
  import { space } from "../../lib/space.js";
4
4
  /** Lays children out in a row that wraps, with one gap. */
5
5
  export function Inline({ as, gap, align, justify, wrap, children, className, style, ...rest }) {
6
- const Tag = as || "div";
7
- return (_jsx(Tag, { className: cx("vk-layout-inline", className), style: { gap: space(gap, "sm"), alignItems: align || "center", justifyContent: justify, flexWrap: wrap === false ? "nowrap" : "wrap", ...style }, ...rest, children: children }));
6
+ return createElement(as || "div", { className: cx("vk-layout-inline", className), style: { gap: space(gap, "sm"), alignItems: align || "center", justifyContent: justify, flexWrap: wrap === false ? "nowrap" : "wrap", ...style }, ...rest }, children);
8
7
  }