@factorialco/f0-react 1.259.0 → 1.260.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/experimental.d.ts +26 -18
- package/dist/experimental.js +3630 -3602
- package/dist/f0.d.ts +17 -8
- package/dist/f0.js +9 -3
- package/dist/{hooks-nJDkwAyV.js → hooks-DHnRuaUS.js} +8531 -8547
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -504,7 +504,7 @@ declare interface AiPromotionChatState {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
export declare const Alert: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
507
|
-
variant?: "info" | "
|
|
507
|
+
variant?: "info" | "positive" | "warning" | "destructive" | undefined;
|
|
508
508
|
} & ({
|
|
509
509
|
class?: ClassValue;
|
|
510
510
|
className?: never;
|
|
@@ -523,7 +523,7 @@ declare const alertAvatarSizes: readonly ["sm", "md", "lg"];
|
|
|
523
523
|
declare const alertAvatarTypes: readonly ["critical", "warning", "info", "positive"];
|
|
524
524
|
|
|
525
525
|
declare const alertAvatarVariants: (props?: ({
|
|
526
|
-
type?: "info" | "
|
|
526
|
+
type?: "info" | "positive" | "critical" | "warning" | undefined;
|
|
527
527
|
size?: "lg" | "md" | "sm" | undefined;
|
|
528
528
|
} & ({
|
|
529
529
|
class?: ClassValue;
|
|
@@ -555,7 +555,7 @@ export declare const AlertTitle: React_2.ForwardRefExoticComponent<React_2.HTMLA
|
|
|
555
555
|
declare type AlertVariant = "info" | "warning" | "critical" | "neutral" | "positive";
|
|
556
556
|
|
|
557
557
|
declare const alertVariants: (props?: ({
|
|
558
|
-
variant?: "info" | "
|
|
558
|
+
variant?: "info" | "positive" | "critical" | "warning" | "neutral" | undefined;
|
|
559
559
|
} & ({
|
|
560
560
|
class?: ClassValue;
|
|
561
561
|
className?: never;
|
|
@@ -652,7 +652,7 @@ export declare interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
declare const badgeVariants: (props?: ({
|
|
655
|
-
type?: "
|
|
655
|
+
type?: "positive" | "critical" | "warning" | "neutral" | "highlight" | undefined;
|
|
656
656
|
size?: "lg" | "md" | "sm" | "xs" | undefined;
|
|
657
657
|
} & ({
|
|
658
658
|
class?: ClassValue;
|
|
@@ -1180,6 +1180,7 @@ declare type CardMetadataProperty = {
|
|
|
1180
1180
|
|
|
1181
1181
|
declare type CardPropertyDefinition<T> = PropertyDefinition_2<T> & {
|
|
1182
1182
|
icon?: IconType;
|
|
1183
|
+
tooltip?: string;
|
|
1183
1184
|
};
|
|
1184
1185
|
|
|
1185
1186
|
declare const cardPropertyRenderers: {
|
|
@@ -1528,7 +1529,7 @@ declare type CounterProps = {
|
|
|
1528
1529
|
|
|
1529
1530
|
declare const counterVariants: (props?: ({
|
|
1530
1531
|
size?: "md" | "sm" | undefined;
|
|
1531
|
-
type?: "bold" | "
|
|
1532
|
+
type?: "bold" | "selected" | "default" | undefined;
|
|
1532
1533
|
} & ({
|
|
1533
1534
|
class?: ClassValue;
|
|
1534
1535
|
className?: never;
|
|
@@ -1945,7 +1946,13 @@ declare const defaultTranslations: {
|
|
|
1945
1946
|
};
|
|
1946
1947
|
};
|
|
1947
1948
|
readonly navigation: {
|
|
1948
|
-
readonly sidebar:
|
|
1949
|
+
readonly sidebar: {
|
|
1950
|
+
readonly label: "Main navigation";
|
|
1951
|
+
readonly companySelector: {
|
|
1952
|
+
readonly label: "Select a company";
|
|
1953
|
+
readonly placeholder: "Select a company";
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1949
1956
|
readonly previous: "Previous";
|
|
1950
1957
|
readonly next: "Next";
|
|
1951
1958
|
};
|
|
@@ -2190,17 +2197,17 @@ description: string;
|
|
|
2190
2197
|
actions?: {
|
|
2191
2198
|
primary: {
|
|
2192
2199
|
label: string;
|
|
2193
|
-
icon?: IconType_2 | undefined;
|
|
2194
2200
|
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2195
2201
|
disabled?: boolean | undefined;
|
|
2202
|
+
icon?: IconType_2 | undefined;
|
|
2196
2203
|
} & {
|
|
2197
2204
|
variant?: "default" | "critical" | "neutral";
|
|
2198
2205
|
};
|
|
2199
2206
|
secondary: {
|
|
2200
2207
|
label: string;
|
|
2201
|
-
icon?: IconType_2 | undefined;
|
|
2202
2208
|
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2203
2209
|
disabled?: boolean | undefined;
|
|
2210
|
+
icon?: IconType_2 | undefined;
|
|
2204
2211
|
};
|
|
2205
2212
|
};
|
|
2206
2213
|
open?: boolean;
|
|
@@ -2541,6 +2548,7 @@ export declare type F0CalloutProps = CalloutInternalProps;
|
|
|
2541
2548
|
|
|
2542
2549
|
declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
2543
2550
|
icon: IconType;
|
|
2551
|
+
tooltip?: string;
|
|
2544
2552
|
size?: "lg" | "md" | "sm" | "xs";
|
|
2545
2553
|
state?: "normal" | "animate";
|
|
2546
2554
|
color?: "default" | "currentColor" | `#${string}` | Lowercase<NestedKeyOf<typeof f1Colors.icon>>;
|
|
@@ -2557,7 +2565,7 @@ value?: string;
|
|
|
2557
2565
|
threshold?: number;
|
|
2558
2566
|
debounceTime?: number;
|
|
2559
2567
|
autoFocus?: boolean;
|
|
2560
|
-
} & Pick<InputFieldProps<string>, "onChange" | "
|
|
2568
|
+
} & Pick<InputFieldProps<string>, "onChange" | "onFocus" | "onBlur" | "name" | "disabled" | "placeholder" | "size" | "loading" | "clearable"> & RefAttributes<HTMLInputElement>>;
|
|
2561
2569
|
|
|
2562
2570
|
declare type FavoriteMenuItem = ({
|
|
2563
2571
|
type: "icon";
|
|
@@ -3044,7 +3052,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
3044
3052
|
|
|
3045
3053
|
export declare const Input: <T extends string = string>({ type, ...props }: InputProps<T>) => JSX_2.Element;
|
|
3046
3054
|
|
|
3047
|
-
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "
|
|
3055
|
+
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "disabled" | "maxLength" | "required" | "size" | "loading" | "status" | "error" | "icon" | "hideLabel" | "append" | "labelIcon" | "onClickContent" | "hint" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
3048
3056
|
|
|
3049
3057
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
3050
3058
|
|
|
@@ -4693,7 +4701,7 @@ declare interface SidebarFooterProps {
|
|
|
4693
4701
|
options: DropdownItem[];
|
|
4694
4702
|
}
|
|
4695
4703
|
|
|
4696
|
-
export declare function SidebarHeader({ companies, selected, onChange, withNotification, additionalOptions, }: SidebarHeaderProps): JSX_2.Element;
|
|
4704
|
+
export declare function SidebarHeader({ companies, selected, onChange, withNotification, additionalOptions, isLoading, }: SidebarHeaderProps): JSX_2.Element;
|
|
4697
4705
|
|
|
4698
4706
|
export declare type SidebarHeaderProps = CompanySelectorProps & SidebarIconProps;
|
|
4699
4707
|
|
|
@@ -5095,7 +5103,7 @@ export declare const Textarea: React.FC<TextareaProps>;
|
|
|
5095
5103
|
|
|
5096
5104
|
declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
5097
5105
|
value?: string;
|
|
5098
|
-
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "
|
|
5106
|
+
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "maxLength" | "placeholder" | "status" | "error" | "icon" | "hideLabel" | "labelIcon" | "hint" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
5099
5107
|
|
|
5100
5108
|
export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error">;
|
|
5101
5109
|
|
|
@@ -5161,7 +5169,7 @@ declare type toggleActionType = {
|
|
|
5161
5169
|
|
|
5162
5170
|
export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
5163
5171
|
variant?: "default" | "outline" | undefined;
|
|
5164
|
-
size?: "
|
|
5172
|
+
size?: "default" | "lg" | "sm" | undefined;
|
|
5165
5173
|
} & ({
|
|
5166
5174
|
class?: ClassValue;
|
|
5167
5175
|
className?: never;
|
|
@@ -5172,7 +5180,7 @@ export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<Toggl
|
|
|
5172
5180
|
|
|
5173
5181
|
export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
5174
5182
|
variant?: "default" | "outline" | undefined;
|
|
5175
|
-
size?: "
|
|
5183
|
+
size?: "default" | "lg" | "sm" | undefined;
|
|
5176
5184
|
} & ({
|
|
5177
5185
|
class?: ClassValue;
|
|
5178
5186
|
className?: never;
|
|
@@ -5666,8 +5674,8 @@ declare global {
|
|
|
5666
5674
|
|
|
5667
5675
|
declare module "@tiptap/core" {
|
|
5668
5676
|
interface Commands<ReturnType> {
|
|
5669
|
-
|
|
5670
|
-
|
|
5677
|
+
liveCompanion: {
|
|
5678
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
5671
5679
|
};
|
|
5672
5680
|
}
|
|
5673
5681
|
}
|
|
@@ -5675,8 +5683,8 @@ declare module "@tiptap/core" {
|
|
|
5675
5683
|
|
|
5676
5684
|
declare module "@tiptap/core" {
|
|
5677
5685
|
interface Commands<ReturnType> {
|
|
5678
|
-
|
|
5679
|
-
|
|
5686
|
+
aiBlock: {
|
|
5687
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
5680
5688
|
};
|
|
5681
5689
|
}
|
|
5682
5690
|
}
|