@graphysdk/theme-blueprint 0.1.1-beta.1792575115573 → 0.1.1-beta.1792582784445

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 CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={sheet:"#0F3A7D",raised:"#0B2F68",line:"#F2F7FF",pale:"#A9C8F0",construction:"rgba(169, 200, 240, 0.38)",edge:"rgba(169, 200, 240, 0.55)",checked:"#FFA23A"},c="'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace",o={white:"#F2F7FF",yellow:"#FFD34D",sky:"#7DB8FF",red:"#FF8373",aqua:"#6FE3D6",lilac:"#C9B8FF"},k=[o.white,o.yellow,o.sky,o.red,o.aqua,o.lilac],f=["#3A6BBF",o.white],u=[o.sky,"#1D427D",o.red],p=(l,s)=>`data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="0 0 ${l} ${l}">${s}</svg>`)}`,d=80,v=16,W=()=>{const l=[];for(let s=0;s<d;s+=v){const y=s===0?.075:.04,h=s+.5;l.push(`<path d="M${h} 0V${d}M0 ${h}H${d}" stroke="#A9C8F0" stroke-opacity="${y}" stroke-width="1" fill="none"/>`)}return l.join("")},m={image:p(d,W()),fit:"tile",size:d,fallback:t.sheet},i=12,L={image:p(i,`<path d="${[`M0 ${i}L${i} 0`,`M-${i} ${i}L${i} -${i}`,`M0 ${2*i}L${2*i} 0`].join("")}" stroke="${t.sheet}" stroke-opacity="0.76" stroke-width="8" fill="none"/>`),fit:"tile",size:i,fallback:"transparent"},n={textColor:t.line},a={textColor:t.pale},r={letterSpacing:.8,textTransform:"uppercase"},g=1.5,S=1,b={tokens:{graphBackground:t.sheet,graphBorder:t.edge,geomBorder:t.line,textPrimary:t.line,textSecondary:t.pale,ruleLine:o.yellow,gridLine:t.construction,hoverAffordance:t.checked,hoverGuideFill:"rgba(169, 200, 240, 0.1)",hoverGuideLine:t.edge,tooltipBackground:t.raised,tooltipBorder:t.pale,tooltipPrimaryRow:"rgba(169, 200, 240, 0.14)",annotationShape:o.yellow,annotationArrow:t.line,differenceLabelBackground:t.sheet,trendPositive:o.aqua,trendNegative:o.red,trendNeutral:t.pale},defaults:[e.style.graph({fill:m,strokeWidth:1,cornerRadius:0,fontFamily:c,padding:24}),e.style.geom({shadow:"none"},{state:"hovered"}),e.style.geom({overpaint:L}),e.style.geom.bar({strokeWidth:S,cornerRadius:"none"}),e.style.geom.bar({overpaint:"none",shadow:"none",stroke:t.checked,strokeWidth:1.5},{state:"hovered"}),e.style.geom.bar({stroke:t.sheet,strokeWidth:2},{coord:"polar"}),e.style.geom.line({overpaint:"none",strokeWidth:g,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.area({overpaint:"none",fillAlpha:.22,strokeWidth:g,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.point({overpaint:"none",size:8,stroke:t.sheet,strokeWidth:1.5}),e.style.geom.tile({cornerRadius:0,stroke:t.sheet,strokeWidth:1.5}),e.style.geom.tile({overpaint:"none",stroke:t.checked,strokeWidth:1.5},{state:"hovered"}),e.style.geom.rule({strokeWidth:1,dashArray:[8,3,2,3]}),e.style.geom.rule.label({...n,...r,fontWeight:500,fontSize:11}),e.style.gridLine({strokeWidth:1,dashArray:[5,4]}),e.style.panelBorder({strokeWidth:0,cornerRadius:0}),e.style.panelBorder.bottom({stroke:t.line,strokeWidth:1,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLine.x({stroke:t.line,strokeWidth:1,length:5}),e.style.tickLabel({...a,...r,fontWeight:400,fontSize:11,lineHeight:1}),e.style.axisLabel({...a,...r,fontWeight:500,fontSize:11,lineHeight:1,letterSpacing:1.2}),e.style.heading({...n}),e.style.heading.h1({...r,fontWeight:600,fontSize:15,lineHeight:1.35,letterSpacing:1}),e.style.heading.h2({...a,fontWeight:400,fontSize:12.5,lineHeight:1.4}),e.style.caption({...a,...r,fontWeight:400,fontSize:10.5}),e.style.source({...a,...r,fontWeight:400,fontSize:10.5}),e.style.source.link({...a,...r,fontWeight:400,fontSize:10.5}),e.style.dataLabel({...n,fontWeight:500,fontSize:11.5,fill:t.sheet,cornerRadius:0}),e.style.legendItem({...a,...r,fontWeight:500,fontSize:11,fill:"transparent",stroke:"transparent"}),e.style.legendItem.swatch({size:10}),e.style.directLabel({...r,fontWeight:500,fontSize:11}),e.style.tooltip({strokeWidth:1,cornerRadius:0,paddingInline:10,paddingBlock:8,shadow:"none"}),e.style.tooltip.heading({...n,...r,fontWeight:600,fontSize:11,lineHeight:1.3}),e.style.tooltip.label({...a,fontWeight:400,fontSize:12,lineHeight:1.4}),e.style.tooltip.value({...n,fontWeight:500,fontSize:12,lineHeight:1.4}),e.style.legend.popover({strokeWidth:1,cornerRadius:0,shadow:"none"}),e.style.annotation.text({...n,fill:t.sheet,stroke:t.pale,strokeWidth:1,cornerRadius:0,paddingInline:7,paddingBlock:3,fontSize:12,lineHeight:1.3}),e.style.annotation.shape({fillAlpha:.14,stroke:o.yellow,strokeWidth:1}),e.style.annotation.arrow({strokeWidth:1.25,dashArray:[]}),e.style.annotation.pinnedNumber({stroke:t.sheet,shadow:"none"}),e.style.annotation.pinnedNumber.label({...n,fill:t.raised,stroke:t.pale,cornerRadius:0,shadow:"none"}),e.style.annotation.differenceArrow({stroke:t.line,strokeWidth:1}),e.style.annotation.differenceArrow.label({...n,fill:t.sheet,stroke:t.pale,strokeWidth:1,cornerRadius:0,fontSize:11.5}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"}),e.style.tickLine.x({strokeWidth:0},{coord:"polar"})]},F={name:"blueprint",styles:b,palettes:{categorical:k,sequential:f,diverging:u},config:{legend:{position:"top",align:"start"}},colorScheme:"dark"};exports.blueprint=F;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={sheet:"#0F3A7D",raised:"#0B2F68",line:"#F2F7FF",pale:"#A9C8F0",construction:"rgba(169, 200, 240, 0.38)",edge:"rgba(169, 200, 240, 0.55)",checked:"#FFA23A"},y="'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace",o={white:"#F2F7FF",yellow:"#FFD34D",sky:"#7DB8FF",red:"#FF8373",aqua:"#6FE3D6",lilac:"#C9B8FF"},k=[o.white,o.yellow,o.sky,o.red,o.aqua,o.lilac],f=["#3A6BBF",o.white],u=[o.sky,"#1D427D",o.red],p=(l,s)=>`data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="${l}" height="${l}" viewBox="0 0 ${l} ${l}">${s}</svg>`)}`,d=80,v=16,W=()=>{const l=[];for(let s=0;s<d;s+=v){const c=s===0?.075:.04,h=s+.5;l.push(`<path d="M${h} 0V${d}M0 ${h}H${d}" stroke="#A9C8F0" stroke-opacity="${c}" stroke-width="1" fill="none"/>`)}return l.join("")},m={image:p(d,W()),fit:"tile",size:d,aspectRatio:1,fallback:t.sheet},i=12,L={image:p(i,`<path d="${[`M0 ${i}L${i} 0`,`M-${i} ${i}L${i} -${i}`,`M0 ${2*i}L${2*i} 0`].join("")}" stroke="${t.sheet}" stroke-opacity="0.76" stroke-width="8" fill="none"/>`),fit:"tile",size:i,aspectRatio:1,fallback:"transparent"},n={textColor:t.line},a={textColor:t.pale},r={letterSpacing:.8,textTransform:"uppercase"},g=1.5,S=1,b={tokens:{graphBackground:t.sheet,graphBorder:t.edge,geomBorder:t.line,textPrimary:t.line,textSecondary:t.pale,ruleLine:o.yellow,gridLine:t.construction,hoverAffordance:t.checked,hoverGuideFill:"rgba(169, 200, 240, 0.1)",hoverGuideLine:t.edge,tooltipBackground:t.raised,tooltipBorder:t.pale,tooltipPrimaryRow:"rgba(169, 200, 240, 0.14)",annotationShape:o.yellow,annotationArrow:t.line,differenceLabelBackground:t.sheet,trendPositive:o.aqua,trendNegative:o.red,trendNeutral:t.pale},defaults:[e.style.graph({fill:m,strokeWidth:1,cornerRadius:0,fontFamily:y,padding:24}),e.style.geom({shadow:"none"},{state:"hovered"}),e.style.geom({overpaint:L}),e.style.geom.bar({strokeWidth:S,cornerRadius:"none"}),e.style.geom.bar({overpaint:"none",shadow:"none",stroke:t.checked,strokeWidth:1.5},{state:"hovered"}),e.style.geom.bar({stroke:t.sheet,strokeWidth:2},{coord:"polar"}),e.style.geom.line({overpaint:"none",strokeWidth:g,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.area({overpaint:"none",fillAlpha:.22,strokeWidth:g,dashArray:[],lineCap:"butt",lineJoin:"miter"}),e.style.geom.point({overpaint:"none",size:8,stroke:t.sheet,strokeWidth:1.5}),e.style.geom.tile({cornerRadius:0,stroke:t.sheet,strokeWidth:1.5}),e.style.geom.tile({overpaint:"none",stroke:t.checked,strokeWidth:1.5},{state:"hovered"}),e.style.geom.rule({strokeWidth:1,dashArray:[8,3,2,3]}),e.style.geom.rule.label({...n,...r,fontWeight:500,fontSize:11}),e.style.gridLine({strokeWidth:1,dashArray:[5,4]}),e.style.panelBorder({strokeWidth:0,cornerRadius:0}),e.style.panelBorder.bottom({stroke:t.line,strokeWidth:1,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLine.x({stroke:t.line,strokeWidth:1,length:5}),e.style.tickLabel({...a,...r,fontWeight:400,fontSize:11,lineHeight:1}),e.style.axisLabel({...a,...r,fontWeight:500,fontSize:11,lineHeight:1,letterSpacing:1.2}),e.style.heading({...n}),e.style.heading.h1({...r,fontWeight:600,fontSize:15,lineHeight:1.35,letterSpacing:1}),e.style.heading.h2({...a,fontWeight:400,fontSize:12.5,lineHeight:1.4}),e.style.caption({...a,...r,fontWeight:400,fontSize:10.5}),e.style.source({...a,...r,fontWeight:400,fontSize:10.5}),e.style.source.link({...a,...r,fontWeight:400,fontSize:10.5}),e.style.dataLabel({...n,fontWeight:500,fontSize:11.5,fill:t.sheet,cornerRadius:0}),e.style.legendItem({...a,...r,fontWeight:500,fontSize:11,fill:"transparent",stroke:"transparent"}),e.style.legendItem.swatch({size:10}),e.style.directLabel({...r,fontWeight:500,fontSize:11}),e.style.tooltip({strokeWidth:1,cornerRadius:0,paddingInline:10,paddingBlock:8,shadow:"none"}),e.style.tooltip.heading({...n,...r,fontWeight:600,fontSize:11,lineHeight:1.3}),e.style.tooltip.label({...a,fontWeight:400,fontSize:12,lineHeight:1.4}),e.style.tooltip.value({...n,fontWeight:500,fontSize:12,lineHeight:1.4}),e.style.legend.popover({strokeWidth:1,cornerRadius:0,shadow:"none"}),e.style.annotation.text({...n,fill:t.sheet,stroke:t.pale,strokeWidth:1,cornerRadius:0,paddingInline:7,paddingBlock:3,fontSize:12,lineHeight:1.3}),e.style.annotation.shape({fillAlpha:.14,stroke:o.yellow,strokeWidth:1}),e.style.annotation.arrow({strokeWidth:1.25,dashArray:[]}),e.style.annotation.pinnedNumber({stroke:t.sheet,shadow:"none"}),e.style.annotation.pinnedNumber.label({...n,fill:t.raised,stroke:t.pale,cornerRadius:0,shadow:"none"}),e.style.annotation.differenceArrow({stroke:t.line,strokeWidth:1}),e.style.annotation.differenceArrow.label({...n,fill:t.sheet,stroke:t.pale,strokeWidth:1,cornerRadius:0,fontSize:11.5}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"}),e.style.tickLine.x({strokeWidth:0},{coord:"polar"})]},F={name:"blueprint",styles:b,palettes:{categorical:k,sequential:f,diverging:u},config:{legend:{position:"top",align:"start"}},colorScheme:"dark"};exports.blueprint=F;
package/dist/index.mjs CHANGED
@@ -36,6 +36,7 @@ var t = {
36
36
  image: p(d, m()),
37
37
  fit: "tile",
38
38
  size: d,
39
+ aspectRatio: 1,
39
40
  fallback: t.sheet
40
41
  }, i = 12, S = {
41
42
  image: p(i, `<path d="${[
@@ -45,6 +46,7 @@ var t = {
45
46
  ].join("")}" stroke="${t.sheet}" stroke-opacity="0.76" stroke-width="8" fill="none"/>`),
46
47
  fit: "tile",
47
48
  size: i,
49
+ aspectRatio: 1,
48
50
  fallback: "transparent"
49
51
  }, n = { textColor: t.line }, a = { textColor: t.pale }, r = {
50
52
  letterSpacing: 0.8,
@@ -305,7 +307,7 @@ var t = {
305
307
  e.panelBorder.bottom({ strokeWidth: 0 }, { coord: "polar" }),
306
308
  e.tickLine.x({ strokeWidth: 0 }, { coord: "polar" })
307
309
  ]
308
- }, b = {
310
+ }, R = {
309
311
  name: "blueprint",
310
312
  styles: I,
311
313
  palettes: {
@@ -320,5 +322,5 @@ var t = {
320
322
  colorScheme: "dark"
321
323
  };
322
324
  export {
323
- b as blueprint
325
+ R as blueprint
324
326
  };
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "theme",
14
14
  "blueprint"
15
15
  ],
16
- "version": "0.1.1-beta.1792575115573",
16
+ "version": "0.1.1-beta.1792582784445",
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.1792575115573"
43
+ "@graphysdk/react": "^1.9.0-beta.1792582784445"
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.1792575115573",
56
- "@graphysdk/viz-engine": "1.9.0-beta.1792575115573",
57
- "@graphytools/eslint-config": "0.0.1",
55
+ "@graphysdk/viz-engine": "1.9.0-beta.1792582784445",
56
+ "@graphysdk/react": "1.9.0-beta.1792582784445",
58
57
  "@graphytools/typescript-config": "0.0.1",
59
- "@graphytools/vitest-config": "1.0.0"
58
+ "@graphytools/vitest-config": "1.0.0",
59
+ "@graphytools/eslint-config": "0.0.1"
60
60
  },
61
61
  "publishConfig": {
62
62
  "access": "public"