@factorialco/f0-react 1.244.1 → 1.246.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/f0.d.ts CHANGED
@@ -31,6 +31,7 @@ import { FolderCellValue } from '../../value-display/types/folder';
31
31
  import { FolderCellValue as FolderCellValue_2 } from './types/folder.tsx';
32
32
  import { ForwardedRef } from 'react';
33
33
  import { ForwardRefExoticComponent } from 'react';
34
+ import { HTMLAttributeAnchorTarget } from 'react';
34
35
  import { HTMLAttributes } from 'react';
35
36
  import { IconCellValue } from './types/icon.tsx';
36
37
  import { ImgHTMLAttributes } from 'react';
@@ -41,9 +42,7 @@ import { internalAvatarTypes as internalAvatarTypes_2 } from '../../../ui/Avatar
41
42
  import { JSX as JSX_2 } from 'react';
42
43
  import { LineChartConfig } from '../../ui/chart';
43
44
  import { LineChartPropsBase } from './utils/types';
44
- import { LinkProps as LinkProps_3 } from './Link';
45
45
  import { LongTextCellValue } from './types/longText.tsx';
46
- import { MouseEventHandler } from 'react';
47
46
  import { NumberCellValue } from '../../value-display/types/number';
48
47
  import { NumberCellValue as NumberCellValue_2 } from './types/number.tsx';
49
48
  import { Observable } from 'zen-observable-ts';
@@ -82,12 +81,119 @@ declare type Action_2 = {
82
81
  loading?: boolean;
83
82
  };
84
83
 
85
- declare type ActionDefinition = DropdownItemSeparator | (Omit<DropdownItemObject, "type" | "onClick"> & {
84
+ declare type ActionBaseProps = ActionCommonProps & DataAttributes;
85
+
86
+ declare type ActionButtonProps = ActionBaseProps & {
87
+ type?: ButtonType;
88
+ href?: never;
89
+ target?: never;
90
+ onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
91
+ onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
92
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
93
+ };
94
+
95
+ declare interface ActionCommonProps {
96
+ /**
97
+ * Tooltip
98
+ */
99
+ tooltip?: string | false;
100
+ /**
101
+ * The variant of the action.
102
+ */
103
+ variant?: ActionVariant;
104
+ /**
105
+ * The children of the action.
106
+ */
107
+ children: ReactNode;
108
+ /**
109
+ * The prepend of the action.
110
+ */
111
+ prepend?: ReactNode;
112
+ /**
113
+ * The append of the action.
114
+ */
115
+ append?: ReactNode;
116
+ /**
117
+ * The prepend outside (next to the button) of the action.
118
+ */
119
+ prependOutside?: ReactNode;
120
+ /**
121
+ * The append outside of the action.
122
+ */
123
+ appendOutside?: ReactNode;
124
+ /**
125
+ * The disabled state of the action.
126
+ */
127
+ disabled?: boolean;
128
+ /**
129
+ * The loading state of the action.
130
+ */
131
+ loading?: boolean;
132
+ /**
133
+ * The pressed state of the action.
134
+ */
135
+ pressed?: boolean;
136
+ /**
137
+ * The class name of the action.
138
+ */
139
+ className?: string;
140
+ /**
141
+ * The size of the action.
142
+ */
143
+ size?: ActionSize;
144
+ /**
145
+ * The render mode.
146
+ * @default "default"
147
+ */
148
+ mode?: "default" | "only";
149
+ /**
150
+ * The title of the action.
151
+ */
152
+ title?: string;
153
+ /**
154
+ * make the left and right padding of the action smaller.
155
+ */
156
+ compact?: boolean;
157
+ /**
158
+ * The aria label of the action.
159
+ */
160
+ "aria-label"?: string;
161
+ /**
162
+ * The tab index of the action.
163
+ */
164
+ tabIndex?: number;
165
+ }
166
+
167
+ declare type ActionDefinition = DropdownItemSeparator | (Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
86
168
  onClick: () => void;
87
169
  enabled?: boolean;
88
170
  type?: "primary" | "secondary" | "other";
89
171
  });
90
172
 
173
+ declare type ActionLinkProps = ActionBaseProps & {
174
+ href: string;
175
+ target?: NavTarget;
176
+ rel?: string;
177
+ onFocus?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
178
+ onBlur?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
179
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
180
+ className?: string;
181
+ };
182
+
183
+ declare type ActionLinkVariant = (typeof actionLinkVariants)[number];
184
+
185
+ declare const actionLinkVariants: readonly ["link", "unstyled", "mention"];
186
+
187
+ declare type ActionProps = ActionLinkProps | ActionButtonProps;
188
+
189
+ declare type ActionSize = (typeof actionSizes)[number];
190
+
191
+ declare const actionSizes: readonly ["sm", "md", "lg"];
192
+
193
+ declare type ActionVariant = (typeof actionVariants)[number];
194
+
195
+ declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "link", "unstyled", "mention"];
196
+
91
197
  export declare type AlertAvatarProps = VariantProps<typeof alertAvatarVariants> & {
92
198
  type: (typeof alertAvatarTypes)[number];
93
199
  size?: (typeof alertAvatarSizes)[number];
@@ -426,15 +532,60 @@ declare type BulkActionsDefinition<R extends RecordType, Filters extends Filters
426
532
  warningMessage: string;
427
533
  };
428
534
 
429
- export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
535
+ export declare type ButtonDropdownGroup<T = string> = {
536
+ label?: string;
537
+ items: ButtonDropdownItem<T>[];
538
+ };
430
539
 
431
- declare const Button_2: React_2.ForwardRefExoticComponent<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>>;
540
+ export declare type ButtonDropdownItem<T = string> = {
541
+ /**
542
+ * The value of the item.
543
+ */
544
+ value: T;
545
+ /**
546
+ * The label of the item.
547
+ */
548
+ label: string;
549
+ /**
550
+ * The icon of the item.
551
+ */
552
+ icon?: IconType;
553
+ /**
554
+ * Whether the item is critical.
555
+ * @default false
556
+ */
557
+ critical?: boolean;
558
+ /**
559
+ * The description of the item.
560
+ */
561
+ description?: string;
562
+ };
432
563
 
433
- declare type ButtonInternalProps = Pick<ComponentProps<typeof Button_2>, "variant" | "size" | "disabled" | "type" | "round" | "className" | "pressed" | "style"> & DataAttributes & {
564
+ export declare type ButtonDropdownSize = (typeof buttonDropdownSizes)[number];
565
+
566
+ export declare const buttonDropdownSizes: readonly ["sm", "md", "lg"];
567
+
568
+ export declare type ButtonDropdownVariant = (typeof buttonDropdownVariants)[number];
569
+
570
+ export declare const buttonDropdownVariants: readonly ["default", "outline", "neutral"];
571
+
572
+ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "variant" | "tooltip"> & DataAttributes & {
573
+ /**
574
+ * The aria-label of the button if not provided title or label will be used.
575
+ */
576
+ "aria-label"?: string;
577
+ /**
578
+ * The variant of the button.
579
+ */
580
+ variant?: ButtonVariant;
434
581
  /**
435
582
  * Callback fired when the button is clicked. Supports async functions for loading state.
436
583
  */
437
- onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<unknown>;
584
+ onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>;
585
+ /**
586
+ * The title of the button.
587
+ */
588
+ title?: string;
438
589
  /**
439
590
  * The visible label for the button. Required for accessibility.
440
591
  */
@@ -458,52 +609,67 @@ declare type ButtonInternalProps = Pick<ComponentProps<typeof Button_2>, "varian
458
609
  /**
459
610
  * Sets the button size. 'lg' for mobile, 'md' for desktop, 'sm' for compact/secondary actions.
460
611
  */
461
- size?: "sm" | "md" | "lg";
612
+ size?: ButtonSize;
462
613
  /**
614
+ * @private
463
615
  * Appends a React node after the button content (for custom UI extensions).
464
616
  */
465
617
  append?: React.ReactNode;
466
- /**
467
- * Appends a React node as a separate button, visually grouped with the main button.
468
- */
469
- appendButton?: React.ReactNode;
470
618
  /**
471
619
  * If true, the button is inactive and does not respond to user interaction.
472
620
  */
473
621
  disabled?: boolean;
474
622
  /**
623
+ * @private
475
624
  * If true, the button is visually active or selected (pressed state).
476
625
  */
477
626
  pressed?: boolean;
478
- };
627
+ /**
628
+ * @private
629
+ * If true, the button will not automatically add a tooltip based on the hideLabel and label properties.
630
+ */
631
+ noAutoTooltip?: boolean;
632
+ /**
633
+ * @private
634
+ * If true, the button will not automatically add a title based label
635
+ */
636
+ noTitle?: boolean;
637
+ /**
638
+ * @private
639
+ * The style of the button.
640
+ */
641
+ style?: React.CSSProperties;
642
+ } & ({
643
+ /**
644
+ * The URL to navigate to when the button is clicked.
645
+ */
646
+ href: string;
647
+ /**
648
+ * The target to navigate to when the button is clicked.
649
+ */
650
+ target?: NavTarget;
651
+ type?: never;
652
+ } | {
653
+ href?: never;
654
+ target?: never;
655
+ type?: ButtonType;
656
+ });
479
657
 
480
- export declare type ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[number]>;
658
+ export declare type ButtonSize = (typeof buttonSizes)[number];
481
659
 
482
- declare interface ButtonProps_2 extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
483
- asChild?: boolean;
484
- round?: boolean;
485
- size?: ButtonSize;
486
- variant?: ButtonVariant;
487
- appendButton?: React_2.ReactNode;
488
- pressed?: boolean;
489
- }
660
+ export declare const buttonSizes: readonly ["sm", "md", "lg"];
490
661
 
491
- declare type ButtonSize = (typeof sizes)[number];
662
+ export declare type ButtonToggleSize = (typeof buttonToggleSizes)[number];
492
663
 
493
- declare type ButtonVariant = (typeof variants)[number];
664
+ export declare const buttonToggleSizes: readonly ["sm", "md", "lg"];
494
665
 
495
- declare const buttonVariants: (props?: ({
496
- disabled?: boolean | undefined;
497
- pressed?: boolean | undefined;
498
- variant?: "default" | "critical" | "promote" | "neutral" | "outline" | "ghost" | "outlinePromote" | undefined;
499
- size?: "lg" | "md" | "sm" | undefined;
500
- } & ({
501
- class?: ClassValue;
502
- className?: never;
503
- } | {
504
- class?: never;
505
- className?: ClassValue;
506
- })) | undefined) => string;
666
+ declare type ButtonType = (typeof buttonTypes)[number];
667
+
668
+ declare const buttonTypes: readonly ["button", "submit", "reset"];
669
+
670
+ export declare type ButtonVariant = (typeof buttonVariants)[number];
671
+
672
+ export declare const buttonVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote"];
507
673
 
508
674
  declare type CalendarMode = "single" | "range";
509
675
 
@@ -660,7 +826,7 @@ declare interface CardSecondaryAction {
660
826
  onClick: () => void;
661
827
  }
662
828
 
663
- declare interface CardSecondaryLink extends Pick<LinkProps, "href" | "target" | "disabled"> {
829
+ declare interface CardSecondaryLink extends Pick<F0LinkProps, "href" | "target" | "disabled"> {
664
830
  label: string;
665
831
  }
666
832
 
@@ -675,7 +841,7 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
675
841
 
676
842
  export declare const CategoryBarChart: ForwardRefExoticComponent<Omit<CategoryBarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
677
843
 
678
- declare interface CheckboxProps extends DataAttributes {
844
+ declare interface CheckboxProps extends DataAttributes_2 {
679
845
  /**
680
846
  * The title of the checkbox
681
847
  */
@@ -847,15 +1013,6 @@ declare type ComponentTypes = (typeof componentTypes)[number];
847
1013
 
848
1014
  declare const componentTypes: readonly ["layout", "info", "action", "form"];
849
1015
 
850
- export declare const CopyButton: ForwardRefExoticComponent<Omit<CopyButtonProps, "ref"> & RefAttributes<HTMLButtonElement>>;
851
-
852
- declare type CopyButtonProps = Omit<ComponentProps<typeof Button_2>, "onClick" | "children" | "title" | "label" | "hideLabel" | "icon" | "round"> & {
853
- valueToCopy: string;
854
- copiedTooltipLabel?: string;
855
- copyTooltipLabel?: string;
856
- onCopy?: MouseEventHandler<HTMLButtonElement>;
857
- };
858
-
859
1016
  export declare function createAtlaskitDriver(instanceId: symbol): DndDriver;
860
1017
 
861
1018
  /**
@@ -893,6 +1050,10 @@ export declare type Data<R extends RecordType> = {
893
1050
  */
894
1051
  export declare type DataAdapter<R extends RecordType, Filters extends FiltersDefinition> = BaseDataAdapter<R, Filters, BaseFetchOptions<Filters>, BaseResponse<R>> | PaginatedDataAdapter<R, Filters, PaginatedFetchOptions<Filters>, PaginatedResponse<R>>;
895
1052
 
1053
+ declare type DataAttributes_2 = {
1054
+ [key: `data-${string}`]: string | undefined;
1055
+ };
1056
+
896
1057
  declare type DataCollectionBaseFetchOptions<Filters extends FiltersDefinition, NavigationFilters extends NavigationFiltersDefinition> = BaseFetchOptions<Filters> & DataCollectionExtendFetchOptions<NavigationFilters>;
897
1058
 
898
1059
  /**
@@ -1205,6 +1366,7 @@ export declare const defaultTranslations: {
1205
1366
  readonly thumbsDown: "Dislike";
1206
1367
  readonly other: "Other actions";
1207
1368
  readonly toggle: "Toggle";
1369
+ readonly toggleDropdownMenu: "Toggle dropdown menu";
1208
1370
  };
1209
1371
  readonly status: {
1210
1372
  readonly selected: {
@@ -1426,7 +1588,7 @@ export declare type DragPayload<T = unknown> = {
1426
1588
 
1427
1589
  declare type DropdownItem = DropdownItemObject | DropdownItemSeparator;
1428
1590
 
1429
- declare type DropdownItemObject = NavigationItem & {
1591
+ declare type DropdownItemObject = Pick<NavigationItem, "label" | "href"> & {
1430
1592
  type?: "item";
1431
1593
  onClick?: () => void;
1432
1594
  icon?: IconType;
@@ -1457,10 +1619,11 @@ export declare type DropIntent = {
1457
1619
  type: "cancel";
1458
1620
  };
1459
1621
 
1460
- export declare function EmojiImage({ emoji, size }: EmojiImageProps): JSX_2.Element;
1622
+ export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
1461
1623
 
1462
1624
  export declare interface EmojiImageProps extends VariantProps<typeof emojiVariants> {
1463
1625
  emoji: string;
1626
+ alt?: string;
1464
1627
  }
1465
1628
 
1466
1629
  declare const emojiVariants: (props?: ({
@@ -1686,6 +1849,84 @@ export declare type F0AvatarTeamProps = {
1686
1849
  badge?: AvatarBadge;
1687
1850
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
1688
1851
 
1852
+ export declare const F0Button: ForwardRefExoticComponent<F0ButtonProps & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
1853
+
1854
+ export declare const F0ButtonDropdown: ({ onClick, value, ...props }: F0ButtonDropdownProps) => JSX_2.Element | undefined;
1855
+
1856
+ export declare type F0ButtonDropdownProps<T = string> = {
1857
+ /**
1858
+ * The size of the button.
1859
+ * @default "md"
1860
+ */
1861
+ size?: ButtonDropdownSize;
1862
+ /**
1863
+ * The items to display in the dropdown.
1864
+ */
1865
+ items: ButtonDropdownItem<T>[] | ButtonDropdownGroup<T>[] | ButtonDropdownGroup<T>;
1866
+ /**
1867
+ * The variant of the button.
1868
+ * @default "default"
1869
+ */
1870
+ variant?: ButtonDropdownVariant;
1871
+ /**
1872
+ * The value of the button.
1873
+ */
1874
+ value?: T;
1875
+ /**
1876
+ * The disabled state of the button.
1877
+ * @default false
1878
+ */
1879
+ disabled?: boolean;
1880
+ /**
1881
+ * The loading state of the button.
1882
+ * @default false
1883
+ */
1884
+ loading?: boolean;
1885
+ /**
1886
+ * The tooltip of the button.
1887
+ * @default undefined
1888
+ */
1889
+ tooltip?: string;
1890
+ /**
1891
+ * The callback function to be called when the button is clicked.
1892
+ * @param value The value of the item that was clicked.
1893
+ * @param item The item that was clicked.
1894
+ */
1895
+ onClick: (value: T, item: ButtonDropdownItem<T>) => void;
1896
+ };
1897
+
1898
+ export declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[number]>;
1899
+
1900
+ export declare const F0ButtonToggle: ForwardRefExoticComponent<F0ButtonToggleProps & RefAttributes<HTMLButtonElement>>;
1901
+
1902
+ export declare interface F0ButtonToggleProps {
1903
+ /**
1904
+ * Whether the button is in selected/active state.
1905
+ */
1906
+ selected?: boolean;
1907
+ /**
1908
+ * Callback fired when the button is selected.
1909
+ */
1910
+ onSelectedChange?: (selected: boolean) => void;
1911
+ /**
1912
+ * The accessible label for the button.
1913
+ */
1914
+ label: string;
1915
+ /**
1916
+ * Whether the button is disabled.
1917
+ */
1918
+ disabled?: boolean;
1919
+ /**
1920
+ * The icon to display in the button. Can be a single icon or an array of two icons the first for the non-selected state and the second for the selected state.
1921
+ */
1922
+ icon: IconType | [IconType, IconType];
1923
+ /**
1924
+ * The size of the button.
1925
+ * @default "md"
1926
+ */
1927
+ size?: ButtonToggleSize;
1928
+ }
1929
+
1689
1930
  export declare const F0Card: ForwardRefExoticComponent<F0CardProps & RefAttributes<HTMLDivElement>> & {
1690
1931
  Skeleton: ({ compact }: {
1691
1932
  compact?: boolean;
@@ -1721,6 +1962,16 @@ export declare type F0DatePickerProps = Pick<DatePickerPopupProps, "granularitie
1721
1962
  value?: DatePickerValue;
1722
1963
  } & Pick<InputFieldProps<string>, InputFieldInheritedProps>;
1723
1964
 
1965
+ export declare type F0DropdownButtonProps<T = string> = {
1966
+ size?: ButtonDropdownSize;
1967
+ items: ButtonDropdownItem<T>[] | ButtonDropdownGroup<T>[] | ButtonDropdownGroup<T>;
1968
+ variant?: ButtonDropdownVariant;
1969
+ value?: T;
1970
+ disabled?: boolean;
1971
+ loading?: boolean;
1972
+ onClick: (value: T, item: ButtonDropdownItem<T>) => void;
1973
+ };
1974
+
1724
1975
  export declare function F0EventCatcherProvider({ children, onEvent, enabled, catchEvents, }: EventCatcherProviderProps): JSX.Element;
1725
1976
 
1726
1977
  export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps_2, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
@@ -1732,6 +1983,18 @@ export declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantPro
1732
1983
  color?: "default" | "currentColor" | `#${string}` | Lowercase<NestedKeyOf<typeof f1Colors.icon>>;
1733
1984
  }
1734
1985
 
1986
+ export declare const F0Link: ForwardRefExoticComponent<Omit<ActionLinkProps, "href" | "variant"> & {
1987
+ variant?: ActionLinkVariant;
1988
+ stopPropagation?: boolean;
1989
+ href?: string;
1990
+ } & RefAttributes<HTMLAnchorElement>>;
1991
+
1992
+ export declare type F0LinkProps = Omit<ActionLinkProps, "variant" | "href"> & {
1993
+ variant?: ActionLinkVariant;
1994
+ stopPropagation?: boolean;
1995
+ href?: string;
1996
+ };
1997
+
1735
1998
  export declare const F0Provider: React.FC<{
1736
1999
  children: React.ReactNode;
1737
2000
  link?: LinkContextValue;
@@ -2250,32 +2513,17 @@ export declare const LineChart: ForwardRefExoticComponent<Omit<LineChartPropsBas
2250
2513
  lineType?: "natural" | "linear";
2251
2514
  } & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
2252
2515
 
2253
- export declare const Link: ForwardRefExoticComponent<Omit<LinkProps_3 & RefAttributes<HTMLAnchorElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
2254
-
2255
2516
  declare type LinkContextValue = {
2256
2517
  currentPath?: string;
2257
- component?: (props: LinkProps_2, ref: ForwardedRef<HTMLAnchorElement>) => JSX.Element;
2518
+ component?: (props: LinkProps, ref: ForwardedRef<HTMLAnchorElement>) => JSX.Element;
2258
2519
  };
2259
2520
 
2260
- export declare interface LinkProps extends LinkProps_2, VariantProps<typeof linkVariants>, DataAttributes {
2261
- stopPropagation?: boolean;
2262
- }
2263
-
2264
- declare type LinkProps_2 = AnchorHTMLAttributes<HTMLAnchorElement> & {
2521
+ declare type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
2265
2522
  exactMatch?: boolean;
2266
2523
  disabled?: boolean;
2267
2524
  };
2268
2525
 
2269
- declare const linkVariants: (props?: ({
2270
- variant?: "link" | "unstyled" | undefined;
2271
- disabled?: boolean | undefined;
2272
- } & ({
2273
- class?: ClassValue;
2274
- className?: never;
2275
- } | {
2276
- class?: never;
2277
- className?: ClassValue;
2278
- })) | undefined) => string;
2526
+ export declare const linkVariants: readonly ["link", "unstyled", "mention"];
2279
2527
 
2280
2528
  /**
2281
2529
  * Group List: Renders the list for a group
@@ -2403,9 +2651,11 @@ declare type NavigationFiltersState<Definition extends Record<string, Navigation
2403
2651
  */
2404
2652
  declare type NavigationFilterValue<T> = T extends DateNavigatorFilterDefinition ? DateValue : T extends undefined ? undefined : never;
2405
2653
 
2406
- declare type NavigationItem = Pick<LinkProps_2, "href" | "exactMatch" | "onClick"> & {
2654
+ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick"> & {
2407
2655
  label: string;
2408
- } & DataAttributes;
2656
+ } & DataAttributes_2;
2657
+
2658
+ declare type NavTarget = HTMLAttributeAnchorTarget;
2409
2659
 
2410
2660
  /**
2411
2661
  * Utility type to extract all possible paths from nested object.
@@ -2575,20 +2825,20 @@ declare type PrevNextDateNavigation = {
2575
2825
  next: DateRange | false;
2576
2826
  };
2577
2827
 
2578
- declare type PrimaryActionsDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
2828
+ declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
2579
2829
 
2580
2830
  /**
2581
2831
  * Defines the structure and configuration of the primary action that can be performed on a collection.
2582
2832
  * @returns An action
2583
2833
  */
2584
- declare type PrimaryActionsDefinitionFn = () => PrimaryActionsDefinition | PrimaryActionsDefinition[] | undefined;
2834
+ declare type PrimaryActionsDefinitionFn = () => PrimaryActionItemDefinition | PrimaryActionItemDefinition[] | undefined;
2585
2835
 
2586
2836
  export declare const PrivacyModeProvider: React_2.FC<{
2587
2837
  initiallyEnabled?: boolean;
2588
2838
  children: ReactNode;
2589
2839
  }>;
2590
2840
 
2591
- declare const privateProps: readonly ["append", "appendButton", "className"];
2841
+ declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style"];
2592
2842
 
2593
2843
  declare const privateProps_2: readonly ["forceVerticalMetadata", "disableOverlayLink"];
2594
2844
 
@@ -2813,20 +3063,27 @@ declare type SearchOptions = {
2813
3063
  debounceTime?: number;
2814
3064
  };
2815
3065
 
2816
- declare type SecondaryActionsDefinition = {
2817
- expanded: Enumerate<typeof MAX_EXPANDED_ACTIONS>;
2818
- actions: () => Array<SecondaryActionsItemDefinition> | undefined;
2819
- } | (() => Array<SecondaryActionsItemDefinition> | undefined);
3066
+ declare type SecondaryActionGroup = {
3067
+ label?: string;
3068
+ items: SecondaryActionItem[];
3069
+ };
2820
3070
 
2821
3071
  /**
2822
3072
  * Defines the structure and configuration of secondary actions that can be performed on a collection.
2823
3073
  * @returns An array of actions
2824
3074
  */
2825
- declare type SecondaryActionsItemDefinition = DropdownItem & {
3075
+ declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
2826
3076
  enabled?: boolean;
2827
3077
  hideLabelWhenExpanded?: boolean;
2828
3078
  };
2829
3079
 
3080
+ declare type SecondaryActionsDefinition = {
3081
+ expanded: Enumerate<typeof MAX_EXPANDED_ACTIONS>;
3082
+ actions: () => SecondaryActionsItems | undefined;
3083
+ } | (() => SecondaryActionsItems | undefined);
3084
+
3085
+ declare type SecondaryActionsItems = SecondaryActionItem[] | SecondaryActionItem[][] | SecondaryActionGroup[];
3086
+
2830
3087
  /**
2831
3088
  * Represents a collection of selected items.
2832
3089
  * @template T - The type of items in the collection
@@ -2864,8 +3121,6 @@ export declare type SelectedItemsState = {
2864
3121
  */
2865
3122
  declare type SimpleResult<T> = T[];
2866
3123
 
2867
- declare const sizes: readonly ["sm", "md", "lg"];
2868
-
2869
3124
  /**
2870
3125
  * Type helper to extract keys from a SortingsDefinition
2871
3126
  */
@@ -3196,7 +3451,7 @@ secondaryAction?: DefaultAction | PromoteAction;
3196
3451
 
3197
3452
  export declare function UpsellingButton({ label, showIcon, onRequest, showConfirmation, loading: externalLoading, errorMessage, successMessage, loadingState, nextSteps, closeLabel, variant, onModalStateChange, portalContainer, ...props }: UpsellingButtonProps): JSX_2.Element;
3198
3453
 
3199
- export declare interface UpsellingButtonProps extends Omit<ButtonProps, "icon"> {
3454
+ export declare interface UpsellingButtonProps extends Omit<F0ButtonProps, "icon"> {
3200
3455
  variant?: "promote" | "outlinePromote";
3201
3456
  /**
3202
3457
  * The text to be displayed in the button
@@ -3250,8 +3505,8 @@ declare type UpsellingPopoverProps = {
3250
3505
  isOpen: boolean;
3251
3506
  setIsOpen: (isOpen: boolean) => void;
3252
3507
  label: string;
3253
- variant: ButtonProps["variant"];
3254
- size?: ButtonProps["size"];
3508
+ variant: F0ButtonProps["variant"];
3509
+ size?: F0ButtonProps["size"];
3255
3510
  side?: PopoverContentProps["side"];
3256
3511
  align?: PopoverContentProps["align"];
3257
3512
  icon?: IconType;
@@ -3522,8 +3777,6 @@ declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string
3522
3777
 
3523
3778
  export declare type Variant = "neutral" | "info" | "positive" | "warning" | "critical";
3524
3779
 
3525
- declare const variants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote"];
3526
-
3527
3780
  export declare const VerticalBarChart: ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig_2> & {
3528
3781
  label?: boolean;
3529
3782
  showRatio?: boolean;
@@ -3616,6 +3869,11 @@ declare module "@tiptap/core" {
3616
3869
  }
3617
3870
 
3618
3871
 
3872
+ declare namespace Calendar {
3873
+ var displayName: string;
3874
+ }
3875
+
3876
+
3619
3877
  declare module "@tiptap/core" {
3620
3878
  interface Commands<ReturnType> {
3621
3879
  moodTracker: {
@@ -3623,8 +3881,3 @@ declare module "@tiptap/core" {
3623
3881
  };
3624
3882
  }
3625
3883
  }
3626
-
3627
-
3628
- declare namespace Calendar {
3629
- var displayName: string;
3630
- }