@hexclave/dashboard-ui-components 1.0.12 → 1.0.13
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 +2 -2
- 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/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 +2 -2
- 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
|
@@ -7,8 +7,6 @@ let _hexclave_ui = require("@hexclave/ui");
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let recharts = require("recharts");
|
|
10
|
-
let __state_js = require("./state.js");
|
|
11
|
-
let __strings_js = require("./strings.js");
|
|
12
10
|
let ___chart_container_js = require("../chart-container.js");
|
|
13
11
|
let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
|
|
14
12
|
let __format_js = require("./format.js");
|
|
@@ -17,6 +15,8 @@ let ___button_js = require("../button.js");
|
|
|
17
15
|
let __analytics_chart_pie_js = require("./analytics-chart-pie.js");
|
|
18
16
|
let __palette_js = require("./palette.js");
|
|
19
17
|
let __render_data_series_js = require("./render-data-series.js");
|
|
18
|
+
let __state_js = require("./state.js");
|
|
19
|
+
let __strings_js = require("./strings.js");
|
|
20
20
|
|
|
21
21
|
//#region src/components/analytics-chart/analytics-chart.tsx
|
|
22
22
|
const FALLBACK_PRIMARY_STYLE = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
let __state_js = require("./state.js");
|
|
4
|
-
let __strings_js = require("./strings.js");
|
|
5
3
|
let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
|
|
6
4
|
let __format_js = require("./format.js");
|
|
7
5
|
let __types_js = require("./types.js");
|
|
8
6
|
let __palette_js = require("./palette.js");
|
|
7
|
+
let __state_js = require("./state.js");
|
|
8
|
+
let __strings_js = require("./strings.js");
|
|
9
9
|
let __analytics_chart_js = require("./analytics-chart.js");
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, 'ANALYTICS_CHART_DEFAULT_LAYERS', {
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/button.d.ts
|
|
6
6
|
declare const designButtonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "link" | "plain" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type DesignOriginalButtonProps = {
|
|
@@ -36,7 +36,7 @@ declare const DesignButton: React.FC<{
|
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
38
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
39
|
-
variant?: "
|
|
39
|
+
variant?: "link" | "plain" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
40
40
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
41
41
|
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
42
42
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
@@ -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, "payload" | "verticalAlign"> & {
|
|
6
6
|
hideIcon?: boolean;
|
|
7
7
|
nameKey?: string;
|
|
8
8
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,14 +7,14 @@ let _hexclave_ui = require("@hexclave/ui");
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_chunk.__toESM(react);
|
|
10
|
+
let __state_js = require("./state.js");
|
|
11
|
+
let __strings_js = require("./strings.js");
|
|
10
12
|
let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/errors");
|
|
11
13
|
let _tanstack_react_table = require("@tanstack/react-table");
|
|
12
14
|
let _tanstack_react_virtual = require("@tanstack/react-virtual");
|
|
13
15
|
let ___skeleton_js = require("../skeleton.js");
|
|
14
16
|
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
15
17
|
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
16
|
-
let __state_js = require("./state.js");
|
|
17
|
-
let __strings_js = require("./strings.js");
|
|
18
18
|
|
|
19
19
|
//#region src/components/data-grid/data-grid.tsx
|
|
20
20
|
function getEventTargetElement(target) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
4
|
-
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
5
3
|
let __state_js = require("./state.js");
|
|
6
4
|
let __strings_js = require("./strings.js");
|
|
5
|
+
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
6
|
+
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
7
7
|
let __data_grid_js = require("./data-grid.js");
|
|
8
8
|
let __use_data_source_js = require("./use-data-source.js");
|
|
9
9
|
let __use_url_state_js = require("./use-url-state.js");
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
5
5
|
let react = require("react");
|
|
6
|
-
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
7
6
|
let __state_js = require("./state.js");
|
|
7
|
+
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
8
8
|
|
|
9
9
|
//#region src/components/data-grid/use-url-state.ts
|
|
10
10
|
function serializeWidths(widths, columns) {
|
|
@@ -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,7 +4,7 @@ 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?: "
|
|
7
|
+
variant?: "link" | "plain" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type DesignOriginalButtonProps = {
|
|
@@ -36,7 +36,7 @@ declare const DesignButton: React.FC<{
|
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
38
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
39
|
-
variant?: "
|
|
39
|
+
variant?: "link" | "plain" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
40
40
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
41
41
|
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
42
42
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
@@ -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, "payload" | "verticalAlign"> & {
|
|
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.13",
|
|
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.13",
|
|
54
|
+
"@hexclave/ui": "1.0.13"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.0.0",
|