@nar-bus/lena-ui-shared 1.3.5 → 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 +61 -6
- package/dist/index.js +3155 -2995
- package/dist/index.js.map +1 -1
- package/dist/theme.css +148 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare interface ActiveFiltersBarProps {
|
|
|
72
72
|
onFiltersChange: (filters: FilterState[]) => void;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export declare function AdvancedJsonEditor({ value, onChange, onSave, title, icon: Icon, defaultOpen, maxViewHeight, rows, placeholder, defaultMode, allowModeSwitch, schema, editable, disabled, disabledReason, isSaving, showLineNumbers, showValidation, showStats, }: AdvancedJsonEditorProps): JSX.Element;
|
|
75
|
+
export declare function AdvancedJsonEditor({ value, onChange, onSave, title, icon: Icon, defaultOpen, maxViewHeight, rows, placeholder, defaultMode, allowModeSwitch, schema, editable, disabled, disabledReason, isSaving, showLineNumbers, showValidation, showStats, showToolbarActions, }: AdvancedJsonEditorProps): JSX.Element;
|
|
76
76
|
|
|
77
77
|
export declare interface AdvancedJsonEditorProps {
|
|
78
78
|
value: string;
|
|
@@ -94,6 +94,7 @@ export declare interface AdvancedJsonEditorProps {
|
|
|
94
94
|
showLineNumbers?: boolean;
|
|
95
95
|
showValidation?: boolean;
|
|
96
96
|
showStats?: boolean;
|
|
97
|
+
showToolbarActions?: boolean;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
|
|
@@ -207,7 +208,7 @@ export declare interface AreaSeriesConfig {
|
|
|
207
208
|
/** Stroke dash pattern (e.g. "6 3") */
|
|
208
209
|
strokeDasharray?: string;
|
|
209
210
|
/** Curve interpolation type (default: "monotone") */
|
|
210
|
-
type?:
|
|
211
|
+
type?: BaseCurveType;
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
/**
|
|
@@ -282,6 +283,9 @@ export declare interface BarSeriesConfig {
|
|
|
282
283
|
maxBarSize?: number;
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
/** Shared curve interpolation types supported by Recharts */
|
|
287
|
+
declare type BaseCurveType = 'monotone' | 'linear' | 'basis' | 'natural' | 'step';
|
|
288
|
+
|
|
285
289
|
/**
|
|
286
290
|
* Boolean cell for displaying true/false values.
|
|
287
291
|
* Shows check/X icons with consistent styling.
|
|
@@ -1569,7 +1573,7 @@ declare interface FormSectionProps {
|
|
|
1569
1573
|
|
|
1570
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;
|
|
1571
1575
|
|
|
1572
|
-
export declare type FormSheetGradient = 'navy' | 'cherry' | 'emerald' | 'amber';
|
|
1576
|
+
export declare type FormSheetGradient = 'navy' | 'cherry' | 'emerald' | 'amber' | 'teal' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
1573
1577
|
|
|
1574
1578
|
export declare interface FormSheetProps {
|
|
1575
1579
|
open: boolean;
|
|
@@ -1634,7 +1638,7 @@ export declare type GradientPair = [topColor: string, bottomColor: string];
|
|
|
1634
1638
|
|
|
1635
1639
|
declare function Header({ children, icon: Icon, iconClassName, subtitle, actions, gradient, className, }: LenaPanelHeaderProps): JSX.Element;
|
|
1636
1640
|
|
|
1637
|
-
export declare type HeaderGradient = 'teal' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'violet';
|
|
1641
|
+
export declare type HeaderGradient = 'teal' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
1638
1642
|
|
|
1639
1643
|
export declare function HeaderQuickSearch({ placeholder, value, onValueChange, open, onOpenChange, loading, shortcutKey, shouldFilter, className, children, }: HeaderQuickSearchProps): JSX.Element;
|
|
1640
1644
|
|
|
@@ -1798,7 +1802,7 @@ export declare interface JsonTextEditorProps {
|
|
|
1798
1802
|
disabled?: boolean;
|
|
1799
1803
|
}
|
|
1800
1804
|
|
|
1801
|
-
export declare function JsonToolbar({ mode, onModeChange, onFormat, onCopy, isValid, allowModeSwitch, copied, }: JsonToolbarProps): JSX.Element;
|
|
1805
|
+
export declare function JsonToolbar({ mode, onModeChange, onFormat, onCopy, isValid, allowModeSwitch, copied, showActions, }: JsonToolbarProps): JSX.Element;
|
|
1802
1806
|
|
|
1803
1807
|
export declare interface JsonToolbarProps {
|
|
1804
1808
|
mode: EditorMode;
|
|
@@ -1808,6 +1812,7 @@ export declare interface JsonToolbarProps {
|
|
|
1808
1812
|
isValid: boolean;
|
|
1809
1813
|
allowModeSwitch?: boolean;
|
|
1810
1814
|
copied?: boolean;
|
|
1815
|
+
showActions?: boolean;
|
|
1811
1816
|
}
|
|
1812
1817
|
|
|
1813
1818
|
export declare function JsonTreeEditor({ value, onChange, maxHeight, disabled, }: JsonTreeEditorProps): JSX.Element;
|
|
@@ -1936,6 +1941,20 @@ export declare interface LenaChoroplethMapProps {
|
|
|
1936
1941
|
className?: string;
|
|
1937
1942
|
}
|
|
1938
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
|
+
|
|
1939
1958
|
export declare const LenaPanel: typeof _LenaPanel & {
|
|
1940
1959
|
Header: typeof Header;
|
|
1941
1960
|
Content: typeof Content;
|
|
@@ -2014,6 +2033,33 @@ export declare interface LenaUIProviderProps {
|
|
|
2014
2033
|
children: ReactNode;
|
|
2015
2034
|
}
|
|
2016
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
|
+
|
|
2017
2063
|
/**
|
|
2018
2064
|
* Link cell for navigable table values.
|
|
2019
2065
|
* Shows external link icon on hover and supports different hover colors.
|
|
@@ -2901,6 +2947,8 @@ export declare interface TabConfig {
|
|
|
2901
2947
|
description?: string;
|
|
2902
2948
|
/** Per-tab mount strategy override (only used when lazyMount is enabled) */
|
|
2903
2949
|
mountStrategy?: MountStrategy;
|
|
2950
|
+
/** Per-tab accent color override — gradient name (e.g. 'teal', 'indigo', 'orange') */
|
|
2951
|
+
accentColor?: string;
|
|
2904
2952
|
}
|
|
2905
2953
|
|
|
2906
2954
|
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
@@ -3083,7 +3131,7 @@ export declare interface ToolbarEntityLabelProps {
|
|
|
3083
3131
|
}
|
|
3084
3132
|
|
|
3085
3133
|
/** Available toolbar color variants */
|
|
3086
|
-
declare type ToolbarVariant = 'dark' | 'cherry' | 'emerald' | 'amber';
|
|
3134
|
+
declare type ToolbarVariant = 'dark' | 'navy' | 'cherry' | 'emerald' | 'amber' | 'teal' | 'violet' | 'rose' | 'indigo' | 'orange';
|
|
3087
3135
|
|
|
3088
3136
|
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
3089
3137
|
|
|
@@ -3530,6 +3578,13 @@ export declare interface ValidationStatusProps {
|
|
|
3530
3578
|
showDetails?: boolean;
|
|
3531
3579
|
}
|
|
3532
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
|
+
|
|
3533
3588
|
export { }
|
|
3534
3589
|
|
|
3535
3590
|
|