@sia.soul/sia-react-ui 0.1.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.
Files changed (46) hide show
  1. package/README.md +37 -0
  2. package/THIRD_PARTY_NOTICES.md +12 -0
  3. package/dist/Select-CJJ5LQap.d.cts +44 -0
  4. package/dist/Select-CJJ5LQap.d.ts +44 -0
  5. package/dist/chart.cjs +7523 -0
  6. package/dist/chart.css +1036 -0
  7. package/dist/chart.d.cts +2061 -0
  8. package/dist/chart.d.ts +2061 -0
  9. package/dist/chart.js +120 -0
  10. package/dist/chunk-34TTF4Y7.js +812 -0
  11. package/dist/chunk-6VXOLMKZ.js +381 -0
  12. package/dist/chunk-DZ45HRVP.js +583 -0
  13. package/dist/chunk-I342FGQY.js +7344 -0
  14. package/dist/chunk-JKZGAZMB.js +318 -0
  15. package/dist/chunk-MBS2HXLZ.js +59 -0
  16. package/dist/chunk-NZAT2RUM.js +60 -0
  17. package/dist/chunk-OMA75YLM.js +298 -0
  18. package/dist/chunk-ULEGTKXR.js +2138 -0
  19. package/dist/chunk-YCVXUMGP.js +945 -0
  20. package/dist/core-BeiAQiDY.d.ts +1076 -0
  21. package/dist/core-DRICIs2n.d.cts +1076 -0
  22. package/dist/core.cjs +3353 -0
  23. package/dist/core.css +8734 -0
  24. package/dist/core.d.cts +3 -0
  25. package/dist/core.d.ts +3 -0
  26. package/dist/core.js +45 -0
  27. package/dist/index.cjs +19658 -0
  28. package/dist/index.css +9762 -0
  29. package/dist/index.d.cts +1222 -0
  30. package/dist/index.d.ts +1222 -0
  31. package/dist/index.js +6843 -0
  32. package/dist/markdown-editor.cjs +417 -0
  33. package/dist/markdown-editor.d.cts +28 -0
  34. package/dist/markdown-editor.d.ts +28 -0
  35. package/dist/markdown-editor.js +6 -0
  36. package/dist/rich-text-editor.cjs +1853 -0
  37. package/dist/rich-text-editor.d.cts +27 -0
  38. package/dist/rich-text-editor.d.ts +27 -0
  39. package/dist/rich-text-editor.js +11 -0
  40. package/dist/select-date-range-BDWdo7qt.d.ts +84 -0
  41. package/dist/select-date-range-DWik3ADr.d.cts +84 -0
  42. package/dist/select-date-range.cjs +2074 -0
  43. package/dist/select-date-range.d.cts +3 -0
  44. package/dist/select-date-range.d.ts +3 -0
  45. package/dist/select-date-range.js +8 -0
  46. package/package.json +129 -0
package/dist/chart.css ADDED
@@ -0,0 +1,1036 @@
1
+ /* src/focus.css */
2
+ :where([class^=sia-], [class*=" sia-"]):focus,
3
+ :where([class^=sia-], [class*=" sia-"]) :focus {
4
+ outline: none;
5
+ }
6
+ .sia-editor-control :is(:focus, .synthetic-focus, .monaco-list-row.focused) {
7
+ outline: none !important;
8
+ }
9
+
10
+ /* src/chart.css */
11
+ .sia-chart {
12
+ --sia-chart-axis: color-mix(in srgb, var(--sia-color-text) 34%, transparent);
13
+ --sia-chart-grid: color-mix(in srgb, var(--sia-color-text) 10%, transparent);
14
+ --sia-chart-track: color-mix(in srgb, var(--sia-color-text) 9%, transparent);
15
+ position: relative;
16
+ min-width: 0;
17
+ overflow: hidden;
18
+ color: var(--sia-color-text);
19
+ font-family:
20
+ system-ui,
21
+ -apple-system,
22
+ "Segoe UI",
23
+ "Microsoft YaHei",
24
+ sans-serif;
25
+ background: transparent;
26
+ }
27
+ .sia-chart-composite {
28
+ position: relative;
29
+ min-width: 0;
30
+ overflow: hidden;
31
+ }
32
+ .sia-chart-composite__layer {
33
+ position: absolute;
34
+ min-width: 0;
35
+ }
36
+ .sia-chart-composite__layer:has(.sia-chart-data-view) {
37
+ z-index: 1000 !important;
38
+ }
39
+ .sia-chart--overlay {
40
+ pointer-events: none;
41
+ }
42
+ .sia-chart--overlay .sia-chart__mark,
43
+ .sia-chart--overlay .sia-chart-toolbox,
44
+ .sia-chart--overlay .sia-chart-data-view,
45
+ .sia-chart--overlay .sia-chart__legend,
46
+ .sia-chart--overlay .sia-chart__visual-map {
47
+ pointer-events: auto;
48
+ }
49
+ .sia-chart-composite__layer > .sia-chart,
50
+ .sia-chart-composite__layer > .sia-chart-with-zoom {
51
+ width: 100% !important;
52
+ height: 100% !important;
53
+ }
54
+ .sia-chart__svg {
55
+ display: block;
56
+ width: 100%;
57
+ height: 100%;
58
+ overflow: visible;
59
+ outline: none;
60
+ }
61
+ .sia-chart__svg:focus-visible {
62
+ border-radius: var(--sia-radius);
63
+ }
64
+ .sia-chart__heading {
65
+ position: absolute;
66
+ z-index: 1;
67
+ top: 8px;
68
+ left: 12px;
69
+ display: grid;
70
+ gap: 2px;
71
+ max-width: calc(100% - 24px);
72
+ pointer-events: none;
73
+ }
74
+ .sia-chart__heading strong {
75
+ overflow: hidden;
76
+ color: var(--sia-color-text);
77
+ font-size: 14px;
78
+ text-overflow: ellipsis;
79
+ white-space: nowrap;
80
+ }
81
+ .sia-chart__heading span {
82
+ overflow: hidden;
83
+ color: var(--sia-color-text-secondary);
84
+ font-size: 11px;
85
+ text-overflow: ellipsis;
86
+ white-space: nowrap;
87
+ }
88
+ .sia-chart__tooltip {
89
+ position: absolute;
90
+ z-index: 5;
91
+ display: grid;
92
+ min-width: 96px;
93
+ max-width: 240px;
94
+ padding: 8px 10px;
95
+ color: var(--sia-color-text);
96
+ background: color-mix(in srgb, var(--sia-color-surface) 95%, transparent);
97
+ border: 1px solid var(--sia-color-border);
98
+ border-radius: var(--sia-radius);
99
+ box-shadow: var(--sia-shadow-popup);
100
+ font-size: 12px;
101
+ line-height: 1.55;
102
+ pointer-events: none;
103
+ transform: translate(10px, calc(-100% - 10px));
104
+ }
105
+ .sia-chart__tooltip strong {
106
+ font-size: 13px;
107
+ }
108
+ .sia-chart__tooltip span {
109
+ color: var(--sia-color-text-secondary);
110
+ }
111
+ .sia-chart__tooltip b {
112
+ color: var(--sia-color-primary-text);
113
+ font-size: 15px;
114
+ font-weight: 650;
115
+ }
116
+ .sia-chart-toolbox {
117
+ position: absolute;
118
+ z-index: 3;
119
+ top: 8px;
120
+ right: 10px;
121
+ display: flex;
122
+ align-items: center;
123
+ gap: 2px;
124
+ padding: 3px;
125
+ color: var(--sia-color-text-secondary);
126
+ background: color-mix(in srgb, var(--sia-color-surface) 82%, transparent);
127
+ border: 1px solid color-mix(in srgb, var(--sia-color-border) 74%, transparent);
128
+ border-radius: 7px;
129
+ backdrop-filter: blur(8px);
130
+ }
131
+ .sia-chart-toolbox__button {
132
+ display: grid;
133
+ min-width: 26px;
134
+ height: 26px;
135
+ padding: 4px;
136
+ place-items: center;
137
+ color: inherit;
138
+ background: transparent;
139
+ border: 0;
140
+ border-radius: 5px;
141
+ cursor: pointer;
142
+ font: inherit;
143
+ }
144
+ .sia-chart-toolbox__button:hover,
145
+ .sia-chart-toolbox__button:focus-visible,
146
+ .sia-chart-toolbox__button[aria-pressed=true] {
147
+ color: var(--sia-color-primary);
148
+ background: color-mix(in srgb, var(--sia-color-primary) 11%, transparent);
149
+ outline: none;
150
+ }
151
+ .sia-chart-toolbox__button svg {
152
+ width: 17px;
153
+ height: 17px;
154
+ }
155
+ .sia-chart-toolbox__magic {
156
+ padding-inline: 7px;
157
+ font-size: 11px;
158
+ }
159
+ .sia-chart-data-view {
160
+ position: absolute;
161
+ z-index: 8;
162
+ inset: 12px;
163
+ display: flex;
164
+ min-height: 0;
165
+ flex-direction: column;
166
+ color: var(--sia-color-text);
167
+ background: color-mix(in srgb, var(--sia-color-surface) 97%, transparent);
168
+ border: 1px solid var(--sia-color-border);
169
+ border-radius: var(--sia-radius);
170
+ box-shadow: var(--sia-shadow-popup);
171
+ backdrop-filter: blur(12px);
172
+ }
173
+ .sia-chart-data-view__header {
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: space-between;
177
+ padding: 10px 12px;
178
+ border-bottom: 1px solid var(--sia-color-border);
179
+ }
180
+ .sia-chart-data-view__header button {
181
+ width: 26px;
182
+ height: 26px;
183
+ color: var(--sia-color-text-secondary);
184
+ background: transparent;
185
+ border: 0;
186
+ border-radius: 5px;
187
+ cursor: pointer;
188
+ font-size: 20px;
189
+ line-height: 1;
190
+ }
191
+ .sia-chart-data-view__header button:hover {
192
+ color: var(--sia-color-text);
193
+ background: var(--sia-color-fill-secondary);
194
+ }
195
+ .sia-chart-data-view__body {
196
+ min-height: 0;
197
+ flex: 1;
198
+ padding: 12px;
199
+ overflow: auto;
200
+ font-size: 12px;
201
+ }
202
+ .sia-chart-data-view__body pre {
203
+ margin: 0;
204
+ white-space: pre-wrap;
205
+ }
206
+ .sia-chart__loading,
207
+ .sia-chart__empty {
208
+ position: absolute;
209
+ z-index: 4;
210
+ inset: 0;
211
+ display: grid;
212
+ place-content: center;
213
+ justify-items: center;
214
+ gap: 9px;
215
+ color: var(--sia-color-text-secondary);
216
+ background: color-mix(in srgb, var(--sia-color-surface) 82%, transparent);
217
+ font-size: 13px;
218
+ }
219
+ .sia-chart__loading i {
220
+ width: 24px;
221
+ height: 24px;
222
+ border: 2px solid var(--sia-color-border);
223
+ border-top-color: var(--sia-color-primary);
224
+ border-radius: 50%;
225
+ animation: sia-spin 720ms linear infinite;
226
+ }
227
+ .sia-chart__legend text,
228
+ .sia-chart__visual-map text {
229
+ fill: var(--sia-color-text-secondary);
230
+ font-size: 11px;
231
+ }
232
+ .sia-chart__visual-map-input {
233
+ width: 100%;
234
+ height: 100%;
235
+ margin: 0;
236
+ appearance: none;
237
+ background: transparent;
238
+ accent-color: var(--sia-color-primary);
239
+ }
240
+ .sia-chart__visual-map-input::-webkit-slider-thumb {
241
+ width: 8px;
242
+ height: 17px;
243
+ appearance: none;
244
+ cursor: ew-resize;
245
+ background: var(--sia-color-surface);
246
+ border: 2px solid var(--sia-color-primary);
247
+ border-radius: 3px;
248
+ }
249
+ .sia-chart__visual-map-input--vertical {
250
+ appearance: slider-vertical;
251
+ writing-mode: vertical-lr;
252
+ direction: rtl;
253
+ }
254
+ .sia-chart__visual-map-range {
255
+ position: relative;
256
+ width: 100%;
257
+ height: 100%;
258
+ }
259
+ .sia-chart__visual-map-range input {
260
+ position: absolute;
261
+ inset: 0;
262
+ width: 100%;
263
+ height: 100%;
264
+ margin: 0;
265
+ appearance: none;
266
+ background: transparent;
267
+ accent-color: var(--sia-color-primary);
268
+ pointer-events: none;
269
+ }
270
+ .sia-chart__visual-map-range input::-webkit-slider-thumb {
271
+ width: 8px;
272
+ height: 17px;
273
+ appearance: none;
274
+ cursor: ew-resize;
275
+ background: var(--sia-color-surface);
276
+ border: 2px solid var(--sia-color-primary);
277
+ border-radius: 3px;
278
+ pointer-events: auto;
279
+ }
280
+ .sia-chart__visual-map-range input::-moz-range-thumb {
281
+ width: 6px;
282
+ height: 15px;
283
+ cursor: ew-resize;
284
+ background: var(--sia-color-surface);
285
+ border: 2px solid var(--sia-color-primary);
286
+ border-radius: 3px;
287
+ pointer-events: auto;
288
+ }
289
+ .sia-chart__visual-map-range--vertical input {
290
+ appearance: slider-vertical;
291
+ writing-mode: vertical-lr;
292
+ direction: rtl;
293
+ }
294
+ .sia-chart__legend-item {
295
+ cursor: pointer;
296
+ outline: none;
297
+ }
298
+ .sia-chart__legend-item:focus-visible rect {
299
+ opacity: 0.8;
300
+ }
301
+ .sia-chart__axis-line {
302
+ stroke: var(--sia-chart-axis);
303
+ stroke-width: 1;
304
+ vector-effect: non-scaling-stroke;
305
+ }
306
+ .sia-chart__grid-line {
307
+ stroke: var(--sia-chart-grid);
308
+ stroke-width: 1;
309
+ vector-effect: non-scaling-stroke;
310
+ }
311
+ .sia-chart__axis-label {
312
+ fill: var(--sia-color-text-secondary);
313
+ font-size: 10px;
314
+ }
315
+ .sia-chart__axis-name {
316
+ fill: var(--sia-color-text-secondary);
317
+ font-size: 11px;
318
+ font-weight: 600;
319
+ }
320
+ .sia-chart__mark {
321
+ cursor: pointer;
322
+ outline: none;
323
+ }
324
+ .sia-chart__calculable {
325
+ cursor: grab;
326
+ }
327
+ .sia-chart__calculable:active {
328
+ cursor: grabbing;
329
+ }
330
+ .sia-chart__mark:focus-visible > :first-child {
331
+ opacity: 0.85;
332
+ }
333
+ .sia-chart__line {
334
+ stroke-width: 2.5;
335
+ stroke-linecap: round;
336
+ stroke-linejoin: round;
337
+ vector-effect: non-scaling-stroke;
338
+ }
339
+ .sia-chart__area {
340
+ opacity: 0.16;
341
+ }
342
+ .sia-chart__mark-line {
343
+ color: var(--sia-color-text-secondary);
344
+ }
345
+ .sia-chart__mark-line line {
346
+ stroke-dasharray: 5 4;
347
+ opacity: 0.7;
348
+ vector-effect: non-scaling-stroke;
349
+ }
350
+ .sia-chart__mark-line text {
351
+ fill: currentColor;
352
+ font-size: 10px;
353
+ }
354
+ .sia-chart__user-marks {
355
+ color: var(--sia-color-warning, #fa8c16);
356
+ pointer-events: none;
357
+ }
358
+ .sia-chart__user-marks line {
359
+ stroke: currentColor;
360
+ stroke-width: 2;
361
+ stroke-dasharray: 6 4;
362
+ vector-effect: non-scaling-stroke;
363
+ }
364
+ .sia-chart__user-marks circle {
365
+ fill: var(--sia-color-surface);
366
+ stroke: currentColor;
367
+ stroke-width: 2;
368
+ transform-box: fill-box;
369
+ transform-origin: center;
370
+ vector-effect: non-scaling-stroke;
371
+ }
372
+ .sia-chart__user-mark-start {
373
+ animation: sia-chart-mark-pulse 900ms ease-in-out infinite alternate;
374
+ }
375
+ .sia-chart__axis-pointer {
376
+ stroke: var(--sia-color-primary);
377
+ stroke-width: 1;
378
+ stroke-dasharray: 4 4;
379
+ opacity: 0.58;
380
+ vector-effect: non-scaling-stroke;
381
+ pointer-events: none;
382
+ }
383
+ .sia-chart__mark-point text,
384
+ .sia-chart__point-label {
385
+ fill: var(--sia-color-text-secondary);
386
+ font-size: 10px;
387
+ paint-order: stroke;
388
+ stroke: var(--sia-color-surface);
389
+ stroke-width: 3px;
390
+ stroke-linejoin: round;
391
+ }
392
+ .sia-chart__bar,
393
+ .sia-chart__bubble,
394
+ .sia-chart__sector,
395
+ .sia-chart__funnel,
396
+ .sia-chart__heat-cell,
397
+ .sia-chart__map-region,
398
+ .sia-chart__graph-node,
399
+ .sia-chart__tree-node,
400
+ .sia-chart__treemap-node,
401
+ .sia-chart__word {
402
+ transition:
403
+ opacity 140ms ease,
404
+ filter 140ms ease,
405
+ transform 140ms ease;
406
+ transform-box: fill-box;
407
+ transform-origin: center;
408
+ }
409
+ .sia-chart__mark:hover > .sia-chart__bar,
410
+ .sia-chart__mark:hover > .sia-chart__bubble,
411
+ .sia-chart__mark:hover > .sia-chart__sector,
412
+ .sia-chart__mark:hover > .sia-chart__funnel,
413
+ .sia-chart__mark:hover > .sia-chart__heat-cell,
414
+ .sia-chart__mark:hover > .sia-chart__map-region,
415
+ .sia-chart__mark:hover > .sia-chart__graph-node,
416
+ .sia-chart__mark:hover > .sia-chart__tree-node,
417
+ .sia-chart__mark:hover > .sia-chart__word {
418
+ filter: brightness(1.06) drop-shadow(0 3px 4px rgb(0 0 0 / 16%));
419
+ opacity: 0.9;
420
+ }
421
+ .sia-chart__mark:hover > .sia-chart__bar,
422
+ .sia-chart__mark:hover > .sia-chart__bubble,
423
+ .sia-chart__mark:hover > .sia-chart__sector,
424
+ .sia-chart__mark:hover > .sia-chart__graph-node,
425
+ .sia-chart__mark:hover > .sia-chart__tree-node {
426
+ transform: scale(1.025);
427
+ }
428
+ .sia-chart__bubble {
429
+ opacity: 0.78;
430
+ stroke: color-mix(in srgb, currentColor 85%, #fff);
431
+ stroke-width: 1;
432
+ }
433
+ .sia-chart__pie-label,
434
+ .sia-chart__radar-label,
435
+ .sia-chart__chord-label,
436
+ .sia-chart__tree-label {
437
+ fill: var(--sia-color-text-secondary);
438
+ font-size: 11px;
439
+ }
440
+ .sia-chart__pie-label-line {
441
+ opacity: .7;
442
+ vector-effect: non-scaling-stroke;
443
+ }
444
+ .sia-chart__center-label {
445
+ display: grid;
446
+ width: 100%;
447
+ height: 100%;
448
+ place-content: center;
449
+ color: var(--sia-color-text);
450
+ text-align: center;
451
+ }
452
+ .sia-chart__radar-grid {
453
+ fill: var(--sia-chart-track);
454
+ stroke: var(--sia-chart-axis);
455
+ stroke-width: 1;
456
+ }
457
+ .sia-chart__chord-link {
458
+ opacity: 0.4;
459
+ transition: opacity 140ms ease;
460
+ }
461
+ .sia-chart__mark:hover > .sia-chart__chord-link {
462
+ opacity: 0.75;
463
+ }
464
+ .sia-chart__graph-links line {
465
+ stroke: var(--sia-chart-axis);
466
+ }
467
+ .sia-chart__graph-label,
468
+ .sia-chart__funnel-label,
469
+ .sia-chart__venn-label,
470
+ .sia-chart__map-label {
471
+ fill: #fff;
472
+ font-size: 11px;
473
+ font-weight: 650;
474
+ pointer-events: none;
475
+ text-shadow: 0 1px 2px rgb(0 0 0 / 38%);
476
+ }
477
+ .sia-chart__graph-node {
478
+ stroke: var(--sia-color-surface);
479
+ stroke-width: 2;
480
+ }
481
+ .sia-chart__map-region {
482
+ stroke: var(--sia-color-surface);
483
+ stroke-width: 2;
484
+ vector-effect: non-scaling-stroke;
485
+ }
486
+ .sia-chart__map-region--selected {
487
+ filter: brightness(1.13) drop-shadow(0 0 5px color-mix(in srgb, var(--sia-color-primary) 60%, transparent));
488
+ stroke: var(--sia-color-primary);
489
+ stroke-width: 3;
490
+ }
491
+ .sia-chart__map-roam-surface {
492
+ cursor: grab;
493
+ }
494
+ .sia-chart__map-roam-surface:active {
495
+ cursor: grabbing;
496
+ }
497
+ .sia-chart__map-mark-line {
498
+ pointer-events: none;
499
+ }
500
+ .sia-chart__map-effect {
501
+ filter: drop-shadow(0 0 4px currentColor);
502
+ }
503
+ .sia-chart__map-point {
504
+ stroke: var(--sia-color-surface);
505
+ stroke-width: 2;
506
+ }
507
+ .sia-chart__gauge-tick {
508
+ stroke: var(--sia-color-text-secondary);
509
+ stroke-width: 2;
510
+ }
511
+ .sia-chart__gauge-name {
512
+ fill: var(--sia-color-text-secondary);
513
+ font-size: 12px;
514
+ }
515
+ .sia-chart__gauge-value {
516
+ fill: var(--sia-color-text);
517
+ font-size: 24px;
518
+ font-weight: 700;
519
+ }
520
+ .sia-chart__gauge-axis-label {
521
+ fill: var(--sia-color-text-secondary);
522
+ font-size: 8px;
523
+ }
524
+ .sia-chart__gauge-pointer {
525
+ filter: drop-shadow(0 1px 2px rgb(0 0 0 / 20%));
526
+ }
527
+ .sia-chart__gauge-progress {
528
+ filter: drop-shadow(0 2px 3px rgb(0 0 0 / 12%));
529
+ }
530
+ .sia-chart__funnel {
531
+ stroke: var(--sia-color-surface);
532
+ stroke-width: 2;
533
+ }
534
+ .sia-chart__heat-label {
535
+ fill: #fff;
536
+ font-size: 10px;
537
+ font-weight: 600;
538
+ pointer-events: none;
539
+ text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
540
+ }
541
+ .sia-chart__heat-density {
542
+ mix-blend-mode: multiply;
543
+ }
544
+ [data-sia-theme=dark] .sia-chart__heat-density {
545
+ mix-blend-mode: screen;
546
+ }
547
+ .sia-chart__river {
548
+ opacity: 0.82;
549
+ }
550
+ .sia-chart__event-river {
551
+ opacity: .76;
552
+ transition: opacity 150ms ease;
553
+ }
554
+ .sia-chart--event-river-reference .sia-chart__event-river {
555
+ opacity: 1;
556
+ }
557
+ .sia-chart--event-river-reference .sia-chart__mark:is(:hover, :focus) .sia-chart__event-river {
558
+ fill: var(--sia-event-emphasis);
559
+ filter: none;
560
+ }
561
+ .sia-chart--event-river-reference .sia-chart__event-label {
562
+ text-shadow: none;
563
+ }
564
+ .sia-chart--event-river-reference .sia-chart__event-label {
565
+ font:
566
+ 12px "Microsoft YaHei",
567
+ Arial,
568
+ Verdana,
569
+ sans-serif;
570
+ }
571
+ .sia-chart__mark:hover > .sia-chart__event-river {
572
+ opacity: .95;
573
+ filter: drop-shadow(0 3px 4px rgb(0 0 0 / 14%));
574
+ }
575
+ .sia-chart__event-label {
576
+ fill: #fff;
577
+ font-size: 9px;
578
+ font-weight: 650;
579
+ pointer-events: none;
580
+ text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
581
+ }
582
+ .sia-chart__venn-circle {
583
+ opacity: 0.56;
584
+ stroke: var(--sia-color-surface);
585
+ stroke-width: 2;
586
+ mix-blend-mode: multiply;
587
+ }
588
+ [data-sia-theme=dark] .sia-chart__venn-circle {
589
+ mix-blend-mode: screen;
590
+ }
591
+ .sia-chart__treemap-node {
592
+ stroke: var(--sia-color-surface);
593
+ stroke-width: 1.5;
594
+ }
595
+ .sia-chart__treemap-node--depth-1,
596
+ .sia-chart__treemap-node--depth-2 {
597
+ opacity: 0.88;
598
+ }
599
+ .sia-chart__treemap-label {
600
+ fill: #fff;
601
+ font-size: 11px;
602
+ font-weight: 650;
603
+ pointer-events: none;
604
+ text-shadow: 0 1px 2px rgb(0 0 0 / 38%);
605
+ }
606
+ .sia-chart__treemap-label tspan + tspan {
607
+ font-size: 10px;
608
+ font-weight: 500;
609
+ }
610
+ .sia-chart--treemap-reference .sia-chart__treemap-label {
611
+ text-shadow: none;
612
+ }
613
+ .sia-chart--macarons.sia-chart--treemap-reference .sia-chart__heading strong {
614
+ color: #333;
615
+ font-weight: 700;
616
+ }
617
+ .sia-chart__treemap-breadcrumb g {
618
+ cursor: pointer;
619
+ outline: none;
620
+ }
621
+ .sia-chart__treemap-breadcrumb rect {
622
+ fill: var(--sia-color-fill-secondary);
623
+ stroke: var(--sia-color-border);
624
+ }
625
+ .sia-chart__treemap-breadcrumb text {
626
+ fill: var(--sia-color-text-secondary);
627
+ font-size: 10px;
628
+ }
629
+ .sia-chart__treemap-breadcrumb g:hover rect,
630
+ .sia-chart__treemap-breadcrumb g:focus-visible rect {
631
+ fill: color-mix(in srgb, var(--sia-color-primary) 10%, var(--sia-color-surface));
632
+ stroke: var(--sia-color-primary);
633
+ }
634
+ .sia-chart__tree-links path {
635
+ fill: none;
636
+ stroke: var(--sia-chart-axis);
637
+ stroke-width: 1.5;
638
+ }
639
+ .sia-chart__tree-node {
640
+ stroke: var(--sia-color-surface);
641
+ stroke-width: 2;
642
+ }
643
+ .sia-chart__tree-toggle {
644
+ fill: #fff;
645
+ font-size: 11px;
646
+ font-weight: 700;
647
+ pointer-events: none;
648
+ }
649
+ .sia-chart__word {
650
+ font-family:
651
+ system-ui,
652
+ -apple-system,
653
+ "Segoe UI",
654
+ "Microsoft YaHei",
655
+ sans-serif;
656
+ font-weight: 650;
657
+ }
658
+ .sia-chart-with-zoom {
659
+ min-width: 0;
660
+ }
661
+ .sia-chart-data-zoom {
662
+ --sia-chart-zoom-start: 0%;
663
+ --sia-chart-zoom-end: 100%;
664
+ position: relative;
665
+ height: 28px;
666
+ margin: -26px 52px 0 62px;
667
+ }
668
+ .sia-chart__inline-zoom .sia-chart-data-zoom {
669
+ margin: 0;
670
+ }
671
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom {
672
+ height: 100%;
673
+ }
674
+ .sia-chart__inline-zoom--compact {
675
+ overflow: visible;
676
+ }
677
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom input {
678
+ height: 20px;
679
+ }
680
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom__pan {
681
+ top: 0;
682
+ height: 20px;
683
+ }
684
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom__track {
685
+ top: 0;
686
+ height: 20px;
687
+ border-radius: 0;
688
+ background: transparent;
689
+ }
690
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom__track i {
691
+ background: rgba(182, 162, 222, 0.2);
692
+ }
693
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom input {
694
+ width: calc(100% + 8px);
695
+ right: auto;
696
+ }
697
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom input[data-zoom-end] {
698
+ left: -8px;
699
+ }
700
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom input::-webkit-slider-thumb {
701
+ width: 8px;
702
+ height: 20px;
703
+ border: 0;
704
+ border-radius: 0;
705
+ box-shadow: none;
706
+ background:
707
+ linear-gradient(#fff, #fff) center 8px/4px 1px no-repeat,
708
+ linear-gradient(#fff, #fff) center 11px/4px 1px no-repeat,
709
+ #008acd;
710
+ }
711
+ .sia-chart__inline-zoom--compact .sia-chart-data-zoom input::-moz-range-thumb {
712
+ width: 8px;
713
+ height: 20px;
714
+ border: 0;
715
+ border-radius: 0;
716
+ box-shadow: none;
717
+ background:
718
+ linear-gradient(#fff, #fff) center 8px/4px 1px no-repeat,
719
+ linear-gradient(#fff, #fff) center 11px/4px 1px no-repeat,
720
+ #008acd;
721
+ }
722
+ .sia-chart-data-zoom > svg {
723
+ position: absolute;
724
+ inset: 0;
725
+ width: 100%;
726
+ height: 20px;
727
+ overflow: visible;
728
+ }
729
+ .sia-chart-data-zoom > svg polygon {
730
+ fill: color-mix(in srgb, var(--sia-color-primary) 12%, transparent);
731
+ }
732
+ .sia-chart-data-zoom__track {
733
+ position: absolute;
734
+ top: 10px;
735
+ right: 0;
736
+ left: 0;
737
+ height: 6px;
738
+ background: var(--sia-chart-track);
739
+ border-radius: 999px;
740
+ }
741
+ .sia-chart-data-zoom__track i {
742
+ position: absolute;
743
+ top: 0;
744
+ bottom: 0;
745
+ left: var(--sia-chart-zoom-start);
746
+ right: calc(100% - var(--sia-chart-zoom-end));
747
+ background: color-mix(in srgb, var(--sia-color-primary) 38%, transparent);
748
+ border-radius: inherit;
749
+ }
750
+ .sia-chart-data-zoom__pan {
751
+ position: absolute;
752
+ z-index: 1;
753
+ top: 3px;
754
+ height: 20px;
755
+ left: var(--sia-chart-zoom-start);
756
+ right: calc(100% - var(--sia-chart-zoom-end));
757
+ cursor: grab;
758
+ touch-action: none;
759
+ }
760
+ .sia-chart-data-zoom__pan:active {
761
+ cursor: grabbing;
762
+ }
763
+ .sia-chart-data-zoom__pan:focus-visible {
764
+ outline: 2px solid var(--sia-color-primary);
765
+ outline-offset: 2px;
766
+ }
767
+ .sia-chart-data-zoom--vertical .sia-chart-data-zoom__pan {
768
+ top: var(--sia-chart-zoom-start);
769
+ bottom: calc(100% - var(--sia-chart-zoom-end));
770
+ left: 3px;
771
+ right: auto;
772
+ width: 20px;
773
+ height: auto;
774
+ }
775
+ .sia-chart-data-zoom input {
776
+ position: absolute;
777
+ z-index: 1;
778
+ inset: 0;
779
+ width: 100%;
780
+ height: 26px;
781
+ margin: 0;
782
+ appearance: none;
783
+ background: transparent;
784
+ pointer-events: none;
785
+ }
786
+ .sia-chart-data-zoom input::-webkit-slider-thumb {
787
+ width: 12px;
788
+ height: 18px;
789
+ appearance: none;
790
+ cursor: ew-resize;
791
+ background: var(--sia-color-surface);
792
+ border: 2px solid var(--sia-color-primary);
793
+ border-radius: 4px;
794
+ box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
795
+ pointer-events: auto;
796
+ }
797
+ .sia-chart-data-zoom input::-moz-range-thumb {
798
+ width: 10px;
799
+ height: 16px;
800
+ cursor: ew-resize;
801
+ background: var(--sia-color-surface);
802
+ border: 2px solid var(--sia-color-primary);
803
+ border-radius: 4px;
804
+ pointer-events: auto;
805
+ }
806
+ .sia-chart-data-zoom output {
807
+ position: absolute;
808
+ right: 0;
809
+ bottom: -15px;
810
+ color: var(--sia-color-text-secondary);
811
+ font-size: 10px;
812
+ }
813
+ .sia-chart-data-zoom--vertical {
814
+ position: absolute;
815
+ top: 48px;
816
+ right: 8px;
817
+ width: 28px;
818
+ height: 250px;
819
+ margin: 0;
820
+ }
821
+ .sia-chart-data-zoom--vertical .sia-chart-data-zoom__track {
822
+ top: 0;
823
+ right: 10px;
824
+ bottom: 0;
825
+ left: auto;
826
+ width: 6px;
827
+ height: auto;
828
+ }
829
+ .sia-chart-data-zoom--vertical .sia-chart-data-zoom__track i {
830
+ top: var(--sia-chart-zoom-start);
831
+ right: 0;
832
+ bottom: calc(100% - var(--sia-chart-zoom-end));
833
+ left: 0;
834
+ }
835
+ .sia-chart-data-zoom--vertical input {
836
+ width: 26px;
837
+ height: 100%;
838
+ appearance: slider-vertical;
839
+ writing-mode: vertical-lr;
840
+ direction: rtl;
841
+ }
842
+ .sia-chart-data-zoom--vertical > svg {
843
+ display: none;
844
+ }
845
+ .sia-chart-timeline {
846
+ display: grid;
847
+ grid-template-columns: 30px minmax(0, 1fr) auto;
848
+ align-items: center;
849
+ gap: 10px;
850
+ min-height: 34px;
851
+ margin: -20px 42px 0;
852
+ color: var(--sia-color-text-secondary);
853
+ }
854
+ .sia-chart-timeline button {
855
+ width: 28px;
856
+ height: 28px;
857
+ color: var(--sia-color-primary);
858
+ background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
859
+ border: 1px solid color-mix(in srgb, var(--sia-color-primary) 28%, transparent);
860
+ border-radius: 50%;
861
+ cursor: pointer;
862
+ }
863
+ .sia-chart-timeline input {
864
+ width: 100%;
865
+ accent-color: var(--sia-color-primary);
866
+ }
867
+ .sia-chart-timeline output {
868
+ min-width: 52px;
869
+ font-size: 12px;
870
+ text-align: right;
871
+ }
872
+ .sia-chart--animated .sia-chart__line--draw {
873
+ stroke-dasharray: 1;
874
+ stroke-dashoffset: 1;
875
+ animation: sia-chart-draw var(--sia-chart-animation-duration) cubic-bezier(.22, .61, .36, 1) forwards;
876
+ }
877
+ .sia-chart--animated .sia-chart__line:not(.sia-chart__line--draw) {
878
+ animation: sia-chart-line-reveal var(--sia-chart-animation-duration) ease both;
879
+ }
880
+ .sia-chart--animated .sia-chart__bar,
881
+ .sia-chart--animated .sia-chart__bubble,
882
+ .sia-chart--animated .sia-chart__sector,
883
+ .sia-chart--animated .sia-chart__funnel,
884
+ .sia-chart--animated .sia-chart__map-region,
885
+ .sia-chart--animated .sia-chart__graph-node,
886
+ .sia-chart--animated .sia-chart__tree-node,
887
+ .sia-chart--animated .sia-chart__treemap-node,
888
+ .sia-chart--animated .sia-chart__word {
889
+ animation: sia-chart-reveal var(--sia-chart-animation-duration) cubic-bezier(.22, .61, .36, 1) both;
890
+ }
891
+ @keyframes sia-chart-draw {
892
+ to {
893
+ stroke-dashoffset: 0;
894
+ }
895
+ }
896
+ @keyframes sia-chart-line-reveal {
897
+ from {
898
+ opacity: 0;
899
+ }
900
+ }
901
+ @keyframes sia-chart-reveal {
902
+ from {
903
+ opacity: 0;
904
+ transform: scale(.72);
905
+ }
906
+ }
907
+ @keyframes sia-chart-mark-pulse {
908
+ from {
909
+ opacity: .45;
910
+ transform: scale(.82);
911
+ }
912
+ to {
913
+ opacity: 1;
914
+ transform: scale(1.2);
915
+ }
916
+ }
917
+ @media (prefers-reduced-motion: reduce) {
918
+ .sia-chart__bar,
919
+ .sia-chart__bubble,
920
+ .sia-chart__sector,
921
+ .sia-chart__funnel,
922
+ .sia-chart__heat-cell,
923
+ .sia-chart__map-region,
924
+ .sia-chart__graph-node,
925
+ .sia-chart__tree-node,
926
+ .sia-chart__treemap-node,
927
+ .sia-chart__word {
928
+ transition: none;
929
+ }
930
+ .sia-chart--animated .sia-chart__line--draw,
931
+ .sia-chart--animated .sia-chart__line:not(.sia-chart__line--draw),
932
+ .sia-chart--animated .sia-chart__bar,
933
+ .sia-chart--animated .sia-chart__bubble,
934
+ .sia-chart--animated .sia-chart__sector,
935
+ .sia-chart--animated .sia-chart__funnel,
936
+ .sia-chart--animated .sia-chart__map-region,
937
+ .sia-chart--animated .sia-chart__graph-node,
938
+ .sia-chart--animated .sia-chart__tree-node,
939
+ .sia-chart--animated .sia-chart__treemap-node,
940
+ .sia-chart--animated .sia-chart__word,
941
+ .sia-chart__user-mark-start {
942
+ animation: none;
943
+ }
944
+ }
945
+ .sia-chart--macarons {
946
+ background: #fff;
947
+ font-family:
948
+ Arial,
949
+ "Microsoft YaHei",
950
+ sans-serif;
951
+ --sia-color-text-secondary: #333;
952
+ --sia-color-text: #333;
953
+ --sia-color-surface: #fff;
954
+ }
955
+ .sia-chart--macarons.sia-chart--overlay {
956
+ background: transparent;
957
+ }
958
+ .sia-chart--macarons .sia-chart__heading {
959
+ top: 5px;
960
+ left: 5px;
961
+ gap: 10px;
962
+ }
963
+ .sia-chart--macarons .sia-chart__heading strong {
964
+ color: #008acd;
965
+ font-size: 18px;
966
+ font-weight: 500;
967
+ }
968
+ .sia-chart--macarons .sia-chart__heading span {
969
+ color: #aaa;
970
+ font-size: 12px;
971
+ }
972
+ .sia-chart--macarons .sia-chart__axis-label {
973
+ font-size: 12px;
974
+ }
975
+ .sia-chart--macarons .sia-chart__area {
976
+ opacity: .5;
977
+ }
978
+ .sia-chart--macarons .sia-chart__mark-line line {
979
+ stroke-dasharray: 5 5;
980
+ opacity: 1;
981
+ }
982
+ .sia-chart--macarons .sia-chart__mark-line text {
983
+ font-size: 12px;
984
+ }
985
+ .sia-chart-toolbox--vertical {
986
+ flex-direction: column;
987
+ top: 50%;
988
+ right: 8px;
989
+ transform: translateY(-50%);
990
+ }
991
+ .sia-chart-toolbox__button:disabled {
992
+ opacity: .3;
993
+ cursor: default;
994
+ }
995
+ .sia-chart--macarons .sia-chart-toolbox {
996
+ gap: 2px;
997
+ padding: 0;
998
+ border: 0;
999
+ box-shadow: none;
1000
+ background: transparent;
1001
+ }
1002
+ .sia-chart--macarons .sia-chart-toolbox__button {
1003
+ width: 22px;
1004
+ min-width: 22px;
1005
+ height: 22px;
1006
+ padding: 2px;
1007
+ color: #5ab1ef;
1008
+ }
1009
+ .sia-chart--macarons .sia-chart__legend text {
1010
+ font-size: 12px;
1011
+ }
1012
+ .sia-chart-data-editor {
1013
+ display: grid;
1014
+ gap: 8px;
1015
+ }
1016
+ .sia-chart--macarons .sia-chart__point-label {
1017
+ stroke: none;
1018
+ font-size: 12px;
1019
+ }
1020
+ .sia-chart--macarons .sia-chart__tooltip {
1021
+ color: #fff;
1022
+ background: rgba(0, 0, 0, .7);
1023
+ border: 0;
1024
+ border-radius: 4px;
1025
+ }
1026
+ .sia-chart--macarons .sia-chart__tooltip span {
1027
+ color: #fff;
1028
+ }
1029
+ .sia-chart__tooltip.sia-chart__tooltip--inherit-text :is(strong, span, b) {
1030
+ font: inherit;
1031
+ color: inherit;
1032
+ }
1033
+ .sia-chart__mark:hover > .sia-chart__mixed-hollow-symbol,
1034
+ .sia-chart__mark:focus > .sia-chart__mixed-hollow-symbol {
1035
+ stroke-width: 4;
1036
+ }