@moderneinc/react-charts 1.2.0-next.4d0411 → 1.2.0-next.932db3

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.
@@ -4,7 +4,7 @@ export declare const TIMELINE_DEFAULTS: {
4
4
  readonly primary: "#992FB9";
5
5
  readonly background: "#FFFFFF";
6
6
  readonly border: "#9CA3AF";
7
- readonly highlightBackground: "rgba(229, 231, 235, 0.5)";
7
+ readonly highlightBackground: "rgba(31, 41, 55, 0.14)";
8
8
  readonly monthLabel: "#9ca3af";
9
9
  readonly tooltipText: "#6b7280";
10
10
  };
@@ -13,6 +13,17 @@ export declare const TIMELINE_DEFAULTS: {
13
13
  readonly eventWidth: 2;
14
14
  };
15
15
  };
16
+ /**
17
+ * Get default slot props with arrow handle styling
18
+ */
19
+ export declare const getArrowHandleSlotProps: (color?: string) => {
20
+ startHandle: {
21
+ sx: SxProps<Theme>;
22
+ };
23
+ endHandle: {
24
+ sx: SxProps<Theme>;
25
+ };
26
+ };
16
27
  export declare const defaultSlotProps: {
17
28
  header: {
18
29
  sx: SxProps<Theme>;
@@ -38,6 +49,8 @@ export declare const defaultSlotProps: {
38
49
  selection: {
39
50
  sx: SxProps<Theme>;
40
51
  };
52
+ startHandle: {};
53
+ endHandle: {};
41
54
  tooltip: {
42
55
  sx: SxProps<Theme>;
43
56
  };
@@ -48,3 +61,22 @@ export declare const defaultSlotProps: {
48
61
  sx: SxProps<Theme>;
49
62
  };
50
63
  };
64
+ /**
65
+ * Get grip handle slot props with custom color
66
+ */
67
+ export declare const getGripHandleSlotProps: (color?: string) => {
68
+ startHandle: {
69
+ sx: SxProps<Theme>;
70
+ };
71
+ endHandle: {
72
+ sx: SxProps<Theme>;
73
+ };
74
+ };
75
+ export declare const gripHandleSlotProps: {
76
+ startHandle: {
77
+ sx: SxProps<Theme>;
78
+ };
79
+ endHandle: {
80
+ sx: SxProps<Theme>;
81
+ };
82
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/react-charts",
3
- "version": "1.2.0-next.4d0411",
3
+ "version": "1.2.0-next.932db3",
4
4
  "description": "Parliament chart visualization library for React",
5
5
  "type": "module",
6
6
  "devEngines": {
@@ -55,9 +55,12 @@
55
55
  "recharts": ">=2.0.0"
56
56
  },
57
57
  "dependencies": {
58
+ "@dnd-kit/core": "^6.3.1",
59
+ "@dnd-kit/utilities": "^3.2.2",
58
60
  "d3-array": "^3.2.4",
59
61
  "d3-axis": "^3.0.0",
60
62
  "d3-brush": "^3.0.0",
63
+ "d3-force": "^3.0.0",
61
64
  "d3-selection": "^3.0.0",
62
65
  "d3-transition": "^3.0.1",
63
66
  "gsap": "^3.13.0",