ingred-ui 21.4.0 → 21.4.2
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/DualListBox2/DualListBox2.d.ts +13 -1
- package/dist/components/DualListBox2/DualListBox2.stories.d.ts +8 -2
- package/dist/components/DualListBox2/DualListBox2Accordion.d.ts +2 -1
- package/dist/components/DualListBox2/DualListBox2MenuCountControl.d.ts +8 -0
- package/dist/components/DualListBox2/styled.d.ts +10 -0
- package/dist/components/DualListBox2/types.d.ts +2 -0
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -42,9 +42,21 @@ type DualListBox2Props = {
|
|
|
42
42
|
**/
|
|
43
43
|
onActiveSectionChange?: (activeSection: string | null) => void;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* スクロールによって追加データの読み込みが必要になったときに呼び出されるハンドラ
|
|
46
46
|
**/
|
|
47
47
|
onLoadMore?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* 1ページあたりの表示件数
|
|
50
|
+
**/
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
/**
|
|
53
|
+
* 1ページあたりの表示件数の選択肢
|
|
54
|
+
**/
|
|
55
|
+
pageSizeOptions?: number[];
|
|
56
|
+
/**
|
|
57
|
+
* 1ページあたりの表示件数が変更されたときのハンドラ
|
|
58
|
+
**/
|
|
59
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
48
60
|
};
|
|
49
61
|
export declare const DualListBox2: React.ForwardRefExoticComponent<DualListBox2Props & React.RefAttributes<HTMLDivElement>>;
|
|
50
62
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { StoryObj } from "@storybook/react";
|
|
2
|
+
import { StoryObj, ComponentStory } from "@storybook/react";
|
|
3
3
|
import { type Item, DualListBox2 } from "./index";
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
@@ -15,6 +15,9 @@ declare const meta: {
|
|
|
15
15
|
onExcludedChange: (excludedIds: string[]) => void;
|
|
16
16
|
onActiveSectionChange?: ((activeSection: string | null) => void) | undefined;
|
|
17
17
|
onLoadMore?: (() => void) | undefined;
|
|
18
|
+
pageSize?: number | undefined;
|
|
19
|
+
pageSizeOptions?: number[] | undefined;
|
|
20
|
+
onPageSizeChange?: ((pageSize: number) => void) | undefined;
|
|
18
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
22
|
argTypes: {};
|
|
20
23
|
};
|
|
@@ -31,8 +34,11 @@ export default meta;
|
|
|
31
34
|
*
|
|
32
35
|
* children には、左パネル用の選択できる項目を渡します。右パネルの内容は状態に応じて自動で表示管理されます。
|
|
33
36
|
*
|
|
37
|
+
* モバイルサイズでは、タブで左右パネルの表示を切り替える
|
|
38
|
+
*
|
|
39
|
+
* included はフラットな配列。アコーディオンやセクションの group ごとに分けて配置する
|
|
34
40
|
*/
|
|
35
|
-
export declare const Default:
|
|
41
|
+
export declare const Default: ComponentStory<typeof DualListBox2>;
|
|
36
42
|
/**
|
|
37
43
|
* #### 選択候補がアコーディオンで折りたたまれているタイプ
|
|
38
44
|
*
|
|
@@ -4,6 +4,7 @@ type DualListBox2AccordionProps = {
|
|
|
4
4
|
disableInclude?: boolean;
|
|
5
5
|
disableExclude?: boolean;
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
onOpen?: () => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const DualListBox2Accordion: ({ label, disableInclude, disableExclude, children, }: DualListBox2AccordionProps) => JSX.Element;
|
|
9
|
+
export declare const DualListBox2Accordion: ({ label, disableInclude, disableExclude, children, onOpen, }: DualListBox2AccordionProps) => JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type DualListBox2MenuCountControlProps = {
|
|
3
|
+
pageSize: number;
|
|
4
|
+
pageSizeOptions: number[];
|
|
5
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const DualListBox2MenuCountControl: ({ pageSize, pageSizeOptions, onPageSizeChange, }: DualListBox2MenuCountControlProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const DualListBox2: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
3
|
export declare const TabList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export declare const CountBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -33,3 +34,12 @@ export declare const AccordionIcon: import("styled-components").StyledComponent<
|
|
|
33
34
|
export declare const SectionButtonBefore: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
34
35
|
export declare const SectionButtonAfter: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
35
36
|
export declare const SectionButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
37
|
+
export declare const LoadingIndicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
38
|
+
export declare const NestedAccordion: import("styled-components").StyledComponent<({ label, disableInclude, disableExclude, children, onOpen, }: {
|
|
39
|
+
label: string;
|
|
40
|
+
disableInclude?: boolean | undefined;
|
|
41
|
+
disableExclude?: boolean | undefined;
|
|
42
|
+
children: import("react").ReactNode;
|
|
43
|
+
onOpen?: (() => void) | undefined;
|
|
44
|
+
}) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
45
|
+
export declare const NestedItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|