ingred-ui 33.3.0 → 33.4.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.
- package/dist/components/AdvancedFilter/__tests__/CheckboxValueInput.test.d.ts +1 -0
- package/dist/components/AdvancedFilter/__tests__/RadioValueInput.test.d.ts +1 -0
- package/dist/components/AdvancedFilter/internal/OptionValueIcon.d.ts +7 -0
- package/dist/components/AdvancedFilter/types.d.ts +7 -0
- package/dist/components/AdvancedFilter/utils/values.d.ts +7 -0
- package/dist/index.es.js +533 -533
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +535 -535
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import type { MouseEvent } from "react";
|
|
18
18
|
import { Theme } from "../../themes";
|
|
19
|
+
import type { IconName } from "../Icon";
|
|
19
20
|
import type { FilterOperator, FilterInputType, FilterPresetType } from "../../utils/filterTypes";
|
|
20
21
|
export type { FilterOperator, FilterInputType, FilterPresetType };
|
|
21
22
|
export type FilterType = {
|
|
@@ -52,6 +53,12 @@ export type OperatorDefinition = {
|
|
|
52
53
|
export type ValueDefinition = {
|
|
53
54
|
value: string | boolean;
|
|
54
55
|
label: string;
|
|
56
|
+
/** 選択肢の左に表示するアイコン名 */
|
|
57
|
+
icon?: IconName;
|
|
58
|
+
/** アイコンの種類 */
|
|
59
|
+
iconType?: "line" | "fill";
|
|
60
|
+
/** アイコンの色(hex や theme の palette 値など) */
|
|
61
|
+
iconColor?: string;
|
|
55
62
|
};
|
|
56
63
|
/** 複数条件フィルタ内の条件結合ロジック */
|
|
57
64
|
export type MultiConditionLogic = "and" | "or";
|
|
@@ -4,9 +4,16 @@
|
|
|
4
4
|
* アプリケーション固有の値は外部から提供されるため、
|
|
5
5
|
* 汎用的なヘルパー関数のみを提供する。
|
|
6
6
|
*/
|
|
7
|
+
import type { IconName } from "../../Icon";
|
|
7
8
|
export type ValueDefinition = {
|
|
8
9
|
value: string;
|
|
9
10
|
label: string;
|
|
11
|
+
/** 選択肢の左に表示するアイコン名 */
|
|
12
|
+
icon?: IconName;
|
|
13
|
+
/** アイコンの種類 */
|
|
14
|
+
iconType?: "line" | "fill";
|
|
15
|
+
/** アイコンの色(hex や theme の palette 値など) */
|
|
16
|
+
iconColor?: string;
|
|
10
17
|
};
|
|
11
18
|
/**
|
|
12
19
|
* カスタム値作成用のヘルパー関数
|