ingred-ui 37.1.1 → 37.1.3

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.
@@ -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,7 @@
1
+ /**
2
+ * 左右2カラムかタブ切り替えかは、この要素に割り当てられた幅で決める。
3
+ * タブは上に残し、その下の一覧だけをスクロールする。
4
+ */
1
5
  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
6
  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
7
  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,4 +1,5 @@
1
1
  import type { PointerEventHandler, ReactNode } from "react";
2
+ import type { Theme } from "../../themes";
2
3
  export type TagSize = "small" | "medium" | "large" | "xl";
3
4
  export type TagVariant = "light" | "dark";
4
5
  export type TagProps = {
@@ -57,17 +58,17 @@ export declare const TAG_SIZES: {
57
58
  readonly itemGap: "8px";
58
59
  };
59
60
  };
60
- export declare const TAG_VARIANTS: {
61
- readonly light: {
62
- readonly background: "#FFFFFF";
63
- readonly border: "#D1D5DA";
64
- readonly text: "#041C33";
65
- readonly hoverIcon: "#1F3449";
61
+ export declare const getTagVariants: (theme: Theme) => {
62
+ light: {
63
+ background: string;
64
+ border: string;
65
+ text: string;
66
+ hoverIcon: string;
66
67
  };
67
- readonly dark: {
68
- readonly background: "#F2F4F5";
69
- readonly border: "#D1D5DA";
70
- readonly text: "#041C33";
71
- readonly hoverIcon: "#1F3449";
68
+ dark: {
69
+ background: string;
70
+ border: string;
71
+ text: string;
72
+ hoverIcon: string;
72
73
  };
73
74
  };