@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,112 @@
1
+ import type { Meta, StoryObj } from '@storybook/nextjs-vite';
2
+ import { Stack } from '@mantine/core';
3
+ import { Title } from '@appdirect/design-system';
4
+
5
+ const meta: Meta<typeof Title> = {
6
+ title: 'Design System/Typography/Title',
7
+ component: Title,
8
+ parameters: {
9
+ layout: 'centered',
10
+ docs: {
11
+ description: {
12
+ component: 'Title component with t-shirt sizing, heading levels, and ability to override with custom font sizes.',
13
+ },
14
+ },
15
+ },
16
+ tags: ['autodocs', 'needs-connect'],
17
+ argTypes: {
18
+ size: {
19
+ control: 'select',
20
+ options: ['xs', 'sm', 'md', 'lg', 'xl'],
21
+ description: 'T-shirt size for the title',
22
+ },
23
+ order: {
24
+ control: 'select',
25
+ options: [1, 2, 3, 4, 5, 6],
26
+ description: 'HTML heading level (h1-h6)',
27
+ },
28
+ children: {
29
+ control: 'text',
30
+ description: 'Title content',
31
+ },
32
+ fw: {
33
+ control: 'select',
34
+ options: [400, 500, 600, 700],
35
+ description: 'Font weight',
36
+ },
37
+ c: {
38
+ control: 'text',
39
+ description: 'Title color',
40
+ },
41
+ },
42
+ };
43
+
44
+ export default meta;
45
+ type Story = StoryObj<typeof meta>;
46
+
47
+ export const Default: Story = {
48
+ args: {
49
+ children: 'This is a default title',
50
+ order: 2,
51
+ },
52
+ };
53
+
54
+ export const Sizes: Story = {
55
+ render: () => (
56
+ <Stack gap="md">
57
+ <Title order={1}>Heading 1 (order=1)</Title>
58
+ <Title order={2}>Heading 2 (order=2)</Title>
59
+ <Title order={3}>Heading 3 (order=3)</Title>
60
+ <Title order={4}>Heading 4 (order=4)</Title>
61
+ <Title order={5}>Heading 5 (order=5)</Title>
62
+ <Title order={6}>Heading 6 (order=6)</Title>
63
+ </Stack>
64
+ ),
65
+ };
66
+
67
+ export const FontWeights: Story = {
68
+ render: () => (
69
+ <Stack gap="md">
70
+ <Title order={2} fw={400}>Normal weight (400)</Title>
71
+ <Title order={2} fw={500}>Medium weight (500)</Title>
72
+ <Title order={2} fw={600}>Semibold weight (600)</Title>
73
+ <Title order={2} fw={700}>Bold weight (700)</Title>
74
+ </Stack>
75
+ ),
76
+ };
77
+
78
+ export const Colors: Story = {
79
+ render: () => (
80
+ <Stack gap="md">
81
+ <Title order={2} c="blue">Blue title</Title>
82
+ <Title order={2} c="red">Red title</Title>
83
+ <Title order={2} c="green">Green title</Title>
84
+ <Title order={2} c="dimmed">Dimmed title</Title>
85
+ </Stack>
86
+ ),
87
+ };
88
+
89
+ export const Alignment: Story = {
90
+ render: () => (
91
+ <Stack gap="md">
92
+ <Title order={2} ta="left">Left aligned title</Title>
93
+ <Title order={2} ta="center">Center aligned title</Title>
94
+ <Title order={2} ta="right">Right aligned title</Title>
95
+ </Stack>
96
+ ),
97
+ };
98
+
99
+ export const CustomSize: Story = {
100
+ args: {
101
+ children: 'Custom font size using fz prop',
102
+ fz: '32px',
103
+ order: 1,
104
+ },
105
+ parameters: {
106
+ docs: {
107
+ description: {
108
+ story: 'You can override the t-shirt size with a custom font size using the `fz` prop.',
109
+ },
110
+ },
111
+ },
112
+ };