@cfasim-ui/charts 0.2.0 → 0.2.3
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/LineChart/LineChart.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -4
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.chart-menu-trigger-area[data-v-fe2f6904]{z-index:1;position:absolute;top:0;right:0}.chart-menu-button[data-v-fe2f6904]{border:1px solid var(--color-border);background:var(--color-bg-0,#fff);width:28px;height:28px;color:var(--color-text-secondary);cursor:pointer;opacity:0;border-radius:.25em;justify-content:center;align-items:center;transition:opacity .15s;display:flex}.chart-menu-button[data-state=open][data-v-fe2f6904]{opacity:1}.chart-menu-button[data-v-fe2f6904]:hover{background:var(--color-bg-1,#0000000d);color:var(--color-text)}.chart-menu-content{z-index:100;background:var(--color-bg-0);border:1px solid var(--color-border);border-radius:.25em;min-width:140px;padding:.25em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.chart-menu-item{font-size:var(--font-size-sm);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:.25em;outline:none;align-items:center;padding:.375em .5em;display:flex}.chart-menu-item[data-highlighted]{background:var(--color-primary);color:#fff}.line-chart-wrapper[data-v-
|
|
1
|
+
.chart-menu-trigger-area[data-v-fe2f6904]{z-index:1;position:absolute;top:0;right:0}.chart-menu-button[data-v-fe2f6904]{border:1px solid var(--color-border);background:var(--color-bg-0,#fff);width:28px;height:28px;color:var(--color-text-secondary);cursor:pointer;opacity:0;border-radius:.25em;justify-content:center;align-items:center;transition:opacity .15s;display:flex}.chart-menu-button[data-state=open][data-v-fe2f6904]{opacity:1}.chart-menu-button[data-v-fe2f6904]:hover{background:var(--color-bg-1,#0000000d);color:var(--color-text)}.chart-menu-content{z-index:100;background:var(--color-bg-0);border:1px solid var(--color-border);border-radius:.25em;min-width:140px;padding:.25em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.chart-menu-item{font-size:var(--font-size-sm);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:.25em;outline:none;align-items:center;padding:.375em .5em;display:flex}.chart-menu-item[data-highlighted]{background:var(--color-primary);color:#fff}.line-chart-wrapper[data-v-4ea55781]{width:100%;position:relative}.line-chart-wrapper[data-v-4ea55781]:hover .chart-menu-button{opacity:1}.line-chart-tooltip-label[data-v-4ea55781]{margin-bottom:.25em;font-weight:600}.line-chart-tooltip-row[data-v-4ea55781]{align-items:center;gap:.375em;display:flex}.line-chart-tooltip-swatch[data-v-4ea55781]{border-radius:50%;flex-shrink:0;width:.625em;height:.625em;display:inline-block}.choropleth-wrapper[data-v-af9f8a22]{width:100%;position:relative}.choropleth-wrapper.pannable svg[data-v-af9f8a22]{cursor:grab}.choropleth-wrapper.pannable svg[data-v-af9f8a22]:active{cursor:grabbing}.choropleth-wrapper[data-v-af9f8a22]:hover .chart-menu-button{opacity:1}.state-path[data-v-af9f8a22]{cursor:pointer}.chart-tooltip-anchor[data-v-44377f70]{pointer-events:none;width:1px;height:1px;position:absolute}.chart-tooltip-content{z-index:100;background:var(--color-bg-0,#fff);border:1px solid var(--color-border,#e5e7eb);font-size:var(--font-size-sm,.875rem);pointer-events:none;border-radius:.375em;padding:.5em .75em;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.TableOuter[data-v-dbfb7c84]{display:inline-block;position:relative}.TableOuter.has-menu[data-v-dbfb7c84]{padding-top:32px}.TableOuter[data-v-dbfb7c84]:hover .chart-menu-button{opacity:1}.TableWrapper[data-v-dbfb7c84]{font-size:var(--font-size-sm);overflow-x:auto}.Table[data-v-dbfb7c84]{border-collapse:collapse;font-variant-numeric:tabular-nums;border:1px solid var(--color-border)}.Table tr[data-v-dbfb7c84],.Table th[data-v-dbfb7c84],.Table td[data-v-dbfb7c84]{background:0 0;border:none}.Table th[data-v-dbfb7c84],.Table td[data-v-dbfb7c84]{white-space:nowrap;padding:.75em 1.25em}.Table th[data-v-dbfb7c84]{border-bottom:1px solid var(--color-border-header);font-weight:600;position:sticky;top:0}.Table tbody td[data-v-dbfb7c84]{border-bottom:1px solid var(--color-border)}.Table tbody tr:last-child td[data-v-dbfb7c84]{border-bottom:none}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/index.js
CHANGED
|
@@ -532,7 +532,7 @@ var H = ["width", "height"], ue = ["x"], de = [
|
|
|
532
532
|
fill: "none",
|
|
533
533
|
stroke: t.color ?? "currentColor",
|
|
534
534
|
"stroke-width": t.strokeWidth ?? 1.5,
|
|
535
|
-
"stroke-opacity": t.opacity ?? s.lineOpacity,
|
|
535
|
+
"stroke-opacity": t.lineOpacity ?? t.opacity ?? s.lineOpacity,
|
|
536
536
|
"stroke-dasharray": t.dashed ? "6 3" : void 0
|
|
537
537
|
}, null, 8, _e)), t.dots ? (m(!0), i(e, { key: 1 }, g(ne(t.data), (e, n) => (m(), i("circle", {
|
|
538
538
|
key: n,
|
|
@@ -540,7 +540,7 @@ var H = ["width", "height"], ue = ["x"], de = [
|
|
|
540
540
|
cy: e.y,
|
|
541
541
|
r: t.dotRadius ?? (t.strokeWidth ?? 1.5) + 1,
|
|
542
542
|
fill: t.dotFill ?? t.color ?? "currentColor",
|
|
543
|
-
"fill-opacity": t.opacity ?? s.lineOpacity,
|
|
543
|
+
"fill-opacity": t.dotOpacity ?? t.opacity ?? s.lineOpacity,
|
|
544
544
|
stroke: t.dotStroke ?? "none"
|
|
545
545
|
}, null, 8, ve))), 128)) : r("", !0)], 64))), 128)),
|
|
546
546
|
X.value && J.value !== null ? (m(), i("line", {
|
|
@@ -601,7 +601,7 @@ var H = ["width", "height"], ue = ["x"], de = [
|
|
|
601
601
|
}, null, 4), o(" " + v(isFinite(e.value) ? I(e.value) : "—"), 1)]))), 128))])], !0)], 512)) : r("", !0)
|
|
602
602
|
], 512));
|
|
603
603
|
}
|
|
604
|
-
}), [["__scopeId", "data-v-
|
|
604
|
+
}), [["__scopeId", "data-v-4ea55781"]]), Y = {
|
|
605
605
|
"01013": "010259",
|
|
606
606
|
"01015": "010177",
|
|
607
607
|
"01029": "010177",
|
|
@@ -5086,7 +5086,7 @@ var H = ["width", "height"], ue = ["x"], de = [
|
|
|
5086
5086
|
}, v(o.title), 9, Ne)) : r("", !0)
|
|
5087
5087
|
], 8, X))], 2));
|
|
5088
5088
|
}
|
|
5089
|
-
}), [["__scopeId", "data-v-
|
|
5089
|
+
}), [["__scopeId", "data-v-af9f8a22"]]), Fe = /* @__PURE__ */ B(/* @__PURE__ */ c({
|
|
5090
5090
|
__name: "ChartTooltip",
|
|
5091
5091
|
props: {
|
|
5092
5092
|
x: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfasim-ui/charts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Chart visualization components for cfasim-ui",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"development": "./src/index.ts",
|
|
23
22
|
"types": "./dist/index.d.ts",
|
|
24
23
|
"import": "./dist/index.js"
|
|
25
24
|
},
|
|
26
|
-
"./style.css": "./dist/
|
|
25
|
+
"./style.css": "./dist/index.css"
|
|
27
26
|
},
|
|
28
27
|
"sideEffects": [
|
|
29
28
|
"*.css"
|
|
@@ -35,7 +34,7 @@
|
|
|
35
34
|
"reka-ui": "^2.9.2",
|
|
36
35
|
"topojson-client": "^3.1.0",
|
|
37
36
|
"us-atlas": "^3.0.1",
|
|
38
|
-
"@cfasim-ui/shared": "0.2.
|
|
37
|
+
"@cfasim-ui/shared": "0.2.3"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"vue": "^3.5.0"
|