@appdirect/design-system 0.0.10 → 0.0.11

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 (64) hide show
  1. package/README.md +2 -0
  2. package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
  3. package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
  4. package/dist/contracts/PageContentHeader.json +10 -5
  5. package/dist/contracts/index.json +1 -1
  6. package/dist/index.ts +3 -4
  7. package/dist/stories/Buttons/ActionIcon.stories.tsx +159 -0
  8. package/dist/stories/Buttons/Button.stories.tsx +145 -0
  9. package/dist/stories/Buttons/CloseButton.stories.tsx +121 -0
  10. package/dist/stories/Combobox/AutocompleteClearable.stories.tsx +554 -0
  11. package/dist/stories/Combobox/Combobox.stories.tsx +106 -0
  12. package/dist/stories/Combobox/Multiselect.stories.tsx +664 -0
  13. package/dist/stories/Combobox/SearchableSelect.stories.tsx +640 -0
  14. package/dist/stories/Combobox/Select.stories.tsx +311 -0
  15. package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +822 -0
  16. package/dist/stories/ComplexComponents/DataTable/DataTable.stories.tsx +502 -0
  17. package/dist/stories/ComplexComponents/KeyInsight/KeyInsights.stories.tsx +386 -0
  18. package/dist/stories/ComplexComponents/NameValue/NameValue.stories.tsx +405 -0
  19. package/dist/stories/ComplexComponents/PageContentHeader/PageContentHeader.stories.tsx +527 -0
  20. package/dist/stories/ComplexComponents/Placeholder/Placeholder.stories.tsx +76 -0
  21. package/dist/stories/ComplexComponents/Slat/Slat.stories.tsx +79 -0
  22. package/dist/stories/ComplexComponents/Utilities/CopyButton.stories.tsx +479 -0
  23. package/dist/stories/DataDisplay/Alert.stories.tsx +296 -0
  24. package/dist/stories/DataDisplay/Avatar.stories.tsx +251 -0
  25. package/dist/stories/DataDisplay/Badge.stories.tsx +176 -0
  26. package/dist/stories/DataDisplay/Card.stories.tsx +406 -0
  27. package/dist/stories/DataDisplay/Chip.stories.tsx +495 -0
  28. package/dist/stories/DataDisplay/Indicator.stories.tsx +571 -0
  29. package/dist/stories/DataDisplay/List.stories.tsx +376 -0
  30. package/dist/stories/DataDisplay/Pill.stories.tsx +506 -0
  31. package/dist/stories/DataDisplay/Progress.stories.tsx +352 -0
  32. package/dist/stories/DataDisplay/Table.stories.tsx +346 -0
  33. package/dist/stories/DataDisplay/ThemeIcon.stories.tsx +125 -0
  34. package/dist/stories/Inputs/Checkbox.stories.tsx +263 -0
  35. package/dist/stories/Inputs/ColorInput.stories.tsx +434 -0
  36. package/dist/stories/Inputs/DropZone.stories.tsx +401 -0
  37. package/dist/stories/Inputs/FileInput.stories.tsx +383 -0
  38. package/dist/stories/Inputs/NumberInput.stories.tsx +342 -0
  39. package/dist/stories/Inputs/Radio.stories.tsx +437 -0
  40. package/dist/stories/Inputs/RadioGroup.stories.tsx +526 -0
  41. package/dist/stories/Inputs/SegmentedControl.stories.tsx +60 -0
  42. package/dist/stories/Inputs/Slider.stories.tsx +22 -0
  43. package/dist/stories/Inputs/SliderWithLabel.stories.tsx +37 -0
  44. package/dist/stories/Inputs/Switch.stories.tsx +361 -0
  45. package/dist/stories/Inputs/TextArea.stories.tsx +355 -0
  46. package/dist/stories/Inputs/TextInput.stories.tsx +266 -0
  47. package/dist/stories/Misc/Divider.stories.tsx +581 -0
  48. package/dist/stories/Misc/Paper.stories.tsx +557 -0
  49. package/dist/stories/Navigation/Breadcrumb.stories.tsx +489 -0
  50. package/dist/stories/Navigation/NavLink.stories.tsx +601 -0
  51. package/dist/stories/Navigation/Stepper.stories.tsx +413 -0
  52. package/dist/stories/Navigation/Tabs.stories.tsx +528 -0
  53. package/dist/stories/Overlays/Drawer.stories.tsx +802 -0
  54. package/dist/stories/Overlays/Menu.stories.tsx +941 -0
  55. package/dist/stories/Overlays/Modal.stories.tsx +249 -0
  56. package/dist/stories/Overlays/Popover.stories.tsx +780 -0
  57. package/dist/stories/Overlays/Tooltip.stories.tsx +52 -0
  58. package/dist/stories/Typography/Code.stories.tsx +368 -0
  59. package/dist/stories/Typography/Kbd.stories.tsx +514 -0
  60. package/dist/stories/Typography/Text.stories.tsx +117 -0
  61. package/dist/stories/Typography/Title.stories.tsx +112 -0
  62. package/dist/stories/index.json +1435 -0
  63. package/package.json +5 -3
  64. package/dist/ComplexComponents/PageContentHeader/DescriptionBlock.tsx +0 -65
@@ -0,0 +1,581 @@
1
+ import type { Meta, StoryObj } from '@storybook/nextjs-vite';
2
+ import { Stack, Box } from '@mantine/core';
3
+ import { Inline, Divider, Title, Text, Button } from '@appdirect/design-system';
4
+
5
+ const meta: Meta<typeof Divider> = {
6
+ title: 'Design System/Misc/Divider',
7
+ component: Divider,
8
+ parameters: {
9
+ layout: 'centered',
10
+ docs: {
11
+ description: {
12
+ component: 'Divider component for visually separating content with consistent styling and flexible orientations.',
13
+ },
14
+ },
15
+ },
16
+ tags: ['autodocs', 'code-connected'],
17
+ argTypes: {
18
+ orientation: {
19
+ control: 'select',
20
+ options: ['horizontal', 'vertical'],
21
+ description: 'Orientation of the divider',
22
+ },
23
+ size: {
24
+ control: 'select',
25
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
26
+ description: 'Thickness of the divider',
27
+ },
28
+ label: {
29
+ control: 'text',
30
+ description: 'Optional label text',
31
+ },
32
+ labelPosition: {
33
+ control: 'select',
34
+ options: ['left', 'center', 'right'],
35
+ description: 'Position of the label',
36
+ },
37
+ },
38
+ };
39
+
40
+ export default meta;
41
+ type Story = StoryObj<typeof meta>;
42
+
43
+ export const Default: Story = {
44
+ render: () => (
45
+ <Stack gap="md" w={400}>
46
+ <Text>Content above the divider</Text>
47
+ <Divider />
48
+ <Text>Content below the divider</Text>
49
+ </Stack>
50
+ ),
51
+ };
52
+
53
+ export const Sizes: Story = {
54
+ render: () => (
55
+ <Stack gap="lg" w={400}>
56
+ <div>
57
+ <Text size="sm" fw={500} mb="sm">Extra Small (xs):</Text>
58
+ <Text>Content above</Text>
59
+ <Divider size="xs" />
60
+ <Text>Content below</Text>
61
+ </div>
62
+
63
+ <div>
64
+ <Text size="sm" fw={500} mb="sm">Small (sm):</Text>
65
+ <Text>Content above</Text>
66
+ <Divider size="sm" />
67
+ <Text>Content below</Text>
68
+ </div>
69
+
70
+ <div>
71
+ <Text size="sm" fw={500} mb="sm">Medium (md):</Text>
72
+ <Text>Content above</Text>
73
+ <Divider size="md" />
74
+ <Text>Content below</Text>
75
+ </div>
76
+
77
+ <div>
78
+ <Text size="sm" fw={500} mb="sm">Large (lg):</Text>
79
+ <Text>Content above</Text>
80
+ <Divider size="lg" />
81
+ <Text>Content below</Text>
82
+ </div>
83
+
84
+ <div>
85
+ <Text size="sm" fw={500} mb="sm">Extra Large (xl):</Text>
86
+ <Text>Content above</Text>
87
+ <Divider size="xl" />
88
+ <Text>Content below</Text>
89
+ </div>
90
+ </Stack>
91
+ ),
92
+ parameters: {
93
+ docs: {
94
+ description: {
95
+ story: 'Different thickness sizes for the Divider component.',
96
+ },
97
+ },
98
+ },
99
+ };
100
+
101
+ export const WithLabels: Story = {
102
+ render: () => (
103
+ <Stack gap="lg" w={500}>
104
+ <div>
105
+ <Text>Section 1 content</Text>
106
+ <Divider label="Section 2" />
107
+ <Text>Section 2 content</Text>
108
+ </div>
109
+
110
+ <div>
111
+ <Text>Left aligned label:</Text>
112
+ <Divider label="Left Label" labelPosition="left" />
113
+ <Text>Content after left label</Text>
114
+ </div>
115
+
116
+ <div>
117
+ <Text>Center aligned label:</Text>
118
+ <Divider label="Center Label" labelPosition="center" />
119
+ <Text>Content after center label</Text>
120
+ </div>
121
+
122
+ <div>
123
+ <Text>Right aligned label:</Text>
124
+ <Divider label="Right Label" labelPosition="right" />
125
+ <Text>Content after right label</Text>
126
+ </div>
127
+ </Stack>
128
+ ),
129
+ parameters: {
130
+ docs: {
131
+ description: {
132
+ story: 'Dividers with labels in different positions.',
133
+ },
134
+ },
135
+ },
136
+ };
137
+
138
+ export const VerticalDividers: Story = {
139
+ render: () => (
140
+ <Stack gap="lg">
141
+ <div>
142
+ <Text size="sm" fw={500} mb="sm">Vertical dividers in horizontal layout:</Text>
143
+ <Inline gap="md" align="center" style={{ height: 60 }}>
144
+ <Text>Item 1</Text>
145
+ <Divider orientation="vertical" />
146
+ <Text>Item 2</Text>
147
+ <Divider orientation="vertical" />
148
+ <Text>Item 3</Text>
149
+ <Divider orientation="vertical" />
150
+ <Text>Item 4</Text>
151
+ </Inline>
152
+ </div>
153
+
154
+ <div>
155
+ <Text size="sm" fw={500} mb="sm">Different vertical sizes:</Text>
156
+ <Inline gap="lg" align="center" style={{ height: 80 }}>
157
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
158
+ <Text size="sm">Small</Text>
159
+ <Divider orientation="vertical" size="sm" />
160
+ <Text size="sm">Text</Text>
161
+ </div>
162
+
163
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
164
+ <Text size="sm">Medium</Text>
165
+ <Divider orientation="vertical" size="md" />
166
+ <Text size="sm">Text</Text>
167
+ </div>
168
+
169
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
170
+ <Text size="sm">Large</Text>
171
+ <Divider orientation="vertical" size="lg" />
172
+ <Text size="sm">Text</Text>
173
+ </div>
174
+
175
+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
176
+ <Text size="sm">XL</Text>
177
+ <Divider orientation="vertical" size="xl" />
178
+ <Text size="sm">Text</Text>
179
+ </div>
180
+ </Inline>
181
+ </div>
182
+ </Stack>
183
+ ),
184
+ parameters: {
185
+ docs: {
186
+ description: {
187
+ story: 'Vertical dividers for separating inline content.',
188
+ },
189
+ },
190
+ },
191
+ };
192
+
193
+ export const InCards: Story = {
194
+ render: () => (
195
+ <Stack gap="lg" w={500}>
196
+ <Box
197
+ style={{
198
+ border: '1px solid var(--mantine-color-gray-3)',
199
+ borderRadius: '8px',
200
+ padding: '16px',
201
+ backgroundColor: 'white'
202
+ }}
203
+ >
204
+ <Title order={4} size="sm" fw={500} mb="sm">Card Title</Title>
205
+ <Text size="sm" mb="md">This is some card content that appears above the divider.</Text>
206
+
207
+ <Divider />
208
+
209
+ <Text size="sm" mt="md" mb="md">This content appears below the divider within the same card.</Text>
210
+
211
+ <Divider label="Actions" />
212
+
213
+ <Inline gap="sm" mt="md">
214
+ <Button variant="primary" size="sm">Primary</Button>
215
+ <Button variant="outline" size="sm">Secondary</Button>
216
+ </Inline>
217
+ </Box>
218
+
219
+ <Box
220
+ style={{
221
+ border: '1px solid var(--mantine-color-gray-3)',
222
+ borderRadius: '8px',
223
+ padding: '16px',
224
+ backgroundColor: 'white'
225
+ }}
226
+ >
227
+ <Inline gap="md" align="flex-start">
228
+ <div style={{ flex: 1 }}>
229
+ <Title order={4} size="sm" fw={500} mb="xs">Left Section</Title>
230
+ <Text size="sm">Content in the left section of the card.</Text>
231
+ </div>
232
+
233
+ <Divider orientation="vertical" style={{ height: '60px' }} />
234
+
235
+ <div style={{ flex: 1 }}>
236
+ <Title order={4} size="sm" fw={500} mb="xs">Right Section</Title>
237
+ <Text size="sm">Content in the right section of the card.</Text>
238
+ </div>
239
+ </Inline>
240
+ </Box>
241
+ </Stack>
242
+ ),
243
+ parameters: {
244
+ docs: {
245
+ description: {
246
+ story: 'Dividers used within card components to separate sections.',
247
+ },
248
+ },
249
+ },
250
+ };
251
+
252
+ export const InLists: Story = {
253
+ render: () => (
254
+ <Stack gap="lg" w={400}>
255
+ <div>
256
+ <Text size="sm" fw={500} mb="sm">Simple List with Dividers:</Text>
257
+ <Stack gap="xs">
258
+ <Text size="sm">First item in the list</Text>
259
+ <Divider size="sm" />
260
+ <Text size="sm">Second item in the list</Text>
261
+ <Divider size="sm" />
262
+ <Text size="sm">Third item in the list</Text>
263
+ <Divider size="sm" />
264
+ <Text size="sm">Fourth item in the list</Text>
265
+ </Stack>
266
+ </div>
267
+
268
+ <div>
269
+ <Text size="sm" fw={500} mb="sm">Grouped List Items:</Text>
270
+ <Stack gap="sm">
271
+ <div>
272
+ <Text size="sm" fw={500}>Group 1</Text>
273
+ <Text size="xs" c="dimmed">Item 1.1</Text>
274
+ <Text size="xs" c="dimmed">Item 1.2</Text>
275
+ </div>
276
+
277
+ <Divider label="Group 2" labelPosition="left" />
278
+
279
+ <div>
280
+ <Text size="xs" c="dimmed">Item 2.1</Text>
281
+ <Text size="xs" c="dimmed">Item 2.2</Text>
282
+ <Text size="xs" c="dimmed">Item 2.3</Text>
283
+ </div>
284
+
285
+ <Divider label="Group 3" labelPosition="left" />
286
+
287
+ <div>
288
+ <Text size="xs" c="dimmed">Item 3.1</Text>
289
+ <Text size="xs" c="dimmed">Item 3.2</Text>
290
+ </div>
291
+ </Stack>
292
+ </div>
293
+ </Stack>
294
+ ),
295
+ parameters: {
296
+ docs: {
297
+ description: {
298
+ story: 'Dividers used to separate items in lists and group related content.',
299
+ },
300
+ },
301
+ },
302
+ };
303
+
304
+ export const InForms: Story = {
305
+ render: () => (
306
+ <Stack gap="lg" w={500}>
307
+ <Box
308
+ style={{
309
+ border: '1px solid var(--mantine-color-gray-3)',
310
+ borderRadius: '8px',
311
+ padding: '20px',
312
+ backgroundColor: 'white'
313
+ }}
314
+ >
315
+ <Title order={3} size="md" fw={500} mb="lg">User Registration</Title>
316
+
317
+ <Stack gap="md">
318
+ <div>
319
+ <Text size="sm" fw={500} mb="xs">First Name</Text>
320
+ <input
321
+ type="text"
322
+ placeholder="Enter first name..."
323
+ style={{
324
+ width: '100%',
325
+ padding: '8px 12px',
326
+ border: '1px solid var(--mantine-color-gray-3)',
327
+ borderRadius: '4px'
328
+ }}
329
+ />
330
+ </div>
331
+
332
+ <div>
333
+ <Text size="sm" fw={500} mb="xs">Last Name</Text>
334
+ <input
335
+ type="text"
336
+ placeholder="Enter last name..."
337
+ style={{
338
+ width: '100%',
339
+ padding: '8px 12px',
340
+ border: '1px solid var(--mantine-color-gray-3)',
341
+ borderRadius: '4px'
342
+ }}
343
+ />
344
+ </div>
345
+ </Stack>
346
+
347
+ <Divider label="Contact Information" my="lg" />
348
+
349
+ <Stack gap="md">
350
+ <div>
351
+ <Text size="sm" fw={500} mb="xs">Email</Text>
352
+ <input
353
+ type="email"
354
+ placeholder="Enter email address..."
355
+ style={{
356
+ width: '100%',
357
+ padding: '8px 12px',
358
+ border: '1px solid var(--mantine-color-gray-3)',
359
+ borderRadius: '4px'
360
+ }}
361
+ />
362
+ </div>
363
+
364
+ <div>
365
+ <Text size="sm" fw={500} mb="xs">Phone</Text>
366
+ <input
367
+ type="tel"
368
+ placeholder="Enter phone number..."
369
+ style={{
370
+ width: '100%',
371
+ padding: '8px 12px',
372
+ border: '1px solid var(--mantine-color-gray-3)',
373
+ borderRadius: '4px'
374
+ }}
375
+ />
376
+ </div>
377
+ </Stack>
378
+
379
+ <Divider label="Account Settings" my="lg" />
380
+
381
+ <Stack gap="md">
382
+ <div>
383
+ <Text size="sm" fw={500} mb="xs">Password</Text>
384
+ <input
385
+ type="password"
386
+ placeholder="Enter password..."
387
+ style={{
388
+ width: '100%',
389
+ padding: '8px 12px',
390
+ border: '1px solid var(--mantine-color-gray-3)',
391
+ borderRadius: '4px'
392
+ }}
393
+ />
394
+ </div>
395
+
396
+ <div>
397
+ <Text size="sm" fw={500} mb="xs">Confirm Password</Text>
398
+ <input
399
+ type="password"
400
+ placeholder="Confirm password..."
401
+ style={{
402
+ width: '100%',
403
+ padding: '8px 12px',
404
+ border: '1px solid var(--mantine-color-gray-3)',
405
+ borderRadius: '4px'
406
+ }}
407
+ />
408
+ </div>
409
+ </Stack>
410
+
411
+ <Divider my="lg" />
412
+
413
+ <Inline gap="sm" justify="flex-end">
414
+ <Button variant="outline">Cancel</Button>
415
+ <Button variant="primary">Create Account</Button>
416
+ </Inline>
417
+ </Box>
418
+ </Stack>
419
+ ),
420
+ parameters: {
421
+ docs: {
422
+ description: {
423
+ story: 'Dividers used in forms to separate different sections and group related fields.',
424
+ },
425
+ },
426
+ },
427
+ };
428
+
429
+ export const UseCases: Story = {
430
+ render: () => (
431
+ <Stack gap="xl" w={600}>
432
+ <Title order={3} size="md" fw={500} mb="xs">Common Use Cases</Title>
433
+
434
+ <div>
435
+ <Text size="sm" fw={500} mb="sm">1. Content Sections:</Text>
436
+ <Box
437
+ style={{
438
+ border: '1px solid var(--mantine-color-gray-3)',
439
+ borderRadius: '8px',
440
+ padding: '16px',
441
+ backgroundColor: 'white'
442
+ }}
443
+ >
444
+ <Text>Introduction paragraph with important information.</Text>
445
+ <Divider my="md" />
446
+ <Text>Main content section with detailed information.</Text>
447
+ <Divider label="Summary" my="md" />
448
+ <Text>Summary section with key takeaways.</Text>
449
+ </Box>
450
+ </div>
451
+
452
+ <div>
453
+ <Text size="sm" fw={500} mb="sm">2. Navigation Breadcrumbs:</Text>
454
+ <Inline gap="xs" align="center">
455
+ <Text size="sm" style={{ cursor: 'pointer', color: 'var(--mantine-color-blue-6)' }}>Home</Text>
456
+ <Divider orientation="vertical" size="sm" />
457
+ <Text size="sm" style={{ cursor: 'pointer', color: 'var(--mantine-color-blue-6)' }}>Products</Text>
458
+ <Divider orientation="vertical" size="sm" />
459
+ <Text size="sm" style={{ cursor: 'pointer', color: 'var(--mantine-color-blue-6)' }}>Electronics</Text>
460
+ <Divider orientation="vertical" size="sm" />
461
+ <Text size="sm" c="dimmed">Laptop</Text>
462
+ </Inline>
463
+ </div>
464
+
465
+ <div>
466
+ <Text size="sm" fw={500} mb="sm">3. Toolbar Separators:</Text>
467
+ <Inline gap="sm" align="center" style={{
468
+ padding: '8px 12px',
469
+ border: '1px solid var(--mantine-color-gray-3)',
470
+ borderRadius: '6px',
471
+ backgroundColor: 'var(--mantine-color-gray-0)'
472
+ }}>
473
+ <Button variant="outline" size="xs">Bold</Button>
474
+ <Button variant="outline" size="xs">Italic</Button>
475
+ <Button variant="outline" size="xs">Underline</Button>
476
+
477
+ <Divider orientation="vertical" />
478
+
479
+ <Button variant="outline" size="xs">Left</Button>
480
+ <Button variant="outline" size="xs">Center</Button>
481
+ <Button variant="outline" size="xs">Right</Button>
482
+
483
+ <Divider orientation="vertical" />
484
+
485
+ <Button variant="outline" size="xs">Link</Button>
486
+ <Button variant="outline" size="xs">Image</Button>
487
+ </Inline>
488
+ </div>
489
+
490
+ <div>
491
+ <Text size="sm" fw={500} mb="sm">4. Menu Sections:</Text>
492
+ <Box
493
+ style={{
494
+ border: '1px solid var(--mantine-color-gray-3)',
495
+ borderRadius: '8px',
496
+ padding: '8px',
497
+ backgroundColor: 'white',
498
+ width: 200
499
+ }}
500
+ >
501
+ <Stack gap="xs">
502
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>New File</Text>
503
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>Open File</Text>
504
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>Save File</Text>
505
+
506
+ <Divider size="sm" />
507
+
508
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>Cut</Text>
509
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>Copy</Text>
510
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer' }}>Paste</Text>
511
+
512
+ <Divider size="sm" />
513
+
514
+ <Text size="sm" style={{ padding: '4px 8px', cursor: 'pointer', color: 'var(--mantine-color-red-6)' }}>Delete</Text>
515
+ </Stack>
516
+ </Box>
517
+ </div>
518
+
519
+ <div>
520
+ <Text size="sm" fw={500} mb="sm">5. Statistics Dashboard:</Text>
521
+ <Inline gap="lg" align="center">
522
+ <div style={{ textAlign: 'center' }}>
523
+ <Text size="xl" fw={700} c="blue">1,234</Text>
524
+ <Text size="xs" c="dimmed">Users</Text>
525
+ </div>
526
+
527
+ <Divider orientation="vertical" style={{ height: '40px' }} />
528
+
529
+ <div style={{ textAlign: 'center' }}>
530
+ <Text size="xl" fw={700} c="green">5,678</Text>
531
+ <Text size="xs" c="dimmed">Orders</Text>
532
+ </div>
533
+
534
+ <Divider orientation="vertical" style={{ height: '40px' }} />
535
+
536
+ <div style={{ textAlign: 'center' }}>
537
+ <Text size="xl" fw={700} c="orange">$12,345</Text>
538
+ <Text size="xs" c="dimmed">Revenue</Text>
539
+ </div>
540
+
541
+ <Divider orientation="vertical" style={{ height: '40px' }} />
542
+
543
+ <div style={{ textAlign: 'center' }}>
544
+ <Text size="xl" fw={700} c="red">23</Text>
545
+ <Text size="xs" c="dimmed">Issues</Text>
546
+ </div>
547
+ </Inline>
548
+ </div>
549
+ </Stack>
550
+ ),
551
+ parameters: {
552
+ docs: {
553
+ description: {
554
+ story: 'Real-world examples of Divider usage in different application contexts.',
555
+ },
556
+ },
557
+ },
558
+ };
559
+
560
+ export const Interactive: Story = {
561
+ args: {
562
+ orientation: 'horizontal',
563
+ size: 'sm',
564
+ label: 'Interactive Divider',
565
+ labelPosition: 'center',
566
+ },
567
+ render: (args) => (
568
+ <Stack gap="md" w={400}>
569
+ <Text>Content above the divider</Text>
570
+ <Divider {...args} />
571
+ <Text>Content below the divider</Text>
572
+ </Stack>
573
+ ),
574
+ parameters: {
575
+ docs: {
576
+ description: {
577
+ story: 'Use the controls below to interact with the Divider and see different combinations.',
578
+ },
579
+ },
580
+ },
581
+ };