@placesapp/appy-ui 0.0.334 → 0.0.335
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/index.d.ts +2 -21
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -215,36 +215,17 @@ declare const ChartStyle: ({ id, config }: {
|
|
|
215
215
|
config: ChartConfig;
|
|
216
216
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
217
217
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
218
|
-
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }:
|
|
218
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & React$1.ComponentProps<'div'> & {
|
|
219
219
|
hideLabel?: boolean;
|
|
220
220
|
hideIndicator?: boolean;
|
|
221
221
|
indicator?: 'line' | 'dot' | 'dashed';
|
|
222
222
|
nameKey?: string;
|
|
223
223
|
labelKey?: string;
|
|
224
|
-
payload?: Array<{
|
|
225
|
-
type?: string;
|
|
226
|
-
name?: string;
|
|
227
|
-
dataKey?: string;
|
|
228
|
-
value?: number | string;
|
|
229
|
-
color?: string;
|
|
230
|
-
payload?: Record<string, unknown>;
|
|
231
|
-
fill?: string;
|
|
232
|
-
}>;
|
|
233
|
-
label?: string;
|
|
234
|
-
labelFormatter?: (value: React$1.ReactNode, payload: unknown[]) => React$1.ReactNode;
|
|
235
|
-
formatter?: (value: unknown, name: unknown, item: unknown, index: number, payload: unknown) => React$1.ReactNode;
|
|
236
224
|
}): react_jsx_runtime.JSX.Element | null;
|
|
237
225
|
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
238
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<'div'> & {
|
|
226
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
|
|
239
227
|
hideIcon?: boolean;
|
|
240
228
|
nameKey?: string;
|
|
241
|
-
verticalAlign?: 'top' | 'bottom' | 'middle';
|
|
242
|
-
payload?: Array<{
|
|
243
|
-
type?: string;
|
|
244
|
-
value?: string;
|
|
245
|
-
dataKey?: string;
|
|
246
|
-
color?: string;
|
|
247
|
-
}>;
|
|
248
229
|
}): react_jsx_runtime.JSX.Element | null;
|
|
249
230
|
|
|
250
231
|
declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1587,7 +1587,7 @@ function ChartTooltipContent({
|
|
|
1587
1587
|
/* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1588
1588
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1589
1589
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1590
|
-
const indicatorColor = color || item.payload
|
|
1590
|
+
const indicatorColor = color || item.payload.fill || item.color;
|
|
1591
1591
|
return /* @__PURE__ */ jsx(
|
|
1592
1592
|
"div",
|
|
1593
1593
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placesapp/appy-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.335",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"motion": "^12.4.7",
|
|
33
33
|
"react-day-picker": "^9.13.0",
|
|
34
34
|
"react-resizable-panels": "^2.1.7",
|
|
35
|
-
"recharts": "^
|
|
35
|
+
"recharts": "^2.15.4",
|
|
36
36
|
"sonner": "^2.0.1",
|
|
37
37
|
"tailwind-merge": "^3.0.1",
|
|
38
38
|
"tanstack-theme-kit": "^0.2.1",
|