ingred-ui 31.0.5 → 31.0.6
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/DateField/DateField2/useDateField2.d.ts +2 -0
- package/dist/components/DropdownButton/types.d.ts +10 -0
- package/dist/components/LoadingBar/LoadingBar.d.ts +1 -1
- package/dist/components/Slider/types.d.ts +4 -0
- package/dist/components/TimeField/useTimeField2.d.ts +2 -0
- package/dist/components/WeekTime/internal/WeekTimeElement/WeekTimeElement.d.ts +7 -0
- package/dist/index.es.js +18 -18
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare const useDateField2: ({ date, format, disabled, onDateChange, }:
|
|
|
33
33
|
spellCheck?: undefined;
|
|
34
34
|
autoCorrect?: undefined;
|
|
35
35
|
style?: undefined;
|
|
36
|
+
"aria-label"?: undefined;
|
|
36
37
|
onFocus?: undefined;
|
|
37
38
|
onBlur?: undefined;
|
|
38
39
|
onKeyDown?: undefined;
|
|
@@ -52,6 +53,7 @@ export declare const useDateField2: ({ date, format, disabled, onDateChange, }:
|
|
|
52
53
|
style: {
|
|
53
54
|
caretColor: "transparent";
|
|
54
55
|
};
|
|
56
|
+
"aria-label": "日" | "月" | "年" | undefined;
|
|
55
57
|
onFocus: () => void;
|
|
56
58
|
onBlur: (e: React.FocusEvent) => void;
|
|
57
59
|
onKeyDown: (event: React.KeyboardEvent<HTMLSpanElement>) => void;
|
|
@@ -59,6 +59,16 @@ export type DropdownButtonProps = {
|
|
|
59
59
|
* - アイコン + テキスト: スピナー + ローディングテキストを表示(`true`の場合はデフォルトで"Loading...")
|
|
60
60
|
*/
|
|
61
61
|
loading?: boolean | string;
|
|
62
|
+
/**
|
|
63
|
+
* ドロップダウンメニューを開くトグルボタンに付ける accessible name。
|
|
64
|
+
* - split=true のときの分割トリガー(矢印のみのボタン)
|
|
65
|
+
* - 単一トリガーが children を持たないとき(アイコンのみ/ローディング中)
|
|
66
|
+
* のフォールバックとして使用されます。split モードのメインボタン (左側
|
|
67
|
+
* の onClick 用ボタン) には適用されないので、そちらが icon-only になる
|
|
68
|
+
* 場合は呼び出し側で `children` か aria-label を渡してください。
|
|
69
|
+
* @default "メニューを開く"
|
|
70
|
+
*/
|
|
71
|
+
toggleAriaLabel?: string;
|
|
62
72
|
};
|
|
63
73
|
export type DropdownButtonSizeConfig = {
|
|
64
74
|
arrowIconSize: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const LoadingBar: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
1
|
+
declare const LoadingBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, "role" | "aria-busy" | "aria-label"> & Partial<Pick<any, "role" | "aria-busy" | "aria-label">>> & string;
|
|
2
2
|
export default LoadingBar;
|
|
@@ -45,6 +45,10 @@ export type SliderProps = {
|
|
|
45
45
|
* Additional inline styles.
|
|
46
46
|
*/
|
|
47
47
|
style?: React.CSSProperties;
|
|
48
|
+
/**
|
|
49
|
+
* Accessible name for the slider. Use this when the slider has no visible label.
|
|
50
|
+
*/
|
|
51
|
+
"aria-label"?: string;
|
|
48
52
|
/**
|
|
49
53
|
* ID of the element that labels the slider.
|
|
50
54
|
*/
|
|
@@ -32,6 +32,7 @@ export declare const useTimeField2: ({ time, disabled, onTimeChange, }: Props) =
|
|
|
32
32
|
spellCheck?: undefined;
|
|
33
33
|
autoCorrect?: undefined;
|
|
34
34
|
style?: undefined;
|
|
35
|
+
"aria-label"?: undefined;
|
|
35
36
|
onFocus?: undefined;
|
|
36
37
|
onBlur?: undefined;
|
|
37
38
|
onKeyDown?: undefined;
|
|
@@ -51,6 +52,7 @@ export declare const useTimeField2: ({ time, disabled, onTimeChange, }: Props) =
|
|
|
51
52
|
style: {
|
|
52
53
|
caretColor: "transparent";
|
|
53
54
|
};
|
|
55
|
+
"aria-label": string;
|
|
54
56
|
onFocus: () => void;
|
|
55
57
|
onBlur: (e: React.FocusEvent) => void;
|
|
56
58
|
onKeyDown: (event: React.KeyboardEvent<HTMLSpanElement>) => void;
|
|
@@ -6,6 +6,13 @@ export type WeekTimeElementProps = {
|
|
|
6
6
|
active: boolean;
|
|
7
7
|
hover: boolean;
|
|
8
8
|
} & React.HTMLAttributes<HTMLButtonElement | HTMLSpanElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* インタラクティブなセル(button)として描画される場合は true。
|
|
11
|
+
* 読み取り専用(span)として描画される場合は false。
|
|
12
|
+
* span に aria-label / aria-pressed を付与すると axe の aria-prohibited-attr に該当するため、
|
|
13
|
+
* インタラクティブな場合のみ付与する。
|
|
14
|
+
*/
|
|
15
|
+
interactive?: boolean;
|
|
9
16
|
isWithinHoverRange?: (weekIndex: number, timeIndex: number) => boolean;
|
|
10
17
|
onMouseOver?: (weekIndex: number, timeIndex: number) => void;
|
|
11
18
|
onMouseDown?: (weekIndex: number, timeIndex: number, time: string) => void;
|