astryx-dracula 0.4.0 → 0.5.1

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 (121) hide show
  1. package/astryx.integration.mjs +1 -1
  2. package/icons.mjs +17 -17
  3. package/icons.tsx +61 -62
  4. package/package.json +120 -116
  5. package/shared/auth-chrome-config.ts +6 -6
  6. package/shared/auth-chrome.tsx +168 -19
  7. package/shared/auth-copy.ts +14 -14
  8. package/shared/chaptered-doc-config.ts +48 -51
  9. package/shared/chaptered-doc.tsx +270 -292
  10. package/shared/chart-hues.ts +10 -15
  11. package/shared/chart-labels.tsx +31 -30
  12. package/shared/chart-legend.tsx +55 -57
  13. package/shared/chart-panel-style.ts +3 -3
  14. package/shared/data-bar.tsx +97 -102
  15. package/shared/format-money.ts +3 -0
  16. package/shared/gallery-image.ts +6 -6
  17. package/shared/login-demo.ts +1 -1
  18. package/shared/metric-card.tsx +123 -0
  19. package/shared/metric-delta.tsx +28 -27
  20. package/shared/order-desk.tsx +205 -216
  21. package/shared/revenue-chart.tsx +145 -165
  22. package/shared/scene-castle.tsx +206 -291
  23. package/shared/scene-frame.tsx +33 -32
  24. package/shared/scene-hues.ts +17 -25
  25. package/shared/scene-tile.tsx +88 -100
  26. package/shared/settings-data.ts +132 -104
  27. package/shared/settings-rows.tsx +143 -163
  28. package/shared/sparkline.tsx +75 -88
  29. package/shared/sso-icons.tsx +10 -22
  30. package/shared/stars.tsx +19 -0
  31. package/templates/ai-chat-landing.template.mjs +4 -4
  32. package/templates/ai-chat-landing.tsx +468 -447
  33. package/templates/ai-chat.template.mjs +4 -4
  34. package/templates/ai-chat.tsx +561 -645
  35. package/templates/blank.template.mjs +4 -4
  36. package/templates/blank.tsx +14 -12
  37. package/templates/centered-hero.template.mjs +4 -4
  38. package/templates/centered-hero.tsx +52 -67
  39. package/templates/classic-gallery.template.mjs +4 -4
  40. package/templates/classic-gallery.tsx +92 -101
  41. package/templates/contact-form.template.mjs +4 -4
  42. package/templates/contact-form.tsx +243 -280
  43. package/templates/dashboard-portfolio.template.mjs +4 -4
  44. package/templates/dashboard-portfolio.tsx +723 -634
  45. package/templates/dashboard.template.mjs +4 -4
  46. package/templates/dashboard.tsx +592 -682
  47. package/templates/detail-page.template.mjs +4 -4
  48. package/templates/detail-page.tsx +537 -598
  49. package/templates/documentation-design.template.mjs +4 -4
  50. package/templates/documentation-design.tsx +242 -709
  51. package/templates/documentation-technical.template.mjs +4 -4
  52. package/templates/documentation-technical.tsx +233 -258
  53. package/templates/documentation.template.mjs +4 -4
  54. package/templates/documentation.tsx +263 -277
  55. package/templates/editor.template.mjs +4 -4
  56. package/templates/editor.tsx +847 -899
  57. package/templates/file-explorer.template.mjs +4 -4
  58. package/templates/file-explorer.tsx +562 -602
  59. package/templates/form-two-column.template.mjs +4 -4
  60. package/templates/form-two-column.tsx +187 -208
  61. package/templates/gallery-hero.template.mjs +4 -4
  62. package/templates/gallery-hero.tsx +89 -112
  63. package/templates/ide.template.mjs +4 -4
  64. package/templates/ide.tsx +405 -462
  65. package/templates/incident-console.template.mjs +4 -4
  66. package/templates/incident-console.tsx +559 -581
  67. package/templates/kanban-board.template.mjs +4 -4
  68. package/templates/kanban-board.tsx +660 -729
  69. package/templates/library.template.mjs +4 -4
  70. package/templates/library.tsx +405 -452
  71. package/templates/login-card.template.mjs +4 -4
  72. package/templates/login-card.tsx +59 -163
  73. package/templates/login-split.template.mjs +4 -4
  74. package/templates/login-split.tsx +196 -232
  75. package/templates/login-sso.template.mjs +4 -4
  76. package/templates/login-sso.tsx +253 -277
  77. package/templates/login.template.mjs +4 -4
  78. package/templates/login.tsx +51 -149
  79. package/templates/messaging-shell.template.mjs +4 -4
  80. package/templates/messaging-shell.tsx +596 -624
  81. package/templates/mixed-gallery.template.mjs +4 -4
  82. package/templates/mixed-gallery.tsx +56 -56
  83. package/templates/payment-form.template.mjs +4 -4
  84. package/templates/payment-form.tsx +877 -990
  85. package/templates/product-detail.template.mjs +4 -4
  86. package/templates/product-detail.tsx +251 -302
  87. package/templates/product-gallery.template.mjs +4 -4
  88. package/templates/product-gallery.tsx +122 -135
  89. package/templates/product-tour.template.mjs +4 -4
  90. package/templates/product-tour.tsx +737 -794
  91. package/templates/settings-dialog.template.mjs +4 -4
  92. package/templates/settings-dialog.tsx +694 -747
  93. package/templates/settings-sidebar.template.mjs +4 -4
  94. package/templates/settings-sidebar.tsx +768 -848
  95. package/templates/settings.template.mjs +4 -4
  96. package/templates/settings.tsx +306 -230
  97. package/templates/shell-nav.template.mjs +4 -4
  98. package/templates/shell-nav.tsx +217 -277
  99. package/templates/shell-side-nav.template.mjs +4 -4
  100. package/templates/shell-side-nav.tsx +130 -231
  101. package/templates/shell-top-nav.template.mjs +4 -4
  102. package/templates/shell-top-nav.tsx +192 -248
  103. package/templates/side-gallery.template.mjs +4 -4
  104. package/templates/side-gallery.tsx +87 -94
  105. package/templates/table-grouped.template.mjs +4 -4
  106. package/templates/table-grouped.tsx +999 -1201
  107. package/templates/table-page-chart.template.mjs +4 -4
  108. package/templates/table-page-chart.tsx +398 -397
  109. package/templates/table-page-heatmap-status.template.mjs +4 -4
  110. package/templates/table-page-heatmap-status.tsx +479 -527
  111. package/templates/table-page-shoe-store-heatmap.template.mjs +4 -4
  112. package/templates/table-page-shoe-store-heatmap.tsx +746 -746
  113. package/templates/table-page.template.mjs +4 -4
  114. package/templates/table-page.tsx +393 -431
  115. package/templates/table.template.mjs +4 -4
  116. package/templates/table.tsx +93 -99
  117. package/templates/tech-report.template.mjs +4 -4
  118. package/templates/tech-report.tsx +1320 -1324
  119. package/templates/theme-showcase.template.mjs +4 -4
  120. package/templates/theme-showcase.tsx +869 -1246
  121. package/tokens.css +340 -343
@@ -2,35 +2,36 @@
2
2
  // the direction arrow carrying the same tone. The sign and the arrow carry the
3
3
  // direction; the tone only reinforces it — never rely on color alone.
4
4
 
5
- import {HStack} from '@astryxdesign/core/Stack';
6
- import {Text} from '@astryxdesign/core/Text';
7
- import {Icon} from '@astryxdesign/core/Icon';
8
- import {ArrowUp, ArrowDown} from 'lucide-react';
5
+ import { Icon } from "@astryxdesign/core/Icon";
6
+ import { HStack } from "@astryxdesign/core/Stack";
7
+ import { Text } from "@astryxdesign/core/Text";
8
+ import { ArrowDown, ArrowUp } from "lucide-react";
9
9
 
10
10
  export function MetricDelta({
11
- value,
12
- positive,
11
+ value,
12
+ positive,
13
13
  }: {
14
- /** Signed figure, e.g. "+12.4%" or "-3.1%". */
15
- value: string;
16
- positive: boolean;
14
+ /** Signed figure, e.g. "+12.4%" or "-3.1%". */
15
+ value: string;
16
+ positive: boolean;
17
17
  }) {
18
- return (
19
- <HStack gap={1} vAlign="center">
20
- <Icon
21
- icon={positive ? ArrowUp : ArrowDown}
22
- size="xsm"
23
- color={positive ? 'success' : 'error'}
24
- />
25
- <Text
26
- type="body"
27
- weight="semibold"
28
- hasTabularNumbers
29
- style={{
30
- color: positive ? 'var(--color-positive)' : 'var(--color-negative)',
31
- }}>
32
- {value}
33
- </Text>
34
- </HStack>
35
- );
18
+ return (
19
+ <HStack gap={1} vAlign="center">
20
+ <Icon
21
+ icon={positive ? ArrowUp : ArrowDown}
22
+ size="xsm"
23
+ color={positive ? "success" : "error"}
24
+ />
25
+ <Text
26
+ type="body"
27
+ weight="semibold"
28
+ hasTabularNumbers
29
+ style={{
30
+ color: positive ? "var(--color-positive)" : "var(--color-negative)",
31
+ }}
32
+ >
33
+ {value}
34
+ </Text>
35
+ </HStack>
36
+ );
36
37
  }
@@ -2,26 +2,27 @@
2
2
  // table-page-shoe-store-heatmap (Midnight Kicks) templates. The two pages are
3
3
  // one archetype — revenue line over the order log — differing only in catalogue,
4
4
  // rows, and chart scale, so the frame/columns live here once.
5
- import type {CSSProperties} from 'react';
5
+
6
+ import { Button } from "@astryxdesign/core/Button";
7
+ import { Icon } from "@astryxdesign/core/Icon";
8
+ import { IconButton } from "@astryxdesign/core/IconButton";
6
9
  import {
7
- VStack,
8
- HStack,
9
- StackItem,
10
- Layout,
11
- LayoutContent,
12
- LayoutHeader,
13
- } from '@astryxdesign/core/Layout';
14
- import {Text, Heading} from '@astryxdesign/core/Text';
15
- import {Button} from '@astryxdesign/core/Button';
16
- import {IconButton} from '@astryxdesign/core/IconButton';
17
- import {Icon} from '@astryxdesign/core/Icon';
18
- import {Token} from '@astryxdesign/core/Token';
19
- import {Link} from '@astryxdesign/core/Link';
20
- import {Table, proportional, pixel} from '@astryxdesign/core/Table';
21
- import type {TableColumn} from '@astryxdesign/core/Table';
22
- import {Filter, Download, Plus} from 'lucide-react';
23
- import {RevenueChart, ProductSwatch} from 'astryx-dracula/shared/revenue-chart';
24
- import type {SceneHue} from 'astryx-dracula/shared/scene-hues';
10
+ HStack,
11
+ Layout,
12
+ LayoutContent,
13
+ LayoutHeader,
14
+ StackItem,
15
+ VStack,
16
+ } from "@astryxdesign/core/Layout";
17
+ import { Link } from "@astryxdesign/core/Link";
18
+ import type { TableColumn } from "@astryxdesign/core/Table";
19
+ import { pixel, proportional, Table } from "@astryxdesign/core/Table";
20
+ import { Heading, Text } from "@astryxdesign/core/Text";
21
+ import { Token } from "@astryxdesign/core/Token";
22
+ import { ProductSwatch, RevenueChart } from "astryx-dracula/shared/revenue-chart";
23
+ import type { SceneHue } from "astryx-dracula/shared/scene-hues";
24
+ import { Download, Filter, Plus } from "lucide-react";
25
+ import type { CSSProperties } from "react";
25
26
 
26
27
  // Anchor for the page wrapper.
27
28
  //
@@ -43,231 +44,219 @@ import type {SceneHue} from 'astryx-dracula/shared/scene-hues';
43
44
  // The wrapper exists to give the Layout's `height: 100%` (Layout.tsx:58-63)
44
45
  // something definite to resolve against when the host is content-sized, which
45
46
  // is the case whenever a template ships standalone.
46
- const pageStyle: CSSProperties = {height: '100dvh'};
47
+ const pageStyle: CSSProperties = { height: "100dvh" };
47
48
 
48
49
  export interface OrderDeskProduct {
49
- name: string;
50
- category: string;
51
- /**
52
- * Per-product art tint, painted by `ProductSwatch`. Same remit as
53
- * `SceneTile.hue` — an art treatment, not a data series — so it takes the
54
- * same `SceneHue` union rather than a free-form string. Typing the boundary
55
- * HERE is what makes the compile-error list the real list: typed only at the
56
- * consumer, a raw string flows through untyped and the error never fires.
57
- */
58
- accent: SceneHue;
59
- price: number;
50
+ name: string;
51
+ category: string;
52
+ /**
53
+ * Per-product art tint, painted by `ProductSwatch`. Same remit as
54
+ * `SceneTile.hue` — an art treatment, not a data series — so it takes the
55
+ * same `SceneHue` union rather than a free-form string. Typing the boundary
56
+ * HERE is what makes the compile-error list the real list: typed only at the
57
+ * consumer, a raw string flows through untyped and the error never fires.
58
+ */
59
+ accent: SceneHue;
60
+ price: number;
60
61
  }
61
62
 
62
63
  export interface OrderDeskRow extends Record<string, unknown> {
63
- id: string;
64
- customer: string;
65
- email: string;
66
- product: string;
67
- category: string;
68
- imageIndex: number;
69
- amount: number;
70
- status: 'completed' | 'processing' | 'shipped' | 'refunded';
71
- date: string;
64
+ id: string;
65
+ customer: string;
66
+ email: string;
67
+ product: string;
68
+ category: string;
69
+ imageIndex: number;
70
+ amount: number;
71
+ status: "completed" | "processing" | "shipped" | "refunded";
72
+ date: string;
72
73
  }
73
74
 
74
75
  export interface RevenueDatum {
75
- date: string;
76
- revenue: number;
76
+ date: string;
77
+ revenue: number;
77
78
  }
78
79
 
79
80
  // Vocabulary, not a hue choice: orange is attention and constants only
80
81
  // (principle 3), and an order being picked is routine in-flight work, not
81
82
  // attention. In-progress/activity is cyan (info). refunded stays red — that
82
83
  // is a real negative.
83
- const STATUS_TOKEN_COLOR: Record<
84
- OrderDeskRow['status'],
85
- 'green' | 'cyan' | 'red'
86
- > = {
87
- completed: 'green',
88
- shipped: 'cyan',
89
- processing: 'cyan',
90
- refunded: 'red',
84
+ const STATUS_TOKEN_COLOR: Record<OrderDeskRow["status"], "green" | "cyan" | "red"> = {
85
+ completed: "green",
86
+ shipped: "cyan",
87
+ processing: "cyan",
88
+ refunded: "red",
91
89
  };
92
90
 
93
- const STATUS_LABEL: Record<OrderDeskRow['status'], string> = {
94
- completed: 'Completed',
95
- shipped: 'Shipped',
96
- processing: 'Processing',
97
- refunded: 'Refunded',
91
+ const STATUS_LABEL: Record<OrderDeskRow["status"], string> = {
92
+ completed: "Completed",
93
+ shipped: "Shipped",
94
+ processing: "Processing",
95
+ refunded: "Refunded",
98
96
  };
99
97
 
100
98
  function columnsFor(selfHash: string, products: OrderDeskProduct[]): TableColumn<OrderDeskRow>[] {
101
- return [
102
- {
103
- key: 'id',
104
- header: 'Order',
105
- width: pixel(96),
106
- renderCell: (item: OrderDeskRow) => (
107
- <Link href={selfHash} isStandalone>
108
- {item.id}
109
- </Link>
110
- ),
111
- },
112
- {
113
- key: 'product',
114
- header: 'Product',
115
- width: proportional(3, {minWidth: 160}),
116
- renderCell: (item: OrderDeskRow) => (
117
- <HStack gap={3} vAlign="center">
118
- <ProductSwatch
119
- accent={products[item.imageIndex].accent}
120
- label={item.product}
121
- />
122
- <StackItem size="fill">
123
- <VStack gap={0}>
124
- <Text type="body" maxLines={1}>
125
- {item.product}
126
- </Text>
127
- <Text type="supporting" color="secondary" maxLines={1}>
128
- {item.category}
129
- </Text>
130
- </VStack>
131
- </StackItem>
132
- </HStack>
133
- ),
134
- },
135
- {
136
- key: 'amount',
137
- header: 'Amount',
138
- width: pixel(88),
139
- renderCell: (item: OrderDeskRow) => (
140
- <Text type="body" hasTabularNumbers maxLines={1}>
141
- ${item.amount}
142
- </Text>
143
- ),
144
- },
145
- {
146
- key: 'customer',
147
- header: 'Customer',
148
- width: proportional(2, {minWidth: 120}),
149
- renderCell: (item: OrderDeskRow) => (
150
- <Text type="body" maxLines={1}>
151
- {item.customer}
152
- </Text>
153
- ),
154
- },
155
- {
156
- key: 'email',
157
- header: 'Email',
158
- width: proportional(2, {minWidth: 120}),
159
- renderCell: (item: OrderDeskRow) => (
160
- <Text type="body" maxLines={1}>
161
- {item.email}
162
- </Text>
163
- ),
164
- },
165
- {
166
- key: 'status',
167
- header: 'Status',
168
- width: pixel(120),
169
- renderCell: (item: OrderDeskRow) => (
170
- <Token
171
- size="sm"
172
- color={STATUS_TOKEN_COLOR[item.status]}
173
- label={STATUS_LABEL[item.status]}
174
- />
175
- ),
176
- },
177
- {
178
- key: 'date',
179
- header: 'Date',
180
- width: pixel(112),
181
- renderCell: (item: OrderDeskRow) => (
182
- <Text type="body" hasTabularNumbers maxLines={1}>
183
- {item.date}
184
- </Text>
185
- ),
186
- },
187
- ];
99
+ return [
100
+ {
101
+ key: "id",
102
+ header: "Order",
103
+ width: pixel(96),
104
+ renderCell: (item: OrderDeskRow) => (
105
+ <Link href={selfHash} isStandalone>
106
+ {item.id}
107
+ </Link>
108
+ ),
109
+ },
110
+ {
111
+ key: "product",
112
+ header: "Product",
113
+ width: proportional(3, { minWidth: 160 }),
114
+ renderCell: (item: OrderDeskRow) => (
115
+ <HStack gap={3} vAlign="center">
116
+ <ProductSwatch accent={products[item.imageIndex].accent} label={item.product} />
117
+ <StackItem size="fill">
118
+ <VStack gap={0}>
119
+ <Text type="body" maxLines={1}>
120
+ {item.product}
121
+ </Text>
122
+ <Text type="supporting" color="secondary" maxLines={1}>
123
+ {item.category}
124
+ </Text>
125
+ </VStack>
126
+ </StackItem>
127
+ </HStack>
128
+ ),
129
+ },
130
+ {
131
+ key: "amount",
132
+ header: "Amount",
133
+ width: pixel(88),
134
+ renderCell: (item: OrderDeskRow) => (
135
+ <Text type="body" hasTabularNumbers maxLines={1}>
136
+ ${item.amount}
137
+ </Text>
138
+ ),
139
+ },
140
+ {
141
+ key: "customer",
142
+ header: "Customer",
143
+ width: proportional(2, { minWidth: 120 }),
144
+ renderCell: (item: OrderDeskRow) => (
145
+ <Text type="body" maxLines={1}>
146
+ {item.customer}
147
+ </Text>
148
+ ),
149
+ },
150
+ {
151
+ key: "email",
152
+ header: "Email",
153
+ width: proportional(2, { minWidth: 120 }),
154
+ renderCell: (item: OrderDeskRow) => (
155
+ <Text type="body" maxLines={1}>
156
+ {item.email}
157
+ </Text>
158
+ ),
159
+ },
160
+ {
161
+ key: "status",
162
+ header: "Status",
163
+ width: pixel(120),
164
+ renderCell: (item: OrderDeskRow) => (
165
+ <Token
166
+ size="sm"
167
+ color={STATUS_TOKEN_COLOR[item.status]}
168
+ label={STATUS_LABEL[item.status]}
169
+ />
170
+ ),
171
+ },
172
+ {
173
+ key: "date",
174
+ header: "Date",
175
+ width: pixel(112),
176
+ renderCell: (item: OrderDeskRow) => (
177
+ <Text type="body" hasTabularNumbers maxLines={1}>
178
+ {item.date}
179
+ </Text>
180
+ ),
181
+ },
182
+ ];
188
183
  }
189
184
 
190
185
  export function OrderDesk({
191
- title,
192
- selfHash,
193
- products,
194
- orders,
195
- revenueData,
196
- chartMax,
197
- gridTicks,
186
+ title,
187
+ selfHash,
188
+ products,
189
+ orders,
190
+ revenueData,
191
+ chartMax,
192
+ gridTicks,
198
193
  }: {
199
- title: string;
200
- selfHash: string;
201
- products: OrderDeskProduct[];
202
- orders: OrderDeskRow[];
203
- revenueData: RevenueDatum[];
204
- chartMax: number;
205
- gridTicks: number[];
194
+ title: string;
195
+ selfHash: string;
196
+ products: OrderDeskProduct[];
197
+ orders: OrderDeskRow[];
198
+ revenueData: RevenueDatum[];
199
+ chartMax: number;
200
+ gridTicks: number[];
206
201
  }) {
207
- return (
208
- // The anchor lives on a page-owned wrapper, never on the Layout. A bare
209
- // `height="fill"` resolves against `min-height: 100%`, which collapses when
210
- // the host is content-sized — and templates ship standalone, so that is the
211
- // common case. Putting the height on the Layout instead would trade
212
- // a soft failure (the document scrolls) for a hard one (content clipped,
213
- // because `LayoutContent` is `overflow: auto` with a definite height).
214
- <div style={pageStyle}>
215
- <Layout
216
- height="fill"
217
- header={
218
- <LayoutHeader hasDivider padding={6}>
219
- <HStack gap={2} vAlign="center">
220
- <StackItem size="fill">
221
- {/* maxLines={1}, not wrap="wrap": at 390 the 35px display-2 title
202
+ return (
203
+ // The anchor lives on a page-owned wrapper, never on the Layout. A bare
204
+ // `height="fill"` resolves against `min-height: 100%`, which collapses when
205
+ // the host is content-sized — and templates ship standalone, so that is the
206
+ // common case. Putting the height on the Layout instead would trade
207
+ // a soft failure (the document scrolls) for a hard one (content clipped,
208
+ // because `LayoutContent` is `overflow: auto` with a definite height).
209
+ <div style={pageStyle}>
210
+ <Layout
211
+ height="fill"
212
+ header={
213
+ <LayoutHeader hasDivider padding={6}>
214
+ <HStack gap={2} vAlign="center">
215
+ <StackItem size="fill">
216
+ {/* maxLines={1}, not wrap="wrap": at 390 the 35px display-2 title
222
217
  wraps 2-3 lines in a 342px header (measured: 136px tall for
223
218
  "Midnight Kicks", 180px for an 18-char title). Wrapping the
224
219
  row measured IDENTICAL header heights in both configurations
225
220
  — the controls already fit, the title is what is tall. And
226
221
  maxLines wires core's useTruncation, so the full value stays
227
222
  reachable in a Tooltip (SC 1.4.10, "truncation must reveal"). */}
228
- <Heading level={1} type="display-2" maxLines={1}>{title}</Heading>
229
- </StackItem>
230
- <IconButton
231
- label="Filter"
232
- icon={<Icon icon={Filter} size="sm" />}
233
- variant="ghost"
234
- tooltip="Filter"
235
- />
236
- <IconButton
237
- label="Export"
238
- icon={<Icon icon={Download} size="sm" />}
239
- variant="ghost"
240
- tooltip="Export"
241
- />
242
- <Button
243
- label="New order"
244
- variant="primary"
245
- icon={<Icon icon={Plus} size="sm" />}
246
- />
247
- </HStack>
248
- </LayoutHeader>
249
- }
250
- content={
251
- <LayoutContent padding={3}>
252
- <VStack gap={4}>
253
- <RevenueChart
254
- data={revenueData}
255
- chartMax={chartMax}
256
- gridTicks={gridTicks}
257
- />
258
- <Table<OrderDeskRow>
259
- data={orders}
260
- columns={columnsFor(selfHash, products)}
261
- idKey="id"
262
- density="balanced"
263
- dividers="rows"
264
- textOverflow="truncate"
265
- hasHover
266
- />
267
- </VStack>
268
- </LayoutContent>
269
- }
270
- />
271
- </div>
272
- );
223
+ <Heading level={1} type="display-2" maxLines={1}>
224
+ {title}
225
+ </Heading>
226
+ </StackItem>
227
+ <IconButton
228
+ label="Filter"
229
+ icon={<Icon icon={Filter} size="sm" />}
230
+ variant="ghost"
231
+ tooltip="Filter"
232
+ />
233
+ <IconButton
234
+ label="Export"
235
+ icon={<Icon icon={Download} size="sm" />}
236
+ variant="ghost"
237
+ tooltip="Export"
238
+ />
239
+ <Button label="New order" variant="primary" icon={<Icon icon={Plus} size="sm" />} />
240
+ </HStack>
241
+ </LayoutHeader>
242
+ }
243
+ content={
244
+ <LayoutContent padding={3}>
245
+ <VStack gap={4}>
246
+ <RevenueChart data={revenueData} chartMax={chartMax} gridTicks={gridTicks} />
247
+ <Table<OrderDeskRow>
248
+ data={orders}
249
+ columns={columnsFor(selfHash, products)}
250
+ idKey="id"
251
+ density="balanced"
252
+ dividers="rows"
253
+ textOverflow="truncate"
254
+ hasHover
255
+ />
256
+ </VStack>
257
+ </LayoutContent>
258
+ }
259
+ />
260
+ </div>
261
+ );
273
262
  }