@factorialco/f0-react 1.376.1 → 1.378.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.
@@ -1,5 +1,5 @@
1
1
  import { AIMessage } from '@copilotkit/shared';
2
- import { AlertAvatarProps as AlertAvatarProps_2 } from '../../f0';
2
+ import { AlertAvatarProps as AlertAvatarProps_2 } from './F0AvatarAlert';
3
3
  import { AlertTagCellValue } from './types/alertTag';
4
4
  import { AlertTagCellValue as AlertTagCellValue_2 } from '../../../ui/value-display/types/alertTag';
5
5
  import { AmountCellValue } from './types/amount';
@@ -29,7 +29,7 @@ import { DotTagCellValue } from './types/dotTag';
29
29
  import { DotTagCellValue as DotTagCellValue_2 } from '../../../ui/value-display/types/dotTag';
30
30
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
31
31
  import { Editor } from '@tiptap/react';
32
- import { F0SelectProps as F0SelectProps_2 } from './types';
32
+ import { F0TagRawProps as F0TagRawProps_2 } from './types';
33
33
  import { f1Colors } from '@factorialco/f0-core';
34
34
  import { FC } from 'react';
35
35
  import { FileCellValue } from './types/file';
@@ -42,7 +42,6 @@ import { HTMLAttributeAnchorTarget } from 'react';
42
42
  import { HTMLAttributes } from 'react';
43
43
  import { HTMLInputTypeAttribute } from 'react';
44
44
  import { IconCellValue } from './types/icon';
45
- import { IconType as IconType_2 } from '../../f0';
46
45
  import { InFilterOptions } from './InFilter/types';
47
46
  import { JSONContent } from '@tiptap/react';
48
47
  import { JSONContent as JSONContent_2 } from '@tiptap/core';
@@ -60,6 +59,7 @@ import { PieChartProps } from '../../../components/Charts/PieChart';
60
59
  import { PopoverProps } from '@radix-ui/react-popover';
61
60
  import { ProgressBarCellValue } from './types/progressBar';
62
61
  import { ProgressBarCellValue as ProgressBarCellValue_2 } from '../../../ui/value-display/types/progressBar';
62
+ import { Props as Props_7 } from './types';
63
63
  import { PropsWithChildren } from 'react';
64
64
  import * as React_2 from 'react';
65
65
  import { ReactElement } from 'react';
@@ -85,6 +85,10 @@ import { ValueDisplayRendererContext as ValueDisplayRendererContext_2 } from '..
85
85
  import { VariantProps } from 'cva';
86
86
  import { VerticalBarChartProps } from '../../../components/Charts/VerticalBarChart';
87
87
  import { WidgetProps as WidgetProps_2 } from '../Widget';
88
+ import { WithDataTestIdReturnType } from '../lib/data-testid';
89
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from '../../lib/data-testid';
90
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_3 } from '../../../../lib/data-testid';
91
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_4 } from '../../../lib/data-testid';
88
92
 
89
93
  declare type Action = {
90
94
  label: string;
@@ -427,9 +431,9 @@ declare type AiChatProviderProps = {
427
431
  /**
428
432
  * @experimental This is an experimental component use it at your own risk
429
433
  */
430
- export declare const AiPromotionChat: () => JSX_2.Element | null;
434
+ export declare const AiPromotionChat: WithDataTestIdReturnType_2<() => JSX_2.Element | null>;
431
435
 
432
- export declare const AiPromotionChatProvider: ({ enabled, greeting, title, description, benefits, actions, onShow, onHide, children, }: AiPromotionChatProviderProps) => JSX_2.Element;
436
+ export declare const AiPromotionChatProvider: WithDataTestIdReturnType_2<({ enabled, greeting, title, description, benefits, actions, onShow, onHide, children, }: AiPromotionChatProviderProps) => JSX_2.Element>;
433
437
 
434
438
  export declare type AiPromotionChatProviderProps = {
435
439
  enabled?: boolean;
@@ -613,7 +617,7 @@ declare type AvatarVariant_2 = ({
613
617
  /**
614
618
  * @experimental This is an experimental component use it at your own risk
615
619
  */
616
- export declare const Badge: ({ type, size, icon }: BadgeProps) => JSX_2.Element;
620
+ export declare const Badge: WithDataTestIdReturnType_2<({ type, size, icon }: BadgeProps) => JSX_2.Element>;
617
621
 
618
622
  export declare interface BadgeProps extends VariantProps<typeof badgeVariants> {
619
623
  icon: IconType;
@@ -651,6 +655,8 @@ export declare const BarChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_
651
655
  chart: BarChartProps;
652
656
  } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
653
657
 
658
+ declare type BaseAction = Pick<F0ButtonProps, "label" | "onClick" | "icon" | "disabled">;
659
+
654
660
  export declare const BaseActivityItemList: ({ items, loadingMoreItems, onClickItem, onEndReached, onEndReachedItemsThreshold, }: ActivityItemListProps) => default_2.JSX.Element;
655
661
 
656
662
  declare const BaseAvatar: ForwardRefExoticComponent<BaseAvatarProps & RefAttributes<HTMLDivElement>>;
@@ -699,9 +705,9 @@ declare type BaseAvatarProps = {
699
705
 
700
706
  declare type BaseAvatarProps_2 = ComponentProps<typeof BaseAvatar>;
701
707
 
702
- export declare const BaseBanner: ForwardRefExoticComponent<BaseBannerProps & RefAttributes<HTMLDivElement>> & {
703
- Skeleton: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
704
- };
708
+ export declare const BaseBanner: WithDataTestIdReturnType_3<ForwardRefExoticComponent<BaseBannerProps & RefAttributes<HTMLDivElement>> & {
709
+ Skeleton: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
710
+ }>;
705
711
 
706
712
  export declare type BaseBannerProps = {
707
713
  title: string;
@@ -1220,8 +1226,6 @@ declare const cardPropertyRenderers: {
1220
1226
 
1221
1227
  declare type CardPropertyType = keyof typeof cardPropertyRenderers;
1222
1228
 
1223
- export declare function CardSelectable<T extends CardSelectableValue>({ item, selected, disabled, multiple, onSelect, isToggle, grouped, }: CardSelectableProps<T>): JSX_2.Element;
1224
-
1225
1229
  declare type CardSelectableAvatarVariant = AvatarVariant | {
1226
1230
  type: "emoji";
1227
1231
  emoji: string;
@@ -1233,7 +1237,9 @@ declare type CardSelectableAvatarVariant = AvatarVariant | {
1233
1237
  icon: IconType;
1234
1238
  };
1235
1239
 
1236
- export declare function CardSelectableContainer<T extends CardSelectableValue>(props: CardSelectableContainerProps<T>): React.ReactElement;
1240
+ export declare const CardSelectableContainer: CardSelectableContainerGeneric;
1241
+
1242
+ declare type CardSelectableContainerGeneric = <T extends CardSelectableValue>(props: CardSelectableContainerProps<T> & WithDataTestIdProps) => ReactElement | null;
1237
1243
 
1238
1244
  export declare type CardSelectableContainerProps<T extends CardSelectableValue> = CardSelectableSingleProps<T> | CardSelectableMultipleProps<T>;
1239
1245
 
@@ -1273,18 +1279,6 @@ export declare interface CardSelectableMultipleProps<T extends CardSelectableVal
1273
1279
  grouped?: boolean;
1274
1280
  }
1275
1281
 
1276
- declare interface CardSelectableProps<T extends CardSelectableValue> {
1277
- item: CardSelectableItem<T>;
1278
- selected: boolean;
1279
- disabled: boolean;
1280
- multiple: boolean;
1281
- onSelect: () => void;
1282
- /** When true, shows a toggle/switch indicator instead of checkbox/radio */
1283
- isToggle?: boolean;
1284
- /** When true, renders without individual card borders (for grouped layout) */
1285
- grouped?: boolean;
1286
- }
1287
-
1288
1282
  export declare interface CardSelectableSingleProps<T extends CardSelectableValue> {
1289
1283
  /** List of selectable items */
1290
1284
  items: CardSelectableItem<T>[];
@@ -1323,7 +1317,7 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
1323
1317
  /**
1324
1318
  * @experimental This is an experimental component use it at your own risk
1325
1319
  */
1326
- export declare const Carousel: ({ children, columns, showArrows, showDots, autoplay, delay, showPeek, doubleColumns, }: CarouselProps) => default_2.JSX.Element;
1320
+ export declare const Carousel: WithDataTestIdReturnType_4<({ children, columns, showArrows, showDots, autoplay, delay, showPeek, doubleColumns, }: CarouselProps) => default_2.JSX.Element>;
1327
1321
 
1328
1322
  declare interface CarouselBreakpoints {
1329
1323
  default?: ColumnNumber;
@@ -1421,7 +1415,7 @@ declare type ChartItem<K extends ChartConfig> = {
1421
1415
  /**
1422
1416
  * @experimental This is an experimental component use it at your own risk
1423
1417
  */
1424
- export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_4 & RefAttributes<HTMLDivElement>>;
1418
+ export declare const ChartWidgetEmptyState: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Props_4 & RefAttributes<HTMLDivElement>>>;
1425
1419
 
1426
1420
  export declare type ChatWidgetEmptyStateProps = Props_4;
1427
1421
 
@@ -1510,7 +1504,7 @@ declare interface ClockInGraphProps {
1510
1504
 
1511
1505
  declare type ClockInStatus = "clocked-in" | "break" | "clocked-out";
1512
1506
 
1513
- export declare const CoCreationForm: ({ elements: elementsProp, isEditMode, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, }: CoCreationFormProps) => JSX_2.Element;
1507
+ export declare const CoCreationForm: WithDataTestIdReturnType_4<({ elements: elementsProp, isEditMode, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, }: CoCreationFormProps) => JSX_2.Element>;
1514
1508
 
1515
1509
  export declare type CoCreationFormCallbacks = {
1516
1510
  onQuestionChange?: (params: OnChangeQuestionParams) => void;
@@ -1702,7 +1696,7 @@ declare type CopyActionType = {
1702
1696
  /**
1703
1697
  * @experimental This is an experimental component use it at your own risk
1704
1698
  */
1705
- export declare const Counter: typeof _Counter;
1699
+ export declare const Counter: WithDataTestIdReturnType_2<typeof _Counter>;
1706
1700
 
1707
1701
  declare function _Counter({ size, type, value, maxValue }: CounterProps): JSX_2.Element;
1708
1702
 
@@ -2125,7 +2119,7 @@ declare type DateValue = {
2125
2119
  /**
2126
2120
  * @experimental This is an experimental component use it at your own risk
2127
2121
  */
2128
- export declare const DaytimePage: typeof _DaytimePage;
2122
+ export declare const DaytimePage: WithDataTestIdReturnType_4<typeof _DaytimePage>;
2129
2123
 
2130
2124
  declare function _DaytimePage({ children, header, period, embedded, }: DaytimePageProps): JSX_2.Element;
2131
2125
 
@@ -2720,12 +2714,12 @@ declare const defaultTranslations: {
2720
2714
  /**
2721
2715
  * @experimental This is an experimental component use it at your own risk
2722
2716
  */
2723
- export declare const DetailsItem: ForwardRefExoticComponent<DetailsItemType & RefAttributes<HTMLDivElement>>;
2717
+ export declare const DetailsItem: WithDataTestIdReturnType_4<ForwardRefExoticComponent<DetailsItemType & RefAttributes<HTMLDivElement>>>;
2724
2718
 
2725
2719
  /**
2726
2720
  * @experimental This is an experimental component use it at your own risk
2727
2721
  */
2728
- export declare const DetailsItemsList: default_2.ForwardRefExoticComponent<DetailsItemsListProps & default_2.RefAttributes<HTMLDivElement>>;
2722
+ export declare const DetailsItemsList: WithDataTestIdReturnType_4<default_2.ForwardRefExoticComponent<DetailsItemsListProps & default_2.RefAttributes<HTMLDivElement>>>;
2729
2723
 
2730
2724
  declare interface DetailsItemsListProps {
2731
2725
  title?: string;
@@ -2740,31 +2734,21 @@ export declare interface DetailsItemType {
2740
2734
  spacingAtTheBottom?: boolean;
2741
2735
  }
2742
2736
 
2743
- export declare const Dialog: ForwardRefExoticComponent<Omit<{
2744
- header: {
2745
- type: AlertAvatarProps_2["type"];
2746
- title: string;
2747
- description: string;
2748
- };
2749
- actions?: {
2750
- primary: {
2751
- label: string;
2752
- icon?: IconType_2 | undefined;
2753
- onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
2754
- disabled?: boolean | undefined;
2755
- } & {
2756
- variant?: "default" | "critical" | "neutral";
2757
- };
2758
- secondary: {
2759
- label: string;
2760
- icon?: IconType_2 | undefined;
2761
- onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
2762
- disabled?: boolean | undefined;
2763
- };
2737
+ export declare const Dialog: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Omit<DialogProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
2738
+
2739
+ declare type DialogProps = {
2740
+ header: {
2741
+ type: AlertAvatarProps["type"];
2742
+ title: string;
2743
+ description: string;
2744
+ };
2745
+ actions?: {
2746
+ primary: PrimaryAction_2;
2747
+ secondary: SecondaryAction_2;
2748
+ };
2749
+ open?: boolean;
2750
+ onClose?: () => void;
2764
2751
  };
2765
- open?: boolean;
2766
- onClose?: () => void;
2767
- } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
2768
2752
 
2769
2753
  /**
2770
2754
  * Remove a property from a union of objects.
@@ -2785,7 +2769,7 @@ declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Om
2785
2769
  /**
2786
2770
  * @experimental This is an experimental component use it at your own risk
2787
2771
  */
2788
- export declare const Dropdown: (props: DropdownProps) => JSX_2.Element;
2772
+ export declare const Dropdown: WithDataTestIdReturnType_4<(props: DropdownProps) => JSX_2.Element>;
2789
2773
 
2790
2774
  declare type DropdownInternalProps = {
2791
2775
  items: DropdownItem[];
@@ -2975,7 +2959,7 @@ declare type ExtractVisualizationSettings<T> = T extends {
2975
2959
  };
2976
2960
  } ? S : never;
2977
2961
 
2978
- export declare const F0ActionBar: ({ isOpen, secondaryActions, label, variant, leftContent, centerInFrameContent, status, ...props }: F0ActionBarProps) => JSX_2.Element;
2962
+ export declare const F0ActionBar: WithDataTestIdReturnType_2<({ isOpen, secondaryActions, label, variant, leftContent, centerInFrameContent, status, ...props }: F0ActionBarProps) => JSX_2.Element>;
2979
2963
 
2980
2964
  declare interface F0ActionBarProps {
2981
2965
  /**
@@ -3021,13 +3005,13 @@ declare interface F0ActionBarProps {
3021
3005
  status?: ActionBarStatus;
3022
3006
  }
3023
3007
 
3024
- export declare const F0AiBanner: ForwardRefExoticComponent<AiBannerInternalProps & RefAttributes<HTMLDivElement>> & {
3008
+ export declare const F0AiBanner: WithDataTestIdReturnType_3<ForwardRefExoticComponent<AiBannerInternalProps & RefAttributes<HTMLDivElement>>> & {
3025
3009
  Skeleton: ({ compact }: AiBannerSkeletonProps) => JSX_2.Element;
3026
3010
  };
3027
3011
 
3028
3012
  export declare type F0AiBannerProps = AiBannerInternalProps;
3029
3013
 
3030
- declare const F0AvatarAlert: ({ type, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, }: AlertAvatarProps) => JSX_2.Element;
3014
+ declare const F0AvatarAlert: WithDataTestIdReturnType_4<({ type, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, }: AlertAvatarProps_2) => JSX_2.Element>;
3031
3015
 
3032
3016
  declare type F0AvatarCompanyProps = {
3033
3017
  name: string;
@@ -3104,13 +3088,15 @@ declare type F0AvatarListPropsAvatars = {
3104
3088
  avatars: (Omit<FileAvatarVariant, "type"> & Record<string, unknown>)[];
3105
3089
  };
3106
3090
 
3091
+ export declare const F0AvatarModule: WithDataTestIdReturnType_4<typeof F0AvatarModule_2>;
3092
+
3107
3093
  /**
3108
3094
  * Module avatar
3109
3095
  * @description A component that displays a module avatar
3110
3096
  * @experimental
3111
3097
  * @returns
3112
3098
  */
3113
- export declare function F0AvatarModule({ size, module, ...props }: F0AvatarModuleProps): JSX_2.Element;
3099
+ declare function F0AvatarModule_2({ size, module, ...props }: F0AvatarModuleProps): JSX_2.Element;
3114
3100
 
3115
3101
  export declare type F0AvatarModuleProps = VariantProps<typeof moduleAvatarVariants> & {
3116
3102
  module: ModuleId;
@@ -3194,7 +3180,7 @@ declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[num
3194
3180
  variant?: Exclude<ButtonInternalProps["variant"], "ai">;
3195
3181
  };
3196
3182
 
3197
- export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>> & {
3183
+ export declare const F0Callout: WithDataTestIdReturnType_3<ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>>> & {
3198
3184
  Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
3199
3185
  };
3200
3186
 
@@ -3238,6 +3224,12 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
3238
3224
  showPreview?: boolean;
3239
3225
  };
3240
3226
 
3227
+ /**
3228
+ * Generic component type so consumers can use <F0Select<T, R> />.
3229
+ * Preserves dataTestId and F0SelectProps<T, R>.
3230
+ */
3231
+ declare type F0SelectGeneric = <T extends string, R = unknown>(props: F0SelectProps<T, R> & WithDataTestIdProps) => ReactElement | null;
3232
+
3241
3233
  declare type F0SelectItemObject<T, R = unknown> = {
3242
3234
  type?: "item";
3243
3235
  value: T;
@@ -3325,13 +3317,13 @@ export declare type F0SelectTagProp = string | {
3325
3317
  /**
3326
3318
  * @experimental This is an experimental component use it at your own risk
3327
3319
  */
3328
- export declare const F0TableOfContent: typeof _F0TableOfContent;
3320
+ export declare const F0TableOfContent: WithDataTestIdReturnType_4<typeof _F0TableOfContent>;
3329
3321
 
3330
3322
  declare function _F0TableOfContent(props: TOCProps): JSX_2.Element;
3331
3323
 
3332
- declare const F0TagAlert: ForwardRefExoticComponent<Props_7 & RefAttributes<HTMLDivElement>>;
3324
+ declare const F0TagAlert: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Props_7 & RefAttributes<HTMLDivElement>>>;
3333
3325
 
3334
- declare const F0TagRaw: ForwardRefExoticComponent<F0TagRawProps & RefAttributes<HTMLDivElement>>;
3326
+ declare const F0TagRaw: WithDataTestIdReturnType_4<ForwardRefExoticComponent<F0TagRawProps_2 & RefAttributes<HTMLDivElement>>>;
3335
3327
 
3336
3328
  declare type F0TagRawProps = {
3337
3329
  /**
@@ -3353,7 +3345,7 @@ declare type F0TagRawProps = {
3353
3345
  /**
3354
3346
  * @experimental This is an experimental component use it at your own risk
3355
3347
  */
3356
- export declare const F0VersionHistory: typeof _F0VersionHistory;
3348
+ export declare const F0VersionHistory: WithDataTestIdReturnType_2<typeof _F0VersionHistory>;
3357
3349
 
3358
3350
  declare function _F0VersionHistory({ title, versions, currentVersion, activeVersionId, }: F0VersionHistoryProps): JSX_2.Element;
3359
3351
 
@@ -3415,7 +3407,7 @@ declare type FileDef = {
3415
3407
  type: string;
3416
3408
  };
3417
3409
 
3418
- export declare const FileItem: ForwardRefExoticComponent<FileItemProps & RefAttributes<HTMLDivElement>>;
3410
+ export declare const FileItem: WithDataTestIdReturnType_4<ForwardRefExoticComponent<FileItemProps & RefAttributes<HTMLDivElement>>>;
3419
3411
 
3420
3412
  declare interface FileItemProps extends React.HTMLAttributes<HTMLDivElement> {
3421
3413
  file: File;
@@ -3739,6 +3731,11 @@ declare type HeaderProps = {
3739
3731
  onChange: (newValue: boolean) => void;
3740
3732
  label: string;
3741
3733
  };
3734
+ oneSwitchTooltip?: {
3735
+ whenDisabled?: string;
3736
+ whenEnabled?: string;
3737
+ };
3738
+ oneSwitchAutoOpen?: boolean;
3742
3739
  };
3743
3740
 
3744
3741
  declare type HeaderSecondaryAction = SecondaryAction & {
@@ -4087,10 +4084,6 @@ export declare type lastIntentType = {
4087
4084
  customIntent?: string;
4088
4085
  } | null;
4089
4086
 
4090
- declare type Level = (typeof levels)[number];
4091
-
4092
- declare const levels: readonly ["info", "warning", "critical", "positive"];
4093
-
4094
4087
  export declare const LineChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_2 & {
4095
4088
  chart: LineChartProps;
4096
4089
  } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
@@ -4270,7 +4263,7 @@ declare interface MetadataProps {
4270
4263
  /**
4271
4264
  * @experimental This is an experimental component use it at your own risk
4272
4265
  */
4273
- export declare const MobileDropdown: ({ items, children }: DropdownProps) => JSX_2.Element;
4266
+ export declare const MobileDropdown: WithDataTestIdReturnType_4<({ items, children }: DropdownProps) => JSX_2.Element>;
4274
4267
 
4275
4268
  declare const moduleAvatarVariants: (props?: ({
4276
4269
  size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
@@ -4460,7 +4453,7 @@ declare interface NextStepsProps {
4460
4453
  items: StepItemProps[];
4461
4454
  }
4462
4455
 
4463
- export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
4456
+ export declare const NotesTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>>;
4464
4457
 
4465
4458
  export declare type NotesTextEditorHandle = {
4466
4459
  clear: () => void;
@@ -4551,7 +4544,7 @@ declare type NumericQuestionProps = BaseQuestionPropsForOtherQuestionComponents
4551
4544
  /**
4552
4545
  * @experimental This is an experimental component use it at your own risk
4553
4546
  */
4554
- export declare const OmniButton: typeof _OmniButton;
4547
+ export declare const OmniButton: WithDataTestIdReturnType_2<typeof _OmniButton>;
4555
4548
 
4556
4549
  declare function _OmniButton({ label, options, hasNewUpdate }: OmniButtonProps): JSX_2.Element;
4557
4550
 
@@ -4619,16 +4612,16 @@ export declare type OnDuplicateElementParams = {
4619
4612
  /**
4620
4613
  * @experimental This is an experimental component use it at your own risk
4621
4614
  */
4622
- export declare const OneApprovalHistory: FC<OneApprovalHistoryProps>;
4615
+ export declare const OneApprovalHistory: WithDataTestIdReturnType_4<FC<OneApprovalHistoryProps>>;
4623
4616
 
4624
4617
  declare type OneApprovalHistoryProps = {
4625
4618
  steps: ApprovalStep[];
4626
4619
  };
4627
4620
 
4628
- export declare const OneCalendar: {
4629
- (props: OneCalendarProps): JSX_2.Element;
4630
- displayName: string;
4631
- };
4621
+ export declare const OneCalendar: WithDataTestIdReturnType_2< {
4622
+ (props: OneCalendarProps): JSX_2.Element;
4623
+ displayName: string;
4624
+ }>;
4632
4625
 
4633
4626
  export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, }: OneCalendarInternalProps) => JSX_2.Element;
4634
4627
 
@@ -4651,7 +4644,13 @@ export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof pr
4651
4644
  /**
4652
4645
  * @experimental This is an experimental component use it at your own risk
4653
4646
  */
4654
- export declare const OneDataCollection: <R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>>(props: OneDataCollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>) => JSX_2.Element;
4647
+ export declare const OneDataCollection: OneDataCollectionGeneric;
4648
+
4649
+ /**
4650
+ * Generic component type so consumers can use <F0Select<T, R> />.
4651
+ * Preserves dataTestId and OneDataCollection
4652
+ */
4653
+ declare type OneDataCollectionGeneric = <R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>>(props: OneDataCollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping> & WithDataTestIdProps) => ReactElement | null;
4655
4654
 
4656
4655
  /**
4657
4656
  * A component that renders a collection of data with filtering and visualization capabilities.
@@ -4709,14 +4708,18 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
4709
4708
  tmpFullWidth?: boolean;
4710
4709
  };
4711
4710
 
4712
- export declare function OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, ...props }: OneDatePickerProps): JSX_2.Element;
4711
+ export declare const OneDateNavigator: WithDataTestIdReturnType_2<typeof _OneDateNavigator>;
4712
+
4713
+ declare function _OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, ...props }: OneDatePickerProps): JSX_2.Element;
4713
4714
 
4714
4715
  export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children"> {
4715
4716
  hideNavigation?: boolean;
4716
4717
  hideGoToCurrent?: boolean;
4717
4718
  }
4718
4719
 
4719
- export declare function OneEmptyState({ title, description, variant, emoji, actions, }: Types.OneEmptyStateProps): JSX_2.Element;
4720
+ export declare const OneEmptyState: WithDataTestIdReturnType_2<typeof _OneEmptyState>;
4721
+
4722
+ declare function _OneEmptyState({ title, description, variant, emoji, actions, ...rest }: Types.OneEmptyStateProps): JSX_2.Element;
4720
4723
 
4721
4724
  declare type OneEmptyStateProps = {
4722
4725
  /**
@@ -4755,13 +4758,13 @@ declare type OneEmptyStateProps = {
4755
4758
  emoji?: never;
4756
4759
  });
4757
4760
 
4761
+ export declare const OneFilterPicker: OneFilterPickerGeneric;
4762
+
4758
4763
  /**
4759
- * OneFiltersPicker component to use as a single component
4764
+ * Generic component type so consumers can use <OneFilterPicker<Definition> />.
4765
+ * Preserves dataTestId and OneFilterPickerRootProps<Definition>.
4760
4766
  */
4761
- export declare const OneFilterPicker: {
4762
- <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition>): JSX_2.Element;
4763
- displayName: string;
4764
- };
4767
+ declare type OneFilterPickerGeneric = <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition> & WithDataTestIdProps) => ReactElement | null;
4765
4768
 
4766
4769
  /**
4767
4770
  * Props for the Filters component.
@@ -4791,7 +4794,7 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
4791
4794
  /**
4792
4795
  * @experimental This is an experimental component use it at your own risk
4793
4796
  */
4794
- export declare const OnePagination: typeof _OnePagination;
4797
+ export declare const OnePagination: WithDataTestIdReturnType_2<typeof _OnePagination>;
4795
4798
 
4796
4799
  declare function _OnePagination({ totalPages, currentPage, onPageChange, showControls, ariaLabel, visibleRange, hasNextPage, disabled, }: OnePaginationProps): JSX_2.Element;
4797
4800
 
@@ -4839,9 +4842,9 @@ declare interface OnePaginationProps {
4839
4842
  /**
4840
4843
  * @experimental This is an experimental component use it at your own risk
4841
4844
  */
4842
- export declare const OnePersonListItem: default_2.ForwardRefExoticComponent<OnePersonListItemProps & default_2.RefAttributes<HTMLDivElement>> & {
4843
- Skeleton: () => default_2.JSX.Element;
4844
- };
4845
+ export declare const OnePersonListItem: WithDataTestIdReturnType_4<default_2.ForwardRefExoticComponent<OnePersonListItemProps & default_2.RefAttributes<HTMLDivElement>> & {
4846
+ Skeleton: () => default_2.JSX.Element;
4847
+ }>;
4845
4848
 
4846
4849
  export declare type OnePersonListItemProps = {
4847
4850
  person: {
@@ -4931,7 +4934,7 @@ declare interface OverflowListProps<T> {
4931
4934
  /**
4932
4935
  * @experimental This is an experimental component use it at your own risk
4933
4936
  */
4934
- export declare const Page: typeof _Page;
4937
+ export declare const Page: WithDataTestIdReturnType_4<typeof _Page>;
4935
4938
 
4936
4939
  declare function _Page({ children, header, embedded }: PageProps): JSX_2.Element;
4937
4940
 
@@ -4974,7 +4977,7 @@ export declare type PageBasedPaginatedResponse<TRecord> = BasePaginatedResponse<
4974
4977
  pagesCount: number;
4975
4978
  };
4976
4979
 
4977
- export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, }: HeaderProps): JSX_2.Element;
4980
+ export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, oneSwitchTooltip, oneSwitchAutoOpen, }: HeaderProps): JSX_2.Element;
4978
4981
 
4979
4982
  declare interface PageProps {
4980
4983
  children?: React.ReactNode;
@@ -5094,6 +5097,10 @@ declare interface PrimaryAction {
5094
5097
  isVisible?: boolean;
5095
5098
  }
5096
5099
 
5100
+ declare type PrimaryAction_2 = BaseAction & {
5101
+ variant?: PrimaryActionVariant;
5102
+ };
5103
+
5097
5104
  declare interface PrimaryActionButton extends PrimaryAction {
5098
5105
  label: string;
5099
5106
  icon?: IconType;
@@ -5117,6 +5124,8 @@ export declare type primaryActionType = {
5117
5124
  subActions?: subActionType[];
5118
5125
  };
5119
5126
 
5127
+ declare type PrimaryActionVariant = "default" | "critical" | "neutral";
5128
+
5120
5129
  declare interface PrimaryDropdownAction<T> extends PrimaryAction {
5121
5130
  items: ButtonDropdownItem<T>[];
5122
5131
  value?: T;
@@ -5283,11 +5292,6 @@ declare type Props_6<Id extends string | number = string | number> = {
5283
5292
  onClick?: (id: Id) => void;
5284
5293
  };
5285
5294
 
5286
- declare type Props_7<Text extends string = string> = {
5287
- text: Text extends "" ? never : Text;
5288
- level: Level;
5289
- };
5290
-
5291
5295
  declare type Props_8<Id extends string | number = string | number> = {
5292
5296
  items: Omit<WidgetInboxListItemProps<Id>, "onClick">[];
5293
5297
  minSize?: number;
@@ -5331,13 +5335,12 @@ declare type QuestionPropsToOmit = "onAction" | "onChange" | "onAddNewElement";
5331
5335
 
5332
5336
  export declare type QuestionType = "rating" | "select" | "multi-select" | "dropdown-single" | "text" | "longText" | "numeric" | "link" | "date";
5333
5337
 
5334
- /**
5335
- * @experimental This is an experimental component use it at your own risk
5336
- */
5337
- export declare const RadarChart: <K extends ChartConfig>(props: RadarChartProps<K> & RefAttributes<HTMLDivElement>) => React.ReactNode;
5338
+ export declare const RadarChart: RadarChartGeneric;
5338
5339
 
5339
5340
  export declare const _RadarChart: <K extends ChartConfig>({ data, dataConfig, scaleMin, scaleMax, aspect }: RadarChartProps<K>, ref: ForwardedRef<HTMLDivElement>) => JSX_2.Element;
5340
5341
 
5342
+ declare type RadarChartGeneric = <K extends ChartConfig>(props: RadarChartProps<K> & WithDataTestIdProps) => ReactElement | null;
5343
+
5341
5344
  export declare type RadarChartProps<K extends ChartConfig> = {
5342
5345
  dataConfig: K;
5343
5346
  data: ChartItem<K>[];
@@ -5418,7 +5421,7 @@ export declare type resultType = {
5418
5421
  mentionIds?: number[];
5419
5422
  };
5420
5423
 
5421
- export declare const RichTextDisplay: ForwardRefExoticComponent<RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
5424
+ export declare const RichTextDisplay: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextDisplayProps & RefAttributes<HTMLDivElement>>>;
5422
5425
 
5423
5426
  export declare type RichTextDisplayHandle = HTMLDivElement;
5424
5427
 
@@ -5428,9 +5431,9 @@ export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElem
5428
5431
  format?: "html" | "markdown";
5429
5432
  }
5430
5433
 
5431
- export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5432
- Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5433
- };
5434
+ export declare const RichTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5435
+ Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5436
+ }>;
5434
5437
 
5435
5438
  export declare type RichTextEditorHandle = {
5436
5439
  clear: () => void;
@@ -5466,13 +5469,13 @@ declare interface RichTextEditorSkeletonProps {
5466
5469
  rows?: number;
5467
5470
  }
5468
5471
 
5469
- export declare const ScrollArea: ForwardRefExoticComponent<Omit<Omit<ScrollAreaProps & RefAttributes<HTMLDivElement>, "ref"> & {
5472
+ export declare const ScrollArea: WithDataTestIdReturnType<ForwardRefExoticComponent<Omit<Omit<ScrollAreaProps & RefAttributes<HTMLDivElement>, "ref"> & {
5470
5473
  showBar?: boolean;
5471
5474
  viewportRef?: React.RefObject<HTMLDivElement>;
5472
5475
  onScrollTop?: () => void;
5473
5476
  onScrollBottom?: () => void;
5474
5477
  scrollMargin?: number;
5475
- } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
5478
+ } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
5476
5479
 
5477
5480
  export declare function SearchBar({ onClick, placeholder, shortcut, ...props }: SearchBarProps): JSX_2.Element;
5478
5481
 
@@ -5496,6 +5499,8 @@ declare interface SecondaryAction extends PrimaryActionButton {
5496
5499
  variant?: "outline" | "critical" | "outlinePromote" | "promote";
5497
5500
  }
5498
5501
 
5502
+ declare type SecondaryAction_2 = BaseAction;
5503
+
5499
5504
  export declare type SecondaryActionGroup = {
5500
5505
  label?: string;
5501
5506
  items: SecondaryActionItem[];
@@ -5557,9 +5562,7 @@ declare type SectionProps_2 = {
5557
5562
  /**
5558
5563
  * @experimental This is an experimental component use it at your own risk
5559
5564
  */
5560
- export declare const Select: <T extends string = string, R = unknown>(props: F0SelectProps_2<T, R> & {
5561
- ref?: React.Ref<HTMLButtonElement>;
5562
- }) => React.ReactElement;
5565
+ export declare const Select: F0SelectGeneric;
5563
5566
 
5564
5567
  /**
5565
5568
  * Represents a collection of selected items.
@@ -5623,7 +5626,7 @@ export declare const selectSizes: readonly ["sm", "md"];
5623
5626
  /**
5624
5627
  * @experimental This is an experimental component use it at your own risk
5625
5628
  */
5626
- export declare const Shortcut: typeof _Shortcut;
5629
+ export declare const Shortcut: WithDataTestIdReturnType_2<typeof _Shortcut>;
5627
5630
 
5628
5631
  declare function _Shortcut({ keys, variant }: ShortcutProps): JSX_2.Element | null;
5629
5632
 
@@ -5641,7 +5644,9 @@ declare const shortcutVariants: (props?: ({
5641
5644
  className?: ClassValue;
5642
5645
  })) | undefined) => string;
5643
5646
 
5644
- export declare function Sidebar({ header, body, footer, onFooterDropdownClick, }: SidebarProps): JSX_2.Element;
5647
+ export declare const Sidebar: WithDataTestIdReturnType_4<typeof _Sidebar>;
5648
+
5649
+ declare function _Sidebar({ header, body, footer, onFooterDropdownClick, }: SidebarProps): JSX_2.Element;
5645
5650
 
5646
5651
  export declare function SidebarFooter({ user, options, showActivityButton, activityButtonShortcut, onActivityButtonClick, onDropdownClick, hasActivityUpdates, }: SidebarFooterProps): JSX_2.Element;
5647
5652
 
@@ -5719,7 +5724,7 @@ export declare type SortOrder = "asc" | "desc";
5719
5724
  /**
5720
5725
  * @experimental This is an experimental component use it at your own risk
5721
5726
  */
5722
- export declare const Spinner: typeof _Spinner;
5727
+ export declare const Spinner: WithDataTestIdReturnType_2<typeof _Spinner>;
5723
5728
 
5724
5729
  declare function _Spinner({ size, className }: SpinnerProps): JSX_2.Element;
5725
5730
 
@@ -6006,9 +6011,9 @@ declare type TableVisualizationSettings = {
6006
6011
  /**
6007
6012
  * @experimental This is an experimental component use it at your own risk
6008
6013
  */
6009
- export declare const Tabs: FC<TabsProps> & {
6010
- Skeleton: FC<Pick<TabsProps, "secondary">>;
6011
- };
6014
+ export declare const Tabs: WithDataTestIdReturnType_4<FC<TabsProps> & {
6015
+ Skeleton: FC<Pick<TabsProps, "secondary">>;
6016
+ }>;
6012
6017
 
6013
6018
  export declare interface TabsProps {
6014
6019
  tabs: TabItem[];
@@ -6219,7 +6224,7 @@ export declare interface ToolbarProps {
6219
6224
  /**
6220
6225
  * @experimental This is an experimental component use it at your own risk
6221
6226
  */
6222
- export declare const Tooltip: (props: TooltipProps) => default_2.JSX.Element;
6227
+ export declare const Tooltip: WithDataTestIdReturnType_4<(props: TooltipProps) => default_2.JSX.Element>;
6223
6228
 
6224
6229
  declare type TooltipInternalProps = {
6225
6230
  children: default_2.ReactNode;
@@ -6521,11 +6526,11 @@ declare type WelcomeScreenSuggestion = {
6521
6526
  /**
6522
6527
  * @experimental This is an experimental component use it at your own risk
6523
6528
  */
6524
- export declare const Widget: default_2.ForwardRefExoticComponent<WidgetProps & {
6525
- children: ReactNode;
6529
+ export declare const Widget: WithDataTestIdReturnType_4<default_2.ForwardRefExoticComponent<WidgetProps & {
6530
+ children: ReactNode;
6526
6531
  } & default_2.RefAttributes<HTMLDivElement>> & {
6527
- Skeleton: default_2.ForwardRefExoticComponent<WidgetSkeletonProps & default_2.RefAttributes<HTMLDivElement>>;
6528
- };
6532
+ Skeleton: default_2.ForwardRefExoticComponent<WidgetSkeletonProps & default_2.RefAttributes<HTMLDivElement>>;
6533
+ }>;
6529
6534
 
6530
6535
  export declare function WidgetAvatarsListItem({ id, title, subtitle, avatars, remainingCount, withPointerCursor, onClick, ...props }: WidgetAvatarsListItemProps): JSX_2.Element;
6531
6536
 
@@ -6546,7 +6551,7 @@ export declare type WidgetAvatarsListItemProps = {
6546
6551
  /**
6547
6552
  * @experimental This is an experimental component use it at your own risk
6548
6553
  */
6549
- export declare const WidgetEmptyState: typeof _WidgetEmptyState;
6554
+ export declare const WidgetEmptyState: WithDataTestIdReturnType_4<typeof _WidgetEmptyState>;
6550
6555
 
6551
6556
  declare function _WidgetEmptyState({ title, description, emoji, actions, }: WidgetEmptyStateProps): JSX_2.Element;
6552
6557
 
@@ -6600,11 +6605,11 @@ export declare interface WidgetProps {
6600
6605
  /**
6601
6606
  * @experimental This is an experimental component use it at your own risk
6602
6607
  */
6603
- export declare const WidgetSection: ForwardRefExoticComponent< {
6608
+ export declare const WidgetSection: WithDataTestIdReturnType_4<ForwardRefExoticComponent< {
6604
6609
  children?: ReactNode | undefined;
6605
6610
  } & {
6606
6611
  title?: string;
6607
- } & RefAttributes<HTMLDivElement>>;
6612
+ } & RefAttributes<HTMLDivElement>>>;
6608
6613
 
6609
6614
  export declare function WidgetSimpleList({ items, gap, minSize, onClickItem, showAllItems, }: Props_9): JSX_2.Element;
6610
6615
 
@@ -6640,6 +6645,10 @@ export declare const WidgetStrip: ForwardRefExoticComponent<DashboardProps_2 & R
6640
6645
 
6641
6646
  declare type WidgetWidth = "sm" | "md" | "lg";
6642
6647
 
6648
+ declare type WithDataTestIdProps = {
6649
+ dataTestId?: string;
6650
+ };
6651
+
6643
6652
  declare type WithGroupId<RecordType> = RecordType & {
6644
6653
  [GROUP_ID_SYMBOL]: unknown | undefined;
6645
6654
  };
@@ -6700,6 +6709,11 @@ declare module "gridstack" {
6700
6709
  }
6701
6710
 
6702
6711
 
6712
+ declare namespace Calendar {
6713
+ var displayName: string;
6714
+ }
6715
+
6716
+
6703
6717
  declare module "@tiptap/core" {
6704
6718
  interface Commands<ReturnType> {
6705
6719
  aiBlock: {
@@ -6729,15 +6743,6 @@ declare module "@tiptap/core" {
6729
6743
  }
6730
6744
 
6731
6745
 
6732
- declare module "@tiptap/core" {
6733
- interface Commands<ReturnType> {
6734
- transcript: {
6735
- insertTranscript: (data: TranscriptData) => ReturnType;
6736
- };
6737
- }
6738
- }
6739
-
6740
-
6741
6746
  declare module "@tiptap/core" {
6742
6747
  interface Commands<ReturnType> {
6743
6748
  videoEmbed: {
@@ -6749,6 +6754,10 @@ declare module "@tiptap/core" {
6749
6754
  }
6750
6755
 
6751
6756
 
6752
- declare namespace Calendar {
6753
- var displayName: string;
6757
+ declare module "@tiptap/core" {
6758
+ interface Commands<ReturnType> {
6759
+ transcript: {
6760
+ insertTranscript: (data: TranscriptData) => ReturnType;
6761
+ };
6762
+ }
6754
6763
  }