reke-ui 0.5.2 → 0.5.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.
@@ -6,6 +6,52 @@ var n = [e, t`
6
6
  display: block;
7
7
  }
8
8
 
9
+ /* === Motion ===
10
+ Enter and exit are separate animations rather than a transition: the
11
+ panel is only in the DOM while open or closing, so there is no resting
12
+ state to transition from. The is-closing class comes from the
13
+ component, which keeps the panel mounted until the exit ends. */
14
+
15
+ @keyframes reke-backdrop-in {
16
+ from { opacity: 0; }
17
+ to { opacity: 1; }
18
+ }
19
+
20
+ @keyframes reke-backdrop-out {
21
+ from { opacity: 1; }
22
+ to { opacity: 0; }
23
+ }
24
+
25
+ @keyframes reke-dialog-in {
26
+ from { opacity: 0; transform: translateY(8px) scale(0.98); }
27
+ to { opacity: 1; transform: translateY(0) scale(1); }
28
+ }
29
+
30
+ @keyframes reke-dialog-out {
31
+ from { opacity: 1; transform: translateY(0) scale(1); }
32
+ to { opacity: 0; transform: translateY(8px) scale(0.98); }
33
+ }
34
+
35
+ @keyframes reke-drawer-in-right {
36
+ from { transform: translateX(100%); }
37
+ to { transform: translateX(0); }
38
+ }
39
+
40
+ @keyframes reke-drawer-out-right {
41
+ from { transform: translateX(0); }
42
+ to { transform: translateX(100%); }
43
+ }
44
+
45
+ @keyframes reke-drawer-in-left {
46
+ from { transform: translateX(-100%); }
47
+ to { transform: translateX(0); }
48
+ }
49
+
50
+ @keyframes reke-drawer-out-left {
51
+ from { transform: translateX(0); }
52
+ to { transform: translateX(-100%); }
53
+ }
54
+
9
55
  /* === Backdrop === */
10
56
 
11
57
  .backdrop {
@@ -17,6 +63,11 @@ var n = [e, t`
17
63
  align-items: center;
18
64
  justify-content: center;
19
65
  z-index: 1000;
66
+ animation: reke-backdrop-in 200ms ease-out both;
67
+ }
68
+
69
+ .backdrop.is-closing {
70
+ animation: reke-backdrop-out 180ms ease-in both;
20
71
  }
21
72
 
22
73
  .backdrop--drawer {
@@ -48,6 +99,11 @@ var n = [e, t`
48
99
  ui-monospace,
49
100
  monospace
50
101
  );
102
+ animation: reke-dialog-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
103
+ }
104
+
105
+ .dialog.is-closing {
106
+ animation: reke-dialog-out 160ms ease-in both;
51
107
  }
52
108
 
53
109
  /* === Drawer === */
@@ -70,10 +126,33 @@ var n = [e, t`
70
126
 
71
127
  .drawer--right {
72
128
  border-left: 1px solid var(--reke-color-border, #252525);
129
+ animation: reke-drawer-in-right 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
130
+ }
131
+
132
+ .drawer--right.is-closing {
133
+ animation: reke-drawer-out-right 200ms ease-in both;
73
134
  }
74
135
 
75
136
  .drawer--left {
76
137
  border-right: 1px solid var(--reke-color-border, #252525);
138
+ animation: reke-drawer-in-left 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
139
+ }
140
+
141
+ .drawer--left.is-closing {
142
+ animation: reke-drawer-out-left 200ms ease-in both;
143
+ }
144
+
145
+ /*
146
+ * At rest the panel must carry NO transform. animation-fill-mode both keeps
147
+ * the last keyframe applied, and a transformed element becomes the
148
+ * containing block for its position-fixed descendants, so every floating
149
+ * layer inside the dialog is silently relocated: combobox dropdowns and
150
+ * menus compute viewport coordinates that then resolve against the panel.
151
+ */
152
+ .dialog.is-settled,
153
+ .drawer.is-settled {
154
+ animation: none;
155
+ transform: none;
77
156
  }
78
157
 
79
158
  /* === Shared parts === */
@@ -127,6 +206,37 @@ var n = [e, t`
127
206
  gap: 8px;
128
207
  flex-shrink: 0;
129
208
  }
209
+
210
+ /* === Small screens ===
211
+ A 400px drawer on a phone leaves a dead strip of backdrop beside it and
212
+ squeezes the content. Below 480px both variants go full-bleed. */
213
+
214
+ @media (max-width: 480px) {
215
+ .drawer {
216
+ width: 100%;
217
+ max-width: 100%;
218
+ }
219
+
220
+ .dialog {
221
+ min-width: 0;
222
+ width: calc(100% - 32px);
223
+ }
224
+ }
225
+
226
+ /* The component also skips the closing state under this preference, so the
227
+ panel unmounts at once instead of sitting still for the exit duration. */
228
+ @media (prefers-reduced-motion: reduce) {
229
+ .backdrop,
230
+ .backdrop.is-closing,
231
+ .dialog,
232
+ .dialog.is-closing,
233
+ .drawer--right,
234
+ .drawer--right.is-closing,
235
+ .drawer--left,
236
+ .drawer--left.is-closing {
237
+ animation: none;
238
+ }
239
+ }
130
240
  `];
131
241
  //#endregion
132
242
  export { n as styles };
@@ -15,11 +15,26 @@ export interface PieChartSelectDetail {
15
15
  * @tag reke-pie-chart
16
16
  * @summary A circular (pie / donut) chart rendered with ECharts, isolated in Shadow DOM.
17
17
  *
18
+ * Canvas cannot resolve `var()`, so every token below is read off the host's
19
+ * computed style and re-read whenever `data-reke-theme` or the OS color scheme
20
+ * changes on the document.
21
+ *
18
22
  * @csspart chart - The chart canvas container.
23
+ * @csspart center - The donut center overlay (total, or the hovered slice).
19
24
  *
20
25
  * @fires reke-pie-chart-select - Fired when a slice is clicked. `detail: { name, value, percent }`.
21
26
  *
22
- * @cssprop [--reke-color-primary=#22C55E] - First slice / accent color.
27
+ * @cssprop [--reke-chart-1=#22C55E] - Slice colors 1–6 (`--reke-chart-1` … `--reke-chart-6`).
28
+ * @cssprop [--reke-pie-chart-height=240px] - Chart height when `size` is not set.
29
+ * @cssprop [--reke-color-primary=#22C55E] - Loading spinner color.
30
+ * @cssprop [--reke-color-bg=#0A0A0B] - Loading mask tint.
31
+ * @cssprop [--reke-color-surface=#1A1A1A] - Tooltip background.
32
+ * @cssprop [--reke-color-border=#252525] - Tooltip border.
33
+ * @cssprop [--reke-color-text=#E5E5E5] - Center value, labels and tooltip text.
34
+ * @cssprop [--reke-color-text-label=#8A8A8A] - Legend and center caption text.
35
+ * @cssprop [--reke-color-text-disabled=#3B3B3B] - Legend items toggled off.
36
+ * @cssprop [--reke-color-border-hover=#3A3A3A] - Pie label connector lines.
37
+ * @cssprop [--reke-font-mono=JetBrains Mono] - Chart font family.
23
38
  */
24
39
  export declare class RekePieChart extends RekeElement {
25
40
  static styles: import("lit").CSSResult[];
@@ -37,18 +52,54 @@ export declare class RekePieChart extends RekeElement {
37
52
  loading: boolean;
38
53
  /** Explicit color palette. Overrides the `--reke-chart-*` tokens when set. */
39
54
  palette?: string[];
55
+ /** Caption under the total in the donut center. */
56
+ centerLabel: string;
57
+ /** Hide the donut center overlay (total / hovered slice). */
58
+ hideCenter: boolean;
59
+ /** Entry/update animation length in ms. `0` disables animation. */
60
+ animationDuration: number;
40
61
  private chart?;
41
62
  private observer?;
63
+ private visibility?;
64
+ private themeObserver?;
65
+ private colorScheme?;
66
+ /** Slice under the pointer; the donut center shows it instead of the total. */
67
+ private hovered?;
68
+ /** Slices toggled off from the legend, excluded from the center total. */
69
+ private hiddenNames;
70
+ /**
71
+ * The entry animation is held back until the chart is actually on screen.
72
+ * ECharts animates the moment `setOption` runs, so a chart mounted below the
73
+ * fold plays its reveal into a canvas nobody is looking at and is already
74
+ * static by the time it is scrolled to.
75
+ */
76
+ private revealed;
42
77
  /** Read a CSS custom property off the host's computed style (canvas can't read var()). */
43
78
  private readToken;
79
+ /** Honours the OS "reduce motion" setting: 0ms means ECharts paints statically. */
80
+ private motionDuration;
44
81
  private resolvePalette;
45
82
  firstUpdated(): void;
83
+ /** Repaints with freshly read tokens when the theme switches. */
84
+ private watchTheme;
85
+ /** Static repaint: a theme switch should not replay the entry animation. */
86
+ private repaint;
87
+ private inViewport;
88
+ /**
89
+ * Reveals on first intersection and then stops observing: the animation is an
90
+ * entrance, not something to replay on every scroll past.
91
+ */
92
+ private watchVisibility;
93
+ private reveal;
46
94
  updated(changed: PropertyValues): void;
47
95
  private applyLoading;
48
96
  disconnectedCallback(): void;
49
97
  private get total();
98
+ private get showCenter();
99
+ private get visibleTotal();
50
100
  private get chartAriaLabel();
51
101
  private buildOption;
102
+ private renderCenter;
52
103
  render(): import("lit-html").TemplateResult<1>;
53
104
  }
54
105
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"reke-pie-chart.d.ts","sour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AuB;IAC1C,OAAO,CAAC,aAAa,CAAC,CAAmB;IACzC,OAAO,CAAC,WAAW,CAAC,CAAiB;IAErC,+EAA+E;IACtE,OAAO,CAAC,OAAO,CAAC,CAAe;IAExC,0EAA0E;IACjE,OAAO,CAAC,WAAW,CAAqB;IAEjD;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB,0FAA0F;IAC1F,OAAO,CAAC,SAAS;IAKjB,mFAAmF;IACnF,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAKb,YAAY,IAAI,IAAI;IAsD7B,iEAAiE;IACjE,OAAO,CAAC,UAAU;IAYlB,4EAA4E;IAC5E,OAAO,CAAC,OAAO,CAGb;IAEF,OAAO,CAAC,UAAU;IAMlB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,MAAM;IAQL,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAkB/C,OAAO,CAAC,YAAY;IAaX,oBAAoB,IAAI,IAAI;IAarC,OAAO,KAAK,KAAK,GAEhB;IAED,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,cAAc,GAGzB;IAED,OAAO,CAAC,WAAW;IAsFnB,OAAO,CAAC,YAAY;IAiBX,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
@@ -1,86 +1,206 @@
1
1
  import { RekeElement as e } from "../../shared/base-element.js";
2
2
  import { __decorate as t } from "../../_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js";
3
- import { install as n } from "../../node_modules/echarts/lib/chart/pie/install.js";
4
- import { init as r } from "../../node_modules/echarts/lib/core/echarts.js";
5
- import { use as i } from "../../node_modules/echarts/lib/extension.js";
6
- import { install as a } from "../../node_modules/echarts/lib/component/tooltip/install.js";
7
- import { install as o } from "../../node_modules/echarts/lib/component/legend/install.js";
8
- import { install as s } from "../../node_modules/echarts/lib/renderer/installCanvasRenderer.js";
9
- import { styles as c } from "./reke-pie-chart.styles.js";
10
- import { html as l } from "lit";
11
- import { customElement as u, property as d } from "lit/decorators.js";
3
+ import { encodeHTML as n } from "../../node_modules/zrender/lib/core/dom.js";
4
+ import { install as r } from "../../node_modules/echarts/lib/chart/pie/install.js";
5
+ import { init as i } from "../../node_modules/echarts/lib/core/echarts.js";
6
+ import { use as a } from "../../node_modules/echarts/lib/extension.js";
7
+ import { install as o } from "../../node_modules/echarts/lib/component/tooltip/install.js";
8
+ import { install as s } from "../../node_modules/echarts/lib/component/legend/install.js";
9
+ import { install as c } from "../../node_modules/echarts/lib/renderer/installCanvasRenderer.js";
10
+ import { styles as l } from "./reke-pie-chart.styles.js";
11
+ import { html as u, nothing as d } from "lit";
12
+ import { customElement as f, property as p, state as m } from "lit/decorators.js";
12
13
  //#region src/components/reke-pie-chart/reke-pie-chart.ts
13
- i([
14
- n,
15
- a,
14
+ a([
15
+ r,
16
16
  o,
17
- s
17
+ s,
18
+ c
18
19
  ]);
19
- var f = [
20
+ var h = [
20
21
  "#22C55E",
21
22
  "#3B82F6",
22
23
  "#F59E0B",
23
24
  "#EF4444",
24
25
  "#A855F7",
25
26
  "#14B8A6"
26
- ], p = class extends e {
27
+ ], g = new Intl.NumberFormat(void 0, {
28
+ notation: "compact",
29
+ maximumFractionDigits: 1
30
+ });
31
+ function _(e, t) {
32
+ let n = e.trim().replace("#", ""), r = n.length === 3 ? [...n].map((e) => e + e).join("") : n;
33
+ if (!/^[0-9a-f]{6}$/i.test(r)) return `rgba(0, 0, 0, ${t})`;
34
+ let [i, a, o] = [
35
+ 0,
36
+ 2,
37
+ 4
38
+ ].map((e) => Number.parseInt(r.slice(e, e + 2), 16));
39
+ return `rgba(${i}, ${a}, ${o}, ${t})`;
40
+ }
41
+ var v = class extends e {
27
42
  constructor(...e) {
28
- super(...e), this.data = [], this.variant = "donut", this.label = "Pie chart", this.showLegend = !1, this.loading = !1;
43
+ super(...e), this.data = [], this.variant = "donut", this.label = "Pie chart", this.showLegend = !1, this.loading = !1, this.centerLabel = "Total", this.hideCenter = !1, this.animationDuration = 700, this.hiddenNames = /* @__PURE__ */ new Set(), this.revealed = !1, this.repaint = () => {
44
+ this.chart?.setOption(this.buildOption(!1), !0), this.applyLoading();
45
+ };
29
46
  }
30
47
  static {
31
- this.styles = c;
48
+ this.styles = l;
32
49
  }
33
50
  readToken(e, t) {
34
51
  return getComputedStyle(this).getPropertyValue(e).trim() || t;
35
52
  }
53
+ motionDuration() {
54
+ return typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches ? 0 : Math.max(0, this.animationDuration);
55
+ }
36
56
  resolvePalette() {
37
- return this.palette?.length ? this.palette : f.map((e, t) => this.readToken(`--reke-chart-${t + 1}`, e));
57
+ return this.palette?.length ? this.palette : h.map((e, t) => this.readToken(`--reke-chart-${t + 1}`, e));
38
58
  }
39
59
  firstUpdated() {
40
60
  let e = this.renderRoot.querySelector(".chart");
41
- this.chart = r(e), this.chart.setOption(this.buildOption()), this.applyLoading(), this.chart.on("click", (e) => {
61
+ this.chart = i(e), this.inViewport() ? (this.revealed = !0, this.chart.setOption(this.buildOption(!0))) : (this.chart.setOption(this.buildOption(!1)), this.watchVisibility()), this.applyLoading(), this.chart.on("mouseover", (e) => {
62
+ e.componentType === "series" && (this.hovered = {
63
+ name: String(e.name),
64
+ value: Number(e.value),
65
+ percent: Number(e.percent ?? 0)
66
+ });
67
+ }), this.chart.on("mouseout", () => {
68
+ this.hovered = void 0;
69
+ });
70
+ let t = (e) => {
71
+ let { selected: t } = e;
72
+ this.hiddenNames = new Set(Object.keys(t).filter((e) => !t[e]));
73
+ };
74
+ for (let e of [
75
+ "legendselectchanged",
76
+ "legendselected",
77
+ "legendunselected",
78
+ "legendselectall",
79
+ "legendinverseselect"
80
+ ]) this.chart.on(e, t);
81
+ this.chart.on("click", (e) => {
42
82
  this.emit("reke-pie-chart-select", {
43
83
  name: String(e.name),
44
84
  value: Number(e.value),
45
85
  percent: Number(e.percent ?? 0)
46
86
  });
47
- }), this.observer = new ResizeObserver(() => this.chart?.resize()), this.observer.observe(e);
87
+ }), this.observer = new ResizeObserver(() => this.chart?.resize()), this.observer.observe(e), this.watchTheme();
88
+ }
89
+ watchTheme() {
90
+ this.themeObserver = new MutationObserver(() => this.repaint()), this.themeObserver.observe(document.documentElement, {
91
+ attributes: !0,
92
+ attributeFilter: ["data-reke-theme"]
93
+ }), typeof matchMedia == "function" && (this.colorScheme = matchMedia("(prefers-color-scheme: light)"), this.colorScheme.addEventListener("change", this.repaint));
94
+ }
95
+ inViewport() {
96
+ let e = this.getBoundingClientRect(), t = window.innerHeight || document.documentElement.clientHeight;
97
+ return e.top < t && e.bottom > 0;
98
+ }
99
+ watchVisibility() {
100
+ if (typeof IntersectionObserver > "u") {
101
+ this.reveal();
102
+ return;
103
+ }
104
+ this.visibility = new IntersectionObserver((e) => {
105
+ e.some((e) => e.isIntersecting) && this.reveal();
106
+ }, { threshold: .2 }), this.visibility.observe(this);
107
+ }
108
+ reveal() {
109
+ this.revealed || (this.revealed = !0, this.visibility?.disconnect(), this.visibility = void 0, this.chart?.setOption(this.buildOption(!0), !0));
48
110
  }
49
111
  updated(e) {
50
- this.chart && ((e.has("data") || e.has("variant") || e.has("showLegend") || e.has("palette")) && this.chart.setOption(this.buildOption(), !0), e.has("loading") && this.applyLoading());
112
+ this.chart && ((e.has("data") || e.has("variant") || e.has("showLegend") || e.has("palette") || e.has("animationDuration")) && (e.has("data") && (this.hiddenNames = /* @__PURE__ */ new Set()), this.chart.setOption(this.buildOption(this.revealed), !0)), e.has("loading") && this.applyLoading());
51
113
  }
52
114
  applyLoading() {
53
115
  this.loading ? this.chart?.showLoading("default", {
54
116
  text: "",
55
117
  color: this.readToken("--reke-color-primary", "#22C55E"),
56
- maskColor: "rgba(10, 10, 11, 0.4)"
118
+ maskColor: _(this.readToken("--reke-color-bg", "#0A0A0B"), .6)
57
119
  }) : this.chart?.hideLoading();
58
120
  }
59
121
  disconnectedCallback() {
60
- super.disconnectedCallback(), this.observer?.disconnect(), this.chart?.dispose(), this.chart = void 0;
122
+ this.visibility?.disconnect(), this.visibility = void 0, this.themeObserver?.disconnect(), this.themeObserver = void 0, this.colorScheme?.removeEventListener("change", this.repaint), this.colorScheme = void 0, super.disconnectedCallback(), this.observer?.disconnect(), this.chart?.dispose(), this.chart = void 0;
61
123
  }
62
124
  get total() {
63
125
  return this.data.reduce((e, t) => e + t.value, 0) || 1;
64
126
  }
127
+ get showCenter() {
128
+ return this.variant === "donut" && !this.hideCenter;
129
+ }
130
+ get visibleTotal() {
131
+ return this.data.reduce((e, t) => this.hiddenNames.has(t.name) ? e : e + t.value, 0);
132
+ }
65
133
  get chartAriaLabel() {
66
134
  let e = this.data.map((e) => `${e.name} ${Math.round(e.value / this.total * 100)}%`);
67
135
  return `${this.label}. ${e.join(", ")}`;
68
136
  }
69
- buildOption() {
137
+ buildOption(e) {
138
+ let t = e ? this.motionDuration() : 0, r = this.variant === "donut", i = this.readToken("--reke-font-mono", "'JetBrains Mono', ui-monospace, monospace"), a = this.readToken("--reke-color-text", "#E5E5E5"), o = this.readToken("--reke-color-surface", "#1A1A1A");
70
139
  return {
71
140
  color: this.resolvePalette(),
141
+ animation: t > 0,
142
+ animationDuration: t,
143
+ animationEasing: "cubicOut",
72
144
  aria: { enabled: !0 },
145
+ textStyle: { fontFamily: i },
73
146
  tooltip: {
147
+ show: !this.showCenter,
74
148
  trigger: "item",
75
- formatter: "{b}: {c} ({d}%)"
149
+ backgroundColor: o,
150
+ borderColor: this.readToken("--reke-color-border", "#252525"),
151
+ borderWidth: .5,
152
+ padding: [8, 12],
153
+ textStyle: {
154
+ color: a,
155
+ fontFamily: i,
156
+ fontSize: 12
157
+ },
158
+ extraCssText: `background: linear-gradient(180deg, #FFFFFF10 0%, #FFFFFF05 100%), ${o}; backdrop-filter: blur(40px); box-shadow: 0 12px 60px -2px #00000040; border-radius: 4px;`,
159
+ formatter: (e) => {
160
+ let t = e, r = n(t.name);
161
+ return `<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${t.color};margin-right:8px;"></span>${r}<span style="margin-left:12px;font-weight:600;">${t.percent}%</span>`;
162
+ }
76
163
  },
77
- legend: this.showLegend ? { bottom: 0 } : void 0,
164
+ legend: this.showLegend ? {
165
+ bottom: 0,
166
+ icon: "circle",
167
+ itemWidth: 8,
168
+ itemHeight: 8,
169
+ itemGap: 16,
170
+ textStyle: {
171
+ color: this.readToken("--reke-color-text-label", "#8A8A8A"),
172
+ fontFamily: i,
173
+ fontSize: 12
174
+ },
175
+ inactiveColor: this.readToken("--reke-color-text-disabled", "#3B3B3B")
176
+ } : void 0,
78
177
  series: [{
79
178
  type: "pie",
80
- radius: this.variant === "donut" ? ["55%", "75%"] : "75%",
179
+ radius: r ? ["58%", "78%"] : "75%",
81
180
  center: ["50%", this.showLegend ? "45%" : "50%"],
82
181
  avoidLabelOverlap: !0,
83
- label: { show: this.variant === "pie" },
182
+ padAngle: r ? 2 : 1,
183
+ itemStyle: { borderRadius: r ? 6 : 4 },
184
+ label: {
185
+ show: !r,
186
+ color: a,
187
+ fontFamily: i,
188
+ fontSize: 12
189
+ },
190
+ labelLine: { lineStyle: { color: this.readToken("--reke-color-border-hover", "#3A3A3A") } },
191
+ emphasis: {
192
+ scale: !0,
193
+ scaleSize: 6,
194
+ focus: "self",
195
+ itemStyle: {
196
+ shadowBlur: 20,
197
+ shadowColor: "rgba(0, 0, 0, 0.35)"
198
+ }
199
+ },
200
+ blur: { itemStyle: { opacity: .35 } },
201
+ animationType: "expansion",
202
+ animationTypeUpdate: "transition",
203
+ animationDelay: (e) => Math.min(e, 12) * 45,
84
204
  data: this.data.map((e) => ({
85
205
  name: e.name,
86
206
  value: e.value,
@@ -89,29 +209,48 @@ var f = [
89
209
  }]
90
210
  };
91
211
  }
92
- render() {
93
- let e = this.size ? `${this.size}px` : "100%";
94
- return l`
212
+ renderCenter() {
213
+ if (!this.showCenter) return d;
214
+ let e = this.hovered;
215
+ return u`
95
216
  <div
96
- part="chart"
97
- class="chart"
98
- role="img"
99
- aria-label=${this.chartAriaLabel}
100
- style="width:${e};height:${this.size ? `${this.size}px` : "240px"};"
101
- ></div>
217
+ part="center"
218
+ class="center ${this.showLegend ? "center--legend" : ""}"
219
+ aria-hidden="true"
220
+ >
221
+ <span class="center-value"
222
+ >${e ? `${e.percent}%` : g.format(this.visibleTotal)}</span
223
+ >
224
+ <span class="center-caption">${e ? e.name : this.centerLabel}</span>
225
+ </div>
226
+ `;
227
+ }
228
+ render() {
229
+ return u`
230
+ <div class="frame" style=${this.size ? `width:${this.size}px;height:${this.size}px;` : ""}>
231
+ <div part="chart" class="chart" role="img" aria-label=${this.chartAriaLabel}></div>
232
+ ${this.renderCenter()}
233
+ </div>
102
234
  <ul class="sr-only">
103
- ${this.data.map((e) => l`<li>${e.name}: ${Math.round(e.value / this.total * 100)}%</li>`)}
235
+ ${this.data.map((e) => u`<li>${e.name}: ${Math.round(e.value / this.total * 100)}%</li>`)}
104
236
  </ul>
105
237
  `;
106
238
  }
107
239
  };
108
- t([d({ attribute: !1 })], p.prototype, "data", void 0), t([d({ reflect: !0 })], p.prototype, "variant", void 0), t([d()], p.prototype, "label", void 0), t([d({ type: Number })], p.prototype, "size", void 0), t([d({
240
+ t([p({ attribute: !1 })], v.prototype, "data", void 0), t([p({ reflect: !0 })], v.prototype, "variant", void 0), t([p()], v.prototype, "label", void 0), t([p({ type: Number })], v.prototype, "size", void 0), t([p({
109
241
  type: Boolean,
110
242
  attribute: "show-legend",
111
243
  reflect: !0
112
- })], p.prototype, "showLegend", void 0), t([d({
244
+ })], v.prototype, "showLegend", void 0), t([p({
245
+ type: Boolean,
246
+ reflect: !0
247
+ })], v.prototype, "loading", void 0), t([p({ attribute: !1 })], v.prototype, "palette", void 0), t([p({ attribute: "center-label" })], v.prototype, "centerLabel", void 0), t([p({
113
248
  type: Boolean,
249
+ attribute: "hide-center",
114
250
  reflect: !0
115
- })], p.prototype, "loading", void 0), t([d({ attribute: !1 })], p.prototype, "palette", void 0), p = t([u("reke-pie-chart")], p);
251
+ })], v.prototype, "hideCenter", void 0), t([p({
252
+ type: Number,
253
+ attribute: "animation-duration"
254
+ })], v.prototype, "animationDuration", void 0), t([m()], v.prototype, "hovered", void 0), t([m()], v.prototype, "hiddenNames", void 0), v = t([f("reke-pie-chart")], v);
116
255
  //#endregion
117
- export { p as RekePieChart };
256
+ export { v as RekePieChart };
@@ -1 +1 @@
1
- {"version":3,"file":"reke-pie-chart.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-pie-chart/reke-pie-chart.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BAyBlB,CAAC"}
1
+ {"version":3,"file":"reke-pie-chart.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-pie-chart/reke-pie-chart.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BAwElB,CAAC"}
@@ -7,8 +7,55 @@ var n = [e, t`
7
7
  width: 100%;
8
8
  }
9
9
 
10
+ .frame {
11
+ position: relative;
12
+ width: 100%;
13
+ height: var(--reke-pie-chart-height, 240px);
14
+ }
15
+
10
16
  .chart {
11
17
  box-sizing: border-box;
18
+ width: 100%;
19
+ height: 100%;
20
+ }
21
+
22
+ /* Sits over the donut hole; positioned to match the series center in buildOption(). */
23
+ .center {
24
+ position: absolute;
25
+ top: 50%;
26
+ left: 50%;
27
+ transform: translate(-50%, -50%);
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ gap: 2px;
32
+ max-width: 44%;
33
+ text-align: center;
34
+ pointer-events: none;
35
+ font-family: var(--reke-font-mono, 'JetBrains Mono', ui-monospace, monospace);
36
+ }
37
+
38
+ .center--legend {
39
+ top: 45%;
40
+ }
41
+
42
+ .center-value {
43
+ color: var(--reke-color-text, #E5E5E5);
44
+ font-size: var(--reke-font-size-lg, 18px);
45
+ font-weight: var(--reke-font-weight-semibold, 600);
46
+ line-height: 1.1;
47
+ font-variant-numeric: tabular-nums;
48
+ }
49
+
50
+ .center-caption {
51
+ max-width: 100%;
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ white-space: nowrap;
55
+ color: var(--reke-color-text-label, #8A8A8A);
56
+ font-size: var(--reke-font-size-2xs, 11px);
57
+ letter-spacing: 0.04em;
58
+ text-transform: uppercase;
12
59
  }
13
60
 
14
61
  /* Visually hidden but readable by screen readers — canvas is opaque to AT. */
package/dist/react.d.ts CHANGED
@@ -11,6 +11,7 @@ import { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.j
11
11
  import { RekeInput } from './components/reke-input/reke-input.js';
12
12
  import { RekeMenu } from './components/reke-menu/reke-menu.js';
13
13
  import { RekeMenuItem } from './components/reke-menu-item/reke-menu-item.js';
14
+ import { type PieChartSelectDetail, RekePieChart } from './components/reke-pie-chart/reke-pie-chart.js';
14
15
  import { RekeProgress } from './components/reke-progress/reke-progress.js';
15
16
  import { RekeSelect } from './components/reke-select/reke-select.js';
16
17
  import { RekeTextarea } from './components/reke-textarea/reke-textarea.js';
@@ -48,6 +49,7 @@ export declare const Toggle: import("@lit/react").ReactWebComponent<RekeToggle,
48
49
  }>;
49
50
  export declare const Badge: import("@lit/react").ReactWebComponent<RekeBadge, {}>;
50
51
  export declare const Progress: import("@lit/react").ReactWebComponent<RekeProgress, {}>;
52
+ export type { PieChartDatum, PieChartSelectDetail, PieChartVariant, } from './components/reke-pie-chart/reke-pie-chart.js';
51
53
  export type { RekeProgressSegment } from './components/reke-progress/reke-progress.js';
52
54
  export declare const Card: import("@lit/react").ReactWebComponent<RekeCard, {}>;
53
55
  export declare const Tooltip: import("@lit/react").ReactWebComponent<RekeTooltip, {}>;
@@ -97,4 +99,7 @@ export declare const Chip: import("@lit/react").ReactWebComponent<RekeChip, {
97
99
  onRekeClick: EventName<CustomEvent>;
98
100
  onRekeDismiss: EventName<CustomEvent>;
99
101
  }>;
102
+ export declare const PieChart: import("@lit/react").ReactWebComponent<RekePieChart, {
103
+ onRekePieChartSelect: EventName<CustomEvent<PieChartSelectDetail>>;
104
+ }>;
100
105
  //# sourceMappingURL=react.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAExE,eAAO,MAAM,MAAM;iBAKc,SAAS,CAAC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