@graphysdk/theme-graphite 0.0.0-stage → 0.1.1-beta.1791459323341
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/LICENSE.md +17 -0
- package/README.md +61 -2
- package/dist/graphite.d.ts +12 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +270 -0
- package/dist/styles.d.ts +56 -0
- package/fonts.css +2 -0
- package/licenses/PolyForm-Free-Trial-1.0.0.md +93 -0
- package/licenses/PolyForm-NonCommercial-1.0.0.md +131 -0
- package/licenses/PolyForm-Small-Business-1.0.0.md +121 -0
- package/package.json +79 -3
- package/src/fonts.css.d.ts +2 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
This software is available under any of the following licenses, at your option,
|
|
4
|
+
depending on which one's conditions you meet:
|
|
5
|
+
|
|
6
|
+
- **PolyForm Noncommercial 1.0.0** — for noncommercial use (personal,
|
|
7
|
+
charitable, educational, research, government).
|
|
8
|
+
See [licenses/PolyForm-NonCommercial-1.0.0.md](licenses/PolyForm-NonCommercial-1.0.0.md)
|
|
9
|
+
|
|
10
|
+
- **PolyForm Small Business 1.0.0** — free commercial use for organizations
|
|
11
|
+
under the size thresholds defined in the license.
|
|
12
|
+
See [licenses/PolyForm-Small-Business-1.0.0.md](licenses/PolyForm-Small-Business-1.0.0.md)
|
|
13
|
+
|
|
14
|
+
- **PolyForm Free Trial 1.0.0** — a 32-day evaluation for anyone else.
|
|
15
|
+
See [licenses/PolyForm-Free-Trial-1.0.0.md](licenses/PolyForm-Free-Trial-1.0.0.md)
|
|
16
|
+
|
|
17
|
+
For commercial use beyond these terms, contact [hello@graphy.dev](mailto:hello@graphy.dev) or visit [https://graphy.dev](https://graphy.dev).
|
package/README.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @graphysdk/theme-graphite
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
> **Beta.** This theme is on a `0.x` version line: a minor release may change its look. Use a caret range (`^0.1.0`) to take only patches.
|
|
4
|
+
|
|
5
|
+
A graphite theme for the Graphy charting SDK: graphs in one cool grey, their groups told apart by lightness alone, for light and dark schemes.
|
|
6
|
+
|
|
7
|
+
Learn more at [graphy.dev](https://graphy.dev).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @graphysdk/theme-graphite @graphysdk/react
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Requires React 19. Its only peer is `@graphysdk/react`.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Pass the theme to `createGraphyKit` and import its fonts once. Every graph drawn through the kit's `GraphProvider` takes the theme; specs are written as usual.
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { createGraphyKit, GraphRenderer } from '@graphysdk/react';
|
|
23
|
+
import { graphite } from '@graphysdk/theme-graphite';
|
|
24
|
+
import '@graphysdk/theme-graphite/fonts.css';
|
|
25
|
+
|
|
26
|
+
const kit = createGraphyKit({ theme: graphite });
|
|
27
|
+
|
|
28
|
+
const spec = kit.pipe(
|
|
29
|
+
kit.createSpec({ x: 'quarter', y: 'revenue', color: 'region' }),
|
|
30
|
+
kit.geom.bar({ position: 'dodge' }),
|
|
31
|
+
kit.scale.x(),
|
|
32
|
+
kit.scale.y()
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export function Revenue({ data }) {
|
|
36
|
+
return (
|
|
37
|
+
<kit.GraphProvider spec={spec} data={data}>
|
|
38
|
+
<GraphRenderer />
|
|
39
|
+
</kit.GraphProvider>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A spec's own `styles()`, scales and `config()` sit above the theme, so a graph can still change anything. The theme is drawn for a graph about 600 pixels wide; `style.graph({ textScale: 1.5 })` scales its type for a larger one.
|
|
45
|
+
|
|
46
|
+
The theme is drawn for both schemes: pass `colorScheme="light"` or `colorScheme="dark"` to the provider to pick one.
|
|
47
|
+
|
|
48
|
+
`fonts.css` loads IBM Plex Sans from Google Fonts, in weights 400, 500 and 600. To host the font yourself, leave the import out and load a family named `IBM Plex Sans` before the first graph is drawn.
|
|
49
|
+
|
|
50
|
+
## Docs
|
|
51
|
+
|
|
52
|
+
- [Graphite](https://docs.graphy.dev/sdk-next/themes/graphite)
|
|
53
|
+
|
|
54
|
+
## Feedback
|
|
55
|
+
|
|
56
|
+
This theme is released early to hear what works. Tell us on [Discord](https://discord.gg/yGmYCjkSr).
|
|
57
|
+
|
|
58
|
+
## Licence
|
|
59
|
+
|
|
60
|
+
This package is available under PolyForm Noncommercial, Small Business, or a 32-day Free Trial. Free Trial is local or internal evaluation only — it does not cover a public page. See [what you can do under the trial](https://docs.graphy.dev/licence/evaluation).
|
|
61
|
+
|
|
62
|
+
For a commercial licence, [talk to us](https://graphy.dev/license).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Theme } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* Graphs in one hue, a cool grey like pencil lead: groups are told apart by lightness alone, shapes
|
|
4
|
+
* are parted by a thin line in the background's colour, and nothing casts a shadow. Drawn for both
|
|
5
|
+
* schemes, so the host's scheme decides between a near-white background and a near-black one.
|
|
6
|
+
*
|
|
7
|
+
* The face is IBM Plex Sans. Import `@graphysdk/theme-graphite/fonts.css` once to load it.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const kit = createGraphyKit({ theme: graphite });
|
|
11
|
+
*/
|
|
12
|
+
export declare const graphite: Theme;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=require("@graphysdk/react");var t={background:{light:"#F9FAFC",dark:"#0D1013"},raised:{light:"#FFFFFF",dark:"#191B1D"},text:{light:"#12161C",dark:"#E2E9F1"},secondary:{light:"#5E646B",dark:"#A5ABB4"},grid:{light:"#E2E5E9",dark:"#292B2E"},edge:{light:"#D5D8DB",dark:"#36383B"},axis:"#7B8189",hoverGuideFill:{light:"rgba(18, 22, 28, 0.05)",dark:"rgba(226, 233, 241, 0.07)"}},a="'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif",i={deep:"#3D434A",dark:"#5E646B",mid:"#727880",light:"#878D95",pale:"#ABB2BA",palest:"#CBD2DA"},n=[i.dark,i.light,i.deep,i.pale,i.palest,i.mid],l=["#D1D8E1","#292E35"],o={textColor:t.text},r={textColor:t.secondary},s=.6,d={tokens:{graphBackground:t.background,graphBorder:t.edge,geom:i.dark,geomBorder:t.axis,textPrimary:t.text,textSecondary:t.secondary,ruleLine:t.text,gridLine:t.grid,hoverAffordance:t.text,hoverGuideFill:t.hoverGuideFill,hoverGuideLine:t.axis,tooltipBackground:t.raised,tooltipBorder:t.edge,tooltipPrimaryRow:t.hoverGuideFill,annotationShape:t.axis,annotationArrow:t.text,differenceLabelBackground:t.background},defaults:[e.style.graph({strokeWidth:1,cornerRadius:4,fontFamily:a,padding:20}),e.style.geom({alpha:s},{state:"dimmed"}),e.style.geom({shadow:"none"},{state:"hovered"}),e.style.geom.bar({stroke:t.background,strokeWidth:1,cornerRadius:2}),e.style.geom.bar({stroke:t.text,strokeWidth:1.5},{state:"hovered"}),e.style.geom.line({strokeWidth:2,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.area({fillAlpha:.9,strokeWidth:1,dashArray:[],lineCap:"round",lineJoin:"round"}),e.style.geom.area({stroke:t.background},{coord:"cartesian"}),e.style.geom.point({size:8,stroke:t.background,strokeWidth:1}),e.style.geom.tile({cornerRadius:2,stroke:t.background,strokeWidth:1}),e.style.geom.tile({stroke:t.text,strokeWidth:1.5},{state:"hovered"}),e.style.geom.rule({strokeWidth:1,dashArray:[4,3]}),e.style.geom.rule.label({...o,fontWeight:500,fontSize:12}),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.axis,strokeWidth:1,dashArray:[]}),e.style.tickLine({strokeWidth:0}),e.style.tickLabel({...r,fontWeight:400,fontSize:12,lineHeight:1}),e.style.axisLabel({...r,fontWeight:500,fontSize:12,lineHeight:1}),e.style.heading({...o}),e.style.heading.h1({fontWeight:600,fontSize:20,lineHeight:1.25}),e.style.heading.h2({...r,fontWeight:400,fontSize:14,lineHeight:1.35}),e.style.caption({...r,fontWeight:400,fontSize:12}),e.style.source({...r,fontWeight:400,fontSize:12}),e.style.dataLabel({...o,fontWeight:500,fontSize:12,fill:"transparent"}),e.style.legendItem({...o,fontWeight:400,fontSize:13,fill:"transparent",stroke:"transparent"}),e.style.directLabel({...o,fontWeight:500,fontSize:13}),e.style.tooltip({strokeWidth:1,cornerRadius:4,paddingInline:10,paddingBlock:8,shadow:"none"}),e.style.tooltip.heading({...o,fontWeight:600,fontSize:13,lineHeight:1.3}),e.style.tooltip.label({...r,fontWeight:400,fontSize:13,lineHeight:1.3}),e.style.tooltip.value({...o,fontWeight:500,fontSize:13,lineHeight:1.3}),e.style.annotation.text({...o,fill:t.raised,stroke:t.edge,strokeWidth:1,cornerRadius:4,paddingInline:8,paddingBlock:3,fontSize:13,lineHeight:1.2}),e.style.annotation.shape({fillAlpha:.2,stroke:t.axis,strokeWidth:1}),e.style.annotation.arrow({strokeWidth:1,dashArray:[]}),e.style.annotation.pinnedNumber({stroke:t.background}),e.style.annotation.pinnedNumber.label({...o,fill:t.raised,stroke:t.edge,shadow:"none"}),e.style.annotation.differenceArrow({stroke:t.text,strokeWidth:1}),e.style.annotation.differenceArrow.label({...o,fill:t.raised,stroke:t.edge,strokeWidth:1,fontSize:13}),e.style.panelBorder.bottom({strokeWidth:0},{coord:"polar"}),e.style.geom.area({fillAlpha:.35,strokeWidth:1.5},{coord:"polar"}),e.style.tickLabel({...o,fontWeight:600,textOutlineColor:t.background,textOutlineWidth:3},{coord:"polar"})]},g={name:"graphite",styles:d,palette:n,colormap:l,config:{legend:{position:"top",align:"start"}}};exports.graphite=g;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { graphite } from './graphite';
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { style as e } from "@graphysdk/react";
|
|
2
|
+
var t = {
|
|
3
|
+
background: {
|
|
4
|
+
light: "#F9FAFC",
|
|
5
|
+
dark: "#0D1013"
|
|
6
|
+
},
|
|
7
|
+
raised: {
|
|
8
|
+
light: "#FFFFFF",
|
|
9
|
+
dark: "#191B1D"
|
|
10
|
+
},
|
|
11
|
+
text: {
|
|
12
|
+
light: "#12161C",
|
|
13
|
+
dark: "#E2E9F1"
|
|
14
|
+
},
|
|
15
|
+
secondary: {
|
|
16
|
+
light: "#5E646B",
|
|
17
|
+
dark: "#A5ABB4"
|
|
18
|
+
},
|
|
19
|
+
grid: {
|
|
20
|
+
light: "#E2E5E9",
|
|
21
|
+
dark: "#292B2E"
|
|
22
|
+
},
|
|
23
|
+
edge: {
|
|
24
|
+
light: "#D5D8DB",
|
|
25
|
+
dark: "#36383B"
|
|
26
|
+
},
|
|
27
|
+
axis: "#7B8189",
|
|
28
|
+
hoverGuideFill: {
|
|
29
|
+
light: "rgba(18, 22, 28, 0.05)",
|
|
30
|
+
dark: "rgba(226, 233, 241, 0.07)"
|
|
31
|
+
}
|
|
32
|
+
}, a = "'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif", i = {
|
|
33
|
+
deep: "#3D434A",
|
|
34
|
+
dark: "#5E646B",
|
|
35
|
+
mid: "#727880",
|
|
36
|
+
light: "#878D95",
|
|
37
|
+
pale: "#ABB2BA",
|
|
38
|
+
palest: "#CBD2DA"
|
|
39
|
+
}, n = [
|
|
40
|
+
i.dark,
|
|
41
|
+
i.light,
|
|
42
|
+
i.deep,
|
|
43
|
+
i.pale,
|
|
44
|
+
i.palest,
|
|
45
|
+
i.mid
|
|
46
|
+
], d = ["#D1D8E1", "#292E35"], o = { textColor: t.text }, r = { textColor: t.secondary }, l = 0.6, s = {
|
|
47
|
+
tokens: {
|
|
48
|
+
graphBackground: t.background,
|
|
49
|
+
graphBorder: t.edge,
|
|
50
|
+
geom: i.dark,
|
|
51
|
+
geomBorder: t.axis,
|
|
52
|
+
textPrimary: t.text,
|
|
53
|
+
textSecondary: t.secondary,
|
|
54
|
+
ruleLine: t.text,
|
|
55
|
+
gridLine: t.grid,
|
|
56
|
+
hoverAffordance: t.text,
|
|
57
|
+
hoverGuideFill: t.hoverGuideFill,
|
|
58
|
+
hoverGuideLine: t.axis,
|
|
59
|
+
tooltipBackground: t.raised,
|
|
60
|
+
tooltipBorder: t.edge,
|
|
61
|
+
tooltipPrimaryRow: t.hoverGuideFill,
|
|
62
|
+
annotationShape: t.axis,
|
|
63
|
+
annotationArrow: t.text,
|
|
64
|
+
differenceLabelBackground: t.background
|
|
65
|
+
},
|
|
66
|
+
defaults: [
|
|
67
|
+
e.graph({
|
|
68
|
+
strokeWidth: 1,
|
|
69
|
+
cornerRadius: 4,
|
|
70
|
+
fontFamily: a,
|
|
71
|
+
padding: 20
|
|
72
|
+
}),
|
|
73
|
+
e.geom({ alpha: l }, { state: "dimmed" }),
|
|
74
|
+
e.geom({ shadow: "none" }, { state: "hovered" }),
|
|
75
|
+
e.geom.bar({
|
|
76
|
+
stroke: t.background,
|
|
77
|
+
strokeWidth: 1,
|
|
78
|
+
cornerRadius: 2
|
|
79
|
+
}),
|
|
80
|
+
e.geom.bar({
|
|
81
|
+
stroke: t.text,
|
|
82
|
+
strokeWidth: 1.5
|
|
83
|
+
}, { state: "hovered" }),
|
|
84
|
+
e.geom.line({
|
|
85
|
+
strokeWidth: 2,
|
|
86
|
+
dashArray: [],
|
|
87
|
+
lineCap: "round",
|
|
88
|
+
lineJoin: "round"
|
|
89
|
+
}),
|
|
90
|
+
e.geom.area({
|
|
91
|
+
fillAlpha: 0.9,
|
|
92
|
+
strokeWidth: 1,
|
|
93
|
+
dashArray: [],
|
|
94
|
+
lineCap: "round",
|
|
95
|
+
lineJoin: "round"
|
|
96
|
+
}),
|
|
97
|
+
e.geom.area({ stroke: t.background }, { coord: "cartesian" }),
|
|
98
|
+
e.geom.point({
|
|
99
|
+
size: 8,
|
|
100
|
+
stroke: t.background,
|
|
101
|
+
strokeWidth: 1
|
|
102
|
+
}),
|
|
103
|
+
e.geom.tile({
|
|
104
|
+
cornerRadius: 2,
|
|
105
|
+
stroke: t.background,
|
|
106
|
+
strokeWidth: 1
|
|
107
|
+
}),
|
|
108
|
+
e.geom.tile({
|
|
109
|
+
stroke: t.text,
|
|
110
|
+
strokeWidth: 1.5
|
|
111
|
+
}, { state: "hovered" }),
|
|
112
|
+
e.geom.rule({
|
|
113
|
+
strokeWidth: 1,
|
|
114
|
+
dashArray: [4, 3]
|
|
115
|
+
}),
|
|
116
|
+
e.geom.rule.label({
|
|
117
|
+
...o,
|
|
118
|
+
fontWeight: 500,
|
|
119
|
+
fontSize: 12
|
|
120
|
+
}),
|
|
121
|
+
e.gridLine({ dashArray: [] }),
|
|
122
|
+
e.gridLine.x({ strokeWidth: 0 }),
|
|
123
|
+
e.gridLine.y({ strokeWidth: 1 }),
|
|
124
|
+
e.panelBorder({ strokeWidth: 0 }),
|
|
125
|
+
e.panelBorder.bottom({
|
|
126
|
+
stroke: t.axis,
|
|
127
|
+
strokeWidth: 1,
|
|
128
|
+
dashArray: []
|
|
129
|
+
}),
|
|
130
|
+
e.tickLine({ strokeWidth: 0 }),
|
|
131
|
+
e.tickLabel({
|
|
132
|
+
...r,
|
|
133
|
+
fontWeight: 400,
|
|
134
|
+
fontSize: 12,
|
|
135
|
+
lineHeight: 1
|
|
136
|
+
}),
|
|
137
|
+
e.axisLabel({
|
|
138
|
+
...r,
|
|
139
|
+
fontWeight: 500,
|
|
140
|
+
fontSize: 12,
|
|
141
|
+
lineHeight: 1
|
|
142
|
+
}),
|
|
143
|
+
e.heading({ ...o }),
|
|
144
|
+
e.heading.h1({
|
|
145
|
+
fontWeight: 600,
|
|
146
|
+
fontSize: 20,
|
|
147
|
+
lineHeight: 1.25
|
|
148
|
+
}),
|
|
149
|
+
e.heading.h2({
|
|
150
|
+
...r,
|
|
151
|
+
fontWeight: 400,
|
|
152
|
+
fontSize: 14,
|
|
153
|
+
lineHeight: 1.35
|
|
154
|
+
}),
|
|
155
|
+
e.caption({
|
|
156
|
+
...r,
|
|
157
|
+
fontWeight: 400,
|
|
158
|
+
fontSize: 12
|
|
159
|
+
}),
|
|
160
|
+
e.source({
|
|
161
|
+
...r,
|
|
162
|
+
fontWeight: 400,
|
|
163
|
+
fontSize: 12
|
|
164
|
+
}),
|
|
165
|
+
e.dataLabel({
|
|
166
|
+
...o,
|
|
167
|
+
fontWeight: 500,
|
|
168
|
+
fontSize: 12,
|
|
169
|
+
fill: "transparent"
|
|
170
|
+
}),
|
|
171
|
+
e.legendItem({
|
|
172
|
+
...o,
|
|
173
|
+
fontWeight: 400,
|
|
174
|
+
fontSize: 13,
|
|
175
|
+
fill: "transparent",
|
|
176
|
+
stroke: "transparent"
|
|
177
|
+
}),
|
|
178
|
+
e.directLabel({
|
|
179
|
+
...o,
|
|
180
|
+
fontWeight: 500,
|
|
181
|
+
fontSize: 13
|
|
182
|
+
}),
|
|
183
|
+
e.tooltip({
|
|
184
|
+
strokeWidth: 1,
|
|
185
|
+
cornerRadius: 4,
|
|
186
|
+
paddingInline: 10,
|
|
187
|
+
paddingBlock: 8,
|
|
188
|
+
shadow: "none"
|
|
189
|
+
}),
|
|
190
|
+
e.tooltip.heading({
|
|
191
|
+
...o,
|
|
192
|
+
fontWeight: 600,
|
|
193
|
+
fontSize: 13,
|
|
194
|
+
lineHeight: 1.3
|
|
195
|
+
}),
|
|
196
|
+
e.tooltip.label({
|
|
197
|
+
...r,
|
|
198
|
+
fontWeight: 400,
|
|
199
|
+
fontSize: 13,
|
|
200
|
+
lineHeight: 1.3
|
|
201
|
+
}),
|
|
202
|
+
e.tooltip.value({
|
|
203
|
+
...o,
|
|
204
|
+
fontWeight: 500,
|
|
205
|
+
fontSize: 13,
|
|
206
|
+
lineHeight: 1.3
|
|
207
|
+
}),
|
|
208
|
+
e.annotation.text({
|
|
209
|
+
...o,
|
|
210
|
+
fill: t.raised,
|
|
211
|
+
stroke: t.edge,
|
|
212
|
+
strokeWidth: 1,
|
|
213
|
+
cornerRadius: 4,
|
|
214
|
+
paddingInline: 8,
|
|
215
|
+
paddingBlock: 3,
|
|
216
|
+
fontSize: 13,
|
|
217
|
+
lineHeight: 1.2
|
|
218
|
+
}),
|
|
219
|
+
e.annotation.shape({
|
|
220
|
+
fillAlpha: 0.2,
|
|
221
|
+
stroke: t.axis,
|
|
222
|
+
strokeWidth: 1
|
|
223
|
+
}),
|
|
224
|
+
e.annotation.arrow({
|
|
225
|
+
strokeWidth: 1,
|
|
226
|
+
dashArray: []
|
|
227
|
+
}),
|
|
228
|
+
e.annotation.pinnedNumber({ stroke: t.background }),
|
|
229
|
+
e.annotation.pinnedNumber.label({
|
|
230
|
+
...o,
|
|
231
|
+
fill: t.raised,
|
|
232
|
+
stroke: t.edge,
|
|
233
|
+
shadow: "none"
|
|
234
|
+
}),
|
|
235
|
+
e.annotation.differenceArrow({
|
|
236
|
+
stroke: t.text,
|
|
237
|
+
strokeWidth: 1
|
|
238
|
+
}),
|
|
239
|
+
e.annotation.differenceArrow.label({
|
|
240
|
+
...o,
|
|
241
|
+
fill: t.raised,
|
|
242
|
+
stroke: t.edge,
|
|
243
|
+
strokeWidth: 1,
|
|
244
|
+
fontSize: 13
|
|
245
|
+
}),
|
|
246
|
+
e.panelBorder.bottom({ strokeWidth: 0 }, { coord: "polar" }),
|
|
247
|
+
e.geom.area({
|
|
248
|
+
fillAlpha: 0.35,
|
|
249
|
+
strokeWidth: 1.5
|
|
250
|
+
}, { coord: "polar" }),
|
|
251
|
+
e.tickLabel({
|
|
252
|
+
...o,
|
|
253
|
+
fontWeight: 600,
|
|
254
|
+
textOutlineColor: t.background,
|
|
255
|
+
textOutlineWidth: 3
|
|
256
|
+
}, { coord: "polar" })
|
|
257
|
+
]
|
|
258
|
+
}, h = {
|
|
259
|
+
name: "graphite",
|
|
260
|
+
styles: s,
|
|
261
|
+
palette: n,
|
|
262
|
+
colormap: d,
|
|
263
|
+
config: { legend: {
|
|
264
|
+
position: "top",
|
|
265
|
+
align: "start"
|
|
266
|
+
} }
|
|
267
|
+
};
|
|
268
|
+
export {
|
|
269
|
+
h as graphite
|
|
270
|
+
};
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Stylesheet } from '@graphysdk/react';
|
|
2
|
+
/** Every colour that differs by scheme, as a light and dark pair. */
|
|
3
|
+
export declare const GRAPHITE_COLORS: {
|
|
4
|
+
readonly background: {
|
|
5
|
+
readonly light: "#F9FAFC";
|
|
6
|
+
readonly dark: "#0D1013";
|
|
7
|
+
};
|
|
8
|
+
readonly raised: {
|
|
9
|
+
readonly light: "#FFFFFF";
|
|
10
|
+
readonly dark: "#191B1D";
|
|
11
|
+
};
|
|
12
|
+
readonly text: {
|
|
13
|
+
readonly light: "#12161C";
|
|
14
|
+
readonly dark: "#E2E9F1";
|
|
15
|
+
};
|
|
16
|
+
readonly secondary: {
|
|
17
|
+
readonly light: "#5E646B";
|
|
18
|
+
readonly dark: "#A5ABB4";
|
|
19
|
+
};
|
|
20
|
+
readonly grid: {
|
|
21
|
+
readonly light: "#E2E5E9";
|
|
22
|
+
readonly dark: "#292B2E";
|
|
23
|
+
};
|
|
24
|
+
readonly edge: {
|
|
25
|
+
readonly light: "#D5D8DB";
|
|
26
|
+
readonly dark: "#36383B";
|
|
27
|
+
};
|
|
28
|
+
readonly axis: "#7B8189";
|
|
29
|
+
readonly hoverGuideFill: {
|
|
30
|
+
readonly light: "rgba(18, 22, 28, 0.05)";
|
|
31
|
+
readonly dark: "rgba(226, 233, 241, 0.07)";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/** The greys groups take, named by how light they are. */
|
|
35
|
+
export declare const GRAPHITE_GREYS: {
|
|
36
|
+
readonly deep: "#3D434A";
|
|
37
|
+
readonly dark: "#5E646B";
|
|
38
|
+
readonly mid: "#727880";
|
|
39
|
+
readonly light: "#878D95";
|
|
40
|
+
readonly pale: "#ABB2BA";
|
|
41
|
+
readonly palest: "#CBD2DA";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The order groups take their greys in, neighbours far apart in lightness. A palette holds one colour
|
|
45
|
+
* per step for both schemes, and only the greys between `dark` and `light` reach 3:1 on both
|
|
46
|
+
* backgrounds. The first two are those. The greys after them are each faint in one scheme, and the
|
|
47
|
+
* last lies between the first two, so it is the hardest to tell apart.
|
|
48
|
+
*/
|
|
49
|
+
export declare const GRAPHITE_PALETTE: readonly string[];
|
|
50
|
+
/** For a colour that stands for a number: from the palest grey to the darkest. */
|
|
51
|
+
export declare const GRAPHITE_COLORMAP: readonly string[];
|
|
52
|
+
/**
|
|
53
|
+
* The graphite look: one cool grey on a plain background, thin strokes, a quiet solid grid, and
|
|
54
|
+
* shapes parted from their neighbours by a thin line in the background's colour.
|
|
55
|
+
*/
|
|
56
|
+
export declare const graphiteStyles: Stylesheet;
|
package/fonts.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# PolyForm Free Trial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/free-trial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software
|
|
14
|
+
to do everything you might do with the software that would
|
|
15
|
+
otherwise infringe the licensor's copyright in it for any
|
|
16
|
+
permitted purpose. However, you may only make changes or
|
|
17
|
+
new works based on the software according to [Changes and New
|
|
18
|
+
Works License](#changes-and-new-works-license), and you may
|
|
19
|
+
not distribute copies of the software.
|
|
20
|
+
|
|
21
|
+
## Changes and New Works License
|
|
22
|
+
|
|
23
|
+
The licensor grants you an additional copyright license to
|
|
24
|
+
make changes and new works based on the software for any
|
|
25
|
+
permitted purpose.
|
|
26
|
+
|
|
27
|
+
## Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that
|
|
30
|
+
covers patent claims the licensor can license, or becomes able
|
|
31
|
+
to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Fair Use
|
|
34
|
+
|
|
35
|
+
You may have "fair use" rights for the software under the
|
|
36
|
+
law. These terms do not limit them.
|
|
37
|
+
|
|
38
|
+
## Free Trial
|
|
39
|
+
|
|
40
|
+
Use to evaluate whether the software suits a particular
|
|
41
|
+
application for less than 32 consecutive calendar days, on
|
|
42
|
+
behalf of you or your company, is use for a permitted purpose.
|
|
43
|
+
|
|
44
|
+
## No Other Rights
|
|
45
|
+
|
|
46
|
+
These terms do not allow you to sublicense or transfer any of
|
|
47
|
+
your licenses to anyone else, or prevent the licensor from
|
|
48
|
+
granting licenses to anyone else. These terms do not imply
|
|
49
|
+
any other licenses.
|
|
50
|
+
|
|
51
|
+
## Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or
|
|
54
|
+
contributes to infringement of any patent, your patent license
|
|
55
|
+
for the software granted under these terms ends immediately. If
|
|
56
|
+
your company makes such a claim, your patent license ends
|
|
57
|
+
immediately for work on behalf of your company.
|
|
58
|
+
|
|
59
|
+
## Violations
|
|
60
|
+
|
|
61
|
+
If you violate any of these terms, or do anything with the
|
|
62
|
+
software not covered by your licenses, all your licenses
|
|
63
|
+
end immediately.
|
|
64
|
+
|
|
65
|
+
## No Liability
|
|
66
|
+
|
|
67
|
+
_**As far as the law allows, the software comes as is, without
|
|
68
|
+
any warranty or condition, and the licensor will not be liable
|
|
69
|
+
to you for any damages arising out of these terms or the use
|
|
70
|
+
or nature of the software, under any kind of legal claim.**_
|
|
71
|
+
|
|
72
|
+
## Definitions
|
|
73
|
+
|
|
74
|
+
The **licensor** is the individual or entity offering these
|
|
75
|
+
terms, and the **software** is the software the licensor makes
|
|
76
|
+
available under these terms.
|
|
77
|
+
|
|
78
|
+
**You** refers to the individual or entity agreeing to these
|
|
79
|
+
terms.
|
|
80
|
+
|
|
81
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
82
|
+
or other kind of organization that you work for, plus all
|
|
83
|
+
organizations that have control over, are under the control of,
|
|
84
|
+
or are under common control with that organization. **Control**
|
|
85
|
+
means ownership of substantially all the assets of an entity,
|
|
86
|
+
or the power to direct its management and policies by vote,
|
|
87
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
88
|
+
|
|
89
|
+
**Your licenses** are all the licenses granted to you for the
|
|
90
|
+
software under these terms.
|
|
91
|
+
|
|
92
|
+
**Use** means anything you do with the software requiring one
|
|
93
|
+
of your licenses.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Noncommercial Purposes
|
|
53
|
+
|
|
54
|
+
Any noncommercial purpose is a permitted purpose.
|
|
55
|
+
|
|
56
|
+
## Personal Uses
|
|
57
|
+
|
|
58
|
+
Personal use for research, experiment, and testing for
|
|
59
|
+
the benefit of public knowledge, personal study, private
|
|
60
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
61
|
+
observance, without any anticipated commercial application,
|
|
62
|
+
is use for a permitted purpose.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Organizations
|
|
65
|
+
|
|
66
|
+
Use by any charitable organization, educational institution,
|
|
67
|
+
public research organization, public safety or health
|
|
68
|
+
organization, environmental protection organization,
|
|
69
|
+
or government institution is use for a permitted purpose
|
|
70
|
+
regardless of the source of funding or obligations resulting
|
|
71
|
+
from the funding.
|
|
72
|
+
|
|
73
|
+
## Fair Use
|
|
74
|
+
|
|
75
|
+
You may have "fair use" rights for the software under the
|
|
76
|
+
law. These terms do not limit them.
|
|
77
|
+
|
|
78
|
+
## No Other Rights
|
|
79
|
+
|
|
80
|
+
These terms do not allow you to sublicense or transfer any of
|
|
81
|
+
your licenses to anyone else, or prevent the licensor from
|
|
82
|
+
granting licenses to anyone else. These terms do not imply
|
|
83
|
+
any other licenses.
|
|
84
|
+
|
|
85
|
+
## Patent Defense
|
|
86
|
+
|
|
87
|
+
If you make any written claim that the software infringes or
|
|
88
|
+
contributes to infringement of any patent, your patent license
|
|
89
|
+
for the software granted under these terms ends immediately. If
|
|
90
|
+
your company makes such a claim, your patent license ends
|
|
91
|
+
immediately for work on behalf of your company.
|
|
92
|
+
|
|
93
|
+
## Violations
|
|
94
|
+
|
|
95
|
+
The first time you are notified in writing that you have
|
|
96
|
+
violated any of these terms, or done anything with the software
|
|
97
|
+
not covered by your licenses, your licenses can nonetheless
|
|
98
|
+
continue if you come into full compliance with these terms,
|
|
99
|
+
and take practical steps to correct past violations, within
|
|
100
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
101
|
+
end immediately.
|
|
102
|
+
|
|
103
|
+
## No Liability
|
|
104
|
+
|
|
105
|
+
_**As far as the law allows, the software comes as is, without
|
|
106
|
+
any warranty or condition, and the licensor will not be liable
|
|
107
|
+
to you for any damages arising out of these terms or the use
|
|
108
|
+
or nature of the software, under any kind of legal claim.**_
|
|
109
|
+
|
|
110
|
+
## Definitions
|
|
111
|
+
|
|
112
|
+
The **licensor** is the individual or entity offering these
|
|
113
|
+
terms, and the **software** is the software the licensor makes
|
|
114
|
+
available under these terms.
|
|
115
|
+
|
|
116
|
+
**You** refers to the individual or entity agreeing to these
|
|
117
|
+
terms.
|
|
118
|
+
|
|
119
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
120
|
+
or other kind of organization that you work for, plus all
|
|
121
|
+
organizations that have control over, are under the control of,
|
|
122
|
+
or are under common control with that organization. **Control**
|
|
123
|
+
means ownership of substantially all the assets of an entity,
|
|
124
|
+
or the power to direct its management and policies by vote,
|
|
125
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
126
|
+
|
|
127
|
+
**Your licenses** are all the licenses granted to you for the
|
|
128
|
+
software under these terms.
|
|
129
|
+
|
|
130
|
+
**Use** means anything you do with the software requiring one
|
|
131
|
+
of your licenses.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# PolyForm Small Business License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/small-business/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Fair Use
|
|
53
|
+
|
|
54
|
+
You may have "fair use" rights for the software under the
|
|
55
|
+
law. These terms do not limit them.
|
|
56
|
+
|
|
57
|
+
## Small Business
|
|
58
|
+
|
|
59
|
+
Use of the software for the benefit of your company is use for
|
|
60
|
+
a permitted purpose if your company has fewer than 100 total
|
|
61
|
+
individuals working as employees and independent contractors,
|
|
62
|
+
and less than 1,000,000 USD (2019) total revenue in the prior
|
|
63
|
+
tax year. Adjust this revenue threshold for inflation according
|
|
64
|
+
to the United States Bureau of Labor Statistics' consumer price
|
|
65
|
+
index for all urban consumers, U.S. city average, for all items,
|
|
66
|
+
not seasonally adjusted, with 1982–1984=100 reference base.
|
|
67
|
+
|
|
68
|
+
## No Other Rights
|
|
69
|
+
|
|
70
|
+
These terms do not allow you to sublicense or transfer any of
|
|
71
|
+
your licenses to anyone else, or prevent the licensor from
|
|
72
|
+
granting licenses to anyone else. These terms do not imply
|
|
73
|
+
any other licenses.
|
|
74
|
+
|
|
75
|
+
## Patent Defense
|
|
76
|
+
|
|
77
|
+
If you make any written claim that the software infringes or
|
|
78
|
+
contributes to infringement of any patent, your patent license
|
|
79
|
+
for the software granted under these terms ends immediately. If
|
|
80
|
+
your company makes such a claim, your patent license ends
|
|
81
|
+
immediately for work on behalf of your company.
|
|
82
|
+
|
|
83
|
+
## Violations
|
|
84
|
+
|
|
85
|
+
The first time you are notified in writing that you have
|
|
86
|
+
violated any of these terms, or done anything with the software
|
|
87
|
+
not covered by your licenses, your licenses can nonetheless
|
|
88
|
+
continue if you come into full compliance with these terms,
|
|
89
|
+
and take practical steps to correct past violations, within
|
|
90
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
91
|
+
end immediately.
|
|
92
|
+
|
|
93
|
+
## No Liability
|
|
94
|
+
|
|
95
|
+
_**As far as the law allows, the software comes as is, without
|
|
96
|
+
any warranty or condition, and the licensor will not be liable
|
|
97
|
+
to you for any damages arising out of these terms or the use
|
|
98
|
+
or nature of the software, under any kind of legal claim.**_
|
|
99
|
+
|
|
100
|
+
## Definitions
|
|
101
|
+
|
|
102
|
+
The **licensor** is the individual or entity offering these
|
|
103
|
+
terms, and the **software** is the software the licensor makes
|
|
104
|
+
available under these terms.
|
|
105
|
+
|
|
106
|
+
**You** refers to the individual or entity agreeing to these
|
|
107
|
+
terms.
|
|
108
|
+
|
|
109
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
110
|
+
or other kind of organization that you work for, plus all
|
|
111
|
+
organizations that have control over, are under the control of,
|
|
112
|
+
or are under common control with that organization. **Control**
|
|
113
|
+
means ownership of substantially all the assets of an entity,
|
|
114
|
+
or the power to direct its management and policies by vote,
|
|
115
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
116
|
+
|
|
117
|
+
**Your licenses** are all the licenses granted to you for the
|
|
118
|
+
software under these terms.
|
|
119
|
+
|
|
120
|
+
**Use** means anything you do with the software requiring one
|
|
121
|
+
of your licenses.
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphysdk/theme-graphite",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"author": "Graphy",
|
|
4
|
+
"description": "Graphite theme for the Graphy charting SDK (beta)",
|
|
5
|
+
"homepage": "https://docs.graphy.dev/sdk-next/themes/graphite",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"graphy",
|
|
9
|
+
"chart",
|
|
10
|
+
"react",
|
|
11
|
+
"visualization",
|
|
12
|
+
"grammar-of-graphics",
|
|
13
|
+
"theme",
|
|
14
|
+
"graphite"
|
|
15
|
+
],
|
|
16
|
+
"version": "0.1.1-beta.1791459323341",
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css"
|
|
20
|
+
],
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"fonts.css",
|
|
25
|
+
"src/fonts.css.d.ts",
|
|
26
|
+
"LICENSE.md",
|
|
27
|
+
"licenses",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.mjs",
|
|
34
|
+
"require": "./dist/index.cjs"
|
|
35
|
+
},
|
|
36
|
+
"./fonts.css": {
|
|
37
|
+
"types": "./src/fonts.css.d.ts",
|
|
38
|
+
"default": "./fonts.css"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^19.0.0",
|
|
43
|
+
"@graphysdk/react": "^1.9.0-beta.1791459323341"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@testing-library/react": "^16.3.1",
|
|
47
|
+
"@types/react": "^19.2.14",
|
|
48
|
+
"@types/react-dom": "^19.2.3",
|
|
49
|
+
"react": "^19.2.4",
|
|
50
|
+
"react-dom": "^19.2.4",
|
|
51
|
+
"rollup-plugin-node-externals": "^8.1.1",
|
|
52
|
+
"vite": "^8.1.5",
|
|
53
|
+
"vite-plugin-dts": "^4.5.4",
|
|
54
|
+
"vitest": "^4.1.11",
|
|
55
|
+
"@graphytools/typescript-config": "0.0.1",
|
|
56
|
+
"@graphytools/vitest-config": "1.0.0",
|
|
57
|
+
"@graphytools/eslint-config": "0.0.1",
|
|
58
|
+
"@graphysdk/viz-engine": "1.9.0-beta.1791459323341",
|
|
59
|
+
"@graphysdk/react": "1.9.0-beta.1791459323341"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"lint-staged": {
|
|
65
|
+
"*.{ts,tsx,js,jsx,json,css,md}": [
|
|
66
|
+
"prettier --write"
|
|
67
|
+
],
|
|
68
|
+
"*.{ts,tsx}": [
|
|
69
|
+
"eslint --max-warnings=0 --fix"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "vite build",
|
|
74
|
+
"test": "vitest run",
|
|
75
|
+
"test:watch": "TZ=utc vitest",
|
|
76
|
+
"lint": "eslint . --max-warnings 0",
|
|
77
|
+
"lint:fix": "eslint . --fix",
|
|
78
|
+
"format": "prettier --write .",
|
|
79
|
+
"format:check": "prettier --check .",
|
|
80
|
+
"typecheck": "tsc --noEmit"
|
|
81
|
+
}
|
|
6
82
|
}
|