@devopness/ui-react 2.174.0 → 2.175.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/dist/src/components/Forms/Container/Container.d.ts +31 -0
- package/dist/src/components/Forms/Container/Container.styled.d.ts +5 -0
- package/dist/src/components/Forms/Container/index.d.ts +1 -0
- package/dist/src/components/Forms/index.d.ts +1 -0
- package/dist/ui-react.cjs +145 -121
- package/dist/ui-react.js +268 -238
- package/package.json +5 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type ContainerProps = {
|
|
2
|
+
/** Removes the default top margin (42px)
|
|
3
|
+
* @default false
|
|
4
|
+
*/
|
|
5
|
+
shouldRemoveTopMargin?: boolean;
|
|
6
|
+
/** Optional styles for the inner content wrapper */
|
|
7
|
+
styles?: {
|
|
8
|
+
/** Background color for content wrapper */
|
|
9
|
+
backgroundWrapperContent?: string;
|
|
10
|
+
/** Height (in px) for content wrapper */
|
|
11
|
+
height?: number;
|
|
12
|
+
};
|
|
13
|
+
/** React children to render inside */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Container Component
|
|
18
|
+
*
|
|
19
|
+
* Provides a 12-column grid layout with responsive adjustments
|
|
20
|
+
* and an optional styled content wrapper.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Container shouldRemoveTopMargin styles={{ backgroundWrapperContent: '#f5f5f5', height: 400 }}>
|
|
25
|
+
* <p>Page content here</p>
|
|
26
|
+
* </Container>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const Container: ({ shouldRemoveTopMargin, styles, children, }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export { Container };
|
|
31
|
+
export type { ContainerProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerProps } from './Container';
|
|
2
|
+
type StyledProps = Pick<ContainerProps, 'shouldRemoveTopMargin' | 'styles'>;
|
|
3
|
+
declare const ContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
|
|
4
|
+
declare const WrapperContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, StyledProps>> & string;
|
|
5
|
+
export { ContainerStyled, WrapperContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Container';
|