fis-component 0.0.21 → 0.0.23

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 (80) hide show
  1. package/dist/cjs/index.js +1188 -81
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/src/assets/icons/DecreIcon.d.ts +3 -0
  4. package/dist/cjs/types/src/assets/icons/DotIcon.d.ts +3 -0
  5. package/dist/cjs/types/src/assets/icons/HomeIcon.d.ts +3 -0
  6. package/dist/cjs/types/src/assets/icons/IncreIcon.d.ts +3 -0
  7. package/dist/cjs/types/src/assets/icons/ResizeIcon.d.ts +3 -0
  8. package/dist/cjs/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
  9. package/dist/cjs/types/src/assets/icons/index.d.ts +6 -0
  10. package/dist/cjs/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
  11. package/dist/cjs/types/src/components/Avatar/index.d.ts +19 -0
  12. package/dist/cjs/types/src/components/Avatar/styles.d.ts +13 -0
  13. package/dist/cjs/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
  14. package/dist/cjs/types/src/components/Breadcrumb/index.d.ts +14 -0
  15. package/dist/cjs/types/src/components/Breadcrumb/styles.d.ts +7 -0
  16. package/dist/cjs/types/src/components/Button/Button.stories.d.ts +1 -1
  17. package/dist/cjs/types/src/components/Button/index.d.ts +1 -1
  18. package/dist/cjs/types/src/components/Button/styles.d.ts +1 -1
  19. package/dist/cjs/types/src/components/{GroupButton/GroupButton.stories.d.ts → ButtonGroup/ButtonGroup.stories.d.ts} +2 -2
  20. package/dist/{esm/types/src/components/GroupButton → cjs/types/src/components/ButtonGroup}/index.d.ts +4 -2
  21. package/dist/cjs/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
  22. package/dist/cjs/types/src/components/Input/InputField/index.d.ts +4 -4
  23. package/dist/cjs/types/src/components/Input/InputLabel/index.d.ts +1 -1
  24. package/dist/cjs/types/src/components/Input/InputLabel/styles.d.ts +1 -1
  25. package/dist/cjs/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
  26. package/dist/cjs/types/src/components/Input/InputStepper/index.d.ts +20 -0
  27. package/dist/cjs/types/src/components/Input/InputStepper/styles.d.ts +5 -0
  28. package/dist/cjs/types/src/components/Input/InputText/index.d.ts +3 -11
  29. package/dist/cjs/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
  30. package/dist/cjs/types/src/components/Input/TextArea/index.d.ts +33 -0
  31. package/dist/cjs/types/src/components/Input/TextArea/styles.d.ts +9 -0
  32. package/dist/cjs/types/src/components/{GroupRadio → RadioGroup}/index.d.ts +2 -2
  33. package/dist/cjs/types/src/index.d.ts +7 -1
  34. package/dist/esm/index.js +1172 -71
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/types/src/assets/icons/DecreIcon.d.ts +3 -0
  37. package/dist/esm/types/src/assets/icons/DotIcon.d.ts +3 -0
  38. package/dist/esm/types/src/assets/icons/HomeIcon.d.ts +3 -0
  39. package/dist/esm/types/src/assets/icons/IncreIcon.d.ts +3 -0
  40. package/dist/esm/types/src/assets/icons/ResizeIcon.d.ts +3 -0
  41. package/dist/esm/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
  42. package/dist/esm/types/src/assets/icons/index.d.ts +6 -0
  43. package/dist/esm/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
  44. package/dist/esm/types/src/components/Avatar/index.d.ts +19 -0
  45. package/dist/esm/types/src/components/Avatar/styles.d.ts +13 -0
  46. package/dist/esm/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
  47. package/dist/esm/types/src/components/Breadcrumb/index.d.ts +14 -0
  48. package/dist/esm/types/src/components/Breadcrumb/styles.d.ts +7 -0
  49. package/dist/esm/types/src/components/Button/Button.stories.d.ts +1 -1
  50. package/dist/esm/types/src/components/Button/index.d.ts +1 -1
  51. package/dist/esm/types/src/components/Button/styles.d.ts +1 -1
  52. package/dist/esm/types/src/components/{GroupButton/GroupButton.stories.d.ts → ButtonGroup/ButtonGroup.stories.d.ts} +2 -2
  53. package/dist/{cjs/types/src/components/GroupButton → esm/types/src/components/ButtonGroup}/index.d.ts +4 -2
  54. package/dist/esm/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
  55. package/dist/esm/types/src/components/Input/InputField/index.d.ts +4 -4
  56. package/dist/esm/types/src/components/Input/InputLabel/index.d.ts +1 -1
  57. package/dist/esm/types/src/components/Input/InputLabel/styles.d.ts +1 -1
  58. package/dist/esm/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
  59. package/dist/esm/types/src/components/Input/InputStepper/index.d.ts +20 -0
  60. package/dist/esm/types/src/components/Input/InputStepper/styles.d.ts +5 -0
  61. package/dist/esm/types/src/components/Input/InputText/index.d.ts +3 -11
  62. package/dist/esm/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
  63. package/dist/esm/types/src/components/Input/TextArea/index.d.ts +33 -0
  64. package/dist/esm/types/src/components/Input/TextArea/styles.d.ts +9 -0
  65. package/dist/esm/types/src/components/{GroupRadio → RadioGroup}/index.d.ts +2 -2
  66. package/dist/esm/types/src/index.d.ts +7 -1
  67. package/dist/index.d.ts +135 -21
  68. package/package.json +1 -1
  69. /package/dist/cjs/types/src/components/{GroupButton → ButtonGroup}/styles.d.ts +0 -0
  70. /package/dist/cjs/types/src/components/{GroupCheckbox/GroupCheckbox.stories.d.ts → CheckboxGroup/CheckboxGroup.stories.d.ts} +0 -0
  71. /package/dist/cjs/types/src/components/{GroupCheckbox → CheckboxGroup}/index.d.ts +0 -0
  72. /package/dist/cjs/types/src/components/{GroupCheckbox → CheckboxGroup}/styles.d.ts +0 -0
  73. /package/dist/cjs/types/src/components/{GroupRadio/GroupRadio.stories.d.ts → RadioGroup/RadioGroup.stories.d.ts} +0 -0
  74. /package/dist/cjs/types/src/components/{GroupRadio → RadioGroup}/styles.d.ts +0 -0
  75. /package/dist/esm/types/src/components/{GroupButton → ButtonGroup}/styles.d.ts +0 -0
  76. /package/dist/esm/types/src/components/{GroupCheckbox/GroupCheckbox.stories.d.ts → CheckboxGroup/CheckboxGroup.stories.d.ts} +0 -0
  77. /package/dist/esm/types/src/components/{GroupCheckbox → CheckboxGroup}/index.d.ts +0 -0
  78. /package/dist/esm/types/src/components/{GroupCheckbox → CheckboxGroup}/styles.d.ts +0 -0
  79. /package/dist/esm/types/src/components/{GroupRadio/GroupRadio.stories.d.ts → RadioGroup/RadioGroup.stories.d.ts} +0 -0
  80. /package/dist/esm/types/src/components/{GroupRadio → RadioGroup}/styles.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function DecreIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default DecreIcon;
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function DotIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default DotIcon;
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function HomeIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default HomeIcon;
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function IncreIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default IncreIcon;
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function ResizeIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default ResizeIcon;
@@ -0,0 +1,3 @@
1
+ import { SvgIconProps } from "./SVGIconProps";
2
+ declare function SeparatorIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
+ export default SeparatorIcon;
@@ -1,8 +1,14 @@
1
1
  export { default as Fpt } from "./Fpt";
2
+ export { default as IncreIcon } from "./IncreIcon";
3
+ export { default as DecreIcon } from "./DecreIcon";
2
4
  export { default as CategoryIcon } from "./CategoryIcon";
5
+ export { default as DotIcon } from "./DotIcon";
6
+ export { default as SeparatorIcon } from "./SeparatorIcon";
7
+ export { default as HomeIcon } from "./HomeIcon";
3
8
  export { default as CloseIcon } from "./CloseIcon";
4
9
  export { default as DropdownIcon } from "./DropdownIcon";
5
10
  export { default as RequestButtonLoadingWhiteIcon } from "./RequestButtonLoadingWhiteIcon";
6
11
  export { default as CheckedIcon } from "./CheckedIcon";
7
12
  export { default as IndeterminateIcon } from "./IndeterminateIcon";
8
13
  export { default as RequestButtonLoadingIcon } from "./RequestButtonLoadingIcon";
14
+ export { default as ResizeIcon } from "./ResizeIcon";
@@ -0,0 +1,4 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").AvatarProps>;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export type BadgeType = "rounded" | "square" | "without";
3
+ export type AvatarSize = "2xs" | "xs" | "sm" | "md" | "lg" | "xl";
4
+ export type StatusType = "green" | "red" | "yellow" | "blue" | "neutral";
5
+ export type ColorType = "neutral" | "orange" | "yellow" | "lime" | "green" | "ocean" | "blue" | "indigo" | "violet" | "pink" | "disable";
6
+ export type AvatarProps = {
7
+ className?: string | undefined;
8
+ src?: string;
9
+ icon?: React.ReactNode;
10
+ alt?: string;
11
+ letter?: string;
12
+ size?: AvatarSize;
13
+ status?: StatusType;
14
+ isBadgeDot?: boolean;
15
+ badge?: BadgeType;
16
+ color?: ColorType;
17
+ };
18
+ declare const FISAvatar: React.FC<AvatarProps>;
19
+ export default FISAvatar;
@@ -0,0 +1,13 @@
1
+ import { AvatarSize, BadgeType, ColorType, StatusType } from ".";
2
+ interface AvatarProps {
3
+ $size?: AvatarSize;
4
+ $badge?: BadgeType;
5
+ $color?: ColorType;
6
+ $status?: StatusType;
7
+ }
8
+ export declare const DivContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AvatarProps>> & string;
9
+ export declare const ImgAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, AvatarProps>> & string;
10
+ export declare const DivIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AvatarProps>> & string;
11
+ export declare const SpanLetter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarProps>> & string;
12
+ export declare const DivBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AvatarProps>> & string;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ import { Meta } from "@storybook/react";
2
+ interface BreadcrumbItem {
3
+ label?: string;
4
+ icon?: JSX.Element;
5
+ onClick: () => void;
6
+ }
7
+ interface TemplateProps {
8
+ items: BreadcrumbItem[];
9
+ showLabel: boolean;
10
+ showIcon: boolean;
11
+ }
12
+ declare const _default: Meta;
13
+ export default _default;
14
+ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TemplateProps>;
@@ -0,0 +1,14 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface BreadcrumbItemProps extends ComponentPropsWithoutRef<"button"> {
3
+ icon?: React.ReactNode;
4
+ label?: string;
5
+ active?: boolean;
6
+ onClick: () => void;
7
+ }
8
+ export type BreadcrumbProps = {
9
+ items: BreadcrumbItemProps[];
10
+ /** Additional CSS class names to apply to the breadcrumb. */
11
+ className?: string | undefined;
12
+ };
13
+ declare const FISBreadcrumb: React.FC<BreadcrumbProps>;
14
+ export default FISBreadcrumb;
@@ -0,0 +1,7 @@
1
+ export declare const DivContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const DivIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const SpanLabelSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
+ export declare const ButtonItemSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
5
+ $active?: boolean;
6
+ }>> & string;
7
+ export declare const DivIconDotSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -33,7 +33,7 @@ declare const meta: {
33
33
  control: "boolean";
34
34
  description: string;
35
35
  };
36
- isLoading: {
36
+ loading: {
37
37
  control: "boolean";
38
38
  description: string;
39
39
  };
@@ -19,7 +19,7 @@ export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
19
19
  /**
20
20
  * Defines if the button is currently being requested.
21
21
  */
22
- isLoading?: boolean;
22
+ loading?: boolean;
23
23
  }
24
24
  declare const FISButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
25
25
  export default FISButton;
@@ -4,7 +4,7 @@ interface ButtonProps {
4
4
  $variant: ButtonVariant;
5
5
  $size: ButtonSize;
6
6
  $active?: boolean;
7
- $isLoading?: boolean;
7
+ $loading?: boolean;
8
8
  }
9
9
  export declare const ButtonSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
10
10
  export declare const SpanIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -1,6 +1,6 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import FISGroupButton from ".";
3
- declare const meta: Meta<typeof FISGroupButton>;
2
+ import FISButtonGroup from ".";
3
+ declare const meta: Meta<typeof FISButtonGroup>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
@@ -17,6 +17,8 @@ type BaseButtonProps = {
17
17
  };
18
18
  type ButtonOption = ComponentPropsWithoutRef<"button"> & BaseButtonProps;
19
19
  export interface GroupButtonProps {
20
+ /** Additional CSS class names to apply to the group button */
21
+ className?: string | undefined;
20
22
  /** Variant of the buttons. 'default' is typically used for text-only buttons */
21
23
  variant?: ButtonVariant;
22
24
  /** Size of the buttons. 'md' is typically used for icon-only buttons */
@@ -26,5 +28,5 @@ export interface GroupButtonProps {
26
28
  /** List of button options */
27
29
  options: ButtonOption[];
28
30
  }
29
- declare const FISGroupButton: React.FC<GroupButtonProps>;
30
- export default FISGroupButton;
31
+ declare const FISButtonGroup: React.FC<GroupButtonProps>;
32
+ export default FISButtonGroup;
@@ -1,4 +1,5 @@
1
1
  import type { Meta } from "@storybook/react";
2
+ import { InputFieldProps } from ".";
2
3
  declare const _default: Meta;
3
4
  export default _default;
4
- export declare const Default: (args: any) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Default: (args: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,10 +12,10 @@ export interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">,
12
12
  iconSuffix?: string | JSX.Element;
13
13
  /**labelSuffix for filter value*/
14
14
  labelSuffix?: string | JSX.Element;
15
- /**isNegative for current field*/
16
- isNegative?: boolean;
17
- /**isActived for current field*/
18
- isActived?: boolean;
15
+ /**negative for current field*/
16
+ negative?: boolean;
17
+ /**actived for current field*/
18
+ actived?: boolean;
19
19
  /** onClick for current field Button */
20
20
  onClickSuffix?: () => void;
21
21
  }
@@ -3,7 +3,7 @@ export interface InputLabelProps {
3
3
  /**textLabel for current field*/
4
4
  textLabel: string;
5
5
  /**Show symbol * as required field*/
6
- isRequired?: boolean;
6
+ required?: boolean;
7
7
  /**Icon for current field*/
8
8
  iconLabel?: React.ReactNode;
9
9
  /**onClickIconLabel for current field*/
@@ -1,3 +1,3 @@
1
- export declare const DivLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
1
+ export declare const DivLabelSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export declare const LabelTextSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
3
3
  export declare const SpanRequiredSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -0,0 +1,5 @@
1
+ import { Meta } from "@storybook/react";
2
+ import FISInputStepper from "./index";
3
+ declare const _default: Meta<typeof FISInputStepper>;
4
+ export default _default;
5
+ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./index").InputStepperProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { InputLabelProps } from "../InputLabel";
3
+ export type InputSize = "md" | "lg";
4
+ export interface InputStepperProps extends Omit<React.ComponentPropsWithoutRef<"input">, "onChange">, Partial<InputLabelProps> {
5
+ min?: number;
6
+ max?: number;
7
+ step?: number;
8
+ defaultValue?: number;
9
+ sizeInput?: InputSize;
10
+ negative?: boolean;
11
+ positive?: boolean;
12
+ message?: string;
13
+ disabled?: boolean;
14
+ readOnly?: boolean;
15
+ StartIcon?: React.ReactNode;
16
+ EndIcon?: React.ReactNode;
17
+ onChange?: (value: number) => void;
18
+ }
19
+ declare const FISInputStepper: React.ForwardRefExoticComponent<InputStepperProps & React.RefAttributes<HTMLInputElement>>;
20
+ export default FISInputStepper;
@@ -0,0 +1,5 @@
1
+ export declare const InputSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
2
+ export declare const DivContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const DivHintSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const SpanHintSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
5
+ export declare const DivWrapperSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -2,20 +2,12 @@ import React from "react";
2
2
  import { InputFieldProps } from "../InputField";
3
3
  import { InputLabelProps } from "../InputLabel";
4
4
  export interface InputTextProps extends Omit<InputFieldProps, "onChange" | "onEnter" | "onBlur">, Partial<InputLabelProps> {
5
- /**isLabel for current field*/
6
- isLabel: boolean;
7
5
  /**Boolean to show the lenght of value user-filled*/
8
6
  showCount?: boolean;
9
7
  /**Hint text for current field*/
10
- hintText?: string;
11
- /**Boolean to show the hint text*/
12
- isHintText?: boolean;
13
- /**errorMessage for current field*/
14
- errorMessage?: string;
15
- /**positiveMessage for current field*/
16
- positiveMessage?: string;
17
- /**isPositive for current field*/
18
- isPositive?: boolean;
8
+ message?: string;
9
+ /**positive for current field*/
10
+ positive?: boolean;
19
11
  /**value for current field*/
20
12
  value?: string;
21
13
  /** Handle onChange action */
@@ -0,0 +1,5 @@
1
+ import { Meta } from "@storybook/react";
2
+ import { TextAreaProps } from "./";
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, TextAreaProps>;
@@ -0,0 +1,33 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ import { InputLabelProps } from "../InputLabel";
3
+ export type InputSize = "md" | "lg";
4
+ export interface TextAreaProps extends Omit<ComponentPropsWithoutRef<"textarea">, "onChange" | "onEnter" | "onBlur">, Partial<InputLabelProps> {
5
+ /**Control the icon of the component*/
6
+ iconSuffix?: React.ReactNode;
7
+ /**Control the size of the component*/
8
+ size: InputSize;
9
+ /**placeholder for current field */
10
+ placeholder: string;
11
+ /**User-filled value*/
12
+ value?: string;
13
+ /**Boolean to show the lenght of value user-filled*/
14
+ showCount?: boolean;
15
+ /**isNegative for current field*/
16
+ negative?: boolean;
17
+ /**isPositive for current field*/
18
+ positive?: boolean;
19
+ /**positiveMessage for current field*/
20
+ message?: string;
21
+ /**Control the width of the component*/
22
+ fixedWidth?: number;
23
+ /**Handle the change value of the field*/
24
+ onChange?: (T: string | null) => void;
25
+ /**Handle onEnter action*/
26
+ onEnter?: (T: string | null) => void;
27
+ /**Handle onBlur action*/
28
+ onBlur?: (T: string | null) => void;
29
+ /**Handle onEnter action*/
30
+ onClickIconSuffix?: () => void;
31
+ }
32
+ declare const FISTextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
33
+ export default FISTextArea;
@@ -0,0 +1,9 @@
1
+ export declare const DicContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const DivResizeSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const DivIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const TextAreaSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
5
+ export declare const DivAreaFieldSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const DivCountSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const SpanHintSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
8
+ export declare const DivBottomSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const TextAreaHint: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -16,6 +16,6 @@ type RadioGroupProps<T extends Value> = {
16
16
  onFocus?: () => void;
17
17
  onBlur?: () => void;
18
18
  };
19
- declare function RadioGroup<T extends Value>({ className, groupLabel, options, name, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: RadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
20
- export default RadioGroup;
19
+ declare function FISRadioGroup<T extends Value>({ className, groupLabel, options, name, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: RadioGroupProps<T>): import("react/jsx-runtime").JSX.Element;
20
+ export default FISRadioGroup;
21
21
  export type { RadioGroupProps };
@@ -3,9 +3,15 @@ export type { ThemeType } from "./styles/design-system";
3
3
  export { default as FISButton } from "./components/Button";
4
4
  export { default as FISLinkButton } from "./components/LinkButton";
5
5
  export { default as FISIconButton } from "./components/IconButton";
6
- export { default as FISGroupButton } from "./components/GroupButton";
6
+ export { default as FISButtonGroup } from "./components/ButtonGroup";
7
+ export { default as FISBreadcrumb } from "./components/Breadcrumb";
7
8
  export { default as FISRadio } from "./components/Radio";
9
+ export { default as FISRadioGroup } from "./components/RadioGroup";
8
10
  export { default as FISCheckbox } from "./components/Checkbox";
11
+ export { default as FISCheckboxGroup } from "./components/CheckboxGroup";
9
12
  export { default as FISInputField } from "./components/Input/InputField";
10
13
  export { default as FISInputText } from "./components/Input/InputText";
11
14
  export { default as FISInputLabel } from "./components/Input/InputLabel";
15
+ export { default as FISAvatar } from "./components/Avatar";
16
+ export { default as FISTextArea } from "./components/Input/TextArea";
17
+ export { default as FISInputStepper } from "./components/Input/InputStepper";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, JSX } from 'react';
3
3
  import { DefaultTheme } from 'styled-components';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
5
 
5
6
  interface ThemeProviderProps {
6
7
  theme?: DefaultTheme;
@@ -2756,7 +2757,7 @@ interface ButtonProps$2 extends ComponentPropsWithoutRef<"button"> {
2756
2757
  /**
2757
2758
  * Defines if the button is currently being requested.
2758
2759
  */
2759
- isLoading?: boolean;
2760
+ loading?: boolean;
2760
2761
  }
2761
2762
  declare const FISButton: React__default.ForwardRefExoticComponent<ButtonProps$2 & React__default.RefAttributes<HTMLButtonElement>>;
2762
2763
 
@@ -2816,6 +2817,8 @@ type BaseButtonProps = {
2816
2817
  };
2817
2818
  type ButtonOption = ComponentPropsWithoutRef<"button"> & BaseButtonProps;
2818
2819
  interface GroupButtonProps {
2820
+ /** Additional CSS class names to apply to the group button */
2821
+ className?: string | undefined;
2819
2822
  /** Variant of the buttons. 'default' is typically used for text-only buttons */
2820
2823
  variant?: ButtonVariant;
2821
2824
  /** Size of the buttons. 'md' is typically used for icon-only buttons */
@@ -2825,7 +2828,20 @@ interface GroupButtonProps {
2825
2828
  /** List of button options */
2826
2829
  options: ButtonOption[];
2827
2830
  }
2828
- declare const FISGroupButton: React__default.FC<GroupButtonProps>;
2831
+ declare const FISButtonGroup: React__default.FC<GroupButtonProps>;
2832
+
2833
+ interface BreadcrumbItemProps extends ComponentPropsWithoutRef<"button"> {
2834
+ icon?: React__default.ReactNode;
2835
+ label?: string;
2836
+ active?: boolean;
2837
+ onClick: () => void;
2838
+ }
2839
+ type BreadcrumbProps = {
2840
+ items: BreadcrumbItemProps[];
2841
+ /** Additional CSS class names to apply to the breadcrumb. */
2842
+ className?: string | undefined;
2843
+ };
2844
+ declare const FISBreadcrumb: React__default.FC<BreadcrumbProps>;
2829
2845
 
2830
2846
  type RadioSize = "sm" | "md";
2831
2847
  type RadioVariant = "primary" | "secondary" | "tertiary";
@@ -2845,6 +2861,26 @@ declare const FISRadio: React__default.ForwardRefExoticComponent<Omit<Omit<React
2845
2861
  inputRef?: Ref<HTMLInputElement>;
2846
2862
  } & React__default.RefAttributes<HTMLLabelElement>>;
2847
2863
 
2864
+ type Value$1 = string | number;
2865
+ type Option$1<T> = {
2866
+ value: T;
2867
+ label: string;
2868
+ };
2869
+ type RadioGroupProps<T extends Value$1> = {
2870
+ className?: string;
2871
+ groupLabel: string;
2872
+ options: Option$1<T>[] | readonly Option$1<T>[];
2873
+ value: T | null;
2874
+ direction?: "row" | "column";
2875
+ name?: string;
2876
+ disabled?: boolean;
2877
+ getOptionDisabled?: (option: Option$1<T>) => boolean;
2878
+ onChange: (nextValue: T) => void;
2879
+ onFocus?: () => void;
2880
+ onBlur?: () => void;
2881
+ };
2882
+ declare function FISRadioGroup<T extends Value$1>({ className, groupLabel, options, name, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: RadioGroupProps<T>): react_jsx_runtime.JSX.Element;
2883
+
2848
2884
  type CheckboxSize = "sm" | "md";
2849
2885
  type CheckboxVariant = "primary" | "secondary" | "tertiary";
2850
2886
  declare const FISCheckbox: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
@@ -2870,11 +2906,30 @@ declare const FISCheckbox: React__default.ForwardRefExoticComponent<Omit<React__
2870
2906
  inputRef?: Ref<HTMLInputElement>;
2871
2907
  } & React__default.RefAttributes<HTMLLabelElement>>;
2872
2908
 
2909
+ type Value = string | number;
2910
+ type Option<T> = {
2911
+ value: T;
2912
+ label: string;
2913
+ };
2914
+ type CheckboxGroupProps<T extends Value> = {
2915
+ className?: string;
2916
+ groupLabel: string;
2917
+ options: Option<T>[] | readonly Option<T>[];
2918
+ value: T[];
2919
+ direction?: "row" | "column";
2920
+ disabled?: boolean;
2921
+ getOptionDisabled?: (option: Option<T>) => boolean;
2922
+ onChange: (nextValue: T[]) => void;
2923
+ onFocus?: () => void;
2924
+ onBlur?: () => void;
2925
+ };
2926
+ declare function FISCheckboxGroup<T extends Value>({ className, groupLabel, options, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: CheckboxGroupProps<T>): react_jsx_runtime.JSX.Element;
2927
+
2873
2928
  type InputTypeSuffix = "icon" | "suffix" | "dropdown";
2874
- type InputSize = "md" | "lg";
2929
+ type InputSize$2 = "md" | "lg";
2875
2930
  interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onClick"> {
2876
2931
  /**Control the size of the component*/
2877
- sizeInput?: InputSize;
2932
+ sizeInput?: InputSize$2;
2878
2933
  /**Control the style type of component: "icon" | "suffix" | "dropdown" */
2879
2934
  typeSuffix?: InputTypeSuffix;
2880
2935
  /**Prefix for filter value*/
@@ -2883,10 +2938,10 @@ interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onCli
2883
2938
  iconSuffix?: string | JSX.Element;
2884
2939
  /**labelSuffix for filter value*/
2885
2940
  labelSuffix?: string | JSX.Element;
2886
- /**isNegative for current field*/
2887
- isNegative?: boolean;
2888
- /**isActived for current field*/
2889
- isActived?: boolean;
2941
+ /**negative for current field*/
2942
+ negative?: boolean;
2943
+ /**actived for current field*/
2944
+ actived?: boolean;
2890
2945
  /** onClick for current field Button */
2891
2946
  onClickSuffix?: () => void;
2892
2947
  }
@@ -2896,7 +2951,7 @@ interface InputLabelProps {
2896
2951
  /**textLabel for current field*/
2897
2952
  textLabel: string;
2898
2953
  /**Show symbol * as required field*/
2899
- isRequired?: boolean;
2954
+ required?: boolean;
2900
2955
  /**Icon for current field*/
2901
2956
  iconLabel?: React__default.ReactNode;
2902
2957
  /**onClickIconLabel for current field*/
@@ -2905,20 +2960,12 @@ interface InputLabelProps {
2905
2960
  declare const FISInputLabel: React__default.ForwardRefExoticComponent<InputLabelProps & React__default.RefAttributes<unknown>>;
2906
2961
 
2907
2962
  interface InputTextProps extends Omit<InputFieldProps, "onChange" | "onEnter" | "onBlur">, Partial<InputLabelProps> {
2908
- /**isLabel for current field*/
2909
- isLabel: boolean;
2910
2963
  /**Boolean to show the lenght of value user-filled*/
2911
2964
  showCount?: boolean;
2912
2965
  /**Hint text for current field*/
2913
- hintText?: string;
2914
- /**Boolean to show the hint text*/
2915
- isHintText?: boolean;
2916
- /**errorMessage for current field*/
2917
- errorMessage?: string;
2918
- /**positiveMessage for current field*/
2919
- positiveMessage?: string;
2920
- /**isPositive for current field*/
2921
- isPositive?: boolean;
2966
+ message?: string;
2967
+ /**positive for current field*/
2968
+ positive?: boolean;
2922
2969
  /**value for current field*/
2923
2970
  value?: string;
2924
2971
  /** Handle onChange action */
@@ -2932,4 +2979,71 @@ interface InputTextProps extends Omit<InputFieldProps, "onChange" | "onEnter" |
2932
2979
  }
2933
2980
  declare const FISInputText: React__default.ForwardRefExoticComponent<InputTextProps & React__default.RefAttributes<HTMLInputElement>>;
2934
2981
 
2935
- export { FISButton, FISCheckbox, FISGroupButton, FISIconButton, FISInputField, FISInputLabel, FISInputText, FISLinkButton, FISRadio, FISThemeProvider, type ThemeType };
2982
+ type BadgeType = "rounded" | "square" | "without";
2983
+ type AvatarSize = "2xs" | "xs" | "sm" | "md" | "lg" | "xl";
2984
+ type StatusType = "green" | "red" | "yellow" | "blue" | "neutral";
2985
+ type ColorType = "neutral" | "orange" | "yellow" | "lime" | "green" | "ocean" | "blue" | "indigo" | "violet" | "pink" | "disable";
2986
+ type AvatarProps = {
2987
+ className?: string | undefined;
2988
+ src?: string;
2989
+ icon?: React__default.ReactNode;
2990
+ alt?: string;
2991
+ letter?: string;
2992
+ size?: AvatarSize;
2993
+ status?: StatusType;
2994
+ isBadgeDot?: boolean;
2995
+ badge?: BadgeType;
2996
+ color?: ColorType;
2997
+ };
2998
+ declare const FISAvatar: React__default.FC<AvatarProps>;
2999
+
3000
+ type InputSize$1 = "md" | "lg";
3001
+ interface TextAreaProps extends Omit<ComponentPropsWithoutRef<"textarea">, "onChange" | "onEnter" | "onBlur">, Partial<InputLabelProps> {
3002
+ /**Control the icon of the component*/
3003
+ iconSuffix?: React__default.ReactNode;
3004
+ /**Control the size of the component*/
3005
+ size: InputSize$1;
3006
+ /**placeholder for current field */
3007
+ placeholder: string;
3008
+ /**User-filled value*/
3009
+ value?: string;
3010
+ /**Boolean to show the lenght of value user-filled*/
3011
+ showCount?: boolean;
3012
+ /**isNegative for current field*/
3013
+ negative?: boolean;
3014
+ /**isPositive for current field*/
3015
+ positive?: boolean;
3016
+ /**positiveMessage for current field*/
3017
+ message?: string;
3018
+ /**Control the width of the component*/
3019
+ fixedWidth?: number;
3020
+ /**Handle the change value of the field*/
3021
+ onChange?: (T: string | null) => void;
3022
+ /**Handle onEnter action*/
3023
+ onEnter?: (T: string | null) => void;
3024
+ /**Handle onBlur action*/
3025
+ onBlur?: (T: string | null) => void;
3026
+ /**Handle onEnter action*/
3027
+ onClickIconSuffix?: () => void;
3028
+ }
3029
+ declare const FISTextArea: React__default.ForwardRefExoticComponent<TextAreaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
3030
+
3031
+ type InputSize = "md" | "lg";
3032
+ interface InputStepperProps extends Omit<React__default.ComponentPropsWithoutRef<"input">, "onChange">, Partial<InputLabelProps> {
3033
+ min?: number;
3034
+ max?: number;
3035
+ step?: number;
3036
+ defaultValue?: number;
3037
+ sizeInput?: InputSize;
3038
+ negative?: boolean;
3039
+ positive?: boolean;
3040
+ message?: string;
3041
+ disabled?: boolean;
3042
+ readOnly?: boolean;
3043
+ StartIcon?: React__default.ReactNode;
3044
+ EndIcon?: React__default.ReactNode;
3045
+ onChange?: (value: number) => void;
3046
+ }
3047
+ declare const FISInputStepper: React__default.ForwardRefExoticComponent<InputStepperProps & React__default.RefAttributes<HTMLInputElement>>;
3048
+
3049
+ export { FISAvatar, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISIconButton, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISLinkButton, FISRadio, FISRadioGroup, FISTextArea, FISThemeProvider, type ThemeType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",