@factorialco/f0-react 1.307.0 → 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 +69 -54
- package/dist/experimental.js +7 -7
- package/dist/f0.d.ts +98 -61
- package/dist/f0.js +86 -73
- package/dist/{hooks-BeIXOFhm.js → hooks-DhJYpAKB.js} +15586 -15575
- package/dist/i18n-provider-defaults.d.ts +17 -17
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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?: {
|
|
@@ -6423,6 +6438,23 @@ declare global {
|
|
|
6423
6438
|
}
|
|
6424
6439
|
}
|
|
6425
6440
|
|
|
6441
|
+
declare module "gridstack" {
|
|
6442
|
+
interface GridStackWidget {
|
|
6443
|
+
id?: string;
|
|
6444
|
+
allowedSizes?: Array<{
|
|
6445
|
+
w: number;
|
|
6446
|
+
h: number;
|
|
6447
|
+
}>;
|
|
6448
|
+
meta?: Record<string, unknown>;
|
|
6449
|
+
}
|
|
6450
|
+
interface GridStackNode {
|
|
6451
|
+
allowedSizes?: Array<{
|
|
6452
|
+
w: number;
|
|
6453
|
+
h: number;
|
|
6454
|
+
}>;
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6457
|
+
|
|
6426
6458
|
|
|
6427
6459
|
declare module "@tiptap/core" {
|
|
6428
6460
|
interface Commands<ReturnType> {
|
|
@@ -6450,23 +6482,6 @@ declare module "@tiptap/core" {
|
|
|
6450
6482
|
}
|
|
6451
6483
|
}
|
|
6452
6484
|
|
|
6453
|
-
declare module "gridstack" {
|
|
6454
|
-
interface GridStackWidget {
|
|
6455
|
-
id?: string;
|
|
6456
|
-
allowedSizes?: Array<{
|
|
6457
|
-
w: number;
|
|
6458
|
-
h: number;
|
|
6459
|
-
}>;
|
|
6460
|
-
meta?: Record<string, unknown>;
|
|
6461
|
-
}
|
|
6462
|
-
interface GridStackNode {
|
|
6463
|
-
allowedSizes?: Array<{
|
|
6464
|
-
w: number;
|
|
6465
|
-
h: number;
|
|
6466
|
-
}>;
|
|
6467
|
-
}
|
|
6468
|
-
}
|
|
6469
|
-
|
|
6470
6485
|
|
|
6471
6486
|
declare namespace Calendar {
|
|
6472
6487
|
var displayName: string;
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bK as Km, bL as $c, bM as gA, bN as vA, bO as Zm, bP as v7, bQ as Ls, av as c0, bR as Wr, bS as f0, bT as Ts, bU as Tf, az as ii, bV as sl, bW as Jm, bX as yA, e as ks, bY as Vc, bZ as xA, b_ as kA, b$ as wA, c0 as bA, c1 as Xm, c2 as y7, c3 as x7, c4 as CA, c5 as _A, c6 as SA, d as da, c7 as Ym, c8 as Af, c9 as EA, ca as k7, cb as Qm, cc as e3, cd as LA, ce as d0, aI as w7, cf as t3, cg as TA, ch as b7, ci as C7, cj as A5, ck as Nf, cl as AA, cm as NA, cn as MA, co as Th, cp as OA, cq as FA, cr as DA, m as xe, cs as _7, ct as IA, cu as Mf, l as qa, cv as zc, z as xd, cw as S7, x as c1, cx as RA, n as Ah, cy as PA, q as BA, r as f1, i as HA, H as $A, J as VA, t as N5, cz as zA, G as M5, cA as jA, N as WA, cB as E7, cC as L7, cD as UA, aA as Te, F as je, c as F, cE as Of, cF as n3, cG as i3, cH as Gn, cI as Vn, cJ as Ff, cK as Nl, cL as kd, bG as Ml, cM as Qs, b as Je, cN as ua, A as ut, b8 as fs, B as Ft, cO as qA, cP as r3, a as Rn, cQ as O5, cR as GA, cS as KA, cT as ZA, aw as T7, ax as A7, cU as N7, cV as M7, cW as To, cX as JA, cY as F5, cZ as XA, c_ as YA, c$ as QA, w as Kt, S as ye, d0 as u0, d1 as Ci, d2 as s3, ao as Oi, ap as eN, d3 as O7, D as o3, b9 as ol, d4 as e2, d5 as F7, d6 as D7, d7 as I7, d8 as R7, d9 as P7, am as zt, da as B7, db as H7, dc as $7, dd as V7, de as z7, df as tN, dg as nN, dh as h0, di as j7, C as iN, bm as rN, dj as Fi, au as Jo, g as hn, as as a3, dk as D5, dl as sN, ay as W7, dm as U7, dn as wd, dp as oN, f as ha, dq as Xo, dr as q7, ds as aN, dt as I5, du as al, dv as l3, dw as Df, dx as bd, dy as lN, dz as G7, dA as cN, dB as c3, dC as jc, dD as Di, dE as fN, dF as dN, dG as $s, dH as Nh, dI as uN, dJ as fc, dK as Da, dL as hN, dM as K7, dN as pN, dO as mN, dP as gN, dQ as vN, O as ri, U as yN, Z as xN, _ as kN, a0 as wN, a5 as R5, a6 as P5, a7 as bN, a8 as CN, dR as _N, dS as Mh, dT as f3, dU as SN, dV as EN, dW as LN, b6 as TN, dX as AN, bH as If, b5 as Cd, dY as t2, dZ as Z7, h as Pi, d_ as p0, b2 as ws, d$ as NN, e0 as MN, e1 as J7, b0 as yr, e2 as ON, e3 as X7, e4 as Y7, e5 as Ol, e6 as d3, e7 as FN, e8 as Q7, e9 as DN, ea as IN, ak as u3, al as h3, an as p3, eb as ex, ec as RN, ed as PN, ee as BN, ef as tx, aE as HN, eg as n2, eh as nx, aZ as _d, ei as $N, ej as VN, ek as zN, el as jN, em as WN, aW as i2, bJ as UN, bI as qN, en as ix, at as so, eo as GN, ep as KN,
|
|
2
|
-
import { aH as ege, f9 as tge, fa as nge, f8 as ige, a$ as rge, b7 as sge, f7 as oge, ba as age } from "./hooks-
|
|
1
|
+
import { bK as Km, bL as $c, bM as gA, bN as vA, bO as Zm, bP as v7, bQ as Ls, av as c0, bR as Wr, bS as f0, bT as Ts, bU as Tf, az as ii, bV as sl, bW as Jm, bX as yA, e as ks, bY as Vc, bZ as xA, b_ as kA, b$ as wA, c0 as bA, c1 as Xm, c2 as y7, c3 as x7, c4 as CA, c5 as _A, c6 as SA, d as da, c7 as Ym, c8 as Af, c9 as EA, ca as k7, cb as Qm, cc as e3, cd as LA, ce as d0, aI as w7, cf as t3, cg as TA, ch as b7, ci as C7, cj as A5, ck as Nf, cl as AA, cm as NA, cn as MA, co as Th, cp as OA, cq as FA, cr as DA, m as xe, cs as _7, ct as IA, cu as Mf, l as qa, cv as zc, z as xd, cw as S7, x as c1, cx as RA, n as Ah, cy as PA, q as BA, r as f1, i as HA, H as $A, J as VA, t as N5, cz as zA, G as M5, cA as jA, N as WA, cB as E7, cC as L7, cD as UA, aA as Te, F as je, c as F, cE as Of, cF as n3, cG as i3, cH as Gn, cI as Vn, cJ as Ff, cK as Nl, cL as kd, bG as Ml, cM as Qs, b as Je, cN as ua, A as ut, b8 as fs, B as Ft, cO as qA, cP as r3, a as Rn, cQ as O5, cR as GA, cS as KA, cT as ZA, aw as T7, ax as A7, cU as N7, cV as M7, cW as To, cX as JA, cY as F5, cZ as XA, c_ as YA, c$ as QA, w as Kt, S as ye, d0 as u0, d1 as Ci, d2 as s3, ao as Oi, ap as eN, d3 as O7, D as o3, b9 as ol, d4 as e2, d5 as F7, d6 as D7, d7 as I7, d8 as R7, d9 as P7, am as zt, da as B7, db as H7, dc as $7, dd as V7, de as z7, df as tN, dg as nN, dh as h0, di as j7, C as iN, bm as rN, dj as Fi, au as Jo, g as hn, as as a3, dk as D5, dl as sN, ay as W7, dm as U7, dn as wd, dp as oN, f as ha, dq as Xo, dr as q7, ds as aN, dt as I5, du as al, dv as l3, dw as Df, dx as bd, dy as lN, dz as G7, dA as cN, dB as c3, dC as jc, dD as Di, dE as fN, dF as dN, dG as $s, dH as Nh, dI as uN, dJ as fc, dK as Da, dL as hN, dM as K7, dN as pN, dO as mN, dP as gN, dQ as vN, O as ri, U as yN, Z as xN, _ as kN, a0 as wN, a5 as R5, a6 as P5, a7 as bN, a8 as CN, dR as _N, dS as Mh, dT as f3, dU as SN, dV as EN, dW as LN, b6 as TN, dX as AN, bH as If, b5 as Cd, dY as t2, dZ as Z7, h as Pi, d_ as p0, b2 as ws, d$ as NN, e0 as MN, e1 as J7, b0 as yr, e2 as ON, e3 as X7, e4 as Y7, e5 as Ol, e6 as d3, e7 as FN, e8 as Q7, e9 as DN, ea as IN, ak as u3, al as h3, an as p3, eb as ex, ec as RN, ed as PN, ee as BN, ef as tx, aE as HN, eg as n2, eh as nx, aZ as _d, ei as $N, ej as VN, ek as zN, el as jN, em as WN, aW as i2, bJ as UN, bI as qN, en as ix, at as so, eo as GN, ep as KN, bg as m0, a_ as m3, aT as Rf, eq as rx, b1 as ZN, aV as sx, aR as ox, er as JN, es as ax, et as XN, aU as Fl, aX as lx, aG as YN, eu as QN, bo as eM, bp as tM, bw as g0, bu as g3, aC as v0, ev as y0, ew as x0, aD as k0, ex as v3, bv as cx, b4 as y3, ey as nM, bA as iM, ez as r2, eA as rM, eB as Sd, eC as sM, bq as Ed, bB as oM, eD as aM, bz as fx, eE as lM, by as cM, bx as fM, eF as dM, eG as uM, eH as x3, eI as hM, eJ as pM, eK as mM, eL as gM, eM as vM, eN as yM, eO as xM, eP as kM, u as dx, bb as wM, bt as bM, eQ as CM, eR as _M, aY as SM, eS as Pf, eT as k3, b3 as w3, eU as b3, eV as Bf, eW as EM, eX as ux, eY as LM, eZ as TM, bC as hx, e_ as px, bd as mx, e$ as AM, f0 as NM, f1 as MM, aF as OM, aa as FM, ab as DM, ad as IM, ae as RM, af as PM, ac as BM, f2 as B5, f3 as HM, f4 as $M, K as VM, f5 as gx, f6 as zM } from "./hooks-DhJYpAKB.js";
|
|
2
|
+
import { aH as ege, f9 as tge, fa as nge, f8 as ige, a$ as rge, b7 as sge, f7 as oge, ba as age } from "./hooks-DhJYpAKB.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Ke } from "react/jsx-runtime";
|
|
4
4
|
import * as Se from "react";
|
|
5
5
|
import we, { forwardRef as B, createContext as li, useRef as Ce, useState as X, useCallback as Ze, useContext as Kn, useMemo as ke, useEffect as Ae, PureComponent as jM, useId as vo, useTransition as WM, useLayoutEffect as pa, memo as Hf, Fragment as Hr, isValidElement as vx, cloneElement as C3, createElement as s2, useDebugValue as yx, createRef as UM, version as H5, useImperativeHandle as w0, Children as xx } from "react";
|
|
@@ -23933,7 +23933,7 @@ function $3e({ module: t, statusTag: e = void 0, breadcrumbs: n = [], actions: i
|
|
|
23933
23933
|
children: f(Jo, {
|
|
23934
23934
|
text: e.text,
|
|
23935
23935
|
variant: e.variant,
|
|
23936
|
-
|
|
23936
|
+
additionalAccessibleText: e.tooltip
|
|
23937
23937
|
})
|
|
23938
23938
|
})
|
|
23939
23939
|
}) : f(Jo, {
|
|
@@ -34573,7 +34573,9 @@ const Zv = (t) => {
|
|
|
34573
34573
|
const i = f("div", {
|
|
34574
34574
|
children: f(so, {
|
|
34575
34575
|
icon: n.icon,
|
|
34576
|
-
|
|
34576
|
+
text: n.label ?? (n.description || ""),
|
|
34577
|
+
onlyIcon: !0,
|
|
34578
|
+
additionalAccessibleText: `${n.label}: ${n.description}`
|
|
34577
34579
|
})
|
|
34578
34580
|
});
|
|
34579
34581
|
return n.label || n.description ? f(Fi, {
|
|
@@ -35677,9 +35679,7 @@ const V0 = (t, e) => t && t.type === "copy" ? {
|
|
|
35677
35679
|
className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1",
|
|
35678
35680
|
children: n.bottomTags.map((a, l) => x(Ke, {
|
|
35679
35681
|
children: [f(so, {
|
|
35680
|
-
...a
|
|
35681
|
-
className: "text-f1-foreground-secondary",
|
|
35682
|
-
noBorder: !0
|
|
35682
|
+
...a
|
|
35683
35683
|
}, a.text), l < n.bottomTags.length - 1 && f("span", {
|
|
35684
35684
|
children: "·"
|
|
35685
35685
|
})]
|
package/dist/f0.d.ts
CHANGED
|
@@ -2516,11 +2516,16 @@ export declare const F0TagCompany: ForwardRefExoticComponent<TagCompanyProps & R
|
|
|
2516
2516
|
export declare const F0TagDot: ForwardRefExoticComponent<TagDotProps & RefAttributes<HTMLDivElement>>;
|
|
2517
2517
|
|
|
2518
2518
|
export declare const F0TagList: {
|
|
2519
|
-
<T extends TagType>({ type, tags, max, remainingCount: initialRemainingCount,
|
|
2519
|
+
<T extends TagType>({ type, tags, max, remainingCount: initialRemainingCount, }: TagListProps<T>): JSX_2.Element;
|
|
2520
2520
|
displayName: string;
|
|
2521
2521
|
};
|
|
2522
2522
|
|
|
2523
|
-
export declare const F0TagPerson: ForwardRefExoticComponent<
|
|
2523
|
+
export declare const F0TagPerson: ForwardRefExoticComponent<F0TagPersonProps & RefAttributes<HTMLDivElement>>;
|
|
2524
|
+
|
|
2525
|
+
export declare type F0TagPersonProps = {
|
|
2526
|
+
src?: string;
|
|
2527
|
+
name: string;
|
|
2528
|
+
};
|
|
2524
2529
|
|
|
2525
2530
|
export declare const F0TagRaw: ForwardRefExoticComponent<TagRawProps & RefAttributes<HTMLDivElement>>;
|
|
2526
2531
|
|
|
@@ -3163,7 +3168,9 @@ declare const layoutVariants: (props?: ({
|
|
|
3163
3168
|
className?: ClassValue;
|
|
3164
3169
|
})) | undefined) => string;
|
|
3165
3170
|
|
|
3166
|
-
export declare type Level =
|
|
3171
|
+
export declare type Level = (typeof levels)[number];
|
|
3172
|
+
|
|
3173
|
+
declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
3167
3174
|
|
|
3168
3175
|
export declare const LineChart: ForwardRefExoticComponent<Omit<LineChartPropsBase<LineChartConfig> & {
|
|
3169
3176
|
lineType?: "natural" | "linear";
|
|
@@ -3333,7 +3340,7 @@ declare type NestedResponseWithType<R extends RecordType> = {
|
|
|
3333
3340
|
|
|
3334
3341
|
declare type NestedVariant = "basic" | "detailed";
|
|
3335
3342
|
|
|
3336
|
-
export declare type NewColor = Extract<BaseColor,
|
|
3343
|
+
export declare type NewColor = Extract<BaseColor, (typeof tagDotColors)[number]>;
|
|
3337
3344
|
|
|
3338
3345
|
export declare interface NextStepsProps {
|
|
3339
3346
|
title: string;
|
|
@@ -3366,6 +3373,14 @@ declare type NumberFilterValue = {
|
|
|
3366
3373
|
};
|
|
3367
3374
|
} | undefined;
|
|
3368
3375
|
|
|
3376
|
+
declare interface NumericValue {
|
|
3377
|
+
number: number;
|
|
3378
|
+
units?: string;
|
|
3379
|
+
unitsPosition?: "left" | "right";
|
|
3380
|
+
decimalPlaces?: number | undefined;
|
|
3381
|
+
locale?: string;
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3369
3384
|
declare type OnBulkActionCallback<Record extends RecordType, Filters extends FiltersDefinition> = (...args: [
|
|
3370
3385
|
action: BulkAction,
|
|
3371
3386
|
...Parameters<OnSelectItemsCallback<Record, Filters>>
|
|
@@ -3915,7 +3930,11 @@ export declare interface StandardLayoutProps extends VariantProps<typeof layoutV
|
|
|
3915
3930
|
children?: default_2.ReactNode;
|
|
3916
3931
|
}
|
|
3917
3932
|
|
|
3918
|
-
export declare type Status =
|
|
3933
|
+
export declare type Status = (typeof statuses_2)[number];
|
|
3934
|
+
|
|
3935
|
+
declare const statuses: readonly ["neutral", "info", "positive", "warning", "critical"];
|
|
3936
|
+
|
|
3937
|
+
declare const statuses_2: readonly ["positive", "neutral", "negative"];
|
|
3919
3938
|
|
|
3920
3939
|
export declare type StatusVariant = Variant;
|
|
3921
3940
|
|
|
@@ -4049,20 +4068,45 @@ declare type TableVisualizationSettings = {
|
|
|
4049
4068
|
hidden: ColId[];
|
|
4050
4069
|
};
|
|
4051
4070
|
|
|
4071
|
+
export declare const Tag: ({ tag }: {
|
|
4072
|
+
tag: TagVariant;
|
|
4073
|
+
}) => ReactNode;
|
|
4074
|
+
|
|
4052
4075
|
export declare type TagAlertProps<Text extends string = string> = {
|
|
4053
4076
|
text: Text extends "" ? never : Text;
|
|
4054
4077
|
level: Level;
|
|
4055
4078
|
};
|
|
4056
4079
|
|
|
4057
|
-
export declare
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4080
|
+
export declare type TagBalanceProps = {
|
|
4081
|
+
/**
|
|
4082
|
+
* Inverts the balance status color. Is useful when a negative percent mean something positive.
|
|
4083
|
+
*/
|
|
4084
|
+
invertStatus?: boolean;
|
|
4085
|
+
/**
|
|
4086
|
+
* Hint text to display next to the tag (This text is not displayed when the balance is null or undefined)
|
|
4087
|
+
*/
|
|
4088
|
+
hint?: string;
|
|
4089
|
+
/**
|
|
4090
|
+
* Info text to display an i icon and a tooltip next to the tag
|
|
4091
|
+
*/
|
|
4092
|
+
info?: string;
|
|
4093
|
+
/**
|
|
4094
|
+
* Text to display when the balance is null or undefined
|
|
4095
|
+
*/
|
|
4096
|
+
nullText?: string;
|
|
4097
|
+
/**
|
|
4098
|
+
* Amount to display next to the tag
|
|
4099
|
+
*/
|
|
4100
|
+
amount?: number | NumericValue | null;
|
|
4101
|
+
} & ({
|
|
4102
|
+
percentage: number | Omit<NumericValue, "units" | "unitsPosition">;
|
|
4103
|
+
} | {
|
|
4104
|
+
percentage?: null;
|
|
4105
|
+
});
|
|
4061
4106
|
|
|
4062
4107
|
export declare interface TagCompanyProps {
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
onClick?: () => void;
|
|
4108
|
+
name: string;
|
|
4109
|
+
src?: string;
|
|
4066
4110
|
}
|
|
4067
4111
|
|
|
4068
4112
|
export declare const TagCounter: {
|
|
@@ -4076,7 +4120,7 @@ declare type TagDataType<T extends string> = Omit<Extract<TagVariant, {
|
|
|
4076
4120
|
type: T;
|
|
4077
4121
|
}>, "type" | "description">;
|
|
4078
4122
|
|
|
4079
|
-
export declare const tagDotColors:
|
|
4123
|
+
export declare const tagDotColors: ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
|
|
4080
4124
|
|
|
4081
4125
|
export declare type TagDotProps = {
|
|
4082
4126
|
text: string;
|
|
@@ -4094,7 +4138,7 @@ export declare type TagListProps<T extends TagType> = {
|
|
|
4094
4138
|
/**
|
|
4095
4139
|
* Array of tag data corresponding to the specified type.
|
|
4096
4140
|
*/
|
|
4097
|
-
tags: Array<TagTypeMapping[T]
|
|
4141
|
+
tags: Array<TagTypeMapping[T]>;
|
|
4098
4142
|
/**
|
|
4099
4143
|
* The maximum number of tags to display.
|
|
4100
4144
|
* @default 4
|
|
@@ -4104,28 +4148,24 @@ export declare type TagListProps<T extends TagType> = {
|
|
|
4104
4148
|
* The remaining number to display.
|
|
4105
4149
|
*/
|
|
4106
4150
|
remainingCount?: number;
|
|
4107
|
-
/**
|
|
4108
|
-
* The layout of the tag list.
|
|
4109
|
-
* - "fill" - Tags will expand to fill the available width, with overflow items shown in a counter
|
|
4110
|
-
* - "compact" - Tags will be stacked together up to the max limit, with remaining shown in counter
|
|
4111
|
-
* @default "compact"
|
|
4112
|
-
*/
|
|
4113
|
-
layout?: "fill" | "compact";
|
|
4114
4151
|
};
|
|
4115
4152
|
|
|
4116
|
-
export declare
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4153
|
+
export declare type TagRawProps = {
|
|
4154
|
+
/**
|
|
4155
|
+
* The label to display in the tag or used for accessible text
|
|
4156
|
+
*/
|
|
4157
|
+
text: string;
|
|
4158
|
+
/**
|
|
4159
|
+
* Additional accessible text to display in the tag
|
|
4160
|
+
*/
|
|
4161
|
+
additionalAccessibleText?: string;
|
|
4162
|
+
} & ({
|
|
4163
|
+
icon: IconType;
|
|
4164
|
+
onlyIcon: true;
|
|
4165
|
+
} | {
|
|
4125
4166
|
icon?: IconType;
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
}
|
|
4167
|
+
onlyIcon?: boolean;
|
|
4168
|
+
});
|
|
4129
4169
|
|
|
4130
4170
|
export declare interface TagStatusProps {
|
|
4131
4171
|
text: string;
|
|
@@ -4134,16 +4174,15 @@ export declare interface TagStatusProps {
|
|
|
4134
4174
|
* Sometimes you need to clarify the status for screen reader users
|
|
4135
4175
|
* E.g., when showing a tooltip for sighted user, provide the tootip text to this prop because tooltips aren't accessible
|
|
4136
4176
|
*/
|
|
4137
|
-
|
|
4177
|
+
additionalAccessibleText?: string;
|
|
4138
4178
|
}
|
|
4139
4179
|
|
|
4140
4180
|
export declare interface TagTeamProps {
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
onClick?: () => void;
|
|
4181
|
+
name: string;
|
|
4182
|
+
src?: string;
|
|
4144
4183
|
}
|
|
4145
4184
|
|
|
4146
|
-
export declare type TagType =
|
|
4185
|
+
export declare type TagType = (typeof tagTypes)[number];
|
|
4147
4186
|
|
|
4148
4187
|
declare type TagTypeMapping = {
|
|
4149
4188
|
dot: TagDataType<"dot">;
|
|
@@ -4156,7 +4195,9 @@ declare type TagTypeMapping = {
|
|
|
4156
4195
|
raw: TagDataType<"raw">;
|
|
4157
4196
|
};
|
|
4158
4197
|
|
|
4159
|
-
declare
|
|
4198
|
+
declare const tagTypes: readonly ["dot", "person", "team", "company", "alert", "status", "balance", "raw"];
|
|
4199
|
+
|
|
4200
|
+
export declare type TagVariant = BaseTag<{
|
|
4160
4201
|
type: "dot";
|
|
4161
4202
|
} & TagDotProps> | BaseTag<{
|
|
4162
4203
|
type: "person";
|
|
@@ -4654,7 +4695,7 @@ declare const valueDisplayRenderers: {
|
|
|
4654
4695
|
|
|
4655
4696
|
declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
|
|
4656
4697
|
|
|
4657
|
-
export declare type Variant =
|
|
4698
|
+
export declare type Variant = (typeof statuses)[number];
|
|
4658
4699
|
|
|
4659
4700
|
export declare const VerticalBarChart: ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig_2> & {
|
|
4660
4701
|
label?: boolean;
|
|
@@ -4704,10 +4745,6 @@ declare interface WithTooltipDescription {
|
|
|
4704
4745
|
description?: string;
|
|
4705
4746
|
}
|
|
4706
4747
|
|
|
4707
|
-
declare type WithTooltipDescription_2 = {
|
|
4708
|
-
description?: string;
|
|
4709
|
-
};
|
|
4710
|
-
|
|
4711
4748
|
export { }
|
|
4712
4749
|
|
|
4713
4750
|
|
|
@@ -4720,6 +4757,23 @@ declare global {
|
|
|
4720
4757
|
}
|
|
4721
4758
|
}
|
|
4722
4759
|
|
|
4760
|
+
declare module "gridstack" {
|
|
4761
|
+
interface GridStackWidget {
|
|
4762
|
+
id?: string;
|
|
4763
|
+
allowedSizes?: Array<{
|
|
4764
|
+
w: number;
|
|
4765
|
+
h: number;
|
|
4766
|
+
}>;
|
|
4767
|
+
meta?: Record<string, unknown>;
|
|
4768
|
+
}
|
|
4769
|
+
interface GridStackNode {
|
|
4770
|
+
allowedSizes?: Array<{
|
|
4771
|
+
w: number;
|
|
4772
|
+
h: number;
|
|
4773
|
+
}>;
|
|
4774
|
+
}
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4723
4777
|
|
|
4724
4778
|
declare module "@tiptap/core" {
|
|
4725
4779
|
interface Commands<ReturnType> {
|
|
@@ -4747,23 +4801,6 @@ declare module "@tiptap/core" {
|
|
|
4747
4801
|
}
|
|
4748
4802
|
}
|
|
4749
4803
|
|
|
4750
|
-
declare module "gridstack" {
|
|
4751
|
-
interface GridStackWidget {
|
|
4752
|
-
id?: string;
|
|
4753
|
-
allowedSizes?: Array<{
|
|
4754
|
-
w: number;
|
|
4755
|
-
h: number;
|
|
4756
|
-
}>;
|
|
4757
|
-
meta?: Record<string, unknown>;
|
|
4758
|
-
}
|
|
4759
|
-
interface GridStackNode {
|
|
4760
|
-
allowedSizes?: Array<{
|
|
4761
|
-
w: number;
|
|
4762
|
-
h: number;
|
|
4763
|
-
}>;
|
|
4764
|
-
}
|
|
4765
|
-
}
|
|
4766
|
-
|
|
4767
4804
|
|
|
4768
4805
|
declare namespace Calendar {
|
|
4769
4806
|
var displayName: string;
|