fis-component 0.1.34 → 0.1.35
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 +12 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Select/Select.stories.d.ts +56 -6
- package/dist/esm/index.js +12 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Select/Select.stories.d.ts +56 -6
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { SelectOption, SelectProps } from "./types";
|
|
2
|
-
type
|
|
3
|
-
type
|
|
4
|
-
type
|
|
1
|
+
import { FISSelectRef, SelectOption, SelectProps } from "./types";
|
|
2
|
+
type StoryArgs<P> = P extends unknown ? Omit<P, "renderOption" | "displayValue"> : never;
|
|
3
|
+
type SingleSelectStoryProps = StoryArgs<SelectProps<string>>;
|
|
4
|
+
type MultiSelectStoryProps = StoryArgs<SelectProps<string>>;
|
|
5
|
+
type NumberSelectStoryProps = StoryArgs<SelectProps<number>>;
|
|
5
6
|
declare const meta: {
|
|
6
7
|
title: string;
|
|
7
|
-
component: import("react").ForwardRefExoticComponent<SelectProps<string | number> & import("react").RefAttributes<
|
|
8
|
+
component: import("react").ForwardRefExoticComponent<SelectProps<string | number> & import("react").RefAttributes<FISSelectRef>>;
|
|
8
9
|
tags: string[];
|
|
9
10
|
parameters: {
|
|
10
11
|
controls: {
|
|
@@ -33,6 +34,10 @@ declare const meta: {
|
|
|
33
34
|
iconLabel: {
|
|
34
35
|
control: "select";
|
|
35
36
|
options: string[];
|
|
37
|
+
mapping: {
|
|
38
|
+
none: undefined;
|
|
39
|
+
info: import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
};
|
|
36
41
|
};
|
|
37
42
|
required: {
|
|
38
43
|
control: "boolean";
|
|
@@ -57,14 +62,50 @@ declare const meta: {
|
|
|
57
62
|
control: "text";
|
|
58
63
|
};
|
|
59
64
|
multiDisplayText: {
|
|
60
|
-
control:
|
|
65
|
+
control: false;
|
|
61
66
|
};
|
|
62
67
|
removeSelectedText: {
|
|
63
68
|
control: "text";
|
|
64
69
|
};
|
|
70
|
+
selectedGroupLabel: {
|
|
71
|
+
control: "text";
|
|
72
|
+
};
|
|
65
73
|
maxHeight: {
|
|
66
74
|
control: "number";
|
|
67
75
|
};
|
|
76
|
+
portal: {
|
|
77
|
+
control: "boolean";
|
|
78
|
+
};
|
|
79
|
+
hideChip: {
|
|
80
|
+
control: "boolean";
|
|
81
|
+
};
|
|
82
|
+
showSearch: {
|
|
83
|
+
control: "boolean";
|
|
84
|
+
};
|
|
85
|
+
searchDebounce: {
|
|
86
|
+
control: "number";
|
|
87
|
+
};
|
|
88
|
+
noData: {
|
|
89
|
+
control: "boolean";
|
|
90
|
+
};
|
|
91
|
+
noResult: {
|
|
92
|
+
control: "boolean";
|
|
93
|
+
};
|
|
94
|
+
noDataText: {
|
|
95
|
+
control: "text";
|
|
96
|
+
};
|
|
97
|
+
noResultText: {
|
|
98
|
+
control: "text";
|
|
99
|
+
};
|
|
100
|
+
virtualized: {
|
|
101
|
+
control: "boolean";
|
|
102
|
+
};
|
|
103
|
+
virtualItemHeight: {
|
|
104
|
+
control: "number";
|
|
105
|
+
};
|
|
106
|
+
onOpen: {
|
|
107
|
+
action: string;
|
|
108
|
+
};
|
|
68
109
|
};
|
|
69
110
|
args: {
|
|
70
111
|
options: SelectOption<string>[];
|
|
@@ -95,3 +136,12 @@ export declare const SimpleTooltip: import("@storybook/core/csf").AnnotatedStory
|
|
|
95
136
|
export declare const CustomTooltip: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
96
137
|
export declare const SecondaryTooltip: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
97
138
|
export declare const MultiSelectWithTooltip: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MultiSelectStoryProps>;
|
|
139
|
+
export declare const Positive: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
140
|
+
export declare const MultiSelectCustomText: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, MultiSelectStoryProps>;
|
|
141
|
+
export declare const CustomRender: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
142
|
+
export declare const EmptyStates: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
143
|
+
export declare const SearchControl: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
144
|
+
export declare const Virtualized: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
145
|
+
export declare const LoadMore: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
146
|
+
export declare const NoPortal: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|
|
147
|
+
export declare const WithRef: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SingleSelectStoryProps>;
|