ingred-ui 27.0.2 → 27.0.4
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/components/ActionButton/ActionButton.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/CreatableSelect/CreatableSelect.d.ts +22 -0
- package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +19 -0
- package/dist/components/DataTable2/DataTable2.stories.d.ts +19 -23
- package/dist/components/DualListBox2/DualListBox2.stories.d.ts +34 -45
- package/dist/components/FilterComboBox/FilterComboBox.stories.d.ts +36 -86
- package/dist/components/FilterInputAbstract/FilterInputAbstract.stories.d.ts +14 -34
- package/dist/components/FullSizeConfirmModal/FullSizeConfirmModal.stories.d.ts +6 -316
- package/dist/components/Menu/Menu.stories.d.ts +2 -86
- package/dist/components/MenuList/MenuList.stories.d.ts +2 -1101
- package/dist/components/Select/Select.d.ts +24 -0
- package/dist/components/Select/Select.stories.d.ts +29 -0
- package/dist/components/Select2/Select2.stories.d.ts +1 -73
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -111
- package/dist/components/Tag/Tag.stories.d.ts +1 -5
- package/dist/components/Toast/Toast.stories.d.ts +4 -172
- package/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
components: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
7
7
|
args: {
|
|
8
|
-
onClick:
|
|
8
|
+
onClick: any;
|
|
9
9
|
};
|
|
10
10
|
parameters: {
|
|
11
11
|
docs: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CreatableProps } from "react-select/creatable";
|
|
3
|
+
import type { GroupBase } from "react-select";
|
|
4
|
+
import { OptionType } from "../Select";
|
|
5
|
+
export type CreatableSelectProps<T> = {
|
|
6
|
+
minWidth?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
emptyMessage?: string;
|
|
10
|
+
addMessage?: string;
|
|
11
|
+
} & CreatableProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>;
|
|
12
|
+
declare const CreatableSelect: <T>(inProps: CreatableSelectProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<CreatableSelectProps<T>, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
declare const _default: <T>(props: {
|
|
14
|
+
minWidth?: string | undefined;
|
|
15
|
+
placeholder?: string | undefined;
|
|
16
|
+
error?: boolean | undefined;
|
|
17
|
+
emptyMessage?: string | undefined;
|
|
18
|
+
addMessage?: string | undefined;
|
|
19
|
+
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionType<T>, GroupBase<OptionType<T>>> & {
|
|
20
|
+
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
21
|
+
}) => ReturnType<typeof CreatableSelect>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: <T>(props: {
|
|
5
|
+
minWidth?: string | undefined;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
error?: boolean | undefined;
|
|
8
|
+
emptyMessage?: string | undefined;
|
|
9
|
+
addMessage?: string | undefined;
|
|
10
|
+
} & Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<import("..").OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> & {
|
|
11
|
+
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
12
|
+
}) => React.ReactElement<import("./CreatableSelect").CreatableSelectProps<unknown>, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
source: {
|
|
14
|
+
language: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare const Example: () => JSX.Element;
|
|
19
|
+
export declare const MultipleSelect: () => JSX.Element;
|
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { type TableColumn, type TableAction, DataTable2 } from "./index";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onCheckedRowsChange?: ((checkedRows: string[]) => void) | undefined;
|
|
24
|
-
}) => JSX.Element;
|
|
25
|
-
argTypes: {};
|
|
26
|
-
};
|
|
4
|
+
declare const meta: Meta<({ bordered, currentPage, pageSize, pageSizeOptions, totalCount, columns, onPageChange, onPageSizeChange, onColumnsChange, onCheckedRowsChange, children, tableActions, customTableActionArea, }: {
|
|
5
|
+
currentPage: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
pageSizeOptions: number[];
|
|
8
|
+
totalCount: number;
|
|
9
|
+
columns: TableColumn[];
|
|
10
|
+
onPageChange: (page: number) => void;
|
|
11
|
+
onPageSizeChange: (size: number) => void;
|
|
12
|
+
onColumnsChange: (columns: TableColumn[]) => void;
|
|
13
|
+
tableActions?: TableAction[] | undefined;
|
|
14
|
+
customTableActionArea?: ((context: {
|
|
15
|
+
isSmallLayout: boolean;
|
|
16
|
+
checkedRows: string[];
|
|
17
|
+
}) => React.ReactNode) | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
bordered?: boolean | undefined;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
onCheckedRowsChange?: ((checkedRows: string[]) => void) | undefined;
|
|
22
|
+
}) => JSX.Element>;
|
|
27
23
|
export default meta;
|
|
28
24
|
/**
|
|
29
25
|
* DataTable2 に高さを指定したい場合、親に高さを明示してください。<br />
|
|
@@ -6,51 +6,40 @@ export type Item = {
|
|
|
6
6
|
label: string;
|
|
7
7
|
groupName?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const meta: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
tags: string[];
|
|
46
|
-
parameters: {
|
|
47
|
-
docs: {
|
|
48
|
-
description: {
|
|
49
|
-
component: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
9
|
+
declare const meta: Meta<React.ForwardRefExoticComponent<{
|
|
10
|
+
included: import("./types").Item[];
|
|
11
|
+
excluded: import("./types").Item[];
|
|
12
|
+
disableInclude?: boolean | undefined;
|
|
13
|
+
disableExclude?: boolean | undefined;
|
|
14
|
+
menuButtons?: React.ReactNode;
|
|
15
|
+
loading?: boolean | undefined;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
onIncludedChange: (includedIds: string[]) => void;
|
|
18
|
+
onExcludedChange: (excludedIds: string[]) => void;
|
|
19
|
+
onActiveSectionChange?: ((activeSection: string | null) => void) | undefined;
|
|
20
|
+
onLoadMore?: (() => void) | undefined;
|
|
21
|
+
pageSize?: number | undefined;
|
|
22
|
+
pageSizeOptions?: number[] | undefined;
|
|
23
|
+
onPageSizeChange?: ((pageSize: number) => void) | undefined;
|
|
24
|
+
filter?: string | undefined;
|
|
25
|
+
onFilterChange?: ((filter: string) => void) | undefined;
|
|
26
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
27
|
+
middleware?: {
|
|
28
|
+
name: string;
|
|
29
|
+
options?: any;
|
|
30
|
+
fn: (state: {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
placement: import("@floating-ui/utils").Placement;
|
|
34
|
+
platform: import("@floating-ui/core").Platform;
|
|
35
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
36
|
+
initialPlacement: import("@floating-ui/utils").Placement;
|
|
37
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
38
|
+
rects: import("@floating-ui/utils").ElementRects;
|
|
39
|
+
elements: import("@floating-ui/dom").Elements;
|
|
40
|
+
}) => import("@floating-ui/core").MiddlewareReturn | Promise<import("@floating-ui/core").MiddlewareReturn>;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>>>;
|
|
54
43
|
export default meta;
|
|
55
44
|
type Story = StoryObj<typeof DualListBox2>;
|
|
56
45
|
/**
|
|
@@ -1,92 +1,42 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { FilterComboBox } from "./index";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
}) => JSX.Element;
|
|
42
|
-
argTypes: {
|
|
43
|
-
size: {
|
|
44
|
-
control: {
|
|
45
|
-
type: "radio";
|
|
46
|
-
};
|
|
47
|
-
options: string[];
|
|
48
|
-
description: string;
|
|
49
|
-
table: {
|
|
50
|
-
type: {
|
|
51
|
-
summary: string;
|
|
52
|
-
};
|
|
53
|
-
defaultValue: {
|
|
54
|
-
summary: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
variant: {
|
|
59
|
-
control: {
|
|
60
|
-
type: "radio";
|
|
61
|
-
};
|
|
62
|
-
options: string[];
|
|
63
|
-
description: string;
|
|
64
|
-
table: {
|
|
65
|
-
type: {
|
|
66
|
-
summary: string;
|
|
67
|
-
};
|
|
68
|
-
defaultValue: {
|
|
69
|
-
summary: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
tagVariant: {
|
|
74
|
-
control: {
|
|
75
|
-
type: "radio";
|
|
76
|
-
};
|
|
77
|
-
options: string[];
|
|
78
|
-
description: string;
|
|
79
|
-
table: {
|
|
80
|
-
type: {
|
|
81
|
-
summary: string;
|
|
82
|
-
};
|
|
83
|
-
defaultValue: {
|
|
84
|
-
summary: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
4
|
+
declare const meta: Meta<({ values, options, selectedIndex, selectOptions, onChange, onSelectChange, size, variant, tagVariant, searchPlaceholder, noResultsMessage, disabled, applyButtonText, cancelButtonText, error, placement, middleware, }: {
|
|
5
|
+
values: string[];
|
|
6
|
+
options: (string | string[])[];
|
|
7
|
+
selectedIndex: number;
|
|
8
|
+
selectOptions: {
|
|
9
|
+
icon: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
onChange: (values: string[]) => void;
|
|
13
|
+
onSelectChange: (index: number) => void;
|
|
14
|
+
size?: import("../FilterInputAbstract/types").FilterSize | undefined;
|
|
15
|
+
variant?: import("../FilterInputAbstract/types").FilterVariant | undefined;
|
|
16
|
+
tagVariant?: import("../FilterInputAbstract/types").FilterVariant | undefined;
|
|
17
|
+
searchPlaceholder?: string | undefined;
|
|
18
|
+
noResultsMessage?: string | undefined;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
applyButtonText?: string | undefined;
|
|
21
|
+
cancelButtonText?: string | undefined;
|
|
22
|
+
error?: boolean | undefined;
|
|
23
|
+
placement?: import("@floating-ui/utils").Placement | undefined;
|
|
24
|
+
middleware?: {
|
|
25
|
+
name: string;
|
|
26
|
+
options?: any;
|
|
27
|
+
fn: (state: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
placement: import("@floating-ui/utils").Placement;
|
|
31
|
+
platform: import("@floating-ui/core").Platform;
|
|
32
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
33
|
+
initialPlacement: import("@floating-ui/utils").Placement;
|
|
34
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
35
|
+
rects: import("@floating-ui/utils").ElementRects;
|
|
36
|
+
elements: import("@floating-ui/dom").Elements;
|
|
37
|
+
}) => import("@floating-ui/core").MiddlewareReturn | Promise<import("@floating-ui/core").MiddlewareReturn>;
|
|
38
|
+
}[] | undefined;
|
|
39
|
+
}) => JSX.Element>;
|
|
90
40
|
export default meta;
|
|
91
41
|
/**
|
|
92
42
|
* Storybook の Docs の画面では、エンターキーが吸い取られてしまうようです。<br />
|
|
@@ -1,40 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { FilterInputAbstract } from "./FilterInputAbstract";
|
|
4
|
-
declare const meta: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
isOpen?: boolean | undefined;
|
|
19
|
-
}) => JSX.Element;
|
|
20
|
-
argTypes: {
|
|
21
|
-
size: {
|
|
22
|
-
control: {
|
|
23
|
-
type: "select";
|
|
24
|
-
};
|
|
25
|
-
options: string[];
|
|
26
|
-
description: string;
|
|
27
|
-
table: {
|
|
28
|
-
type: {
|
|
29
|
-
summary: string;
|
|
30
|
-
};
|
|
31
|
-
defaultValue: {
|
|
32
|
-
summary: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
4
|
+
declare const meta: Meta<({ selectedIndex, selectOptions, onSelectChange, children, size, variant, disabled, error, isOpen, }: {
|
|
5
|
+
selectedIndex: number;
|
|
6
|
+
selectOptions: {
|
|
7
|
+
icon: React.ReactElement<import("../Icon").IconProps, string | React.JSXElementConstructor<any>>;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
onSelectChange: (index: number) => void;
|
|
12
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
13
|
+
variant?: import("./types").FilterVariant | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
error?: boolean | undefined;
|
|
16
|
+
isOpen?: boolean | undefined;
|
|
17
|
+
}) => JSX.Element>;
|
|
38
18
|
export default meta;
|
|
39
19
|
/**
|
|
40
20
|
* Internal use only!
|