@factorialco/f0-react 1.276.3 → 1.277.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/f0.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { AlertTagCellValue } from '../../value-display/types/alertTag';
2
- import { AlertTagCellValue as AlertTagCellValue_2 } from './types/alertTag.tsx';
2
+ import { AlertTagCellValue as AlertTagCellValue_2 } from './types/alertTag';
3
3
  import { AmountCellValue } from '../../value-display/types/amount';
4
- import { AmountCellValue as AmountCellValue_2 } from './types/amount.tsx';
4
+ import { AmountCellValue as AmountCellValue_2 } from './types/amount';
5
5
  import { AnchorHTMLAttributes } from 'react';
6
6
  import { AriaAttributes } from 'react';
7
7
  import { AutoFill as AutoFill_2 } from 'react';
8
8
  import { AvatarListCellValue } from '../../value-display/types/avatarList';
9
- import { AvatarListCellValue as AvatarListCellValue_2 } from './types/avatarList.tsx';
9
+ import { AvatarListCellValue as AvatarListCellValue_2 } from './types/avatarList';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
11
  import { AvatarProps as AvatarProps_2 } from '@radix-ui/react-avatar';
12
12
  import { baseColors } from '@factorialco/f0-core';
@@ -16,29 +16,30 @@ import { ChartConfig as ChartConfig_2 } from './utils/types';
16
16
  import { ChartPropsBase } from './utils/types';
17
17
  import { ClassValue } from 'cva';
18
18
  import { CompanyCellValue } from '../../value-display/types/company';
19
- import { CompanyCellValue as CompanyCellValue_2 } from './types/company.tsx';
19
+ import { CompanyCellValue as CompanyCellValue_2 } from './types/company';
20
20
  import { ComponentProps } from 'react';
21
+ import { CountryCellValue } from './types/country';
21
22
  import { DateCellValue } from '../../value-display/types/date';
22
- import { DateCellValue as DateCellValue_2 } from './types/date.tsx';
23
+ import { DateCellValue as DateCellValue_2 } from './types/date';
23
24
  import { DateFilterOptions } from './DateFilter/DateFilter';
24
25
  import { default as default_2 } from 'react';
25
26
  import { DotTagCellValue } from '../../value-display/types/dotTag';
26
- import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag.tsx';
27
+ import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
27
28
  import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
28
29
  import { F0GridStackRef as F0GridStackRef_2 } from './F0GridStack';
29
30
  import { F0IconProps as F0IconProps_2 } from './F0Icon';
30
31
  import { f1Colors } from '@factorialco/f0-core';
31
32
  import { FileCellValue } from '../../value-display/types/file';
32
- import { FileCellValue as FileCellValue_2 } from './types/file.tsx';
33
+ import { FileCellValue as FileCellValue_2 } from './types/file';
33
34
  import { FolderCellValue } from '../../value-display/types/folder';
34
- import { FolderCellValue as FolderCellValue_2 } from './types/folder.tsx';
35
+ import { FolderCellValue as FolderCellValue_2 } from './types/folder';
35
36
  import { ForwardedRef } from 'react';
36
37
  import { ForwardRefExoticComponent } from 'react';
37
38
  import { GridStackOptions } from 'gridstack';
38
39
  import { GridStackWidget } from 'gridstack';
39
40
  import { HTMLAttributeAnchorTarget } from 'react';
40
41
  import { HTMLAttributes } from 'react';
41
- import { IconCellValue } from './types/icon.tsx';
42
+ import { IconCellValue } from './types/icon';
42
43
  import { ImgHTMLAttributes } from 'react';
43
44
  import { InFilterOptions } from './InFilter/types';
44
45
  import { internalAvatarColors as internalAvatarColors_2 } from '../../../ui/Avatar';
@@ -47,15 +48,15 @@ import { internalAvatarTypes as internalAvatarTypes_2 } from '../../../ui/Avatar
47
48
  import { JSX as JSX_2 } from 'react';
48
49
  import { LineChartConfig } from '../../ui/chart';
49
50
  import { LineChartPropsBase } from './utils/types';
50
- import { LongTextCellValue } from './types/longText.tsx';
51
+ import { LongTextCellValue } from './types/longText';
51
52
  import { NumberCellValue } from '../../value-display/types/number';
52
- import { NumberCellValue as NumberCellValue_2 } from './types/number.tsx';
53
+ import { NumberCellValue as NumberCellValue_2 } from './types/number';
53
54
  import { NumberFilterOptions } from './NumberFilter/NumberFilter';
54
55
  import { NumberFilterValue } from './NumberFilter/NumberFilter';
55
56
  import { Observable } from 'zen-observable-ts';
56
- import { PercentageCellValue } from './types/percentage.tsx';
57
+ import { PercentageCellValue } from './types/percentage';
57
58
  import { PersonCellValue } from '../../value-display/types/person';
58
- import { PersonCellValue as PersonCellValue_2 } from './types/person.tsx';
59
+ import { PersonCellValue as PersonCellValue_2 } from './types/person';
59
60
  import { PieChartProps } from './PieChart';
60
61
  import { PopoverContentProps } from '@radix-ui/react-popover';
61
62
  import * as React_2 from 'react';
@@ -64,16 +65,16 @@ import { ReactNode } from 'react';
64
65
  import { RefAttributes } from 'react';
65
66
  import { RefObject } from 'react';
66
67
  import { StatusCellValue } from '../../value-display/types/status';
67
- import { StatusCellValue as StatusCellValue_2 } from './types/status.tsx';
68
+ import { StatusCellValue as StatusCellValue_2 } from './types/status';
68
69
  import { SVGProps } from 'react';
69
70
  import { TagCellValue } from '../../value-display/types/tag';
70
- import { TagCellValue as TagCellValue_2 } from './types/tag.tsx';
71
+ import { TagCellValue as TagCellValue_2 } from './types/tag';
71
72
  import { TagListCellValue } from '../../value-display/types/tagList';
72
- import { TagListCellValue as TagListCellValue_2 } from './types/tagList.tsx';
73
+ import { TagListCellValue as TagListCellValue_2 } from './types/tagList';
73
74
  import { TeamCellValue } from '../../value-display/types/team';
74
- import { TeamCellValue as TeamCellValue_2 } from './types/team.tsx';
75
+ import { TeamCellValue as TeamCellValue_2 } from './types/team';
75
76
  import { TextCellValue } from '../../value-display/types/text';
76
- import { TextCellValue as TextCellValue_2 } from './types/text.tsx';
77
+ import { TextCellValue as TextCellValue_2 } from './types/text';
77
78
  import { ValueDisplayRendererContext } from '../../value-display';
78
79
  import { VariantProps } from 'cva';
79
80
 
@@ -1035,6 +1036,8 @@ declare type ComponentTypes = (typeof componentTypes)[number];
1035
1036
 
1036
1037
  declare const componentTypes: readonly ["layout", "info", "action", "form"];
1037
1038
 
1039
+ declare type CountryCode = keyof TranslationsType["countries"];
1040
+
1038
1041
  export declare function createAtlaskitDriver(instanceId: symbol): DndDriver;
1039
1042
 
1040
1043
  /**
@@ -1372,6 +1375,109 @@ declare type DateValue = {
1372
1375
  declare type DefaultAction = BannerAction;
1373
1376
 
1374
1377
  export declare const defaultTranslations: {
1378
+ readonly countries: {
1379
+ ad: string;
1380
+ ae: string;
1381
+ af: string;
1382
+ ag: string;
1383
+ ai: string;
1384
+ al: string;
1385
+ am: string;
1386
+ ao: string;
1387
+ ar: string;
1388
+ as: string;
1389
+ at: string;
1390
+ au: string;
1391
+ aw: string;
1392
+ ax: string;
1393
+ az: string;
1394
+ ba: string;
1395
+ bb: string;
1396
+ bd: string;
1397
+ be: string;
1398
+ bf: string;
1399
+ bg: string;
1400
+ bh: string;
1401
+ bi: string;
1402
+ bj: string;
1403
+ bm: string;
1404
+ bo: string;
1405
+ br: string;
1406
+ bt: string;
1407
+ bw: string;
1408
+ by: string;
1409
+ bz: string;
1410
+ ca: string;
1411
+ cd: string;
1412
+ cf: string;
1413
+ cg: string;
1414
+ ch: string;
1415
+ ci: string;
1416
+ ck: string;
1417
+ cl: string;
1418
+ cm: string;
1419
+ cn: string;
1420
+ co: string;
1421
+ cr: string;
1422
+ cu: string;
1423
+ cv: string;
1424
+ cw: string;
1425
+ cy: string;
1426
+ cz: string;
1427
+ de: string;
1428
+ dj: string;
1429
+ dk: string;
1430
+ dm: string;
1431
+ do: string;
1432
+ dz: string;
1433
+ ec: string;
1434
+ ee: string;
1435
+ eg: string;
1436
+ er: string;
1437
+ es: string;
1438
+ et: string;
1439
+ fi: string;
1440
+ fj: string;
1441
+ fk: string;
1442
+ fm: string;
1443
+ fo: string;
1444
+ fr: string;
1445
+ ga: string;
1446
+ gb: string;
1447
+ gd: string;
1448
+ ge: string;
1449
+ gg: string;
1450
+ gh: string;
1451
+ gi: string;
1452
+ gl: string;
1453
+ gm: string;
1454
+ gn: string;
1455
+ gq: string;
1456
+ gr: string;
1457
+ gt: string;
1458
+ gu: string;
1459
+ gw: string;
1460
+ hk: string;
1461
+ hn: string;
1462
+ hr: string;
1463
+ ht: string;
1464
+ hu: string;
1465
+ id: string;
1466
+ ie: string;
1467
+ il: string;
1468
+ im: string;
1469
+ in: string;
1470
+ io: string;
1471
+ iq: string;
1472
+ ir: string;
1473
+ is: string;
1474
+ it: string;
1475
+ je: string;
1476
+ jm: string;
1477
+ jo: string;
1478
+ jp: string;
1479
+ ke: string;
1480
+ };
1375
1481
  readonly approvals: {
1376
1482
  readonly history: "Approval history";
1377
1483
  readonly statuses: {
@@ -1800,7 +1906,7 @@ export declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<type
1800
1906
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
1801
1907
 
1802
1908
  declare type F0AvatarFlagProps = {
1803
- flag: string;
1909
+ flag: CountryCode;
1804
1910
  size?: BaseAvatarProps["size"];
1805
1911
  badge?: AvatarBadge;
1806
1912
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
@@ -3969,6 +4075,7 @@ export declare const useXRay: () => {
3969
4075
 
3970
4076
  declare type ValueDisplayRendererContext_2 = {
3971
4077
  visualization: ValueDisplayVisualizationType;
4078
+ i18n: TranslationsType;
3972
4079
  };
3973
4080
 
3974
4081
  /**
@@ -4001,6 +4108,7 @@ declare const valueDisplayRenderers: {
4001
4108
  readonly icon: (args: IconCellValue, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
4002
4109
  readonly file: (args: FileCellValue_2) => JSX_2.Element;
4003
4110
  readonly folder: (args: FolderCellValue_2) => JSX_2.Element;
4111
+ readonly country: (args: CountryCellValue, context: ValueDisplayRendererContext_2) => JSX_2.Element;
4004
4112
  };
4005
4113
 
4006
4114
  declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
@@ -4072,33 +4180,6 @@ declare global {
4072
4180
  }
4073
4181
 
4074
4182
 
4075
- declare module "@tiptap/core" {
4076
- interface Commands<ReturnType> {
4077
- aiBlock: {
4078
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4079
- };
4080
- }
4081
- }
4082
-
4083
-
4084
- declare module "@tiptap/core" {
4085
- interface Commands<ReturnType> {
4086
- liveCompanion: {
4087
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4088
- };
4089
- }
4090
- }
4091
-
4092
-
4093
- declare module "@tiptap/core" {
4094
- interface Commands<ReturnType> {
4095
- transcript: {
4096
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
4097
- };
4098
- }
4099
- }
4100
-
4101
-
4102
4183
  declare module "gridstack" {
4103
4184
  interface GridStackWidget {
4104
4185
  id?: string;
@@ -4124,8 +4205,30 @@ declare module "gridstack" {
4124
4205
  }
4125
4206
 
4126
4207
 
4127
- declare namespace Calendar {
4128
- var displayName: string;
4208
+ declare module "@tiptap/core" {
4209
+ interface Commands<ReturnType> {
4210
+ aiBlock: {
4211
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4212
+ };
4213
+ }
4214
+ }
4215
+
4216
+
4217
+ declare module "@tiptap/core" {
4218
+ interface Commands<ReturnType> {
4219
+ liveCompanion: {
4220
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4221
+ };
4222
+ }
4223
+ }
4224
+
4225
+
4226
+ declare module "@tiptap/core" {
4227
+ interface Commands<ReturnType> {
4228
+ transcript: {
4229
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
4230
+ };
4231
+ }
4129
4232
  }
4130
4233
 
4131
4234
 
@@ -4136,3 +4239,8 @@ declare module "@tiptap/core" {
4136
4239
  };
4137
4240
  }
4138
4241
  }
4242
+
4243
+
4244
+ declare namespace Calendar {
4245
+ var displayName: string;
4246
+ }