singularity-components 0.1.100 → 0.1.101
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/dist/main.cjs +4 -3
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +1 -4
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +5 -3
- package/dist/main.d.ts +5 -3
- package/dist/main.js +4 -3
- package/dist/main.js.map +1 -1
- package/package.json +25 -25
package/dist/main.cjs
CHANGED
|
@@ -21223,6 +21223,7 @@ function Layout({
|
|
|
21223
21223
|
type,
|
|
21224
21224
|
cols,
|
|
21225
21225
|
bgcolor,
|
|
21226
|
+
as: Component2 = "div",
|
|
21226
21227
|
...props
|
|
21227
21228
|
}) {
|
|
21228
21229
|
const allowedInLayout = (content) => {
|
|
@@ -21249,7 +21250,7 @@ function Layout({
|
|
|
21249
21250
|
return content;
|
|
21250
21251
|
};
|
|
21251
21252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21252
|
-
|
|
21253
|
+
Component2,
|
|
21253
21254
|
{
|
|
21254
21255
|
...props,
|
|
21255
21256
|
className: cn(bgColor[bgcolor ?? "transparent"], className),
|
|
@@ -21260,8 +21261,8 @@ function Layout({
|
|
|
21260
21261
|
}
|
|
21261
21262
|
);
|
|
21262
21263
|
}
|
|
21263
|
-
function Col({ children, hideDiv, className }) {
|
|
21264
|
-
return hideDiv ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
21264
|
+
function Col({ children, hideDiv, className, as: Component2 = "div" }) {
|
|
21265
|
+
return hideDiv ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }) : /* @__PURE__ */ jsxRuntime.jsx(Component2, { className, children });
|
|
21265
21266
|
}
|
|
21266
21267
|
Layout.Col1 = Col;
|
|
21267
21268
|
Layout.Col2 = Col;
|