@brightlocal/ui-components 2.22.0 → 2.24.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 (115) hide show
  1. package/AI_USAGE.md +1 -1
  2. package/README.md +4 -2
  3. package/component-meta.json +134 -25
  4. package/deprecations.json +22 -0
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.d.ts.map +1 -1
  7. package/dist/alert.js +32 -35
  8. package/dist/blocks/sidebar.cjs +1 -1
  9. package/dist/blocks/sidebar.d.ts.map +1 -1
  10. package/dist/blocks/sidebar.js +151 -156
  11. package/dist/brand-illustration-motif.cjs +1 -0
  12. package/dist/brand-illustration-motif.d.ts +55 -0
  13. package/dist/brand-illustration-motif.d.ts.map +1 -0
  14. package/dist/brand-illustration-motif.js +67 -0
  15. package/dist/chart.cjs +7 -7
  16. package/dist/chart.d.ts +287 -2
  17. package/dist/chart.d.ts.map +1 -1
  18. package/dist/chart.js +408 -152
  19. package/dist/combobox.cjs +3 -3
  20. package/dist/combobox.d.ts +14 -1
  21. package/dist/combobox.d.ts.map +1 -1
  22. package/dist/combobox.js +387 -376
  23. package/dist/context-menu.cjs +1 -1
  24. package/dist/context-menu.d.ts.map +1 -1
  25. package/dist/context-menu.js +111 -109
  26. package/dist/data-table.cjs +1 -0
  27. package/dist/{blocks/data-table.d.ts → data-table.d.ts} +159 -4
  28. package/dist/data-table.d.ts.map +1 -0
  29. package/dist/data-table.js +721 -0
  30. package/dist/dropdown-menu.cjs +1 -1
  31. package/dist/dropdown-menu.d.ts.map +1 -1
  32. package/dist/dropdown-menu.js +109 -121
  33. package/dist/field.cjs +1 -1
  34. package/dist/field.d.ts +16 -1
  35. package/dist/field.d.ts.map +1 -1
  36. package/dist/field.js +23 -7
  37. package/dist/global-layout.cjs +1 -1
  38. package/dist/global-layout.d.ts +32 -2
  39. package/dist/global-layout.d.ts.map +1 -1
  40. package/dist/global-layout.js +179 -109
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.ts +3 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +526 -509
  45. package/dist/label.cjs +1 -1
  46. package/dist/label.d.ts +9 -0
  47. package/dist/label.d.ts.map +1 -1
  48. package/dist/label.js +26 -22
  49. package/dist/lib/spring-settle.cjs +1 -0
  50. package/dist/lib/spring-settle.d.ts +20 -0
  51. package/dist/lib/spring-settle.d.ts.map +1 -0
  52. package/dist/lib/spring-settle.js +4 -0
  53. package/dist/link.cjs +1 -1
  54. package/dist/link.d.ts +3 -2
  55. package/dist/link.d.ts.map +1 -1
  56. package/dist/link.js +22 -11
  57. package/dist/loading.cjs +1 -0
  58. package/dist/loading.d.ts +47 -0
  59. package/dist/loading.d.ts.map +1 -0
  60. package/dist/loading.js +163 -0
  61. package/dist/map.cjs +1 -1
  62. package/dist/map.d.ts.map +1 -1
  63. package/dist/map.js +1 -1
  64. package/dist/menubar.cjs +1 -1
  65. package/dist/menubar.d.ts.map +1 -1
  66. package/dist/menubar.js +97 -99
  67. package/dist/popover.cjs +1 -1
  68. package/dist/popover.d.ts.map +1 -1
  69. package/dist/popover.js +27 -26
  70. package/dist/select.cjs +2 -2
  71. package/dist/select.d.ts +16 -1
  72. package/dist/select.d.ts.map +1 -1
  73. package/dist/select.js +112 -85
  74. package/dist/table.cjs +1 -1
  75. package/dist/table.d.ts +29 -0
  76. package/dist/table.d.ts.map +1 -1
  77. package/dist/table.js +2 -2
  78. package/dist/text-reveal-motion.cjs +1 -1
  79. package/dist/text-reveal-motion.d.ts.map +1 -1
  80. package/dist/text-reveal-motion.js +236 -219
  81. package/dist/tooltip.cjs +1 -1
  82. package/dist/tooltip.d.ts +21 -2
  83. package/dist/tooltip.d.ts.map +1 -1
  84. package/dist/tooltip.js +35 -32
  85. package/dist/typography.cjs +1 -1
  86. package/dist/typography.d.ts +20 -4
  87. package/dist/typography.d.ts.map +1 -1
  88. package/dist/typography.js +263 -228
  89. package/package.json +7 -7
  90. package/src/blocks/sidebar.tsx +11 -23
  91. package/src/components/alert.tsx +10 -17
  92. package/src/components/brand-illustration-motif.tsx +143 -0
  93. package/src/components/chart.tsx +632 -1
  94. package/src/components/combobox.tsx +47 -0
  95. package/src/components/context-menu.tsx +8 -3
  96. package/src/{blocks → components}/data-table.tsx +272 -18
  97. package/src/components/dropdown-menu.tsx +6 -15
  98. package/src/components/field.tsx +31 -0
  99. package/src/components/global-layout.tsx +144 -5
  100. package/src/components/label.tsx +13 -1
  101. package/src/components/link.tsx +13 -1
  102. package/src/components/loading.tsx +355 -0
  103. package/src/components/map.tsx +3 -1
  104. package/src/components/menubar.tsx +6 -5
  105. package/src/components/popover.tsx +6 -2
  106. package/src/components/select.tsx +87 -10
  107. package/src/components/table.tsx +31 -2
  108. package/src/components/text-reveal-motion.tsx +90 -64
  109. package/src/components/tooltip.tsx +28 -3
  110. package/src/components/typography.tsx +74 -18
  111. package/src/index.ts +3 -1
  112. package/src/lib/spring-settle.ts +19 -0
  113. package/dist/blocks/data-table.cjs +0 -1
  114. package/dist/blocks/data-table.d.ts.map +0 -1
  115. package/dist/blocks/data-table.js +0 -654
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),g=require("react"),p=require("class-variance-authority"),s=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function j(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const y=j(g),M={sparkle:s.MotifSparkle,starburst:s.MotifStarburst,circle:s.MotifCircle,sunrise:s.MotifSunrise},x=p.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"size-6 text-primary",md:"size-12 text-primary",lg:"size-80 text-muted"}},defaultVariants:{size:"lg"}}),o=y.forwardRef(({className:e,motif:i,size:t="lg",dataHook:a,trackingEl:c,trackingLabel:u,children:n,...d},f)=>{const m=M[i],b=i==="sunrise"&&t==="lg";return r.jsxs("div",{ref:f,className:l.cn(x({size:t}),e),"data-hook":a,"data-motif":i,"data-size":t,"data-slot":"brand-illustration-motif","data-tracking-el":c??"brand-illustration-motif","data-tracking-label":u,...d,children:[r.jsx("div",{"aria-hidden":"true",className:l.cn("absolute inset-0",b&&"animate-motif-spin"),children:r.jsx(m,{className:"size-full",size:"100%"})}),t==="lg"&&n?r.jsx("div",{className:"relative flex size-36 items-center justify-center",children:n}):null]})});o.displayName="BrandIllustrationMotif";exports.BrandIllustrationMotif=o;
@@ -0,0 +1,55 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ /**
4
+ * Brand motif shape rendered as the backdrop (lg) or as a standalone mark (sm/md).
5
+ */
6
+ type BrandIllustrationMotifShape = "sparkle" | "starburst" | "circle" | "sunrise";
7
+ declare const brandIllustrationMotifStyles: (props?: ({
8
+ size?: "sm" | "lg" | "md" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ interface BrandIllustrationMotifProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof brandIllustrationMotifStyles> {
11
+ /**
12
+ * Required data-hook attribute for testing and component identification
13
+ */
14
+ dataHook: string;
15
+ /**
16
+ * Which brand motif shape to render.
17
+ */
18
+ motif: BrandIllustrationMotifShape;
19
+ /**
20
+ * Size of the composition.
21
+ * - `"lg"`: 320px muted motif backdrop with a centred illustration slot
22
+ * - `"md"`: 48px standalone green motif mark
23
+ * - `"sm"`: 24px standalone green motif mark
24
+ * @default "lg"
25
+ */
26
+ size?: "sm" | "md" | "lg";
27
+ /**
28
+ * The illustration to render over the motif backdrop — typically a brand
29
+ * illustration such as RobotAiA at 144px. Only rendered for the `lg`
30
+ * size; `sm`/`md` show the motif mark alone.
31
+ */
32
+ children?: React.ReactNode;
33
+ /**
34
+ * Optional tracking element identifier for analytics
35
+ */
36
+ trackingEl?: string;
37
+ /**
38
+ * Optional tracking label for analytics
39
+ */
40
+ trackingLabel?: string;
41
+ }
42
+ /**
43
+ * BrandIllustrationMotif — a brand illustration composed over a decorative
44
+ * motif shape (Figma: BrandIllustrationsMotifs).
45
+ *
46
+ * At `lg` the motif renders as a muted 320px backdrop behind the illustration
47
+ * passed as children; at `sm`/`md` it renders as a small green motif mark.
48
+ * The `sunrise` + `lg` combination slowly rotates its backdrop (60s linear,
49
+ * per the design motion spec); the global reduced-motion handling disables
50
+ * the rotation automatically.
51
+ */
52
+ declare const BrandIllustrationMotif: React.ForwardRefExoticComponent<BrandIllustrationMotifProps & React.RefAttributes<HTMLDivElement>>;
53
+ export { BrandIllustrationMotif };
54
+ export type { BrandIllustrationMotifProps, BrandIllustrationMotifShape };
55
+ //# sourceMappingURL=brand-illustration-motif.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-illustration-motif.d.ts","sourceRoot":"","sources":["../../src/components/brand-illustration-motif.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASlE;;GAEG;AACH,KAAK,2BAA2B,GAC5B,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,CAAC;AAYd,QAAA,MAAM,4BAA4B;;8EAcjC,CAAC;AAEF,UAAU,2BACR,SACE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,YAAY,CAAC,OAAO,4BAA4B,CAAC;IACnD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,2BAA2B,CAAC;IACnC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,sBAAsB,oGA8C3B,CAAC;AAIF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,YAAY,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { jsxs as u, jsx as a } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import { cva as g } from "class-variance-authority";
4
+ import { MotifSunrise as x, MotifCircle as M, MotifStarburst as b, MotifSparkle as v } from "@brightlocal/icons";
5
+ import { cn as r } from "@brightlocal/ui-components/lib/utils";
6
+ const y = {
7
+ sparkle: v,
8
+ starburst: b,
9
+ circle: M,
10
+ sunrise: x
11
+ }, z = g(
12
+ "relative inline-flex items-center justify-center",
13
+ {
14
+ variants: {
15
+ size: {
16
+ sm: "size-6 text-primary",
17
+ md: "size-12 text-primary",
18
+ lg: "size-80 text-muted"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ size: "lg"
23
+ }
24
+ }
25
+ ), k = p.forwardRef(
26
+ ({
27
+ className: s,
28
+ motif: i,
29
+ size: t = "lg",
30
+ dataHook: l,
31
+ trackingEl: n,
32
+ trackingLabel: o,
33
+ children: e,
34
+ ...m
35
+ }, c) => {
36
+ const f = y[i], d = i === "sunrise" && t === "lg";
37
+ return /* @__PURE__ */ u(
38
+ "div",
39
+ {
40
+ ref: c,
41
+ className: r(z({ size: t }), s),
42
+ "data-hook": l,
43
+ "data-motif": i,
44
+ "data-size": t,
45
+ "data-slot": "brand-illustration-motif",
46
+ "data-tracking-el": n ?? "brand-illustration-motif",
47
+ "data-tracking-label": o,
48
+ ...m,
49
+ children: [
50
+ /* @__PURE__ */ a(
51
+ "div",
52
+ {
53
+ "aria-hidden": "true",
54
+ className: r("absolute inset-0", d && "animate-motif-spin"),
55
+ children: /* @__PURE__ */ a(f, { className: "size-full", size: "100%" })
56
+ }
57
+ ),
58
+ t === "lg" && e ? /* @__PURE__ */ a("div", { className: "relative flex size-36 items-center justify-center", children: e }) : null
59
+ ]
60
+ }
61
+ );
62
+ }
63
+ );
64
+ k.displayName = "BrandIllustrationMotif";
65
+ export {
66
+ k as BrandIllustrationMotif
67
+ };
package/dist/chart.cjs CHANGED
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),B=require("react"),e=require("recharts"),h=require("@brightlocal/ui-components/lib/utils");function k(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,n.get?n:{enumerable:!0,get:()=>r[s]})}}return o.default=r,Object.freeze(o)}const m=k(B),O=k(e),L=m.createContext(null);function R(){const r=m.useContext(L);if(!r)throw new Error("useChart must be used within a <ChartContainer />");return r}const N=m.forwardRef(({id:r,className:o,children:s,config:n,dataHook:l,width:i,height:c,minWidth:u,minHeight:d,maxHeight:j,trackingEl:y,trackingLabel:P,...p},b)=>{const C=m.useId(),g=`chart-${r||C.replace(/:/g,"")}`;return t.jsx(L.Provider,{value:{config:n},children:t.jsxs("div",{ref:b,className:h.cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none",o),"data-chart":g,"data-hook":l,"data-slot":"chart-container","data-tracking-el":y,"data-tracking-label":P,...p,children:[t.jsx(w,{config:n,id:g}),t.jsx(O.ResponsiveContainer,{height:c??"100%",initialDimension:{width:1,height:1},maxHeight:j,minHeight:d,minWidth:u??0,width:i??"100%",children:s})]})})});N.displayName="ChartContainer";function w({id:r,config:o}){const s=Object.entries(o).filter(([,n])=>n.theme||n.color);return s.length?t.jsx("style",{dangerouslySetInnerHTML:{__html:s.map(([n,l])=>{const i=typeof l.color=="string"?l.color.replace(/^hsl\((.*)\)$/,"$1"):null;return i?`
2
- [data-chart=${r}] {
3
- --color-${n}: ${i};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),V=require("react"),s=require("recharts"),g=require("@brightlocal/ui-components/lib/utils");function O(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const e=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(r,l,e.get?e:{enumerable:!0,get:()=>t[l]})}}return r.default=t,Object.freeze(r)}const y=O(V),P=O(s),N=y.createContext(null);function _(){const t=y.useContext(N);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const R=y.forwardRef(({id:t,className:r,children:l,config:e,dataHook:n,width:o,height:i,minWidth:d,minHeight:c,maxHeight:h,trackingEl:f,trackingLabel:m,...b},C)=>{const x=y.useId(),p=`chart-${t||x.replace(/:/g,"")}`;return a.jsx(N.Provider,{value:{config:e},children:a.jsxs("div",{ref:C,className:g.cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-polar-radius-axis-tick-value]:fill-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none",r),"data-chart":p,"data-hook":n,"data-slot":"chart-container","data-tracking-el":f,"data-tracking-label":m,...b,children:[a.jsx($,{config:e,id:p}),a.jsx(P.ResponsiveContainer,{height:i??"100%",initialDimension:{width:1,height:1},maxHeight:h,minHeight:c,minWidth:d??0,width:o??"100%",children:l})]})})});R.displayName="ChartContainer";function $({id:t,config:r}){const l=Object.entries(r).filter(([,e])=>e.theme||e.color);return l.length?a.jsx("style",{dangerouslySetInnerHTML:{__html:l.map(([e,n])=>{const o=typeof n.color=="string"?n.color.replace(/^hsl\((.*)\)$/,"$1"):null;return o?`
2
+ [data-chart=${t}] {
3
+ --color-${e}: ${o};
4
4
  }
5
- `:l.theme?Object.entries(l.theme).map(([c,u])=>`
6
- .${c} [data-chart=${r}] {
7
- --color-${n}: ${u.replace(/^hsl\((.*)\)$/,"$1")};
5
+ `:n.theme?Object.entries(n.theme).map(([i,d])=>`
6
+ .${i} [data-chart=${t}] {
7
+ --color-${e}: ${d.replace(/^hsl\((.*)\)$/,"$1")};
8
8
  }
9
9
  `).join(""):""}).join(`
10
- `)}}):null}function $({...r}){return t.jsx(O.Tooltip,{...r})}$.displayName="ChartTooltip";function A({active:r,payload:o,className:s,indicator:n="dot",hideLabel:l=!1,hideIndicator:i=!1,label:c,labelFormatter:u,labelClassName:d,formatter:j,color:y,nameKey:P,labelKey:p}){const{config:b}=R(),C=m.useMemo(()=>{if(l||!o?.length)return null;const[a]=o;if(!a)return null;const v=`${p||a.dataKey||a.name||"value"}`,x=b[v],f=!p&&typeof c=="string"?b[c]?.label||c:x?.label;return u?t.jsx("div",{className:h.cn("font-medium",d),children:u(f,o)}):f?t.jsx("div",{className:h.cn("font-medium",d),children:f}):null},[c,u,o,l,d,b,p]);if(!r||!o?.length)return null;const g=o.length===1&&n!=="dot";return t.jsxs("div",{className:h.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",s),"data-slot":"chart-tooltip-content",children:[g?null:C,t.jsx("div",{className:"grid gap-1.5",children:o.map((a,v)=>{const x=`${P||a.name||a.dataKey||"value"}`,f=b[x],_=y||a.color||a.payload.fill||`var(--color-${x})`;return t.jsx("div",{className:h.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2",n==="dot"&&"items-center"),children:j&&a?.value!==void 0&&a.name?j(a.value,a.name,a,v,o):t.jsxs(t.Fragment,{children:[f?.icon&&!i?t.jsx(f.icon,{size:10}):!i&&t.jsx("div",{className:h.cn("shrink-0 rounded-[2px]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":g&&n==="dashed"}),style:{backgroundColor:n==="dashed"?"transparent":_,borderColor:_}}),t.jsxs("div",{className:h.cn("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[t.jsxs("div",{className:"grid gap-1.5",children:[g?C:null,t.jsx("span",{className:"text-muted-foreground",children:f?.label||a.name})]}),a.value&&t.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:typeof a.value=="number"?a.value.toLocaleString():a.value})]})]})},a.dataKey)})})]})}A.displayName="ChartTooltipContent";function T({...r}){return t.jsx(O.Legend,{...r})}T.displayName="ChartLegend";function S({className:r,hideIcon:o=!1,payload:s,verticalAlign:n="bottom",nameKey:l}){const{config:i}=R();return s?.length?t.jsx("div",{className:h.cn("flex items-center justify-center gap-4",n==="top"?"pb-4":"pt-4",r),"data-slot":"chart-legend-content",children:s.map(c=>{const u=`${l||c.dataKey||"value"}`,d=i[u];return t.jsxs("div",{className:h.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5"),children:[d?.icon&&!o?t.jsx(d.icon,{size:12}):t.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d?.label||c.value]},c.value)})}):null}S.displayName="ChartLegendContent";Object.defineProperty(exports,"Area",{enumerable:!0,get:()=>e.Area});Object.defineProperty(exports,"AreaChart",{enumerable:!0,get:()=>e.AreaChart});Object.defineProperty(exports,"Bar",{enumerable:!0,get:()=>e.Bar});Object.defineProperty(exports,"BarChart",{enumerable:!0,get:()=>e.BarChart});Object.defineProperty(exports,"CartesianGrid",{enumerable:!0,get:()=>e.CartesianGrid});Object.defineProperty(exports,"Cell",{enumerable:!0,get:()=>e.Cell});Object.defineProperty(exports,"ChartLabel",{enumerable:!0,get:()=>e.Label});Object.defineProperty(exports,"ChartsLegend",{enumerable:!0,get:()=>e.Legend});Object.defineProperty(exports,"ChartsTooltip",{enumerable:!0,get:()=>e.Tooltip});Object.defineProperty(exports,"Customized",{enumerable:!0,get:()=>e.Customized});Object.defineProperty(exports,"LabelList",{enumerable:!0,get:()=>e.LabelList});Object.defineProperty(exports,"Line",{enumerable:!0,get:()=>e.Line});Object.defineProperty(exports,"LineChart",{enumerable:!0,get:()=>e.LineChart});Object.defineProperty(exports,"Pie",{enumerable:!0,get:()=>e.Pie});Object.defineProperty(exports,"PieChart",{enumerable:!0,get:()=>e.PieChart});Object.defineProperty(exports,"PolarAngleAxis",{enumerable:!0,get:()=>e.PolarAngleAxis});Object.defineProperty(exports,"PolarGrid",{enumerable:!0,get:()=>e.PolarGrid});Object.defineProperty(exports,"PolarRadiusAxis",{enumerable:!0,get:()=>e.PolarRadiusAxis});Object.defineProperty(exports,"Radar",{enumerable:!0,get:()=>e.Radar});Object.defineProperty(exports,"RadarChart",{enumerable:!0,get:()=>e.RadarChart});Object.defineProperty(exports,"RadialBar",{enumerable:!0,get:()=>e.RadialBar});Object.defineProperty(exports,"RadialBarChart",{enumerable:!0,get:()=>e.RadialBarChart});Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:()=>e.Rectangle});Object.defineProperty(exports,"ReferenceLine",{enumerable:!0,get:()=>e.ReferenceLine});Object.defineProperty(exports,"ResponsiveContainer",{enumerable:!0,get:()=>e.ResponsiveContainer});Object.defineProperty(exports,"Sector",{enumerable:!0,get:()=>e.Sector});Object.defineProperty(exports,"XAxis",{enumerable:!0,get:()=>e.XAxis});Object.defineProperty(exports,"YAxis",{enumerable:!0,get:()=>e.YAxis});exports.ChartContainer=N;exports.ChartLegend=T;exports.ChartLegendContent=S;exports.ChartStyle=w;exports.ChartTooltip=$;exports.ChartTooltipContent=A;
10
+ `)}}):null}function S({...t}){return a.jsx(P.Tooltip,{...t})}S.displayName="ChartTooltip";function w({active:t,payload:r,className:l,indicator:e="dot",hideLabel:n=!1,hideIndicator:o=!1,label:i,labelFormatter:d,labelClassName:c,formatter:h,color:f,nameKey:m,labelKey:b}){const{config:C}=_(),x=y.useMemo(()=>{if(n||!r?.length)return null;const[u]=r;if(!u)return null;const L=`${b||u.dataKey||u.name||"value"}`,v=C[L],j=!b&&typeof i=="string"?C[i]?.label||i:v?.label;return d?a.jsx("div",{className:g.cn("font-medium",c),children:d(j,r)}):j?a.jsx("div",{className:g.cn("font-medium",c),children:j}):null},[i,d,r,n,c,C,b]);if(!t||!r?.length)return null;const p=r.length===1&&e!=="dot";return a.jsxs("div",{className:g.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",l),"data-slot":"chart-tooltip-content",children:[p?null:x,a.jsx("div",{className:"grid gap-1.5",children:r.map((u,L)=>{const v=`${m||u.name||u.dataKey||"value"}`,j=C[v],k=f||u.color||u.payload.fill||`var(--color-${v})`;return a.jsx("div",{className:g.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2",e==="dot"&&"items-center"),children:h&&u?.value!==void 0&&u.name?h(u.value,u.name,u,L,r):a.jsxs(a.Fragment,{children:[j?.icon&&!o?a.jsx(j.icon,{size:10}):!o&&a.jsx("div",{className:g.cn("shrink-0 rounded-[2px]",{"h-2.5 w-2.5":e==="dot","w-1":e==="line","w-0 border-[1.5px] border-dashed bg-transparent":e==="dashed","my-0.5":p&&e==="dashed"}),style:{backgroundColor:e==="dashed"?"transparent":k,borderColor:k}}),a.jsxs("div",{className:g.cn("flex flex-1 justify-between leading-none",p?"items-end":"items-center"),children:[a.jsxs("div",{className:"grid gap-1.5",children:[p?x:null,a.jsx("span",{className:"text-muted-foreground",children:j?.label||u.name})]}),u.value&&a.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:typeof u.value=="number"?u.value.toLocaleString():u.value})]})]})},u.dataKey)})})]})}w.displayName="ChartTooltipContent";function A({...t}){return a.jsx(P.Legend,{...t})}A.displayName="ChartLegend";function T({className:t,hideIcon:r=!1,payload:l,verticalAlign:e="bottom",nameKey:n}){const{config:o}=_();return l?.length?a.jsx("div",{className:g.cn("flex items-center justify-center gap-4",e==="top"?"pb-4":"pt-4",t),"data-slot":"chart-legend-content",children:l.map(i=>{const d=`${n||i.dataKey||"value"}`,c=o[d];return a.jsxs("div",{className:g.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5"),children:[c?.icon&&!r?a.jsx(c.icon,{size:12}):a.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:i.color}}),c?.label||i.value]},i.value)})}):null}T.displayName="ChartLegendContent";function D({colorKey:t,color:r,fill:l,stroke:e,payload:n}){return(t&&typeof n?.[t]=="string"?n[t]:void 0)??r??l??e??"currentColor"}function G({size:t=8,custom:r=!1,color:l,colorKey:e,cx:n,cy:o,stroke:i,fill:d,payload:c}){if(n==null||o==null)return null;const h=D({colorKey:e,color:l,fill:d,stroke:i,payload:c});return a.jsx("circle",{className:r?"fill-background":void 0,cx:n,cy:o,"data-slot":"chart-dot",fill:r?void 0:h,r:t/2,stroke:r?h:"none",strokeWidth:r?2:void 0})}G.displayName="ChartDot";function W({size:t=6,color:r,colorKey:l,cx:e,cy:n,stroke:o,fill:i,payload:d}){if(e==null||n==null)return null;const c=D({colorKey:l,color:r,fill:i,stroke:o,payload:d});return a.jsx("circle",{className:"stroke-background",cx:e,cy:n,"data-slot":"chart-dot-on-stroke",fill:c,r:t/2,strokeWidth:2})}W.displayName="ChartDotOnStroke";function B({type:t="default",filled:r=!1,fillColor:l="var(--chart-teal)",fillOpacity:e=.2,boundaryOnly:n=!1,radialLines:o,className:i,...d}){const c=t==="circle"?"circle":"polygon",f=n?`[&_.${c==="circle"?"recharts-polar-grid-concentric-circle":"recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent`:void 0;return r?a.jsx(P.PolarGrid,{className:g.cn(f,i),fill:l,fillOpacity:e,gridType:c,radialLines:o??!1,stroke:"none",...d}):a.jsx(P.PolarGrid,{className:g.cn(f,i),gridType:c,radialLines:o,...d})}B.displayName="ChartRadarGrid";function M({type:t="default",data:r,primaryKey:l,secondaryKey:e,x:n,y:o,textAnchor:i,payload:d,index:c}){const h=r!=null&&c!=null?r[c]:void 0,f=h&&l!=null?h[l]:void 0,m=h&&e!=null?h[e]:void 0,b=t==="default"&&f!=null?m!=null?`${String(f)}/${String(m)}`:String(f):null;return a.jsxs("text",{className:"text-xs","data-slot":"chart-radar-label-wrapper",textAnchor:i,x:n,y:o,children:[b!=null&&a.jsx("tspan",{className:"fill-card-foreground",dy:"-0.5em",x:n,children:b}),a.jsx("tspan",{className:"fill-muted-foreground",dy:b!=null?"1.2em":void 0,x:n,children:d?.value})]})}M.displayName="ChartRadarLabelWrapper";function z({nameKey:t,config:r,radiusRatio:l=.5,cx:e,cy:n,midAngle:o=0,innerRadius:i=0,outerRadius:d=0,payload:c,name:h}){if(e==null||n==null)return null;const f=Math.PI/180,m=i+(d-i)*l,b=e+m*Math.cos(-o*f),C=n+m*Math.sin(-o*f),x=t!=null&&c!=null?c[t]:void 0,p=x!=null?String(x):h,u=p!=null?r?.[p]?.label??p:p;return a.jsx("text",{className:"fill-foreground text-xs","data-slot":"chart-pie-label-list",dominantBaseline:"middle",textAnchor:"middle",x:b,y:C,children:u})}z.displayName="ChartPieLabelList";function q({valueKey:t,x:r,y:l,textAnchor:e,payload:n,value:o}){if(r==null||l==null)return null;const i=t!=null&&n!=null?n[t]:o;return a.jsx("text",{className:"fill-foreground text-xs","data-slot":"chart-pie-label-wrapper",dominantBaseline:"middle",textAnchor:e,x:r,y:l,children:i})}q.displayName="ChartPieLabelWrapper";const X={"2xl":"text-2xl leading-8","3xl":"text-3xl","4xl":"text-4xl leading-10"};function I({primary:t,secondary:r,size:l="3xl",viewBox:e}){if(e==null||typeof e!="object"||!("cx"in e)||!("cy"in e))return null;const{cx:n,cy:o}=e;return a.jsxs("text",{"data-slot":"chart-center-label",dominantBaseline:"middle",textAnchor:"middle",x:n,y:o,children:[a.jsx("tspan",{className:g.cn("fill-foreground font-sans font-bold",X[l]),x:n,y:o,children:t}),r!=null&&a.jsx("tspan",{className:"fill-muted-foreground font-sans text-xs font-normal",x:n,y:o+24,children:r})]})}I.displayName="ChartCenterLabel";Object.defineProperty(exports,"Area",{enumerable:!0,get:()=>s.Area});Object.defineProperty(exports,"AreaChart",{enumerable:!0,get:()=>s.AreaChart});Object.defineProperty(exports,"Bar",{enumerable:!0,get:()=>s.Bar});Object.defineProperty(exports,"BarChart",{enumerable:!0,get:()=>s.BarChart});Object.defineProperty(exports,"CartesianGrid",{enumerable:!0,get:()=>s.CartesianGrid});Object.defineProperty(exports,"Cell",{enumerable:!0,get:()=>s.Cell});Object.defineProperty(exports,"ChartLabel",{enumerable:!0,get:()=>s.Label});Object.defineProperty(exports,"ChartsLegend",{enumerable:!0,get:()=>s.Legend});Object.defineProperty(exports,"ChartsTooltip",{enumerable:!0,get:()=>s.Tooltip});Object.defineProperty(exports,"Customized",{enumerable:!0,get:()=>s.Customized});Object.defineProperty(exports,"LabelList",{enumerable:!0,get:()=>s.LabelList});Object.defineProperty(exports,"Line",{enumerable:!0,get:()=>s.Line});Object.defineProperty(exports,"LineChart",{enumerable:!0,get:()=>s.LineChart});Object.defineProperty(exports,"Pie",{enumerable:!0,get:()=>s.Pie});Object.defineProperty(exports,"PieChart",{enumerable:!0,get:()=>s.PieChart});Object.defineProperty(exports,"PolarAngleAxis",{enumerable:!0,get:()=>s.PolarAngleAxis});Object.defineProperty(exports,"PolarGrid",{enumerable:!0,get:()=>s.PolarGrid});Object.defineProperty(exports,"PolarRadiusAxis",{enumerable:!0,get:()=>s.PolarRadiusAxis});Object.defineProperty(exports,"Radar",{enumerable:!0,get:()=>s.Radar});Object.defineProperty(exports,"RadarChart",{enumerable:!0,get:()=>s.RadarChart});Object.defineProperty(exports,"RadialBar",{enumerable:!0,get:()=>s.RadialBar});Object.defineProperty(exports,"RadialBarChart",{enumerable:!0,get:()=>s.RadialBarChart});Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:()=>s.Rectangle});Object.defineProperty(exports,"ReferenceLine",{enumerable:!0,get:()=>s.ReferenceLine});Object.defineProperty(exports,"ResponsiveContainer",{enumerable:!0,get:()=>s.ResponsiveContainer});Object.defineProperty(exports,"Sector",{enumerable:!0,get:()=>s.Sector});Object.defineProperty(exports,"XAxis",{enumerable:!0,get:()=>s.XAxis});Object.defineProperty(exports,"YAxis",{enumerable:!0,get:()=>s.YAxis});exports.ChartCenterLabel=I;exports.ChartContainer=R;exports.ChartDot=G;exports.ChartDotOnStroke=W;exports.ChartLegend=A;exports.ChartLegendContent=T;exports.ChartPieLabelList=z;exports.ChartPieLabelWrapper=q;exports.ChartRadarGrid=B;exports.ChartRadarLabelWrapper=M;exports.ChartStyle=$;exports.ChartTooltip=S;exports.ChartTooltipContent=w;
package/dist/chart.d.ts CHANGED
@@ -168,7 +168,292 @@ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlig
168
168
  declare namespace ChartLegendContent {
169
169
  var displayName: string;
170
170
  }
171
- export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
172
- export type { ChartContainerProps, ChartTooltipProps, ChartTooltipContentProps, ChartLegendProps, ChartLegendContentProps, };
171
+ /**
172
+ * Diameter (px) options for {@link ChartDot}.
173
+ */
174
+ type ChartDotSize = 8 | 12;
175
+ /**
176
+ * Props for the ChartDot component (Figma: "Charts / Dot").
177
+ *
178
+ * Use as the `dot` / `activeDot` of a Recharts `Line`, `Area`, or `Scatter`.
179
+ * Recharts clones the element per data point and injects `cx`, `cy`,
180
+ * `payload`, `stroke`, and `fill`, so a consumer only sets the styling props.
181
+ */
182
+ interface ChartDotProps {
183
+ /**
184
+ * Dot diameter in pixels.
185
+ * @default 8
186
+ */
187
+ size?: ChartDotSize;
188
+ /**
189
+ * Render the hollow "Custom" variant — a background fill with a coloured
190
+ * stroke ring, so the dot reads as an outline sitting on the line.
191
+ * @default false
192
+ */
193
+ custom?: boolean;
194
+ /**
195
+ * Explicit dot colour (any CSS colour or `var(--color-*)` token).
196
+ * Defaults to the series colour Recharts injects.
197
+ */
198
+ color?: string;
199
+ /**
200
+ * Read the colour from this key on the data point (`payload[colorKey]`),
201
+ * giving a different colour per point.
202
+ * @example colorKey="dotColor"
203
+ */
204
+ colorKey?: string;
205
+ /** Injected by Recharts — the dot's x coordinate. */
206
+ cx?: number;
207
+ /** Injected by Recharts — the dot's y coordinate. */
208
+ cy?: number;
209
+ /** Injected by Recharts — the series stroke colour. */
210
+ stroke?: string;
211
+ /** Injected by Recharts — the series fill colour. */
212
+ fill?: string;
213
+ /** Injected by Recharts — the data point for this dot. */
214
+ payload?: Record<string, unknown>;
215
+ }
216
+ /**
217
+ * ChartDot renders a data-point marker for line/area/scatter charts.
218
+ */
219
+ declare function ChartDot({ size, custom, color, colorKey, cx, cy, stroke, fill, payload, }: ChartDotProps): import("react/jsx-runtime").JSX.Element | null;
220
+ declare namespace ChartDot {
221
+ var displayName: string;
222
+ }
223
+ /**
224
+ * Diameter (px) options for {@link ChartDotOnStroke}.
225
+ */
226
+ type ChartDotOnStrokeSize = 6 | 8 | 10;
227
+ /**
228
+ * Props for the ChartDotOnStroke component (Figma: "Charts / Dot on Stroke").
229
+ *
230
+ * A solid marker ringed with the background colour so it sits cleanly on top
231
+ * of the series line. Use as the `dot` / `activeDot` of a Recharts series.
232
+ */
233
+ interface ChartDotOnStrokeProps {
234
+ /**
235
+ * Dot diameter in pixels.
236
+ * @default 6
237
+ */
238
+ size?: ChartDotOnStrokeSize;
239
+ /** Explicit dot colour. Defaults to the series colour Recharts injects. */
240
+ color?: string;
241
+ /** Read the colour from `payload[colorKey]` for a per-point colour. */
242
+ colorKey?: string;
243
+ /** Injected by Recharts — the dot's x coordinate. */
244
+ cx?: number;
245
+ /** Injected by Recharts — the dot's y coordinate. */
246
+ cy?: number;
247
+ /** Injected by Recharts — the series stroke colour. */
248
+ stroke?: string;
249
+ /** Injected by Recharts — the series fill colour. */
250
+ fill?: string;
251
+ /** Injected by Recharts — the data point for this dot. */
252
+ payload?: Record<string, unknown>;
253
+ }
254
+ /**
255
+ * ChartDotOnStroke renders a solid marker ringed with the background colour.
256
+ */
257
+ declare function ChartDotOnStroke({ size, color, colorKey, cx, cy, stroke, fill, payload, }: ChartDotOnStrokeProps): import("react/jsx-runtime").JSX.Element | null;
258
+ declare namespace ChartDotOnStroke {
259
+ var displayName: string;
260
+ }
261
+ /**
262
+ * Grid shape for {@link ChartRadarGrid}. "default" renders a polygon grid,
263
+ * "circle" renders concentric circles.
264
+ */
265
+ type ChartRadarGridType = "default" | "circle";
266
+ /**
267
+ * Props for the ChartRadarGrid component (Figma: "Charts / Radar Chart / Grid").
268
+ *
269
+ * Wraps Recharts `PolarGrid` and must be rendered inside a `RadarChart` /
270
+ * `RadialBarChart`. Encapsulates the internal Recharts grid styling so
271
+ * consumers never reach into `.recharts-polar-grid-*` classes.
272
+ */
273
+ interface ChartRadarGridProps extends Omit<React.ComponentProps<typeof RechartsPrimitive.PolarGrid>, "gridType" | "fill"> {
274
+ /**
275
+ * Grid shape (Figma "Type"). "default" → polygon, "circle" → concentric
276
+ * circles.
277
+ * @default "default"
278
+ */
279
+ type?: ChartRadarGridType;
280
+ /**
281
+ * Fill the grid rings with a translucent wash and hide the spokes and
282
+ * outlines (Figma "Filled" variant).
283
+ * @default false
284
+ */
285
+ filled?: boolean;
286
+ /**
287
+ * Colour of the filled wash when `filled` is set (any CSS colour or token).
288
+ * Defaults to the Figma grid colour; override to match the chart's series.
289
+ * @default "var(--chart-teal)"
290
+ */
291
+ fillColor?: string;
292
+ /**
293
+ * Opacity of the filled wash when `filled` is set.
294
+ * @default 0.2
295
+ */
296
+ fillOpacity?: number;
297
+ /**
298
+ * Draw only the outermost ring, hiding the inner concentric rings' strokes.
299
+ * @default false
300
+ */
301
+ boundaryOnly?: boolean;
302
+ }
303
+ /**
304
+ * ChartRadarGrid renders a design-system polar grid for radar / radial charts.
305
+ */
306
+ declare function ChartRadarGrid({ type, filled, fillColor, fillOpacity, boundaryOnly, radialLines, className, ...props }: ChartRadarGridProps): import("react/jsx-runtime").JSX.Element;
307
+ declare namespace ChartRadarGrid {
308
+ var displayName: string;
309
+ }
310
+ /**
311
+ * Label style for {@link ChartRadarLabelWrapper} (Figma "Type").
312
+ * "default" shows a primary value above the axis label; "custom" shows the
313
+ * axis label only.
314
+ */
315
+ type ChartRadarLabelWrapperType = "default" | "custom";
316
+ /**
317
+ * Props for the ChartRadarLabelWrapper component
318
+ * (Figma: "Charts / Radar Chart / Label Wrapper").
319
+ *
320
+ * Use as the `tick` of a Recharts `PolarAngleAxis`. Recharts clones it once per
321
+ * axis point and injects `x`, `y`, `textAnchor`, `payload`, and `index`.
322
+ */
323
+ interface ChartRadarLabelWrapperProps {
324
+ /**
325
+ * Label style. "default" renders a primary value line above the axis label;
326
+ * "custom" renders the axis label only.
327
+ * @default "default"
328
+ */
329
+ type?: ChartRadarLabelWrapperType;
330
+ /**
331
+ * The chart data rows, used to resolve the primary value by tick `index`.
332
+ * Pass the same array given to the chart. Required for the primary line.
333
+ */
334
+ data?: readonly unknown[];
335
+ /** Key on the data row for the primary value (top line). */
336
+ primaryKey?: string;
337
+ /**
338
+ * Optional second key rendered as `primary/secondary`
339
+ * (e.g. actual vs target).
340
+ */
341
+ secondaryKey?: string;
342
+ /** Injected by Recharts — the tick's x coordinate. */
343
+ x?: number;
344
+ /** Injected by Recharts — the tick's y coordinate. */
345
+ y?: number;
346
+ /** Injected by Recharts — horizontal text anchoring for the tick. */
347
+ textAnchor?: "start" | "middle" | "end" | "inherit";
348
+ /** Injected by Recharts — the axis payload (`payload.value` is the label). */
349
+ payload?: {
350
+ value?: React.ReactNode;
351
+ };
352
+ /** Injected by Recharts — the tick's index within the axis. */
353
+ index?: number;
354
+ }
355
+ /**
356
+ * ChartRadarLabelWrapper renders a one- or two-line polar axis tick label.
357
+ */
358
+ declare function ChartRadarLabelWrapper({ type, data, primaryKey, secondaryKey, x, y, textAnchor, payload, index, }: ChartRadarLabelWrapperProps): import("react/jsx-runtime").JSX.Element;
359
+ declare namespace ChartRadarLabelWrapper {
360
+ var displayName: string;
361
+ }
362
+ /**
363
+ * Props for the ChartPieLabelList component
364
+ * (Figma: "Charts / Pie Chart / Label List").
365
+ *
366
+ * The category-name label rendered inside each pie/donut slice. Use as the
367
+ * `label` of a Recharts `Pie`; Recharts injects the slice geometry and payload.
368
+ */
369
+ interface ChartPieLabelListProps {
370
+ /** Key on the data point for the category name. */
371
+ nameKey?: string;
372
+ /** Chart config used to resolve a display label for the name. */
373
+ config?: ChartConfig;
374
+ /**
375
+ * Fraction (0–1) between inner and outer radius at which to place the label.
376
+ * @default 0.5
377
+ */
378
+ radiusRatio?: number;
379
+ /** Injected by Recharts — slice centre x. */
380
+ cx?: number;
381
+ /** Injected by Recharts — slice centre y. */
382
+ cy?: number;
383
+ /** Injected by Recharts — slice mid angle (degrees). */
384
+ midAngle?: number;
385
+ /** Injected by Recharts — slice inner radius. */
386
+ innerRadius?: number;
387
+ /** Injected by Recharts — slice outer radius. */
388
+ outerRadius?: number;
389
+ /** Injected by Recharts — the slice's data point. */
390
+ payload?: Record<string, unknown>;
391
+ /** Injected by Recharts — the slice's resolved name. */
392
+ name?: string;
393
+ }
394
+ /**
395
+ * ChartPieLabelList renders a category-name label inside a pie slice.
396
+ */
397
+ declare function ChartPieLabelList({ nameKey, config, radiusRatio, cx, cy, midAngle, innerRadius, outerRadius, payload, name, }: ChartPieLabelListProps): import("react/jsx-runtime").JSX.Element | null;
398
+ declare namespace ChartPieLabelList {
399
+ var displayName: string;
400
+ }
401
+ /**
402
+ * Props for the ChartPieLabelWrapper component
403
+ * (Figma: "Charts / Pie Chart / Label Wrapper").
404
+ *
405
+ * The value label rendered outside a pie/donut slice, connected by Recharts'
406
+ * `labelLine`. Use as the `label` of a Recharts `Pie`.
407
+ */
408
+ interface ChartPieLabelWrapperProps {
409
+ /** Key on the data point for the value. Defaults to the slice value. */
410
+ valueKey?: string;
411
+ /** Injected by Recharts — the external label x. */
412
+ x?: number;
413
+ /** Injected by Recharts — the external label y. */
414
+ y?: number;
415
+ /** Injected by Recharts — horizontal text anchoring. */
416
+ textAnchor?: "start" | "middle" | "end" | "inherit";
417
+ /** Injected by Recharts — the slice's data point. */
418
+ payload?: Record<string, unknown>;
419
+ /** Injected by Recharts — the slice's resolved value. */
420
+ value?: React.ReactNode;
421
+ }
422
+ /**
423
+ * ChartPieLabelWrapper renders a value label outside a pie slice.
424
+ */
425
+ declare function ChartPieLabelWrapper({ valueKey, x, y, textAnchor, payload, value, }: ChartPieLabelWrapperProps): import("react/jsx-runtime").JSX.Element | null;
426
+ declare namespace ChartPieLabelWrapper {
427
+ var displayName: string;
428
+ }
429
+ /** Primary-value text size for {@link ChartCenterLabel}. */
430
+ type ChartCenterLabelSize = "2xl" | "3xl" | "4xl";
431
+ /**
432
+ * Props for the ChartCenterLabel component — the centred value + label shown in
433
+ * the hole of a donut or radial chart. Use as the `content` of a Recharts
434
+ * `Label`; Recharts injects the `viewBox` (which supplies the centre point).
435
+ */
436
+ interface ChartCenterLabelProps {
437
+ /** Primary (large) value shown in the centre. */
438
+ primary?: React.ReactNode;
439
+ /** Secondary label shown beneath the primary value. */
440
+ secondary?: React.ReactNode;
441
+ /**
442
+ * Size of the primary value text.
443
+ * @default "3xl"
444
+ */
445
+ size?: ChartCenterLabelSize;
446
+ /** Injected by Recharts — the label viewBox (provides `cx`/`cy`). */
447
+ viewBox?: unknown;
448
+ }
449
+ /**
450
+ * ChartCenterLabel renders a centred primary value with an optional label.
451
+ */
452
+ declare function ChartCenterLabel({ primary, secondary, size, viewBox, }: ChartCenterLabelProps): import("react/jsx-runtime").JSX.Element | null;
453
+ declare namespace ChartCenterLabel {
454
+ var displayName: string;
455
+ }
456
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, ChartDot, ChartDotOnStroke, ChartRadarGrid, ChartRadarLabelWrapper, ChartPieLabelList, ChartPieLabelWrapper, ChartCenterLabel, };
457
+ export type { ChartContainerProps, ChartTooltipProps, ChartTooltipContentProps, ChartLegendProps, ChartLegendContentProps, ChartDotProps, ChartDotOnStrokeProps, ChartDotSize, ChartDotOnStrokeSize, ChartRadarGridProps, ChartRadarGridType, ChartRadarLabelWrapperProps, ChartRadarLabelWrapperType, ChartPieLabelListProps, ChartPieLabelWrapperProps, ChartCenterLabelProps, ChartCenterLabelSize, };
173
458
  export { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, Customized, Label as ChartLabel, LabelList, Legend as ChartsLegend, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, RadialBar, RadialBarChart, Rectangle, ReferenceLine, ResponsiveContainer, Sector, Tooltip as ChartsTooltip, XAxis, YAxis, } from 'recharts';
174
459
  //# sourceMappingURL=chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/components/chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAO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aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAClC;AAED;;GAEG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACR,EAAE,uBAAuB,kDA2CzB;kBAjDQ,kBAAkB;;;AAyD3B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACX,CAAC;AAEF,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,GACxB,CAAC;AAGF,OAAO,EACL,IAAI,EACJ,SAAS,EACT,GAAG,EACH,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,UAAU,EACV,KAAK,IAAI,UAAU,EACnB,SAAS,EACT,MAAM,IAAI,YAAY,EACtB,IAAI,EACJ,SAAS,EACT,GAAG,EACH,QAAQ,EACR,cAAc,EACd,SAAS,EACT,eAAe,EACf,KAAK,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,MAAM,EACN,OAAO,IAAI,aAAa,EACxB,KAAK,EACL,KAAK,GACN,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/components/chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAO9C,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC/C,GAAG,CACA;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,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