fis-component 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2638 -3027
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/assets/icons/LevelingIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/NoDataIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/NoResultIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/RemoveIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/SearchIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/index.d.ts +5 -0
- package/dist/cjs/types/src/components/ChipButton/index.d.ts +1 -1
- package/dist/cjs/types/src/components/Combobox/Combobox.stories.d.ts +2 -2
- package/dist/cjs/types/src/components/Combobox/MultipleValue.d.ts +6 -1
- package/dist/cjs/types/src/components/Combobox/index.d.ts +2 -28
- package/dist/cjs/types/src/components/Combobox/styles.d.ts +8 -20
- package/dist/cjs/types/src/components/Combobox/types.d.ts +33 -0
- package/dist/cjs/types/src/components/MenuItem/MenuItem.stories.d.ts +19 -0
- package/dist/cjs/types/src/components/MenuItem/index.d.ts +4 -0
- package/dist/cjs/types/src/components/MenuItem/styles.d.ts +15 -0
- package/dist/cjs/types/src/components/MenuItem/types.d.ts +14 -0
- package/dist/cjs/types/src/components/MenuSection/MenuSection.stories.d.ts +9 -0
- package/dist/cjs/types/src/components/MenuSection/index.d.ts +11 -0
- package/dist/cjs/types/src/components/MenuSection/styles.d.ts +9 -0
- package/dist/cjs/types/src/components/MenuSelect/MenuSelect.stories.d.ts +64 -0
- package/dist/cjs/types/src/components/MenuSelect/index.d.ts +4 -0
- package/dist/cjs/types/src/components/MenuSelect/styles.d.ts +12 -0
- package/dist/cjs/types/src/components/MenuSelect/types.d.ts +37 -0
- package/dist/cjs/types/src/components/Select/Select.stories.d.ts +7 -0
- package/dist/cjs/types/src/components/Select/index.d.ts +3 -0
- package/dist/cjs/types/src/components/Select/styles.d.ts +4 -0
- package/dist/cjs/types/src/components/Select/types.d.ts +31 -0
- package/dist/cjs/types/src/components/SelectItem/SelectItem.stories.d.ts +12 -0
- package/dist/cjs/types/src/components/SelectItem/index.d.ts +20 -0
- package/dist/cjs/types/src/components/SelectItem/styles.d.ts +10 -0
- package/dist/cjs/types/src/index.d.ts +5 -0
- package/dist/cjs/types/src/styles/design-system/variable.d.ts +491 -485
- package/dist/cjs/types/src/utils/getTheme.d.ts +491 -485
- package/dist/esm/index.js +2635 -3029
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/assets/icons/LevelingIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/NoDataIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/NoResultIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/RemoveIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/SearchIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/index.d.ts +5 -0
- package/dist/esm/types/src/components/ChipButton/index.d.ts +1 -1
- package/dist/esm/types/src/components/Combobox/Combobox.stories.d.ts +2 -2
- package/dist/esm/types/src/components/Combobox/MultipleValue.d.ts +6 -1
- package/dist/esm/types/src/components/Combobox/index.d.ts +2 -28
- package/dist/esm/types/src/components/Combobox/styles.d.ts +8 -20
- package/dist/esm/types/src/components/Combobox/types.d.ts +33 -0
- package/dist/esm/types/src/components/MenuItem/MenuItem.stories.d.ts +19 -0
- package/dist/esm/types/src/components/MenuItem/index.d.ts +4 -0
- package/dist/esm/types/src/components/MenuItem/styles.d.ts +15 -0
- package/dist/esm/types/src/components/MenuItem/types.d.ts +14 -0
- package/dist/esm/types/src/components/MenuSection/MenuSection.stories.d.ts +9 -0
- package/dist/esm/types/src/components/MenuSection/index.d.ts +11 -0
- package/dist/esm/types/src/components/MenuSection/styles.d.ts +9 -0
- package/dist/esm/types/src/components/MenuSelect/MenuSelect.stories.d.ts +64 -0
- package/dist/esm/types/src/components/MenuSelect/index.d.ts +4 -0
- package/dist/esm/types/src/components/MenuSelect/styles.d.ts +12 -0
- package/dist/esm/types/src/components/MenuSelect/types.d.ts +37 -0
- package/dist/esm/types/src/components/Select/Select.stories.d.ts +7 -0
- package/dist/esm/types/src/components/Select/index.d.ts +3 -0
- package/dist/esm/types/src/components/Select/styles.d.ts +4 -0
- package/dist/esm/types/src/components/Select/types.d.ts +31 -0
- package/dist/esm/types/src/components/SelectItem/SelectItem.stories.d.ts +12 -0
- package/dist/esm/types/src/components/SelectItem/index.d.ts +20 -0
- package/dist/esm/types/src/components/SelectItem/styles.d.ts +10 -0
- package/dist/esm/types/src/index.d.ts +5 -0
- package/dist/esm/types/src/styles/design-system/variable.d.ts +491 -485
- package/dist/esm/types/src/utils/getTheme.d.ts +491 -485
- package/dist/index.d.ts +624 -502
- package/package.json +5 -3
- package/src/fonts/InterDisplay-Bold.woff2 +0 -0
- package/src/fonts/InterDisplay-Light.woff2 +0 -0
- package/src/fonts/InterDisplay-Medium.woff2 +0 -0
- package/src/fonts/InterDisplay-Regular.woff2 +0 -0
- package/src/fonts/InterVariable.ttf +0 -0
- package/src/styles/design-system/variable.ts +491 -485
|
@@ -11,7 +11,9 @@ export { default as RequestButtonLoadingWhiteIcon } from "./RequestButtonLoading
|
|
|
11
11
|
export { default as CheckedIcon } from "./CheckedIcon";
|
|
12
12
|
export { default as IndeterminateIcon } from "./IndeterminateIcon";
|
|
13
13
|
export { default as RequestButtonLoadingIcon } from "./RequestButtonLoadingIcon";
|
|
14
|
+
export { default as SearchIcon } from "./SearchIcon";
|
|
14
15
|
export { default as ResizeIcon } from "./ResizeIcon";
|
|
16
|
+
export { default as LevelingIcon } from "./LevelingIcon";
|
|
15
17
|
export { default as BadgeIcon } from "./BadgeIcon";
|
|
16
18
|
export { default as CaretIcon } from "./CaretIcon";
|
|
17
19
|
export { default as UploadIcon } from "./UploadIcon";
|
|
@@ -32,3 +34,6 @@ export { default as RiseIcon } from "./RiseIcon";
|
|
|
32
34
|
export { default as CalendarIcon } from "./CalendarIcon";
|
|
33
35
|
export { default as ArrowRightIcon } from "./ArrowRightIcon";
|
|
34
36
|
export { default as MoreIcon } from "./MoreIcon";
|
|
37
|
+
export { default as NoDataIcon } from "./NoDataIcon";
|
|
38
|
+
export { default as NoResultIcon } from "./NoResultIcon";
|
|
39
|
+
export { default as RemoveIcon } from "./RemoveIcon";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
|
-
import {
|
|
3
|
-
type ComboboxStoryProps =
|
|
2
|
+
import { ComboboxProps } from "./types";
|
|
3
|
+
type ComboboxStoryProps = ComboboxProps<string>;
|
|
4
4
|
declare const _default: Meta<ComboboxStoryProps>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ComboboxStoryProps>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export type FISComboboxOption<T> = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: T;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
};
|
|
2
7
|
interface MultipleValueProps<T> {
|
|
3
8
|
options: FISComboboxOption<T>[];
|
|
4
9
|
onRemove?: (option: FISComboboxOption<T>) => void;
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { InputLabelProps } from "../Input/InputLabel";
|
|
4
|
-
export type FISComboboxOption<T> = {
|
|
5
|
-
label: string;
|
|
6
|
-
value: T;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
description?: string;
|
|
9
|
-
};
|
|
10
|
-
type SingleSelect<T> = {
|
|
11
|
-
multi: false;
|
|
12
|
-
value: T;
|
|
13
|
-
onChange: (value: T) => void;
|
|
14
|
-
displayValue: (value: FISComboboxOption<T>) => string;
|
|
15
|
-
};
|
|
16
|
-
type MultiSelect<T> = {
|
|
17
|
-
multi: true;
|
|
18
|
-
value: T[];
|
|
19
|
-
onChange: (value: T[]) => void;
|
|
20
|
-
displayValue: (value: FISComboboxOption<T>[]) => string;
|
|
21
|
-
};
|
|
22
|
-
export type FISComboboxProps<T> = Omit<InputFieldProps, "value" | "onChange"> & Partial<InputLabelProps> & {
|
|
23
|
-
options: FISComboboxOption<T>[];
|
|
24
|
-
message?: string;
|
|
25
|
-
positive?: boolean;
|
|
26
|
-
renderOption?: (option: FISComboboxOption<T>) => React.ReactNode;
|
|
27
|
-
} & (SingleSelect<T> | MultiSelect<T>);
|
|
28
|
-
declare const FISCombobox: React.ForwardRefExoticComponent<FISComboboxProps<string> & React.RefAttributes<HTMLInputElement>>;
|
|
1
|
+
import { ComboboxProps } from "./types";
|
|
2
|
+
declare const FISCombobox: import("react").ForwardRefExoticComponent<ComboboxProps<string> & import("react").RefAttributes<HTMLInputElement>>;
|
|
29
3
|
export default FISCombobox;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const DivValueWrapperSC: 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 TagSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("antd").TagProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
6
|
-
}, {
|
|
1
|
+
export declare const DivChipButtonWrapperSC: 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 DivChipButtonSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
3
|
$isVisible?: boolean;
|
|
8
4
|
$isPadding?: boolean;
|
|
9
|
-
}>> & string & Omit<import("antd").TagType, keyof import("react").Component<any, {}, any>>;
|
|
10
|
-
export declare const DivComboboxContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
-
width?: string;
|
|
12
5
|
}>> & string;
|
|
13
|
-
export declare const
|
|
6
|
+
export declare const DivTagSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
$isVisible?: boolean;
|
|
8
|
+
}>> & string;
|
|
9
|
+
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;
|
|
10
|
+
export declare const DivInputWrapperSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
11
|
export declare const DivDropdownMenuSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
-
export declare const
|
|
16
|
-
interface DropdownItemProps {
|
|
17
|
-
$isSelected?: boolean;
|
|
18
|
-
$isDisabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const DivDropdownItemSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DropdownItemProps>> & string;
|
|
21
|
-
export declare const DivOptionContentSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
22
|
-
export declare const DivOptionLabelSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
|
-
export declare const DivOptionDescriptionSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
|
-
export {};
|
|
12
|
+
export declare const SelectedTagsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InputFieldProps } from "../Input/InputField";
|
|
2
|
+
import { InputLabelProps } from "../Input/InputLabel";
|
|
3
|
+
import { MenuProps } from "../MenuSelect/types";
|
|
4
|
+
export interface ComboboxOption {
|
|
5
|
+
groupLabel: string;
|
|
6
|
+
items: {
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export type SingleSelect<T> = {
|
|
13
|
+
multi: false;
|
|
14
|
+
value: T;
|
|
15
|
+
onChange: (value: T) => void;
|
|
16
|
+
displayValue?: (value: ComboboxOption) => string;
|
|
17
|
+
};
|
|
18
|
+
export type MultiSelect<T> = {
|
|
19
|
+
multi: true;
|
|
20
|
+
value: T[];
|
|
21
|
+
onChange: (value: T[]) => void;
|
|
22
|
+
displayValue?: (value: ComboboxOption[]) => string;
|
|
23
|
+
};
|
|
24
|
+
export type ComboboxProps<T> = Omit<InputFieldProps, "value" | "onChange"> & Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu"> & {
|
|
25
|
+
options: ComboboxOption[];
|
|
26
|
+
message?: string;
|
|
27
|
+
placeholderSearch?: string;
|
|
28
|
+
positive?: boolean;
|
|
29
|
+
multiDisplayText?: (count: number) => string;
|
|
30
|
+
renderOption?: (option: ComboboxOption) => React.ReactNode;
|
|
31
|
+
noResult?: boolean;
|
|
32
|
+
noResultText?: string;
|
|
33
|
+
} & (SingleSelect<T> | MultiSelect<T>);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { MenuItemProps } from "./types";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const ActionDefault: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
6
|
+
export declare const ActionSelected: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
7
|
+
export declare const ActionDisabled: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
8
|
+
export declare const ActionNegative: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
9
|
+
export declare const ActionLarge: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
10
|
+
export declare const SelectDefault: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
11
|
+
export declare const SelectSelected: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
12
|
+
export declare const SelectDisabled: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
13
|
+
export declare const SelectNegative: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
14
|
+
export declare const SelectLarge: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
15
|
+
export declare const LevelingDefault: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
16
|
+
export declare const LevelingSelected: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
17
|
+
export declare const LevelingDisabled: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
18
|
+
export declare const LevelingNegative: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
19
|
+
export declare const LevelingLarge: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuItemProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MenuItemSize, MenuItemType } from "./types";
|
|
2
|
+
interface MenuItemProps {
|
|
3
|
+
$size?: MenuItemSize;
|
|
4
|
+
$selected?: boolean;
|
|
5
|
+
$disable?: boolean;
|
|
6
|
+
$type?: MenuItemType;
|
|
7
|
+
}
|
|
8
|
+
export declare const DivContentSC: 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 DivPrefixIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MenuItemProps>> & string;
|
|
10
|
+
export declare const PTitleSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, MenuItemProps>> & string;
|
|
11
|
+
export declare const PDescriptionSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, MenuItemProps>> & string;
|
|
12
|
+
export declare const DivSuffixIconSelectSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MenuItemProps>> & string;
|
|
13
|
+
export declare const DivItemSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MenuItemProps>> & string;
|
|
14
|
+
export declare const DivSuffixIconSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, MenuItemProps>> & string;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type MenuItemType = "action" | "leveling" | "select";
|
|
3
|
+
export type MenuItemSize = "md" | "lg";
|
|
4
|
+
export interface MenuItemProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
iconPrefix?: ReactNode;
|
|
8
|
+
type?: MenuItemType;
|
|
9
|
+
size?: MenuItemSize;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
negative?: boolean;
|
|
12
|
+
disable?: boolean;
|
|
13
|
+
onClickMenu?: () => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuSectionSplitProps } from "./index";
|
|
2
|
+
import { Meta } from "@storybook/react";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const WithAction: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuSectionSplitProps>;
|
|
6
|
+
export declare const WithSeparateDivider: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuSectionSplitProps>;
|
|
7
|
+
export declare const NoAction: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuSectionSplitProps>;
|
|
8
|
+
export declare const OnlyLabel: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuSectionSplitProps>;
|
|
9
|
+
export declare const OnlyDivider: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuSectionSplitProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type MenuSectionSplitProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
withAction?: boolean;
|
|
5
|
+
actionText?: string;
|
|
6
|
+
actionLink?: string;
|
|
7
|
+
actionLabel?: boolean;
|
|
8
|
+
withDivider?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const FISMenuSection: React.FC<MenuSectionSplitProps>;
|
|
11
|
+
export default FISMenuSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface AvatarProps {
|
|
2
|
+
$actionLabel: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const DivContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const DivContentSC: 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 SectionLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
7
|
+
export declare const ActionLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, AvatarProps>> & string;
|
|
8
|
+
export declare const DivDividerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { MenuProps } from "./types";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<MenuProps>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
placeholder: {
|
|
8
|
+
control: "text";
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
control: "radio";
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
loading: {
|
|
17
|
+
control: "boolean";
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
noData: {
|
|
21
|
+
control: "boolean";
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
noResult: {
|
|
25
|
+
control: "boolean";
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
combobox: {
|
|
29
|
+
control: "boolean";
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
multi: {
|
|
33
|
+
control: "boolean";
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
negative: {
|
|
37
|
+
control: "boolean";
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
loadingText: {
|
|
41
|
+
control: "text";
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
noDataText: {
|
|
45
|
+
control: "text";
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
noResultText: {
|
|
49
|
+
control: "text";
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
removeSelectedText: {
|
|
53
|
+
control: "text";
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export default meta;
|
|
59
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
60
|
+
export declare const Loading: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
61
|
+
export declare const NoData: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
62
|
+
export declare const NoResults: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
63
|
+
export declare const MultiSelect: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
64
|
+
export declare const Combobox: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MenuProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 DivLoaderSC: 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 DivIconDataSC: 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 PTitleSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
5
|
+
export declare const DivWrapperMenuSC: 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 DivWrapperSC: 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 DivSearchSC: 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 MenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$removeSelectedGroup?: boolean;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const FixedBottomSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const PGroupLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface MenuItem {
|
|
2
|
+
label: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MenuGroup {
|
|
7
|
+
groupLabel: string;
|
|
8
|
+
items: MenuItem[];
|
|
9
|
+
}
|
|
10
|
+
export type MenuSize = "md" | "lg";
|
|
11
|
+
export interface MenuProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
groups: MenuGroup[];
|
|
15
|
+
size?: MenuSize;
|
|
16
|
+
multi?: boolean;
|
|
17
|
+
selectedValues?: string[];
|
|
18
|
+
onChangeSelected?: (values: string[]) => void;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
noData?: boolean;
|
|
21
|
+
noResult?: boolean;
|
|
22
|
+
onClickMenu?: () => void;
|
|
23
|
+
combobox?: boolean;
|
|
24
|
+
negative?: boolean;
|
|
25
|
+
loadingText?: string;
|
|
26
|
+
noDataText?: string;
|
|
27
|
+
noResultText?: string;
|
|
28
|
+
removeSelectedText?: string;
|
|
29
|
+
selectedGroupLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface MenuState {
|
|
32
|
+
search: string;
|
|
33
|
+
selectedItemsGroup: MenuGroup | null;
|
|
34
|
+
otherGroups: MenuGroup[];
|
|
35
|
+
filteredGroups: MenuGroup[];
|
|
36
|
+
removeSelectedGroup: MenuGroup | null;
|
|
37
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { SelectProps } from "./types";
|
|
3
|
+
type ComboboxStoryProps = SelectProps<string>;
|
|
4
|
+
declare const _default: Meta<ComboboxStoryProps>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ComboboxStoryProps>;
|
|
7
|
+
export declare const DefaultMulti: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ComboboxStoryProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
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
|
+
export declare const DivInputWrapperSC: 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 DivDropdownMenuSC: 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 SelectedTagsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InputFieldProps } from "../Input/InputField";
|
|
2
|
+
import { InputLabelProps } from "../Input/InputLabel";
|
|
3
|
+
import { MenuProps } from "../MenuSelect/types";
|
|
4
|
+
export interface SelectOption {
|
|
5
|
+
groupLabel: string;
|
|
6
|
+
items: {
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
export type SingleSelect<T> = {
|
|
13
|
+
multi: false;
|
|
14
|
+
value: T;
|
|
15
|
+
onChange: (value: T) => void;
|
|
16
|
+
displayValue?: (value: SelectOption) => string;
|
|
17
|
+
};
|
|
18
|
+
export type MultiSelect<T> = {
|
|
19
|
+
multi: true;
|
|
20
|
+
value: T[];
|
|
21
|
+
onChange: (value: T[]) => void;
|
|
22
|
+
displayValue?: (value: SelectOption[]) => string;
|
|
23
|
+
};
|
|
24
|
+
export type SelectProps<T> = Omit<InputFieldProps, "value" | "onChange"> & Partial<InputLabelProps> & Omit<MenuProps, "groups" | "multi" | "selectedValues" | "onChangeSelected" | "onClickMenu"> & {
|
|
25
|
+
options: SelectOption[];
|
|
26
|
+
message?: string;
|
|
27
|
+
placeholderSearch?: string;
|
|
28
|
+
positive?: boolean;
|
|
29
|
+
multiDisplayText?: (count: number) => string;
|
|
30
|
+
renderOption?: (option: SelectOption) => React.ReactNode;
|
|
31
|
+
} & (SingleSelect<T> | MultiSelect<T>);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import FISSelectItem from ".";
|
|
3
|
+
declare const meta: Meta<typeof FISSelectItem>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof FISSelectItem>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithPrefixIcon: Story;
|
|
8
|
+
export declare const WithSuffixIcon: Story;
|
|
9
|
+
export declare const WithPrefixAndSuffix: Story;
|
|
10
|
+
export declare const ReadOnly: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
12
|
+
export declare const WithActiveDropdown: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, JSX } from "react";
|
|
2
|
+
export type SelectSize = "xs" | "sm" | "md" | "lg";
|
|
3
|
+
export interface SelectFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onClick"> {
|
|
4
|
+
/**Control the size of the component*/
|
|
5
|
+
size?: SelectSize;
|
|
6
|
+
/**Prefix for filter value*/
|
|
7
|
+
iconPrefix?: string | JSX.Element;
|
|
8
|
+
/**iconSuffix for filter value*/
|
|
9
|
+
iconSuffix?: string | JSX.Element;
|
|
10
|
+
/**actived for current field*/
|
|
11
|
+
actived?: boolean;
|
|
12
|
+
/**active-dropdown for current field*/
|
|
13
|
+
activeDropdown?: boolean;
|
|
14
|
+
/** onClickSuffix for current field Button */
|
|
15
|
+
onClickSuffix?: () => void;
|
|
16
|
+
/** onClickPrefix for current field Button */
|
|
17
|
+
onClickPrefix?: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const FISSelectItem: import("react").ForwardRefExoticComponent<SelectFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export default FISSelectItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SelectSize } from ".";
|
|
2
|
+
interface SelectItemProps {
|
|
3
|
+
$size?: SelectSize;
|
|
4
|
+
}
|
|
5
|
+
export declare const InputSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, SelectItemProps>> & string;
|
|
6
|
+
export declare const DivWrapperSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectItemProps>> & string;
|
|
7
|
+
export declare const DivIconPrefixSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectItemProps>> & string;
|
|
8
|
+
export declare const DivIconSuffixSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectItemProps>> & string;
|
|
9
|
+
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>, SelectItemProps>> & string;
|
|
10
|
+
export {};
|
|
@@ -19,6 +19,9 @@ export { default as FISAvatar } from "./components/Avatar";
|
|
|
19
19
|
export { default as FISInputArea } from "./components/Input/InputArea";
|
|
20
20
|
export { default as FISInputStepper } from "./components/Input/InputStepper";
|
|
21
21
|
export { default as FISTooltip } from "./components/Tooltip";
|
|
22
|
+
export { default as FISMenuSelect } from "./components/MenuSelect";
|
|
23
|
+
export { default as FISMenuItem } from "./components/MenuItem";
|
|
24
|
+
export { default as FISMenuSection } from "./components/MenuSection";
|
|
22
25
|
export { default as FISDivider } from "./components/Divider";
|
|
23
26
|
export { default as FISBadge } from "./components/Badge";
|
|
24
27
|
export { default as FISCollapse } from "./components/Collapse";
|
|
@@ -36,3 +39,5 @@ export { default as FISAlertBanner } from "./components/AlertBanner";
|
|
|
36
39
|
export { default as FISProgressCircular } from "./components/ProgressCircular";
|
|
37
40
|
export { default as FISProgressLinear } from "./components/ProgressLinear";
|
|
38
41
|
export { default as FISSplitButton } from "./components/SplitButton";
|
|
42
|
+
export { default as FISSelect } from "./components/Select";
|
|
43
|
+
export { default as FISSelectItem } from "./components/SelectItem";
|