fis-component 0.0.18 → 0.0.20
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/README.md +93 -0
- package/dist/cjs/index.js +5708 -9490
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/assets/icons/CategoryIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/CheckedIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/CloseIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/DropdownIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/Fpt.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/IndeterminateIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/RequestButtonLoadingIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/RequestButtonLoadingWhiteIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/SVGIconProps.d.ts +2 -0
- package/dist/cjs/types/src/assets/icons/index.d.ts +8 -0
- package/dist/cjs/types/src/components/Button/Button.stories.d.ts +45 -0
- package/dist/cjs/types/src/components/Button/index.d.ts +25 -0
- package/dist/cjs/types/src/components/Button/styles.d.ts +17 -0
- package/dist/cjs/types/src/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/dist/cjs/types/src/components/Checkbox/index.d.ts +49 -0
- package/dist/cjs/types/src/components/Checkbox/styles.d.ts +15 -0
- package/dist/cjs/types/src/components/GroupButton/GroupButton.stories.d.ts +7 -0
- package/dist/cjs/types/src/components/GroupButton/index.d.ts +30 -0
- package/dist/cjs/types/src/components/GroupButton/styles.d.ts +10 -0
- package/dist/cjs/types/src/components/GroupCheckbox/GroupCheckbox.stories.d.ts +11 -0
- package/dist/cjs/types/src/components/GroupCheckbox/index.d.ts +20 -0
- package/dist/cjs/types/src/components/GroupCheckbox/styles.d.ts +4 -0
- package/dist/cjs/types/src/components/GroupRadio/GroupRadio.stories.d.ts +9 -0
- package/dist/cjs/types/src/components/GroupRadio/index.d.ts +21 -0
- package/dist/cjs/types/src/components/GroupRadio/styles.d.ts +4 -0
- package/dist/cjs/types/src/components/IconButton/IconButton.stories.d.ts +37 -0
- package/dist/cjs/types/src/components/IconButton/index.d.ts +17 -0
- package/dist/cjs/types/src/components/IconButton/styles.d.ts +8 -0
- package/dist/cjs/types/src/components/Input/InputField/InputField.stories.d.ts +4 -0
- package/dist/cjs/types/src/components/Input/InputField/index.d.ts +23 -0
- package/dist/cjs/types/src/components/Input/InputField/styles.d.ts +9 -0
- package/dist/cjs/types/src/components/Input/InputLabel/InputLabel.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/Input/InputLabel/index.d.ts +13 -0
- package/dist/cjs/types/src/components/Input/InputLabel/styles.d.ts +3 -0
- package/dist/cjs/types/src/components/Input/InputText/InputText.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/Input/InputText/index.d.ts +31 -0
- package/dist/cjs/types/src/components/Input/InputText/styles.d.ts +4 -0
- package/dist/cjs/types/src/components/LinkButton/LinkButton.stories.d.ts +43 -0
- package/dist/cjs/types/src/components/LinkButton/index.d.ts +23 -0
- package/dist/cjs/types/src/components/LinkButton/styles.d.ts +9 -0
- package/dist/cjs/types/src/components/Provider/index.d.ts +8 -0
- package/dist/cjs/types/src/components/Radio/Radio.stories.d.ts +6 -0
- package/dist/cjs/types/src/components/Radio/index.d.ts +35 -0
- package/dist/cjs/types/src/components/Radio/styles.d.ts +15 -0
- package/dist/cjs/types/src/index.d.ts +11 -0
- package/dist/cjs/types/src/styles/design-system/index.d.ts +3 -0
- package/dist/cjs/types/src/styles/design-system/variable.d.ts +2726 -0
- package/dist/cjs/types/src/utils/getTheme.d.ts +5 -0
- package/dist/cjs/types/vite.config.d.ts +2 -0
- package/dist/cjs/types/vitest.workspace.d.ts +2 -0
- package/dist/esm/index.js +5562 -9335
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/assets/icons/CategoryIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/CheckedIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/CloseIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/DropdownIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/Fpt.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/IndeterminateIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/RequestButtonLoadingIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/RequestButtonLoadingWhiteIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/SVGIconProps.d.ts +2 -0
- package/dist/esm/types/src/assets/icons/index.d.ts +8 -0
- package/dist/esm/types/src/components/Button/Button.stories.d.ts +45 -0
- package/dist/esm/types/src/components/Button/index.d.ts +25 -0
- package/dist/esm/types/src/components/Button/styles.d.ts +17 -0
- package/dist/esm/types/src/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/dist/esm/types/src/components/Checkbox/index.d.ts +49 -0
- package/dist/esm/types/src/components/Checkbox/styles.d.ts +15 -0
- package/dist/esm/types/src/components/GroupButton/GroupButton.stories.d.ts +7 -0
- package/dist/esm/types/src/components/GroupButton/index.d.ts +30 -0
- package/dist/esm/types/src/components/GroupButton/styles.d.ts +10 -0
- package/dist/esm/types/src/components/GroupCheckbox/GroupCheckbox.stories.d.ts +11 -0
- package/dist/esm/types/src/components/GroupCheckbox/index.d.ts +20 -0
- package/dist/esm/types/src/components/GroupCheckbox/styles.d.ts +4 -0
- package/dist/esm/types/src/components/GroupRadio/GroupRadio.stories.d.ts +9 -0
- package/dist/esm/types/src/components/GroupRadio/index.d.ts +21 -0
- package/dist/esm/types/src/components/GroupRadio/styles.d.ts +4 -0
- package/dist/esm/types/src/components/IconButton/IconButton.stories.d.ts +37 -0
- package/dist/esm/types/src/components/IconButton/index.d.ts +17 -0
- package/dist/esm/types/src/components/IconButton/styles.d.ts +8 -0
- package/dist/esm/types/src/components/Input/InputField/InputField.stories.d.ts +4 -0
- package/dist/esm/types/src/components/Input/InputField/index.d.ts +23 -0
- package/dist/esm/types/src/components/Input/InputField/styles.d.ts +9 -0
- package/dist/esm/types/src/components/Input/InputLabel/InputLabel.stories.d.ts +5 -0
- package/dist/esm/types/src/components/Input/InputLabel/index.d.ts +13 -0
- package/dist/esm/types/src/components/Input/InputLabel/styles.d.ts +3 -0
- package/dist/esm/types/src/components/Input/InputText/InputText.stories.d.ts +5 -0
- package/dist/esm/types/src/components/Input/InputText/index.d.ts +31 -0
- package/dist/esm/types/src/components/Input/InputText/styles.d.ts +4 -0
- package/dist/esm/types/src/components/LinkButton/LinkButton.stories.d.ts +43 -0
- package/dist/esm/types/src/components/LinkButton/index.d.ts +23 -0
- package/dist/esm/types/src/components/LinkButton/styles.d.ts +9 -0
- package/dist/esm/types/src/components/Provider/index.d.ts +8 -0
- package/dist/esm/types/src/components/Radio/Radio.stories.d.ts +6 -0
- package/dist/esm/types/src/components/Radio/index.d.ts +35 -0
- package/dist/esm/types/src/components/Radio/styles.d.ts +15 -0
- package/dist/esm/types/src/index.d.ts +11 -0
- package/dist/esm/types/src/styles/design-system/index.d.ts +3 -0
- package/dist/esm/types/src/styles/design-system/variable.d.ts +2726 -0
- package/dist/esm/types/src/utils/getTheme.d.ts +5 -0
- package/dist/esm/types/vite.config.d.ts +2 -0
- package/dist/esm/types/vitest.workspace.d.ts +2 -0
- package/dist/index.d.ts +2933 -3
- package/package.json +34 -21
- package/dist/cjs/types/components/Button/index.d.ts +0 -2
- package/dist/cjs/types/components/MyComponent/index.d.ts +0 -2
- package/dist/cjs/types/components/Page/index.d.ts +0 -4
- package/dist/cjs/types/components/Page/styled.d.ts +0 -1
- package/dist/cjs/types/components/Page/types.d.ts +0 -4
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/types/components/Button/index.d.ts +0 -2
- package/dist/esm/types/components/MyComponent/index.d.ts +0 -2
- package/dist/esm/types/components/Page/index.d.ts +0 -4
- package/dist/esm/types/components/Page/styled.d.ts +0 -1
- package/dist/esm/types/components/Page/types.d.ts +0 -4
- package/dist/esm/types/index.d.ts +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Fpt } from "./Fpt";
|
|
2
|
+
export { default as CategoryIcon } from "./CategoryIcon";
|
|
3
|
+
export { default as CloseIcon } from "./CloseIcon";
|
|
4
|
+
export { default as DropdownIcon } from "./DropdownIcon";
|
|
5
|
+
export { default as RequestButtonLoadingWhiteIcon } from "./RequestButtonLoadingWhiteIcon";
|
|
6
|
+
export { default as CheckedIcon } from "./CheckedIcon";
|
|
7
|
+
export { default as IndeterminateIcon } from "./IndeterminateIcon";
|
|
8
|
+
export { default as RequestButtonLoadingIcon } from "./RequestButtonLoadingIcon";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ButtonProps } from "./";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
tags: string[];
|
|
7
|
+
args: {
|
|
8
|
+
children: string;
|
|
9
|
+
size: "md";
|
|
10
|
+
disabled: false;
|
|
11
|
+
variant: "primary";
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
size: {
|
|
15
|
+
control: "radio";
|
|
16
|
+
options: (import("./").ButtonSize | undefined)[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
control: "boolean";
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
onClick: {
|
|
24
|
+
action: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
variant: {
|
|
28
|
+
control: "select";
|
|
29
|
+
options: (import("./").ButtonVariant | undefined)[];
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
active: {
|
|
33
|
+
control: "boolean";
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
isLoading: {
|
|
37
|
+
control: "boolean";
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default meta;
|
|
43
|
+
type Story = StoryObj<typeof meta>;
|
|
44
|
+
export declare const Default: Story;
|
|
45
|
+
export declare const Size: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "primary-negative" | "secondary-negative" | "primary-white" | "secondary-white";
|
|
3
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
+
export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
/** whether the button should be active */
|
|
6
|
+
active?: boolean;
|
|
7
|
+
/**Change the design of button*/
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
/** Size md for only button icon */
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the element that stands before the children element.
|
|
13
|
+
*/
|
|
14
|
+
startIcon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Defines the element that stands after the children element.
|
|
17
|
+
*/
|
|
18
|
+
endIcon?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Defines if the button is currently being requested.
|
|
21
|
+
*/
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const FISButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export default FISButton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from ".";
|
|
2
|
+
import { RequestButtonLoadingIcon, RequestButtonLoadingWhiteIcon } from "../../assets/icons";
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
$variant: ButtonVariant;
|
|
5
|
+
$size: ButtonSize;
|
|
6
|
+
$active?: boolean;
|
|
7
|
+
$isLoading?: boolean;
|
|
8
|
+
}
|
|
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
|
+
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;
|
|
11
|
+
export declare const SvgSpinningWhiteIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
12
|
+
ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
13
|
+
}, never>> & string & Omit<typeof RequestButtonLoadingWhiteIcon, keyof import("react").Component<any, {}, any>>;
|
|
14
|
+
export declare const SvgSpinningIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
16
|
+
}, never>> & string & Omit<typeof RequestButtonLoadingIcon, keyof import("react").Component<any, {}, any>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from "@storybook/react";
|
|
2
|
+
import FISCheckbox from ".";
|
|
3
|
+
declare const _default: Meta<typeof FISCheckbox>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: StoryFn<typeof FISCheckbox>;
|
|
6
|
+
export declare const WithSubLabel: StoryFn<typeof FISCheckbox>;
|
|
7
|
+
export declare const Sizes: StoryFn<typeof FISCheckbox>;
|
|
8
|
+
export declare const Variants: StoryFn<typeof FISCheckbox>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { Ref, ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type CheckboxSize = "sm" | "md";
|
|
3
|
+
export type CheckboxVariant = "primary" | "secondary" | "tertiary";
|
|
4
|
+
type CheckboxProps = ComponentPropsWithoutRef<"input"> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Size for checkbox */
|
|
7
|
+
size?: CheckboxSize;
|
|
8
|
+
/** Type of checkbox */
|
|
9
|
+
variant?: CheckboxVariant;
|
|
10
|
+
/**
|
|
11
|
+
* Defines the string that subLabel the checkbox element.
|
|
12
|
+
*/
|
|
13
|
+
subLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If `true`, the checkbox will be checked.
|
|
16
|
+
* You'll need to pass `onChange` to update its value (since it is now controlled).
|
|
17
|
+
*/
|
|
18
|
+
indeterminate?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, the checkbox will be disabled.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
25
|
+
};
|
|
26
|
+
declare const FISCheckbox: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
/** Size for checkbox */
|
|
29
|
+
size?: CheckboxSize;
|
|
30
|
+
/** Type of checkbox */
|
|
31
|
+
variant?: CheckboxVariant;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the string that subLabel the checkbox element.
|
|
34
|
+
*/
|
|
35
|
+
subLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* If `true`, the checkbox will be checked.
|
|
38
|
+
* You'll need to pass `onChange` to update its value (since it is now controlled).
|
|
39
|
+
*/
|
|
40
|
+
indeterminate?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If `true`, the checkbox will be disabled.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
47
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
48
|
+
export default FISCheckbox;
|
|
49
|
+
export type { CheckboxProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CheckboxSize, CheckboxVariant } from ".";
|
|
2
|
+
interface CheckboxControlProps {
|
|
3
|
+
$checked: boolean;
|
|
4
|
+
$indeterminate: boolean;
|
|
5
|
+
$disabled: boolean;
|
|
6
|
+
$size?: CheckboxSize;
|
|
7
|
+
$variant?: CheckboxVariant;
|
|
8
|
+
}
|
|
9
|
+
export declare const CheckboxControlStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
10
|
+
export declare const LabelContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
11
|
+
export declare const LabelStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
12
|
+
export declare const SubLabelStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
13
|
+
export declare const VisuallyHiddenStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
14
|
+
export declare const CheckboxContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, CheckboxControlProps>> & string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import FISGroupButton from ".";
|
|
3
|
+
declare const meta: Meta<typeof FISGroupButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Size: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
3
|
+
export type ButtonVariant = "default" | "negative";
|
|
4
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
5
|
+
type BaseButtonProps = {
|
|
6
|
+
label: string | React.ReactNode;
|
|
7
|
+
startIcon?: React.ReactNode;
|
|
8
|
+
endIcon?: React.ReactNode;
|
|
9
|
+
} | {
|
|
10
|
+
label?: string | React.ReactNode;
|
|
11
|
+
startIcon: React.ReactNode;
|
|
12
|
+
endIcon?: React.ReactNode;
|
|
13
|
+
} | {
|
|
14
|
+
label?: string | React.ReactNode;
|
|
15
|
+
startIcon?: React.ReactNode;
|
|
16
|
+
endIcon: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
type ButtonOption = ComponentPropsWithoutRef<"button"> & BaseButtonProps;
|
|
19
|
+
export interface GroupButtonProps {
|
|
20
|
+
/** Variant of the buttons. 'default' is typically used for text-only buttons */
|
|
21
|
+
variant?: ButtonVariant;
|
|
22
|
+
/** Size of the buttons. 'md' is typically used for icon-only buttons */
|
|
23
|
+
size?: ButtonSize;
|
|
24
|
+
/** Disabled state of all buttons in the group */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** List of button options */
|
|
27
|
+
options: ButtonOption[];
|
|
28
|
+
}
|
|
29
|
+
declare const FISGroupButton: React.FC<GroupButtonProps>;
|
|
30
|
+
export default FISGroupButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from ".";
|
|
2
|
+
interface GroupButtonItemProps {
|
|
3
|
+
$variant?: ButtonVariant;
|
|
4
|
+
$size: ButtonSize;
|
|
5
|
+
$onlyIcon?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const GroupButtonContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const ButtonItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, GroupButtonItemProps>> & string;
|
|
9
|
+
export declare const IconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import FISCheckboxGroup from ".";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FISCheckboxGroup>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const RowDirection: Story;
|
|
8
|
+
export declare const ColumnDirection: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const WithPreselectedValues: Story;
|
|
11
|
+
export declare const WithDisabledOptions: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Value = string | number;
|
|
2
|
+
type Option<T> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
type CheckboxGroupProps<T extends Value> = {
|
|
7
|
+
className?: string;
|
|
8
|
+
groupLabel: string;
|
|
9
|
+
options: Option<T>[] | readonly Option<T>[];
|
|
10
|
+
value: T[];
|
|
11
|
+
direction?: "row" | "column";
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
getOptionDisabled?: (option: Option<T>) => boolean;
|
|
14
|
+
onChange: (nextValue: T[]) => void;
|
|
15
|
+
onFocus?: () => void;
|
|
16
|
+
onBlur?: () => void;
|
|
17
|
+
};
|
|
18
|
+
declare function FISCheckboxGroup<T extends Value>({ className, groupLabel, options, value, direction, disabled, getOptionDisabled, onChange, onFocus, onBlur, }: CheckboxGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default FISCheckboxGroup;
|
|
20
|
+
export type { CheckboxGroupProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DivGroupContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$direction: "row" | "column";
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const DivScreenReaderLabelSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta } from "@storybook/react";
|
|
2
|
+
import { RadioGroupProps } from ".";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, RadioGroupProps<string>>;
|
|
6
|
+
export declare const Disabled: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, RadioGroupProps<string>>;
|
|
7
|
+
export declare const ColumnLayout: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, RadioGroupProps<string>>;
|
|
8
|
+
export declare const WithCustomDisabledOptions: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, RadioGroupProps<string>>;
|
|
9
|
+
export declare const NoInitialSelection: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, RadioGroupProps<string>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Value = string | number;
|
|
2
|
+
type Option<T> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
type RadioGroupProps<T extends Value> = {
|
|
7
|
+
className?: string;
|
|
8
|
+
groupLabel: string;
|
|
9
|
+
options: Option<T>[] | readonly Option<T>[];
|
|
10
|
+
value: T | null;
|
|
11
|
+
direction?: "row" | "column";
|
|
12
|
+
name?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
getOptionDisabled?: (option: Option<T>) => boolean;
|
|
15
|
+
onChange: (nextValue: T) => void;
|
|
16
|
+
onFocus?: () => void;
|
|
17
|
+
onBlur?: () => void;
|
|
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;
|
|
21
|
+
export type { RadioGroupProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DivContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$direction: "row" | "column";
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const DivScreenReaderLabelSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ButtonProps } from ".";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
tags: string[];
|
|
7
|
+
args: {
|
|
8
|
+
size: "md";
|
|
9
|
+
disabled: false;
|
|
10
|
+
variant: "primary";
|
|
11
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
size: {
|
|
15
|
+
control: "radio";
|
|
16
|
+
options: import(".").ButtonSize[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
control: "boolean";
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
onClick: {
|
|
24
|
+
action: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
variant: {
|
|
28
|
+
control: "select";
|
|
29
|
+
options: (import(".").ButtonVariant | undefined)[];
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
export declare const Default: Story;
|
|
37
|
+
export declare const Size: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export type ButtonVariant = "primary" | "secondary" | "secondary-invisible" | "tertiary" | "tertiary-invisible" | "primary-negative" | "secondary-negative" | "secondary-invisible-negative" | "primary-white" | "secondary-white" | "secondary-invisible-white";
|
|
3
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
+
export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
/**Change the design of button*/
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
/** Size md for only button icon */
|
|
8
|
+
size: ButtonSize;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the icon element.
|
|
11
|
+
*/
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/** whether the button should be active */
|
|
14
|
+
active?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const FISIconButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export default FISIconButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from ".";
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
$variant: ButtonVariant;
|
|
4
|
+
$size: ButtonSize;
|
|
5
|
+
$active: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, JSX } from "react";
|
|
2
|
+
export type InputTypeSuffix = "icon" | "suffix" | "dropdown";
|
|
3
|
+
export type InputSize = "md" | "lg";
|
|
4
|
+
export interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onClick"> {
|
|
5
|
+
/**Control the size of the component*/
|
|
6
|
+
sizeInput?: InputSize;
|
|
7
|
+
/**Control the style type of component: "icon" | "suffix" | "dropdown" */
|
|
8
|
+
typeSuffix?: InputTypeSuffix;
|
|
9
|
+
/**Prefix for filter value*/
|
|
10
|
+
iconPrefix?: string | JSX.Element;
|
|
11
|
+
/**iconSuffix for filter value*/
|
|
12
|
+
iconSuffix?: string | JSX.Element;
|
|
13
|
+
/**labelSuffix for filter value*/
|
|
14
|
+
labelSuffix?: string | JSX.Element;
|
|
15
|
+
/**isNegative for current field*/
|
|
16
|
+
isNegative?: boolean;
|
|
17
|
+
/**isActived for current field*/
|
|
18
|
+
isActived?: boolean;
|
|
19
|
+
/** onClick for current field Button */
|
|
20
|
+
onClickSuffix?: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const FISInputField: import("react").ForwardRefExoticComponent<InputFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default FISInputField;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 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 DivIconSuffixSC: 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 SpanTextDropSC: 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 DivIconDropSC: 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 DivDropdownSC: 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 DivSuffixSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const SpanTextSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
|
+
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;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Meta } from "@storybook/react";
|
|
2
|
+
import { InputLabelProps } from ".";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, InputLabelProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface InputLabelProps {
|
|
3
|
+
/**textLabel for current field*/
|
|
4
|
+
textLabel: string;
|
|
5
|
+
/**Show symbol * as required field*/
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
/**Icon for current field*/
|
|
8
|
+
iconLabel?: React.ReactNode;
|
|
9
|
+
/**onClickIconLabel for current field*/
|
|
10
|
+
onClickIconLabel?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const FISInputLabel: React.ForwardRefExoticComponent<InputLabelProps & React.RefAttributes<unknown>>;
|
|
13
|
+
export default FISInputLabel;
|
|
@@ -0,0 +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;
|
|
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
|
+
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 type { Meta } from "@storybook/react";
|
|
2
|
+
import { InputTextProps } from ".";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, InputTextProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputFieldProps } from "../InputField";
|
|
3
|
+
import { InputLabelProps } from "../InputLabel";
|
|
4
|
+
export interface InputTextProps extends Omit<InputFieldProps, "onChange" | "onEnter" | "onBlur">, Partial<InputLabelProps> {
|
|
5
|
+
/**isLabel for current field*/
|
|
6
|
+
isLabel: boolean;
|
|
7
|
+
/**Boolean to show the lenght of value user-filled*/
|
|
8
|
+
showCount?: boolean;
|
|
9
|
+
/**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;
|
|
19
|
+
/**value for current field*/
|
|
20
|
+
value?: string;
|
|
21
|
+
/** Handle onChange action */
|
|
22
|
+
onChange?: (value: string | null) => void;
|
|
23
|
+
/** Handle onEnter action */
|
|
24
|
+
onEnter?: (value: string | null) => void;
|
|
25
|
+
/** Handle onBlur action */
|
|
26
|
+
onBlur?: (value: string | null) => void;
|
|
27
|
+
/** Handle onKeyDown action */
|
|
28
|
+
onKeyDown?: (event: unknown) => void;
|
|
29
|
+
}
|
|
30
|
+
declare const FISInputText: React.ForwardRefExoticComponent<InputTextProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
export default FISInputText;
|
|
@@ -0,0 +1,4 @@
|
|
|
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 SpanCountSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
3
|
+
export declare const DivHintWrapperSC: 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;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ButtonProps } from ".";
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
tags: string[];
|
|
7
|
+
args: {
|
|
8
|
+
children: string;
|
|
9
|
+
size: "sm";
|
|
10
|
+
disabled: false;
|
|
11
|
+
variant: "default";
|
|
12
|
+
startIcon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
underline: false;
|
|
14
|
+
};
|
|
15
|
+
argTypes: {
|
|
16
|
+
size: {
|
|
17
|
+
control: "radio";
|
|
18
|
+
options: import(".").ButtonSize[];
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
control: "boolean";
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
onClick: {
|
|
26
|
+
action: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
control: "select";
|
|
31
|
+
options: (import(".").ButtonVariant | undefined)[];
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
underline: {
|
|
35
|
+
control: "boolean";
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
export declare const Default: Story;
|
|
43
|
+
export declare const Size: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export type ButtonVariant = "default" | "hight-priority" | "negative" | "white";
|
|
3
|
+
export type ButtonSize = "xs" | "sm";
|
|
4
|
+
export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
/**Change the design of button*/
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
/** Size md for only button icon */
|
|
8
|
+
size: ButtonSize;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the element that stands before the children element.
|
|
11
|
+
*/
|
|
12
|
+
startIcon?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the element that stands after the children element.
|
|
15
|
+
*/
|
|
16
|
+
endIcon?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the type of the button.
|
|
19
|
+
*/
|
|
20
|
+
underline?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const FISLinkButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export default FISLinkButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonSize, ButtonVariant } from ".";
|
|
2
|
+
interface ButtonProps {
|
|
3
|
+
$variant?: ButtonVariant;
|
|
4
|
+
$size: ButtonSize;
|
|
5
|
+
$underline?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const LinkButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
|
|
8
|
+
export declare const IconStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
|
+
export {};
|