@factorialco/f0-react 2.24.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';
@@ -3735,6 +3736,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
3735
3736
  item: R;
3736
3737
  pagination?: ChildrenPaginationInfo;
3737
3738
  }) => number | undefined;
3739
+ /**
3740
+ * Item ids that start expanded on first render. Rows matched here have
3741
+ * their children fetched eagerly. Only rows whose `item.id` is in this
3742
+ * list are auto-expanded — nested descendants are not, unless their own id
3743
+ * is also included. Defaults to none.
3744
+ */
3745
+ defaultExpandedIds?: Array<string | number>;
3738
3746
  };
3739
3747
 
3740
3748
  /**
@@ -4079,7 +4087,9 @@ export declare const defaultTranslations: {
4079
4087
  readonly paste: "Paste";
4080
4088
  readonly close: "Close";
4081
4089
  readonly collapse: "Collapse";
4090
+ readonly collapseItem: "Collapse {{title}}";
4082
4091
  readonly expand: "Expand";
4092
+ readonly expandItem: "Expand {{title}}";
4083
4093
  readonly showAll: "Show all";
4084
4094
  readonly showLess: "Show less";
4085
4095
  readonly seeMore: "See more";
@@ -5207,6 +5217,46 @@ declare type ExtractVisualizationSettings<T> = T extends {
5207
5217
  };
5208
5218
  } ? S : never;
5209
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
+
5210
5260
  export declare const F0ActionBar: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0ActionBarProps & RefAttributes<F0ActionBarRef>>>;
5211
5261
 
5212
5262
  declare interface F0ActionBarProps {
@@ -9098,6 +9148,17 @@ export declare interface F0SectionConfig {
9098
9148
  action?: F0SectionAction;
9099
9149
  }
9100
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
+
9101
9162
  /**
9102
9163
  * @experimental This is an experimental component use it at your own risk
9103
9164
  */