@pactor-app/chart 0.0.0-stage → 1.44.0
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 +21 -0
- package/dist/index.cjs +1444 -0
- package/dist/index.d.cts +573 -0
- package/dist/index.d.ts +573 -0
- package/dist/index.js +1410 -0
- package/package.json +77 -3
- package/styles.css +255 -0
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/chart",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.44.0",
|
|
4
|
+
"description": "Pactor chart: echarts-backed DSL chart components (LineChart / BarChart / PieChart / MetricCard …) with chart component registry for the Renderer",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pactor",
|
|
7
|
+
"dsl",
|
|
8
|
+
"server-driven-ui",
|
|
9
|
+
"chart",
|
|
10
|
+
"echarts",
|
|
11
|
+
"react"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/426-330/pactor.git",
|
|
17
|
+
"directory": "packages/chart"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/426-330/pactor/tree/main/packages/chart",
|
|
20
|
+
"bugs": "https://github.com/426-330/pactor/issues",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./dist/index.cjs",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/index.d.cts",
|
|
33
|
+
"default": "./dist/index.cjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"./styles.css": "./styles.css"
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"styles.css"
|
|
45
|
+
],
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"clsx": "^2.1.1",
|
|
51
|
+
"echarts": "^6.1.0",
|
|
52
|
+
"lucide-react": "^1.34.0",
|
|
53
|
+
"tailwind-merge": "^3.6.0",
|
|
54
|
+
"@pactor-app/core": "1.44.0",
|
|
55
|
+
"@pactor-app/runtime": "1.44.0",
|
|
56
|
+
"@pactor-app/ui": "1.44.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"react": ">=18",
|
|
60
|
+
"react-dom": ">=18"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@testing-library/dom": "^10.4.1",
|
|
64
|
+
"@testing-library/react": "^16.3.2",
|
|
65
|
+
"@types/react": "^19.2.18",
|
|
66
|
+
"@types/react-dom": "^19.2.4",
|
|
67
|
+
"jsdom": "^30.0.1",
|
|
68
|
+
"react": "^19.2.8",
|
|
69
|
+
"react-dom": "^19.2.8",
|
|
70
|
+
"vitest": "^3.2.4",
|
|
71
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
72
|
+
"tailwindcss": "^4.3.3"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsup && pnpm build:styles",
|
|
76
|
+
"test": "vitest run",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
78
|
+
"build:styles": "tailwindcss -i src/styles.css -o styles.css"
|
|
79
|
+
}
|
|
6
80
|
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme {
|
|
4
|
+
:root, :host {
|
|
5
|
+
--spacing: 0.25rem;
|
|
6
|
+
--text-sm: 0.875rem;
|
|
7
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
8
|
+
--text-2xl: 1.5rem;
|
|
9
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
10
|
+
--font-weight-semibold: 600;
|
|
11
|
+
--tracking-tight: -0.025em;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@layer utilities {
|
|
15
|
+
.relative {
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.container {
|
|
19
|
+
width: 100%;
|
|
20
|
+
@media (width >= 40rem) {
|
|
21
|
+
max-width: 40rem;
|
|
22
|
+
}
|
|
23
|
+
@media (width >= 48rem) {
|
|
24
|
+
max-width: 48rem;
|
|
25
|
+
}
|
|
26
|
+
@media (width >= 64rem) {
|
|
27
|
+
max-width: 64rem;
|
|
28
|
+
}
|
|
29
|
+
@media (width >= 80rem) {
|
|
30
|
+
max-width: 80rem;
|
|
31
|
+
}
|
|
32
|
+
@media (width >= 96rem) {
|
|
33
|
+
max-width: 96rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.mt-1 {
|
|
37
|
+
margin-top: var(--spacing);
|
|
38
|
+
}
|
|
39
|
+
.ml-1 {
|
|
40
|
+
margin-left: var(--spacing);
|
|
41
|
+
}
|
|
42
|
+
.flex {
|
|
43
|
+
display: flex;
|
|
44
|
+
}
|
|
45
|
+
.grid {
|
|
46
|
+
display: grid;
|
|
47
|
+
}
|
|
48
|
+
.inline-flex {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
}
|
|
51
|
+
.size-4 {
|
|
52
|
+
width: calc(var(--spacing) * 4);
|
|
53
|
+
height: calc(var(--spacing) * 4);
|
|
54
|
+
}
|
|
55
|
+
.h-32 {
|
|
56
|
+
height: calc(var(--spacing) * 32);
|
|
57
|
+
}
|
|
58
|
+
.w-full {
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
.resize {
|
|
62
|
+
resize: both;
|
|
63
|
+
}
|
|
64
|
+
.items-center {
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
.justify-center {
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
.gap-0\.5 {
|
|
71
|
+
gap: calc(var(--spacing) * 0.5);
|
|
72
|
+
}
|
|
73
|
+
.rounded-lg {
|
|
74
|
+
border-radius: var(--radius);
|
|
75
|
+
}
|
|
76
|
+
.rounded-md {
|
|
77
|
+
border-radius: calc(var(--radius) * 0.8);
|
|
78
|
+
}
|
|
79
|
+
.border {
|
|
80
|
+
border-style: var(--tw-border-style);
|
|
81
|
+
border-width: 1px;
|
|
82
|
+
}
|
|
83
|
+
.border-dashed {
|
|
84
|
+
--tw-border-style: dashed;
|
|
85
|
+
border-style: dashed;
|
|
86
|
+
}
|
|
87
|
+
.bg-card {
|
|
88
|
+
background-color: var(--card);
|
|
89
|
+
}
|
|
90
|
+
.p-4 {
|
|
91
|
+
padding: calc(var(--spacing) * 4);
|
|
92
|
+
}
|
|
93
|
+
.text-2xl {
|
|
94
|
+
font-size: var(--text-2xl);
|
|
95
|
+
line-height: var(--tw-leading, var(--text-2xl--line-height));
|
|
96
|
+
}
|
|
97
|
+
.text-sm {
|
|
98
|
+
font-size: var(--text-sm);
|
|
99
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
100
|
+
}
|
|
101
|
+
.font-semibold {
|
|
102
|
+
--tw-font-weight: var(--font-weight-semibold);
|
|
103
|
+
font-weight: var(--font-weight-semibold);
|
|
104
|
+
}
|
|
105
|
+
.tracking-tight {
|
|
106
|
+
--tw-tracking: var(--tracking-tight);
|
|
107
|
+
letter-spacing: var(--tracking-tight);
|
|
108
|
+
}
|
|
109
|
+
.text-card-foreground {
|
|
110
|
+
color: var(--card-foreground);
|
|
111
|
+
}
|
|
112
|
+
.text-destructive {
|
|
113
|
+
color: var(--destructive);
|
|
114
|
+
}
|
|
115
|
+
.text-muted-foreground {
|
|
116
|
+
color: var(--muted-foreground);
|
|
117
|
+
}
|
|
118
|
+
.text-success {
|
|
119
|
+
color: var(--success);
|
|
120
|
+
}
|
|
121
|
+
.tabular-nums {
|
|
122
|
+
--tw-numeric-spacing: tabular-nums;
|
|
123
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
124
|
+
}
|
|
125
|
+
.shadow-sm {
|
|
126
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
127
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
@property --tw-border-style {
|
|
131
|
+
syntax: "*";
|
|
132
|
+
inherits: false;
|
|
133
|
+
initial-value: solid;
|
|
134
|
+
}
|
|
135
|
+
@property --tw-font-weight {
|
|
136
|
+
syntax: "*";
|
|
137
|
+
inherits: false;
|
|
138
|
+
}
|
|
139
|
+
@property --tw-tracking {
|
|
140
|
+
syntax: "*";
|
|
141
|
+
inherits: false;
|
|
142
|
+
}
|
|
143
|
+
@property --tw-ordinal {
|
|
144
|
+
syntax: "*";
|
|
145
|
+
inherits: false;
|
|
146
|
+
}
|
|
147
|
+
@property --tw-slashed-zero {
|
|
148
|
+
syntax: "*";
|
|
149
|
+
inherits: false;
|
|
150
|
+
}
|
|
151
|
+
@property --tw-numeric-figure {
|
|
152
|
+
syntax: "*";
|
|
153
|
+
inherits: false;
|
|
154
|
+
}
|
|
155
|
+
@property --tw-numeric-spacing {
|
|
156
|
+
syntax: "*";
|
|
157
|
+
inherits: false;
|
|
158
|
+
}
|
|
159
|
+
@property --tw-numeric-fraction {
|
|
160
|
+
syntax: "*";
|
|
161
|
+
inherits: false;
|
|
162
|
+
}
|
|
163
|
+
@property --tw-shadow {
|
|
164
|
+
syntax: "*";
|
|
165
|
+
inherits: false;
|
|
166
|
+
initial-value: 0 0 #0000;
|
|
167
|
+
}
|
|
168
|
+
@property --tw-shadow-color {
|
|
169
|
+
syntax: "*";
|
|
170
|
+
inherits: false;
|
|
171
|
+
}
|
|
172
|
+
@property --tw-shadow-alpha {
|
|
173
|
+
syntax: "<percentage>";
|
|
174
|
+
inherits: false;
|
|
175
|
+
initial-value: 100%;
|
|
176
|
+
}
|
|
177
|
+
@property --tw-inset-shadow {
|
|
178
|
+
syntax: "*";
|
|
179
|
+
inherits: false;
|
|
180
|
+
initial-value: 0 0 #0000;
|
|
181
|
+
}
|
|
182
|
+
@property --tw-inset-shadow-color {
|
|
183
|
+
syntax: "*";
|
|
184
|
+
inherits: false;
|
|
185
|
+
}
|
|
186
|
+
@property --tw-inset-shadow-alpha {
|
|
187
|
+
syntax: "<percentage>";
|
|
188
|
+
inherits: false;
|
|
189
|
+
initial-value: 100%;
|
|
190
|
+
}
|
|
191
|
+
@property --tw-ring-color {
|
|
192
|
+
syntax: "*";
|
|
193
|
+
inherits: false;
|
|
194
|
+
}
|
|
195
|
+
@property --tw-ring-shadow {
|
|
196
|
+
syntax: "*";
|
|
197
|
+
inherits: false;
|
|
198
|
+
initial-value: 0 0 #0000;
|
|
199
|
+
}
|
|
200
|
+
@property --tw-inset-ring-color {
|
|
201
|
+
syntax: "*";
|
|
202
|
+
inherits: false;
|
|
203
|
+
}
|
|
204
|
+
@property --tw-inset-ring-shadow {
|
|
205
|
+
syntax: "*";
|
|
206
|
+
inherits: false;
|
|
207
|
+
initial-value: 0 0 #0000;
|
|
208
|
+
}
|
|
209
|
+
@property --tw-ring-inset {
|
|
210
|
+
syntax: "*";
|
|
211
|
+
inherits: false;
|
|
212
|
+
}
|
|
213
|
+
@property --tw-ring-offset-width {
|
|
214
|
+
syntax: "<length>";
|
|
215
|
+
inherits: false;
|
|
216
|
+
initial-value: 0px;
|
|
217
|
+
}
|
|
218
|
+
@property --tw-ring-offset-color {
|
|
219
|
+
syntax: "*";
|
|
220
|
+
inherits: false;
|
|
221
|
+
initial-value: #fff;
|
|
222
|
+
}
|
|
223
|
+
@property --tw-ring-offset-shadow {
|
|
224
|
+
syntax: "*";
|
|
225
|
+
inherits: false;
|
|
226
|
+
initial-value: 0 0 #0000;
|
|
227
|
+
}
|
|
228
|
+
@layer properties {
|
|
229
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
230
|
+
*, ::before, ::after, ::backdrop {
|
|
231
|
+
--tw-border-style: solid;
|
|
232
|
+
--tw-font-weight: initial;
|
|
233
|
+
--tw-tracking: initial;
|
|
234
|
+
--tw-ordinal: initial;
|
|
235
|
+
--tw-slashed-zero: initial;
|
|
236
|
+
--tw-numeric-figure: initial;
|
|
237
|
+
--tw-numeric-spacing: initial;
|
|
238
|
+
--tw-numeric-fraction: initial;
|
|
239
|
+
--tw-shadow: 0 0 #0000;
|
|
240
|
+
--tw-shadow-color: initial;
|
|
241
|
+
--tw-shadow-alpha: 100%;
|
|
242
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
243
|
+
--tw-inset-shadow-color: initial;
|
|
244
|
+
--tw-inset-shadow-alpha: 100%;
|
|
245
|
+
--tw-ring-color: initial;
|
|
246
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
247
|
+
--tw-inset-ring-color: initial;
|
|
248
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
249
|
+
--tw-ring-inset: initial;
|
|
250
|
+
--tw-ring-offset-width: 0px;
|
|
251
|
+
--tw-ring-offset-color: #fff;
|
|
252
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
package/README.md
DELETED