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.
@@ -8,7 +8,7 @@ declare const _default: {
8
8
  color?: ("primary" | "warning") | undefined;
9
9
  } & React.RefAttributes<HTMLButtonElement>>;
10
10
  args: {
11
- onClick: import("storybook/actions").HandlerFunction;
11
+ onClick: any;
12
12
  icon: string;
13
13
  children: string;
14
14
  };
@@ -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: import("storybook/actions").HandlerFunction;
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
- title: string;
6
- component: ({ bordered, currentPage, pageSize, pageSizeOptions, totalCount, columns, onPageChange, onPageSizeChange, onColumnsChange, onCheckedRowsChange, children, tableActions, customTableActionArea, }: {
7
- currentPage: number;
8
- pageSize: number;
9
- pageSizeOptions: number[];
10
- totalCount: number;
11
- columns: TableColumn[];
12
- onPageChange: (page: number) => void;
13
- onPageSizeChange: (size: number) => void;
14
- onColumnsChange: (columns: TableColumn[]) => void;
15
- tableActions?: TableAction[] | undefined;
16
- customTableActionArea?: ((context: {
17
- isSmallLayout: boolean;
18
- checkedRows: string[];
19
- }) => React.ReactNode) | undefined;
20
- } & {
21
- bordered?: boolean | undefined;
22
- children: React.ReactNode;
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
- title: string;
11
- component: React.ForwardRefExoticComponent<{
12
- included: import("./types").Item[];
13
- excluded: import("./types").Item[];
14
- disableInclude?: boolean | undefined;
15
- disableExclude?: boolean | undefined;
16
- menuButtons?: React.ReactNode;
17
- loading?: boolean | undefined;
18
- children: React.ReactNode;
19
- onIncludedChange: (includedIds: string[]) => void;
20
- onExcludedChange: (excludedIds: string[]) => void;
21
- onActiveSectionChange?: ((activeSection: string | null) => void) | undefined;
22
- onLoadMore?: (() => void) | undefined;
23
- pageSize?: number | undefined;
24
- pageSizeOptions?: number[] | undefined;
25
- onPageSizeChange?: ((pageSize: number) => void) | undefined;
26
- filter?: string | undefined;
27
- onFilterChange?: ((filter: string) => void) | undefined;
28
- placement?: import("@floating-ui/utils").Placement | undefined;
29
- middleware?: {
30
- name: string;
31
- options?: any;
32
- fn: (state: {
33
- x: number;
34
- y: number;
35
- placement: import("@floating-ui/utils").Placement;
36
- platform: import("@floating-ui/core").Platform;
37
- strategy: import("@floating-ui/utils").Strategy;
38
- initialPlacement: import("@floating-ui/utils").Placement;
39
- middlewareData: import("@floating-ui/core").MiddlewareData;
40
- rects: import("@floating-ui/utils").ElementRects;
41
- elements: import("@floating-ui/dom").Elements;
42
- }) => import("@floating-ui/core").MiddlewareReturn | Promise<import("@floating-ui/core").MiddlewareReturn>;
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
- title: string;
6
- component: ({ values, options, selectedIndex, selectOptions, onChange, onSelectChange, size, variant, tagVariant, searchPlaceholder, noResultsMessage, disabled, applyButtonText, cancelButtonText, error, placement, middleware, }: {
7
- values: string[];
8
- options: (string | string[])[];
9
- selectedIndex: number;
10
- selectOptions: {
11
- icon: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
12
- label: string;
13
- }[];
14
- onChange: (values: string[]) => void;
15
- onSelectChange: (index: number) => void;
16
- size?: import("../FilterInputAbstract/types").FilterSize | undefined;
17
- variant?: import("../FilterInputAbstract/types").FilterVariant | undefined;
18
- tagVariant?: import("../FilterInputAbstract/types").FilterVariant | undefined;
19
- searchPlaceholder?: string | undefined;
20
- noResultsMessage?: string | undefined;
21
- disabled?: boolean | undefined;
22
- applyButtonText?: string | undefined;
23
- cancelButtonText?: string | undefined;
24
- error?: boolean | undefined;
25
- placement?: import("@floating-ui/utils").Placement | undefined;
26
- middleware?: {
27
- name: string;
28
- options?: any;
29
- fn: (state: {
30
- x: number;
31
- y: number;
32
- placement: import("@floating-ui/utils").Placement;
33
- platform: import("@floating-ui/core").Platform;
34
- strategy: import("@floating-ui/utils").Strategy;
35
- initialPlacement: import("@floating-ui/utils").Placement;
36
- middlewareData: import("@floating-ui/core").MiddlewareData;
37
- rects: import("@floating-ui/utils").ElementRects;
38
- elements: import("@floating-ui/dom").Elements;
39
- }) => import("@floating-ui/core").MiddlewareReturn | Promise<import("@floating-ui/core").MiddlewareReturn>;
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
- title: string;
6
- component: ({ selectedIndex, selectOptions, onSelectChange, children, size, variant, disabled, error, isOpen, }: {
7
- selectedIndex: number;
8
- selectOptions: {
9
- icon: React.ReactElement<import("../Icon").IconProps, string | React.JSXElementConstructor<any>>;
10
- label: string;
11
- }[];
12
- children?: React.ReactNode;
13
- onSelectChange: (index: number) => void;
14
- size?: "small" | "medium" | "large" | undefined;
15
- variant?: import("./types").FilterVariant | undefined;
16
- disabled?: boolean | undefined;
17
- error?: boolean | undefined;
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!