@factorialco/f0-react 2.25.0 → 2.26.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
@@ -43,6 +43,7 @@ import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
43
43
  import type * as echarts_2 from 'echarts';
44
44
  import { Editor } from '@tiptap/react';
45
45
  import { EmployeeItemProps } from './types';
46
+ import { F0AccordionSkeletonProps } from './F0AccordionSkeleton';
46
47
  import { F0AnalyticsDashboardProps as F0AnalyticsDashboardProps_2 } from './types';
47
48
  import { F0AvatarCompanyProps as F0AvatarCompanyProps_2 } from './types';
48
49
  import { F0AvatarDateProps } from './F0AvatarDate';
@@ -4086,7 +4087,9 @@ export declare const defaultTranslations: {
4086
4087
  readonly paste: "Paste";
4087
4088
  readonly close: "Close";
4088
4089
  readonly collapse: "Collapse";
4090
+ readonly collapseItem: "Collapse {{title}}";
4089
4091
  readonly expand: "Expand";
4092
+ readonly expandItem: "Expand {{title}}";
4090
4093
  readonly showAll: "Show all";
4091
4094
  readonly showLess: "Show less";
4092
4095
  readonly seeMore: "See more";
@@ -5214,6 +5217,46 @@ declare type ExtractVisualizationSettings<T> = T extends {
5214
5217
  };
5215
5218
  } ? S : never;
5216
5219
 
5220
+ /**
5221
+ * @experimental This is an experimental component, use it at your own risk.
5222
+ */
5223
+ export declare const F0Accordion: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0AccordionProps & RefAttributes<HTMLDivElement>> & {
5224
+ Skeleton: ({ items, }: F0AccordionSkeletonProps) => JSX_2.Element;
5225
+ }>;
5226
+
5227
+ export declare interface F0AccordionItem {
5228
+ id: string;
5229
+ title: string;
5230
+ description: string;
5231
+ actions?: F0AccordionItemAction[];
5232
+ defaultOpen?: boolean;
5233
+ }
5234
+
5235
+ export declare type F0AccordionItemAction = F0AccordionItemSegmentedControlAction | F0AccordionItemDropdownAction;
5236
+
5237
+ export declare interface F0AccordionItemDropdownAction {
5238
+ type: "dropdown";
5239
+ ariaLabel: string;
5240
+ items: DropdownItem[];
5241
+ disabled?: boolean;
5242
+ }
5243
+
5244
+ export declare interface F0AccordionItemSegmentedControlAction {
5245
+ type: "segmentedControl";
5246
+ ariaLabel: string;
5247
+ items: F0SegmentedControlItem[];
5248
+ value?: string;
5249
+ onChange?: (value: string) => void;
5250
+ disabled?: boolean;
5251
+ }
5252
+
5253
+ export declare interface F0AccordionProps extends WithDataTestIdProps, DataAttributes_2 {
5254
+ items: F0AccordionItem[];
5255
+ value?: string[];
5256
+ defaultValue?: string[];
5257
+ onValueChange?: (openIds: string[]) => void;
5258
+ }
5259
+
5217
5260
  export declare const F0ActionBar: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0ActionBarProps & RefAttributes<F0ActionBarRef>>>;
5218
5261
 
5219
5262
  declare interface F0ActionBarProps {
@@ -9105,6 +9148,17 @@ export declare interface F0SectionConfig {
9105
9148
  action?: F0SectionAction;
9106
9149
  }
9107
9150
 
9151
+ declare interface F0SegmentedControlItem {
9152
+ /** Unique value for this segment */
9153
+ value: string;
9154
+ /** Label displayed inside the segment */
9155
+ label: string;
9156
+ /** Optional icon shown before the label */
9157
+ icon?: IconType;
9158
+ /** Whether this specific segment is disabled */
9159
+ disabled?: boolean;
9160
+ }
9161
+
9108
9162
  /**
9109
9163
  * @experimental This is an experimental component use it at your own risk
9110
9164
  */
@@ -15026,11 +15080,6 @@ declare module "gridstack" {
15026
15080
  }
15027
15081
 
15028
15082
 
15029
- declare namespace Calendar {
15030
- var displayName: string;
15031
- }
15032
-
15033
-
15034
15083
  declare module "@tiptap/core" {
15035
15084
  interface Commands<ReturnType> {
15036
15085
  aiBlock: {
@@ -15080,6 +15129,11 @@ declare module "@tiptap/core" {
15080
15129
  }
15081
15130
 
15082
15131
 
15132
+ declare namespace Calendar {
15133
+ var displayName: string;
15134
+ }
15135
+
15136
+
15083
15137
  declare namespace F0GraphNodeWrapperInner {
15084
15138
  var displayName: string;
15085
15139
  }