@homebound/beam 2.417.5 → 2.417.6
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/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +90 -11
- package/dist/index.d.ts +90 -11
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18383,8 +18383,10 @@ function useResponsiveGrid(props) {
|
|
|
18383
18383
|
|
|
18384
18384
|
// src/components/Grid/useResponsiveGridItem.ts
|
|
18385
18385
|
var import_react115 = require("react");
|
|
18386
|
-
function useResponsiveGridItem(
|
|
18387
|
-
const
|
|
18386
|
+
function useResponsiveGridItem(props) {
|
|
18387
|
+
const { colSpan = 1, gridConfig } = props;
|
|
18388
|
+
const contextConfig = (0, import_react115.useContext)(ResponsiveGridContext);
|
|
18389
|
+
const config = gridConfig ?? contextConfig;
|
|
18388
18390
|
const gridItemStyles = (0, import_react115.useMemo)(() => {
|
|
18389
18391
|
if (!config || colSpan <= 1) return {};
|
|
18390
18392
|
const { minColumnWidth, gap } = config;
|