@xyo-network/react-shared 2.42.9 → 2.42.11

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,12 +1,14 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useTheme } from '@mui/material';
3
3
  import { FlexGrowRow } from '@xylabs/react-flexbox';
4
- export const SectionSpacingRow = ({ children, sx, ...props }) => {
4
+ import { forwardRef } from 'react';
5
+ export const SectionSpacingRow = forwardRef(({ children, sx, ...props }, ref) => {
5
6
  const theme = useTheme();
6
7
  return (_jsx(FlexGrowRow, { sx: {
7
8
  paddingBottom: { md: theme.spacing(5), xs: theme.spacing(5) },
8
9
  paddingTop: { md: theme.spacing(5), xs: theme.spacing(5) },
9
10
  ...sx,
10
- }, width: "100%", ...props, children: children }));
11
- };
11
+ }, width: "100%", ref: ref, ...props, children: children }));
12
+ });
13
+ SectionSpacingRow.displayName = 'SectionSpacingRow';
12
14
  //# sourceMappingURL=SectionSpacingRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionSpacingRow.js","sourceRoot":"","sources":["../../../../src/components/SectionSpacingRow/SectionSpacingRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAgB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,iBAAiB,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACtF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO,CACL,KAAC,WAAW,IACV,EAAE,EAAE;YACF,aAAa,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC7D,UAAU,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC1D,GAAG,EAAE;SACN,EACD,KAAK,EAAC,MAAM,KACR,KAAK,YAER,QAAQ,GACG,CACf,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"SectionSpacingRow.js","sourceRoot":"","sources":["../../../../src/components/SectionSpacingRow/SectionSpacingRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAgB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5G,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO,CACL,KAAC,WAAW,IACV,EAAE,EAAE;YACF,aAAa,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC7D,UAAU,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC1D,GAAG,EAAE;SACN,EACD,KAAK,EAAC,MAAM,EACZ,GAAG,EAAE,GAAG,KACJ,KAAK,YAER,QAAQ,GACG,CACf,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA"}
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { FlexBoxProps } from '@xylabs/react-flexbox';
3
- export declare const SectionSpacingRow: React.FC<FlexBoxProps>;
2
+ export declare const SectionSpacingRow: import("react").ForwardRefExoticComponent<import("@xylabs/react-flexbox").BusyBoxProps & import("react").RefAttributes<HTMLDivElement>>;
4
3
  //# sourceMappingURL=SectionSpacingRow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionSpacingRow.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionSpacingRow/SectionSpacingRow.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAA;AAEjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAepD,CAAA"}
1
+ {"version":3,"file":"SectionSpacingRow.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionSpacingRow/SectionSpacingRow.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,iBAAiB,yIAgB5B,CAAA"}
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "@xylabs/react-flexbox": "^2.16.8",
17
17
  "@xylabs/react-link": "^2.16.8",
18
18
  "@xylabs/react-shared": "^2.16.8",
19
- "@xyo-network/react-event": "^2.42.9"
19
+ "@xyo-network/react-event": "^2.42.11"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@storybook/react": "^6.5.16",
@@ -78,5 +78,5 @@
78
78
  },
79
79
  "sideEffects": false,
80
80
  "types": "dist/types/index.d.ts",
81
- "version": "2.42.9"
81
+ "version": "2.42.11"
82
82
  }
@@ -1,7 +1,8 @@
1
1
  import { useTheme } from '@mui/material'
2
2
  import { FlexBoxProps, FlexGrowRow } from '@xylabs/react-flexbox'
3
+ import { forwardRef } from 'react'
3
4
 
4
- export const SectionSpacingRow: React.FC<FlexBoxProps> = ({ children, sx, ...props }) => {
5
+ export const SectionSpacingRow = forwardRef<HTMLDivElement, FlexBoxProps>(({ children, sx, ...props }, ref) => {
5
6
  const theme = useTheme()
6
7
  return (
7
8
  <FlexGrowRow
@@ -11,9 +12,12 @@ export const SectionSpacingRow: React.FC<FlexBoxProps> = ({ children, sx, ...pro
11
12
  ...sx,
12
13
  }}
13
14
  width="100%"
15
+ ref={ref}
14
16
  {...props}
15
17
  >
16
18
  {children}
17
19
  </FlexGrowRow>
18
20
  )
19
- }
21
+ })
22
+
23
+ SectionSpacingRow.displayName = 'SectionSpacingRow'