@astryxdesign/cli 0.1.4-canary.3b5f42e → 0.1.4-canary.3d64ef2

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/docs/getting-started.doc.mjs +4 -0
  3. package/docs/migration.doc.mjs +134 -0
  4. package/docs/styling.doc.mjs +53 -0
  5. package/package.json +14 -9
  6. package/src/api/doctor.mjs +13 -2
  7. package/src/codemods/__tests__/runner.test.mjs +38 -0
  8. package/src/codemods/runner.mjs +2 -0
  9. package/src/commands/agent-docs.mjs +7 -5
  10. package/src/commands/agent-docs.test.mjs +33 -0
  11. package/src/commands/build-theme.mjs +110 -13
  12. package/src/commands/build-theme.variants.test.mjs +204 -0
  13. package/src/commands/doctor.test.mjs +34 -0
  14. package/src/commands/init.mjs +1 -1
  15. package/src/commands/swizzle.mjs +34 -0
  16. package/src/commands/swizzle.routing.test.mjs +67 -0
  17. package/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjs +1 -1
  18. package/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjs +13 -0
  19. package/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.tsx +33 -0
  20. package/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsx +27 -48
  21. package/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjs +15 -0
  22. package/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.tsx +39 -0
  23. package/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjs +15 -0
  24. package/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.tsx +39 -0
  25. package/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsx +31 -54
  26. package/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjs +15 -0
  27. package/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsx +27 -0
  28. package/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjs +15 -0
  29. package/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsx +38 -0
  30. package/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjs +14 -0
  31. package/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.tsx +44 -0
  32. package/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjs +15 -0
  33. package/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.tsx +107 -0
  34. package/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.tsx +18 -16
  35. package/templates/pages/table-page-chart/page.tsx +3 -13
  36. package/templates/pages/table-page-shoe-store-heatmap/page.tsx +4 -18
@@ -3,16 +3,10 @@
3
3
  'use client';
4
4
 
5
5
  import {useMemo, type CSSProperties} from 'react';
6
- import {
7
- CommandPalette,
8
- CommandPaletteList,
9
- CommandPaletteItem,
10
- } from '@astryxdesign/core/CommandPalette';
6
+ import {CommandPalette} from '@astryxdesign/core/CommandPalette';
11
7
  import {Text} from '@astryxdesign/core/Text';
12
8
  import {Kbd} from '@astryxdesign/core/Kbd';
13
- import {Icon} from '@astryxdesign/core/Icon';
14
9
  import {createStaticSource} from '@astryxdesign/core/Typeahead';
15
- import {Stack} from '@astryxdesign/core/Layout';
16
10
  import type {SearchableItem} from '@astryxdesign/core/Typeahead';
17
11
 
18
12
  const itemLabel: CSSProperties = {
@@ -23,9 +17,21 @@ type CommandItem = SearchableItem<{shortcut?: string}>;
23
17
 
24
18
  const commands: CommandItem[] = [
25
19
  {id: 'save', label: 'Save File', auxiliaryData: {shortcut: 'mod+s'}},
26
- {id: 'find', label: 'Find in Files', auxiliaryData: {shortcut: 'mod+shift+f'}},
27
- {id: 'palette', label: 'Command Palette', auxiliaryData: {shortcut: 'mod+shift+p'}},
28
- {id: 'terminal', label: 'Toggle Terminal', auxiliaryData: {shortcut: 'ctrl+`'}},
20
+ {
21
+ id: 'find',
22
+ label: 'Find in Files',
23
+ auxiliaryData: {shortcut: 'mod+shift+f'},
24
+ },
25
+ {
26
+ id: 'palette',
27
+ label: 'Command Palette',
28
+ auxiliaryData: {shortcut: 'mod+shift+p'},
29
+ },
30
+ {
31
+ id: 'terminal',
32
+ label: 'Toggle Terminal',
33
+ auxiliaryData: {shortcut: 'ctrl+`'},
34
+ },
29
35
  {id: 'sidebar', label: 'Toggle Sidebar', auxiliaryData: {shortcut: 'mod+b'}},
30
36
  ];
31
37
 
@@ -33,50 +39,21 @@ export default function CommandPaletteItemShowcase() {
33
39
  const source = useMemo(() => createStaticSource(commands), []);
34
40
 
35
41
  return (
36
- <Stack direction="vertical" gap={4}>
37
- <Stack direction="vertical" gap={1}>
38
- <Text type="supporting" color="secondary">
39
- Custom renderItem with keyboard shortcuts
40
- </Text>
41
- <CommandPalette
42
- isOpen
43
- isInline
44
- onOpenChange={() => {}}
45
- searchSource={source}
46
- renderItem={(item: CommandItem) => (
47
- <>
48
- <Text type="body" style={itemLabel}>
49
- {item.label}
50
- </Text>
51
- {item.auxiliaryData?.shortcut && (
52
- <Kbd keys={item.auxiliaryData.shortcut} />
53
- )}
54
- </>
42
+ <CommandPalette
43
+ isOpen
44
+ isInline
45
+ onOpenChange={() => {}}
46
+ searchSource={source}
47
+ renderItem={(item: CommandItem) => (
48
+ <>
49
+ <Text type="body" style={itemLabel}>
50
+ {item.label}
51
+ </Text>
52
+ {item.auxiliaryData?.shortcut && (
53
+ <Kbd keys={item.auxiliaryData.shortcut} />
55
54
  )}
56
- />
57
- </Stack>
58
- <Stack direction="vertical" gap={1}>
59
- <Text type="supporting" color="secondary">
60
- Composed items with icons and states
61
- </Text>
62
- <CommandPaletteList>
63
- <CommandPaletteItem value="home" onSelect={() => {}}>
64
- <Icon icon="externalLink" size="sm" />
65
- <Text type="body" style={itemLabel}>Home</Text>
66
- </CommandPaletteItem>
67
- <CommandPaletteItem value="search" isHighlighted onSelect={() => {}}>
68
- <Icon icon="search" size="sm" />
69
- <Text type="body" style={itemLabel}>Search (highlighted)</Text>
70
- </CommandPaletteItem>
71
- <CommandPaletteItem value="selected" isSelected onSelect={() => {}}>
72
- <Icon icon="check" size="sm" />
73
- <Text type="body" style={itemLabel}>Selected item</Text>
74
- </CommandPaletteItem>
75
- <CommandPaletteItem value="disabled" isDisabled>
76
- <Text type="body" style={itemLabel}>Disabled item</Text>
77
- </CommandPaletteItem>
78
- </CommandPaletteList>
79
- </Stack>
80
- </Stack>
55
+ </>
56
+ )}
57
+ />
81
58
  );
82
59
  }
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'CommandPaletteList',
7
+ name: 'CommandPaletteList — Item States',
8
+ displayName: 'CommandPaletteList — Item States',
9
+ description:
10
+ 'Flat list showing the highlighted, selected, and disabled item states. Use CommandPaletteGroup to add section headings.',
11
+ isReady: true,
12
+ isShowcase: false,
13
+ aspectRatio: 4 / 3,
14
+ componentsUsed: ['CommandPaletteList', 'CommandPaletteItem'],
15
+ };
@@ -0,0 +1,27 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {
6
+ CommandPaletteList,
7
+ CommandPaletteItem,
8
+ } from '@astryxdesign/core/CommandPalette';
9
+
10
+ export default function CommandPaletteListBasic() {
11
+ return (
12
+ <CommandPaletteList>
13
+ <CommandPaletteItem value="home" onSelect={() => {}}>
14
+ Go Home
15
+ </CommandPaletteItem>
16
+ <CommandPaletteItem value="settings" isHighlighted onSelect={() => {}}>
17
+ Open Settings
18
+ </CommandPaletteItem>
19
+ <CommandPaletteItem value="profile" isSelected onSelect={() => {}}>
20
+ View Profile
21
+ </CommandPaletteItem>
22
+ <CommandPaletteItem value="help" isDisabled onSelect={() => {}}>
23
+ Help (unavailable)
24
+ </CommandPaletteItem>
25
+ </CommandPaletteList>
26
+ );
27
+ }
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'CommandPaletteList',
7
+ name: 'CommandPaletteList',
8
+ displayName: 'Command Palette List',
9
+ description:
10
+ 'Scrollable command palette list with grouped items, including a highlighted item, composed without a full CommandPalette.',
11
+ isReady: true,
12
+ isShowcase: true,
13
+ aspectRatio: 4 / 3,
14
+ componentsUsed: ['CommandPaletteList', 'CommandPaletteGroup', 'CommandPaletteItem'],
15
+ };
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {
6
+ CommandPaletteList,
7
+ CommandPaletteGroup,
8
+ CommandPaletteItem,
9
+ } from '@astryxdesign/core/CommandPalette';
10
+
11
+ export default function CommandPaletteListShowcase() {
12
+ return (
13
+ <CommandPaletteList>
14
+ <CommandPaletteGroup heading="Navigation">
15
+ <CommandPaletteItem value="home" onSelect={() => {}}>
16
+ Go Home
17
+ </CommandPaletteItem>
18
+ <CommandPaletteItem value="settings" onSelect={() => {}}>
19
+ Open Settings
20
+ </CommandPaletteItem>
21
+ <CommandPaletteItem value="profile" onSelect={() => {}}>
22
+ View Profile
23
+ </CommandPaletteItem>
24
+ </CommandPaletteGroup>
25
+ <CommandPaletteGroup heading="Actions">
26
+ <CommandPaletteItem value="new-file" onSelect={() => {}}>
27
+ New File
28
+ </CommandPaletteItem>
29
+ <CommandPaletteItem value="search" isHighlighted onSelect={() => {}}>
30
+ Search Files
31
+ </CommandPaletteItem>
32
+ <CommandPaletteItem value="save" onSelect={() => {}}>
33
+ Save All
34
+ </CommandPaletteItem>
35
+ </CommandPaletteGroup>
36
+ </CommandPaletteList>
37
+ );
38
+ }
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'ContextMenuItem',
7
+ name: 'ContextMenuItem — Basic',
8
+ displayName: 'ContextMenuItem — Basic',
9
+ description:
10
+ 'Context menu items with labels and secondary descriptions. Use ContextMenuItem to render custom menu entries with consistent styling.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: ['ContextMenu', 'ContextMenuItem'],
14
+ };
@@ -0,0 +1,44 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {ContextMenu, ContextMenuItem} from '@astryxdesign/core/ContextMenu';
6
+
7
+ export default function ContextMenuItemBasic() {
8
+ return (
9
+ <ContextMenu
10
+ menuContent={
11
+ <>
12
+ <ContextMenuItem
13
+ label="Edit"
14
+ description="Modify this item"
15
+ onClick={() => {}}
16
+ />
17
+ <ContextMenuItem
18
+ label="Duplicate"
19
+ description="Create a copy"
20
+ onClick={() => {}}
21
+ />
22
+ <ContextMenuItem
23
+ label="Delete"
24
+ description="This action cannot be undone"
25
+ onClick={() => {}}
26
+ />
27
+ </>
28
+ }>
29
+ <div
30
+ style={{
31
+ padding: '48px',
32
+ borderWidth: '2px',
33
+ borderStyle: 'dashed',
34
+ borderColor: 'var(--color-border)',
35
+ borderRadius: '8px',
36
+ textAlign: 'center',
37
+ color: 'var(--color-text-secondary)',
38
+ userSelect: 'none',
39
+ }}>
40
+ Right-click this area
41
+ </div>
42
+ </ContextMenu>
43
+ );
44
+ }
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'ContextMenuItem',
7
+ name: 'ContextMenuItem',
8
+ displayName: 'Context Menu Item',
9
+ description:
10
+ 'Context menu with custom-rendered items using ContextMenuItem for icons and descriptions.',
11
+ isReady: true,
12
+ isShowcase: true,
13
+ aspectRatio: 16 / 9,
14
+ componentsUsed: ['ContextMenu', 'ContextMenuItem'],
15
+ };
@@ -0,0 +1,107 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {ContextMenu, ContextMenuItem} from '@astryxdesign/core/ContextMenu';
6
+
7
+ const PencilIcon = (props: React.SVGProps<SVGSVGElement>) => (
8
+ <svg
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ stroke="currentColor"
12
+ strokeWidth={1.5}
13
+ strokeLinecap="round"
14
+ strokeLinejoin="round"
15
+ {...props}>
16
+ <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
17
+ <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
18
+ </svg>
19
+ );
20
+
21
+ const CopyIcon = (props: React.SVGProps<SVGSVGElement>) => (
22
+ <svg
23
+ viewBox="0 0 24 24"
24
+ fill="none"
25
+ stroke="currentColor"
26
+ strokeWidth={1.5}
27
+ strokeLinecap="round"
28
+ strokeLinejoin="round"
29
+ {...props}>
30
+ <rect x="9" y="9" width="13" height="13" rx="2" />
31
+ <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
32
+ </svg>
33
+ );
34
+
35
+ const ShareIcon = (props: React.SVGProps<SVGSVGElement>) => (
36
+ <svg
37
+ viewBox="0 0 24 24"
38
+ fill="none"
39
+ stroke="currentColor"
40
+ strokeWidth={1.5}
41
+ strokeLinecap="round"
42
+ strokeLinejoin="round"
43
+ {...props}>
44
+ <circle cx="18" cy="5" r="3" />
45
+ <circle cx="6" cy="12" r="3" />
46
+ <circle cx="18" cy="19" r="3" />
47
+ <line x1="8.59" y1="13.51" x2="15.42" y2="17.49" />
48
+ <line x1="15.41" y1="6.51" x2="8.59" y2="10.49" />
49
+ </svg>
50
+ );
51
+
52
+ const TrashIcon = (props: React.SVGProps<SVGSVGElement>) => (
53
+ <svg
54
+ viewBox="0 0 24 24"
55
+ fill="none"
56
+ stroke="currentColor"
57
+ strokeWidth={1.5}
58
+ strokeLinecap="round"
59
+ strokeLinejoin="round"
60
+ {...props}>
61
+ <polyline points="3 6 5 6 21 6" />
62
+ <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
63
+ </svg>
64
+ );
65
+
66
+ export default function ContextMenuItemShowcase() {
67
+ return (
68
+ <ContextMenu
69
+ menuContent={
70
+ <>
71
+ <ContextMenuItem
72
+ icon={PencilIcon}
73
+ label="Edit"
74
+ description="Modify this item"
75
+ onClick={() => {}}
76
+ />
77
+ <ContextMenuItem
78
+ icon={CopyIcon}
79
+ label="Duplicate"
80
+ description="Create a copy"
81
+ onClick={() => {}}
82
+ />
83
+ <ContextMenuItem icon={ShareIcon} label="Share" onClick={() => {}} />
84
+ <ContextMenuItem
85
+ icon={TrashIcon}
86
+ label="Delete"
87
+ description="This action cannot be undone"
88
+ onClick={() => {}}
89
+ />
90
+ </>
91
+ }>
92
+ <div
93
+ style={{
94
+ padding: '48px',
95
+ borderWidth: '2px',
96
+ borderStyle: 'dashed',
97
+ borderColor: 'var(--color-border)',
98
+ borderRadius: '8px',
99
+ textAlign: 'center',
100
+ color: 'var(--color-text-secondary)',
101
+ userSelect: 'none',
102
+ }}>
103
+ Right-click this area
104
+ </div>
105
+ </ContextMenu>
106
+ );
107
+ }
@@ -25,21 +25,23 @@ function AppIcon() {
25
25
 
26
26
  export default function NavHeadingMenuShowcase() {
27
27
  return (
28
- <SideNav
29
- header={
30
- <SideNavHeading
31
- heading="Acme Platform"
32
- icon={<AppIcon />}
33
- menu={
34
- <NavHeadingMenu size="lg">
35
- <NavHeadingMenuItem label="Dashboard" href="/dashboard" />
36
- <NavHeadingMenuItem label="Analytics" href="/analytics" />
37
- <NavHeadingMenuItem label="Settings" href="/settings" />
38
- </NavHeadingMenu>
39
- }
40
- />
41
- }>
42
- {null}
43
- </SideNav>
28
+ <div style={{height: 100}}>
29
+ <SideNav
30
+ header={
31
+ <SideNavHeading
32
+ heading="Acme Platform"
33
+ icon={<AppIcon />}
34
+ menu={
35
+ <NavHeadingMenu size="lg">
36
+ <NavHeadingMenuItem label="Dashboard" href="/dashboard" />
37
+ <NavHeadingMenuItem label="Analytics" href="/analytics" />
38
+ <NavHeadingMenuItem label="Settings" href="/settings" />
39
+ </NavHeadingMenu>
40
+ }
41
+ />
42
+ }>
43
+ {null}
44
+ </SideNav>
45
+ </div>
44
46
  );
45
47
  }
@@ -19,13 +19,7 @@ import {Link} from '@astryxdesign/core/Link';
19
19
  import {Thumbnail} from '@astryxdesign/core/Thumbnail';
20
20
  import {Table, proportional, pixel} from '@astryxdesign/core/Table';
21
21
  import type {TableColumn} from '@astryxdesign/core/Table';
22
- import {
23
- ChartV2 as Chart,
24
- ChartGrid,
25
- ChartAxis,
26
- area,
27
- line,
28
- } from '@astryxdesign/lab';
22
+ import {Chart, ChartGrid, ChartAxis, area, line} from '@astryxdesign/charts';
29
23
  import {
30
24
  FunnelIcon,
31
25
  ArrowDownTrayIcon,
@@ -481,17 +475,13 @@ const columns: TableColumn<OrderRow>[] = [
481
475
  key: 'amount',
482
476
  header: 'Amount',
483
477
  width: pixel(90),
484
- renderCell: (item: OrderRow) => (
485
- <Text type="body">${item.amount}</Text>
486
- ),
478
+ renderCell: (item: OrderRow) => <Text type="body">${item.amount}</Text>,
487
479
  },
488
480
  {
489
481
  key: 'customer',
490
482
  header: 'Customer',
491
483
  width: proportional(2),
492
- renderCell: (item: OrderRow) => (
493
- <Text type="body">{item.customer}</Text>
494
- ),
484
+ renderCell: (item: OrderRow) => <Text type="body">{item.customer}</Text>,
495
485
  },
496
486
  {
497
487
  key: 'email',
@@ -19,13 +19,7 @@ import {Link} from '@astryxdesign/core/Link';
19
19
  import {Thumbnail} from '@astryxdesign/core/Thumbnail';
20
20
  import {Table, proportional, pixel} from '@astryxdesign/core/Table';
21
21
  import type {TableColumn} from '@astryxdesign/core/Table';
22
- import {
23
- ChartV2 as Chart,
24
- ChartGrid,
25
- ChartAxis,
26
- area,
27
- line,
28
- } from '@astryxdesign/lab';
22
+ import {Chart, ChartGrid, ChartAxis, area, line} from '@astryxdesign/charts';
29
23
  import {
30
24
  FunnelIcon,
31
25
  ArrowDownTrayIcon,
@@ -35,11 +29,7 @@ import {
35
29
  // ============= DATA =============
36
30
 
37
31
  type ProductCategory =
38
- | 'Running'
39
- | 'Lifestyle'
40
- | 'Basketball'
41
- | 'Training'
42
- | 'Skateboarding';
32
+ 'Running' | 'Lifestyle' | 'Basketball' | 'Training' | 'Skateboarding';
43
33
 
44
34
  function shoeSvg(bg: string, accent: string) {
45
35
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="12" fill="${bg}"/><g transform="translate(22.5, 22.5) scale(2.29)" fill="none" stroke="${accent}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m15 10.42 4.8-5.07"/><path d="M19 18h3"/><path d="M9.5 22 21.414 9.415A2 2 0 0 0 21.2 6.4l-5.61-4.208A1 1 0 0 0 14 3v2a2 2 0 0 1-1.394 1.906L8.677 8.053A1 1 0 0 0 8 9c-.155 6.393-2.082 9-4 9a2 2 0 0 0 0 4h14"/></g></svg>`;
@@ -839,17 +829,13 @@ const columns: TableColumn<OrderRow>[] = [
839
829
  key: 'amount',
840
830
  header: 'Amount',
841
831
  width: pixel(90),
842
- renderCell: (item: OrderRow) => (
843
- <Text type="body">${item.amount}</Text>
844
- ),
832
+ renderCell: (item: OrderRow) => <Text type="body">${item.amount}</Text>,
845
833
  },
846
834
  {
847
835
  key: 'customer',
848
836
  header: 'Customer',
849
837
  width: proportional(2),
850
- renderCell: (item: OrderRow) => (
851
- <Text type="body">{item.customer}</Text>
852
- ),
838
+ renderCell: (item: OrderRow) => <Text type="body">{item.customer}</Text>,
853
839
  },
854
840
  {
855
841
  key: 'email',