@graphysdk/theme-spreadsheet 0.1.1-beta.1792407460425 → 0.1.1-beta.1792410301640
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 +12 -9
- 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={white:"#FFFFFF",text:"#202124",secondary:"#757575",baseline:"#333333",rule:"#CCCCCC",edge:"#DADCE0",connector:"#BDBDBD"},
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={white:"#FFFFFF",text:"#202124",secondary:"#757575",baseline:"#333333",rule:"#CCCCCC",edge:"#DADCE0",connector:"#BDBDBD"},n="Arial, 'Helvetica Neue', Helvetica, sans-serif",r={blue:"#5384EC",red:"#D75140",yellow:"#F2BF42",green:"#58A55D",orange:"#EE762F"},a=[r.blue,r.red,r.yellow,r.green,r.orange],l=["#E3EBFB",r.blue,"#2A56B8"],s=[r.blue,"#F0F0F0",r.red],o={textColor:t.text},i={textColor:t.secondary},d={offsetX:0,offsetY:1,blur:3,color:"rgba(0, 0, 0, 0.2)"},h={tokens:{graphBackground:t.white,graphBorder:t.edge,geomBorder:t.connector,textPrimary:t.text,textSecondary:t.secondary,ruleLine:t.baseline,gridLine:t.rule,hoverAffordance:t.white,hoverGuideFill:"rgba(32, 33, 36, 0.05)",hoverGuideLine:t.secondary,tooltipBackground:t.white,tooltipBorder:t.edge,tooltipPrimaryRow:"rgba(32, 33, 36, 0.05)",annotationShape:r.blue,annotationArrow:t.text,differenceLabelBackground:t.white,trendPositive:r.green,trendNegative:r.red,trendNeutral:t.secondary},defaults:[e.style.graph({strokeWidth:1,cornerRadius:0,fontFamily:n,padding:20}),e.style.geom.bar({cornerRadius:"none",strokeWidth:0}),e.style.geom.bar({stroke:t.white,strokeWidth:2,shadow:"none"},{state:"hovered"}),e.style.geom.line({strokeWidth:2,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.area({fillAlpha:.3,strokeWidth:2,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.point({size:7,stroke:t.white,strokeWidth:0}),e.style.geom.point({size:10,stroke:t.white,strokeWidth:2},{state:"hovered"}),e.style.geom.tile({cornerRadius:0,stroke:t.white,strokeWidth:1}),e.style.geom.tile({stroke:t.white,strokeWidth:2},{state:"hovered"}),e.style.geom.rule({strokeWidth:1,dashArray:[]}),e.style.geom.rule.label({...i,fontWeight:400,fontSize:12}),e.style.geom({shadow:"none"},{state:"hovered"}),e.style.gridLine({dashArray:[]}),e.style.gridLine.x({strokeWidth:0}),e.style.gridLine.y({strokeWidth:1}),e.style.panelBorder({strokeWidth:0}),e.style.panelBorder.bottom({stroke:t.baseline,strokeWidth:1,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLabel({...o,fontWeight:400,fontSize:12,lineHeight:1}),e.style.axisLabel({...o,fontWeight:400,fontSize:12,lineHeight:1}),e.style.heading({...o}),e.style.heading.h1({...i,fontWeight:400,fontSize:18,lineHeight:1.25}),e.style.heading.h2({...i,fontWeight:400,fontSize:12,lineHeight:1.4}),e.style.caption({...i,fontWeight:400,fontSize:12}),e.style.source({...i,fontWeight:400,fontSize:12}),e.style.dataLabel({...i,fontWeight:400,fontSize:12,fill:"transparent"}),e.style.dataLabel.observation.inside({...o}),e.style.dataLabel.category.inside({...o}),e.style.legendItem({...i,fontWeight:400,fontSize:12,fill:"transparent",stroke:"transparent"}),e.style.directLabel({...i,fontWeight:400,fontSize:12}),e.style.tooltip({strokeWidth:1,cornerRadius:2,paddingInline:10,paddingBlock:8,shadow:d}),e.style.tooltip.heading({...o,fontWeight:700,fontSize:12,lineHeight:1.3}),e.style.tooltip.label({...o,fontWeight:400,fontSize:12,lineHeight:1.4}),e.style.tooltip.value({...o,fontWeight:700,fontSize:12,lineHeight:1.4}),e.style.annotation.text({...o,fill:"transparent",strokeWidth:0,fontSize:12,lineHeight:1.3}),e.style.annotation.shape({fillAlpha:.2,strokeWidth:0}),e.style.annotation.arrow({strokeWidth:1,dashArray:[]}),e.style.annotation.differenceArrow({stroke:t.text,strokeWidth:1}),e.style.annotation.differenceArrow.label({...o,fill:t.white,stroke:t.edge,strokeWidth:1,cornerRadius:2,fontSize:12}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"}),e.style.geom.bar({stroke:t.white,strokeWidth:1},{coord:"polar"}),e.style.gridLine({stroke:t.rule,strokeWidth:1},{coord:"polar"}),e.style.tickLabel({...o,fontWeight:500,textOutlineColor:t.white,textOutlineWidth:3},{coord:"polar"})]},g={name:"spreadsheet",styles:h,palettes:{categorical:a,sequential:l,diverging:s},config:{axes:{y:{position:"left"}},legend:{position:"top",align:"center"}},colorScheme:"light"};exports.spreadsheet=g;
|
package/dist/index.mjs
CHANGED
|
@@ -19,20 +19,20 @@ var t = {
|
|
|
19
19
|
i.yellow,
|
|
20
20
|
i.green,
|
|
21
21
|
i.orange
|
|
22
|
-
],
|
|
22
|
+
], d = [
|
|
23
23
|
"#E3EBFB",
|
|
24
24
|
i.blue,
|
|
25
25
|
"#2A56B8"
|
|
26
|
-
],
|
|
26
|
+
], l = [
|
|
27
27
|
i.blue,
|
|
28
28
|
"#F0F0F0",
|
|
29
29
|
i.red
|
|
30
|
-
], o = { textColor: t.text }, r = { textColor: t.secondary },
|
|
30
|
+
], o = { textColor: t.text }, r = { textColor: t.secondary }, s = {
|
|
31
31
|
offsetX: 0,
|
|
32
32
|
offsetY: 1,
|
|
33
33
|
blur: 3,
|
|
34
34
|
color: "rgba(0, 0, 0, 0.2)"
|
|
35
|
-
},
|
|
35
|
+
}, h = {
|
|
36
36
|
tokens: {
|
|
37
37
|
graphBackground: t.white,
|
|
38
38
|
graphBorder: t.edge,
|
|
@@ -49,7 +49,10 @@ var t = {
|
|
|
49
49
|
tooltipPrimaryRow: "rgba(32, 33, 36, 0.05)",
|
|
50
50
|
annotationShape: i.blue,
|
|
51
51
|
annotationArrow: t.text,
|
|
52
|
-
differenceLabelBackground: t.white
|
|
52
|
+
differenceLabelBackground: t.white,
|
|
53
|
+
trendPositive: i.green,
|
|
54
|
+
trendNegative: i.red,
|
|
55
|
+
trendNeutral: t.secondary
|
|
53
56
|
},
|
|
54
57
|
defaults: [
|
|
55
58
|
e.graph({
|
|
@@ -179,7 +182,7 @@ var t = {
|
|
|
179
182
|
cornerRadius: 2,
|
|
180
183
|
paddingInline: 10,
|
|
181
184
|
paddingBlock: 8,
|
|
182
|
-
shadow:
|
|
185
|
+
shadow: s
|
|
183
186
|
}),
|
|
184
187
|
e.tooltip.heading({
|
|
185
188
|
...o,
|
|
@@ -244,11 +247,11 @@ var t = {
|
|
|
244
247
|
]
|
|
245
248
|
}, f = {
|
|
246
249
|
name: "spreadsheet",
|
|
247
|
-
styles:
|
|
250
|
+
styles: h,
|
|
248
251
|
palettes: {
|
|
249
252
|
categorical: a,
|
|
250
|
-
sequential:
|
|
251
|
-
diverging:
|
|
253
|
+
sequential: d,
|
|
254
|
+
diverging: l
|
|
252
255
|
},
|
|
253
256
|
config: {
|
|
254
257
|
axes: { y: { position: "left" } },
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"theme",
|
|
14
14
|
"spreadsheet"
|
|
15
15
|
],
|
|
16
|
-
"version": "0.1.1-beta.
|
|
16
|
+
"version": "0.1.1-beta.1792410301640",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"files": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "^19.0.0",
|
|
34
|
-
"@graphysdk/react": "^1.9.0-beta.
|
|
34
|
+
"@graphysdk/react": "^1.9.0-beta.1792410301640"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@testing-library/react": "^16.3.1",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"vite-plugin-dts": "^4.5.4",
|
|
45
45
|
"vitest": "^4.1.11",
|
|
46
46
|
"@graphytools/typescript-config": "0.0.1",
|
|
47
|
-
"@graphysdk/viz-engine": "1.9.0-beta.1792407460425",
|
|
48
|
-
"@graphysdk/react": "1.9.0-beta.1792407460425",
|
|
49
47
|
"@graphytools/eslint-config": "0.0.1",
|
|
50
|
-
"@graphytools/vitest-config": "1.0.0"
|
|
48
|
+
"@graphytools/vitest-config": "1.0.0",
|
|
49
|
+
"@graphysdk/viz-engine": "1.9.0-beta.1792410301640",
|
|
50
|
+
"@graphysdk/react": "1.9.0-beta.1792410301640"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|