@graphysdk/theme-phosphor 0.1.1-beta.1793700147232 → 0.1.1-beta.1793702966406
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.cjs +1 -1
- package/dist/index.mjs +26 -23
- package/dist/phosphor.d.ts +2 -2
- package/dist/styles.d.ts +1 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={screen:"#08110B",raised:"#0E1C12",bright:"#8CFFA8",dim:"#5CC47C",faint:"rgba(140, 255, 168, 0.16)",edge:"rgba(140, 255, 168, 0.28)",axis:"rgba(140, 255, 168, 0.8)"},s="'VT323', ui-monospace, monospace",r={green:"#8CFFA8",amber:"#FFC247",cyan:"#6FE8FF",pink:"#FF7AD9",white:"#E8FFE8"},
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={screen:"#08110B",raised:"#0E1C12",bright:"#8CFFA8",dim:"#5CC47C",faint:"rgba(140, 255, 168, 0.16)",edge:"rgba(140, 255, 168, 0.28)",axis:"rgba(140, 255, 168, 0.8)"},s="'VT323', ui-monospace, monospace",r={green:"#8CFFA8",amber:"#FFC247",cyan:"#6FE8FF",pink:"#FF7AD9",white:"#E8FFE8",violet:"#B79CFF"},d=[r.green,r.amber,r.cyan,r.pink,r.white,r.violet],h=["#12351F",r.green],g=[r.cyan,"#161E19",r.amber],a=.42,n=.75,l={offsetX:0,offsetY:0,blur:8,color:"rgba(140, 255, 168, 0.55)"},f={offsetX:0,offsetY:0,blur:5,color:"rgba(140, 255, 168, 0.5)"},p={offsetX:0,offsetY:0,blur:5,color:"rgba(92, 196, 124, 0.6)"},y={pattern:"lines",color:"rgba(0, 0, 0, 0.3)",size:3},c={gradient:"radial",stops:[{offset:0,color:"rgba(0, 0, 0, 0)"},{offset:.6,color:"rgba(0, 0, 0, 0)"},{offset:1,color:"rgba(0, 0, 0, 0.28)"}]},o={fontWeight:400,textColor:t.bright,textShadow:f},i={fontWeight:400,textColor:t.dim,textShadow:p},b={tokens:{graphBackground:t.screen,graphBorder:t.edge,geomBorder:t.axis,textPrimary:t.bright,textSecondary:t.dim,ruleLine:t.bright,gridLine:t.faint,hoverStroke:t.screen,hoverGuideFill:"rgba(140, 255, 168, 0.07)",hoverGuideLine:t.edge,tooltipBackground:t.raised,tooltipBorder:t.edge,tooltipPrimaryRow:"rgba(140, 255, 168, 0.1)",annotationShape:r.amber,annotationArrow:t.bright,differenceLabelBackground:t.raised,trendPositive:t.bright,trendNegative:r.amber,trendNeutral:t.dim},defaults:[e.style.graph({strokeWidth:1,cornerRadius:6,fontFamily:s,padding:20,overpaint:[c,y]}),e.style.geom({shadow:l}),e.style.geom.bar({fillAlpha:a,strokeWidth:1.5,cornerRadius:"sm"}),e.style.geom.bar({fillAlpha:n,strokeWidth:1.5},{state:"hovered"}),e.style.geom.line({strokeWidth:2,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.area({fillAlpha:a,strokeWidth:1.5,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.point({size:8,stroke:t.screen,strokeWidth:1.5}),e.style.geom.tile({fillAlpha:a,shadow:"none",cornerRadius:2,stroke:t.screen,strokeWidth:2}),e.style.geom.tile({fillAlpha:n,stroke:t.bright},{state:"hovered"}),e.style.geom.rule({strokeWidth:1.5,dashArray:[4,4]}),e.style.geom.rule.label({...o,fontSize:16}),e.style.gridLine({strokeWidth:1,dashArray:[1,3]}),e.style.panelBorder({strokeWidth:0}),e.style.axisLine.x({stroke:t.axis,strokeWidth:1.5,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLabel({fontWeight:400,textColor:t.dim,fontSize:16,lineHeight:1}),e.style.axisLabel({...i,fontSize:17,lineHeight:1,letterSpacing:1,textTransform:"uppercase"}),e.style.heading({...o}),e.style.heading.h1({fontSize:28,lineHeight:1.1}),e.style.heading.h2({...i,fontSize:20,lineHeight:1.2}),e.style.caption({...i,fontSize:16,letterSpacing:1,textTransform:"uppercase"}),e.style.source({...i,fontSize:16,letterSpacing:1,textTransform:"uppercase"}),e.style.dataLabel({fontWeight:400,textColor:t.bright,fontSize:16,fill:"transparent"}),e.style.legendItem({...i,fontSize:15,fill:"transparent",stroke:"transparent"}),e.style.directLabel({fontWeight:400,fontSize:17}),e.style.tooltip({strokeWidth:1,cornerRadius:4,paddingInline:12,paddingBlock:8,shadow:l}),e.style.tooltip.heading({...o,fontSize:18,lineHeight:1.1}),e.style.tooltip.label({...i,fontSize:17,lineHeight:1.2}),e.style.tooltip.value({...o,fontSize:17,lineHeight:1.2}),e.style.annotation.text({...o,fill:t.raised,stroke:t.edge,strokeWidth:1,cornerRadius:4,paddingInline:8,paddingBlock:3,fontSize:17,lineHeight:1.1}),e.style.annotation.shape({fillAlpha:.18,stroke:r.amber,strokeWidth:1}),e.style.annotation.arrow({strokeWidth:1.4,dashArray:[]}),e.style.annotation.differenceArrow({stroke:t.bright,strokeWidth:1.4}),e.style.annotation.differenceArrow.label({...o,fill:t.raised,stroke:t.edge,strokeWidth:1,fontSize:17})]},k={name:"phosphor",styles:b,palettes:{categorical:d,sequential:h,diverging:g},colorScheme:"dark"};exports.phosphor=k;
|
package/dist/index.mjs
CHANGED
|
@@ -12,18 +12,20 @@ var r = {
|
|
|
12
12
|
amber: "#FFC247",
|
|
13
13
|
cyan: "#6FE8FF",
|
|
14
14
|
pink: "#FF7AD9",
|
|
15
|
-
white: "#E8FFE8"
|
|
15
|
+
white: "#E8FFE8",
|
|
16
|
+
violet: "#B79CFF"
|
|
16
17
|
}, d = [
|
|
17
18
|
t.green,
|
|
18
19
|
t.amber,
|
|
19
20
|
t.cyan,
|
|
20
21
|
t.pink,
|
|
21
|
-
t.white
|
|
22
|
-
|
|
22
|
+
t.white,
|
|
23
|
+
t.violet
|
|
24
|
+
], h = ["#12351F", t.green], g = [
|
|
23
25
|
t.cyan,
|
|
24
26
|
"#161E19",
|
|
25
27
|
t.amber
|
|
26
|
-
], a = 0.
|
|
28
|
+
], a = 0.42, n = 0.75, l = {
|
|
27
29
|
offsetX: 0,
|
|
28
30
|
offsetY: 0,
|
|
29
31
|
blur: 8,
|
|
@@ -40,7 +42,7 @@ var r = {
|
|
|
40
42
|
color: "rgba(92, 196, 124, 0.6)"
|
|
41
43
|
}, c = {
|
|
42
44
|
pattern: "lines",
|
|
43
|
-
color: "rgba(0, 0, 0, 0.
|
|
45
|
+
color: "rgba(0, 0, 0, 0.3)",
|
|
44
46
|
size: 3
|
|
45
47
|
}, b = {
|
|
46
48
|
gradient: "radial",
|
|
@@ -58,10 +60,6 @@ var r = {
|
|
|
58
60
|
color: "rgba(0, 0, 0, 0.28)"
|
|
59
61
|
}
|
|
60
62
|
]
|
|
61
|
-
}, k = {
|
|
62
|
-
pattern: "lines",
|
|
63
|
-
color: "rgba(8, 17, 11, 0.4)",
|
|
64
|
-
size: 3
|
|
65
63
|
}, o = {
|
|
66
64
|
fontWeight: 400,
|
|
67
65
|
textColor: r.bright,
|
|
@@ -70,7 +68,7 @@ var r = {
|
|
|
70
68
|
fontWeight: 400,
|
|
71
69
|
textColor: r.dim,
|
|
72
70
|
textShadow: p
|
|
73
|
-
},
|
|
71
|
+
}, k = {
|
|
74
72
|
tokens: {
|
|
75
73
|
graphBackground: r.screen,
|
|
76
74
|
graphBorder: r.edge,
|
|
@@ -100,17 +98,14 @@ var r = {
|
|
|
100
98
|
padding: 20,
|
|
101
99
|
overpaint: [b, c]
|
|
102
100
|
}),
|
|
103
|
-
e.geom({
|
|
104
|
-
shadow: n,
|
|
105
|
-
overpaint: k
|
|
106
|
-
}),
|
|
101
|
+
e.geom({ shadow: l }),
|
|
107
102
|
e.geom.bar({
|
|
108
103
|
fillAlpha: a,
|
|
109
104
|
strokeWidth: 1.5,
|
|
110
105
|
cornerRadius: "sm"
|
|
111
106
|
}),
|
|
112
107
|
e.geom.bar({
|
|
113
|
-
fillAlpha:
|
|
108
|
+
fillAlpha: n,
|
|
114
109
|
strokeWidth: 1.5
|
|
115
110
|
}, { state: "hovered" }),
|
|
116
111
|
e.geom.line({
|
|
@@ -132,10 +127,16 @@ var r = {
|
|
|
132
127
|
strokeWidth: 1.5
|
|
133
128
|
}),
|
|
134
129
|
e.geom.tile({
|
|
130
|
+
fillAlpha: a,
|
|
131
|
+
shadow: "none",
|
|
135
132
|
cornerRadius: 2,
|
|
136
133
|
stroke: r.screen,
|
|
137
134
|
strokeWidth: 2
|
|
138
135
|
}),
|
|
136
|
+
e.geom.tile({
|
|
137
|
+
fillAlpha: n,
|
|
138
|
+
stroke: r.bright
|
|
139
|
+
}, { state: "hovered" }),
|
|
139
140
|
e.geom.rule({
|
|
140
141
|
strokeWidth: 1.5,
|
|
141
142
|
dashArray: [4, 4]
|
|
@@ -156,7 +157,8 @@ var r = {
|
|
|
156
157
|
}),
|
|
157
158
|
e.tickLine({ strokeWidth: 0 }),
|
|
158
159
|
e.tickLabel({
|
|
159
|
-
|
|
160
|
+
fontWeight: 400,
|
|
161
|
+
textColor: r.dim,
|
|
160
162
|
fontSize: 16,
|
|
161
163
|
lineHeight: 1
|
|
162
164
|
}),
|
|
@@ -190,13 +192,14 @@ var r = {
|
|
|
190
192
|
textTransform: "uppercase"
|
|
191
193
|
}),
|
|
192
194
|
e.dataLabel({
|
|
193
|
-
|
|
195
|
+
fontWeight: 400,
|
|
196
|
+
textColor: r.bright,
|
|
194
197
|
fontSize: 16,
|
|
195
198
|
fill: "transparent"
|
|
196
199
|
}),
|
|
197
200
|
e.legendItem({
|
|
198
201
|
...i,
|
|
199
|
-
fontSize:
|
|
202
|
+
fontSize: 15,
|
|
200
203
|
fill: "transparent",
|
|
201
204
|
stroke: "transparent"
|
|
202
205
|
}),
|
|
@@ -209,7 +212,7 @@ var r = {
|
|
|
209
212
|
cornerRadius: 4,
|
|
210
213
|
paddingInline: 12,
|
|
211
214
|
paddingBlock: 8,
|
|
212
|
-
shadow:
|
|
215
|
+
shadow: l
|
|
213
216
|
}),
|
|
214
217
|
e.tooltip.heading({
|
|
215
218
|
...o,
|
|
@@ -258,16 +261,16 @@ var r = {
|
|
|
258
261
|
fontSize: 17
|
|
259
262
|
})
|
|
260
263
|
]
|
|
261
|
-
},
|
|
264
|
+
}, S = {
|
|
262
265
|
name: "phosphor",
|
|
263
|
-
styles:
|
|
266
|
+
styles: k,
|
|
264
267
|
palettes: {
|
|
265
268
|
categorical: d,
|
|
266
|
-
sequential:
|
|
269
|
+
sequential: h,
|
|
267
270
|
diverging: g
|
|
268
271
|
},
|
|
269
272
|
colorScheme: "dark"
|
|
270
273
|
};
|
|
271
274
|
export {
|
|
272
|
-
|
|
275
|
+
S as phosphor
|
|
273
276
|
};
|
package/dist/phosphor.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Theme } from '@graphysdk/react';
|
|
2
2
|
/**
|
|
3
3
|
* Graphs on a cathode-ray tube: a dark screen under scanlines, shapes and type that glow green, a
|
|
4
|
-
* terminal face throughout. Groups take the colours tubes were made in: green, amber, cyan, pink and
|
|
5
|
-
* for the dark scheme only.
|
|
4
|
+
* terminal face throughout. Groups take the colours tubes were made in: green, amber, cyan, pink, white and violet.
|
|
5
|
+
* Drawn for the dark scheme only.
|
|
6
6
|
*
|
|
7
7
|
* The face is VT323. Import `@graphysdk/theme-phosphor/fonts.css` once to load it.
|
|
8
8
|
*
|
package/dist/styles.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const PHOSPHOR_TUBES: {
|
|
|
15
15
|
readonly cyan: "#6FE8FF";
|
|
16
16
|
readonly pink: "#FF7AD9";
|
|
17
17
|
readonly white: "#E8FFE8";
|
|
18
|
+
readonly violet: "#B79CFF";
|
|
18
19
|
};
|
|
19
20
|
/** The order groups take their colours in. */
|
|
20
21
|
export declare const PHOSPHOR_PALETTE: readonly string[];
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"theme",
|
|
14
14
|
"phosphor"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.1.1-beta.
|
|
16
|
+
"version": "0.1.1-beta.1793702966406",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"sideEffects": [
|
|
19
19
|
"*.css"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^19.0.0",
|
|
43
|
-
"@graphysdk/react": "^1.9.0-beta.
|
|
43
|
+
"@graphysdk/react": "^1.9.0-beta.1793702966406"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/react": "^16.3.1",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"vite": "^8.1.5",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
54
|
"vitest": "^4.1.11",
|
|
55
|
-
"@graphysdk/react": "1.9.0-beta.1793700147232",
|
|
56
|
-
"@graphysdk/viz-engine": "1.9.0-beta.1793700147232",
|
|
57
55
|
"@graphytools/eslint-config": "0.0.1",
|
|
58
56
|
"@graphytools/typescript-config": "0.0.1",
|
|
59
|
-
"@graphytools/vitest-config": "1.0.0"
|
|
57
|
+
"@graphytools/vitest-config": "1.0.0",
|
|
58
|
+
"@graphysdk/viz-engine": "1.9.0-beta.1793702966406",
|
|
59
|
+
"@graphysdk/react": "1.9.0-beta.1793702966406"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|