@dxos/react-ui-graph 0.8.4-main.8342792842 → 0.8.4-main.8360d9e660

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-graph",
3
- "version": "0.8.4-main.8342792842",
3
+ "version": "0.8.4-main.8360d9e660",
4
4
  "description": "GEM Graph.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -51,13 +51,13 @@
51
51
  "lodash.defaultsdeep": "^4.6.1",
52
52
  "react-resize-detector": "^11.0.1",
53
53
  "topojson-client": "^3.1.0",
54
- "@dxos/debug": "0.8.4-main.8342792842",
55
- "@dxos/invariant": "0.8.4-main.8342792842",
56
- "@dxos/async": "0.8.4-main.8342792842",
57
- "@dxos/graph": "0.8.4-main.8342792842",
58
- "@dxos/node-std": "0.8.4-main.8342792842",
59
- "@dxos/log": "0.8.4-main.8342792842",
60
- "@dxos/react-ui-mosaic": "0.8.4-main.8342792842"
54
+ "@dxos/async": "0.8.4-main.8360d9e660",
55
+ "@dxos/debug": "0.8.4-main.8360d9e660",
56
+ "@dxos/invariant": "0.8.4-main.8360d9e660",
57
+ "@dxos/node-std": "0.8.4-main.8360d9e660",
58
+ "@dxos/graph": "0.8.4-main.8360d9e660",
59
+ "@dxos/log": "0.8.4-main.8360d9e660",
60
+ "@dxos/react-ui-mosaic": "0.8.4-main.8360d9e660"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@babel/core": "^7.18.13",
@@ -70,21 +70,21 @@
70
70
  "postcss": "^8.4.41",
71
71
  "react": "~19.2.3",
72
72
  "react-dom": "~19.2.3",
73
- "@dxos/react-ui": "0.8.4-main.8342792842",
74
- "@dxos/random": "0.8.4-main.8342792842",
75
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.8342792842",
76
- "@dxos/react-ui-stack": "0.8.4-main.8342792842",
77
- "@dxos/ui-theme": "0.8.4-main.8342792842",
78
- "@dxos/storybook-utils": "0.8.4-main.8342792842"
73
+ "@dxos/react-ui": "0.8.4-main.8360d9e660",
74
+ "@dxos/random": "0.8.4-main.8360d9e660",
75
+ "@dxos/react-ui-stack": "0.8.4-main.8360d9e660",
76
+ "@dxos/storybook-utils": "0.8.4-main.8360d9e660",
77
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.8360d9e660",
78
+ "@dxos/ui-theme": "0.8.4-main.8360d9e660"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "~19.2.3",
82
82
  "react-dom": "~19.2.3",
83
- "@dxos/react-ui": "0.8.4-main.8342792842",
84
- "@dxos/ui-theme": "0.8.4-main.8342792842"
83
+ "@dxos/react-ui": "0.8.4-main.8360d9e660",
84
+ "@dxos/ui-theme": "0.8.4-main.8360d9e660"
85
85
  },
86
86
  "optionalDependencies": {
87
- "@dxos/random": "0.8.4-main.8342792842"
87
+ "@dxos/random": "0.8.4-main.8360d9e660"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public"
@@ -9,8 +9,8 @@ import React, { useCallback, useContext, useEffect, useMemo, useRef, useState }
9
9
 
10
10
  import { type Graph, type GraphModel, SelectionModel } from '@dxos/graph';
11
11
  import { IconButton, Popover, Toolbar } from '@dxos/react-ui';
12
- import { withTheme } from '@dxos/react-ui/testing';
13
- import { Card } from '@dxos/react-ui-mosaic';
12
+ import { Card } from '@dxos/react-ui';
13
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
14
14
  import { JsonFilter, SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
15
15
  import { withRegistry } from '@dxos/storybook-utils';
16
16
  import { getHashStyles, mx } from '@dxos/ui-theme';
@@ -206,7 +206,7 @@ const DefaultStory = ({
206
206
 
207
207
  return (
208
208
  <Popover.Root open={!!popover} onOpenChange={(state) => !state && setPopover(undefined)}>
209
- <div className={mx('bs-full is-full grid divide-x divide-separator', debug && 'grid-cols-[1fr_30rem]')}>
209
+ <div className={mx('h-full w-full grid divide-x divide-separator', debug && 'grid-cols-[1fr_30rem]')}>
210
210
  <SVG.Root ref={context}>
211
211
  <SVG.Markers />
212
212
  {grid && <SVG.Grid {...(typeof grid === 'boolean' ? { axis: grid } : grid)} />}
@@ -263,7 +263,7 @@ const DefaultStory = ({
263
263
  <Card.Root>
264
264
  <SyntaxHighlighter
265
265
  language='json'
266
- classNames='text-xs mlb-cardSpacingBlock pli-cardSpacingInline bg-transparent'
266
+ classNames='text-xs my-form-padding px-form-padding bg-transparent'
267
267
  code={JSON.stringify(popover, null, 2)}
268
268
  />
269
269
  </Card.Root>
@@ -328,7 +328,7 @@ const Debug = ({
328
328
  const meta = {
329
329
  title: 'ui/react-ui-graph/Graph',
330
330
  render: DefaultStory,
331
- decorators: [withRegistry, withTheme()],
331
+ decorators: [withRegistry, withTheme(), withLayout({ layout: 'fullscreen' })],
332
332
  parameters: {
333
333
  layout: 'fullscreen',
334
334
  controls: { disable: true },
@@ -42,8 +42,8 @@ const GraphInner = <Node extends Graph$.Node.Any = any, Edge extends Graph$.Edge
42
42
  {
43
43
  classNames,
44
44
  model,
45
- projector: _projector,
46
- renderer: _renderer,
45
+ projector: projectorProp,
46
+ renderer: rendererProp,
47
47
  drag,
48
48
  arrows,
49
49
  onSelect,
@@ -56,12 +56,12 @@ const GraphInner = <Node extends Graph$.Node.Any = any, Edge extends Graph$.Edge
56
56
  const graphRef = useRef<SVGGElement>(null);
57
57
 
58
58
  const { projector, renderer } = useMemo(() => {
59
- let projector = _projector;
59
+ let projector = projectorProp;
60
60
  if (!projector) {
61
61
  projector = new GraphForceProjector<Node>(context);
62
62
  }
63
63
 
64
- let renderer = _renderer;
64
+ let renderer = rendererProp;
65
65
  if (!renderer) {
66
66
  renderer = new GraphRenderer<Node>(context, graphRef, {
67
67
  ...props,
@@ -74,7 +74,7 @@ const GraphInner = <Node extends Graph$.Node.Any = any, Edge extends Graph$.Edge
74
74
  }
75
75
 
76
76
  return { projector, renderer };
77
- }, [context, _projector, _renderer, drag]);
77
+ }, [context, projectorProp, rendererProp, drag]);
78
78
 
79
79
  // External API.
80
80
  useImperativeHandle(
@@ -5,7 +5,7 @@
5
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import React, { useEffect, useState } from 'react';
7
7
 
8
- import { withTheme } from '@dxos/react-ui/testing';
8
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
9
9
 
10
10
  import { SVG, type SVGRootProps } from '../SVG';
11
11
 
@@ -37,7 +37,7 @@ const DefaultStory = (props: SVGRootProps) => {
37
37
  const meta = {
38
38
  title: 'ui/react-ui-graph/Mesh',
39
39
  render: DefaultStory,
40
- decorators: [withTheme()],
40
+ decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
41
41
  parameters: {
42
42
  layout: 'fullscreen',
43
43
  },
@@ -3,7 +3,14 @@
3
3
  //
4
4
 
5
5
  import { select } from 'd3';
6
- import React, { type PropsWithChildren, forwardRef, useEffect, useImperativeHandle, useMemo } from 'react';
6
+ import React, {
7
+ type ComponentPropsWithoutRef,
8
+ type PropsWithChildren,
9
+ forwardRef,
10
+ useEffect,
11
+ useImperativeHandle,
12
+ useMemo,
13
+ } from 'react';
7
14
  import { useResizeDetector } from 'react-resize-detector';
8
15
 
9
16
  import { type ThemedClassName } from '@dxos/react-ui';
@@ -11,18 +18,18 @@ import { mx } from '@dxos/ui-theme';
11
18
 
12
19
  import { SVGContext, type SVGContextOptions, SVGContextProvider } from '../../hooks';
13
20
 
14
- export type RootProps = ThemedClassName<PropsWithChildren<SVGContextOptions>>;
21
+ export type RootProps = ThemedClassName<PropsWithChildren<SVGContextOptions & ComponentPropsWithoutRef<'div'>>>;
15
22
 
16
23
  /**
17
24
  * Makes the SVG context available to child nodes.
18
25
  * Automatically resizes the SVG element, which expands to fit the container.
19
26
  */
20
- export const Root = forwardRef<SVGContext, RootProps>(({ classNames, children, ...props }, ref) => {
27
+ export const Root = forwardRef<SVGContext, RootProps>(({ classNames, children, scale, centered, ...props }, ref) => {
21
28
  const { ref: containerRef, width = 0, height = 0 } = useResizeDetector({ refreshRate: 200 });
22
29
 
23
30
  const context = useMemo<SVGContext>(() => {
24
- return new SVGContext(props);
25
- }, [props.scale, props.centered]);
31
+ return new SVGContext({ scale, centered });
32
+ }, [scale, centered]);
26
33
 
27
34
  useImperativeHandle(ref, () => context, [context]);
28
35
 
@@ -41,7 +48,7 @@ export const Root = forwardRef<SVGContext, RootProps>(({ classNames, children, .
41
48
 
42
49
  return (
43
50
  <SVGContextProvider value={context}>
44
- <div ref={containerRef} className={mx('grid grow overflow-hidden', classNames)}>
51
+ <div {...props} ref={containerRef} className={mx('grid grow overflow-hidden', classNames)}>
45
52
  <svg
46
53
  xmlns='http://www.w3.org/2000/svg'
47
54
  ref={context.ref}
@@ -5,7 +5,7 @@
5
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import React, { useRef } from 'react';
7
7
 
8
- import { withTheme } from '@dxos/react-ui/testing';
8
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
9
9
 
10
10
  import { type SVGContext, useGrid, useZoom } from '../../hooks';
11
11
 
@@ -45,7 +45,7 @@ const DefaultStory = (props: ComponentProps) => {
45
45
  const meta = {
46
46
  title: 'ui/react-ui-graph/SVGRoot',
47
47
  render: DefaultStory,
48
- decorators: [withTheme()],
48
+ decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
49
49
  parameters: {
50
50
  layout: 'fullscreen',
51
51
  },
@@ -6,7 +6,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import { select } from 'd3';
7
7
  import React, { type FC, useEffect, useMemo, useRef } from 'react';
8
8
 
9
- import { withTheme } from '@dxos/react-ui/testing';
9
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
10
10
 
11
11
  import { SVG } from '../components';
12
12
  import { useGrid, useZoom } from '../hooks';
@@ -94,7 +94,7 @@ const createNode: D3Callable<SVGGElement, Datum> = (group, classNames, options)
94
94
  const meta = {
95
95
  title: 'ui/react-ui-graph/fx',
96
96
  render: DefaultStory,
97
- decorators: [withTheme()],
97
+ decorators: [withTheme(), withLayout({ layout: 'fullscreen' })],
98
98
  parameters: {
99
99
  layout: 'fullscreen',
100
100
  },
@@ -10,7 +10,7 @@ import React, { type PropsWithChildren, useContext, useEffect, useMemo, useRef }
10
10
  import { combine } from '@dxos/async';
11
11
  import { type Graph } from '@dxos/graph';
12
12
  import { log } from '@dxos/log';
13
- import { withTheme } from '@dxos/react-ui/testing';
13
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
14
14
  import { withRegistry } from '@dxos/storybook-utils';
15
15
 
16
16
  import { SVG } from '../components';
@@ -158,7 +158,7 @@ const DefaultStory = ({ children, ...props }: ComponentProps) => {
158
158
  const meta = {
159
159
  title: 'ui/react-ui-graph/hooks',
160
160
  render: DefaultStory,
161
- decorators: [withRegistry, withTheme()],
161
+ decorators: [withRegistry, withTheme(), withLayout({ layout: 'fullscreen' })],
162
162
  parameters: {
163
163
  layout: 'fullscreen',
164
164
  },
@@ -30,7 +30,7 @@ export class FractionUtil {
30
30
 
31
31
  /**
32
32
  * @param {Fraction}
33
- * Convert to rounded number.
33
+ * Convert to rounded-sm number.
34
34
  */
35
35
  static toNumber = ([n, d]: Fraction): number => {
36
36
  FractionUtil.validate([n, d]);
package/styles/graph.css CHANGED
@@ -1,8 +1,11 @@
1
+ /* TODO(burdon): Move into theme? */
2
+ @reference "../../ui-theme/src/theme.css";
3
+
1
4
  /**
2
5
  * Graph styles.
3
6
  */
4
7
 
5
- /* TODO(burdon): Implement light/dark theme or use semantic tokens. */
8
+ /* TODO(burdon): Implement light/dark theme or use semantic tokens. light-dark. */
6
9
 
7
10
  svg {
8
11
  marker {
@@ -17,37 +20,65 @@ svg {
17
20
 
18
21
  g.dx-grid {
19
22
  path.dx-axis {
20
- @apply stroke-neutral-200 dark:stroke-neutral-700;
23
+ @apply stroke-neutral-300;
24
+
25
+ .dark & {
26
+ @apply stroke-neutral-800;
27
+ }
21
28
  }
22
29
  path.dx-major {
23
- @apply stroke-neutral-100 dark:stroke-neutral-800;
30
+ @apply stroke-neutral-200;
31
+
32
+ .dark & {
33
+ @apply stroke-neutral-900;
34
+ }
24
35
  }
25
36
  path.dx-minor {
26
- @apply stroke-neutral-100 dark:stroke-neutral-850;
37
+ @apply stroke-neutral-200;
38
+
39
+ .dark & {
40
+ @apply stroke-neutral-950;
41
+ }
27
42
  }
28
- }
43
+ }
29
44
 
30
45
  g.dx-graph {
31
46
  g.dx-guides {
32
47
  circle {
33
- @apply fill-neutral-300 stroke-neutral-500 opacity-10 dark:fill-neutral-700 dark:stroke-neutral-900;
48
+ @apply fill-neutral-400 stroke-neutral-600 opacity-10;
49
+
50
+ .dark & {
51
+ @apply fill-neutral-800 stroke-neutral-950;
52
+ }
34
53
  }
35
54
  }
36
55
 
37
56
  g.dx-subgraphs {
38
57
  path.dx-subgraph {
39
- @apply stroke-red-500 fill-neutral-100 dark:fill-neutral-900 [stroke-dasharray:4_4];
58
+ @apply stroke-red-500 fill-neutral-200 [stroke-dasharray:4_4];
59
+
60
+ .dark & {
61
+ @apply fill-neutral-950;
62
+ }
40
63
  }
41
64
  }
42
65
 
43
66
  g.dx-nodes {
44
67
  g.dx-node {
45
68
  circle {
46
- @apply fill-neutral-200 stroke-neutral-700 dark:fill-neutral-500 dark:stroke-none;
69
+ @apply fill-neutral-300 stroke-neutral-800;
70
+
71
+ .dark & {
72
+ @apply fill-neutral-600 stroke-none;
73
+ }
47
74
  }
48
75
  &.dx-selected {
49
76
  circle {
50
- @apply !fill-red-500 stroke-2 stroke-neutral-900 dark:stroke-neutral-200;
77
+ @apply !fill-red-500 stroke-2 stroke-neutral-950;
78
+
79
+ .dark & {
80
+ @apply stroke-neutral-300;
81
+ }
51
82
  }
52
83
  }
53
84
 
@@ -56,26 +87,135 @@ svg {
56
87
  }
57
88
  }
58
89
 
59
- g[data-color="orange" ].dx-node { circle { @apply fill-orange-300 dark:fill-orange-500 } }
60
- g[data-color="amber" ].dx-node { circle { @apply fill-amber-300 dark:fill-amber-500 } }
61
- g[data-color="yellow" ].dx-node { circle { @apply fill-yellow-300 dark:fill-yellow-500 } }
62
- g[data-color="lime" ].dx-node { circle { @apply fill-lime-300 dark:fill-lime-500 } }
63
- g[data-color="green" ].dx-node { circle { @apply fill-green-300 dark:fill-green-500 } }
64
- g[data-color="emerald"].dx-node { circle { @apply fill-emerald-300 dark:fill-emerald-500 } }
65
- g[data-color="teal" ].dx-node { circle { @apply fill-teal-300 dark:fill-teal-500 } }
66
- g[data-color="cyan" ].dx-node { circle { @apply fill-cyan-300 dark:fill-cyan-500 } }
67
- g[data-color="sky" ].dx-node { circle { @apply fill-sky-300 dark:fill-sky-500 } }
68
- g[data-color="indigo" ].dx-node { circle { @apply fill-indigo-300 dark:fill-indigo-500 } }
69
- g[data-color="violet" ].dx-node { circle { @apply fill-violet-300 dark:fill-violet-500 } }
70
- g[data-color="purple" ].dx-node { circle { @apply fill-purple-300 dark:fill-purple-500 } }
71
- g[data-color="fuchsia"].dx-node { circle { @apply fill-fuchsia-300 dark:fill-fuchsia-500 } }
72
- g[data-color="rose" ].dx-node { circle { @apply fill-rose-300 dark:fill-rose-500 } }
73
- g[data-color="pink" ].dx-node { circle { @apply fill-pink-300 dark:fill-pink-500 } }
90
+ g[data-color='orange'].dx-node {
91
+ circle {
92
+ @apply fill-orange-300;
93
+ .dark & {
94
+ @apply fill-orange-500;
95
+ }
96
+ }
97
+ }
98
+ g[data-color='amber'].dx-node {
99
+ circle {
100
+ @apply fill-amber-300;
101
+ .dark & {
102
+ @apply fill-amber-500;
103
+ }
104
+ }
105
+ }
106
+ g[data-color='yellow'].dx-node {
107
+ circle {
108
+ @apply fill-yellow-300;
109
+ .dark & {
110
+ @apply fill-yellow-500;
111
+ }
112
+ }
113
+ }
114
+ g[data-color='lime'].dx-node {
115
+ circle {
116
+ @apply fill-lime-300;
117
+ .dark & {
118
+ @apply fill-lime-500;
119
+ }
120
+ }
121
+ }
122
+ g[data-color='green'].dx-node {
123
+ circle {
124
+ @apply fill-green-300;
125
+ .dark & {
126
+ @apply fill-green-500;
127
+ }
128
+ }
129
+ }
130
+ g[data-color='emerald'].dx-node {
131
+ circle {
132
+ @apply fill-emerald-300;
133
+ .dark & {
134
+ @apply fill-emerald-500;
135
+ }
136
+ }
137
+ }
138
+ g[data-color='teal'].dx-node {
139
+ circle {
140
+ @apply fill-teal-300;
141
+ .dark & {
142
+ @apply fill-teal-500;
143
+ }
144
+ }
145
+ }
146
+ g[data-color='cyan'].dx-node {
147
+ circle {
148
+ @apply fill-cyan-300;
149
+ .dark & {
150
+ @apply fill-cyan-500;
151
+ }
152
+ }
153
+ }
154
+ g[data-color='sky'].dx-node {
155
+ circle {
156
+ @apply fill-sky-300;
157
+ .dark & {
158
+ @apply fill-sky-500;
159
+ }
160
+ }
161
+ }
162
+ g[data-color='indigo'].dx-node {
163
+ circle {
164
+ @apply fill-indigo-300;
165
+ .dark & {
166
+ @apply fill-indigo-500;
167
+ }
168
+ }
169
+ }
170
+ g[data-color='violet'].dx-node {
171
+ circle {
172
+ @apply fill-violet-300;
173
+ .dark & {
174
+ @apply fill-violet-500;
175
+ }
176
+ }
177
+ }
178
+ g[data-color='purple'].dx-node {
179
+ circle {
180
+ @apply fill-purple-300;
181
+ .dark & {
182
+ @apply fill-purple-500;
183
+ }
184
+ }
185
+ }
186
+ g[data-color='fuchsia'].dx-node {
187
+ circle {
188
+ @apply fill-fuchsia-300;
189
+ .dark & {
190
+ @apply fill-fuchsia-500;
191
+ }
192
+ }
193
+ }
194
+ g[data-color='rose'].dx-node {
195
+ circle {
196
+ @apply fill-rose-300;
197
+ .dark & {
198
+ @apply fill-rose-500;
199
+ }
200
+ }
201
+ }
202
+ g[data-color='pink'].dx-node {
203
+ circle {
204
+ @apply fill-pink-300;
205
+ .dark & {
206
+ @apply fill-pink-500;
207
+ }
208
+ }
209
+ }
74
210
 
75
211
  g.dx-dragging,
76
212
  g.dx-highlight {
77
213
  circle {
78
- @apply stroke-2 stroke-neutral-900 dark:stroke-neutral-200 cursor-pointer;
214
+ @apply stroke-2 stroke-neutral-900 cursor-pointer;
215
+
216
+ .dark & {
217
+ @apply stroke-neutral-200;
218
+ }
79
219
  }
80
220
 
81
221
  g.dx-label {
@@ -85,10 +225,10 @@ svg {
85
225
  @apply stroke-2 stroke-neutral-500;
86
226
  }
87
227
  rect {
88
- @apply stroke-1 stroke-neutral-500 fill-inverseSurface;
228
+ @apply stroke-1 stroke-neutral-500 fill-inverse-surface;
89
229
  }
90
230
  text {
91
- @apply fill-inverseSurfaceText;
231
+ @apply fill-inverse-surface-text;
92
232
  }
93
233
  }
94
234
  }
@@ -98,7 +238,11 @@ svg {
98
238
  g.dx-edge {
99
239
  path {
100
240
  /** NOTE: Set text- so that current color is picked up by marker. */
101
- @apply stroke-1 stroke-neutral-700 dark:stroke-neutral-700;
241
+ @apply stroke-1 stroke-neutral-700;
242
+
243
+ .dark & {
244
+ @apply stroke-neutral-700;
245
+ }
102
246
  }
103
247
 
104
248
  &.dx-dashed {
@@ -108,21 +252,126 @@ svg {
108
252
  }
109
253
  }
110
254
 
111
- g[data-color="orange" ].dx-edge { path { @apply stroke-orange-300 dark:stroke-orange-500 } }
112
- g[data-color="amber" ].dx-edge { path { @apply stroke-amber-300 dark:stroke-amber-500 } }
113
- g[data-color="yellow" ].dx-edge { path { @apply stroke-yellow-300 dark:stroke-yellow-500 } }
114
- g[data-color="lime" ].dx-edge { path { @apply stroke-lime-300 dark:stroke-lime-500 } }
115
- g[data-color="green" ].dx-edge { path { @apply stroke-green-300 dark:stroke-green-500 } }
116
- g[data-color="emerald"].dx-edge { path { @apply stroke-emerald-300 dark:stroke-emerald-500 } }
117
- g[data-color="teal" ].dx-edge { path { @apply stroke-teal-300 dark:stroke-teal-500 } }
118
- g[data-color="cyan" ].dx-edge { path { @apply stroke-cyan-300 dark:stroke-cyan-500 } }
119
- g[data-color="sky" ].dx-edge { path { @apply stroke-sky-300 dark:stroke-sky-500 } }
120
- g[data-color="indigo" ].dx-edge { path { @apply stroke-indigo-300 dark:stroke-indigo-500 } }
121
- g[data-color="violet" ].dx-edge { path { @apply stroke-violet-300 dark:stroke-violet-500 } }
122
- g[data-color="purple" ].dx-edge { path { @apply stroke-purple-300 dark:stroke-purple-500 } }
123
- g[data-color="fuchsia"].dx-edge { path { @apply stroke-fuchsia-300 dark:stroke-fuchsia-500 } }
124
- g[data-color="rose" ].dx-edge { path { @apply stroke-rose-300 dark:stroke-rose-500 } }
125
- g[data-color="pink" ].dx-edge { path { @apply stroke-pink-300 dark:stroke-pink-500 } }
255
+ g[data-color='orange'].dx-edge {
256
+ path {
257
+ @apply stroke-orange-300;
258
+ .dark & {
259
+ @apply stroke-orange-500;
260
+ }
261
+ }
262
+ }
263
+ g[data-color='amber'].dx-edge {
264
+ path {
265
+ @apply stroke-amber-300;
266
+ .dark & {
267
+ @apply stroke-amber-500;
268
+ }
269
+ }
270
+ }
271
+ g[data-color='yellow'].dx-edge {
272
+ path {
273
+ @apply stroke-yellow-300;
274
+ .dark & {
275
+ @apply stroke-yellow-500;
276
+ }
277
+ }
278
+ }
279
+ g[data-color='lime'].dx-edge {
280
+ path {
281
+ @apply stroke-lime-300;
282
+ .dark & {
283
+ @apply stroke-lime-500;
284
+ }
285
+ }
286
+ }
287
+ g[data-color='green'].dx-edge {
288
+ path {
289
+ @apply stroke-green-300;
290
+ .dark & {
291
+ @apply stroke-green-500;
292
+ }
293
+ }
294
+ }
295
+ g[data-color='emerald'].dx-edge {
296
+ path {
297
+ @apply stroke-emerald-300;
298
+ .dark & {
299
+ @apply stroke-emerald-500;
300
+ }
301
+ }
302
+ }
303
+ g[data-color='teal'].dx-edge {
304
+ path {
305
+ @apply stroke-teal-300;
306
+ .dark & {
307
+ @apply stroke-teal-500;
308
+ }
309
+ }
310
+ }
311
+ g[data-color='cyan'].dx-edge {
312
+ path {
313
+ @apply stroke-cyan-300;
314
+ .dark & {
315
+ @apply stroke-cyan-500;
316
+ }
317
+ }
318
+ }
319
+ g[data-color='sky'].dx-edge {
320
+ path {
321
+ @apply stroke-sky-300;
322
+ .dark & {
323
+ @apply stroke-sky-500;
324
+ }
325
+ }
326
+ }
327
+ g[data-color='indigo'].dx-edge {
328
+ path {
329
+ @apply stroke-indigo-300;
330
+ .dark & {
331
+ @apply stroke-indigo-500;
332
+ }
333
+ }
334
+ }
335
+ g[data-color='violet'].dx-edge {
336
+ path {
337
+ @apply stroke-violet-300;
338
+ .dark & {
339
+ @apply stroke-violet-500;
340
+ }
341
+ }
342
+ }
343
+ g[data-color='purple'].dx-edge {
344
+ path {
345
+ @apply stroke-purple-300;
346
+ .dark & {
347
+ @apply stroke-purple-500;
348
+ }
349
+ }
350
+ }
351
+ g[data-color='fuchsia'].dx-edge {
352
+ path {
353
+ @apply stroke-fuchsia-300;
354
+ .dark & {
355
+ @apply stroke-fuchsia-500;
356
+ }
357
+ }
358
+ }
359
+ g[data-color='rose'].dx-edge {
360
+ path {
361
+ @apply stroke-rose-300;
362
+ .dark & {
363
+ @apply stroke-rose-500;
364
+ }
365
+ }
366
+ }
367
+ g[data-color='pink'].dx-edge {
368
+ path {
369
+ @apply stroke-pink-300;
370
+ .dark & {
371
+ @apply stroke-pink-500;
372
+ }
373
+ }
374
+ }
126
375
  }
127
376
 
128
377
  .dx-linker {