@still-forest/canopy 0.10.0 → 0.11.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/index.d.ts +0 -80
- package/dist/index.js +2716 -5398
- package/dist/index.js.map +1 -1
- package/package.json +4 -23
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import { Bounds } from '@visx/brush/lib/types';
|
|
2
1
|
import { ComponentProps } from 'react';
|
|
3
2
|
import { default as default_2 } from 'react';
|
|
4
|
-
import { default as default_3 } from '@jszymanowski/proper-date.js';
|
|
5
3
|
import { JSX } from 'react/jsx-runtime';
|
|
6
4
|
|
|
7
|
-
export declare const AreaChart: ({ data, opacity, margin, children, }: AreaChartProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export declare interface AreaChartProps {
|
|
10
|
-
data: DataPoint[];
|
|
11
|
-
opacity?: number;
|
|
12
|
-
margin?: {
|
|
13
|
-
top: number;
|
|
14
|
-
right: number;
|
|
15
|
-
bottom: number;
|
|
16
|
-
left: number;
|
|
17
|
-
};
|
|
18
|
-
children?: default_2.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
5
|
export declare const Box: default_2.ForwardRefExoticComponent<BoxProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
22
6
|
|
|
23
7
|
declare const BOX_SIZINGS: readonly ["content", "border"];
|
|
@@ -39,21 +23,6 @@ export declare interface BoxProps extends default_2.HTMLAttributes<HTMLDivElemen
|
|
|
39
23
|
|
|
40
24
|
declare type BoxSizing = (typeof BOX_SIZINGS)[number];
|
|
41
25
|
|
|
42
|
-
export declare const Brush: ({ data, width, height, margin, onChange, }: BrushProps) => JSX.Element | null;
|
|
43
|
-
|
|
44
|
-
export declare interface BrushProps {
|
|
45
|
-
data: DataPoint[];
|
|
46
|
-
width?: number;
|
|
47
|
-
height?: number;
|
|
48
|
-
margin?: {
|
|
49
|
-
top: number;
|
|
50
|
-
right: number;
|
|
51
|
-
bottom: number;
|
|
52
|
-
left: number;
|
|
53
|
-
};
|
|
54
|
-
onChange: (domain: Bounds | null) => void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
26
|
export declare const Button: ({ children, onClick, variant, size, icon, disabled, className, type, asChild, ...rest }: ButtonProps) => JSX.Element;
|
|
58
27
|
|
|
59
28
|
export declare const ButtonGroup: {
|
|
@@ -78,22 +47,6 @@ export declare interface ButtonProps extends default_2.ComponentProps<"button">
|
|
|
78
47
|
asChild?: boolean;
|
|
79
48
|
}
|
|
80
49
|
|
|
81
|
-
declare interface DataPoint {
|
|
82
|
-
x: Date;
|
|
83
|
-
y: number;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare type DataPoint_2 = {
|
|
87
|
-
date: default_3;
|
|
88
|
-
value: number;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
declare interface DataPoint_3 {
|
|
92
|
-
x: Date;
|
|
93
|
-
yTotal: number;
|
|
94
|
-
ySeries: Serie[];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
50
|
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
98
51
|
|
|
99
52
|
declare type Display = (typeof DISPLAYS)[number];
|
|
@@ -215,21 +168,6 @@ declare const LAYOUT_VARIANTS: readonly ["default", "primary", "secondary", "mut
|
|
|
215
168
|
|
|
216
169
|
declare type LayoutVariant = (typeof LAYOUT_VARIANTS)[number];
|
|
217
170
|
|
|
218
|
-
export declare const LineChart: ({ data, label, margin }: LineChartProps) => JSX.Element;
|
|
219
|
-
|
|
220
|
-
export declare type LineChartProps = {
|
|
221
|
-
data: DataPoint_2[];
|
|
222
|
-
label?: string;
|
|
223
|
-
width?: number;
|
|
224
|
-
height?: number;
|
|
225
|
-
margin?: {
|
|
226
|
-
top: number;
|
|
227
|
-
right: number;
|
|
228
|
-
bottom: number;
|
|
229
|
-
left: number;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
|
|
233
171
|
/**
|
|
234
172
|
+ * A specialized input component for numeric values.
|
|
235
173
|
+ * Extends TextInput with number-specific functionality.
|
|
@@ -282,28 +220,10 @@ export declare interface SelectPickerProps {
|
|
|
282
220
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
283
221
|
}
|
|
284
222
|
|
|
285
|
-
declare interface Serie {
|
|
286
|
-
key: string;
|
|
287
|
-
label: string;
|
|
288
|
-
y: number;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
223
|
declare type Size = (typeof SIZES)[number];
|
|
292
224
|
|
|
293
225
|
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
294
226
|
|
|
295
|
-
export declare const StackedAreaChart: ({ margin, data, }: StackedAreaChartProps) => JSX.Element;
|
|
296
|
-
|
|
297
|
-
export declare type StackedAreaChartProps = {
|
|
298
|
-
margin?: {
|
|
299
|
-
top: number;
|
|
300
|
-
right: number;
|
|
301
|
-
bottom: number;
|
|
302
|
-
left: number;
|
|
303
|
-
};
|
|
304
|
-
data: DataPoint_3[];
|
|
305
|
-
};
|
|
306
|
-
|
|
307
227
|
declare const Text_2: default_2.ForwardRefExoticComponent<Omit<any, "ref"> & default_2.RefAttributes<Element>>;
|
|
308
228
|
export { Text_2 as Text }
|
|
309
229
|
|