ingred-ui 37.1.2 → 37.2.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.
@@ -14,6 +14,7 @@
14
14
  * 注: FilterOperator, FilterInputType, FilterPresetType は src/utils/filterTypes.ts で
15
15
  * 定義され、本ファイルから re-export しています。
16
16
  */
17
+ import type { RadiiKey } from "../../styles";
17
18
  import type { MouseEvent, ReactNode, RefObject } from "react";
18
19
  import { Theme } from "../../themes";
19
20
  import type { IconName } from "../Icon";
@@ -288,7 +289,7 @@ export type AdvancedFilterSizeConfig = {
288
289
  height: string;
289
290
  fontSize: string;
290
291
  padding: string;
291
- borderRadius: string;
292
+ borderRadius: RadiiKey;
292
293
  iconSize: number;
293
294
  };
294
295
  export type AdvancedFilterVariantConfig = {
@@ -1,5 +1,10 @@
1
1
  /** カレンダーカード(グリッド+Actions)の最大幅。1fr グリッドや広い親・100vw 上限だけでは横に伸び切るのを防ぐ */
2
2
  export declare const CALENDAR_CARD_MAX_WIDTH_PX = 640;
3
+ /**
4
+ * 幅を測る箱の下限。
5
+ * 親の幅が中身まかせだと計測箱が 0 になり、カードが見えなくなる。
6
+ */
7
+ export declare const CALENDAR_QUERY_MIN_WIDTH_PX = 264;
3
8
  /**
4
9
  * `weekConfig` 未指定かつ `LocaleProvider` でも埋まらないときの曜日見出し(日曜始まり・日本語1文字)。
5
10
  * ja のロケール既定と揃える。
@@ -1,3 +1,11 @@
1
+ /**
2
+ * 横並び/縦積みの基準にする幅。
3
+ * Card は width: fit-content なので、ここに container-type を置くと中身の幅を測り、
4
+ * 狭い親でも横並びのままになる。親の割り当て幅を測るため、幅 100% の要素をコンテナにする。
5
+ * 親の幅が決まっていないときは最小幅まで広げる。0 だとカードが見えなくなる。
6
+ * position と maxWidth は Card に残し、DateRangePicker のポップオーバー位置を維持する。
7
+ */
8
+ export declare const CalendarQuery: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
1
9
  export declare const Card: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex/Flex").FlexProps> & import("../Flex/Flex").FlexProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex/Flex").FlexProps> & import("../Flex/Flex").FlexProps, never>> & {
2
10
  as?: import("styled-components").WebTarget | undefined;
3
11
  forwardedAs?: import("styled-components").WebTarget | undefined;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * 左右2カラムかタブ切り替えかは、この要素に割り当てられた幅で決める。
3
+ * タブのときは外枠と角丸を付けない。画面幅が広くても、箱が狭ければ同じ見た目にする。
4
+ * タブは上に残し、その下の一覧だけをスクロールする。
5
+ */
1
6
  export declare const DualListBox2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
2
7
  export declare const TabList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>>> & string;
3
8
  export declare const CountBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
@@ -1,3 +1,4 @@
1
+ import type { RadiiKey } from "../../styles";
1
2
  import { Theme } from "../../themes";
2
3
  export type FilterSize = "small" | "medium" | "large";
3
4
  export type FilterVariant = "light" | "dark";
@@ -6,7 +7,7 @@ export type FilterSizeProps = {
6
7
  };
7
8
  export type FilterSizeConfig = {
8
9
  height: string;
9
- borderRadius: string;
10
+ borderRadius: RadiiKey;
10
11
  iconSize: string;
11
12
  arrowIconSize: string;
12
13
  padding: string;
@@ -1,3 +1,4 @@
1
+ import type { RadiiKey } from "../../styles";
1
2
  import { Theme } from "../../themes";
2
3
  export type InputSize = "small" | "medium" | "large";
3
4
  export type InputVariant = "light" | "dark";
@@ -5,7 +6,7 @@ export type InputSizeConfig = {
5
6
  height: string;
6
7
  fontSize: string;
7
8
  padding: string;
8
- borderRadius: string;
9
+ borderRadius: RadiiKey;
9
10
  iconSize: number;
10
11
  };
11
12
  export declare const TEXTAREA_PADDING = "8px";
@@ -1,3 +1,4 @@
1
+ import type { RadiiKey } from "../../styles";
1
2
  import { Theme } from "../../themes";
2
3
  export type SwitchSize = "small" | "medium" | "large";
3
4
  export type SwitchVariant = "light" | "dark" | "primary";
@@ -5,10 +6,10 @@ export type SwitchSizeConfig = {
5
6
  height: string;
6
7
  fontSize: string;
7
8
  padding: string;
8
- borderRadius: string;
9
+ borderRadius: RadiiKey;
9
10
  itemHeight: string;
10
11
  itemPadding: string;
11
- itemRadius: string;
12
+ itemRadius: RadiiKey;
12
13
  iconSize: string;
13
14
  iconItemWidth: string;
14
15
  gap: string;
@@ -26,7 +26,7 @@ export declare const TAG_SIZES: {
26
26
  readonly fontSize: "11px";
27
27
  readonly padding: "2px 4px";
28
28
  readonly iconSize: "12px";
29
- readonly borderRadius: "4px";
29
+ readonly borderRadius: "small";
30
30
  readonly prependGap: "2px";
31
31
  readonly itemGap: "4px";
32
32
  };
@@ -35,7 +35,7 @@ export declare const TAG_SIZES: {
35
35
  readonly fontSize: "12px";
36
36
  readonly padding: "2px 4px";
37
37
  readonly iconSize: "14px";
38
- readonly borderRadius: "4px";
38
+ readonly borderRadius: "small";
39
39
  readonly prependGap: "2px";
40
40
  readonly itemGap: "6px";
41
41
  };
@@ -44,7 +44,7 @@ export declare const TAG_SIZES: {
44
44
  readonly fontSize: "13px";
45
45
  readonly padding: "4px 6px";
46
46
  readonly iconSize: "16px";
47
- readonly borderRadius: "4px";
47
+ readonly borderRadius: "small";
48
48
  readonly prependGap: "4px";
49
49
  readonly itemGap: "8px";
50
50
  };
@@ -53,7 +53,7 @@ export declare const TAG_SIZES: {
53
53
  readonly fontSize: "14px";
54
54
  readonly padding: "4px 8px";
55
55
  readonly iconSize: "16px";
56
- readonly borderRadius: "4px";
56
+ readonly borderRadius: "small";
57
57
  readonly prependGap: "4px";
58
58
  readonly itemGap: "8px";
59
59
  };