@devopness/ui-react 2.174.0 → 2.176.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/FormText/FormText.d.ts +26 -0
- package/dist/src/components/Forms/FormText/FormText.styled.d.ts +8 -0
- package/dist/src/components/Forms/FormText/index.d.ts +1 -0
- package/dist/src/components/Forms/index.d.ts +2 -0
- package/dist/ui-react.cjs +188 -141
- package/dist/ui-react.js +747 -689
- package/package.json +6 -6
|
@@ -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';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type FormTextProps = {
|
|
2
|
+
/** Main title */
|
|
3
|
+
title: string;
|
|
4
|
+
/** Optional subtitle, can be text or ReactNode */
|
|
5
|
+
subTitle?: React.ReactNode;
|
|
6
|
+
/** Optional custom color for subtitle */
|
|
7
|
+
subTitleColor?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* FormText Component
|
|
11
|
+
*
|
|
12
|
+
* Displays a section with a title, an optional subtitle,
|
|
13
|
+
* and a divider line.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <FormText
|
|
18
|
+
* title="Form Section"
|
|
19
|
+
* subTitle="This is an optional subtitle"
|
|
20
|
+
* subTitleColor="red"
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare const FormText: ({ title, subTitle, subTitleColor }: FormTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { FormText };
|
|
26
|
+
export type { FormTextProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const Title: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
4
|
+
type ParagraphProps = {
|
|
5
|
+
subtitleColor?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Paragraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, ParagraphProps>> & string;
|
|
8
|
+
export { Wrapper, Line, Title, Paragraph };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormText';
|