ingred-ui 25.6.0 → 25.7.0

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.
@@ -12,6 +12,12 @@ export declare const WithManyOptions: Story<Select2Props>;
12
12
  export declare const WithDisabledOptions: Story<Select2Props>;
13
13
  export declare const MultipleSelection: Story<Select2Props>;
14
14
  export declare const MultipleSelectionWithSearch: Story<Select2Props>;
15
+ export declare const MultipleSelectionWithBulkActions: Story<Select2Props>;
16
+ /**
17
+ * タグの行数でレイアウトを動的に切り替えるデモ。
18
+ * タグが複数行になったら3つ目だけ全幅(折り返し)、1行なら3列横並び。
19
+ */
20
+ export declare const TagWrapDynamic: Story<Select2Props>;
15
21
  export declare const WithOptionGroups: {
16
22
  (): JSX.Element;
17
23
  parameters: {
@@ -7,6 +7,7 @@ export declare const SelectContainer: import("styled-components").StyledComponen
7
7
  $disabled?: boolean | undefined;
8
8
  $error?: boolean | undefined;
9
9
  $isOpen?: boolean | undefined;
10
+ $tagOverflow?: "wrap" | "truncate" | undefined;
10
11
  }, never>;
11
12
  export declare const SelectButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
12
13
  $size: Select2Size;
@@ -18,10 +19,7 @@ export declare const SelectButton: import("styled-components").StyledComponent<"
18
19
  $multiple?: boolean | undefined;
19
20
  }, never>;
20
21
  export declare const InputArea: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
21
- $size?: Select2Size | undefined;
22
- $variant?: Select2Props["variant"];
23
- $disabled?: boolean | undefined;
24
- $multiple?: boolean | undefined;
22
+ $tagOverflow?: "wrap" | "truncate" | undefined;
25
23
  }, never>;
26
24
  export declare const SelectLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
27
25
  export declare const SelectLabelText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
@@ -29,7 +27,9 @@ export declare const SelectLabelIcon: import("styled-components").StyledComponen
29
27
  $size?: Select2Size | undefined;
30
28
  $disabled?: boolean | undefined;
31
29
  }, never>;
32
- export declare const TagContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
30
+ export declare const TagContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
31
+ $tagOverflow?: "wrap" | "truncate" | undefined;
32
+ }, never>;
33
33
  export declare const StyledTag: import("styled-components").StyledComponent<({ label, size, variant, onRemove, className, disabled, }: import("../Tag").TagProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
34
34
  export declare const Placeholder: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
35
35
  $variant?: Select2Props["variant"];
@@ -45,4 +45,6 @@ export declare const StyledContextMenu2TextInputItem: import("styled-components"
45
45
  } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>, import("styled-components").DefaultTheme, {}, never>;
46
46
  export declare const OptionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
47
47
  export declare const SearchHeaderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
48
+ export declare const SearchInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
49
+ export declare const BulkActionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
48
50
  export declare const SearchResetButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
@@ -72,6 +72,13 @@ export type Select2Props = {
72
72
  * variant="light"の場合はdark、variant="dark"の場合はlightが適用されます。
73
73
  */
74
74
  tagVariant?: Select2Variant;
75
+ /**
76
+ * 複数選択時のタグ表示方法
77
+ * - truncate: 規定の長さを超えたらoverflow hiddenで端折る(デフォルト)
78
+ * - wrap: タグを折り返して全て表示(高さが伸びる)
79
+ * @default "truncate"
80
+ */
81
+ tagOverflow?: "truncate" | "wrap";
75
82
  /**
76
83
  * 無効状態
77
84
  * @default false
@@ -107,6 +114,21 @@ export type Select2Props = {
107
114
  * エラーメッセージはプロダクト側で実装してください。
108
115
  */
109
116
  error?: boolean;
117
+ /**
118
+ * 全選択・全クリアボタンを表示するかどうか (multiple=trueの場合のみ有効)
119
+ * @default false
120
+ */
121
+ showBulkActions?: boolean;
122
+ /**
123
+ * 全選択ボタンのtooltipテキスト
124
+ * @default "すべて選択"
125
+ */
126
+ selectAllLabel?: string;
127
+ /**
128
+ * 全クリアボタンのtooltipテキスト
129
+ * @default "すべてクリア"
130
+ */
131
+ clearAllLabel?: string;
110
132
  /**
111
133
  * 適用ボタンのテキスト (multipleがtrueの場合のみ使用)
112
134
  * @default "適用"
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";