@appdirect/design-system 0.0.10 → 0.0.12

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 (179) hide show
  1. package/README.md +85 -5
  2. package/dist/Buttons/ActionIcon.js +14 -0
  3. package/dist/Buttons/Button.js +66 -0
  4. package/dist/Buttons/CloseButton.js +48 -0
  5. package/dist/Buttons/index.js +13 -0
  6. package/dist/Combobox/AutocompleteClearable.js +36 -0
  7. package/dist/Combobox/Combobox.js +28 -0
  8. package/dist/Combobox/Multiselect.js +31 -0
  9. package/dist/Combobox/SearchableSelect.js +43 -0
  10. package/dist/Combobox/Select.js +72 -0
  11. package/dist/Combobox/index.js +10 -0
  12. package/dist/ComplexComponents/DashboardWidget/DashboardWidget.js +96 -0
  13. package/dist/ComplexComponents/DashboardWidget/index.js +1 -0
  14. package/dist/ComplexComponents/DataTable/CustomBottomToolbar/index.js +82 -0
  15. package/dist/ComplexComponents/DataTable/CustomBottomToolbar/utils.js +23 -0
  16. package/dist/ComplexComponents/DataTable/CustomToolbarAlertBannerContent/index.js +23 -0
  17. package/dist/ComplexComponents/DataTable/CustomTopToolbar/DateRangeSelectorFilter/index.js +230 -0
  18. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterChip.js +30 -0
  19. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/DateRangeFilter.js +12 -0
  20. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/FilterRenderer.js +32 -0
  21. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/FilterSystem.js +90 -0
  22. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/MultiSelectFilter.js +43 -0
  23. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/SingleSelectFilter.js +30 -0
  24. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/index.js +39 -0
  25. package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/types.js +9 -0
  26. package/dist/ComplexComponents/DataTable/CustomTopToolbar/ResultCount/index.js +31 -0
  27. package/dist/ComplexComponents/DataTable/CustomTopToolbar/SearchFilter.js +42 -0
  28. package/dist/ComplexComponents/DataTable/CustomTopToolbar/SelectFilter.js +21 -0
  29. package/dist/ComplexComponents/DataTable/CustomTopToolbar/index.js +410 -0
  30. package/dist/ComplexComponents/DataTable/DataTable.js +405 -0
  31. package/dist/ComplexComponents/DataTable/ErrorOverlay/index.js +9 -0
  32. package/dist/ComplexComponents/DataTable/SortableHeaderCell/index.js +27 -0
  33. package/dist/ComplexComponents/DataTable/index.js +1 -0
  34. package/dist/ComplexComponents/DataTable/translations/en.js +99 -0
  35. package/dist/ComplexComponents/DataTable/translations/index.js +17 -0
  36. package/dist/ComplexComponents/KeyInsight/KeyInsights.js +176 -0
  37. package/dist/ComplexComponents/KeyInsight/index.js +1 -0
  38. package/dist/ComplexComponents/NameValue/NameValue.js +94 -0
  39. package/dist/ComplexComponents/NameValue/NameValueItem.js +59 -0
  40. package/dist/ComplexComponents/NameValue/index.js +2 -0
  41. package/dist/ComplexComponents/PageContentHeader/PageContentHeader.js +92 -0
  42. package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
  43. package/dist/ComplexComponents/PageContentHeader/index.js +1 -0
  44. package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
  45. package/dist/ComplexComponents/Placeholder/Placeholder.js +51 -0
  46. package/dist/ComplexComponents/Placeholder/index.js +1 -0
  47. package/dist/ComplexComponents/Slat/Slat.js +53 -0
  48. package/dist/ComplexComponents/Slat/index.js +1 -0
  49. package/dist/ComplexComponents/Utilities/CopyButton.js +45 -0
  50. package/dist/ComplexComponents/Utilities/index.js +1 -0
  51. package/dist/DataDisplay/Alert.js +77 -0
  52. package/dist/DataDisplay/Avatar.js +157 -0
  53. package/dist/DataDisplay/Badge.js +78 -0
  54. package/dist/DataDisplay/Card.js +100 -0
  55. package/dist/DataDisplay/Chip.js +36 -0
  56. package/dist/DataDisplay/Indicator.js +59 -0
  57. package/dist/DataDisplay/List.js +60 -0
  58. package/dist/DataDisplay/Pill.js +81 -0
  59. package/dist/DataDisplay/Progress.js +42 -0
  60. package/dist/DataDisplay/Table.js +38 -0
  61. package/dist/DataDisplay/ThemeIcon.js +31 -0
  62. package/dist/DataDisplay/index.js +18 -0
  63. package/dist/Inputs/Checkbox.js +62 -0
  64. package/dist/Inputs/ColorInput.js +48 -0
  65. package/dist/Inputs/DropZone.js +12 -0
  66. package/dist/Inputs/FileInput.js +77 -0
  67. package/dist/Inputs/NumberInput.js +49 -0
  68. package/dist/Inputs/Radio.js +55 -0
  69. package/dist/Inputs/RadioGroup.js +59 -0
  70. package/dist/Inputs/SegmentedControl.js +50 -0
  71. package/dist/Inputs/Slider.js +50 -0
  72. package/dist/Inputs/SliderWithLabel.js +32 -0
  73. package/dist/Inputs/Switch.js +47 -0
  74. package/dist/Inputs/TextArea.js +50 -0
  75. package/dist/Inputs/TextInput.js +87 -0
  76. package/dist/Inputs/index.js +27 -0
  77. package/dist/Layout/Box.js +39 -0
  78. package/dist/Layout/Center.js +11 -0
  79. package/dist/Layout/Container.js +11 -0
  80. package/dist/Layout/Flex.js +12 -0
  81. package/dist/Layout/Grid.js +13 -0
  82. package/dist/Layout/Group.js +14 -0
  83. package/dist/Layout/Inline.js +46 -0
  84. package/dist/Layout/SimpleGrid.js +14 -0
  85. package/dist/Layout/Stack.js +45 -0
  86. package/dist/Layout/index.js +10 -0
  87. package/dist/Misc/Divider.js +8 -0
  88. package/dist/Misc/Paper.js +24 -0
  89. package/dist/Misc/index.js +10 -0
  90. package/dist/Navigation/Breadcrumb.js +60 -0
  91. package/dist/Navigation/NavLink.js +28 -0
  92. package/dist/Navigation/Stepper.js +8 -0
  93. package/dist/Navigation/Tabs.js +22 -0
  94. package/dist/Navigation/index.js +9 -0
  95. package/dist/Overlays/Drawer.js +63 -0
  96. package/dist/Overlays/Menu.js +85 -0
  97. package/dist/Overlays/Modal.js +61 -0
  98. package/dist/Overlays/Popover.js +118 -0
  99. package/dist/Overlays/Tooltip.js +71 -0
  100. package/dist/Overlays/index.js +12 -0
  101. package/dist/Shell/AppShellLayout.js +13 -0
  102. package/dist/Shell/HeaderBar.js +8 -0
  103. package/dist/Shell/SidebarNav.js +9 -0
  104. package/dist/Shell/SidebarNavLink.js +17 -0
  105. package/dist/Shell/SingleColumnLayout.js +11 -0
  106. package/dist/Shell/TertiaryColumnLayout.js +12 -0
  107. package/dist/Shell/index.js +6 -0
  108. package/dist/Typography/Code.js +8 -0
  109. package/dist/Typography/Kbd.js +58 -0
  110. package/dist/Typography/Text.js +8 -0
  111. package/dist/Typography/Title.js +11 -0
  112. package/dist/Typography/index.js +12 -0
  113. package/dist/config.js +202 -0
  114. package/dist/contracts/PageContentHeader.json +10 -5
  115. package/dist/contracts/index.json +1 -1
  116. package/dist/hooks/useTableHandlers.js +136 -0
  117. package/dist/hooks/useTableRenderFunctions.js +164 -0
  118. package/dist/hooks/useTableState.js +70 -0
  119. package/dist/index.js +162 -0
  120. package/dist/index.ts +3 -4
  121. package/dist/stories/Buttons/ActionIcon.stories.tsx +159 -0
  122. package/dist/stories/Buttons/Button.stories.tsx +145 -0
  123. package/dist/stories/Buttons/CloseButton.stories.tsx +121 -0
  124. package/dist/stories/Combobox/AutocompleteClearable.stories.tsx +554 -0
  125. package/dist/stories/Combobox/Combobox.stories.tsx +106 -0
  126. package/dist/stories/Combobox/Multiselect.stories.tsx +664 -0
  127. package/dist/stories/Combobox/SearchableSelect.stories.tsx +640 -0
  128. package/dist/stories/Combobox/Select.stories.tsx +311 -0
  129. package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +822 -0
  130. package/dist/stories/ComplexComponents/DataTable/DataTable.stories.tsx +502 -0
  131. package/dist/stories/ComplexComponents/KeyInsight/KeyInsights.stories.tsx +386 -0
  132. package/dist/stories/ComplexComponents/NameValue/NameValue.stories.tsx +405 -0
  133. package/dist/stories/ComplexComponents/PageContentHeader/PageContentHeader.stories.tsx +527 -0
  134. package/dist/stories/ComplexComponents/Placeholder/Placeholder.stories.tsx +76 -0
  135. package/dist/stories/ComplexComponents/Slat/Slat.stories.tsx +79 -0
  136. package/dist/stories/ComplexComponents/Utilities/CopyButton.stories.tsx +479 -0
  137. package/dist/stories/DataDisplay/Alert.stories.tsx +296 -0
  138. package/dist/stories/DataDisplay/Avatar.stories.tsx +251 -0
  139. package/dist/stories/DataDisplay/Badge.stories.tsx +176 -0
  140. package/dist/stories/DataDisplay/Card.stories.tsx +406 -0
  141. package/dist/stories/DataDisplay/Chip.stories.tsx +495 -0
  142. package/dist/stories/DataDisplay/Indicator.stories.tsx +571 -0
  143. package/dist/stories/DataDisplay/List.stories.tsx +376 -0
  144. package/dist/stories/DataDisplay/Pill.stories.tsx +506 -0
  145. package/dist/stories/DataDisplay/Progress.stories.tsx +352 -0
  146. package/dist/stories/DataDisplay/Table.stories.tsx +346 -0
  147. package/dist/stories/DataDisplay/ThemeIcon.stories.tsx +125 -0
  148. package/dist/stories/Inputs/Checkbox.stories.tsx +263 -0
  149. package/dist/stories/Inputs/ColorInput.stories.tsx +434 -0
  150. package/dist/stories/Inputs/DropZone.stories.tsx +401 -0
  151. package/dist/stories/Inputs/FileInput.stories.tsx +383 -0
  152. package/dist/stories/Inputs/NumberInput.stories.tsx +342 -0
  153. package/dist/stories/Inputs/Radio.stories.tsx +437 -0
  154. package/dist/stories/Inputs/RadioGroup.stories.tsx +526 -0
  155. package/dist/stories/Inputs/SegmentedControl.stories.tsx +60 -0
  156. package/dist/stories/Inputs/Slider.stories.tsx +22 -0
  157. package/dist/stories/Inputs/SliderWithLabel.stories.tsx +37 -0
  158. package/dist/stories/Inputs/Switch.stories.tsx +361 -0
  159. package/dist/stories/Inputs/TextArea.stories.tsx +355 -0
  160. package/dist/stories/Inputs/TextInput.stories.tsx +266 -0
  161. package/dist/stories/Misc/Divider.stories.tsx +581 -0
  162. package/dist/stories/Misc/Paper.stories.tsx +557 -0
  163. package/dist/stories/Navigation/Breadcrumb.stories.tsx +489 -0
  164. package/dist/stories/Navigation/NavLink.stories.tsx +601 -0
  165. package/dist/stories/Navigation/Stepper.stories.tsx +413 -0
  166. package/dist/stories/Navigation/Tabs.stories.tsx +528 -0
  167. package/dist/stories/Overlays/Drawer.stories.tsx +802 -0
  168. package/dist/stories/Overlays/Menu.stories.tsx +941 -0
  169. package/dist/stories/Overlays/Modal.stories.tsx +249 -0
  170. package/dist/stories/Overlays/Popover.stories.tsx +780 -0
  171. package/dist/stories/Overlays/Tooltip.stories.tsx +52 -0
  172. package/dist/stories/Typography/Code.stories.tsx +368 -0
  173. package/dist/stories/Typography/Kbd.stories.tsx +514 -0
  174. package/dist/stories/Typography/Text.stories.tsx +117 -0
  175. package/dist/stories/Typography/Title.stories.tsx +112 -0
  176. package/dist/stories/index.json +1435 -0
  177. package/dist/types.js +127 -0
  178. package/package.json +12 -7
  179. package/dist/ComplexComponents/PageContentHeader/DescriptionBlock.tsx +0 -65
@@ -0,0 +1,386 @@
1
+ import type { Meta, StoryObj } from '@storybook/nextjs-vite';
2
+ import { SimpleGrid, Stack, Inline, KeyInsight, Title, Text } from '@appdirect/design-system';
3
+
4
+ const meta: Meta<typeof KeyInsight> = {
5
+ title: 'Design System/Complex Components/KeyInsight',
6
+ component: KeyInsight,
7
+ parameters: {
8
+ layout: 'centered',
9
+ docs: {
10
+ description: {
11
+ component: 'KeyInsight component for displaying key metrics or insights with a title, value, and optional subtitle. Supports multiple sizes from xs to xxl. Commonly used in dashboards, analytics pages, or summary sections.',
12
+ },
13
+ },
14
+ },
15
+ tags: ['autodocs', 'needs-connect'],
16
+ argTypes: {
17
+ value: {
18
+ control: 'text',
19
+ description: 'Value to display (can be number or string)',
20
+ },
21
+ title: {
22
+ control: 'text',
23
+ description: 'Title/label for the insight',
24
+ },
25
+ subtitle: {
26
+ control: 'text',
27
+ description: 'Optional subtitle or description',
28
+ },
29
+ showBorder: {
30
+ control: 'boolean',
31
+ description: 'Whether to show border on the right',
32
+ },
33
+ size: {
34
+ control: 'select',
35
+ options: ['xs', 'sm', 'md', 'lg', 'jumbo', 'super-jumbo'],
36
+ description: 'Size of the KeyInsight component',
37
+ },
38
+ },
39
+ };
40
+
41
+ export default meta;
42
+ type Story = StoryObj<typeof meta>;
43
+
44
+ export const Default: Story = {
45
+ args: {
46
+ value: 1250,
47
+ title: 'Total Users',
48
+ size: 'md',
49
+ },
50
+ };
51
+
52
+ export const WithSubtitle: Story = {
53
+ args: {
54
+ value: '95%',
55
+ title: 'Success Rate',
56
+ subtitle: 'Last 30 days',
57
+ size: 'lg',
58
+ },
59
+ };
60
+
61
+ export const WithBorder: Story = {
62
+ args: {
63
+ value: 987,
64
+ title: 'Active Users',
65
+ showBorder: true,
66
+ size: 'md',
67
+ },
68
+ };
69
+
70
+ // ========================== SIZE SHOWCASE ==========================
71
+
72
+ export const AllSizes: Story = {
73
+ render: () => (
74
+ <Stack gap="xl" align="center">
75
+ <Title order={2}>KeyInsight Size Variations</Title>
76
+ <Stack gap="lg" align="center">
77
+ <div>
78
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Extra Small (xs)</Text>
79
+ <KeyInsight
80
+ value={1250}
81
+ title="Total Users"
82
+ subtitle="Last 30 days"
83
+ size="xs"
84
+ />
85
+ </div>
86
+ <div>
87
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Small (sm)</Text>
88
+ <KeyInsight
89
+ value={1250}
90
+ title="Total Users"
91
+ subtitle="Last 30 days"
92
+ size="sm"
93
+ />
94
+ </div>
95
+ <div>
96
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Medium (md) - Default</Text>
97
+ <KeyInsight
98
+ value={1250}
99
+ title="Total Users"
100
+ subtitle="Last 30 days"
101
+ size="md"
102
+ />
103
+ </div>
104
+ <div>
105
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Large (lg)</Text>
106
+ <KeyInsight
107
+ value={1250}
108
+ title="Total Users"
109
+ subtitle="Last 30 days"
110
+ size="lg"
111
+ />
112
+ </div>
113
+ <div>
114
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Extra Large (jumbo)</Text>
115
+ <KeyInsight
116
+ value={1250}
117
+ title="Total Users"
118
+ subtitle="Last 30 days"
119
+ size="jumbo"
120
+ />
121
+ </div>
122
+ <div>
123
+ <Text size="sm" c="dimmed" mb="xs" ta="center">Super Jumbo (super-jumbo)</Text>
124
+ <KeyInsight
125
+ value={1250}
126
+ title="Total Users"
127
+ subtitle="Last 30 days"
128
+ size="super-jumbo"
129
+ />
130
+ </div>
131
+ </Stack>
132
+ </Stack>
133
+ ),
134
+ parameters: {
135
+ docs: {
136
+ description: {
137
+ story: 'Showcase of all available KeyInsight sizes from xs to super-jumbo. Each size adjusts the value text, title text, subtitle text, and padding proportionally.',
138
+ },
139
+ },
140
+ },
141
+ };
142
+
143
+ export const SizeComparison: Story = {
144
+ render: () => (
145
+ <SimpleGrid cols={3} spacing="lg" w={800}>
146
+ <KeyInsight
147
+ value="$24.5K"
148
+ title="Revenue"
149
+ subtitle="This month"
150
+ size="sm"
151
+ />
152
+ <KeyInsight
153
+ value={1847}
154
+ title="Orders"
155
+ subtitle="Last 30 days"
156
+ size="md"
157
+ />
158
+ <KeyInsight
159
+ value="12.5%"
160
+ title="Growth"
161
+ subtitle="vs last month"
162
+ size="lg"
163
+ />
164
+ </SimpleGrid>
165
+ ),
166
+ parameters: {
167
+ docs: {
168
+ description: {
169
+ story: 'Side-by-side comparison of different KeyInsight sizes in a grid layout.',
170
+ },
171
+ },
172
+ },
173
+ };
174
+
175
+ // ========================== DASHBOARD EXAMPLES ==========================
176
+
177
+ export const DashboardExample: Story = {
178
+ render: () => (
179
+ <SimpleGrid cols={4} spacing="md" w={800}>
180
+ <KeyInsight
181
+ value={1250}
182
+ title="Total Users"
183
+ size="md"
184
+ showBorder={true}
185
+ />
186
+ <KeyInsight
187
+ value={987}
188
+ title="Active Users"
189
+ subtitle="Last 7 days"
190
+ size="md"
191
+ showBorder={true}
192
+ />
193
+ <KeyInsight
194
+ value={263}
195
+ title="New Users"
196
+ subtitle="This month"
197
+ size="md"
198
+ showBorder={true}
199
+ />
200
+ <KeyInsight
201
+ value="95%"
202
+ title="Success Rate"
203
+ size="md"
204
+ showBorder={false}
205
+ />
206
+ </SimpleGrid>
207
+ ),
208
+ parameters: {
209
+ docs: {
210
+ description: {
211
+ story: 'Example of KeyInsight components used in a dashboard layout with borders between items.',
212
+ },
213
+ },
214
+ },
215
+ };
216
+
217
+ export const MetricsGrid: Story = {
218
+ render: () => (
219
+ <div style={{ width: 600 }}>
220
+ <Title order={2} mb="lg">Analytics Overview</Title>
221
+ <SimpleGrid cols={3} spacing="lg">
222
+ <KeyInsight
223
+ value="$24,500"
224
+ title="Revenue"
225
+ subtitle="This month"
226
+ size="lg"
227
+ />
228
+ <KeyInsight
229
+ value={1847}
230
+ title="Orders"
231
+ subtitle="Last 30 days"
232
+ size="lg"
233
+ />
234
+ <KeyInsight
235
+ value="12.5%"
236
+ title="Growth"
237
+ subtitle="vs last month"
238
+ size="lg"
239
+ />
240
+ <KeyInsight
241
+ value={456}
242
+ title="New Customers"
243
+ size="lg"
244
+ />
245
+ <KeyInsight
246
+ value="4.2"
247
+ title="Avg Rating"
248
+ subtitle="Customer satisfaction"
249
+ size="lg"
250
+ />
251
+ <KeyInsight
252
+ value={89}
253
+ title="Support Tickets"
254
+ subtitle="Open"
255
+ size="lg"
256
+ />
257
+ </SimpleGrid>
258
+ </div>
259
+ ),
260
+ parameters: {
261
+ docs: {
262
+ description: {
263
+ story: 'Example of KeyInsight components in a comprehensive metrics grid layout using large size.',
264
+ },
265
+ },
266
+ },
267
+ };
268
+
269
+ export const HorizontalLayout: Story = {
270
+ render: () => (
271
+ <div style={{ width: 800 }}>
272
+ <Title order={3} mb="md">Key Performance Indicators</Title>
273
+ <Inline justify="space-between">
274
+ <KeyInsight
275
+ value={1250}
276
+ title="Total Users"
277
+ size="md"
278
+ showBorder={true}
279
+ />
280
+ <KeyInsight
281
+ value={987}
282
+ title="Active Users"
283
+ size="md"
284
+ showBorder={true}
285
+ />
286
+ <KeyInsight
287
+ value={263}
288
+ title="New Users"
289
+ size="md"
290
+ showBorder={true}
291
+ />
292
+ <KeyInsight
293
+ value="95%"
294
+ title="Success Rate"
295
+ size="md"
296
+ showBorder={false}
297
+ />
298
+ </Inline>
299
+ </div>
300
+ ),
301
+ parameters: {
302
+ docs: {
303
+ description: {
304
+ story: 'Example of KeyInsight components in a horizontal layout with separating borders.',
305
+ },
306
+ },
307
+ },
308
+ };
309
+
310
+ export const HeroMetrics: Story = {
311
+ render: () => (
312
+ <Stack gap="xl" align="center">
313
+ <Title order={1} ta="center">Company Performance</Title>
314
+ <SimpleGrid cols={2} spacing="xl" w={800}>
315
+ <KeyInsight
316
+ value="$2.4M"
317
+ title="Annual Revenue"
318
+ subtitle="2024 Performance"
319
+ size="super-jumbo"
320
+ />
321
+ <KeyInsight
322
+ value="150K"
323
+ title="Active Users"
324
+ subtitle="Monthly Active"
325
+ size="super-jumbo"
326
+ />
327
+ </SimpleGrid>
328
+ </Stack>
329
+ ),
330
+ parameters: {
331
+ docs: {
332
+ description: {
333
+ story: 'Example of KeyInsight components used as hero metrics with super-jumbo size for maximum impact.',
334
+ },
335
+ },
336
+ },
337
+ };
338
+
339
+ export const WithTrendIndicator: Story = {
340
+ render: () => (
341
+ <Inline gap="lg">
342
+ <KeyInsight
343
+ value="42%"
344
+ title="Conversion Rate"
345
+ size="lg"
346
+ rightSection={<span style={{ color: 'var(--ad-color-status-success)', fontSize: 20 }}>↑</span>}
347
+ />
348
+ <KeyInsight
349
+ value="12%"
350
+ title="Churn Rate"
351
+ size="lg"
352
+ rightSection={<span style={{ color: 'var(--ad-color-status-error)', fontSize: 20 }}>↓</span>}
353
+ />
354
+ <KeyInsight
355
+ value="2.4M"
356
+ title="Annual Revenue"
357
+ size="lg"
358
+ leftSection={<span style={{ fontSize: 20 }}>$</span>}
359
+ />
360
+ </Inline>
361
+ ),
362
+ parameters: {
363
+ docs: {
364
+ description: {
365
+ story: 'leftSection/rightSection render arbitrary content inline with the value — a trend arrow, unit symbol, or any other adornment the designer assigns in Figma.',
366
+ },
367
+ },
368
+ },
369
+ };
370
+
371
+ export const Interactive: Story = {
372
+ args: {
373
+ value: 1250,
374
+ title: 'Total Users',
375
+ subtitle: 'Last 30 days',
376
+ showBorder: false,
377
+ size: 'md',
378
+ },
379
+ parameters: {
380
+ docs: {
381
+ description: {
382
+ story: 'Use the controls below to interact with the KeyInsight component and see different combinations of props including the new size options.',
383
+ },
384
+ },
385
+ },
386
+ };