@synertech/ui 0.47.1 → 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.
Files changed (45) hide show
  1. package/.claude/skills/use-synertech-ui/SKILL.md +33 -1
  2. package/README.md +23 -0
  3. package/dist/components/area-chart/AreaChart.cjs +1 -1
  4. package/dist/components/area-chart/AreaChart.js +1 -1
  5. package/dist/components/bar-chart/BarChart.cjs +1 -1
  6. package/dist/components/bar-chart/BarChart.js +1 -1
  7. package/dist/components/box-plot/BoxPlot.cjs +1 -1
  8. package/dist/components/box-plot/BoxPlot.js +1 -1
  9. package/dist/components/bullet-chart/BulletChart.cjs +1 -1
  10. package/dist/components/bullet-chart/BulletChart.js +1 -1
  11. package/dist/components/calendar/Calendar.cjs +1 -1
  12. package/dist/components/calendar/Calendar.js +1 -1
  13. package/dist/components/candlestick-chart/CandlestickChart.cjs +1 -1
  14. package/dist/components/candlestick-chart/CandlestickChart.js +1 -1
  15. package/dist/components/chart/ChartPeriodPicker.cjs +1 -1
  16. package/dist/components/chart/ChartPeriodPicker.js +1 -1
  17. package/dist/components/datagrid/DataGrid.cjs +1 -1
  18. package/dist/components/datagrid/DataGrid.js +1 -1
  19. package/dist/components/dumbbell-chart/DumbbellChart.cjs +1 -1
  20. package/dist/components/dumbbell-chart/DumbbellChart.js +1 -1
  21. package/dist/components/form/number-input/NumberInput.cjs +1 -1
  22. package/dist/components/form/number-input/NumberInput.js +1 -1
  23. package/dist/components/funnel-chart/FunnelChart.cjs +1 -1
  24. package/dist/components/funnel-chart/FunnelChart.js +1 -1
  25. package/dist/components/gantt-chart/GanttChart.cjs +1 -1
  26. package/dist/components/gantt-chart/GanttChart.js +1 -1
  27. package/dist/components/heat-map/Heatmap.cjs +1 -1
  28. package/dist/components/heat-map/Heatmap.js +1 -1
  29. package/dist/components/line-chart/LineChart.cjs +1 -1
  30. package/dist/components/line-chart/LineChart.js +1 -1
  31. package/dist/components/pie-chart/PieChart.cjs +1 -1
  32. package/dist/components/pie-chart/PieChart.js +1 -1
  33. package/dist/components/scatter-chart/ScatterChart.cjs +1 -1
  34. package/dist/components/scatter-chart/ScatterChart.js +1 -1
  35. package/dist/components/stat-card/StatCard.cjs +1 -1
  36. package/dist/components/stat-card/StatCard.js +1 -1
  37. package/dist/components/waterfall-chart/WaterfallChart.cjs +1 -1
  38. package/dist/components/waterfall-chart/WaterfallChart.js +1 -1
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.cts +135 -22
  41. package/dist/index.d.ts +135 -22
  42. package/dist/index.js +1 -1
  43. package/dist/lib/i18n.cjs +1 -1
  44. package/dist/lib/i18n.js +1 -1
  45. 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";
@@ -959,6 +967,10 @@ interface BulletChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
959
967
  tableView?: boolean | "toggle";
960
968
  title?: ReactNode;
961
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
+ */
962
974
  locale?: string;
963
975
  plotLabel?: string;
964
976
  /** Header of the value column of the data table. */
@@ -1001,7 +1013,7 @@ interface BulletRow {
1001
1013
  * common axis to read across rows: pass `normalize="shared"` (or a `domain`)
1002
1014
  * when the rows carry the same unit, and the value axis comes back.
1003
1015
  */
1004
- 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;
1005
1017
 
1006
1018
  interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
1007
1019
  label?: string;
@@ -1077,8 +1089,18 @@ interface CalendarBaseProps extends Omit<ComponentPropsWithoutRef<"div">, "onCha
1077
1089
  numberOfMonths?: number;
1078
1090
  /** First day of the week — 0 = Sunday … 6 = Saturday. */
1079
1091
  weekStartsOn?: CalendarWeekStart;
1080
- /** BCP 47 locale used for month/weekday names. */
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
+ */
1081
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;
1082
1104
  size?: CalendarSize;
1083
1105
  color?: CalendarColor;
1084
1106
  /** Earliest selectable date (inclusive). */
@@ -1340,6 +1362,10 @@ interface BoxPlotProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
1340
1362
  title?: ReactNode;
1341
1363
  description?: ReactNode;
1342
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
+ */
1343
1369
  locale?: string;
1344
1370
  plotLabel?: string;
1345
1371
  format?: (value: number) => string;
@@ -1369,7 +1395,7 @@ interface BoxPlotProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
1369
1395
  * with a panel each, which keeps them on a shared scale without asking the
1370
1396
  * reader to hold two colour legends at once.
1371
1397
  */
1372
- 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;
1373
1399
 
1374
1400
  /** One session, as the tooltip and the click handler see it. */
1375
1401
  interface Candle {
@@ -1427,6 +1453,10 @@ interface CandlestickChartProps extends Omit<ComponentPropsWithoutRef<"figure">,
1427
1453
  title?: ReactNode;
1428
1454
  description?: ReactNode;
1429
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
+ */
1430
1460
  locale?: string;
1431
1461
  plotLabel?: string;
1432
1462
  openLabel?: string;
@@ -1462,7 +1492,7 @@ interface CandlestickChartProps extends Omit<ComponentPropsWithoutRef<"figure">,
1462
1492
  * its movement; a share worth 180 dollars read from zero is a flat band at
1463
1493
  * the top of the plot.
1464
1494
  */
1465
- 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;
1466
1496
 
1467
1497
  /** Geometry handed to the render prop once the container has been measured. */
1468
1498
  interface ChartContainerRenderArgs {
@@ -2299,6 +2329,11 @@ interface ChartScaleLegendProps extends Omit<ComponentPropsWithoutRef<"div">, "c
2299
2329
  size?: ChartSize;
2300
2330
  /** Thickness of the colour bar. */
2301
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
+ */
2302
2337
  locale?: string;
2303
2338
  }
2304
2339
  /**
@@ -2383,6 +2418,11 @@ interface ChartFacetsProps extends Omit<ComponentPropsWithoutRef<"div">, "childr
2383
2418
  title?: ReactNode;
2384
2419
  description?: ReactNode;
2385
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
+ */
2386
2426
  locale?: string;
2387
2427
  emptyState?: ReactNode;
2388
2428
  children: (panel: ChartFacetPanel) => ReactNode;
@@ -2479,6 +2519,10 @@ interface ChartPeriodPickerProps extends Omit<ComponentPropsWithoutRef<"button">
2479
2519
  /** Number of months shown side by side by the calendar. */
2480
2520
  numberOfMonths?: number;
2481
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
+ */
2482
2526
  locale?: string;
2483
2527
  size?: ChartSize;
2484
2528
  /** Which end of the trigger the panel lines up with. */
@@ -2503,7 +2547,7 @@ interface ChartPeriodPickerProps extends Omit<ComponentPropsWithoutRef<"button">
2503
2547
  * somewhere inside: a window is data, and data a component makes up on its own
2504
2548
  * cannot be tested, frozen or shared between two charts.
2505
2549
  */
2506
- 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;
2507
2551
 
2508
2552
  /**
2509
2553
  * Width a chart draws at before its container has been measured.
@@ -2642,6 +2686,10 @@ interface DumbbellChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "c
2642
2686
  title?: ReactNode;
2643
2687
  description?: ReactNode;
2644
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
+ */
2645
2693
  locale?: string;
2646
2694
  plotLabel?: string;
2647
2695
  /** Header of the change column of the data table. */
@@ -2672,7 +2720,7 @@ interface DumbbellChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "c
2672
2720
  * `sort="gap"` is what turns the chart from a list into a finding: the rows
2673
2721
  * that moved most come to the top.
2674
2722
  */
2675
- 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;
2676
2724
 
2677
2725
  /** One stage, as the tooltip and the click handler see it. */
2678
2726
  interface FunnelStage {
@@ -2725,6 +2773,10 @@ interface FunnelChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
2725
2773
  tableView?: boolean | "toggle";
2726
2774
  title?: ReactNode;
2727
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
+ */
2728
2780
  locale?: string;
2729
2781
  plotLabel?: string;
2730
2782
  /** Header of the value column of the data table. */
@@ -2759,7 +2811,7 @@ interface FunnelChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chi
2759
2811
  * Use it for a path people walk in one direction. Stages that are not ordered
2760
2812
  * are a `BarChart`, and a breakdown of one total is a `PieChart`.
2761
2813
  */
2762
- 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;
2763
2815
 
2764
2816
  /** One task, as the tooltip and the click handler see it. */
2765
2817
  interface GanttTask {
@@ -2829,6 +2881,10 @@ interface GanttChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chil
2829
2881
  title?: ReactNode;
2830
2882
  description?: ReactNode;
2831
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
+ */
2832
2888
  locale?: string;
2833
2889
  plotLabel?: string;
2834
2890
  startLabel?: string;
@@ -2861,7 +2917,7 @@ interface GanttChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "chil
2861
2917
  * month — rather than on round numbers of milliseconds, which is what a
2862
2918
  * decimal tick generator produces when it is pointed at a date.
2863
2919
  */
2864
- 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;
2865
2921
 
2866
2922
  /** What a step does to the running total. */
2867
2923
  type WaterfallKind = "increase" | "decrease" | "total";
@@ -2935,6 +2991,10 @@ interface WaterfallChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "
2935
2991
  title?: ReactNode;
2936
2992
  description?: ReactNode;
2937
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
+ */
2938
2998
  locale?: string;
2939
2999
  plotLabel?: string;
2940
3000
  /** Header of the contribution column of the data table. */
@@ -2968,7 +3028,7 @@ interface WaterfallChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "
2968
3028
  * The order of the rows IS the chart, so there is no `sort`: reordering the
2969
3029
  * steps of a waterfall produces a different, and usually false, story.
2970
3030
  */
2971
- 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;
2972
3032
 
2973
3033
  interface CheckboxProps extends Omit<ComponentPropsWithoutRef<"input">, "size" | "onChange" | "type"> {
2974
3034
  checked?: boolean;
@@ -3575,20 +3635,39 @@ declare function formatUILabel(template: string, values: Record<string, string |
3575
3635
  interface UILabelsProviderProps {
3576
3636
  /** Partial overrides merged over the labels inherited from the parent provider. */
3577
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;
3578
3645
  children: ReactNode;
3579
3646
  }
3580
3647
  /**
3581
3648
  * Translates the strings built into the library.
3582
3649
  *
3583
3650
  * ```tsx
3584
- * <UILabelsProvider labels={locale === "fr" ? frenchUILabels : defaultUILabels}>
3651
+ * <UILabelsProvider labels={frenchUILabels} locale="fr-CA">
3585
3652
  * <App />
3586
3653
  * </UILabelsProvider>
3587
3654
  * ```
3588
3655
  *
3589
- * Providers can be nested: a subtree only needs to override what differs.
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.
3590
3659
  */
3591
- declare function UILabelsProvider({ labels, children }: UILabelsProviderProps): react_jsx_runtime.JSX.Element;
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`.
3669
+ */
3670
+ declare function useUILocale(override?: string): string | undefined;
3592
3671
  /**
3593
3672
  * Reads the current labels (English defaults when no provider is mounted).
3594
3673
  *
@@ -3806,6 +3885,11 @@ interface DataGridProps<T = unknown> {
3806
3885
  * `emptyState` win over both.
3807
3886
  */
3808
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;
3809
3893
  /** Show footer with aggregates */
3810
3894
  showFooter?: boolean;
3811
3895
  /** Row click callback */
@@ -4485,6 +4569,11 @@ interface NumberInputProps extends Omit<React.ComponentPropsWithoutRef<"input">,
4485
4569
  onChange?: (value: number | null) => void;
4486
4570
  format?: "number" | "currency" | "percentage" | "decimal";
4487
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
+ */
4488
4577
  locale?: string;
4489
4578
  decimals?: number;
4490
4579
  min?: number;
@@ -4723,6 +4812,10 @@ interface HeatmapProps extends Omit<ComponentPropsWithoutRef<"figure">, "childre
4723
4812
  tableView?: boolean | "toggle";
4724
4813
  title?: ReactNode;
4725
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
+ */
4726
4819
  locale?: string;
4727
4820
  plotLabel?: string;
4728
4821
  /**
@@ -4758,7 +4851,7 @@ interface HeatmapCell {
4758
4851
  * neighbouring cells stop being tellable apart, and a fine grid is read as a
4759
4852
  * wash anyway.
4760
4853
  */
4761
- 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;
4762
4855
 
4763
4856
  interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWithoutRef<"figure">, keyof CartesianChartBaseProps | "children" | "title"> {
4764
4857
  curve?: ChartCurve;
@@ -4824,7 +4917,10 @@ interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
4824
4917
  */
4825
4918
  sync?: boolean;
4826
4919
  margin?: Partial<ChartMargin>;
4827
- /** BCP 47 tag used to format the axes and the tooltip. */
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
+ */
4828
4924
  locale?: string;
4829
4925
  /** Describes the plot for assistive technology. The table view carries the values. */
4830
4926
  plotLabel?: string;
@@ -4844,7 +4940,7 @@ interface LineChartProps extends CartesianChartBaseProps, Omit<ComponentPropsWit
4844
4940
  * the resolved geometry over and lets the application draw inside the plot
4845
4941
  * with the chart's own scales, instead of forking the component.
4846
4942
  */
4847
- 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;
4848
4944
 
4849
4945
  interface ModalProps {
4850
4946
  /**
@@ -5024,6 +5120,10 @@ interface PieChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "childr
5024
5120
  * identity, and giving it a texture would make it look like one.
5025
5121
  */
5026
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
+ */
5027
5127
  locale?: string;
5028
5128
  plotLabel?: string;
5029
5129
  /**
@@ -5048,7 +5148,7 @@ interface PieChartProps extends Omit<ComponentPropsWithoutRef<"figure">, "childr
5048
5148
  * over six slices at most, which is why the tail folds into a single bucket
5049
5149
  * rather than taking a seventh colour.
5050
5150
  */
5051
- 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;
5052
5152
 
5053
5153
  type ProgressBarSize = "xs" | "sm" | "md" | "lg" | "xl";
5054
5154
  type ProgressBarColor = "default" | "primary" | "success" | "warning" | "error" | "info";
@@ -5348,7 +5448,10 @@ interface StatCardDelta {
5348
5448
  period?: ReactNode;
5349
5449
  /** Defaults to `up`: a rise is good news. */
5350
5450
  goodWhen?: StatCardDeltaTone;
5351
- /** Overrides the direction derived from the sign. */
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
+ */
5352
5455
  direction?: StatCardDeltaDirection;
5353
5456
  /** Replaces the default signed percentage. */
5354
5457
  format?: (value: number) => string;
@@ -5359,6 +5462,12 @@ interface StatCardProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
5359
5462
  value: ReactNode;
5360
5463
  /** Formats a numeric `value`. Defaults to grouped, then compact past 10 000. */
5361
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;
5362
5471
  delta?: StatCardDelta;
5363
5472
  /** Values behind the sparkline. Left out, no sparkline is drawn. */
5364
5473
  trend?: readonly (number | null | undefined)[];
@@ -5376,7 +5485,7 @@ interface StatCardProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
5376
5485
  * This is the right form for one number — a one-bar bar chart is not. No
5377
5486
  * hooks, so it renders on the server.
5378
5487
  */
5379
- 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;
5380
5489
 
5381
5490
  interface StatCardGroupProps extends ComponentPropsWithoutRef<"div"> {
5382
5491
  /** Columns from the `sm` breakpoint up. Below it, the tiles stack. */
@@ -5703,6 +5812,10 @@ interface ScatterChartProps extends Omit<CartesianChartBaseProps, "grid">, Omit<
5703
5812
  */
5704
5813
  maxPoints?: number;
5705
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
+ */
5706
5819
  locale?: string;
5707
5820
  plotLabel?: string;
5708
5821
  }
@@ -5714,7 +5827,7 @@ interface ScatterChartProps extends Omit<CartesianChartBaseProps, "grid">, Omit<
5714
5827
  * three slots stay tellable apart there. Past three series, facet the chart or
5715
5828
  * fold the tail — a fourth colour would not be distinguishable.
5716
5829
  */
5717
- 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;
5718
5831
 
5719
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 & {});
5720
5833
  type SchemaField = {
@@ -6207,4 +6320,4 @@ declare function isFocusable(element: HTMLElement): boolean;
6207
6320
  */
6208
6321
  declare function getFocusableElements(container: HTMLElement): HTMLElement[];
6209
6322
 
6210
- 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 i,frenchUILabels as m,formatUILabel as p}from"./lib/ui-labels.js";import{hideOthers as I,registerFloatingLayer as U,findOwnedLayers as x,INERT_IGNORE_ATTRIBUTE as n}from"./lib/aria-hide.js";import{FOCUSABLE_SELECTOR as d,getFocusableElements as O,isFocusable as u,isElementVisible as T}from"./lib/focus.js";export{d as FOCUSABLE_SELECTOR,n as INERT_IGNORE_ATTRIBUTE,a as UILabelsProvider,s as cn,i as defaultUILabels,x as findOwnedLayers,p as formatUILabel,m as frenchUILabels,O as getFocusableElements,I as hideOthers,T as isElementVisible,u as isFocusable,U as registerFloatingLayer,b as useUILabels};
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 n=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(t,e)=>{for(var a in e)n(t,a,{get:e[a],enumerable:!0})},u=(t,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of U(e))!d.call(t,s)&&s!==a&&n(t,s,{get:()=>e[s],enumerable:!(l=L(e,s))||l.enumerable});return t};var c=t=>u(n({},"__esModule",{value:!0}),t);var x={};f(x,{UILabelsProvider:()=>p,defaultUILabels:()=>o.defaultUILabels,formatUILabel:()=>o.formatUILabel,frenchUILabels:()=>o.frenchUILabels,useUILabels:()=>P});module.exports=c(x);var r=require("react"),b=require("./ui-labels.cjs"),o=require("./ui-labels.cjs"),I=require("react/jsx-runtime"),i=(0,r.createContext)(b.defaultUILabels);function p({labels:t,children:e}){let a=(0,r.useContext)(i),l=(0,r.useMemo)(()=>({...a,...t}),[a,t]);return(0,I.jsx)(i.Provider,{value:l,children:e})}function P(t){let e=(0,r.useContext)(i),a=t?JSON.stringify(t):void 0;return(0,r.useMemo)(()=>a===void 0?e:{...e,...JSON.parse(a)},[e,a])}0&&(module.exports={UILabelsProvider,defaultUILabels,formatUILabel,frenchUILabels,useUILabels});
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 n,useContext as o,useMemo as s}from"react";import{defaultUILabels as i}from"./ui-labels.js";import{defaultUILabels as c,frenchUILabels as p,formatUILabel as P}from"./ui-labels.js";import{jsx as b}from"react/jsx-runtime";var r=n(i);function U({labels:t,children:a}){let e=o(r),l=s(()=>({...e,...t}),[e,t]);return b(r.Provider,{value:l,children:a})}function d(t){let a=o(r),e=t?JSON.stringify(t):void 0;return s(()=>e===void 0?a:{...a,...JSON.parse(e)},[a,e])}export{U as UILabelsProvider,c as defaultUILabels,P as formatUILabel,p as frenchUILabels,d as useUILabels};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synertech/ui",
3
- "version": "0.47.1",
3
+ "version": "0.48.0",
4
4
  "type": "module",
5
5
  "description": "Synertech UI component library",
6
6
  "main": "./dist/index.cjs",