ingred-ui 37.4.0 → 37.5.0-canary.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.
@@ -17,6 +17,8 @@ type ChartValueAxisProps = {
17
17
  position?: "start" | "end";
18
18
  /** グリッド線を描画するか。右軸では通常 false */
19
19
  showGrid?: boolean;
20
+ /** 金額ラベルを描画するか。固定軸に出すときはプロット側では false */
21
+ showLabels?: boolean;
20
22
  };
21
23
  export declare const ChartValueAxis: React.FC<ChartValueAxisProps>;
22
24
  type ChartCategoryLabelsProps = {
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { ChartLayout } from "./getChartLayout";
3
+ export type ChartStickyAxisSpec = {
4
+ position?: "start" | "end";
5
+ ticks: number[];
6
+ maxValue: number;
7
+ valueFormatter: (value: number) => string;
8
+ };
9
+ type ChartScrollViewportProps = {
10
+ ariaLabel: string;
11
+ chartLayout: ChartLayout;
12
+ /**
13
+ * 縦方向チャートの金額ラベル。スクロール領域の外に固定する。
14
+ * horizontal では渡さない(値軸が横方向のため)。
15
+ */
16
+ stickyAxes?: ChartStickyAxisSpec[];
17
+ children: React.ReactNode;
18
+ };
19
+ export declare const ChartScrollViewport: React.FC<ChartScrollViewportProps>;
20
+ export {};
@@ -0,0 +1,17 @@
1
+ export type ChartScrollMetrics = {
2
+ overflowsHorizontally: boolean;
3
+ scrollLeft: number;
4
+ clientWidth: number;
5
+ scrollWidth: number;
6
+ };
7
+ export type ChartScrollEdges = {
8
+ /** 左に戻れるとき。左端の影を出す */
9
+ showLeadingEdge: boolean;
10
+ /** 右に続きがあるとき。右端の影を出す */
11
+ showTrailingEdge: boolean;
12
+ };
13
+ /**
14
+ * 横スクロールの端に続きがあるかを返す。
15
+ * 未計測(scrollWidth が 0)で溢れが確定しているときは、初期表示で右端の影を出す。
16
+ */
17
+ export declare function getChartScrollEdges({ overflowsHorizontally, scrollLeft, clientWidth, scrollWidth, }: ChartScrollMetrics): ChartScrollEdges;
@@ -6,6 +6,25 @@ export declare const ChartScrollArea: import("styled-components/dist/types").ISt
6
6
  $overflowX: boolean;
7
7
  $overflowY: boolean;
8
8
  }, never>>> & string;
9
+ export declare const ChartPlotFrame: 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;
10
+ export declare const ChartScrollEdge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible" | "$edge" | "$inset"> & {
11
+ $edge: "leading" | "trailing";
12
+ $visible: boolean;
13
+ $inset: number;
14
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible" | "$edge" | "$inset"> & {
15
+ $edge: "leading" | "trailing";
16
+ $visible: boolean;
17
+ $inset: number;
18
+ }, never>>> & string;
19
+ export declare const ChartStickyAxis: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$position" | "$height"> & {
20
+ $position: "start" | "end";
21
+ $width: number;
22
+ $height: number;
23
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$width" | "$position" | "$height"> & {
24
+ $position: "start" | "end";
25
+ $width: number;
26
+ $height: number;
27
+ }, never>>> & string;
9
28
  export declare const ChartSvg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, "$minWidth" | "$minHeight"> & {
10
29
  $minWidth: number;
11
30
  $minHeight: number;