ingred-ui 33.19.0 → 34.0.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/utils/operators.d.ts +2 -4
- package/dist/components/DualListBox2/hooks/useDualListBox2Filter.d.ts +0 -1
- package/dist/components/DualListBox2/index.d.ts +1 -0
- package/dist/components/DualListBox2/lib.d.ts +0 -1
- package/dist/components/FilterComboBox/index.d.ts +1 -0
- package/dist/components/Input/types.d.ts +5 -0
- package/dist/components/Select2/index.d.ts +1 -0
- package/dist/index.es.js +679 -671
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +680 -672
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/matchesFreeWordQuery.test.d.ts +1 -0
- package/dist/utils/__tests__/normalizeForSearch.test.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/matchesFreeWordQuery.d.ts +23 -0
- package/dist/utils/normalizeForSearch.d.ts +4 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* 一元管理により保守性と再利用性を向上させる。
|
|
6
6
|
*/
|
|
7
7
|
import { FilterPresetType, FilterTypeConfig, OperatorDefinition } from "../types";
|
|
8
|
+
import { normalizeForSearch } from "../../../utils";
|
|
8
9
|
/**
|
|
9
10
|
* テキスト系フィルター用オペレーター
|
|
10
11
|
* ID、名前、コメントなどの文字列フィールド向け
|
|
@@ -73,10 +74,7 @@ export declare const selectOperatorsByIndex: (operators: OperatorDefinition[], i
|
|
|
73
74
|
* フィルタリング処理用のヘルパー関数群
|
|
74
75
|
* 実際のデータフィルタリング処理で使用
|
|
75
76
|
*/
|
|
76
|
-
|
|
77
|
-
* 文字列比較用の正規化(大文字小文字・全角半角を区別しない)
|
|
78
|
-
*/
|
|
79
|
-
export declare const normalizeForSearch: (value: string) => string;
|
|
77
|
+
export { normalizeForSearch };
|
|
80
78
|
/**
|
|
81
79
|
* 単一の値に対してオペレーターを適用
|
|
82
80
|
*/
|
|
@@ -8,7 +8,6 @@ type UseDualListBox2FilterProps = {
|
|
|
8
8
|
};
|
|
9
9
|
type UseDualListBox2FilterReturn = {
|
|
10
10
|
currentFilter: string;
|
|
11
|
-
filterWords: string[];
|
|
12
11
|
filteredChildren: ReactNode;
|
|
13
12
|
matchesFilter: (label: string) => boolean;
|
|
14
13
|
handleFilterChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -4,3 +4,4 @@ export { DualListBox2Item } from "./DualListBox2Item";
|
|
|
4
4
|
export { DualListBox2Accordion } from "./DualListBox2Accordion";
|
|
5
5
|
export { DualListBox2Section } from "./DualListBox2Section";
|
|
6
6
|
export { toGroupedItems } from "./lib";
|
|
7
|
+
export { createFreeWordMatcher } from "../../utils/matchesFreeWordQuery";
|
|
@@ -21,4 +21,9 @@ export declare const getInputVariantConfig: (theme: Theme) => Record<InputVarian
|
|
|
21
21
|
export declare const getErrorStyles: (theme: Theme) => {
|
|
22
22
|
borderColor: string;
|
|
23
23
|
shadowColor: string;
|
|
24
|
+
placeholderColor: string;
|
|
24
25
|
};
|
|
26
|
+
export declare const getPlaceholderColor: (theme: Theme, { error, disabled, }?: {
|
|
27
|
+
error?: boolean | undefined;
|
|
28
|
+
disabled?: boolean | undefined;
|
|
29
|
+
}) => string;
|