@synertech/ui 0.47.0 → 0.48.0
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/.claude/skills/use-synertech-ui/SKILL.md +49 -1
- package/README.md +23 -0
- package/dist/components/area-chart/AreaChart.cjs +1 -1
- package/dist/components/area-chart/AreaChart.js +1 -1
- package/dist/components/bar-chart/BarChart.cjs +1 -1
- package/dist/components/bar-chart/BarChart.js +1 -1
- package/dist/components/box-plot/BoxPlot.cjs +1 -1
- package/dist/components/box-plot/BoxPlot.js +1 -1
- package/dist/components/breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/bullet-chart/BulletChart.cjs +1 -1
- package/dist/components/bullet-chart/BulletChart.js +1 -1
- package/dist/components/calendar/Calendar.cjs +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/candlestick-chart/CandlestickChart.cjs +1 -1
- package/dist/components/candlestick-chart/CandlestickChart.js +1 -1
- package/dist/components/chart/ChartPeriodPicker.cjs +1 -1
- package/dist/components/chart/ChartPeriodPicker.js +1 -1
- package/dist/components/datagrid/DataGrid.cjs +1 -1
- package/dist/components/datagrid/DataGrid.js +1 -1
- package/dist/components/dumbbell-chart/DumbbellChart.cjs +1 -1
- package/dist/components/dumbbell-chart/DumbbellChart.js +1 -1
- package/dist/components/footer/FooterLink.cjs +1 -1
- package/dist/components/footer/FooterLink.js +1 -1
- package/dist/components/footer/FooterSocial.cjs +1 -1
- package/dist/components/footer/FooterSocial.js +1 -1
- package/dist/components/form/number-input/NumberInput.cjs +1 -1
- package/dist/components/form/number-input/NumberInput.js +1 -1
- package/dist/components/funnel-chart/FunnelChart.cjs +1 -1
- package/dist/components/funnel-chart/FunnelChart.js +1 -1
- package/dist/components/gantt-chart/GanttChart.cjs +1 -1
- package/dist/components/gantt-chart/GanttChart.js +1 -1
- package/dist/components/header/Header.cjs +1 -1
- package/dist/components/header/Header.js +1 -1
- package/dist/components/heat-map/Heatmap.cjs +1 -1
- package/dist/components/heat-map/Heatmap.js +1 -1
- package/dist/components/help-button/HelpButton.cjs +5 -5
- package/dist/components/help-button/HelpButton.js +6 -6
- package/dist/components/help-button/sanitize-html.cjs +1 -0
- package/dist/components/help-button/sanitize-html.js +1 -0
- package/dist/components/line-chart/LineChart.cjs +1 -1
- package/dist/components/line-chart/LineChart.js +1 -1
- package/dist/components/pie-chart/PieChart.cjs +1 -1
- package/dist/components/pie-chart/PieChart.js +1 -1
- package/dist/components/scatter-chart/ScatterChart.cjs +1 -1
- package/dist/components/scatter-chart/ScatterChart.js +1 -1
- package/dist/components/sidebar/Sidebar.cjs +1 -1
- package/dist/components/sidebar/Sidebar.js +1 -1
- package/dist/components/stat-card/StatCard.cjs +1 -1
- package/dist/components/stat-card/StatCard.js +1 -1
- package/dist/components/waterfall-chart/WaterfallChart.cjs +1 -1
- package/dist/components/waterfall-chart/WaterfallChart.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +187 -25
- package/dist/index.d.ts +187 -25
- package/dist/index.js +1 -1
- package/dist/lib/i18n.cjs +1 -1
- package/dist/lib/i18n.js +1 -1
- package/dist/lib/safe-href.cjs +1 -0
- package/dist/lib/safe-href.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -514,6 +514,10 @@ interface AreaChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
|
|
|
514
514
|
/** `false` keeps the chart out of the surrounding `ChartSyncProvider`. */
|
|
515
515
|
sync?: boolean;
|
|
516
516
|
margin?: Partial<ChartMargin>;
|
|
517
|
+
/**
|
|
518
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
519
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
520
|
+
*/
|
|
517
521
|
locale?: string;
|
|
518
522
|
plotLabel?: string;
|
|
519
523
|
}
|
|
@@ -528,7 +532,7 @@ interface AreaChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
|
|
|
528
532
|
* bands, separated by 2px of the surface colour rather than by a border drawn
|
|
529
533
|
* around each one.
|
|
530
534
|
*/
|
|
531
|
-
declare function AreaChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, curve, stack, baseline, connectNulls, referenceLines, annotations, overlay, patterns, legendToggle, maxPoints, brush, onBrush, brushLabel, sync, margin, locale, plotLabel, className, ...props }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
535
|
+
declare function AreaChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, curve, stack, baseline, connectNulls, referenceLines, annotations, overlay, patterns, legendToggle, maxPoints, brush, onBrush, brushLabel, sync, margin, locale: localeProp, plotLabel, className, ...props }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
532
536
|
|
|
533
537
|
interface AvatarProps extends ComponentPropsWithoutRef<"div"> {
|
|
534
538
|
src?: string;
|
|
@@ -854,6 +858,10 @@ interface BarChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWith
|
|
|
854
858
|
/** `false` keeps the chart out of the surrounding `ChartSyncProvider`. */
|
|
855
859
|
sync?: boolean;
|
|
856
860
|
margin?: Partial<ChartMargin>;
|
|
861
|
+
/**
|
|
862
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
863
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
864
|
+
*/
|
|
857
865
|
locale?: string;
|
|
858
866
|
plotLabel?: string;
|
|
859
867
|
}
|
|
@@ -868,7 +876,7 @@ interface BarChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWith
|
|
|
868
876
|
* is read for the length of its mark, and an axis starting at 40 exaggerates
|
|
869
877
|
* every difference on the chart.
|
|
870
878
|
*/
|
|
871
|
-
declare function BarChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, orientation, stack, diverging, bins, curve, barSize, sort, showValues, referenceLines, annotations, overlay, patterns, legendToggle, brush, onBrush, brushLabel, sync, margin, locale, plotLabel, className, ...props }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
879
|
+
declare function BarChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, orientation, stack, diverging, bins, curve, barSize, sort, showValues, referenceLines, annotations, overlay, patterns, legendToggle, brush, onBrush, brushLabel, sync, margin, locale: localeProp, plotLabel, className, ...props }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
872
880
|
|
|
873
881
|
type BannerVariant = "notification" | "hero" | "promotion";
|
|
874
882
|
type BannerType = "info" | "success" | "warning" | "error" | "default";
|
|
@@ -895,6 +903,11 @@ declare namespace Banner {
|
|
|
895
903
|
|
|
896
904
|
interface BreadcrumbItem {
|
|
897
905
|
label: string;
|
|
906
|
+
/**
|
|
907
|
+
* Where it leads. An `http:`, `https:`, `mailto:`, `tel:` or relative address
|
|
908
|
+
* makes a link; any other (`javascript:`, `data:`…) leaves it without one,
|
|
909
|
+
* and the console says so once.
|
|
910
|
+
*/
|
|
898
911
|
href?: string;
|
|
899
912
|
icon?: ReactNode;
|
|
900
913
|
onClick?: () => void;
|
|
@@ -954,6 +967,10 @@ interface BulletChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
|
|
|
954
967
|
tableView?: boolean | "toggle";
|
|
955
968
|
title?: ReactNode;
|
|
956
969
|
description?: ReactNode;
|
|
970
|
+
/**
|
|
971
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
972
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
973
|
+
*/
|
|
957
974
|
locale?: string;
|
|
958
975
|
plotLabel?: string;
|
|
959
976
|
/** Header of the value column of the data table. */
|
|
@@ -996,7 +1013,7 @@ interface BulletRow {
|
|
|
996
1013
|
* common axis to read across rows: pass `normalize="shared"` (or a `domain`)
|
|
997
1014
|
* when the rows carry the same unit, and the value axis comes back.
|
|
998
1015
|
*/
|
|
999
|
-
declare function BulletChart({ data, x, value, target, ranges, domain, normalize, showValues, trackSize, rangeColors, color, height, width, size, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale, plotLabel, valueLabel, targetLabel, format, onRowClick, className, ...props }: BulletChartProps): react_jsx_runtime.JSX.Element;
|
|
1016
|
+
declare function BulletChart({ data, x, value, target, ranges, domain, normalize, showValues, trackSize, rangeColors, color, height, width, size, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale: localeProp, plotLabel, valueLabel, targetLabel, format, onRowClick, className, ...props }: BulletChartProps): react_jsx_runtime.JSX.Element;
|
|
1000
1017
|
|
|
1001
1018
|
interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
1002
1019
|
label?: string;
|
|
@@ -1072,8 +1089,18 @@ interface CalendarBaseProps extends Omit<ComponentPropsWithoutRef<"div">, "onCha
|
|
|
1072
1089
|
numberOfMonths?: number;
|
|
1073
1090
|
/** First day of the week — 0 = Sunday … 6 = Saturday. */
|
|
1074
1091
|
weekStartsOn?: CalendarWeekStart;
|
|
1075
|
-
/**
|
|
1092
|
+
/**
|
|
1093
|
+
* BCP 47 tag the month and weekday names are written in. Defaults to the
|
|
1094
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
1095
|
+
*/
|
|
1076
1096
|
locale?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* The day marked as today, and the one the "Today" shortcut goes to.
|
|
1099
|
+
* Defaults to the clock, read when the calendar mounts. A server and a
|
|
1100
|
+
* browser in another time zone do not read the same day there: an
|
|
1101
|
+
* application that renders on the server passes it.
|
|
1102
|
+
*/
|
|
1103
|
+
today?: Date;
|
|
1077
1104
|
size?: CalendarSize;
|
|
1078
1105
|
color?: CalendarColor;
|
|
1079
1106
|
/** Earliest selectable date (inclusive). */
|
|
@@ -1335,6 +1362,10 @@ interface BoxPlotProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
|
|
|
1335
1362
|
title?: ReactNode;
|
|
1336
1363
|
description?: ReactNode;
|
|
1337
1364
|
margin?: Partial<ChartMargin>;
|
|
1365
|
+
/**
|
|
1366
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
1367
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
1368
|
+
*/
|
|
1338
1369
|
locale?: string;
|
|
1339
1370
|
plotLabel?: string;
|
|
1340
1371
|
format?: (value: number) => string;
|
|
@@ -1364,7 +1395,7 @@ interface BoxPlotProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
|
|
|
1364
1395
|
* with a panel each, which keeps them on a shared scale without asking the
|
|
1365
1396
|
* reader to hold two colour legends at once.
|
|
1366
1397
|
*/
|
|
1367
|
-
declare function BoxPlot({ data, x, y, values, quantiles, whisker, orientation, boxSize, showOutliers, showMean, color, referenceLines, height, width, size, grid, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale, plotLabel, format, onBoxClick, className, ...props }: BoxPlotProps): react_jsx_runtime.JSX.Element;
|
|
1398
|
+
declare function BoxPlot({ data, x, y, values, quantiles, whisker, orientation, boxSize, showOutliers, showMean, color, referenceLines, height, width, size, grid, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale: localeProp, plotLabel, format, onBoxClick, className, ...props }: BoxPlotProps): react_jsx_runtime.JSX.Element;
|
|
1368
1399
|
|
|
1369
1400
|
/** One session, as the tooltip and the click handler see it. */
|
|
1370
1401
|
interface Candle {
|
|
@@ -1422,6 +1453,10 @@ interface CandlestickChartProps extends Omit<ComponentPropsWithoutRef<"figure">,
|
|
|
1422
1453
|
title?: ReactNode;
|
|
1423
1454
|
description?: ReactNode;
|
|
1424
1455
|
margin?: Partial<ChartMargin>;
|
|
1456
|
+
/**
|
|
1457
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
1458
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
1459
|
+
*/
|
|
1425
1460
|
locale?: string;
|
|
1426
1461
|
plotLabel?: string;
|
|
1427
1462
|
openLabel?: string;
|
|
@@ -1457,7 +1492,7 @@ interface CandlestickChartProps extends Omit<ComponentPropsWithoutRef<"figure">,
|
|
|
1457
1492
|
* its movement; a share worth 180 dollars read from zero is a flat band at
|
|
1458
1493
|
* the top of the plot.
|
|
1459
1494
|
*/
|
|
1460
|
-
declare function CandlestickChart({ data, x, y, open, high, low, close, candleSize, fillRising, colors, referenceLines, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale, plotLabel, openLabel, highLabel, lowLabel, closeLabel, riseLabel, fallLabel, format, onCandleClick, className, ...props }: CandlestickChartProps): react_jsx_runtime.JSX.Element;
|
|
1495
|
+
declare function CandlestickChart({ data, x, y, open, high, low, close, candleSize, fillRising, colors, referenceLines, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale: localeProp, plotLabel, openLabel, highLabel, lowLabel, closeLabel, riseLabel, fallLabel, format, onCandleClick, className, ...props }: CandlestickChartProps): react_jsx_runtime.JSX.Element;
|
|
1461
1496
|
|
|
1462
1497
|
/** Geometry handed to the render prop once the container has been measured. */
|
|
1463
1498
|
interface ChartContainerRenderArgs {
|
|
@@ -2294,6 +2329,11 @@ interface ChartScaleLegendProps extends Omit<ComponentPropsWithoutRef<"div">, "c
|
|
|
2294
2329
|
size?: ChartSize;
|
|
2295
2330
|
/** Thickness of the colour bar. */
|
|
2296
2331
|
thickness?: number;
|
|
2332
|
+
/**
|
|
2333
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2334
|
+
* language of the runtime. This component renders on the server and reads
|
|
2335
|
+
* no context: the `locale` of `UILabelsProvider` does not reach it.
|
|
2336
|
+
*/
|
|
2297
2337
|
locale?: string;
|
|
2298
2338
|
}
|
|
2299
2339
|
/**
|
|
@@ -2378,6 +2418,11 @@ interface ChartFacetsProps extends Omit<ComponentPropsWithoutRef<"div">, "childr
|
|
|
2378
2418
|
title?: ReactNode;
|
|
2379
2419
|
description?: ReactNode;
|
|
2380
2420
|
size?: ChartSize;
|
|
2421
|
+
/**
|
|
2422
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2423
|
+
* language of the runtime. This component renders on the server and reads
|
|
2424
|
+
* no context: the `locale` of `UILabelsProvider` does not reach it.
|
|
2425
|
+
*/
|
|
2381
2426
|
locale?: string;
|
|
2382
2427
|
emptyState?: ReactNode;
|
|
2383
2428
|
children: (panel: ChartFacetPanel) => ReactNode;
|
|
@@ -2474,6 +2519,10 @@ interface ChartPeriodPickerProps extends Omit<ComponentPropsWithoutRef<"button">
|
|
|
2474
2519
|
/** Number of months shown side by side by the calendar. */
|
|
2475
2520
|
numberOfMonths?: number;
|
|
2476
2521
|
weekStartsOn?: CalendarWeekStart;
|
|
2522
|
+
/**
|
|
2523
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2524
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
2525
|
+
*/
|
|
2477
2526
|
locale?: string;
|
|
2478
2527
|
size?: ChartSize;
|
|
2479
2528
|
/** Which end of the trigger the panel lines up with. */
|
|
@@ -2498,7 +2547,7 @@ interface ChartPeriodPickerProps extends Omit<ComponentPropsWithoutRef<"button">
|
|
|
2498
2547
|
* somewhere inside: a window is data, and data a component makes up on its own
|
|
2499
2548
|
* cannot be tested, frozen or shared between two charts.
|
|
2500
2549
|
*/
|
|
2501
|
-
declare function ChartPeriodPicker({ value, defaultValue, onChange, presets, custom, presetLabels, now, minDate, maxDate, numberOfMonths, weekStartsOn, locale, size, align, disabled, label, className, ...props }: ChartPeriodPickerProps): react_jsx_runtime.JSX.Element;
|
|
2550
|
+
declare function ChartPeriodPicker({ value, defaultValue, onChange, presets, custom, presetLabels, now, minDate, maxDate, numberOfMonths, weekStartsOn, locale: localeProp, size, align, disabled, label, className, ...props }: ChartPeriodPickerProps): react_jsx_runtime.JSX.Element;
|
|
2502
2551
|
|
|
2503
2552
|
/**
|
|
2504
2553
|
* Width a chart draws at before its container has been measured.
|
|
@@ -2637,6 +2686,10 @@ interface DumbbellChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "c
|
|
|
2637
2686
|
title?: ReactNode;
|
|
2638
2687
|
description?: ReactNode;
|
|
2639
2688
|
margin?: Partial<ChartMargin>;
|
|
2689
|
+
/**
|
|
2690
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2691
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
2692
|
+
*/
|
|
2640
2693
|
locale?: string;
|
|
2641
2694
|
plotLabel?: string;
|
|
2642
2695
|
/** Header of the change column of the data table. */
|
|
@@ -2667,7 +2720,7 @@ interface DumbbellChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "c
|
|
|
2667
2720
|
* `sort="gap"` is what turns the chart from a list into a finding: the rows
|
|
2668
2721
|
* that moved most come to the top.
|
|
2669
2722
|
*/
|
|
2670
|
-
declare function DumbbellChart({ data, x, y, series, sort, sortBy, showValues, dotSize, referenceLines, height, width, size, grid, legend, legendToggle, tooltip, tableView, showChange, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale, plotLabel, changeLabel, format, onRowClick, className, ...props }: DumbbellChartProps): react_jsx_runtime.JSX.Element;
|
|
2723
|
+
declare function DumbbellChart({ data, x, y, series, sort, sortBy, showValues, dotSize, referenceLines, height, width, size, grid, legend, legendToggle, tooltip, tableView, showChange, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale: localeProp, plotLabel, changeLabel, format, onRowClick, className, ...props }: DumbbellChartProps): react_jsx_runtime.JSX.Element;
|
|
2671
2724
|
|
|
2672
2725
|
/** One stage, as the tooltip and the click handler see it. */
|
|
2673
2726
|
interface FunnelStage {
|
|
@@ -2720,6 +2773,10 @@ interface FunnelChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
|
|
|
2720
2773
|
tableView?: boolean | "toggle";
|
|
2721
2774
|
title?: ReactNode;
|
|
2722
2775
|
description?: ReactNode;
|
|
2776
|
+
/**
|
|
2777
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2778
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
2779
|
+
*/
|
|
2723
2780
|
locale?: string;
|
|
2724
2781
|
plotLabel?: string;
|
|
2725
2782
|
/** Header of the value column of the data table. */
|
|
@@ -2754,7 +2811,7 @@ interface FunnelChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
|
|
|
2754
2811
|
* Use it for a path people walk in one direction. Stages that are not ordered
|
|
2755
2812
|
* are a `BarChart`, and a breakdown of one total is a `PieChart`.
|
|
2756
2813
|
*/
|
|
2757
|
-
declare function FunnelChart({ data, x, value, align, showConversion, showValues, stageSize, colors, height, width, size, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale, plotLabel, valueLabel, conversionLabel, dropOffLabel, format, onStageClick, className, ...props }: FunnelChartProps): react_jsx_runtime.JSX.Element;
|
|
2814
|
+
declare function FunnelChart({ data, x, value, align, showConversion, showValues, stageSize, colors, height, width, size, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale: localeProp, plotLabel, valueLabel, conversionLabel, dropOffLabel, format, onStageClick, className, ...props }: FunnelChartProps): react_jsx_runtime.JSX.Element;
|
|
2758
2815
|
|
|
2759
2816
|
/** One task, as the tooltip and the click handler see it. */
|
|
2760
2817
|
interface GanttTask {
|
|
@@ -2824,6 +2881,10 @@ interface GanttChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chil
|
|
|
2824
2881
|
title?: ReactNode;
|
|
2825
2882
|
description?: ReactNode;
|
|
2826
2883
|
margin?: Partial<ChartMargin>;
|
|
2884
|
+
/**
|
|
2885
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2886
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
2887
|
+
*/
|
|
2827
2888
|
locale?: string;
|
|
2828
2889
|
plotLabel?: string;
|
|
2829
2890
|
startLabel?: string;
|
|
@@ -2856,7 +2917,7 @@ interface GanttChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chil
|
|
|
2856
2917
|
* month — rather than on round numbers of milliseconds, which is what a
|
|
2857
2918
|
* decimal tick generator produces when it is pointed at a date.
|
|
2858
2919
|
*/
|
|
2859
|
-
declare function GanttChart({ data, x, start, end, id, progress, milestone, dependencies, group, domain, today, ticks, barSize, rowSize, color, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale, plotLabel, startLabel, endLabel, progressLabel, todayLabel, formatDate, onTaskClick, className, ...props }: GanttChartProps): react_jsx_runtime.JSX.Element;
|
|
2920
|
+
declare function GanttChart({ data, x, start, end, id, progress, milestone, dependencies, group, domain, today, ticks, barSize, rowSize, color, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale: localeProp, plotLabel, startLabel, endLabel, progressLabel, todayLabel, formatDate, onTaskClick, className, ...props }: GanttChartProps): react_jsx_runtime.JSX.Element;
|
|
2860
2921
|
|
|
2861
2922
|
/** What a step does to the running total. */
|
|
2862
2923
|
type WaterfallKind = "increase" | "decrease" | "total";
|
|
@@ -2930,6 +2991,10 @@ interface WaterfallChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "
|
|
|
2930
2991
|
title?: ReactNode;
|
|
2931
2992
|
description?: ReactNode;
|
|
2932
2993
|
margin?: Partial<ChartMargin>;
|
|
2994
|
+
/**
|
|
2995
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
2996
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
2997
|
+
*/
|
|
2933
2998
|
locale?: string;
|
|
2934
2999
|
plotLabel?: string;
|
|
2935
3000
|
/** Header of the contribution column of the data table. */
|
|
@@ -2963,7 +3028,7 @@ interface WaterfallChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "
|
|
|
2963
3028
|
* The order of the rows IS the chart, so there is no `sort`: reordering the
|
|
2964
3029
|
* steps of a waterfall produces a different, and usually false, story.
|
|
2965
3030
|
*/
|
|
2966
|
-
declare function WaterfallChart({ data, x, y, value, total, start, orientation, connectors, showValues, barSize, colors, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale, plotLabel, valueLabel, totalLabel, increaseLabel, decreaseLabel, format, onStepClick, className, ...props }: WaterfallChartProps): react_jsx_runtime.JSX.Element;
|
|
3031
|
+
declare function WaterfallChart({ data, x, y, value, total, start, orientation, connectors, showValues, barSize, colors, height, width, size, grid, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, margin, locale: localeProp, plotLabel, valueLabel, totalLabel, increaseLabel, decreaseLabel, format, onStepClick, className, ...props }: WaterfallChartProps): react_jsx_runtime.JSX.Element;
|
|
2967
3032
|
|
|
2968
3033
|
interface CheckboxProps extends Omit<ComponentPropsWithoutRef<"input">, "size" | "onChange" | "type"> {
|
|
2969
3034
|
checked?: boolean;
|
|
@@ -3570,20 +3635,39 @@ declare function formatUILabel(template: string, values: Record<string, string |
|
|
|
3570
3635
|
interface UILabelsProviderProps {
|
|
3571
3636
|
/** Partial overrides merged over the labels inherited from the parent provider. */
|
|
3572
3637
|
labels?: Partial<UILabels>;
|
|
3638
|
+
/**
|
|
3639
|
+
* BCP 47 tag the components write their numbers and their dates in
|
|
3640
|
+
* (`"fr-CA"`, `"en-US"`). Without it they follow the language of the
|
|
3641
|
+
* runtime, which is not the same on a server and in the browser it renders
|
|
3642
|
+
* for: set it in an application that renders on the server.
|
|
3643
|
+
*/
|
|
3644
|
+
locale?: string;
|
|
3573
3645
|
children: ReactNode;
|
|
3574
3646
|
}
|
|
3575
3647
|
/**
|
|
3576
3648
|
* Translates the strings built into the library.
|
|
3577
3649
|
*
|
|
3578
3650
|
* ```tsx
|
|
3579
|
-
* <UILabelsProvider labels={locale
|
|
3651
|
+
* <UILabelsProvider labels={frenchUILabels} locale="fr-CA">
|
|
3580
3652
|
* <App />
|
|
3581
3653
|
* </UILabelsProvider>
|
|
3582
3654
|
* ```
|
|
3583
3655
|
*
|
|
3584
|
-
*
|
|
3656
|
+
* `labels` is the language of the texts, `locale` the way numbers and dates
|
|
3657
|
+
* are written. Providers can be nested: a subtree only needs to override what
|
|
3658
|
+
* differs, and a provider that names no `locale` keeps the one above it.
|
|
3659
|
+
*/
|
|
3660
|
+
declare function UILabelsProvider({ labels, locale, children }: UILabelsProviderProps): react_jsx_runtime.JSX.Element;
|
|
3661
|
+
/**
|
|
3662
|
+
* The locale a component formats its numbers and its dates with: the `locale`
|
|
3663
|
+
* prop of the instance, then the one of `UILabelsProvider`, then `undefined`
|
|
3664
|
+
* — which `Intl` reads as the language of the runtime.
|
|
3665
|
+
*
|
|
3666
|
+
* That last step is the one a server and a browser do not take the same way.
|
|
3667
|
+
* Never read the runtime language in a component: ask this hook, and hand the
|
|
3668
|
+
* answer to `Intl`.
|
|
3585
3669
|
*/
|
|
3586
|
-
declare function
|
|
3670
|
+
declare function useUILocale(override?: string): string | undefined;
|
|
3587
3671
|
/**
|
|
3588
3672
|
* Reads the current labels (English defaults when no provider is mounted).
|
|
3589
3673
|
*
|
|
@@ -3801,6 +3885,11 @@ interface DataGridProps<T = unknown> {
|
|
|
3801
3885
|
* `emptyState` win over both.
|
|
3802
3886
|
*/
|
|
3803
3887
|
labels?: UILabelsOf<"dataGrid">;
|
|
3888
|
+
/**
|
|
3889
|
+
* BCP 47 tag the footer aggregates are written in. Defaults to the `locale`
|
|
3890
|
+
* of `UILabelsProvider`, then to the language of the runtime.
|
|
3891
|
+
*/
|
|
3892
|
+
locale?: string;
|
|
3804
3893
|
/** Show footer with aggregates */
|
|
3805
3894
|
showFooter?: boolean;
|
|
3806
3895
|
/** Row click callback */
|
|
@@ -4480,6 +4569,11 @@ interface NumberInputProps extends Omit<React.ComponentPropsWithoutRef<"input">,
|
|
|
4480
4569
|
onChange?: (value: number | null) => void;
|
|
4481
4570
|
format?: "number" | "currency" | "percentage" | "decimal";
|
|
4482
4571
|
currency?: string;
|
|
4572
|
+
/**
|
|
4573
|
+
* BCP 47 tag the value is written and read in: its decimal separator, its
|
|
4574
|
+
* grouping, its currency. Defaults to the `locale` of `UILabelsProvider`,
|
|
4575
|
+
* then to `en-US`.
|
|
4576
|
+
*/
|
|
4483
4577
|
locale?: string;
|
|
4484
4578
|
decimals?: number;
|
|
4485
4579
|
min?: number;
|
|
@@ -4498,6 +4592,11 @@ declare const NumberInput: react.ForwardRefExoticComponent<NumberInputProps & re
|
|
|
4498
4592
|
|
|
4499
4593
|
interface NavItem {
|
|
4500
4594
|
label: string;
|
|
4595
|
+
/**
|
|
4596
|
+
* Where it leads. An `http:`, `https:`, `mailto:`, `tel:` or relative address
|
|
4597
|
+
* makes a link; any other (`javascript:`, `data:`…) leaves it without one,
|
|
4598
|
+
* and the console says so once.
|
|
4599
|
+
*/
|
|
4501
4600
|
href?: string;
|
|
4502
4601
|
icon?: ReactNode;
|
|
4503
4602
|
badge?: string | number;
|
|
@@ -4508,6 +4607,11 @@ interface NavItem {
|
|
|
4508
4607
|
}
|
|
4509
4608
|
interface HeaderProps {
|
|
4510
4609
|
logo?: ReactNode;
|
|
4610
|
+
/**
|
|
4611
|
+
* Where the logo leads. Any other address than an `http:`, `https:`,
|
|
4612
|
+
* `mailto:`, `tel:` or relative one (`javascript:`…) leaves the logo
|
|
4613
|
+
* without a link.
|
|
4614
|
+
*/
|
|
4511
4615
|
logoHref?: string;
|
|
4512
4616
|
onLogoClick?: () => void;
|
|
4513
4617
|
navItems?: NavItem[];
|
|
@@ -4535,6 +4639,15 @@ interface HeaderProps {
|
|
|
4535
4639
|
declare function Header({ logo, logoHref, onLogoClick, navItems, actions, rightContent, variant, size, backgroundColor, textColor, hoverColor, navItemTextColor, navItemHoverColor, navItemBgHover, navItemActiveColor, sticky, fixed, showSearch, onSearch, searchPlaceholder: searchPlaceholderProp, menuLabel, className, containerClassName, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
4536
4640
|
|
|
4537
4641
|
interface HelpButtonProps {
|
|
4642
|
+
/**
|
|
4643
|
+
* What the bubble shows: a node as it is, a string as Markdown under
|
|
4644
|
+
* `markdown`, and as HTML otherwise. That HTML keeps the formatting Markdown
|
|
4645
|
+
* produces — headings, paragraphs, lists, links, code, quotes, tables — and
|
|
4646
|
+
* nothing else: `<style>`, forms and their fields, images and frames are
|
|
4647
|
+
* dropped, and so are `class`, `style`, `id` and `name`. A link keeps an
|
|
4648
|
+
* `http:`, `https:`, `mailto:`, `tel:` or relative address. Neither mode
|
|
4649
|
+
* shows an image: a help that needs one is given as a node.
|
|
4650
|
+
*/
|
|
4538
4651
|
content: string | ReactNode;
|
|
4539
4652
|
markdown?: boolean;
|
|
4540
4653
|
position?: "top" | "bottom" | "left" | "right";
|
|
@@ -4699,6 +4812,10 @@ interface HeatmapProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
|
|
|
4699
4812
|
tableView?: boolean | "toggle";
|
|
4700
4813
|
title?: ReactNode;
|
|
4701
4814
|
description?: ReactNode;
|
|
4815
|
+
/**
|
|
4816
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
4817
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
4818
|
+
*/
|
|
4702
4819
|
locale?: string;
|
|
4703
4820
|
plotLabel?: string;
|
|
4704
4821
|
/**
|
|
@@ -4734,7 +4851,7 @@ interface HeatmapCell {
|
|
|
4734
4851
|
* neighbouring cells stop being tellable apart, and a fine grid is read as a
|
|
4735
4852
|
* wash anyway.
|
|
4736
4853
|
*/
|
|
4737
|
-
declare function Heatmap({ data, x, y, value, format, domain, scale, center, steps, colors, xDomain, yDomain, cellGap, cellRadius, showValues, height, width, size, legend, legendLabel, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale, plotLabel, onCellClick, className, ...props }: HeatmapProps): react_jsx_runtime.JSX.Element;
|
|
4854
|
+
declare function Heatmap({ data, x, y, value, format, domain, scale, center, steps, colors, xDomain, yDomain, cellGap, cellRadius, showValues, height, width, size, legend, legendLabel, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale: localeProp, plotLabel, onCellClick, className, ...props }: HeatmapProps): react_jsx_runtime.JSX.Element;
|
|
4738
4855
|
|
|
4739
4856
|
interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWithoutRef<"figure">, keyof CartesianChartBaseProps | "children" | "title"> {
|
|
4740
4857
|
curve?: ChartCurve;
|
|
@@ -4800,7 +4917,10 @@ interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
|
|
|
4800
4917
|
*/
|
|
4801
4918
|
sync?: boolean;
|
|
4802
4919
|
margin?: Partial<ChartMargin>;
|
|
4803
|
-
/**
|
|
4920
|
+
/**
|
|
4921
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
4922
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
4923
|
+
*/
|
|
4804
4924
|
locale?: string;
|
|
4805
4925
|
/** Describes the plot for assistive technology. The table view carries the values. */
|
|
4806
4926
|
plotLabel?: string;
|
|
@@ -4820,7 +4940,7 @@ interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
|
|
|
4820
4940
|
* the resolved geometry over and lets the application draw inside the plot
|
|
4821
4941
|
* with the chart's own scales, instead of forking the component.
|
|
4822
4942
|
*/
|
|
4823
|
-
declare function LineChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, curve, forecastFrom, forecastLabel, markers, connectNulls, referenceLines, annotations, overlay, legendToggle, maxPoints, brush, onBrush, brushLabel, sync, margin, locale, plotLabel, className, ...props }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
4943
|
+
declare function LineChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, curve, forecastFrom, forecastLabel, markers, connectNulls, referenceLines, annotations, overlay, legendToggle, maxPoints, brush, onBrush, brushLabel, sync, margin, locale: localeProp, plotLabel, className, ...props }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
4824
4944
|
|
|
4825
4945
|
interface ModalProps {
|
|
4826
4946
|
/**
|
|
@@ -5000,6 +5120,10 @@ interface PieChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "childr
|
|
|
5000
5120
|
* identity, and giving it a texture would make it look like one.
|
|
5001
5121
|
*/
|
|
5002
5122
|
patterns?: boolean;
|
|
5123
|
+
/**
|
|
5124
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
5125
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
5126
|
+
*/
|
|
5003
5127
|
locale?: string;
|
|
5004
5128
|
plotLabel?: string;
|
|
5005
5129
|
/**
|
|
@@ -5024,7 +5148,7 @@ interface PieChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "childr
|
|
|
5024
5148
|
* over six slices at most, which is why the tail folds into a single bucket
|
|
5025
5149
|
* rather than taking a seventh colour.
|
|
5026
5150
|
*/
|
|
5027
|
-
declare function PieChart({ data, x, value, variant, innerRadius, maxSlices, otherLabel, sort, showLabels, centerLabel, patterns, height, width, size, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale, plotLabel, onSliceClick, className, ...props }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
5151
|
+
declare function PieChart({ data, x, value, variant, innerRadius, maxSlices, otherLabel, sort, showLabels, centerLabel, patterns, height, width, size, legend, tooltip, tableView, title, description, loading, emptyState, error, errorState, onRetry, actions, locale: localeProp, plotLabel, onSliceClick, className, ...props }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
5028
5152
|
|
|
5029
5153
|
type ProgressBarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5030
5154
|
type ProgressBarColor = "default" | "primary" | "success" | "warning" | "error" | "info";
|
|
@@ -5224,7 +5348,11 @@ interface SidebarItemProps {
|
|
|
5224
5348
|
active?: boolean;
|
|
5225
5349
|
/** Disabled state */
|
|
5226
5350
|
disabled?: boolean;
|
|
5227
|
-
/**
|
|
5351
|
+
/**
|
|
5352
|
+
* Where the item leads, rendered as a link. Any other address than an
|
|
5353
|
+
* `http:`, `https:`, `mailto:`, `tel:` or relative one (`javascript:`…)
|
|
5354
|
+
* leaves it a button, and the console says so once.
|
|
5355
|
+
*/
|
|
5228
5356
|
href?: string;
|
|
5229
5357
|
/** Click handler */
|
|
5230
5358
|
onClick?: () => void;
|
|
@@ -5320,7 +5448,10 @@ interface StatCardDelta {
|
|
|
5320
5448
|
period?: ReactNode;
|
|
5321
5449
|
/** Defaults to `up`: a rise is good news. */
|
|
5322
5450
|
goodWhen?: StatCardDeltaTone;
|
|
5323
|
-
/**
|
|
5451
|
+
/**
|
|
5452
|
+
* Overrides the direction, which is otherwise the sign of the variation as
|
|
5453
|
+
* it is written: one that rounds to "0%" is flat.
|
|
5454
|
+
*/
|
|
5324
5455
|
direction?: StatCardDeltaDirection;
|
|
5325
5456
|
/** Replaces the default signed percentage. */
|
|
5326
5457
|
format?: (value: number) => string;
|
|
@@ -5331,6 +5462,12 @@ interface StatCardProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
|
5331
5462
|
value: ReactNode;
|
|
5332
5463
|
/** Formats a numeric `value`. Defaults to grouped, then compact past 10 000. */
|
|
5333
5464
|
format?: (value: number) => string;
|
|
5465
|
+
/**
|
|
5466
|
+
* BCP 47 tag the value and the variation are written in. Defaults to the
|
|
5467
|
+
* language of the runtime. This component renders on the server and reads
|
|
5468
|
+
* no context: the `locale` of `UILabelsProvider` does not reach it.
|
|
5469
|
+
*/
|
|
5470
|
+
locale?: string;
|
|
5334
5471
|
delta?: StatCardDelta;
|
|
5335
5472
|
/** Values behind the sparkline. Left out, no sparkline is drawn. */
|
|
5336
5473
|
trend?: readonly (number | null | undefined)[];
|
|
@@ -5348,7 +5485,7 @@ interface StatCardProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
|
5348
5485
|
* This is the right form for one number — a one-bar bar chart is not. No
|
|
5349
5486
|
* hooks, so it renders on the server.
|
|
5350
5487
|
*/
|
|
5351
|
-
declare function StatCard({ label, value, format, delta, trend, trendColor, icon, size, loading, variant, footer, className, ...props }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
5488
|
+
declare function StatCard({ label, value, format, locale, delta, trend, trendColor, icon, size, loading, variant, footer, className, ...props }: StatCardProps): react_jsx_runtime.JSX.Element;
|
|
5352
5489
|
|
|
5353
5490
|
interface StatCardGroupProps extends ComponentPropsWithoutRef<"div"> {
|
|
5354
5491
|
/** Columns from the `sm` breakpoint up. Below it, the tiles stack. */
|
|
@@ -5592,9 +5729,19 @@ declare namespace FooterColumn {
|
|
|
5592
5729
|
}
|
|
5593
5730
|
|
|
5594
5731
|
interface FooterLinkProps extends ComponentPropsWithoutRef<"a"> {
|
|
5732
|
+
/**
|
|
5733
|
+
* Where it leads. An `http:`, `https:`, `mailto:`, `tel:` or relative address
|
|
5734
|
+
* makes a link; any other (`javascript:`, `data:`…) leaves it without one,
|
|
5735
|
+
* and the console says so once.
|
|
5736
|
+
*/
|
|
5737
|
+
href?: string;
|
|
5738
|
+
/**
|
|
5739
|
+
* Opens the link in a new tab, with `noopener noreferrer` added to the
|
|
5740
|
+
* `rel` it is given.
|
|
5741
|
+
*/
|
|
5595
5742
|
external?: boolean;
|
|
5596
5743
|
}
|
|
5597
|
-
declare function FooterLink({ external, className, children, ...props }: FooterLinkProps): react_jsx_runtime.JSX.Element;
|
|
5744
|
+
declare function FooterLink({ external, href, rel, className, children, ...props }: FooterLinkProps): react_jsx_runtime.JSX.Element;
|
|
5598
5745
|
declare namespace FooterLink {
|
|
5599
5746
|
var displayName: string;
|
|
5600
5747
|
}
|
|
@@ -5612,6 +5759,17 @@ interface FooterSocialProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
5612
5759
|
children?: ReactNode;
|
|
5613
5760
|
}
|
|
5614
5761
|
interface FooterSocialLinkProps extends ComponentPropsWithoutRef<"a"> {
|
|
5762
|
+
/**
|
|
5763
|
+
* Where it leads. An `http:`, `https:`, `mailto:`, `tel:` or relative address
|
|
5764
|
+
* makes a link; any other (`javascript:`, `data:`…) leaves it without one,
|
|
5765
|
+
* and the console says so once.
|
|
5766
|
+
*/
|
|
5767
|
+
href?: string;
|
|
5768
|
+
/**
|
|
5769
|
+
* Added to `noopener noreferrer`, which the link always carries: it opens
|
|
5770
|
+
* in a new tab.
|
|
5771
|
+
*/
|
|
5772
|
+
rel?: string;
|
|
5615
5773
|
icon: ReactNode;
|
|
5616
5774
|
label: string;
|
|
5617
5775
|
}
|
|
@@ -5619,7 +5777,7 @@ declare function FooterSocial({ className, children, ...props }: FooterSocialPro
|
|
|
5619
5777
|
declare namespace FooterSocial {
|
|
5620
5778
|
var displayName: string;
|
|
5621
5779
|
}
|
|
5622
|
-
declare function FooterSocialLink({ icon, label, className, ...props }: FooterSocialLinkProps): react_jsx_runtime.JSX.Element;
|
|
5780
|
+
declare function FooterSocialLink({ icon, label, href, rel, className, ...props }: FooterSocialLinkProps): react_jsx_runtime.JSX.Element;
|
|
5623
5781
|
declare namespace FooterSocialLink {
|
|
5624
5782
|
var displayName: string;
|
|
5625
5783
|
}
|
|
@@ -5654,6 +5812,10 @@ interface ScatterChartProps extends Omit<CartesianChartBaseProps, "grid">, Omit<
|
|
|
5654
5812
|
*/
|
|
5655
5813
|
maxPoints?: number;
|
|
5656
5814
|
margin?: Partial<ChartMargin>;
|
|
5815
|
+
/**
|
|
5816
|
+
* BCP 47 tag the numbers and the dates are written in. Defaults to the
|
|
5817
|
+
* `locale` of `UILabelsProvider`, then to the language of the runtime.
|
|
5818
|
+
*/
|
|
5657
5819
|
locale?: string;
|
|
5658
5820
|
plotLabel?: string;
|
|
5659
5821
|
}
|
|
@@ -5665,7 +5827,7 @@ interface ScatterChartProps extends Omit<CartesianChartBaseProps, "grid">, Omit<
|
|
|
5665
5827
|
* three slots stay tellable apart there. Past three series, facet the chart or
|
|
5666
5828
|
* fold the tail — a fourth colour would not be distinguishable.
|
|
5667
5829
|
*/
|
|
5668
|
-
declare function ScatterChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, bubble, trendLine, quadrants, pointRadius, overlay, legendToggle, maxPoints, margin, locale, plotLabel, className, ...props }: ScatterChartProps): react_jsx_runtime.JSX.Element;
|
|
5830
|
+
declare function ScatterChart({ data, series, x, y, height, width, size, grid, legend, tooltip, tableView, emphasis, title, description, loading, emptyState, error, errorState, onRetry, actions, onPointClick, bubble, trendLine, quadrants, pointRadius, overlay, legendToggle, maxPoints, margin, locale: localeProp, plotLabel, className, ...props }: ScatterChartProps): react_jsx_runtime.JSX.Element;
|
|
5669
5831
|
|
|
5670
5832
|
type SchemaFieldType = "text" | "varchar" | "char" | "int2" | "int4" | "int8" | "serial" | "bigserial" | "float4" | "float8" | "numeric" | "decimal" | "bool" | "date" | "time" | "timestamp" | "timestamptz" | "uuid" | "json" | "jsonb" | "bytea" | (string & {});
|
|
5671
5833
|
type SchemaField = {
|
|
@@ -6158,4 +6320,4 @@ declare function isFocusable(element: HTMLElement): boolean;
|
|
|
6158
6320
|
*/
|
|
6159
6321
|
declare function getFocusableElements(container: HTMLElement): HTMLElement[];
|
|
6160
6322
|
|
|
6161
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionVariant, AdvanceDetachable, type AdvanceDetachableProps, type AdvanceDetachableRef, type AdvanceDetachableRenderContext, type AggregateFunction, type Align, AreaChart, type AreaChartProps, Avatar, type AvatarProps, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerType, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BinSpec, BoxPlot, type BoxPlotBox, type BoxPlotProps, type BoxPlotQuantileKeys, type BoxStats, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BulletChart, type BulletChartProps, type BulletRow, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHART_ALL_PAIRS_LIMIT, CHART_DIVERGING_COLORS, CHART_DIVERGING_DARK_STOPS, CHART_DIVERGING_NEUTRAL_INDEX, CHART_DOWN_COLOR, CHART_MAX_COLOR_CLASSES, CHART_MUTED_COLOR, CHART_ORDINAL_COLORS, CHART_ORDINAL_DARK_STOPS, CHART_PALETTE_SIZE, CHART_PATTERNS, CHART_POINT_BUDGET, CHART_SEQUENTIAL_COLORS, CHART_SEQUENTIAL_DARK_STOPS, CHART_SERIES_COLORS, CHART_SURFACE_COLOR, CHART_UP_COLOR, Calendar, type CalendarColor, type CalendarDateRange, type CalendarDayState, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSize, type CalendarWeekStart, type Candle, CandlestickChart, type CandlestickChartProps, Card, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, CardTitle, type CardTitleProps, type CartesianChartBaseProps, type CartesianGeometry, type CartesianGeometryOptions, type CartesianOrientation, type CategoryPlacement, type ChartAnnotation, type ChartAnnotationBase, ChartAnnotationLayer, type ChartAnnotationLayerProps, ChartAxis, type ChartAxisOrientation, type ChartAxisProps, type ChartBandAnnotation, ChartBrushLayer, type ChartBrushLayerProps, type ChartBrushRange, type ChartColorScale, ChartContainer, type ChartContainerProps, type ChartContainerRenderArgs, type ChartCurve, type ChartDatum, type ChartDimensions, ChartExportButton, type ChartExportButtonProps, type ChartExportFormat, type ChartExportOptions, type ChartExportRow, type ChartFacetPanel, ChartFacets, type ChartFacetsProps, ChartFilterBar, type ChartFilterBarProps, ChartGrid, type ChartGridLines, type ChartGridProps, ChartLegend, type ChartLegendItem, type ChartLegendMarker, type ChartLegendPosition, type ChartLegendProps, type ChartLineAnnotation, type ChartMargin, type ChartOrientation, type ChartOverlay, type ChartOverlayRenderer, type ChartPattern, ChartPatternDefs, type ChartPatternDefsProps, type ChartPatternEntry, type ChartPeriod, ChartPeriodPicker, type ChartPeriodPickerProps, type ChartPeriodPreset, type ChartPlotContext, type ChartPoint, type ChartPointAnnotation, type ChartPointEvent, type ChartReferenceLine, type ChartResolvedSeries, ChartScaleLegend, type ChartScaleLegendProps, type ChartScaleType, type ChartSeries, type ChartSize, type ChartStatusProps, type ChartSyncContextValue, ChartSyncProvider, type ChartSyncProviderProps, ChartTableView, type ChartTableViewProps, type ChartTick, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipPayload, type ChartTooltipProps, type ChartXAxisConfig, type ChartXValue, type ChartYAxisConfig, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressColor, type CircularProgressProps, type CircularProgressSize, type CircularProgressThickness, type ColumnDef, DEFAULT_CHART_PERIOD_PRESETS, DEFAULT_CHART_WIDTH, DEFAULT_FIELD_TYPES, DataGrid, type DataGridMode, type DataGridProps, type DataGridRef, type Density, Detachable, type DetachableProps, type DetachableRef, DeviceMockup, type DeviceMockupProps, type DeviceOrientation, type DeviceSize, type DeviceTheme, type DeviceType, type DialogA11yProps, type DialogInitialFocus, type DialogReturnFocus, type DivergingScaleOptions, Divider, type DividerOrientation, type DividerProps, type DividerTextAlign, type DividerVariant, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, Dropdown, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownContextValue, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorProps, DropdownSubMenu, DropdownSubMenuContent, type DropdownSubMenuContentProps, type DropdownSubMenuProps, DropdownSubMenuTrigger, type DropdownSubMenuTriggerProps, DropdownTrigger, type DropdownTriggerProps, DumbbellChart, type DumbbellChartProps, type DumbbellRow, type DumbbellSort, FOCUSABLE_SELECTOR, FileSelector, type FileSelectorProps, type FilterOperator, type FilterType, type FilterValue, Footer, FooterBottom, type FooterBottomProps, FooterColumn, type FooterColumnProps, FooterLink, type FooterLinkProps, type FooterProps, FooterSection, type FooterSectionProps, FooterSocial, FooterSocialLink, type FooterSocialLinkProps, type FooterSocialProps, FunnelChart, type FunnelChartProps, type FunnelStage, GanttChart, type GanttChartProps, type GanttTask, Header, type HeaderProps, Heatmap, type HeatmapCell, type HeatmapProps, HelpButton, type HelpButtonProps, type HistogramBin, INERT_IGNORE_ATTRIBUTE, ImageUploader, type ImageUploaderProps, Indicator, type IndicatorColor, type IndicatorPlacement, type IndicatorProps, type IndicatorSize, type IndicatorVariant, Input, type InputProps, Label, type LabelColor, type LabelProps, type LabelSize, type LabelVariant, type LabelWeight, LineChart, type LineChartProps, MarkdownEditorComponent, type MentionData, MentionInput, type MentionInputProps, type MentionInputValue, type MentionSuggestion, Modal, type ModalProps, type NavItem, type NodeRegistryEntry, NumberInput, type NumberInputProps, Pagination, type PaginationConfig, type PaginationProps, PieChart, type PieChartProps, type Position, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant, RadioButton, type RadioButtonProps, ScatterChart, type ScatterChartProps, SchemaEditor, type SchemaEditorProps, type SchemaEditorRef, type SchemaField, type SchemaFieldEvent, type SchemaFieldType, type SchemaRelation, type SchemaRelationCardinality, type SchemaTable, type SchemaTableEvent, type SchemaValue, type SchemaViewport, Select, type SelectOption, type SelectProps, type SelectedFile, type SelectionMode, type SequentialScaleOptions, type Side, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarPosition, type SidebarProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, type SidebarVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderColor, type SliderMark, type SliderProps, type SliderSize, type SortDirection, type SortState, Sparkline, type SparklineProps, StatCard, type StatCardDelta, type StatCardDeltaDirection, type StatCardDeltaTone, StatCardGroup, type StatCardGroupProps, type StatCardProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsColor, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, type TimeTickScale, type TimeUnit, Toast, type ToastPosition, type ToastProps, type ToastType, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type TooltipSize, type TooltipTrigger, type TooltipVariant, type UILabels, type UILabelsOf, UILabelsProvider, type UILabelsProviderProps, type UseChartBrushOptions, type UseChartBrushResult, type UseChartSizeOptions, type UseChartSizeResult, type UseClickOutsideOptions, type UseDialogA11yOptions, type UseDialogA11yResult, type UseKeyboardNavigationOptions, type UsePositioningOptions, WaterfallChart, type WaterfallChartProps, type WaterfallKind, type WaterfallStep, WithHelpButton, type WithHelpButtonProps, Wizard, WizardActions, type WizardActionsProps, type WizardColor, WizardContent, type WizardContentProps, type WizardContextValue, type WizardDirection, WizardNext, type WizardNextProps, type WizardOrientation, WizardPanel, type WizardPanelProps, WizardPrevious, type WizardPreviousProps, type WizardProps, type WizardSize, type WizardStepChangeMeta, type WizardStepDefinition, type WizardStepStatus, WizardSteps, type WizardStepsProps, type WizardVariant, type WorkflowDirection, type WorkflowEdge, WorkflowEditor, type WorkflowEditorProps, type WorkflowEditorRef, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeActionEvent, type WorkflowNodeActionPosition, type WorkflowNodeEvent, type WorkflowPort, type WorkflowValue, type WorkflowViewport, autoLayoutTables, binEdges, binValues, boxStats, brushToPeriod, buildCartesianGeometry, cn, createCategoryLocator, createDefaultField, createDefaultTable, createDivergingScale, createPeriod, createPlotContext, createSequentialScale, decimateIndices, decimatePath, defaultUILabels, describeAnnotations, downloadChartData, endOfDay, findOwnedLayers, formatPeriodRange, formatTimeTick, formatUILabel, frenchUILabels, generateFieldId, generateRelationId, generateSQL, generateTableId, getFocusableElements, getOrdinalColor, getPattern, getSeriesColor, getSeriesLabel, hideOthers, isElementVisible, isFocusable, lttb, niceTimeTicks, patternBackground, patternFill, patternId, quantile, quantileSorted, rampColor, registerFloatingLayer, resetBarChartWarnings, resetDumbbellWarnings, resetFacetWarnings, resetPointBudgetWarning, resolvePeriodPreset, resolveSeriesColor, samePeriod, sampleEvenly, splitOverlay, startOfDay, sturgesBins, toChartCsv, toChartJson, toChartRows, toLegendItems, toTimestamp, useChartBrush, useChartSize, useChartSync, useClickOutside, useDialogA11y, useDropdownContext, useFocusItem, useKeyboardNavigation, usePositioning, useSidebar, useUILabels, useWizard };
|
|
6323
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionVariant, AdvanceDetachable, type AdvanceDetachableProps, type AdvanceDetachableRef, type AdvanceDetachableRenderContext, type AggregateFunction, type Align, AreaChart, type AreaChartProps, Avatar, type AvatarProps, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerType, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BinSpec, BoxPlot, type BoxPlotBox, type BoxPlotProps, type BoxPlotQuantileKeys, type BoxStats, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BulletChart, type BulletChartProps, type BulletRow, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHART_ALL_PAIRS_LIMIT, CHART_DIVERGING_COLORS, CHART_DIVERGING_DARK_STOPS, CHART_DIVERGING_NEUTRAL_INDEX, CHART_DOWN_COLOR, CHART_MAX_COLOR_CLASSES, CHART_MUTED_COLOR, CHART_ORDINAL_COLORS, CHART_ORDINAL_DARK_STOPS, CHART_PALETTE_SIZE, CHART_PATTERNS, CHART_POINT_BUDGET, CHART_SEQUENTIAL_COLORS, CHART_SEQUENTIAL_DARK_STOPS, CHART_SERIES_COLORS, CHART_SURFACE_COLOR, CHART_UP_COLOR, Calendar, type CalendarColor, type CalendarDateRange, type CalendarDayState, type CalendarLabels, type CalendarMode, type CalendarProps, type CalendarSize, type CalendarWeekStart, type Candle, CandlestickChart, type CandlestickChartProps, Card, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, CardTitle, type CardTitleProps, type CartesianChartBaseProps, type CartesianGeometry, type CartesianGeometryOptions, type CartesianOrientation, type CategoryPlacement, type ChartAnnotation, type ChartAnnotationBase, ChartAnnotationLayer, type ChartAnnotationLayerProps, ChartAxis, type ChartAxisOrientation, type ChartAxisProps, type ChartBandAnnotation, ChartBrushLayer, type ChartBrushLayerProps, type ChartBrushRange, type ChartColorScale, ChartContainer, type ChartContainerProps, type ChartContainerRenderArgs, type ChartCurve, type ChartDatum, type ChartDimensions, ChartExportButton, type ChartExportButtonProps, type ChartExportFormat, type ChartExportOptions, type ChartExportRow, type ChartFacetPanel, ChartFacets, type ChartFacetsProps, ChartFilterBar, type ChartFilterBarProps, ChartGrid, type ChartGridLines, type ChartGridProps, ChartLegend, type ChartLegendItem, type ChartLegendMarker, type ChartLegendPosition, type ChartLegendProps, type ChartLineAnnotation, type ChartMargin, type ChartOrientation, type ChartOverlay, type ChartOverlayRenderer, type ChartPattern, ChartPatternDefs, type ChartPatternDefsProps, type ChartPatternEntry, type ChartPeriod, ChartPeriodPicker, type ChartPeriodPickerProps, type ChartPeriodPreset, type ChartPlotContext, type ChartPoint, type ChartPointAnnotation, type ChartPointEvent, type ChartReferenceLine, type ChartResolvedSeries, ChartScaleLegend, type ChartScaleLegendProps, type ChartScaleType, type ChartSeries, type ChartSize, type ChartStatusProps, type ChartSyncContextValue, ChartSyncProvider, type ChartSyncProviderProps, ChartTableView, type ChartTableViewProps, type ChartTick, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTooltipPayload, type ChartTooltipProps, type ChartXAxisConfig, type ChartXValue, type ChartYAxisConfig, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressColor, type CircularProgressProps, type CircularProgressSize, type CircularProgressThickness, type ColumnDef, DEFAULT_CHART_PERIOD_PRESETS, DEFAULT_CHART_WIDTH, DEFAULT_FIELD_TYPES, DataGrid, type DataGridMode, type DataGridProps, type DataGridRef, type Density, Detachable, type DetachableProps, type DetachableRef, DeviceMockup, type DeviceMockupProps, type DeviceOrientation, type DeviceSize, type DeviceTheme, type DeviceType, type DialogA11yProps, type DialogInitialFocus, type DialogReturnFocus, type DivergingScaleOptions, Divider, type DividerOrientation, type DividerProps, type DividerTextAlign, type DividerVariant, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, Dropdown, DropdownCheckboxItem, type DropdownCheckboxItemProps, DropdownContent, type DropdownContentProps, type DropdownContextValue, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, type DropdownProps, DropdownRadioGroup, type DropdownRadioGroupProps, DropdownRadioItem, type DropdownRadioItemProps, DropdownSeparator, type DropdownSeparatorProps, DropdownSubMenu, DropdownSubMenuContent, type DropdownSubMenuContentProps, type DropdownSubMenuProps, DropdownSubMenuTrigger, type DropdownSubMenuTriggerProps, DropdownTrigger, type DropdownTriggerProps, DumbbellChart, type DumbbellChartProps, type DumbbellRow, type DumbbellSort, FOCUSABLE_SELECTOR, FileSelector, type FileSelectorProps, type FilterOperator, type FilterType, type FilterValue, Footer, FooterBottom, type FooterBottomProps, FooterColumn, type FooterColumnProps, FooterLink, type FooterLinkProps, type FooterProps, FooterSection, type FooterSectionProps, FooterSocial, FooterSocialLink, type FooterSocialLinkProps, type FooterSocialProps, FunnelChart, type FunnelChartProps, type FunnelStage, GanttChart, type GanttChartProps, type GanttTask, Header, type HeaderProps, Heatmap, type HeatmapCell, type HeatmapProps, HelpButton, type HelpButtonProps, type HistogramBin, INERT_IGNORE_ATTRIBUTE, ImageUploader, type ImageUploaderProps, Indicator, type IndicatorColor, type IndicatorPlacement, type IndicatorProps, type IndicatorSize, type IndicatorVariant, Input, type InputProps, Label, type LabelColor, type LabelProps, type LabelSize, type LabelVariant, type LabelWeight, LineChart, type LineChartProps, MarkdownEditorComponent, type MentionData, MentionInput, type MentionInputProps, type MentionInputValue, type MentionSuggestion, Modal, type ModalProps, type NavItem, type NodeRegistryEntry, NumberInput, type NumberInputProps, Pagination, type PaginationConfig, type PaginationProps, PieChart, type PieChartProps, type Position, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant, RadioButton, type RadioButtonProps, ScatterChart, type ScatterChartProps, SchemaEditor, type SchemaEditorProps, type SchemaEditorRef, type SchemaField, type SchemaFieldEvent, type SchemaFieldType, type SchemaRelation, type SchemaRelationCardinality, type SchemaTable, type SchemaTableEvent, type SchemaValue, type SchemaViewport, Select, type SelectOption, type SelectProps, type SelectedFile, type SelectionMode, type SequentialScaleOptions, type Side, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarPosition, type SidebarProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, type SidebarVariant, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderColor, type SliderMark, type SliderProps, type SliderSize, type SortDirection, type SortState, Sparkline, type SparklineProps, StatCard, type StatCardDelta, type StatCardDeltaDirection, type StatCardDeltaTone, StatCardGroup, type StatCardGroupProps, type StatCardProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsColor, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, type TimeTickScale, type TimeUnit, Toast, type ToastPosition, type ToastProps, type ToastType, type ToastVariant, Tooltip, type TooltipPosition, type TooltipProps, type TooltipSize, type TooltipTrigger, type TooltipVariant, type UILabels, type UILabelsOf, UILabelsProvider, type UILabelsProviderProps, type UseChartBrushOptions, type UseChartBrushResult, type UseChartSizeOptions, type UseChartSizeResult, type UseClickOutsideOptions, type UseDialogA11yOptions, type UseDialogA11yResult, type UseKeyboardNavigationOptions, type UsePositioningOptions, WaterfallChart, type WaterfallChartProps, type WaterfallKind, type WaterfallStep, WithHelpButton, type WithHelpButtonProps, Wizard, WizardActions, type WizardActionsProps, type WizardColor, WizardContent, type WizardContentProps, type WizardContextValue, type WizardDirection, WizardNext, type WizardNextProps, type WizardOrientation, WizardPanel, type WizardPanelProps, WizardPrevious, type WizardPreviousProps, type WizardProps, type WizardSize, type WizardStepChangeMeta, type WizardStepDefinition, type WizardStepStatus, WizardSteps, type WizardStepsProps, type WizardVariant, type WorkflowDirection, type WorkflowEdge, WorkflowEditor, type WorkflowEditorProps, type WorkflowEditorRef, type WorkflowNode, type WorkflowNodeAction, type WorkflowNodeActionEvent, type WorkflowNodeActionPosition, type WorkflowNodeEvent, type WorkflowPort, type WorkflowValue, type WorkflowViewport, autoLayoutTables, binEdges, binValues, boxStats, brushToPeriod, buildCartesianGeometry, cn, createCategoryLocator, createDefaultField, createDefaultTable, createDivergingScale, createPeriod, createPlotContext, createSequentialScale, decimateIndices, decimatePath, defaultUILabels, describeAnnotations, downloadChartData, endOfDay, findOwnedLayers, formatPeriodRange, formatTimeTick, formatUILabel, frenchUILabels, generateFieldId, generateRelationId, generateSQL, generateTableId, getFocusableElements, getOrdinalColor, getPattern, getSeriesColor, getSeriesLabel, hideOthers, isElementVisible, isFocusable, lttb, niceTimeTicks, patternBackground, patternFill, patternId, quantile, quantileSorted, rampColor, registerFloatingLayer, resetBarChartWarnings, resetDumbbellWarnings, resetFacetWarnings, resetPointBudgetWarning, resolvePeriodPreset, resolveSeriesColor, samePeriod, sampleEvenly, splitOverlay, startOfDay, sturgesBins, toChartCsv, toChartJson, toChartRows, toLegendItems, toTimestamp, useChartBrush, useChartSize, useChartSync, useClickOutside, useDialogA11y, useDropdownContext, useFocusItem, useKeyboardNavigation, usePositioning, useSidebar, useUILabels, useUILocale, useWizard };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./components/index.js";export*from"./hooks/index.js";import{cn as s}from"./lib/cn.js";import{UILabelsProvider as a,useUILabels as b}from"./lib/i18n.js";import{defaultUILabels as
|
|
1
|
+
export*from"./components/index.js";export*from"./hooks/index.js";import{cn as s}from"./lib/cn.js";import{UILabelsProvider as a,useUILabels as b,useUILocale as f}from"./lib/i18n.js";import{defaultUILabels as L,frenchUILabels as m,formatUILabel as p}from"./lib/ui-labels.js";import{hideOthers as U,registerFloatingLayer as x,findOwnedLayers as n,INERT_IGNORE_ATTRIBUTE as E}from"./lib/aria-hide.js";import{FOCUSABLE_SELECTOR as u,getFocusableElements as O,isFocusable as c,isElementVisible as T}from"./lib/focus.js";export{u as FOCUSABLE_SELECTOR,E as INERT_IGNORE_ATTRIBUTE,a as UILabelsProvider,s as cn,L as defaultUILabels,n as findOwnedLayers,p as formatUILabel,m as frenchUILabels,O as getFocusableElements,U as hideOthers,T as isElementVisible,c as isFocusable,x as registerFloatingLayer,b as useUILabels,f as useUILocale};
|
package/dist/lib/i18n.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";"use client";var
|
|
1
|
+
"use strict";"use client";var i=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var f=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})},p=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of U(e))!b.call(t,o)&&o!==n&&i(t,o,{get:()=>e[o],enumerable:!(s=I(e,o))||s.enumerable});return t};var P=t=>p(i({},"__esModule",{value:!0}),t);var g={};f(g,{UILabelsProvider:()=>x,defaultUILabels:()=>a.defaultUILabels,formatUILabel:()=>a.formatUILabel,frenchUILabels:()=>a.frenchUILabels,useUILabels:()=>m,useUILocale:()=>v});module.exports=P(g);var r=require("react"),u=require("./ui-labels.cjs"),a=require("./ui-labels.cjs"),c=require("react/jsx-runtime"),l=(0,r.createContext)(u.defaultUILabels),d=(0,r.createContext)(void 0);function x({labels:t,locale:e,children:n}){let s=(0,r.useContext)(l),o=(0,r.useContext)(d),L=(0,r.useMemo)(()=>({...s,...t}),[s,t]);return(0,c.jsx)(d.Provider,{value:e??o,children:(0,c.jsx)(l.Provider,{value:L,children:n})})}function v(t){let e=(0,r.useContext)(d);return t??e}function m(t){let e=(0,r.useContext)(l),n=t?JSON.stringify(t):void 0;return(0,r.useMemo)(()=>n===void 0?e:{...e,...JSON.parse(n)},[e,n])}0&&(module.exports={UILabelsProvider,defaultUILabels,formatUILabel,frenchUILabels,useUILabels,useUILocale});
|
package/dist/lib/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{createContext as
|
|
1
|
+
"use client";import{createContext as l,useContext as n,useMemo as d}from"react";import{defaultUILabels as L}from"./ui-labels.js";import{defaultUILabels as v,frenchUILabels as m,formatUILabel as g}from"./ui-labels.js";import{jsx as i}from"react/jsx-runtime";var o=l(L),a=l(void 0);function b({labels:e,locale:t,children:r}){let s=n(o),c=n(a),u=d(()=>({...s,...e}),[s,e]);return i(a.Provider,{value:t??c,children:i(o.Provider,{value:u,children:r})})}function f(e){let t=n(a);return e??t}function p(e){let t=n(o),r=e?JSON.stringify(e):void 0;return d(()=>r===void 0?t:{...t,...JSON.parse(r)},[t,r])}export{b as UILabelsProvider,v as defaultUILabels,g as formatUILabel,m as frenchUILabels,p as useUILabels,f as useUILocale};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(n,e)=>{for(var t in e)r(n,t,{get:e[t],enumerable:!0})},a=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of f(e))!c.call(n,s)&&s!==t&&r(n,s,{get:()=>e[s],enumerable:!(i=d(e,s))||i.enumerable});return n};var h=n=>a(r({},"__esModule",{value:!0}),n);var C={};l(C,{componentHref:()=>S,mergeRel:()=>E,safeHref:()=>w});module.exports=h(C);var g=new Set(["http","https","mailto","tel"]),p=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,m=/^([a-z][a-z\d+.-]*):/i;function w(n){return n==null?void 0:o(n)===void 0?n:void 0}function o(n){let e=m.exec(n.replace(p,""));if(!e)return;let t=e[1].toLowerCase();return g.has(t)?void 0:t}var u=new Set;function S(n,e){if(e==null)return;let t=o(e);if(t===void 0)return e;let i=`${n} ${t}`;u.has(i)||(u.add(i),console.warn(`[@synertech/ui] ${n} renders no link for a "${t}:" address. Only http:, https:, mailto:, tel: and addresses without a scheme are followed; the text is shown without its link.`))}function E(n,e){let t=(n??"").split(/\s+/).filter(Boolean),i=new Set(t.map(s=>s.toLowerCase()));for(let s of e.split(" "))i.has(s)||t.push(s);return t.join(" ")}0&&(module.exports={componentHref,mergeRel,safeHref});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=new Set(["http","https","mailto","tel"]),d=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,f=/^([a-z][a-z\d+.-]*):/i;function c(e){return e==null?void 0:u(e)===void 0?e:void 0}function u(e){let t=f.exec(e.replace(d,""));if(!t)return;let n=t[1].toLowerCase();return o.has(n)?void 0:n}var r=new Set;function l(e,t){if(t==null)return;let n=u(t);if(n===void 0)return t;let s=`${e} ${n}`;r.has(s)||(r.add(s),console.warn(`[@synertech/ui] ${e} renders no link for a "${n}:" address. Only http:, https:, mailto:, tel: and addresses without a scheme are followed; the text is shown without its link.`))}function a(e,t){let n=(e??"").split(/\s+/).filter(Boolean),s=new Set(n.map(i=>i.toLowerCase()));for(let i of t.split(" "))s.has(i)||n.push(i);return n.join(" ")}export{l as componentHref,a as mergeRel,c as safeHref};
|