@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.
Files changed (59) hide show
  1. package/dist/index.js +258 -188
  2. package/dist/index.mjs +5504 -5257
  3. package/dist/types/components/card/card-header/index.d.ts +3 -0
  4. package/dist/types/components/card/card-with-image/index.d.ts +4 -0
  5. package/dist/types/components/card/card-with-selector/index.d.ts +3 -0
  6. package/dist/types/components/card/card-with-switch/index.d.ts +3 -0
  7. package/dist/types/components/card/index.d.ts +5 -0
  8. package/dist/types/components/card/types.d.ts +93 -0
  9. package/dist/types/components/confirm-dialog/index.d.ts +11 -0
  10. package/dist/types/components/confirm-dialog/types.d.ts +13 -0
  11. package/dist/types/components/empty-state/empty-button/index.d.ts +8 -0
  12. package/dist/types/components/empty-state/index.d.ts +3 -0
  13. package/dist/types/components/empty-state/styles.d.ts +8 -0
  14. package/dist/types/components/empty-state/types.d.ts +35 -0
  15. package/dist/types/components/file-preview/types.d.ts +1 -1
  16. package/dist/types/components/form/index.d.ts +4 -5
  17. package/dist/types/components/form/styles.d.ts +1 -3
  18. package/dist/types/components/form/types.d.ts +14 -8
  19. package/dist/types/components/grid-container/index.d.ts +4 -0
  20. package/dist/types/components/grid-container/styles.d.ts +12 -0
  21. package/dist/types/components/grid-container/types.d.ts +17 -0
  22. package/dist/types/components/indicator-card/index.d.ts +5 -0
  23. package/dist/types/components/indicator-card/types.d.ts +30 -0
  24. package/dist/types/components/inputs/fields/editable/index.d.ts +5 -0
  25. package/dist/types/components/inputs/fields/editable/types.d.ts +19 -0
  26. package/dist/types/components/inputs/fields/input/index.d.ts +3 -0
  27. package/dist/types/components/inputs/fields/{text-input → input-file}/index.d.ts +2 -2
  28. package/dist/types/components/inputs/fields/input-file/styles.d.ts +6 -0
  29. package/dist/types/components/inputs/fields/input-tags/index.d.ts +3 -0
  30. package/dist/types/components/inputs/fields/input-tags/styles.d.ts +2 -0
  31. package/dist/types/components/inputs/fields/number/index.d.ts +3 -0
  32. package/dist/types/components/inputs/fields/text-area/index.d.ts +3 -0
  33. package/dist/types/components/inputs/index.d.ts +2 -2
  34. package/dist/types/components/inputs/label/index.d.ts +1 -1
  35. package/dist/types/components/inputs/outline-container/index.d.ts +1 -1
  36. package/dist/types/components/inputs/types.d.ts +48 -10
  37. package/dist/types/components/inputs/utils/action-button/index.d.ts +3 -0
  38. package/dist/types/components/inputs/utils/calendar-button/index.d.ts +8 -0
  39. package/dist/types/components/inputs/utils/dialog/index.d.ts +4 -0
  40. package/dist/types/components/inputs/utils/number-field/index.d.ts +6 -0
  41. package/dist/types/components/inputs/utils/popover/index.d.ts +4 -0
  42. package/dist/types/components/inputs/utils/styles.d.ts +13 -0
  43. package/dist/types/components/inputs/utils/types.d.ts +31 -0
  44. package/dist/types/components/inputs/utils.d.ts +3 -0
  45. package/dist/types/components/logo/types.d.ts +1 -1
  46. package/dist/types/components/modal/index.d.ts +5 -0
  47. package/dist/types/components/modal/modal-confirm/index.d.ts +3 -0
  48. package/dist/types/components/modal/modal-footer/index.d.ts +3 -0
  49. package/dist/types/components/modal/modal-header/index.d.ts +3 -0
  50. package/dist/types/components/modal/styles.d.ts +16 -0
  51. package/dist/types/components/modal/types.d.ts +87 -0
  52. package/dist/types/components/slide-out-menu/styles.d.ts +1 -273
  53. package/dist/types/components/typography/styles.d.ts +3 -2
  54. package/dist/types/components/web-form/index.d.ts +5 -0
  55. package/dist/types/components/web-form/styles.d.ts +4 -0
  56. package/dist/types/components/web-form/types.d.ts +15 -0
  57. package/dist/types/hooks/index.d.ts +2 -1
  58. package/dist/types/index.d.ts +7 -0
  59. package/package.json +25 -14
@@ -0,0 +1,3 @@
1
+ import type { ICardHeader } from "../types";
2
+ declare const CardHeader: ({ authorEmail, date, description, descriptionColor, id, title, titleColor, textAlign, textSpacing, tooltip, }: Readonly<ICardHeader>) => JSX.Element;
3
+ export { CardHeader };
@@ -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,3 @@
1
+ import type { ICardWithSelectorProps } from "../types";
2
+ declare const CardWithSelector: ({ alt, imageId, icon, selectorProps, onClick, title, width, }: Readonly<ICardWithSelectorProps>) => JSX.Element;
3
+ export { CardWithSelector };
@@ -0,0 +1,3 @@
1
+ import type { ICardWithSwitchProps } from "../types";
2
+ declare const CardWithSwitch: ({ id, title, toggles, minWidth, height, }: Readonly<ICardWithSwitchProps>) => JSX.Element;
3
+ export { CardWithSwitch };
@@ -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 React from "react";
2
+ import type { IButtonProps } from "../types";
3
+ import type { TVariant } from "components/button/types";
4
+ declare const EmptyButton: React.FC<Readonly<{
5
+ buttonProps: IButtonProps;
6
+ variant: TVariant;
7
+ }>>;
8
+ export { EmptyButton };
@@ -0,0 +1,3 @@
1
+ import type { IEmptyProps } from "./types";
2
+ declare const EmptyState: ({ cancelButton, confirmButton, description, imageSrc, padding, title, size, }: Readonly<IEmptyProps>) => JSX.Element;
3
+ export { EmptyState };
@@ -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 };
@@ -17,4 +17,4 @@ interface IFilePreviewProps {
17
17
  src: string;
18
18
  width?: string;
19
19
  }
20
- export type { IFilePreviewProps };
20
+ export type { IFilePreviewProps, TFileType };
@@ -1,5 +1,4 @@
1
- import { PropsWithChildren } from "react";
2
- import { FormItem } from "./styles";
3
- import { IFormProps } from "./types";
4
- declare const Form: ({ children, name, onSubmit, submitDisabled, submitLabel, }: Readonly<PropsWithChildren<IFormProps>>) => JSX.Element;
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
- declare const StyledInnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
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
- * @property {string} name The name of the form.
5
- * @property {Function} [onSubmit] Callback to be executed when form is submitted.
6
- * @property {boolean} [submitDisabled] Whether the submit button should be disabled.
7
- * @property {string} [submitLabel] The label to show on submit.
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
- name: string;
11
- onSubmit?: React.FormEventHandler<HTMLFormElement>;
12
- submitDisabled?: boolean;
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 };
@@ -0,0 +1,3 @@
1
+ import type { IInputProps } from "../../types";
2
+ declare const Input: import("react").ForwardRefExoticComponent<Readonly<IInputProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export { Input };
@@ -1,3 +1,3 @@
1
1
  import type { IInputProps } from "../../types";
2
- declare const TextInput: import("react").ForwardRefExoticComponent<Readonly<IInputProps> & import("react").RefAttributes<HTMLInputElement>>;
3
- export { TextInput };
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 };
@@ -0,0 +1,3 @@
1
+ import type { IInputTagProps } from "../../types";
2
+ declare const InputTags: import("react").ForwardRefExoticComponent<Readonly<IInputTagProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export { InputTags };
@@ -0,0 +1,2 @@
1
+ declare const TagInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
2
+ export { TagInput };
@@ -0,0 +1,3 @@
1
+ import type { IInputNumberProps } from "../../types";
2
+ declare const InputNumber: import("react").ForwardRefExoticComponent<Readonly<IInputNumberProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export { InputNumber };
@@ -0,0 +1,3 @@
1
+ import type { ITextAreaProps } from "../../types";
2
+ declare const TextArea: import("react").ForwardRefExoticComponent<Readonly<ITextAreaProps> & import("react").RefAttributes<HTMLTextAreaElement>>;
3
+ export { TextArea };
@@ -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, TextInput };
4
+ export { OutlineContainer, PhoneInput, Input };
@@ -1,3 +1,3 @@
1
1
  import { ILabelProps } from "../types";
2
- declare const Label: ({ htmlFor, label, mode, required, tooltip, }: Readonly<ILabelProps>) => JSX.Element;
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, mode, required, tooltip, }: Readonly<PropsWithChildren<IOutlineContainerProps>>) => JSX.Element;
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
- * @property {string} [error] - The error message of the input.
42
- * @property {string} id - The id of the input.
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<ILabelProps> {
45
- error?: string;
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
- export type { IInputProps, ILabelProps, IOutlineContainerProps };
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,3 @@
1
+ import type { IActionButtonProps } from "../types";
2
+ declare const ActionButton: import("react").ForwardRefExoticComponent<Readonly<IActionButtonProps> & import("react").RefAttributes<HTMLButtonElement>>;
3
+ export { ActionButton };
@@ -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,4 @@
1
+ import type { AriaDialogProps } from "@react-aria/dialog";
2
+ import { PropsWithChildren } from "react";
3
+ declare const Dialog: ({ children, ...props }: Readonly<PropsWithChildren<AriaDialogProps>>) => JSX.Element;
4
+ export { Dialog };
@@ -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,4 @@
1
+ import { PropsWithChildren } from "react";
2
+ import type { IPopoverProps } from "../types";
3
+ declare const Popover: ({ children, isFilter, state, ...props }: Readonly<PropsWithChildren<IPopoverProps>>) => JSX.Element;
4
+ export { Popover };
@@ -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 };
@@ -0,0 +1,3 @@
1
+ declare const createEvent: (type: string, name: string, value: unknown) => Event;
2
+ declare const getFileName: (value: unknown) => string;
3
+ export { createEvent, getFileName };
@@ -1,4 +1,4 @@
1
- type TLogoVariant = "company" | "footer" | "header" | "icon";
1
+ type TLogoVariant = "company" | "footer" | "header" | "icon" | "inline";
2
2
  /**
3
3
  * Logo component props.
4
4
  * @interface ILogoProps