@nar-bus/lena-ui-shared 1.3.6 → 1.3.7
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 +57 -4
- package/dist/index.js +2616 -2480
- package/dist/index.js.map +1 -1
- package/dist/theme.css +148 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare interface AreaSeriesConfig {
|
|
|
208
208
|
/** Stroke dash pattern (e.g. "6 3") */
|
|
209
209
|
strokeDasharray?: string;
|
|
210
210
|
/** Curve interpolation type (default: "monotone") */
|
|
211
|
-
type?:
|
|
211
|
+
type?: BaseCurveType;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/**
|
|
@@ -283,6 +283,9 @@ export declare interface BarSeriesConfig {
|
|
|
283
283
|
maxBarSize?: number;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
/** Shared curve interpolation types supported by Recharts */
|
|
287
|
+
declare type BaseCurveType = 'monotone' | 'linear' | 'basis' | 'natural' | 'step';
|
|
288
|
+
|
|
286
289
|
/**
|
|
287
290
|
* Boolean cell for displaying true/false values.
|
|
288
291
|
* Shows check/X icons with consistent styling.
|
|
@@ -1570,7 +1573,7 @@ declare interface FormSectionProps {
|
|
|
1570
1573
|
|
|
1571
1574
|
export declare function FormSheet({ open, onOpenChange, title, description, children, onSubmit, onCancel, isSubmitting, submitLabel, cancelLabel, side, className, icon, variant, headerGradient, headerIcon: HeaderIcon, }: FormSheetProps): JSX.Element;
|
|
1572
1575
|
|
|
1573
|
-
export declare type FormSheetGradient = 'navy' | 'cherry' | 'emerald' | 'amber';
|
|
1576
|
+
export declare type FormSheetGradient = 'navy' | 'cherry' | 'emerald' | 'amber' | 'teal' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
1574
1577
|
|
|
1575
1578
|
export declare interface FormSheetProps {
|
|
1576
1579
|
open: boolean;
|
|
@@ -1635,7 +1638,7 @@ export declare type GradientPair = [topColor: string, bottomColor: string];
|
|
|
1635
1638
|
|
|
1636
1639
|
declare function Header({ children, icon: Icon, iconClassName, subtitle, actions, gradient, className, }: LenaPanelHeaderProps): JSX.Element;
|
|
1637
1640
|
|
|
1638
|
-
export declare type HeaderGradient = 'teal' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'violet';
|
|
1641
|
+
export declare type HeaderGradient = 'teal' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
1639
1642
|
|
|
1640
1643
|
export declare function HeaderQuickSearch({ placeholder, value, onValueChange, open, onOpenChange, loading, shortcutKey, shouldFilter, className, children, }: HeaderQuickSearchProps): JSX.Element;
|
|
1641
1644
|
|
|
@@ -1938,6 +1941,20 @@ export declare interface LenaChoroplethMapProps {
|
|
|
1938
1941
|
className?: string;
|
|
1939
1942
|
}
|
|
1940
1943
|
|
|
1944
|
+
export declare function LenaComposedChart<T extends object>({ data, barSeries, lineSeries, xAxisDataKey, height, showLegend, yAxisWidth, yAxisTickFormatter, tooltipItemColor, margin, barCategoryGap, barGap, className, }: LenaComposedChartProps<T>): JSX.Element;
|
|
1945
|
+
|
|
1946
|
+
/** Props for LenaComposedChart (bar + line overlay) */
|
|
1947
|
+
export declare interface LenaComposedChartProps<T extends object> extends LenaChartBaseProps<T> {
|
|
1948
|
+
/** Bar series configurations */
|
|
1949
|
+
barSeries: BarSeriesConfig[];
|
|
1950
|
+
/** Line series configurations (rendered on top of bars) */
|
|
1951
|
+
lineSeries: LineSeriesConfig[];
|
|
1952
|
+
/** Gap between bar categories (default: "20%") */
|
|
1953
|
+
barCategoryGap?: string;
|
|
1954
|
+
/** Gap between bars in same category */
|
|
1955
|
+
barGap?: number;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1941
1958
|
export declare const LenaPanel: typeof _LenaPanel & {
|
|
1942
1959
|
Header: typeof Header;
|
|
1943
1960
|
Content: typeof Content;
|
|
@@ -2016,6 +2033,33 @@ export declare interface LenaUIProviderProps {
|
|
|
2016
2033
|
children: ReactNode;
|
|
2017
2034
|
}
|
|
2018
2035
|
|
|
2036
|
+
/** Extended curve types (Line supports additional step variants) */
|
|
2037
|
+
declare type LineCurveType = BaseCurveType | 'stepAfter' | 'stepBefore';
|
|
2038
|
+
|
|
2039
|
+
/** Configuration for a single line series (used in ComposedChart) */
|
|
2040
|
+
export declare interface LineSeriesConfig {
|
|
2041
|
+
/** Data key matching a field in the data array */
|
|
2042
|
+
dataKey: string;
|
|
2043
|
+
/** Display name (shown in tooltip/legend) */
|
|
2044
|
+
name: string;
|
|
2045
|
+
/** Stroke color */
|
|
2046
|
+
color: string;
|
|
2047
|
+
/** Stroke width (default: 2) */
|
|
2048
|
+
strokeWidth?: number;
|
|
2049
|
+
/** Stroke dash pattern (e.g. "6 3") */
|
|
2050
|
+
strokeDasharray?: string;
|
|
2051
|
+
/** Curve interpolation type (default: "monotone") */
|
|
2052
|
+
type?: LineCurveType;
|
|
2053
|
+
/** Custom active dot config */
|
|
2054
|
+
activeDot?: {
|
|
2055
|
+
r: number;
|
|
2056
|
+
strokeWidth: number;
|
|
2057
|
+
fill: string;
|
|
2058
|
+
};
|
|
2059
|
+
/** Whether to show in legend (default: true) */
|
|
2060
|
+
showInLegend?: boolean;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2019
2063
|
/**
|
|
2020
2064
|
* Link cell for navigable table values.
|
|
2021
2065
|
* Shows external link icon on hover and supports different hover colors.
|
|
@@ -2903,6 +2947,8 @@ export declare interface TabConfig {
|
|
|
2903
2947
|
description?: string;
|
|
2904
2948
|
/** Per-tab mount strategy override (only used when lazyMount is enabled) */
|
|
2905
2949
|
mountStrategy?: MountStrategy;
|
|
2950
|
+
/** Per-tab accent color override — gradient name (e.g. 'teal', 'indigo', 'orange') */
|
|
2951
|
+
accentColor?: string;
|
|
2906
2952
|
}
|
|
2907
2953
|
|
|
2908
2954
|
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
@@ -3085,7 +3131,7 @@ export declare interface ToolbarEntityLabelProps {
|
|
|
3085
3131
|
}
|
|
3086
3132
|
|
|
3087
3133
|
/** Available toolbar color variants */
|
|
3088
|
-
declare type ToolbarVariant = 'dark' | 'cherry' | 'emerald' | 'amber';
|
|
3134
|
+
declare type ToolbarVariant = 'dark' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'teal' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
3089
3135
|
|
|
3090
3136
|
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
3091
3137
|
|
|
@@ -3532,6 +3578,13 @@ export declare interface ValidationStatusProps {
|
|
|
3532
3578
|
showDetails?: boolean;
|
|
3533
3579
|
}
|
|
3534
3580
|
|
|
3581
|
+
/**
|
|
3582
|
+
* Adds monthly average fields to chart data.
|
|
3583
|
+
* Date format: "dd/MM" — groups by month part, calculates average per key.
|
|
3584
|
+
* Each data point receives a `{key}_avg` field with its month's average.
|
|
3585
|
+
*/
|
|
3586
|
+
export declare function withMonthlyAvg<T extends Record<string, unknown>>(data: T[], dateKey: string, valueKeys: string[]): (T & Record<string, number>)[];
|
|
3587
|
+
|
|
3535
3588
|
export { }
|
|
3536
3589
|
|
|
3537
3590
|
|