@hexclave/dashboard-ui-components 1.0.22 → 1.0.24
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/components/analytics-chart/analytics-chart.js +2 -2
- package/dist/components/analytics-chart/index.js +2 -2
- package/dist/components/button.d.ts +4 -4
- package/dist/components/chart-legend.d.ts +1 -1
- package/dist/components/data-grid/data-grid.js +2 -2
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-grid/use-url-state.js +1 -1
- package/dist/dashboard-ui-components.global.js +62 -49
- package/dist/dashboard-ui-components.global.js.map +4 -4
- package/dist/esm/components/analytics-chart/analytics-chart.js +2 -2
- package/dist/esm/components/analytics-chart/index.js +2 -2
- package/dist/esm/components/button.d.ts +4 -4
- package/dist/esm/components/chart-legend.d.ts +1 -1
- package/dist/esm/components/data-grid/data-grid.js +2 -2
- package/dist/esm/components/data-grid/index.js +2 -2
- package/dist/esm/components/data-grid/use-url-state.js +1 -1
- package/package.json +3 -3
|
@@ -5,8 +5,6 @@ import { cn } from "@hexclave/ui";
|
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { CartesianGrid, ComposedChart, ReferenceArea, ReferenceLine, XAxis, YAxis } from "recharts";
|
|
8
|
-
import { EMPTY_MATRIX, EMPTY_SERIES, STROKE_DASHARRAY, computeLocalInProgressIdx, findAnnotationsLayer, findCompareLayer, findPrimaryLayer, isAnalyticsChartDataLayer, isTimeseriesState, resolveDataLayerStyle } from "./state.js";
|
|
9
|
-
import { resolveAnalyticsChartStrings } from "./strings.js";
|
|
10
8
|
import { DesignChartContainer } from "../chart-container.js";
|
|
11
9
|
import { DefaultAnalyticsChartTooltip } from "./default-analytics-chart-tooltip.js";
|
|
12
10
|
import { formatDelta, formatValue } from "./format.js";
|
|
@@ -15,6 +13,8 @@ import { DesignButton } from "../button.js";
|
|
|
15
13
|
import { AnalyticsChartPie } from "./analytics-chart-pie.js";
|
|
16
14
|
import { buildRampColors, resolveAnalyticsChartPalette } from "./palette.js";
|
|
17
15
|
import { renderDataSeries } from "./render-data-series.js";
|
|
16
|
+
import { EMPTY_MATRIX, EMPTY_SERIES, STROKE_DASHARRAY, computeLocalInProgressIdx, findAnnotationsLayer, findCompareLayer, findPrimaryLayer, isAnalyticsChartDataLayer, isTimeseriesState, resolveDataLayerStyle } from "./state.js";
|
|
17
|
+
import { resolveAnalyticsChartStrings } from "./strings.js";
|
|
18
18
|
|
|
19
19
|
//#region src/components/analytics-chart/analytics-chart.tsx
|
|
20
20
|
const FALLBACK_PRIMARY_STYLE = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ANALYTICS_CHART_DEFAULT_LAYERS, ANALYTICS_CHART_DEFAULT_STATE, EMPTY_MATRIX, EMPTY_SERIES, STROKE_DASHARRAY, computeLocalInProgressIdx, findAnnotationsLayer, findCompareLayer, findLayerById, findPrimaryLayer, isAnalyticsChartDataLayer, isTimeseriesState, patchLayerById, resolveDataLayerStyle, setLayerById } from "./state.js";
|
|
2
|
-
import { ANALYTICS_CHART_DEFAULT_STRINGS, resolveAnalyticsChartStrings } from "./strings.js";
|
|
3
1
|
import { DefaultAnalyticsChartTooltip, TrendPill } from "./default-analytics-chart-tooltip.js";
|
|
4
2
|
import { DEFAULT_FORMAT_KIND, FORMAT_KIND_TYPES, formatDelta, formatValue } from "./format.js";
|
|
5
3
|
import { pointValue } from "./types.js";
|
|
6
4
|
import { ANALYTICS_CHART_DEFAULT_PALETTE, buildRampColors, buildSegmentThemeMap, resolveAnalyticsChartPalette } from "./palette.js";
|
|
5
|
+
import { ANALYTICS_CHART_DEFAULT_LAYERS, ANALYTICS_CHART_DEFAULT_STATE, EMPTY_MATRIX, EMPTY_SERIES, STROKE_DASHARRAY, computeLocalInProgressIdx, findAnnotationsLayer, findCompareLayer, findLayerById, findPrimaryLayer, isAnalyticsChartDataLayer, isTimeseriesState, patchLayerById, resolveDataLayerStyle, setLayerById } from "./state.js";
|
|
6
|
+
import { ANALYTICS_CHART_DEFAULT_STRINGS, resolveAnalyticsChartStrings } from "./strings.js";
|
|
7
7
|
import { AnalyticsChart } from "./analytics-chart.js";
|
|
8
8
|
|
|
9
9
|
export { ANALYTICS_CHART_DEFAULT_LAYERS, ANALYTICS_CHART_DEFAULT_PALETTE, ANALYTICS_CHART_DEFAULT_STATE, ANALYTICS_CHART_DEFAULT_STRINGS, AnalyticsChart, DEFAULT_FORMAT_KIND, DefaultAnalyticsChartTooltip, EMPTY_MATRIX, EMPTY_SERIES, FORMAT_KIND_TYPES, STROKE_DASHARRAY, TrendPill, buildRampColors, buildSegmentThemeMap, computeLocalInProgressIdx, findAnnotationsLayer, findCompareLayer, findLayerById, findPrimaryLayer, formatDelta, formatValue, isAnalyticsChartDataLayer, isTimeseriesState, patchLayerById, pointValue, resolveAnalyticsChartPalette, resolveAnalyticsChartStrings, resolveDataLayerStyle, setLayerById };
|
|
@@ -4,8 +4,8 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/button.d.ts
|
|
6
6
|
declare const designButtonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
8
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type DesignOriginalButtonProps = {
|
|
11
11
|
asChild?: boolean;
|
|
@@ -36,8 +36,8 @@ declare const DesignButton: React.FC<{
|
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
38
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
39
|
-
variant?: "
|
|
40
|
-
size?: "
|
|
39
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
40
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
41
41
|
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
42
42
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
43
43
|
}>;
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import * as RechartsPrimitive from "recharts";
|
|
3
3
|
|
|
4
4
|
//#region src/components/chart-legend.d.ts
|
|
5
|
-
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "
|
|
5
|
+
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
|
|
6
6
|
hideIcon?: boolean;
|
|
7
7
|
nameKey?: string;
|
|
8
8
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,14 +4,14 @@ import { ArrowDown, ArrowUp, CaretDown, CaretUp, CheckSquare, MinusSquare, Squar
|
|
|
4
4
|
import { cn } from "@hexclave/ui";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
7
|
+
import { exportToCsv, formatGridDate, resolveColumnValue } from "./state.js";
|
|
8
|
+
import { resolveDataGridStrings } from "./strings.js";
|
|
7
9
|
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
8
10
|
import { getCoreRowModel, useReactTable } from "@tanstack/react-table";
|
|
9
11
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
10
12
|
import { DesignSkeleton } from "../skeleton.js";
|
|
11
13
|
import { DEFAULT_COL_WIDTH, clampColumnWidth, getEffectiveMaxWidth, getEffectiveMinWidth } from "./data-grid-sizing.js";
|
|
12
14
|
import { DataGridToolbar } from "./data-grid-toolbar.js";
|
|
13
|
-
import { exportToCsv, formatGridDate, resolveColumnValue } from "./state.js";
|
|
14
|
-
import { resolveDataGridStrings } from "./strings.js";
|
|
15
15
|
|
|
16
16
|
//#region src/components/data-grid/data-grid.tsx
|
|
17
17
|
function getEventTargetElement(target) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_COL_WIDTH, DEFAULT_MAX_COL_WIDTH, clampColumnWidth, getEffectiveMaxWidth, getEffectiveMinWidth } from "./data-grid-sizing.js";
|
|
2
|
-
import { DataGridToolbar } from "./data-grid-toolbar.js";
|
|
3
1
|
import { applyQuickSearch, buildRowComparator, createDefaultDataGridState, defaultFormatAbsolute, defaultFormatRelative, defaultMatchRow, defaultParseDate, exportToCsv, formatGridDate, paginateRows, resolveColumnValue } from "./state.js";
|
|
4
2
|
import { DATA_GRID_DEFAULT_STRINGS, resolveDataGridStrings } from "./strings.js";
|
|
3
|
+
import { DEFAULT_COL_WIDTH, DEFAULT_MAX_COL_WIDTH, clampColumnWidth, getEffectiveMaxWidth, getEffectiveMinWidth } from "./data-grid-sizing.js";
|
|
4
|
+
import { DataGridToolbar } from "./data-grid-toolbar.js";
|
|
5
5
|
import { DataGrid, isDataGridInteractiveRowClickTarget } from "./data-grid.js";
|
|
6
6
|
import { useDataSource } from "./use-data-source.js";
|
|
7
7
|
import { useDataGridUrlState } from "./use-url-state.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import { DEFAULT_COL_WIDTH, clampColumnWidth } from "./data-grid-sizing.js";
|
|
5
4
|
import { createDefaultDataGridState } from "./state.js";
|
|
5
|
+
import { DEFAULT_COL_WIDTH, clampColumnWidth } from "./data-grid-sizing.js";
|
|
6
6
|
|
|
7
7
|
//#region src/components/data-grid/use-url-state.ts
|
|
8
8
|
function serializeWidths(widths, columns) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexclave/dashboard-ui-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"repository": "https://github.com/hexclave/hexclave",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@tanstack/react-table": "^8.21.3",
|
|
51
51
|
"@tanstack/react-virtual": "^3.13.0",
|
|
52
52
|
"class-variance-authority": "^0.7.0",
|
|
53
|
-
"@hexclave/shared": "1.0.
|
|
54
|
-
"@hexclave/ui": "1.0.
|
|
53
|
+
"@hexclave/shared": "1.0.24",
|
|
54
|
+
"@hexclave/ui": "1.0.24"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.0.0",
|