@factorialco/f0-react 1.233.1 → 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.
- package/dist/experimental.d.ts +21 -3
- package/dist/experimental.js +2560 -2540
- package/dist/f0.d.ts +9 -1
- package/dist/f0.js +17 -16
- package/dist/{hooks-C1WJ6dmn.js → hooks-BSa3UINJ.js} +20783 -20609
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -524,6 +524,7 @@ export declare type BaseBannerProps = {
|
|
|
524
524
|
onClose?: () => void;
|
|
525
525
|
isLoading?: boolean;
|
|
526
526
|
children?: React.ReactNode;
|
|
527
|
+
variant?: "default" | "full-width";
|
|
527
528
|
};
|
|
528
529
|
|
|
529
530
|
export declare const BaseCelebration: ({ link, firstName, lastName, src, onClick, canReact, lastEmojiReaction, onReactionSelect, type, typeLabel, date, }: CelebrationProps) => JSX_2.Element;
|
|
@@ -1643,12 +1644,13 @@ declare const defaultTranslations: {
|
|
|
1643
1644
|
readonly filters: {
|
|
1644
1645
|
readonly label: "Filters";
|
|
1645
1646
|
readonly applyFilters: "Apply filters";
|
|
1647
|
+
readonly applySelection: "Apply selection";
|
|
1646
1648
|
readonly cancel: "Cancel";
|
|
1647
1649
|
readonly failedToLoadOptions: "Failed to load options";
|
|
1648
1650
|
readonly retry: "Retry";
|
|
1649
1651
|
};
|
|
1650
1652
|
readonly toc: {
|
|
1651
|
-
readonly search: "Search";
|
|
1653
|
+
readonly search: "Search...";
|
|
1652
1654
|
};
|
|
1653
1655
|
readonly collections: {
|
|
1654
1656
|
readonly sorting: {
|
|
@@ -2283,6 +2285,8 @@ export declare type FilterOptions<FilterKeys extends string> = Record<FilterKeys
|
|
|
2283
2285
|
*/
|
|
2284
2286
|
export declare type FiltersDefinition<Keys extends string = string> = Record<Keys, FilterDefinition>;
|
|
2285
2287
|
|
|
2288
|
+
export declare type FiltersMode = "default" | "compact";
|
|
2289
|
+
|
|
2286
2290
|
/**
|
|
2287
2291
|
* Current state of all filters in a collection.
|
|
2288
2292
|
* Maps filter keys to their current values.
|
|
@@ -2307,6 +2311,7 @@ declare type FilterTypeDefinition<Value = unknown, Options extends object = neve
|
|
|
2307
2311
|
schema: Schema;
|
|
2308
2312
|
value: Value;
|
|
2309
2313
|
onChange: (value: Value) => void;
|
|
2314
|
+
isCompactMode?: boolean;
|
|
2310
2315
|
}) => React.ReactNode;
|
|
2311
2316
|
/**
|
|
2312
2317
|
* The value label to display in the filter chips
|
|
@@ -2428,6 +2433,7 @@ export declare interface GranularityDefinition {
|
|
|
2428
2433
|
maxDate?: Date;
|
|
2429
2434
|
setViewDate: (date: Date) => void;
|
|
2430
2435
|
viewDate: Date;
|
|
2436
|
+
compact?: boolean;
|
|
2431
2437
|
}) => ReactNode;
|
|
2432
2438
|
add: (date: DateRangeComplete, delta: number) => DateRangeComplete;
|
|
2433
2439
|
getPrevNext(date: DateRange, options: DateNavigationOptions): PrevNextDateNavigation;
|
|
@@ -3223,9 +3229,14 @@ declare type OneApprovalHistoryProps = {
|
|
|
3223
3229
|
steps: ApprovalStep[];
|
|
3224
3230
|
};
|
|
3225
3231
|
|
|
3226
|
-
export declare
|
|
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;
|
|
3227
3238
|
|
|
3228
|
-
export declare interface
|
|
3239
|
+
export declare interface OneCalendarInternalProps {
|
|
3229
3240
|
mode: CalendarMode;
|
|
3230
3241
|
view: CalendarView;
|
|
3231
3242
|
onSelect?: (date: Date | DateRange | null) => void;
|
|
@@ -3235,8 +3246,11 @@ export declare interface OneCalendarProps {
|
|
|
3235
3246
|
showInput?: boolean;
|
|
3236
3247
|
minDate?: Date;
|
|
3237
3248
|
maxDate?: Date;
|
|
3249
|
+
compact?: boolean;
|
|
3238
3250
|
}
|
|
3239
3251
|
|
|
3252
|
+
export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_3)[number]>;
|
|
3253
|
+
|
|
3240
3254
|
/**
|
|
3241
3255
|
* @experimental This is an experimental component use it at your own risk
|
|
3242
3256
|
*/
|
|
@@ -3410,6 +3424,8 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
|
|
|
3410
3424
|
onChange: (value: FiltersState<Definition>) => void;
|
|
3411
3425
|
/** The children of the component */
|
|
3412
3426
|
children?: React.ReactNode;
|
|
3427
|
+
/** The mode of the component */
|
|
3428
|
+
mode?: FiltersMode;
|
|
3413
3429
|
};
|
|
3414
3430
|
|
|
3415
3431
|
export declare const OneModal: OneModalComponent;
|
|
@@ -3769,6 +3785,8 @@ declare const privateProps: readonly ["append", "appendButton", "className"];
|
|
|
3769
3785
|
|
|
3770
3786
|
declare const privateProps_2: readonly [];
|
|
3771
3787
|
|
|
3788
|
+
declare const privateProps_3: readonly ["compact"];
|
|
3789
|
+
|
|
3772
3790
|
declare type ProductUpdate = {
|
|
3773
3791
|
title: string;
|
|
3774
3792
|
href: string;
|