@devopness/ui-react 2.177.0 → 2.179.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/FormLoading/FormLoading.d.ts +18 -0
- package/dist/src/components/Forms/FormLoading/FormLoading.styled.d.ts +6 -0
- package/dist/src/components/Forms/FormLoading/index.d.ts +1 -0
- package/dist/src/components/Forms/TextArea/TextArea.d.ts +40 -0
- package/dist/src/components/Forms/TextArea/TextArea.styled.d.ts +9 -0
- package/dist/src/components/Forms/TextArea/index.d.ts +1 -0
- package/dist/src/components/Forms/index.d.ts +2 -0
- package/dist/src/components/Primitives/SourceAndHash/SourceAndHash.d.ts +59 -0
- package/dist/src/components/Primitives/SourceAndHash/SourceAndHash.styled.d.ts +3 -0
- package/dist/src/components/Primitives/SourceAndHash/index.d.ts +1 -0
- package/dist/src/components/Primitives/index.d.ts +1 -0
- package/dist/ui-react.cjs +392 -296
- package/dist/ui-react.js +3658 -3456
- package/package.json +6 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type FormLoadingProps = {
|
|
2
|
+
/** Optional aria-label for accessibility */
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* FormLoading
|
|
7
|
+
*
|
|
8
|
+
* Displays a structured skeleton UI for forms.
|
|
9
|
+
* Includes placeholders for title, paragraphs, a separator line, and buttons.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <FormLoading ariaLabel="Loading form data" />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const FormLoading: ({ ariaLabel }: FormLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { FormLoading };
|
|
18
|
+
export type { FormLoadingProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const WrapperTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const WrapperParagraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const WrapperButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export { Container, WrapperTitle, WrapperParagraph, Line, WrapperButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormLoading';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes, RefObject } from 'react';
|
|
2
|
+
import { LabelProps } from '../../Primitives';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the TextArea component.
|
|
5
|
+
*/
|
|
6
|
+
type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
7
|
+
/** Reference to the underlying textarea element. Can be RefObject or callback ref */
|
|
8
|
+
inputRef?: RefObject<HTMLTextAreaElement> | ((instance: HTMLTextAreaElement | null) => void);
|
|
9
|
+
/** Error information to display below the textarea. */
|
|
10
|
+
error?: Record<string, unknown> | undefined | null;
|
|
11
|
+
/** Disable textarea resize when true.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
isResizable?: boolean;
|
|
15
|
+
/** Optional label props for the field. */
|
|
16
|
+
label?: LabelProps;
|
|
17
|
+
/** Optional className to pass to the container. */
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* TextArea component
|
|
22
|
+
*
|
|
23
|
+
* A styled multiline text input that supports an optional label,
|
|
24
|
+
* an error message and optional resize control.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <TextArea
|
|
29
|
+
* id="notes"
|
|
30
|
+
* name="notes"
|
|
31
|
+
* placeholder="Type here..."
|
|
32
|
+
* label={{ htmlFor: 'notes', value: 'Notes' }}
|
|
33
|
+
* inputRef={ref}
|
|
34
|
+
* error={{ message: 'Required' }}
|
|
35
|
+
* />
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
declare const TextArea: ({ className, inputRef, error, label, isResizable, ...props }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export { TextArea };
|
|
40
|
+
export type { TextAreaProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type PropsStyled = {
|
|
2
|
+
hasError?: boolean;
|
|
3
|
+
noResize?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const StyledTextarea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, PropsStyled>> & string;
|
|
9
|
+
export { Container, StyledTextarea };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextArea';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Tooltip } from '../Tooltip';
|
|
2
|
+
/**
|
|
3
|
+
* The type of the deployment source.
|
|
4
|
+
* Can be a branch, a tag, or a commit.
|
|
5
|
+
*/
|
|
6
|
+
type LocalSourceType = 'branch' | 'commit' | 'tag';
|
|
7
|
+
/**
|
|
8
|
+
* Minimal information about a commit required for the SourceAndHash component.
|
|
9
|
+
*/
|
|
10
|
+
type Commit = {
|
|
11
|
+
/** The commit hash */
|
|
12
|
+
hash: string;
|
|
13
|
+
/** The URL to view the commit in the source provider */
|
|
14
|
+
url: string;
|
|
15
|
+
/** The commit message to display in the tooltip */
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Minimal information about a deployment required for the SourceAndHash component.
|
|
20
|
+
*/
|
|
21
|
+
type Deployment = {
|
|
22
|
+
/** The git reference used for this deployment (branch, tag, or commit hash) */
|
|
23
|
+
source_ref?: string;
|
|
24
|
+
/** The type of source used in the deployment */
|
|
25
|
+
source_type?: LocalSourceType;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Props for the SourceAndHash component.
|
|
29
|
+
*/
|
|
30
|
+
type SourceAndHashProps = {
|
|
31
|
+
/** Commit information to display */
|
|
32
|
+
commit: Commit;
|
|
33
|
+
/** Deployment information to display optional source reference */
|
|
34
|
+
deployment: Deployment;
|
|
35
|
+
/** Maximum number of characters to display for the commit hash */
|
|
36
|
+
maxDisplayCharacters?: number;
|
|
37
|
+
/** Additional props to pass to the Tooltip component */
|
|
38
|
+
tooltipOptions?: Omit<Parameters<typeof Tooltip>[0], 'children' | 'title'> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* SourceAndHash component
|
|
44
|
+
*
|
|
45
|
+
* Displays a shortened commit hash with an optional deployment source reference.
|
|
46
|
+
* The commit hash is wrapped in a link and a tooltip showing the full commit message.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <SourceAndHash
|
|
51
|
+
* commit={{ hash: 'abcd1234', url: 'https://github.com/repo/commit/abcd1234', message: 'Fix bug' }}
|
|
52
|
+
* deployment={{ source_ref: 'feature/new-feature', source_type: 'branch' }}
|
|
53
|
+
* maxDisplayCharacters={8}
|
|
54
|
+
* />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare const SourceAndHash: ({ commit, deployment, maxDisplayCharacters, tooltipOptions, }: SourceAndHashProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export { SourceAndHash };
|
|
59
|
+
export type { SourceAndHashProps, Commit, Deployment };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const SourceAndHashSpan: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
2
|
+
declare const WrapperCommit: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export { SourceAndHashSpan, WrapperCommit };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SourceAndHash';
|