@axinom/mosaic-ui 0.54.0-rc.5 → 0.55.0-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.54.0-rc.5",
3
+ "version": "0.55.0-rc.0",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "^0.4.27-rc.5",
35
+ "@axinom/mosaic-core": "^0.4.28-rc.0",
36
36
  "@faker-js/faker": "^7.4.0",
37
37
  "@geoffcox/react-splitter": "^2.1.2",
38
38
  "@popperjs/core": "^2.11.8",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "8c817d3e234325b61483fc501a03c9d5ebe1b3a4"
109
+ "gitHead": "e23901dd9033a5d7f4a6818b7ff10872c23e48e7"
110
110
  }
@@ -2,7 +2,7 @@ import clsx from 'clsx';
2
2
  import React from 'react';
3
3
  import classes from './FormGrid.scss';
4
4
 
5
- interface FormGridProps {
5
+ export interface FormGridProps {
6
6
  edgeToEdgeContent?: boolean;
7
7
  }
8
8
 
@@ -5,12 +5,19 @@ import {
5
5
  TabPanel,
6
6
  TabPanelProps,
7
7
  } from 'react-tabs';
8
+ import { FormGrid } from '../../FormStation';
9
+ import { FormGridProps } from '../../FormStation/FormGrid';
8
10
  import classes from './CustomTabPanel.scss';
9
11
 
10
- export const CustomTabPanel: ReactTabsFunctionComponent<TabPanelProps> = ({
12
+ interface CustomTabPanelProps extends TabPanelProps, FormGridProps {}
13
+
14
+ export const CustomTabPanel: ReactTabsFunctionComponent<
15
+ CustomTabPanelProps
16
+ > = ({
11
17
  children,
12
18
  className,
13
19
  selectedClassName,
20
+ edgeToEdgeContent,
14
21
  ...otherProps
15
22
  }) => (
16
23
  <TabPanel
@@ -19,7 +26,7 @@ export const CustomTabPanel: ReactTabsFunctionComponent<TabPanelProps> = ({
19
26
  selectedClassName={clsx(selectedClassName, classes.selected)}
20
27
  data-test-id="tab"
21
28
  >
22
- {children}
29
+ <FormGrid edgeToEdgeContent={edgeToEdgeContent}>{children}</FormGrid>
23
30
  </TabPanel>
24
31
  );
25
32