@factorialco/f0-react 1.306.4 → 1.308.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 +52 -37
- package/dist/experimental.js +3990 -3971
- package/dist/f0.d.ts +113 -56
- package/dist/f0.js +232 -218
- package/dist/{hooks-DRjrmneu.js → hooks-DhJYpAKB.js} +21517 -21419
- package/dist/styles.css +1 -1
- package/icons/app/ClockBack.js +1 -1
- package/icons/app/DropdownDefault.js +1 -1
- package/icons/app/DropdownOpen.js +1 -1
- package/icons/app/EqualApproximately.d.ts.map +1 -1
- package/icons/app/EqualApproximately.js +2 -2
- package/icons/{modules/ITManagement.d.ts → app/Marketplace.d.ts} +1 -1
- package/icons/app/Marketplace.d.ts.map +1 -0
- package/icons/app/Marketplace.js +5 -0
- package/icons/app/index.d.ts +1 -0
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +1 -0
- package/icons/modules/Discover.d.ts.map +1 -1
- package/icons/modules/Discover.js +1 -1
- package/icons/modules/ItManagement.d.ts +4 -0
- package/icons/modules/ItManagement.d.ts.map +1 -0
- package/icons/modules/Marketplace.d.ts +4 -0
- package/icons/modules/Marketplace.d.ts.map +1 -0
- package/icons/modules/Marketplace.js +5 -0
- package/icons/modules/index.d.ts +2 -1
- package/icons/modules/index.d.ts.map +1 -1
- package/icons/modules/index.js +2 -1
- package/package.json +3 -3
- package/icons/modules/ITManagement.d.ts.map +0 -1
- /package/icons/modules/{ITManagement.js → ItManagement.js} +0 -0
package/dist/experimental.d.ts
CHANGED
|
@@ -1406,13 +1406,13 @@ declare type ChartItem<K extends ChartConfig> = {
|
|
|
1406
1406
|
};
|
|
1407
1407
|
};
|
|
1408
1408
|
|
|
1409
|
-
export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<
|
|
1409
|
+
export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_4 & RefAttributes<HTMLDivElement>>;
|
|
1410
1410
|
|
|
1411
1411
|
declare type ChatTextareaProps = InputProps_2 & {
|
|
1412
1412
|
submitLabel?: string;
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
|
-
export declare type ChatWidgetEmptyStateProps =
|
|
1415
|
+
export declare type ChatWidgetEmptyStateProps = Props_4;
|
|
1416
1416
|
|
|
1417
1417
|
declare type ChildrenPaginationInfo = {
|
|
1418
1418
|
total: number;
|
|
@@ -3051,9 +3051,26 @@ export { F0SelectProps as SelectProps }
|
|
|
3051
3051
|
|
|
3052
3052
|
export declare function F0TableOfContent(props: TOCProps): JSX_2.Element;
|
|
3053
3053
|
|
|
3054
|
-
declare const F0TagAlert: ForwardRefExoticComponent<
|
|
3054
|
+
declare const F0TagAlert: ForwardRefExoticComponent<Props_7 & RefAttributes<HTMLDivElement>>;
|
|
3055
3055
|
|
|
3056
|
-
declare const F0TagRaw: ForwardRefExoticComponent<
|
|
3056
|
+
declare const F0TagRaw: ForwardRefExoticComponent<F0TagRawProps & RefAttributes<HTMLDivElement>>;
|
|
3057
|
+
|
|
3058
|
+
declare type F0TagRawProps = {
|
|
3059
|
+
/**
|
|
3060
|
+
* The label to display in the tag or used for accessible text
|
|
3061
|
+
*/
|
|
3062
|
+
text: string;
|
|
3063
|
+
/**
|
|
3064
|
+
* Additional accessible text to display in the tag
|
|
3065
|
+
*/
|
|
3066
|
+
additionalAccessibleText?: string;
|
|
3067
|
+
} & ({
|
|
3068
|
+
icon: IconType;
|
|
3069
|
+
onlyIcon: true;
|
|
3070
|
+
} | {
|
|
3071
|
+
icon?: IconType;
|
|
3072
|
+
onlyIcon?: boolean;
|
|
3073
|
+
});
|
|
3057
3074
|
|
|
3058
3075
|
export declare function F0VersionHistory({ title, versions, currentVersion, activeVersionId, }: F0VersionHistoryProps): JSX_2.Element;
|
|
3059
3076
|
|
|
@@ -3602,7 +3619,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
3602
3619
|
|
|
3603
3620
|
export declare const Input: <T extends string>(props: InputProps<T>) => JSX_2.Element;
|
|
3604
3621
|
|
|
3605
|
-
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "status" | "size" | "icon" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "
|
|
3622
|
+
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "status" | "size" | "icon" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
3606
3623
|
|
|
3607
3624
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
3608
3625
|
|
|
@@ -3776,7 +3793,9 @@ export declare type lastIntentType = {
|
|
|
3776
3793
|
customIntent?: string;
|
|
3777
3794
|
} | null;
|
|
3778
3795
|
|
|
3779
|
-
declare type Level =
|
|
3796
|
+
declare type Level = (typeof levels)[number];
|
|
3797
|
+
|
|
3798
|
+
declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
3780
3799
|
|
|
3781
3800
|
export declare const LineChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_2 & {
|
|
3782
3801
|
chart: LineChartProps;
|
|
@@ -4187,7 +4206,7 @@ declare type NestedResponseWithType<R extends RecordType> = {
|
|
|
4187
4206
|
|
|
4188
4207
|
declare type NestedVariant = "basic" | "detailed";
|
|
4189
4208
|
|
|
4190
|
-
declare type NewColor = Extract<BaseColor,
|
|
4209
|
+
declare type NewColor = Extract<BaseColor, (typeof tagDotColors)[number]>;
|
|
4191
4210
|
|
|
4192
4211
|
declare type NextDepth<T> = T extends 1 ? 2 : T extends 2 ? 3 : T extends 3 ? 4 : never;
|
|
4193
4212
|
|
|
@@ -4631,7 +4650,7 @@ export declare type OnePersonListItemProps = {
|
|
|
4631
4650
|
avatarBadge?: AvatarBadge;
|
|
4632
4651
|
};
|
|
4633
4652
|
description?: string;
|
|
4634
|
-
bottomTags: Omit<
|
|
4653
|
+
bottomTags: Omit<F0TagRawProps, "noBorder">[];
|
|
4635
4654
|
rightTag?: Props_3;
|
|
4636
4655
|
actions?: {
|
|
4637
4656
|
primary?: {
|
|
@@ -4997,14 +5016,6 @@ declare type PropertyDefinition_2<T> = {
|
|
|
4997
5016
|
|
|
4998
5017
|
declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status">;
|
|
4999
5018
|
|
|
5000
|
-
declare type Props_10<Id extends string | number = string | number> = {
|
|
5001
|
-
items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
|
|
5002
|
-
minSize?: number;
|
|
5003
|
-
gap?: number;
|
|
5004
|
-
onClickItem?: (id: Id) => void;
|
|
5005
|
-
showAllItems?: boolean;
|
|
5006
|
-
};
|
|
5007
|
-
|
|
5008
5019
|
declare type Props_2 = {
|
|
5009
5020
|
/** Main heading text */
|
|
5010
5021
|
title: string;
|
|
@@ -5033,14 +5044,6 @@ declare type Props_3 = {
|
|
|
5033
5044
|
});
|
|
5034
5045
|
|
|
5035
5046
|
declare interface Props_4 {
|
|
5036
|
-
text?: string;
|
|
5037
|
-
additionalAccesibleText?: string;
|
|
5038
|
-
icon?: IconType;
|
|
5039
|
-
noBorder?: boolean;
|
|
5040
|
-
className?: string;
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
declare interface Props_5 {
|
|
5044
5047
|
title: string;
|
|
5045
5048
|
content: string;
|
|
5046
5049
|
buttonLabel?: string;
|
|
@@ -5049,7 +5052,7 @@ declare interface Props_5 {
|
|
|
5049
5052
|
type: Type;
|
|
5050
5053
|
}
|
|
5051
5054
|
|
|
5052
|
-
declare type
|
|
5055
|
+
declare type Props_5 = {
|
|
5053
5056
|
label: string;
|
|
5054
5057
|
icon: IconType;
|
|
5055
5058
|
iconClassName?: string;
|
|
@@ -5057,7 +5060,7 @@ declare type Props_6 = {
|
|
|
5057
5060
|
onClick?: () => void;
|
|
5058
5061
|
};
|
|
5059
5062
|
|
|
5060
|
-
declare type
|
|
5063
|
+
declare type Props_6<Id extends string | number = string | number> = {
|
|
5061
5064
|
id: Id;
|
|
5062
5065
|
module?: ModuleId;
|
|
5063
5066
|
title: string;
|
|
@@ -5065,18 +5068,26 @@ declare type Props_7<Id extends string | number = string | number> = {
|
|
|
5065
5068
|
onClick?: (id: Id) => void;
|
|
5066
5069
|
};
|
|
5067
5070
|
|
|
5068
|
-
declare type
|
|
5071
|
+
declare type Props_7<Text extends string = string> = {
|
|
5069
5072
|
text: Text extends "" ? never : Text;
|
|
5070
5073
|
level: Level;
|
|
5071
5074
|
};
|
|
5072
5075
|
|
|
5073
|
-
declare type
|
|
5076
|
+
declare type Props_8<Id extends string | number = string | number> = {
|
|
5074
5077
|
items: Omit<WidgetInboxListItemProps<Id>, "onClick">[];
|
|
5075
5078
|
minSize?: number;
|
|
5076
5079
|
onClickItem?: (id: Id) => void;
|
|
5077
5080
|
showAllItems?: boolean;
|
|
5078
5081
|
} & Pick<ComponentProps<typeof VerticalOverflowList>, "onVisibleItemsChange">;
|
|
5079
5082
|
|
|
5083
|
+
declare type Props_9<Id extends string | number = string | number> = {
|
|
5084
|
+
items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
|
|
5085
|
+
minSize?: number;
|
|
5086
|
+
gap?: number;
|
|
5087
|
+
onClickItem?: (id: Id) => void;
|
|
5088
|
+
showAllItems?: boolean;
|
|
5089
|
+
};
|
|
5090
|
+
|
|
5080
5091
|
declare type Pulse = (typeof pulses)[number];
|
|
5081
5092
|
|
|
5082
5093
|
declare const pulses: readonly ["superNegative", "negative", "neutral", "positive", "superPositive"];
|
|
@@ -5570,6 +5581,8 @@ className?: ClassValue;
|
|
|
5570
5581
|
|
|
5571
5582
|
declare type Status = "waiting" | "pending" | "approved" | "rejected";
|
|
5572
5583
|
|
|
5584
|
+
declare const statuses: readonly ["neutral", "info", "positive", "warning", "critical"];
|
|
5585
|
+
|
|
5573
5586
|
declare type StatusVariant = Variant;
|
|
5574
5587
|
|
|
5575
5588
|
declare interface StepItemProps {
|
|
@@ -5789,6 +5802,8 @@ declare type Tag = {
|
|
|
5789
5802
|
description?: string;
|
|
5790
5803
|
};
|
|
5791
5804
|
|
|
5805
|
+
declare const tagDotColors: ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
|
|
5806
|
+
|
|
5792
5807
|
declare interface Task {
|
|
5793
5808
|
id: number | string;
|
|
5794
5809
|
text: string;
|
|
@@ -5831,7 +5846,7 @@ export declare const Textarea: React.FC<TextareaProps>;
|
|
|
5831
5846
|
|
|
5832
5847
|
declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
5833
5848
|
value?: string;
|
|
5834
|
-
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "icon" | "maxLength" | "placeholder" | "error" | "hideLabel" | "
|
|
5849
|
+
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "icon" | "maxLength" | "placeholder" | "error" | "hideLabel" | "hint" | "labelIcon" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
5835
5850
|
|
|
5836
5851
|
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">;
|
|
5837
5852
|
|
|
@@ -6172,7 +6187,7 @@ declare const valueDisplayRenderers: {
|
|
|
6172
6187
|
|
|
6173
6188
|
declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
|
|
6174
6189
|
|
|
6175
|
-
declare type Variant =
|
|
6190
|
+
declare type Variant = (typeof statuses)[number];
|
|
6176
6191
|
|
|
6177
6192
|
declare const variants: readonly ["ai", "critical", "positive", "info", "warning"];
|
|
6178
6193
|
|
|
@@ -6311,15 +6326,15 @@ export declare type WidgetEmptyStateProps = {
|
|
|
6311
6326
|
actions?: Action_2[];
|
|
6312
6327
|
};
|
|
6313
6328
|
|
|
6314
|
-
export declare function WidgetHighlightButton({ label, count, icon, iconClassName, onClick, }:
|
|
6329
|
+
export declare function WidgetHighlightButton({ label, count, icon, iconClassName, onClick, }: Props_5): JSX_2.Element;
|
|
6315
6330
|
|
|
6316
|
-
export declare function WidgetInboxList({ items, minSize, onClickItem, showAllItems, onVisibleItemsChange, }:
|
|
6331
|
+
export declare function WidgetInboxList({ items, minSize, onClickItem, showAllItems, onVisibleItemsChange, }: Props_8): JSX_2.Element;
|
|
6317
6332
|
|
|
6318
|
-
export declare function WidgetInboxListItem({ id, title, subtitle, onClick, module, }:
|
|
6333
|
+
export declare function WidgetInboxListItem({ id, title, subtitle, onClick, module, }: Props_6): JSX_2.Element;
|
|
6319
6334
|
|
|
6320
|
-
export declare type WidgetInboxListItemProps<Id extends string | number = string | number> =
|
|
6335
|
+
export declare type WidgetInboxListItemProps<Id extends string | number = string | number> = Props_6<Id>;
|
|
6321
6336
|
|
|
6322
|
-
export declare type WidgetInboxListProps =
|
|
6337
|
+
export declare type WidgetInboxListProps = Props_8;
|
|
6323
6338
|
|
|
6324
6339
|
export declare interface WidgetProps {
|
|
6325
6340
|
header?: {
|
|
@@ -6357,7 +6372,7 @@ children?: ReactNode | undefined;
|
|
|
6357
6372
|
title?: string;
|
|
6358
6373
|
} & RefAttributes<HTMLDivElement>>;
|
|
6359
6374
|
|
|
6360
|
-
export declare function WidgetSimpleList({ items, gap, minSize, onClickItem, showAllItems, }:
|
|
6375
|
+
export declare function WidgetSimpleList({ items, gap, minSize, onClickItem, showAllItems, }: Props_9): JSX_2.Element;
|
|
6361
6376
|
|
|
6362
6377
|
export declare function WidgetSimpleListItem({ id, title, alert, rawTag, count, icon, rightIcon, iconClassName, rightIconClassName, onClick, }: WidgetSimpleListItemProps): JSX_2.Element;
|
|
6363
6378
|
|
|
@@ -6374,7 +6389,7 @@ export declare type WidgetSimpleListItemProps<Id extends string | number = strin
|
|
|
6374
6389
|
onClick?: (id: Id) => void;
|
|
6375
6390
|
};
|
|
6376
6391
|
|
|
6377
|
-
export declare type WidgetSimpleListProps =
|
|
6392
|
+
export declare type WidgetSimpleListProps = Props_9;
|
|
6378
6393
|
|
|
6379
6394
|
export declare type WidgetSkeletonProps = {
|
|
6380
6395
|
header?: {
|