@factorialco/f0-react 1.233.2 → 1.233.3

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.
@@ -1644,12 +1644,13 @@ declare const defaultTranslations: {
1644
1644
  readonly filters: {
1645
1645
  readonly label: "Filters";
1646
1646
  readonly applyFilters: "Apply filters";
1647
+ readonly applySelection: "Apply selection";
1647
1648
  readonly cancel: "Cancel";
1648
1649
  readonly failedToLoadOptions: "Failed to load options";
1649
1650
  readonly retry: "Retry";
1650
1651
  };
1651
1652
  readonly toc: {
1652
- readonly search: "Search";
1653
+ readonly search: "Search...";
1653
1654
  };
1654
1655
  readonly collections: {
1655
1656
  readonly sorting: {
@@ -2284,6 +2285,8 @@ export declare type FilterOptions<FilterKeys extends string> = Record<FilterKeys
2284
2285
  */
2285
2286
  export declare type FiltersDefinition<Keys extends string = string> = Record<Keys, FilterDefinition>;
2286
2287
 
2288
+ export declare type FiltersMode = "default" | "compact";
2289
+
2287
2290
  /**
2288
2291
  * Current state of all filters in a collection.
2289
2292
  * Maps filter keys to their current values.
@@ -2308,6 +2311,7 @@ declare type FilterTypeDefinition<Value = unknown, Options extends object = neve
2308
2311
  schema: Schema;
2309
2312
  value: Value;
2310
2313
  onChange: (value: Value) => void;
2314
+ isCompactMode?: boolean;
2311
2315
  }) => React.ReactNode;
2312
2316
  /**
2313
2317
  * The value label to display in the filter chips
@@ -2429,6 +2433,7 @@ export declare interface GranularityDefinition {
2429
2433
  maxDate?: Date;
2430
2434
  setViewDate: (date: Date) => void;
2431
2435
  viewDate: Date;
2436
+ compact?: boolean;
2432
2437
  }) => ReactNode;
2433
2438
  add: (date: DateRangeComplete, delta: number) => DateRangeComplete;
2434
2439
  getPrevNext(date: DateRange, options: DateNavigationOptions): PrevNextDateNavigation;
@@ -3224,9 +3229,14 @@ declare type OneApprovalHistoryProps = {
3224
3229
  steps: ApprovalStep[];
3225
3230
  };
3226
3231
 
3227
- export declare function OneCalendar({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, }: OneCalendarProps): JSX_2.Element;
3232
+ export declare const OneCalendar: {
3233
+ (props: OneCalendarProps): JSX_2.Element;
3234
+ displayName: string;
3235
+ };
3236
+
3237
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, }: OneCalendarInternalProps) => JSX_2.Element;
3228
3238
 
3229
- export declare interface OneCalendarProps {
3239
+ export declare interface OneCalendarInternalProps {
3230
3240
  mode: CalendarMode;
3231
3241
  view: CalendarView;
3232
3242
  onSelect?: (date: Date | DateRange | null) => void;
@@ -3236,8 +3246,11 @@ export declare interface OneCalendarProps {
3236
3246
  showInput?: boolean;
3237
3247
  minDate?: Date;
3238
3248
  maxDate?: Date;
3249
+ compact?: boolean;
3239
3250
  }
3240
3251
 
3252
+ export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_3)[number]>;
3253
+
3241
3254
  /**
3242
3255
  * @experimental This is an experimental component use it at your own risk
3243
3256
  */
@@ -3411,6 +3424,8 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
3411
3424
  onChange: (value: FiltersState<Definition>) => void;
3412
3425
  /** The children of the component */
3413
3426
  children?: React.ReactNode;
3427
+ /** The mode of the component */
3428
+ mode?: FiltersMode;
3414
3429
  };
3415
3430
 
3416
3431
  export declare const OneModal: OneModalComponent;
@@ -3770,6 +3785,8 @@ declare const privateProps: readonly ["append", "appendButton", "className"];
3770
3785
 
3771
3786
  declare const privateProps_2: readonly [];
3772
3787
 
3788
+ declare const privateProps_3: readonly ["compact"];
3789
+
3773
3790
  declare type ProductUpdate = {
3774
3791
  title: string;
3775
3792
  href: string;
@@ -5162,11 +5179,6 @@ declare module "@tiptap/core" {
5162
5179
  }
5163
5180
 
5164
5181
 
5165
- declare namespace Calendar {
5166
- var displayName: string;
5167
- }
5168
-
5169
-
5170
5182
  declare module "@tiptap/core" {
5171
5183
  interface Commands<ReturnType> {
5172
5184
  moodTracker: {
@@ -5174,3 +5186,8 @@ declare module "@tiptap/core" {
5174
5186
  };
5175
5187
  }
5176
5188
  }
5189
+
5190
+
5191
+ declare namespace Calendar {
5192
+ var displayName: string;
5193
+ }