@fluidattacks/design 2.4.0 → 2.6.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/index.js +258 -188
- package/dist/index.mjs +5504 -5257
- package/dist/types/components/card/card-header/index.d.ts +3 -0
- package/dist/types/components/card/card-with-image/index.d.ts +4 -0
- package/dist/types/components/card/card-with-selector/index.d.ts +3 -0
- package/dist/types/components/card/card-with-switch/index.d.ts +3 -0
- package/dist/types/components/card/index.d.ts +5 -0
- package/dist/types/components/card/types.d.ts +93 -0
- package/dist/types/components/confirm-dialog/index.d.ts +11 -0
- package/dist/types/components/confirm-dialog/types.d.ts +13 -0
- package/dist/types/components/empty-state/empty-button/index.d.ts +8 -0
- package/dist/types/components/empty-state/index.d.ts +3 -0
- package/dist/types/components/empty-state/styles.d.ts +8 -0
- package/dist/types/components/empty-state/types.d.ts +35 -0
- package/dist/types/components/file-preview/types.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +4 -5
- package/dist/types/components/form/styles.d.ts +1 -3
- package/dist/types/components/form/types.d.ts +14 -8
- package/dist/types/components/grid-container/index.d.ts +4 -0
- package/dist/types/components/grid-container/styles.d.ts +12 -0
- package/dist/types/components/grid-container/types.d.ts +17 -0
- package/dist/types/components/indicator-card/index.d.ts +5 -0
- package/dist/types/components/indicator-card/types.d.ts +30 -0
- package/dist/types/components/inputs/fields/editable/index.d.ts +5 -0
- package/dist/types/components/inputs/fields/editable/types.d.ts +19 -0
- package/dist/types/components/inputs/fields/input/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/{text-input → input-file}/index.d.ts +2 -2
- package/dist/types/components/inputs/fields/input-file/styles.d.ts +6 -0
- package/dist/types/components/inputs/fields/input-tags/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/input-tags/styles.d.ts +2 -0
- package/dist/types/components/inputs/fields/number/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/text-area/index.d.ts +3 -0
- package/dist/types/components/inputs/index.d.ts +2 -2
- package/dist/types/components/inputs/label/index.d.ts +1 -1
- package/dist/types/components/inputs/outline-container/index.d.ts +1 -1
- package/dist/types/components/inputs/types.d.ts +48 -10
- package/dist/types/components/inputs/utils/action-button/index.d.ts +3 -0
- package/dist/types/components/inputs/utils/calendar-button/index.d.ts +8 -0
- package/dist/types/components/inputs/utils/dialog/index.d.ts +4 -0
- package/dist/types/components/inputs/utils/number-field/index.d.ts +6 -0
- package/dist/types/components/inputs/utils/popover/index.d.ts +4 -0
- package/dist/types/components/inputs/utils/styles.d.ts +13 -0
- package/dist/types/components/inputs/utils/types.d.ts +31 -0
- package/dist/types/components/inputs/utils.d.ts +3 -0
- package/dist/types/components/logo/types.d.ts +1 -1
- package/dist/types/components/modal/index.d.ts +5 -0
- package/dist/types/components/modal/modal-confirm/index.d.ts +3 -0
- package/dist/types/components/modal/modal-footer/index.d.ts +3 -0
- package/dist/types/components/modal/modal-header/index.d.ts +3 -0
- package/dist/types/components/modal/styles.d.ts +16 -0
- package/dist/types/components/modal/types.d.ts +87 -0
- package/dist/types/components/slide-out-menu/styles.d.ts +1 -273
- package/dist/types/components/typography/styles.d.ts +3 -2
- package/dist/types/components/web-form/index.d.ts +5 -0
- package/dist/types/components/web-form/styles.d.ts +4 -0
- package/dist/types/components/web-form/types.d.ts +15 -0
- package/dist/types/hooks/index.d.ts +2 -1
- package/dist/types/index.d.ts +7 -0
- package/package.json +25 -14
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { ICardWithImageProps } from "../types";
|
|
3
|
+
declare const CardWithImage: ({ alt, authorEmail, date, description, src, children, isEditing, onClick, title, hideDescription, headerType, showMaximize, }: Readonly<PropsWithChildren<ICardWithImageProps>>) => JSX.Element;
|
|
4
|
+
export { CardWithImage };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CardHeader } from "./card-header";
|
|
2
|
+
import { CardWithImage } from "./card-with-image";
|
|
3
|
+
import { CardWithSelector } from "./card-with-selector";
|
|
4
|
+
import { CardWithSwitch } from "./card-with-switch";
|
|
5
|
+
export { CardHeader, CardWithImage, CardWithSelector, CardWithSwitch };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IconName } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
+
import type { Property } from "csstype";
|
|
3
|
+
import type { MouseEventHandler } from "react";
|
|
4
|
+
import type { TSpacing } from "components/@core/types";
|
|
5
|
+
import type { TFileType } from "components/file-preview/types";
|
|
6
|
+
import { IRadioButtonProps } from "components/radio-button/types";
|
|
7
|
+
import { IToggleProps } from "components/toggle/types";
|
|
8
|
+
/**
|
|
9
|
+
* Card component shared props.
|
|
10
|
+
* @interface ISharedProps
|
|
11
|
+
* @property { string } [authorEmail] - Card author email.
|
|
12
|
+
* @property { string } [date] - Card date.
|
|
13
|
+
* @property { string } [description] - Card description.
|
|
14
|
+
* @property { string } [title] - Card title.
|
|
15
|
+
*/
|
|
16
|
+
interface ISharedProps {
|
|
17
|
+
authorEmail?: string;
|
|
18
|
+
date?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
title: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Card header component props.
|
|
24
|
+
* @interface ICardHeader
|
|
25
|
+
* @extends ISharedProps
|
|
26
|
+
* @property { string } [textAlign] - Card title text alignment.
|
|
27
|
+
* @property { string } [tooltip] - Card tooltip.
|
|
28
|
+
* @property { string } id - Card id.
|
|
29
|
+
* @property { string } [titleColor] - Card title color.
|
|
30
|
+
* @property { string } [descriptionColor] - Card description color.
|
|
31
|
+
* @property { TSpacing } [textSpacing] - Card text spacing.
|
|
32
|
+
*/
|
|
33
|
+
interface ICardHeader extends ISharedProps {
|
|
34
|
+
textAlign?: Property.TextAlign;
|
|
35
|
+
tooltip?: string;
|
|
36
|
+
id: string;
|
|
37
|
+
titleColor?: string;
|
|
38
|
+
descriptionColor?: string;
|
|
39
|
+
textSpacing?: TSpacing;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Card with image component props.
|
|
43
|
+
* @interface ICardWithImageProps
|
|
44
|
+
* @extends ISharedProps
|
|
45
|
+
* @property { string } alt - Card image alt.
|
|
46
|
+
* @property { string } [src] - Card image source.
|
|
47
|
+
* @property { boolean } [isEditing] - Card is editing.
|
|
48
|
+
* @property { boolean } [showMaximize] - Card show maximize.
|
|
49
|
+
* @property { boolean } [hideDescription] - Card hide description.
|
|
50
|
+
* @property { MouseEventHandler<HTMLDivElement> } [onClick] - Card onClick.
|
|
51
|
+
* @property { TFileType } [headerType] - Card header type.
|
|
52
|
+
*/
|
|
53
|
+
interface ICardWithImageProps extends ISharedProps {
|
|
54
|
+
alt: string;
|
|
55
|
+
hideDescription?: boolean;
|
|
56
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
57
|
+
src: string;
|
|
58
|
+
headerType?: TFileType;
|
|
59
|
+
isEditing: boolean;
|
|
60
|
+
showMaximize?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Card with switch component props.
|
|
64
|
+
* @interface ICardWithSwitchProps
|
|
65
|
+
* @property { string } [minWidth] - Card min width.
|
|
66
|
+
* @property { string } [height] - Card height.
|
|
67
|
+
* @property { IToggleProps[] } toggles - Card toggles.
|
|
68
|
+
*/
|
|
69
|
+
interface ICardWithSwitchProps extends ICardHeader {
|
|
70
|
+
minWidth?: string;
|
|
71
|
+
height?: string;
|
|
72
|
+
toggles: IToggleProps[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Card with selector component props.
|
|
76
|
+
* @interface ICardWithSelectorProps
|
|
77
|
+
* @extends ISharedProps
|
|
78
|
+
* @property { string } [alt] - Card image alt.
|
|
79
|
+
* @property { string } [imageId] - Card image id.
|
|
80
|
+
* @property { IconName } [icon] - Card icon.
|
|
81
|
+
* @property { Function } [onClick] - Card onClick.
|
|
82
|
+
* @property { IRadioButtonProps } selectorProps - Card selector props.
|
|
83
|
+
* @property { string } [width] - Card width.
|
|
84
|
+
*/
|
|
85
|
+
interface ICardWithSelectorProps extends Pick<ISharedProps, "description" | "title"> {
|
|
86
|
+
alt?: string;
|
|
87
|
+
imageId?: string;
|
|
88
|
+
icon?: IconName;
|
|
89
|
+
onClick?: () => void;
|
|
90
|
+
selectorProps: IRadioButtonProps;
|
|
91
|
+
width?: string;
|
|
92
|
+
}
|
|
93
|
+
export type { ICardHeader, ICardWithImageProps, ICardWithSwitchProps, ICardWithSelectorProps, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IConfirmDialogProps } from "./types";
|
|
3
|
+
declare const useConfirmDialog: () => {
|
|
4
|
+
confirm: (props: Readonly<IConfirmDialogProps>) => Promise<boolean>;
|
|
5
|
+
ConfirmDialog: React.FC<Readonly<{
|
|
6
|
+
id?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>>;
|
|
9
|
+
};
|
|
10
|
+
export type { IConfirmDialogProps };
|
|
11
|
+
export { useConfirmDialog };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confirm dialog component props.
|
|
3
|
+
* @interface IConfirmDialogProps
|
|
4
|
+
* @property { string } [id] - Id of the confirm dialog.
|
|
5
|
+
* @property { React.ReactNode } [message] - Message to display in the confirm dialog.
|
|
6
|
+
* @property { string } title - Title of the confirm dialog.
|
|
7
|
+
*/
|
|
8
|
+
interface IConfirmDialogProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
message?: React.ReactNode;
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
13
|
+
export type { IConfirmDialogProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefaultTheme } from "styled-components";
|
|
2
|
+
interface IEmptyContainerProps {
|
|
3
|
+
$padding: keyof DefaultTheme["spacing"];
|
|
4
|
+
}
|
|
5
|
+
declare const EmptyContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IEmptyContainerProps>> & string;
|
|
6
|
+
declare const EmptyImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const EmptyButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export { EmptyContainer, EmptyImageContainer, EmptyButtonContainer };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DefaultTheme } from "styled-components";
|
|
2
|
+
type TSize = "md" | "sm";
|
|
3
|
+
/**
|
|
4
|
+
* Button empty state props.
|
|
5
|
+
* @interface IButtonProps
|
|
6
|
+
* @property { string } text - Button text.
|
|
7
|
+
* @property { Function } [onClick] - Button click handler.
|
|
8
|
+
*/
|
|
9
|
+
interface IButtonProps {
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
text: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Empty state component props.
|
|
15
|
+
* @interface IEmptyProps
|
|
16
|
+
* @property { IButtonProps } [cancelButton] - Cancel button props.
|
|
17
|
+
* @property { IButtonProps } [confirmButton] - Confirm button props.
|
|
18
|
+
* @property { string } description - Empty state description.
|
|
19
|
+
* @property { string } imageSrc - Empty state image source.
|
|
20
|
+
* @property { DefaultTheme["spacing"] } [padding] - Empty state padding.
|
|
21
|
+
* @property { string } [question] - Question text.
|
|
22
|
+
* @property { TSize } [size] - Empty state size.
|
|
23
|
+
* @property { string } title - Empty state title.
|
|
24
|
+
*/
|
|
25
|
+
interface IEmptyProps {
|
|
26
|
+
cancelButton?: IButtonProps;
|
|
27
|
+
confirmButton?: IButtonProps;
|
|
28
|
+
description: string;
|
|
29
|
+
imageSrc?: string;
|
|
30
|
+
padding?: keyof DefaultTheme["spacing"];
|
|
31
|
+
question?: string;
|
|
32
|
+
size?: TSize;
|
|
33
|
+
title: string;
|
|
34
|
+
}
|
|
35
|
+
export type { IEmptyProps, IButtonProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Form, FormItem };
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import type { IFormProps } from "./types";
|
|
3
|
+
declare const Form: import("react").ForwardRefExoticComponent<Readonly<PropsWithChildren<Partial<IFormProps>>> & import("react").RefAttributes<HTMLFormElement>>;
|
|
4
|
+
export { Form };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
declare const StyledForm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
|
|
2
|
-
|
|
3
|
-
declare const FormItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export { FormItem, StyledForm, StyledInnerContainer };
|
|
2
|
+
export { StyledForm };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { FormHTMLAttributes } from "react";
|
|
1
2
|
/**
|
|
2
3
|
* Form component props.
|
|
3
4
|
* @interface IFormProps
|
|
4
|
-
* @
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {
|
|
7
|
-
* @property {
|
|
5
|
+
* @extends FormHTMLAttributes<HTMLFormElement>
|
|
6
|
+
* @property { string } [cancelLabel] - The cancel button label.
|
|
7
|
+
* @property { string } [id] - The form id.
|
|
8
|
+
* @property { Function } [onCancel] - The cancel button callback.
|
|
9
|
+
* @property { "submit" | Function } [onConfirm] - The confirm button callback.
|
|
10
|
+
* @property { string } [submitLabel] - The submit button label.
|
|
11
|
+
* @property { boolean } [submitDisabled] - The submit button disabled state.
|
|
8
12
|
*/
|
|
9
|
-
interface IFormProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
interface IFormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
14
|
+
cancelLabel?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
onConfirm?: "submit" | (() => void);
|
|
13
18
|
submitLabel?: string;
|
|
19
|
+
submitDisabled?: boolean;
|
|
14
20
|
}
|
|
15
21
|
export type { IFormProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { IGridContainerProps } from "./types";
|
|
3
|
+
declare const GridContainer: import("react").ForwardRefExoticComponent<Readonly<PropsWithChildren<IGridContainerProps>> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { GridContainer };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IGridContainerProps } from "./types";
|
|
2
|
+
interface IStyledGridProps {
|
|
3
|
+
$xl?: IGridContainerProps["xl"];
|
|
4
|
+
$lg?: IGridContainerProps["lg"];
|
|
5
|
+
$md?: IGridContainerProps["md"];
|
|
6
|
+
$sm?: IGridContainerProps["sm"];
|
|
7
|
+
$gap?: IGridContainerProps["gap"];
|
|
8
|
+
}
|
|
9
|
+
declare const GridContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("components/@core").IPaddingModifiable | keyof import("components/@core").IMarginModifiable | keyof import("components/@core").IPositionModifiable | keyof import("components/@core").IBorderModifiable | keyof import("components/@core").IDisplayModifiable | keyof import("components/@core").ITextModifiable | keyof import("components/@core").IInteractionModifiable> & import("components/@core").IBorderModifiable & import("components/@core").IDisplayModifiable & import("components/@core").IInteractionModifiable & import("components/@core").IMarginModifiable & import("components/@core").IPaddingModifiable & import("components/@core").IPositionModifiable & import("components/@core").ITextModifiable, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, IStyledGridProps>> & string;
|
|
12
|
+
export { GridContainer };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TModifiable } from "components/@core";
|
|
2
|
+
/**
|
|
3
|
+
* Grid container component props.
|
|
4
|
+
* @interface IGridContainerProps
|
|
5
|
+
* @extends TModifiable
|
|
6
|
+
* @property { number } xl - Grid container xl breakpoint.
|
|
7
|
+
* @property { number } lg - Grid container lg breakpoint.
|
|
8
|
+
* @property { number } md - Grid container md breakpoint.
|
|
9
|
+
* @property { number } sm - Grid container sm breakpoint.
|
|
10
|
+
*/
|
|
11
|
+
interface IGridContainerProps extends TModifiable {
|
|
12
|
+
xl: number;
|
|
13
|
+
lg: number;
|
|
14
|
+
md: number;
|
|
15
|
+
sm: number;
|
|
16
|
+
}
|
|
17
|
+
export type { IGridContainerProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { IIndicatorCardProps } from "./types";
|
|
3
|
+
declare const IndicatorCard: ({ description, height, leftIconName, children, rightIconName, title, tooltipId, tooltipTip, tooltipPlace, variant, width, }: Readonly<PropsWithChildren<IIndicatorCardProps>>) => JSX.Element;
|
|
4
|
+
export type { IIndicatorCardProps };
|
|
5
|
+
export { IndicatorCard };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IconName } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
+
import type { TPlace } from "components/tooltip/types";
|
|
3
|
+
type TVariant = "centered" | "left-aligned";
|
|
4
|
+
/**
|
|
5
|
+
* Indicator card component props.
|
|
6
|
+
* @interface IIndicatorCardProps
|
|
7
|
+
* @property { string } [description] - Description of the indicator card.
|
|
8
|
+
* @property { string } [height] - Height of the indicator card.
|
|
9
|
+
* @property { IconName } [leftIconName] - Name of the left icon.
|
|
10
|
+
* @property { IconName } [rightIconName] - Name of the right icon.
|
|
11
|
+
* @property { string } [title] - Title of the indicator card.
|
|
12
|
+
* @property { string } [tooltipId] - Id of the tooltip.
|
|
13
|
+
* @property { string } [tooltipTip] - Tip of the tooltip.
|
|
14
|
+
* @property { TPlace } [tooltipPlace] - Place of the tooltip.
|
|
15
|
+
* @property { TVariant } [variant] - Variant of the indicator card.
|
|
16
|
+
* @property { string } [width] - Width of the indicator card.
|
|
17
|
+
*/
|
|
18
|
+
interface IIndicatorCardProps {
|
|
19
|
+
description?: string;
|
|
20
|
+
height?: string;
|
|
21
|
+
leftIconName?: IconName;
|
|
22
|
+
rightIconName?: IconName;
|
|
23
|
+
title?: string;
|
|
24
|
+
tooltipId?: string;
|
|
25
|
+
tooltipTip?: string;
|
|
26
|
+
tooltipPlace?: TPlace;
|
|
27
|
+
variant?: TVariant;
|
|
28
|
+
width?: string;
|
|
29
|
+
}
|
|
30
|
+
export type { IIndicatorCardProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import type { IEditableProps } from "./types";
|
|
3
|
+
declare const Editable: ({ children, currentValue, externalLink, isEditing, label, name, tooltip, }: Readonly<PropsWithChildren<IEditableProps>>) => JSX.Element;
|
|
4
|
+
export type { IEditableProps };
|
|
5
|
+
export { Editable };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editable component props.
|
|
3
|
+
* @interface IEditableProps
|
|
4
|
+
* @property {string} [currentValue] - The current value of the editable field.
|
|
5
|
+
* @property {string} [externalLink] - The external link associated with the editable field.
|
|
6
|
+
* @property {boolean} isEditing - Indicates whether the editable field is being edited.
|
|
7
|
+
* @property {string} label - The label for the editable field.
|
|
8
|
+
* @property {string} name - The name of the editable field.
|
|
9
|
+
* @property {string} [tooltip] - The tooltip text for the editable field.
|
|
10
|
+
*/
|
|
11
|
+
interface IEditableProps {
|
|
12
|
+
currentValue?: string;
|
|
13
|
+
externalLink?: string;
|
|
14
|
+
isEditing: boolean;
|
|
15
|
+
label: string;
|
|
16
|
+
name: string;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
}
|
|
19
|
+
export type { IEditableProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IInputProps } from "../../types";
|
|
2
|
-
declare const
|
|
3
|
-
export {
|
|
2
|
+
declare const InputFile: import("react").ForwardRefExoticComponent<Readonly<IInputProps> & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export { InputFile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IStyledTextProps } from "components/typography/styles";
|
|
2
|
+
declare const StyledInputText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("../../../@core").IPaddingModifiable | keyof import("../../../@core").IMarginModifiable | keyof import("../../../@core").IPositionModifiable | keyof import("../../../@core").IBorderModifiable | keyof import("../../../@core").IDisplayModifiable | keyof import("../../../@core").ITextModifiable | keyof import("../../../@core").IInteractionModifiable> & import("../../../@core").IBorderModifiable & import("../../../@core").IDisplayModifiable & import("../../../@core").IInteractionModifiable & import("../../../@core").IMarginModifiable & import("../../../@core").IPaddingModifiable & import("../../../@core").IPositionModifiable & import("../../../@core").ITextModifiable, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
4
|
+
}, keyof IStyledTextProps> & IStyledTextProps, IStyledTextProps>> & string;
|
|
5
|
+
declare const FileInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
6
|
+
export { StyledInputText, FileInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Input } from "./fields/input";
|
|
1
2
|
import { PhoneInput } from "./fields/phone";
|
|
2
|
-
import { TextInput } from "./fields/text-input";
|
|
3
3
|
import { OutlineContainer } from "./outline-container";
|
|
4
|
-
export { OutlineContainer, PhoneInput,
|
|
4
|
+
export { OutlineContainer, PhoneInput, Input };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ILabelProps } from "../types";
|
|
2
|
-
declare const Label: ({ htmlFor, label,
|
|
2
|
+
declare const Label: ({ htmlFor, label, required, tooltip, weight, }: Readonly<ILabelProps>) => JSX.Element;
|
|
3
3
|
export { Label };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import type { IOutlineContainerProps } from "../types";
|
|
3
|
-
declare const OutlineContainer: ({ children, error, htmlFor, label,
|
|
3
|
+
declare const OutlineContainer: ({ children, error, helpLink, helpLinkText, helpText, htmlFor, label, maxLength, required, tooltip, value, weight, }: Readonly<PropsWithChildren<IOutlineContainerProps>>) => JSX.Element;
|
|
4
4
|
export { OutlineContainer };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from "react";
|
|
2
|
-
import { TMode } from "components/@core";
|
|
1
|
+
import type { InputHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
3
2
|
/**
|
|
4
3
|
* Label component props.
|
|
5
4
|
* @interface ILabelProps
|
|
6
5
|
* @property {string} htmlFor - The htmlFor of the input.
|
|
7
6
|
* @property {string | JSX.Element} [label] - The label of the input.
|
|
8
|
-
* @property {TMode} [mode] - The background theme: dark or light.
|
|
9
7
|
* @property {boolean} [required] - Whether the input is required.
|
|
10
8
|
* @property {string} [tooltip] - The tooltip of the input.
|
|
9
|
+
* @property {string} [weight] - The weight of the label.
|
|
11
10
|
*/
|
|
12
11
|
interface ILabelProps {
|
|
13
12
|
htmlFor: string;
|
|
14
13
|
label?: string | JSX.Element;
|
|
15
|
-
mode?: TMode;
|
|
16
14
|
required?: boolean;
|
|
17
15
|
tooltip?: string;
|
|
16
|
+
weight?: "bold" | "normal";
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* Outline container component props.
|
|
@@ -32,17 +31,56 @@ interface IOutlineContainerProps extends ILabelProps {
|
|
|
32
31
|
helpLinkText?: string;
|
|
33
32
|
helpText?: string;
|
|
34
33
|
maxLength?: number;
|
|
34
|
+
value?: string;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Input text component props.
|
|
38
38
|
* @interface IInputProps
|
|
39
|
-
* @extends ILabelProps
|
|
40
39
|
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
41
|
-
* @
|
|
42
|
-
* @property {
|
|
40
|
+
* @extends IOutlineContainerProps
|
|
41
|
+
* @property {boolean} [hasIcon] - Whether the input has an icon.
|
|
42
|
+
* @property {string} name - The name of the input.
|
|
43
|
+
* @property {boolean} [maskValue] - Whether the input has a mask value.
|
|
44
|
+
* @property {string[]} [suggestions] - The suggestions of the input.
|
|
43
45
|
*/
|
|
44
|
-
interface IInputProps extends InputHTMLAttributes<HTMLInputElement>, Partial<
|
|
45
|
-
|
|
46
|
+
interface IInputProps extends InputHTMLAttributes<HTMLInputElement>, Partial<Omit<IOutlineContainerProps, "maxLength" | "value">> {
|
|
47
|
+
hasIcon?: boolean;
|
|
48
|
+
name: string;
|
|
49
|
+
maskValue?: boolean;
|
|
50
|
+
suggestions?: string[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Text area component props.
|
|
54
|
+
* @interface ITextAreaProps
|
|
55
|
+
* @extends TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
56
|
+
* @extends IOutlineContainerProps
|
|
57
|
+
* @property {string} name - The name of the text area.
|
|
58
|
+
* @property {boolean} [maskValue] - Whether the input has a mask value.
|
|
59
|
+
*/
|
|
60
|
+
interface ITextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, Omit<IOutlineContainerProps, "value"> {
|
|
61
|
+
name: string;
|
|
62
|
+
maskValue?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Input number component props.
|
|
66
|
+
* @interface IInputNumberProps
|
|
67
|
+
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
68
|
+
* @extends IOutlineContainerProps
|
|
69
|
+
* @property {number} [decimalPlaces] - The decimal places of the input.
|
|
70
|
+
* @property {string} name - The name of the input.
|
|
71
|
+
*/
|
|
72
|
+
interface IInputNumberProps extends InputHTMLAttributes<HTMLInputElement>, Omit<IOutlineContainerProps, "value"> {
|
|
73
|
+
decimalPlaces?: number;
|
|
46
74
|
name: string;
|
|
47
75
|
}
|
|
48
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Input number component props.
|
|
78
|
+
* @interface IInputNumberProps
|
|
79
|
+
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
80
|
+
* @extends IOutlineContainerProps
|
|
81
|
+
* @property {Function} [onRemove] - The function to remove the tag.
|
|
82
|
+
*/
|
|
83
|
+
interface IInputTagProps extends InputHTMLAttributes<HTMLInputElement>, Omit<IOutlineContainerProps, "value"> {
|
|
84
|
+
onRemove?: (tag: string) => void;
|
|
85
|
+
}
|
|
86
|
+
export type { ILabelProps, IOutlineContainerProps, IInputProps, ITextAreaProps, IInputNumberProps, IInputTagProps, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconName } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
+
import type { AriaButtonOptions } from "@react-aria/button";
|
|
3
|
+
declare const Button: ({ disabled, icon, props, }: Readonly<{
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
icon: IconName;
|
|
6
|
+
props: AriaButtonOptions<"button">;
|
|
7
|
+
}>) => JSX.Element;
|
|
8
|
+
export { Button };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
2
|
+
import type { IInputNumberProps } from "../../types";
|
|
3
|
+
declare const NumberField: ({ error, decimalPlaces, disabled, max, min, name, placeholder, ref, required, value, ...props }: Readonly<IInputNumberProps & {
|
|
4
|
+
ref: Ref<HTMLInputElement>;
|
|
5
|
+
}>) => JSX.Element;
|
|
6
|
+
export { NumberField };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IActionButtonProps } from "./types";
|
|
2
|
+
declare const StyledButtonAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import("components/@core").IPaddingModifiable | keyof import("components/@core").IMarginModifiable | keyof import("components/@core").IPositionModifiable | keyof import("components/@core").IBorderModifiable | keyof import("components/@core").IDisplayModifiable | keyof import("components/@core").ITextModifiable | keyof import("components/@core").IInteractionModifiable> & import("components/@core").IBorderModifiable & import("components/@core").IDisplayModifiable & import("components/@core").IInteractionModifiable & import("components/@core").IMarginModifiable & import("components/@core").IPaddingModifiable & import("components/@core").IPositionModifiable & import("components/@core").ITextModifiable, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
$margin: IActionButtonProps["margin"];
|
|
6
|
+
}>> & string;
|
|
7
|
+
declare const DialogContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const CalendarButtonAction: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
9
|
+
$disabled: boolean;
|
|
10
|
+
$focus: boolean;
|
|
11
|
+
$header: boolean;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export { StyledButtonAction, CalendarButtonAction, DialogContainer };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AriaPopoverProps } from "@react-aria/overlays";
|
|
2
|
+
import type { OverlayTriggerState } from "@react-stately/overlays";
|
|
3
|
+
import type { Property } from "csstype";
|
|
4
|
+
import { IBorderModifiable, IIconModifiable, IPaddingModifiable } from "components/@core";
|
|
5
|
+
/**
|
|
6
|
+
* Action button component props.
|
|
7
|
+
* @interface IActionButtonProps
|
|
8
|
+
* @extends IIconModifiable
|
|
9
|
+
* @extends IBorderModifiable
|
|
10
|
+
* @extends IPaddingModifiable
|
|
11
|
+
* @property {boolean} disabled - Indicates if the button is disabled.
|
|
12
|
+
* @property {Function} [onClick] - The function to be called when the button is clicked.
|
|
13
|
+
* @property {Property.Margin} [margin] - The button margin.
|
|
14
|
+
*/
|
|
15
|
+
interface IActionButtonProps extends Pick<IIconModifiable, "icon">, IBorderModifiable, IPaddingModifiable {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
margin?: Property.Margin;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Popover component props.
|
|
22
|
+
* @interface IPopoverProps
|
|
23
|
+
* @extends AriaPopoverProps
|
|
24
|
+
* @property {boolean} [isFilter] - Indicates if the popover is a filter.
|
|
25
|
+
* @property {OverlayTriggerState} state - The state of the overlay trigger.
|
|
26
|
+
*/
|
|
27
|
+
interface IPopoverProps extends Omit<AriaPopoverProps, "popoverRef"> {
|
|
28
|
+
isFilter?: boolean;
|
|
29
|
+
state: OverlayTriggerState;
|
|
30
|
+
}
|
|
31
|
+
export type { IActionButtonProps, IPopoverProps };
|