Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

feat(templates): add Table Page (Chart Shoe Store) template (#2154)

Ted McDonaldd4a66aff76cc
diff --git a/packages/cli/templates/pages/table-page-shoe-store-heatmap/page.tsx b/packages/cli/templates/pages/table-page-shoe-store-heatmap/page.tsx
new file mode 100644
index 0000000000..804ccc1238
--- /dev/null
+++ b/packages/cli/templates/pages/table-page-shoe-store-heatmap/page.tsx
@@ -0,0 +1,929 @@
+'use client';
+
+import {XDSAppShell} from '@xds/core/AppShell';
+import {XDSVStack, XDSHStack, XDSStackItem} from '@xds/core/Layout';
+import {XDSText, XDSHeading} from '@xds/core/Text';
+import {XDSButton} from '@xds/core/Button';
+import {XDSIconButton} from '@xds/core/IconButton';
+import {XDSIcon} from '@xds/core/Icon';
+import {XDSBadge} from '@xds/core/Badge';
+import {XDSLink} from '@xds/core/Link';
+import {XDSThumbnail} from '@xds/core/Thumbnail';
+import {XDSTable, proportional, pixel} from '@xds/core/Table';
+import type {XDSTableColumn} from '@xds/core/Table';
+import {
+ XDSChartV2 as XDSChart,
+ XDSChartGrid,
+ XDSChartAxis,
+ area,
+ line,
+} from '@xds/lab';
+import {
+ FunnelIcon,
+ ArrowDownTrayIcon,
+ PlusIcon,
+} from '@heroicons/react/24/outline';
+
+// ============= DATA =============
+
+type ProductCategory =
+ | 'Running'
+ | 'Lifestyle'
+ | 'Basketball'
+ | 'Training'
+ | 'Skateboarding';
+
+function shoeSvg(bg: string, accent: string) {
+ 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>`;
+ return `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;
+}
+
+interface OrderRow extends Record<string, unknown> {
+ id: string;
+ customer: string;
+ email: string;
+ product: string;
+ category: ProductCategory;
+ imageIndex: number;
+ amount: number;
+ status: 'completed' | 'processing' | 'shipped' | 'refunded';
+ date: string;
+}
+
+const PRODUCTS = [
+ {
+ name: 'Air Max 90',
+ category: 'Lifestyle' as ProductCategory,
+ image: shoeSvg('#FDE68A', '#DC2626'),
+ price: 130,
+ },
+ {
+ name: 'UltraBoost 22',
+ category: 'Running' as ProductCategory,
+ image: shoeSvg('#DBEAFE', '#1E40AF'),
+ price: 190,
+ },
+ {
+ name: 'Old Skool',
+ category: 'Skateboarding' as ProductCategory,
+ image: shoeSvg('#FED7AA', '#EA580C'),
+ price: 70,
+ },
+ {
+ name: 'Jordan 1 Retro',
+ category: 'Basketball' as ProductCategory,
+ image: shoeSvg('#E5E7EB', '#111827'),
+ price: 180,
+ },
+ {
+ name: 'Metcon 8',
+ category: 'Training' as ProductCategory,
+ image: shoeSvg('#FEE2E2', '#991B1B'),
+ price: 140,
+ },
+ {
+ name: 'Dunk Low',
+ category: 'Skateboarding' as ProductCategory,
+ image: shoeSvg('#D1FAE5', '#065F46'),
+ price: 110,
+ },
+];
+
+const orders: OrderRow[] = [
+ // Sun (0) — spread across 9am–5pm, very hot
+ {
+ id: 'ORD-1001',
+ customer: 'Sarah Chen',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1002',
+ customer: 'Marcus Rivera',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1003',
+ customer: 'Aisha Patel',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'shipped',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1004',
+ customer: "James O'Brien",
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'processing',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1005',
+ customer: 'Yuki Tanaka',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1006',
+ customer: 'Elena Volkov',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1007',
+ customer: 'David Kim',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1008',
+ customer: 'Fatima Al-Rashid',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'shipped',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1009',
+ customer: 'Lucas Andersson',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1010',
+ customer: 'Priya Sharma',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1011',
+ customer: 'Noah Williams',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1012',
+ customer: 'Sofia Garcia',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1013',
+ customer: 'Oliver Brown',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'shipped',
+ date: '2025-01-12',
+ },
+ {
+ id: 'ORD-1014',
+ customer: 'Mei Lin',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-12',
+ },
+ // Mon (1) — light-medium, midday into afternoon
+ {
+ id: 'ORD-1015',
+ customer: 'Hassan Ahmed',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'refunded',
+ date: '2025-01-13',
+ },
+ {
+ id: 'ORD-1016',
+ customer: 'Isabella Rossi',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-13',
+ },
+ {
+ id: 'ORD-1058',
+ customer: 'Thiago Lima',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-13',
+ },
+ {
+ id: 'ORD-1059',
+ customer: 'Nadia Popov',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'shipped',
+ date: '2025-01-13',
+ },
+ // Tue (2) — afternoon concentrated: 2pm–5pm hot
+ {
+ id: 'ORD-1017',
+ customer: 'Liam Murphy',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'processing',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1018',
+ customer: 'Chloe Dubois',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1019',
+ customer: 'Andre Santos',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'shipped',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1020',
+ customer: 'Nina Johansson',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1021',
+ customer: 'Raj Kapoor',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1022',
+ customer: 'Emma Thompson',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1023',
+ customer: 'Carlos Mendez',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'shipped',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1024',
+ customer: 'Zoe Mitchell',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'processing',
+ date: '2025-01-14',
+ },
+ {
+ id: 'ORD-1025',
+ customer: 'Henrik Larsson',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-14',
+ },
+ // Wed (3) — light-medium, midday into afternoon
+ {
+ id: 'ORD-1026',
+ customer: 'Amara Okafor',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-15',
+ },
+ {
+ id: 'ORD-1027',
+ customer: 'Leo Fischer',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-15',
+ },
+ {
+ id: 'ORD-1028',
+ customer: 'Maya Petrov',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'shipped',
+ date: '2025-01-15',
+ },
+ {
+ id: 'ORD-1060',
+ customer: 'Kai Nakamura',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-15',
+ },
+ {
+ id: 'ORD-1061',
+ customer: 'Elisa Moretti',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-15',
+ },
+ // Thu (4) — afternoon concentrated: 1pm–5pm hot
+ {
+ id: 'ORD-1029',
+ customer: 'Tomás Herrera',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1030',
+ customer: 'Grace Nakamura',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1031',
+ customer: 'Kenji Watanabe',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1032',
+ customer: 'Lucia Fernandez',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1033',
+ customer: 'Oscar Nilsson',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'shipped',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1034',
+ customer: 'Dani Alves',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1035',
+ customer: 'Rina Sato',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1036',
+ customer: 'Ivan Petrov',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'processing',
+ date: '2025-01-09',
+ },
+ {
+ id: 'ORD-1037',
+ customer: 'Aiko Mori',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-09',
+ },
+ // Fri (5) — medium, early afternoon
+ {
+ id: 'ORD-1038',
+ customer: 'Felix Braun',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-10',
+ },
+ {
+ id: 'ORD-1039',
+ customer: 'Rosa Delgado',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-10',
+ },
+ {
+ id: 'ORD-1040',
+ customer: 'Nils Eriksson',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'shipped',
+ date: '2025-01-10',
+ },
+ {
+ id: 'ORD-1041',
+ customer: 'Suki Park',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-10',
+ },
+ // Sat (6) — spread across 9am–6pm, very hot
+ {
+ id: 'ORD-1042',
+ customer: 'Omar Haddad',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1043',
+ customer: 'Freya Jensen',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'shipped',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1044',
+ customer: 'Marco Bianchi',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1045',
+ customer: 'Aya Tanaka',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1046',
+ customer: 'Lars Müller',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1047',
+ customer: 'Mia Chang',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'processing',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1048',
+ customer: 'Petra Novak',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1049',
+ customer: 'Tariq Osman',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1050',
+ customer: 'Lena Holm',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1051',
+ customer: 'Vera Costa',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'shipped',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1052',
+ customer: 'Hugo Blanc',
+ email: '[email protected]',
+ product: PRODUCTS[3].name,
+ category: PRODUCTS[3].category,
+ imageIndex: 3,
+ amount: 180,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1053',
+ customer: 'Ingrid Berg',
+ email: '[email protected]',
+ product: PRODUCTS[4].name,
+ category: PRODUCTS[4].category,
+ imageIndex: 4,
+ amount: 140,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1054',
+ customer: 'Hana Kim',
+ email: '[email protected]',
+ product: PRODUCTS[5].name,
+ category: PRODUCTS[5].category,
+ imageIndex: 5,
+ amount: 110,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1055',
+ customer: 'Axel Lindgren',
+ email: '[email protected]',
+ product: PRODUCTS[0].name,
+ category: PRODUCTS[0].category,
+ imageIndex: 0,
+ amount: 130,
+ status: 'shipped',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1056',
+ customer: 'Yara Mansour',
+ email: '[email protected]',
+ product: PRODUCTS[1].name,
+ category: PRODUCTS[1].category,
+ imageIndex: 1,
+ amount: 190,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+ {
+ id: 'ORD-1057',
+ customer: 'Dmitri Volkov',
+ email: '[email protected]',
+ product: PRODUCTS[2].name,
+ category: PRODUCTS[2].category,
+ imageIndex: 2,
+ amount: 70,
+ status: 'completed',
+ date: '2025-01-11',
+ },
+];
+
+const revenueData = [
+ {date: 'Jan 1', revenue: 5200},
+ {date: 'Jan 2', revenue: 4800},
+ {date: 'Jan 3', revenue: 6100},
+ {date: 'Jan 4', revenue: 7400},
+ {date: 'Jan 5', revenue: 5900},
+ {date: 'Jan 6', revenue: 6800},
+ {date: 'Jan 7', revenue: 7200},
+ {date: 'Jan 8', revenue: 8300},
+ {date: 'Jan 9', revenue: 6500},
+ {date: 'Jan 10', revenue: 5400},
+ {date: 'Jan 11', revenue: 7800},
+ {date: 'Jan 12', revenue: 9200},
+ {date: 'Jan 13', revenue: 6900},
+ {date: 'Jan 14', revenue: 8600},
+ {date: 'Jan 15', revenue: 7100},
+];
+
+const statusColor: Record<string, 'green' | 'blue' | 'orange' | 'red'> = {
+ completed: 'green',
+ shipped: 'blue',
+ processing: 'orange',
+ refunded: 'red',
+};
+
+const columns: XDSTableColumn<OrderRow>[] = [
+ {
+ key: 'id',
+ header: 'Order',
+ width: pixel(110),
+ renderCell: (item: OrderRow) => (
+ <XDSLink href="#" isStandalone>
+ {item.id}
+ </XDSLink>
+ ),
+ },
+ {
+ key: 'product',
+ header: 'Product',
+ width: proportional(3),
+ renderCell: (item: OrderRow) => (
+ <XDSHStack gap={3} vAlign="center">
+ <XDSThumbnail
+ src={PRODUCTS[item.imageIndex].image}
+ alt={item.product}
+ label={item.product}
+ style={{width: 36, height: 36, flexShrink: 0}}
+ />
+ <XDSVStack gap={0}>
+ <XDSText type="body">{item.product}</XDSText>
+ <XDSText type="supporting" color="secondary">
+ {item.category}
+ </XDSText>
+ </XDSVStack>
+ </XDSHStack>
+ ),
+ },
+ {
+ key: 'amount',
+ header: 'Amount',
+ width: pixel(90),
+ renderCell: (item: OrderRow) => (
+ <XDSText type="body">${item.amount}</XDSText>
+ ),
+ },
+ {
+ key: 'customer',
+ header: 'Customer',
+ width: proportional(2),
+ renderCell: (item: OrderRow) => (
+ <XDSText type="body">{item.customer}</XDSText>
+ ),
+ },
+ {
+ key: 'email',
+ header: 'Email',
+ width: proportional(2),
+ renderCell: (item: OrderRow) => <XDSText type="body">{item.email}</XDSText>,
+ },
+ {
+ key: 'status',
+ header: 'Status',
+ width: pixel(120),
+ renderCell: (item: OrderRow) => (
+ <XDSBadge
+ label={item.status.charAt(0).toUpperCase() + item.status.slice(1)}
+ variant={statusColor[item.status]}
+ />
+ ),
+ },
+ {
+ key: 'date',
+ header: 'Date',
+ width: pixel(110),
+ renderCell: (item: OrderRow) => <XDSText type="body">{item.date}</XDSText>,
+ },
+];
+
+// ============= PAGE =============
+
+export default function TablePageShoeStoreHeatmapTemplate() {
+ return (
+ <XDSAppShell variant="elevated" contentPadding={3} height="auto">
+ <XDSVStack gap={4}>
+ <XDSHStack gap={2} vAlign="center">
+ <XDSStackItem size="fill">
+ <XDSHeading level={1}>Sales</XDSHeading>
+ </XDSStackItem>
+ <XDSIconButton
+ label="Filter"
+ icon={<XDSIcon icon={FunnelIcon} size="sm" />}
+ variant="ghost"
+ />
+ <XDSIconButton
+ label="Export"
+ icon={<XDSIcon icon={ArrowDownTrayIcon} size="sm" />}
+ variant="ghost"
+ />
+ <XDSButton
+ label="New order"
+ icon={<XDSIcon icon={PlusIcon} size="sm" />}
+ />
+ </XDSHStack>
+
+ <XDSChart
+ data={revenueData}
+ xKey="date"
+ series={[
+ area('revenue', {color: '#3b82f6', gradient: true}),
+ line('revenue', {color: '#3b82f6'}),
+ ]}
+ grid={<XDSChartGrid horizontal />}
+ axes={
+ <>
+ <XDSChartAxis position="bottom" />
+ <XDSChartAxis
+ position="left"
+ tickFormat={(v: unknown) => `$${Number(v) / 1000}k`}
+ />
+ </>
+ }
+ height={280}
+ margin={{left: 40, right: 10, top: 10, bottom: 30}}
+ />
+
+ <XDSTable<OrderRow>
+ data={orders}
+ columns={columns}
+ idKey="id"
+ density="balanced"
+ dividers="rows"
+ hasHover
+ />
+ </XDSVStack>
+ </XDSAppShell>
+ );
+}
diff --git a/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs b/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs
new file mode 100644
index 0000000000..36be0615b2
--- /dev/null
+++ b/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs
@@ -0,0 +1,8 @@
+/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
+export const doc = {
+ type: 'page',
+ name: 'Table Page (Chart Shoe Store)',
+ description:
+ 'Shoe store sales data table with a revenue area chart and product thumbnails.',
+ isReady: true,
+};