@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.
- package/README.md +85 -5
- package/dist/Buttons/ActionIcon.js +14 -0
- package/dist/Buttons/Button.js +66 -0
- package/dist/Buttons/CloseButton.js +48 -0
- package/dist/Buttons/index.js +13 -0
- package/dist/Combobox/AutocompleteClearable.js +36 -0
- package/dist/Combobox/Combobox.js +28 -0
- package/dist/Combobox/Multiselect.js +31 -0
- package/dist/Combobox/SearchableSelect.js +43 -0
- package/dist/Combobox/Select.js +72 -0
- package/dist/Combobox/index.js +10 -0
- package/dist/ComplexComponents/DashboardWidget/DashboardWidget.js +96 -0
- package/dist/ComplexComponents/DashboardWidget/index.js +1 -0
- package/dist/ComplexComponents/DataTable/CustomBottomToolbar/index.js +82 -0
- package/dist/ComplexComponents/DataTable/CustomBottomToolbar/utils.js +23 -0
- package/dist/ComplexComponents/DataTable/CustomToolbarAlertBannerContent/index.js +23 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/DateRangeSelectorFilter/index.js +230 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterChip.js +30 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/DateRangeFilter.js +12 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/FilterRenderer.js +32 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/FilterSystem.js +90 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/MultiSelectFilter.js +43 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/SingleSelectFilter.js +30 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/index.js +39 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/FilterSystem/types.js +9 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/ResultCount/index.js +31 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/SearchFilter.js +42 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/SelectFilter.js +21 -0
- package/dist/ComplexComponents/DataTable/CustomTopToolbar/index.js +410 -0
- package/dist/ComplexComponents/DataTable/DataTable.js +405 -0
- package/dist/ComplexComponents/DataTable/ErrorOverlay/index.js +9 -0
- package/dist/ComplexComponents/DataTable/SortableHeaderCell/index.js +27 -0
- package/dist/ComplexComponents/DataTable/index.js +1 -0
- package/dist/ComplexComponents/DataTable/translations/en.js +99 -0
- package/dist/ComplexComponents/DataTable/translations/index.js +17 -0
- package/dist/ComplexComponents/KeyInsight/KeyInsights.js +176 -0
- package/dist/ComplexComponents/KeyInsight/index.js +1 -0
- package/dist/ComplexComponents/NameValue/NameValue.js +94 -0
- package/dist/ComplexComponents/NameValue/NameValueItem.js +59 -0
- package/dist/ComplexComponents/NameValue/index.js +2 -0
- package/dist/ComplexComponents/PageContentHeader/PageContentHeader.js +92 -0
- package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
- package/dist/ComplexComponents/PageContentHeader/index.js +1 -0
- package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
- package/dist/ComplexComponents/Placeholder/Placeholder.js +51 -0
- package/dist/ComplexComponents/Placeholder/index.js +1 -0
- package/dist/ComplexComponents/Slat/Slat.js +53 -0
- package/dist/ComplexComponents/Slat/index.js +1 -0
- package/dist/ComplexComponents/Utilities/CopyButton.js +45 -0
- package/dist/ComplexComponents/Utilities/index.js +1 -0
- package/dist/DataDisplay/Alert.js +77 -0
- package/dist/DataDisplay/Avatar.js +157 -0
- package/dist/DataDisplay/Badge.js +78 -0
- package/dist/DataDisplay/Card.js +100 -0
- package/dist/DataDisplay/Chip.js +36 -0
- package/dist/DataDisplay/Indicator.js +59 -0
- package/dist/DataDisplay/List.js +60 -0
- package/dist/DataDisplay/Pill.js +81 -0
- package/dist/DataDisplay/Progress.js +42 -0
- package/dist/DataDisplay/Table.js +38 -0
- package/dist/DataDisplay/ThemeIcon.js +31 -0
- package/dist/DataDisplay/index.js +18 -0
- package/dist/Inputs/Checkbox.js +62 -0
- package/dist/Inputs/ColorInput.js +48 -0
- package/dist/Inputs/DropZone.js +12 -0
- package/dist/Inputs/FileInput.js +77 -0
- package/dist/Inputs/NumberInput.js +49 -0
- package/dist/Inputs/Radio.js +55 -0
- package/dist/Inputs/RadioGroup.js +59 -0
- package/dist/Inputs/SegmentedControl.js +50 -0
- package/dist/Inputs/Slider.js +50 -0
- package/dist/Inputs/SliderWithLabel.js +32 -0
- package/dist/Inputs/Switch.js +47 -0
- package/dist/Inputs/TextArea.js +50 -0
- package/dist/Inputs/TextInput.js +87 -0
- package/dist/Inputs/index.js +27 -0
- package/dist/Layout/Box.js +39 -0
- package/dist/Layout/Center.js +11 -0
- package/dist/Layout/Container.js +11 -0
- package/dist/Layout/Flex.js +12 -0
- package/dist/Layout/Grid.js +13 -0
- package/dist/Layout/Group.js +14 -0
- package/dist/Layout/Inline.js +46 -0
- package/dist/Layout/SimpleGrid.js +14 -0
- package/dist/Layout/Stack.js +45 -0
- package/dist/Layout/index.js +10 -0
- package/dist/Misc/Divider.js +8 -0
- package/dist/Misc/Paper.js +24 -0
- package/dist/Misc/index.js +10 -0
- package/dist/Navigation/Breadcrumb.js +60 -0
- package/dist/Navigation/NavLink.js +28 -0
- package/dist/Navigation/Stepper.js +8 -0
- package/dist/Navigation/Tabs.js +22 -0
- package/dist/Navigation/index.js +9 -0
- package/dist/Overlays/Drawer.js +63 -0
- package/dist/Overlays/Menu.js +85 -0
- package/dist/Overlays/Modal.js +61 -0
- package/dist/Overlays/Popover.js +118 -0
- package/dist/Overlays/Tooltip.js +71 -0
- package/dist/Overlays/index.js +12 -0
- package/dist/Shell/AppShellLayout.js +13 -0
- package/dist/Shell/HeaderBar.js +8 -0
- package/dist/Shell/SidebarNav.js +9 -0
- package/dist/Shell/SidebarNavLink.js +17 -0
- package/dist/Shell/SingleColumnLayout.js +11 -0
- package/dist/Shell/TertiaryColumnLayout.js +12 -0
- package/dist/Shell/index.js +6 -0
- package/dist/Typography/Code.js +8 -0
- package/dist/Typography/Kbd.js +58 -0
- package/dist/Typography/Text.js +8 -0
- package/dist/Typography/Title.js +11 -0
- package/dist/Typography/index.js +12 -0
- package/dist/config.js +202 -0
- package/dist/contracts/PageContentHeader.json +10 -5
- package/dist/contracts/index.json +1 -1
- package/dist/hooks/useTableHandlers.js +136 -0
- package/dist/hooks/useTableRenderFunctions.js +164 -0
- package/dist/hooks/useTableState.js +70 -0
- package/dist/index.js +162 -0
- package/dist/index.ts +3 -4
- package/dist/stories/Buttons/ActionIcon.stories.tsx +159 -0
- package/dist/stories/Buttons/Button.stories.tsx +145 -0
- package/dist/stories/Buttons/CloseButton.stories.tsx +121 -0
- package/dist/stories/Combobox/AutocompleteClearable.stories.tsx +554 -0
- package/dist/stories/Combobox/Combobox.stories.tsx +106 -0
- package/dist/stories/Combobox/Multiselect.stories.tsx +664 -0
- package/dist/stories/Combobox/SearchableSelect.stories.tsx +640 -0
- package/dist/stories/Combobox/Select.stories.tsx +311 -0
- package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +822 -0
- package/dist/stories/ComplexComponents/DataTable/DataTable.stories.tsx +502 -0
- package/dist/stories/ComplexComponents/KeyInsight/KeyInsights.stories.tsx +386 -0
- package/dist/stories/ComplexComponents/NameValue/NameValue.stories.tsx +405 -0
- package/dist/stories/ComplexComponents/PageContentHeader/PageContentHeader.stories.tsx +527 -0
- package/dist/stories/ComplexComponents/Placeholder/Placeholder.stories.tsx +76 -0
- package/dist/stories/ComplexComponents/Slat/Slat.stories.tsx +79 -0
- package/dist/stories/ComplexComponents/Utilities/CopyButton.stories.tsx +479 -0
- package/dist/stories/DataDisplay/Alert.stories.tsx +296 -0
- package/dist/stories/DataDisplay/Avatar.stories.tsx +251 -0
- package/dist/stories/DataDisplay/Badge.stories.tsx +176 -0
- package/dist/stories/DataDisplay/Card.stories.tsx +406 -0
- package/dist/stories/DataDisplay/Chip.stories.tsx +495 -0
- package/dist/stories/DataDisplay/Indicator.stories.tsx +571 -0
- package/dist/stories/DataDisplay/List.stories.tsx +376 -0
- package/dist/stories/DataDisplay/Pill.stories.tsx +506 -0
- package/dist/stories/DataDisplay/Progress.stories.tsx +352 -0
- package/dist/stories/DataDisplay/Table.stories.tsx +346 -0
- package/dist/stories/DataDisplay/ThemeIcon.stories.tsx +125 -0
- package/dist/stories/Inputs/Checkbox.stories.tsx +263 -0
- package/dist/stories/Inputs/ColorInput.stories.tsx +434 -0
- package/dist/stories/Inputs/DropZone.stories.tsx +401 -0
- package/dist/stories/Inputs/FileInput.stories.tsx +383 -0
- package/dist/stories/Inputs/NumberInput.stories.tsx +342 -0
- package/dist/stories/Inputs/Radio.stories.tsx +437 -0
- package/dist/stories/Inputs/RadioGroup.stories.tsx +526 -0
- package/dist/stories/Inputs/SegmentedControl.stories.tsx +60 -0
- package/dist/stories/Inputs/Slider.stories.tsx +22 -0
- package/dist/stories/Inputs/SliderWithLabel.stories.tsx +37 -0
- package/dist/stories/Inputs/Switch.stories.tsx +361 -0
- package/dist/stories/Inputs/TextArea.stories.tsx +355 -0
- package/dist/stories/Inputs/TextInput.stories.tsx +266 -0
- package/dist/stories/Misc/Divider.stories.tsx +581 -0
- package/dist/stories/Misc/Paper.stories.tsx +557 -0
- package/dist/stories/Navigation/Breadcrumb.stories.tsx +489 -0
- package/dist/stories/Navigation/NavLink.stories.tsx +601 -0
- package/dist/stories/Navigation/Stepper.stories.tsx +413 -0
- package/dist/stories/Navigation/Tabs.stories.tsx +528 -0
- package/dist/stories/Overlays/Drawer.stories.tsx +802 -0
- package/dist/stories/Overlays/Menu.stories.tsx +941 -0
- package/dist/stories/Overlays/Modal.stories.tsx +249 -0
- package/dist/stories/Overlays/Popover.stories.tsx +780 -0
- package/dist/stories/Overlays/Tooltip.stories.tsx +52 -0
- package/dist/stories/Typography/Code.stories.tsx +368 -0
- package/dist/stories/Typography/Kbd.stories.tsx +514 -0
- package/dist/stories/Typography/Text.stories.tsx +117 -0
- package/dist/stories/Typography/Title.stories.tsx +112 -0
- package/dist/stories/index.json +1435 -0
- package/dist/types.js +127 -0
- package/package.json +12 -7
- package/dist/ComplexComponents/PageContentHeader/DescriptionBlock.tsx +0 -65
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/nextjs-vite';
|
|
2
|
+
import { List, Text, Title, Badge, ThemeIcon } from '@appdirect/design-system';
|
|
3
|
+
import { Stack, Group } from '@mantine/core';
|
|
4
|
+
import { IconCheck, IconX, IconArrowRight, IconStar, IconUser, IconSettings } from '@tabler/icons-react';
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof List> = {
|
|
7
|
+
title: 'Design System/Data Display/List',
|
|
8
|
+
component: List,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'padded',
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: `
|
|
14
|
+
A flexible list component built on top of Mantine's List with consistent Design System styling.
|
|
15
|
+
|
|
16
|
+
**Features:**
|
|
17
|
+
- **Size Control**: xs, sm, md, lg, xl sizes
|
|
18
|
+
- **Spacing Control**: Configurable spacing between items
|
|
19
|
+
- **Icon Support**: Custom icons for list items
|
|
20
|
+
- **List Types**: Unordered and ordered lists
|
|
21
|
+
- **Compound Component**: List.Item for individual items
|
|
22
|
+
|
|
23
|
+
**Usage Guidelines:**
|
|
24
|
+
- Use for displaying collections of related content
|
|
25
|
+
- Consider using ordered lists for sequential information
|
|
26
|
+
- Use custom icons to add visual hierarchy
|
|
27
|
+
- Keep spacing consistent within related lists
|
|
28
|
+
`,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
tags: ['autodocs', 'code-connected'],
|
|
33
|
+
argTypes: {
|
|
34
|
+
size: {
|
|
35
|
+
control: 'select',
|
|
36
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
37
|
+
description: 'List size from design system scale',
|
|
38
|
+
},
|
|
39
|
+
spacing: {
|
|
40
|
+
control: 'select',
|
|
41
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
42
|
+
description: 'Spacing between list items',
|
|
43
|
+
},
|
|
44
|
+
type: {
|
|
45
|
+
control: 'select',
|
|
46
|
+
options: ['unordered', 'ordered'],
|
|
47
|
+
description: 'List type - unordered (bullets) or ordered (numbers)',
|
|
48
|
+
},
|
|
49
|
+
withPadding: {
|
|
50
|
+
control: 'boolean',
|
|
51
|
+
description: 'Add padding to list items',
|
|
52
|
+
},
|
|
53
|
+
listStyleType: {
|
|
54
|
+
control: 'text',
|
|
55
|
+
description: 'CSS list-style-type property',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default meta;
|
|
61
|
+
type Story = StoryObj<typeof List>;
|
|
62
|
+
|
|
63
|
+
// ========================== BASIC EXAMPLES ==========================
|
|
64
|
+
|
|
65
|
+
export const Basic: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
children: (
|
|
68
|
+
<>
|
|
69
|
+
<List.Item>Create a task management system</List.Item>
|
|
70
|
+
<List.Item>Design the user interface components</List.Item>
|
|
71
|
+
<List.Item>Implement the backend API</List.Item>
|
|
72
|
+
<List.Item>Write comprehensive tests</List.Item>
|
|
73
|
+
<List.Item>Deploy to production environment</List.Item>
|
|
74
|
+
</>
|
|
75
|
+
),
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const OrderedList: Story = {
|
|
80
|
+
args: {
|
|
81
|
+
type: 'ordered',
|
|
82
|
+
children: (
|
|
83
|
+
<>
|
|
84
|
+
<List.Item>Install dependencies with npm install</List.Item>
|
|
85
|
+
<List.Item>Configure your environment variables</List.Item>
|
|
86
|
+
<List.Item>Run the development server</List.Item>
|
|
87
|
+
<List.Item>Open your browser to localhost:3000</List.Item>
|
|
88
|
+
<List.Item>Start building your application</List.Item>
|
|
89
|
+
</>
|
|
90
|
+
),
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// ========================== SIZE VARIATIONS ==========================
|
|
95
|
+
|
|
96
|
+
export const AllSizes: Story = {
|
|
97
|
+
render: () => (
|
|
98
|
+
<Stack gap="xl">
|
|
99
|
+
<div>
|
|
100
|
+
<Title order={6} mb="sm">Extra Small (xs)</Title>
|
|
101
|
+
<List size="xs" spacing="xs">
|
|
102
|
+
<List.Item>Extra small list item</List.Item>
|
|
103
|
+
<List.Item>Another small item</List.Item>
|
|
104
|
+
<List.Item>One more small item</List.Item>
|
|
105
|
+
</List>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div>
|
|
109
|
+
<Title order={6} mb="sm">Small (sm)</Title>
|
|
110
|
+
<List size="sm" spacing="sm">
|
|
111
|
+
<List.Item>Small list item</List.Item>
|
|
112
|
+
<List.Item>Another small item</List.Item>
|
|
113
|
+
<List.Item>One more small item</List.Item>
|
|
114
|
+
</List>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div>
|
|
118
|
+
<Title order={6} mb="sm">Medium (md) - Default</Title>
|
|
119
|
+
<List size="md" spacing="md">
|
|
120
|
+
<List.Item>Medium list item</List.Item>
|
|
121
|
+
<List.Item>Another medium item</List.Item>
|
|
122
|
+
<List.Item>One more medium item</List.Item>
|
|
123
|
+
</List>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div>
|
|
127
|
+
<Title order={6} mb="sm">Large (lg)</Title>
|
|
128
|
+
<List size="lg" spacing="lg">
|
|
129
|
+
<List.Item>Large list item</List.Item>
|
|
130
|
+
<List.Item>Another large item</List.Item>
|
|
131
|
+
<List.Item>One more large item</List.Item>
|
|
132
|
+
</List>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div>
|
|
136
|
+
<Title order={6} mb="sm">Extra Large (xl)</Title>
|
|
137
|
+
<List size="xl" spacing="xl">
|
|
138
|
+
<List.Item>Extra large list item</List.Item>
|
|
139
|
+
<List.Item>Another extra large item</List.Item>
|
|
140
|
+
<List.Item>One more extra large item</List.Item>
|
|
141
|
+
</List>
|
|
142
|
+
</div>
|
|
143
|
+
</Stack>
|
|
144
|
+
),
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// ========================== WITH ICONS ==========================
|
|
148
|
+
|
|
149
|
+
export const WithCheckIcons: Story = {
|
|
150
|
+
args: {
|
|
151
|
+
icon: <IconCheck size={16} color="green" />,
|
|
152
|
+
spacing: 'sm',
|
|
153
|
+
children: (
|
|
154
|
+
<>
|
|
155
|
+
<List.Item>Task completed successfully</List.Item>
|
|
156
|
+
<List.Item>All tests are passing</List.Item>
|
|
157
|
+
<List.Item>Code review approved</List.Item>
|
|
158
|
+
<List.Item>Deployment verified</List.Item>
|
|
159
|
+
</>
|
|
160
|
+
),
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export const WithCustomIcons: Story = {
|
|
165
|
+
render: () => (
|
|
166
|
+
<Stack gap="lg">
|
|
167
|
+
<div>
|
|
168
|
+
<Title order={6} mb="sm">Success Tasks</Title>
|
|
169
|
+
<List icon={<ThemeIcon size="sm" color="success"><IconCheck size={12} /></ThemeIcon>} spacing="sm">
|
|
170
|
+
<List.Item>Feature implementation completed</List.Item>
|
|
171
|
+
<List.Item>Unit tests written and passing</List.Item>
|
|
172
|
+
<List.Item>Code review approved</List.Item>
|
|
173
|
+
</List>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div>
|
|
177
|
+
<Title order={6} mb="sm">Failed Tasks</Title>
|
|
178
|
+
<List icon={<ThemeIcon size="sm" color="danger"><IconX size={12} /></ThemeIcon>} spacing="sm">
|
|
179
|
+
<List.Item>Build process failed</List.Item>
|
|
180
|
+
<List.Item>Integration tests failing</List.Item>
|
|
181
|
+
<List.Item>Performance benchmarks not met</List.Item>
|
|
182
|
+
</List>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<div>
|
|
186
|
+
<Title order={6} mb="sm">Action Items</Title>
|
|
187
|
+
<List icon={<IconArrowRight size={16} color="blue" />} spacing="sm">
|
|
188
|
+
<List.Item>Review pull request #42</List.Item>
|
|
189
|
+
<List.Item>Update documentation</List.Item>
|
|
190
|
+
<List.Item>Schedule team meeting</List.Item>
|
|
191
|
+
</List>
|
|
192
|
+
</div>
|
|
193
|
+
</Stack>
|
|
194
|
+
),
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
// ========================== COMPLEX CONTENT ==========================
|
|
198
|
+
|
|
199
|
+
export const WithComplexContent: Story = {
|
|
200
|
+
render: () => (
|
|
201
|
+
<List spacing="md">
|
|
202
|
+
<List.Item>
|
|
203
|
+
<Group justify="space-between" align="flex-start">
|
|
204
|
+
<div>
|
|
205
|
+
<Text fw={500}>User Management System</Text>
|
|
206
|
+
<Text size="sm" c="dimmed">Complete user authentication and authorization</Text>
|
|
207
|
+
</div>
|
|
208
|
+
<Badge color="success">Completed</Badge>
|
|
209
|
+
</Group>
|
|
210
|
+
</List.Item>
|
|
211
|
+
|
|
212
|
+
<List.Item>
|
|
213
|
+
<Group justify="space-between" align="flex-start">
|
|
214
|
+
<div>
|
|
215
|
+
<Text fw={500}>Payment Integration</Text>
|
|
216
|
+
<Text size="sm" c="dimmed">Integrate Stripe payment processing</Text>
|
|
217
|
+
</div>
|
|
218
|
+
<Badge color="pending">In Progress</Badge>
|
|
219
|
+
</Group>
|
|
220
|
+
</List.Item>
|
|
221
|
+
|
|
222
|
+
<List.Item>
|
|
223
|
+
<Group justify="space-between" align="flex-start">
|
|
224
|
+
<div>
|
|
225
|
+
<Text fw={500}>Email Notifications</Text>
|
|
226
|
+
<Text size="sm" c="dimmed">Set up automated email workflows</Text>
|
|
227
|
+
</div>
|
|
228
|
+
<Badge color="info">Planned</Badge>
|
|
229
|
+
</Group>
|
|
230
|
+
</List.Item>
|
|
231
|
+
|
|
232
|
+
<List.Item>
|
|
233
|
+
<Group justify="space-between" align="flex-start">
|
|
234
|
+
<div>
|
|
235
|
+
<Text fw={500}>Mobile App Development</Text>
|
|
236
|
+
<Text size="sm" c="dimmed">Create React Native mobile application</Text>
|
|
237
|
+
</div>
|
|
238
|
+
<Badge color="default">Backlog</Badge>
|
|
239
|
+
</Group>
|
|
240
|
+
</List.Item>
|
|
241
|
+
</List>
|
|
242
|
+
),
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export const NestedLists: Story = {
|
|
246
|
+
render: () => (
|
|
247
|
+
<List spacing="sm">
|
|
248
|
+
<List.Item>
|
|
249
|
+
<Text fw={500}>Frontend Development</Text>
|
|
250
|
+
<List mt="xs" ml="md" spacing="xs" withPadding>
|
|
251
|
+
<List.Item>Design system components</List.Item>
|
|
252
|
+
<List.Item>Page layouts and routing</List.Item>
|
|
253
|
+
<List.Item>State management with Redux</List.Item>
|
|
254
|
+
</List>
|
|
255
|
+
</List.Item>
|
|
256
|
+
|
|
257
|
+
<List.Item>
|
|
258
|
+
<Text fw={500}>Backend Development</Text>
|
|
259
|
+
<List mt="xs" ml="md" spacing="xs" withPadding>
|
|
260
|
+
<List.Item>API endpoint development</List.Item>
|
|
261
|
+
<List.Item>Database schema design</List.Item>
|
|
262
|
+
<List.Item>Authentication middleware</List.Item>
|
|
263
|
+
</List>
|
|
264
|
+
</List.Item>
|
|
265
|
+
|
|
266
|
+
<List.Item>
|
|
267
|
+
<Text fw={500}>DevOps & Deployment</Text>
|
|
268
|
+
<List mt="xs" ml="md" spacing="xs" withPadding>
|
|
269
|
+
<List.Item>CI/CD pipeline setup</List.Item>
|
|
270
|
+
<List.Item>Container orchestration</List.Item>
|
|
271
|
+
<List.Item>Monitoring and logging</List.Item>
|
|
272
|
+
</List>
|
|
273
|
+
</List.Item>
|
|
274
|
+
</List>
|
|
275
|
+
),
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// ========================== SPACING VARIATIONS ==========================
|
|
279
|
+
|
|
280
|
+
export const SpacingComparison: Story = {
|
|
281
|
+
render: () => (
|
|
282
|
+
<Stack gap="xl">
|
|
283
|
+
<div>
|
|
284
|
+
<Title order={6} mb="sm">Tight Spacing (xs)</Title>
|
|
285
|
+
<List spacing="xs">
|
|
286
|
+
<List.Item>First item with minimal spacing</List.Item>
|
|
287
|
+
<List.Item>Second item very close</List.Item>
|
|
288
|
+
<List.Item>Third item also close</List.Item>
|
|
289
|
+
</List>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
<div>
|
|
293
|
+
<Title order={6} mb="sm">Comfortable Spacing (md)</Title>
|
|
294
|
+
<List spacing="md">
|
|
295
|
+
<List.Item>First item with comfortable spacing</List.Item>
|
|
296
|
+
<List.Item>Second item well-spaced</List.Item>
|
|
297
|
+
<List.Item>Third item nicely separated</List.Item>
|
|
298
|
+
</List>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<div>
|
|
302
|
+
<Title order={6} mb="sm">Generous Spacing (xl)</Title>
|
|
303
|
+
<List spacing="xl">
|
|
304
|
+
<List.Item>First item with generous spacing</List.Item>
|
|
305
|
+
<List.Item>Second item well separated</List.Item>
|
|
306
|
+
<List.Item>Third item with lots of space</List.Item>
|
|
307
|
+
</List>
|
|
308
|
+
</div>
|
|
309
|
+
</Stack>
|
|
310
|
+
),
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// ========================== USE CASES ==========================
|
|
314
|
+
|
|
315
|
+
export const FeatureList: Story = {
|
|
316
|
+
render: () => (
|
|
317
|
+
<List icon={<IconStar size={16} color="gold" />} spacing="sm">
|
|
318
|
+
<List.Item>
|
|
319
|
+
<Text>
|
|
320
|
+
<strong>Real-time collaboration</strong> - Work together with your team in real-time
|
|
321
|
+
</Text>
|
|
322
|
+
</List.Item>
|
|
323
|
+
<List.Item>
|
|
324
|
+
<Text>
|
|
325
|
+
<strong>Version control</strong> - Track changes and maintain history
|
|
326
|
+
</Text>
|
|
327
|
+
</List.Item>
|
|
328
|
+
<List.Item>
|
|
329
|
+
<Text>
|
|
330
|
+
<strong>Advanced security</strong> - Enterprise-grade security features
|
|
331
|
+
</Text>
|
|
332
|
+
</List.Item>
|
|
333
|
+
<List.Item>
|
|
334
|
+
<Text>
|
|
335
|
+
<strong>24/7 support</strong> - Round-the-clock customer support
|
|
336
|
+
</Text>
|
|
337
|
+
</List.Item>
|
|
338
|
+
</List>
|
|
339
|
+
),
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
export const UserPermissions: Story = {
|
|
343
|
+
render: () => (
|
|
344
|
+
<List spacing="sm">
|
|
345
|
+
<List.Item>
|
|
346
|
+
<Group gap="sm">
|
|
347
|
+
<IconUser size={16} />
|
|
348
|
+
<div>
|
|
349
|
+
<Text fw={500}>Admin Users</Text>
|
|
350
|
+
<Text size="sm" c="dimmed">Full system access and user management</Text>
|
|
351
|
+
</div>
|
|
352
|
+
</Group>
|
|
353
|
+
</List.Item>
|
|
354
|
+
|
|
355
|
+
<List.Item>
|
|
356
|
+
<Group gap="sm">
|
|
357
|
+
<IconSettings size={16} />
|
|
358
|
+
<div>
|
|
359
|
+
<Text fw={500}>Editors</Text>
|
|
360
|
+
<Text size="sm" c="dimmed">Can create and edit content</Text>
|
|
361
|
+
</div>
|
|
362
|
+
</Group>
|
|
363
|
+
</List.Item>
|
|
364
|
+
|
|
365
|
+
<List.Item>
|
|
366
|
+
<Group gap="sm">
|
|
367
|
+
<IconCheck size={16} />
|
|
368
|
+
<div>
|
|
369
|
+
<Text fw={500}>Viewers</Text>
|
|
370
|
+
<Text size="sm" c="dimmed">Read-only access to content</Text>
|
|
371
|
+
</div>
|
|
372
|
+
</Group>
|
|
373
|
+
</List.Item>
|
|
374
|
+
</List>
|
|
375
|
+
),
|
|
376
|
+
};
|