@factorialco/f0-react 1.259.1 → 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 +18 -16
- package/dist/experimental.js +3264 -3237
- package/dist/f0.d.ts +10 -7
- package/dist/f0.js +2 -2
- 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;
|
|
@@ -2196,17 +2197,17 @@ description: string;
|
|
|
2196
2197
|
actions?: {
|
|
2197
2198
|
primary: {
|
|
2198
2199
|
label: string;
|
|
2199
|
-
icon?: IconType_2 | undefined;
|
|
2200
2200
|
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2201
2201
|
disabled?: boolean | undefined;
|
|
2202
|
+
icon?: IconType_2 | undefined;
|
|
2202
2203
|
} & {
|
|
2203
2204
|
variant?: "default" | "critical" | "neutral";
|
|
2204
2205
|
};
|
|
2205
2206
|
secondary: {
|
|
2206
2207
|
label: string;
|
|
2207
|
-
icon?: IconType_2 | undefined;
|
|
2208
2208
|
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2209
2209
|
disabled?: boolean | undefined;
|
|
2210
|
+
icon?: IconType_2 | undefined;
|
|
2210
2211
|
};
|
|
2211
2212
|
};
|
|
2212
2213
|
open?: boolean;
|
|
@@ -2547,6 +2548,7 @@ export declare type F0CalloutProps = CalloutInternalProps;
|
|
|
2547
2548
|
|
|
2548
2549
|
declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
2549
2550
|
icon: IconType;
|
|
2551
|
+
tooltip?: string;
|
|
2550
2552
|
size?: "lg" | "md" | "sm" | "xs";
|
|
2551
2553
|
state?: "normal" | "animate";
|
|
2552
2554
|
color?: "default" | "currentColor" | `#${string}` | Lowercase<NestedKeyOf<typeof f1Colors.icon>>;
|
|
@@ -2563,7 +2565,7 @@ value?: string;
|
|
|
2563
2565
|
threshold?: number;
|
|
2564
2566
|
debounceTime?: number;
|
|
2565
2567
|
autoFocus?: boolean;
|
|
2566
|
-
} & Pick<InputFieldProps<string>, "onChange" | "
|
|
2568
|
+
} & Pick<InputFieldProps<string>, "onChange" | "onFocus" | "onBlur" | "name" | "disabled" | "placeholder" | "size" | "loading" | "clearable"> & RefAttributes<HTMLInputElement>>;
|
|
2567
2569
|
|
|
2568
2570
|
declare type FavoriteMenuItem = ({
|
|
2569
2571
|
type: "icon";
|
|
@@ -3050,7 +3052,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
3050
3052
|
|
|
3051
3053
|
export declare const Input: <T extends string = string>({ type, ...props }: InputProps<T>) => JSX_2.Element;
|
|
3052
3054
|
|
|
3053
|
-
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>>;
|
|
3054
3056
|
|
|
3055
3057
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
3056
3058
|
|
|
@@ -5101,7 +5103,7 @@ export declare const Textarea: React.FC<TextareaProps>;
|
|
|
5101
5103
|
|
|
5102
5104
|
declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
5103
5105
|
value?: string;
|
|
5104
|
-
} & 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>>;
|
|
5105
5107
|
|
|
5106
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">;
|
|
5107
5109
|
|
|
@@ -5167,7 +5169,7 @@ declare type toggleActionType = {
|
|
|
5167
5169
|
|
|
5168
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?: ({
|
|
5169
5171
|
variant?: "default" | "outline" | undefined;
|
|
5170
|
-
size?: "
|
|
5172
|
+
size?: "default" | "lg" | "sm" | undefined;
|
|
5171
5173
|
} & ({
|
|
5172
5174
|
class?: ClassValue;
|
|
5173
5175
|
className?: never;
|
|
@@ -5178,7 +5180,7 @@ export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<Toggl
|
|
|
5178
5180
|
|
|
5179
5181
|
export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
5180
5182
|
variant?: "default" | "outline" | undefined;
|
|
5181
|
-
size?: "
|
|
5183
|
+
size?: "default" | "lg" | "sm" | undefined;
|
|
5182
5184
|
} & ({
|
|
5183
5185
|
class?: ClassValue;
|
|
5184
5186
|
className?: never;
|
|
@@ -5672,8 +5674,8 @@ declare global {
|
|
|
5672
5674
|
|
|
5673
5675
|
declare module "@tiptap/core" {
|
|
5674
5676
|
interface Commands<ReturnType> {
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
+
liveCompanion: {
|
|
5678
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
5677
5679
|
};
|
|
5678
5680
|
}
|
|
5679
5681
|
}
|
|
@@ -5681,8 +5683,8 @@ declare module "@tiptap/core" {
|
|
|
5681
5683
|
|
|
5682
5684
|
declare module "@tiptap/core" {
|
|
5683
5685
|
interface Commands<ReturnType> {
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
+
aiBlock: {
|
|
5687
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
5686
5688
|
};
|
|
5687
5689
|
}
|
|
5688
5690
|
}
|