@factorialco/f0-react 4.58.0 → 4.60.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.
@@ -79,6 +79,7 @@ import { PieChartProps as PieChartProps_2 } from './experimental';
79
79
  import { PopoverProps } from '@radix-ui/react-popover';
80
80
  import { ProgressBarCellValue } from './types/progressBar';
81
81
  import { ProgressBarCellValue as ProgressBarCellValue_2 } from './experimental';
82
+ import { ProgressSeriesCellValue } from './types/progressSeries';
82
83
  import { Props as Props_5 } from './types';
83
84
  import { PropsWithChildren } from 'react';
84
85
  import { Provider } from 'react';
@@ -3314,7 +3315,15 @@ declare const defaultTranslations: {
3314
3315
  readonly position: "{{current}} of {{total}}";
3315
3316
  readonly viewDetail: "View detail";
3316
3317
  readonly hideDetail: "Hide detail";
3318
+ readonly viewTranscription: "View transcription";
3319
+ readonly hideTranscription: "Hide transcription";
3320
+ readonly viewSummary: "View summary";
3321
+ readonly hideSummary: "Hide summary";
3317
3322
  readonly details: "Recording details";
3323
+ readonly summary: "Summary";
3324
+ readonly transcription: "Transcription";
3325
+ readonly language: "Language";
3326
+ readonly audio: "Audio";
3318
3327
  };
3319
3328
  readonly actions: {
3320
3329
  readonly add: "Add";
@@ -3855,6 +3864,10 @@ declare const defaultTranslations: {
3855
3864
  readonly description: "Try a different date or fewer filters";
3856
3865
  };
3857
3866
  };
3867
+ readonly progressSeries: {
3868
+ readonly noData: "No data";
3869
+ readonly canceled: "Canceled";
3870
+ };
3858
3871
  readonly select: {
3859
3872
  readonly noResults: "No results found";
3860
3873
  readonly loadingMore: "Loading...";
@@ -4127,6 +4140,7 @@ declare const defaultTranslations: {
4127
4140
  readonly paused: "Paused";
4128
4141
  readonly mute: "Mute";
4129
4142
  readonly unmute: "Unmute";
4143
+ readonly noAudio: "No audio";
4130
4144
  readonly volume: "Volume";
4131
4145
  readonly seekLabel: "Seek";
4132
4146
  readonly enterFullscreen: "Enter fullscreen";
@@ -4134,6 +4148,12 @@ declare const defaultTranslations: {
4134
4148
  readonly playbackSpeed: "Playback speed ({{rate}})";
4135
4149
  readonly playbackSpeedLabel: "Playback speed";
4136
4150
  readonly timeProgress: "{{current}} of {{total}}";
4151
+ readonly captions: "Captions";
4152
+ readonly audioDescription: "Audio description";
4153
+ readonly audio: "Audio";
4154
+ readonly subtitles: "Subtitles";
4155
+ readonly settings: "Settings";
4156
+ readonly off: "Off";
4137
4157
  };
4138
4158
  };
4139
4159
 
@@ -5960,6 +5980,85 @@ export declare const F0NumberInput: ForwardRefExoticComponent<Omit<F0NumberInput
5960
5980
 
5961
5981
  export declare type F0NumberInputProps = Omit<NumberInputInternalProps, (typeof privateProps_4)[number]>;
5962
5982
 
5983
+ /**
5984
+ * @experimental This is an experimental component, use it at your own risk.
5985
+ */
5986
+ export declare const F0ProgressSeries: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0ProgressSeriesProps & RefAttributes<HTMLDivElement>>>;
5987
+
5988
+ /**
5989
+ * One progress bar in the series — e.g. a period (Q1, Jan, 2026…). Each bar is
5990
+ * an independent progress bar (its own track + proportional fill), unlike a
5991
+ * category bar where the segments are parts of a single whole.
5992
+ */
5993
+ export declare interface F0ProgressSeriesBar {
5994
+ /**
5995
+ * Attained value. `undefined` (or a non-finite value / `max <= 0`) renders an
5996
+ * empty/future bar: track only, no fill.
5997
+ */
5998
+ value: number | undefined;
5999
+ /** Target. Defaults to 100. */
6000
+ max?: number;
6001
+ /**
6002
+ * f0 chart color token for the fill. Defaults to `"categorical-1"`. Ignored
6003
+ * when `canceled` is set.
6004
+ */
6005
+ color?: F0ProgressSeriesColor;
6006
+ /** Renders a hatched grey bar (e.g. a cancelled period). */
6007
+ canceled?: boolean;
6008
+ /** Title shown under the bar (e.g. "Q1", "Jan", "2026"). Optional. */
6009
+ label?: string;
6010
+ /**
6011
+ * Short text shown under the bar next to the label. Optional; defaults to the
6012
+ * computed percentage (which may exceed 100%). Pass "" to hide it.
6013
+ */
6014
+ caption?: string;
6015
+ /** Tooltip text. Defaults to `label · value / max (percentage)`. */
6016
+ tooltip?: string;
6017
+ }
6018
+
6019
+ export declare type F0ProgressSeriesColor = (typeof f0ProgressSeriesColors)[number];
6020
+
6021
+ /**
6022
+ * The `--chart-*` tokens `getColor` can resolve (see `f0-core`'s `base.css`).
6023
+ * Same set as `F0SegmentedBar`'s `SegmentColorToken`; the two are not shared yet
6024
+ * because `kits/F0DataChart` already owns the `ChartColorToken` name for a
6025
+ * different palette (`baseColors`). Unifying them is tracked separately.
6026
+ */
6027
+ export declare const f0ProgressSeriesColors: readonly ["categorical-1", "categorical-2", "categorical-3", "categorical-4", "categorical-5", "categorical-6", "categorical-7", "categorical-8", "feedback-positive", "feedback-neutral", "feedback-negative"];
6028
+
6029
+ /** Shared by the component and the `progressSeries` value-display cell. */
6030
+ export declare interface F0ProgressSeriesOptions {
6031
+ /** 1..N bars (N up to 12: half-yearly = 2, quarterly = 4, monthly = 12). */
6032
+ bars: F0ProgressSeriesBar[];
6033
+ /**
6034
+ * Max labels rendered under the row. When there are more bars than this, the
6035
+ * labels are spread evenly (e.g. 12 bars → indices 0, 3, 6, 9). Defaults to 4.
6036
+ */
6037
+ maxLabels?: number;
6038
+ /** Hide the per-bar tooltips. */
6039
+ hideTooltip?: boolean;
6040
+ /**
6041
+ * Formats `value`/`max` in the default tooltip — the component only knows raw
6042
+ * numbers, so pass this to render currencies, separators, units…
6043
+ * Defaults to `String(value)`.
6044
+ */
6045
+ formatValue?: (value: number) => string;
6046
+ /**
6047
+ * Renders a skeleton (same height as the loaded bar) instead of the series
6048
+ * while the data is still loading.
6049
+ */
6050
+ loading?: boolean;
6051
+ }
6052
+
6053
+ export declare interface F0ProgressSeriesProps extends F0ProgressSeriesOptions, WithDataTestIdProps {
6054
+ /** Bar height. Defaults to `"md"`. */
6055
+ size?: F0ProgressSeriesSize;
6056
+ }
6057
+
6058
+ export declare type F0ProgressSeriesSize = (typeof f0ProgressSeriesSizes)[number];
6059
+
6060
+ export declare const f0ProgressSeriesSizes: readonly ["sm", "md", "lg"];
6061
+
5963
6062
  /**
5964
6063
  * @experimental This is an experimental component, use it at your own risk
5965
6064
  */
@@ -7224,7 +7323,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
7224
7323
  */
7225
7324
  export declare const Input: ForwardRefExoticComponent<Omit<F0TextInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
7226
7325
 
7227
- declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
7326
+ declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "isEmpty" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
7228
7327
 
7229
7328
  declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
7230
7329
 
@@ -10938,6 +11037,7 @@ declare const valueDisplayRenderers: {
10938
11037
  readonly person: (args: PersonCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
10939
11038
  readonly percentage: (args: PercentageCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element | null;
10940
11039
  readonly progressBar: (args: ProgressBarCellValue, _meta: ValueDisplayRendererContext) => JSX_2.Element | null;
11040
+ readonly progressSeries: (args: ProgressSeriesCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
10941
11041
  readonly barSeries: (args: BarSeriesCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
10942
11042
  readonly categoryBarChart: (args: CategoryBarChartCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
10943
11043
  readonly hourDistribution: (args: HourDistributionCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;