@appdirect/design-system 0.0.9 → 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.
- package/README.md +2 -0
- package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
- package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
- package/dist/contracts/PageContentHeader.json +10 -5
- package/dist/contracts/index.json +1 -1
- 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/package.json +5 -3
- package/dist/ComplexComponents/PageContentHeader/DescriptionBlock.tsx +0 -65
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/nextjs-vite';
|
|
2
|
+
import { Stack, SimpleGrid, Inline, NameValue, Title, Text, Paper, Card, Button } from '@appdirect/design-system';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof NameValue> = {
|
|
6
|
+
title: 'Design System/Complex Components/NameValue',
|
|
7
|
+
component: NameValue,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'centered',
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component: 'NameValue component for displaying name-value pairs in vertical layout. Can be arranged in a grid format for multiple pairs using the columns prop. Perfect for metadata display, specifications, statistics, or any key-value information.',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
tags: ['autodocs', 'needs-connect'],
|
|
17
|
+
argTypes: {
|
|
18
|
+
name: {
|
|
19
|
+
control: 'text',
|
|
20
|
+
description: 'Single name/label (when used individually)',
|
|
21
|
+
},
|
|
22
|
+
value: {
|
|
23
|
+
control: 'text',
|
|
24
|
+
description: 'Single value (when used individually)',
|
|
25
|
+
},
|
|
26
|
+
labelSize: {
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
29
|
+
description: 'Size of the label text',
|
|
30
|
+
},
|
|
31
|
+
valueSize: {
|
|
32
|
+
control: 'select',
|
|
33
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
34
|
+
description: 'Size of the value text',
|
|
35
|
+
},
|
|
36
|
+
spacing: {
|
|
37
|
+
control: 'select',
|
|
38
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
39
|
+
description: 'Spacing between pairs',
|
|
40
|
+
},
|
|
41
|
+
nameColor: {
|
|
42
|
+
control: 'text',
|
|
43
|
+
description: 'Color for name/label text',
|
|
44
|
+
},
|
|
45
|
+
valueColor: {
|
|
46
|
+
control: 'text',
|
|
47
|
+
description: 'Color for value text',
|
|
48
|
+
},
|
|
49
|
+
valueAsBadge: {
|
|
50
|
+
control: 'boolean',
|
|
51
|
+
description: 'Render all values as badges',
|
|
52
|
+
},
|
|
53
|
+
columns: {
|
|
54
|
+
control: 'number',
|
|
55
|
+
description: 'Number of columns for grid layout',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default meta;
|
|
61
|
+
type Story = StoryObj<typeof meta>;
|
|
62
|
+
|
|
63
|
+
export const Default: Story = {
|
|
64
|
+
args: {
|
|
65
|
+
name: 'Status',
|
|
66
|
+
value: 'Active',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const SinglePair: Story = {
|
|
71
|
+
render: () => (
|
|
72
|
+
<Stack gap="lg" w={300}>
|
|
73
|
+
<NameValue name="User ID" value="usr_123456789" />
|
|
74
|
+
<NameValue name="Email" value="john.doe@example.com" />
|
|
75
|
+
<NameValue name="Last Login" value="2 hours ago" />
|
|
76
|
+
<NameValue name="Account Type" value="Premium" valueColor="blue" />
|
|
77
|
+
<NameValue name="Status" value="Active" valueColor="green" valueWeight="bold" />
|
|
78
|
+
</Stack>
|
|
79
|
+
),
|
|
80
|
+
parameters: {
|
|
81
|
+
docs: {
|
|
82
|
+
description: {
|
|
83
|
+
story: 'Individual name-value pairs with different styling options.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const MultiplePairs: Story = {
|
|
90
|
+
render: () => {
|
|
91
|
+
const userInfo = [
|
|
92
|
+
{ name: "Full Name", value: "John Doe" },
|
|
93
|
+
{ name: "Email", value: "john.doe@example.com" },
|
|
94
|
+
{ name: "Phone", value: "+1 (555) 123-4567" },
|
|
95
|
+
{ name: "Department", value: "Engineering" },
|
|
96
|
+
{ name: "Role", value: "Senior Developer" },
|
|
97
|
+
{ name: "Employee ID", value: "EMP-2024-001" },
|
|
98
|
+
{ name: "Start Date", value: "January 15, 2022" },
|
|
99
|
+
{ name: "Manager", value: "Sarah Johnson" },
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<Stack gap="lg" w={400}>
|
|
104
|
+
<Title order={3} size="md">Employee Information</Title>
|
|
105
|
+
<NameValue pairs={userInfo} spacing="md" />
|
|
106
|
+
</Stack>
|
|
107
|
+
);
|
|
108
|
+
},
|
|
109
|
+
parameters: {
|
|
110
|
+
docs: {
|
|
111
|
+
description: {
|
|
112
|
+
story: 'Multiple name-value pairs displayed in a vertical stack.',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export const GridLayout: Story = {
|
|
119
|
+
render: () => {
|
|
120
|
+
const serverMetrics = [
|
|
121
|
+
{ name: "CPU Usage", value: "45%", valueColor: "orange" },
|
|
122
|
+
{ name: "Memory", value: "2.1 GB", valueColor: "blue" },
|
|
123
|
+
{ name: "Disk Space", value: "78%", valueColor: "red" },
|
|
124
|
+
{ name: "Network I/O", value: "1.2 MB/s", valueColor: "green" },
|
|
125
|
+
{ name: "Uptime", value: "15 days" },
|
|
126
|
+
{ name: "Load Average", value: "0.68" },
|
|
127
|
+
{ name: "Active Users", value: "142", valueColor: "blue" },
|
|
128
|
+
{ name: "Processes", value: "89" },
|
|
129
|
+
];
|
|
130
|
+
|
|
131
|
+
return (
|
|
132
|
+
<Stack gap="lg" w={600}>
|
|
133
|
+
<Title order={3} size="md">Server Metrics</Title>
|
|
134
|
+
<NameValue pairs={serverMetrics} columns={4} spacing="sm" />
|
|
135
|
+
</Stack>
|
|
136
|
+
);
|
|
137
|
+
},
|
|
138
|
+
parameters: {
|
|
139
|
+
docs: {
|
|
140
|
+
description: {
|
|
141
|
+
story: 'Name-value pairs arranged in a grid layout with multiple columns.',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export const WithCopyFunctionality: Story = {
|
|
148
|
+
render: () => {
|
|
149
|
+
const [copyStatus, setCopyStatus] = useState<string>('');
|
|
150
|
+
|
|
151
|
+
const handleCopy = (value: string, label?: string) => {
|
|
152
|
+
navigator.clipboard.writeText(value);
|
|
153
|
+
setCopyStatus(`Copied ${label || 'value'}: ${value}`);
|
|
154
|
+
setTimeout(() => setCopyStatus(''), 3000);
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const credentials = [
|
|
158
|
+
{
|
|
159
|
+
name: "API Key",
|
|
160
|
+
value: "sk-1234567890abcdef",
|
|
161
|
+
action: { onClick: (v: string) => handleCopy(v, "API Key") },
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "Secret Key",
|
|
165
|
+
value: "secret_abcdef123456",
|
|
166
|
+
action: { onClick: (v: string) => handleCopy(v, "Secret Key") },
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: "Database URL",
|
|
170
|
+
value: "postgresql://localhost:5432/mydb",
|
|
171
|
+
action: { onClick: (v: string) => handleCopy(v, "Database URL") },
|
|
172
|
+
},
|
|
173
|
+
{ name: "Environment", value: "Production" },
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
<Stack gap="lg" w={500}>
|
|
178
|
+
<Title order={3} size="md">API Credentials</Title>
|
|
179
|
+
<NameValue pairs={credentials} spacing="md" />
|
|
180
|
+
{copyStatus && (
|
|
181
|
+
<Text size="sm" c="green" fw={500}>
|
|
182
|
+
{copyStatus}
|
|
183
|
+
</Text>
|
|
184
|
+
)}
|
|
185
|
+
</Stack>
|
|
186
|
+
);
|
|
187
|
+
},
|
|
188
|
+
parameters: {
|
|
189
|
+
docs: {
|
|
190
|
+
description: {
|
|
191
|
+
story: 'Name-value pairs with selective copy functionality for sensitive data.',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export const DifferentSizes: Story = {
|
|
198
|
+
render: () => (
|
|
199
|
+
<Stack gap="xl" w={400}>
|
|
200
|
+
<Stack gap="md">
|
|
201
|
+
<Title order={4} size="sm">Extra Small Labels</Title>
|
|
202
|
+
<NameValue
|
|
203
|
+
pairs={[
|
|
204
|
+
{ name: "Compact Info", value: "Small display" },
|
|
205
|
+
{ name: "Minimal Space", value: "Tight layout" }
|
|
206
|
+
]}
|
|
207
|
+
labelSize="xs"
|
|
208
|
+
valueSize="sm"
|
|
209
|
+
/>
|
|
210
|
+
</Stack>
|
|
211
|
+
|
|
212
|
+
<Stack gap="md">
|
|
213
|
+
<Title order={4} size="sm">Medium Labels</Title>
|
|
214
|
+
<NameValue
|
|
215
|
+
pairs={[
|
|
216
|
+
{ name: "Standard Info", value: "Normal display" },
|
|
217
|
+
{ name: "Regular Space", value: "Default layout" }
|
|
218
|
+
]}
|
|
219
|
+
labelSize="sm"
|
|
220
|
+
valueSize="md"
|
|
221
|
+
/>
|
|
222
|
+
</Stack>
|
|
223
|
+
|
|
224
|
+
<Stack gap="md">
|
|
225
|
+
<Title order={4} size="sm">Large Labels</Title>
|
|
226
|
+
<NameValue
|
|
227
|
+
pairs={[
|
|
228
|
+
{ name: "Important Info", value: "Prominent display" },
|
|
229
|
+
{ name: "Key Metrics", value: "Highlighted data" }
|
|
230
|
+
]}
|
|
231
|
+
labelSize="md"
|
|
232
|
+
valueSize="lg"
|
|
233
|
+
valueWeight="bold"
|
|
234
|
+
/>
|
|
235
|
+
</Stack>
|
|
236
|
+
</Stack>
|
|
237
|
+
),
|
|
238
|
+
parameters: {
|
|
239
|
+
docs: {
|
|
240
|
+
description: {
|
|
241
|
+
story: 'Name-value pairs with different text sizes for various use cases.',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export const ColorVariations: Story = {
|
|
248
|
+
render: () => (
|
|
249
|
+
<Stack gap="lg" w={400}>
|
|
250
|
+
<Title order={3} size="md">Status Information</Title>
|
|
251
|
+
<NameValue
|
|
252
|
+
pairs={[
|
|
253
|
+
{ name: "System Status", value: "Online", valueColor: "green", valueWeight: "bold" },
|
|
254
|
+
{ name: "Last Backup", value: "Failed", valueColor: "red", valueWeight: "bold" },
|
|
255
|
+
{ name: "Maintenance", value: "Scheduled", valueColor: "orange", valueWeight: "bold" },
|
|
256
|
+
{ name: "Security", value: "Secure", valueColor: "blue", valueWeight: "bold" },
|
|
257
|
+
{ name: "Performance", value: "Optimal", valueColor: "teal", valueWeight: "bold" },
|
|
258
|
+
]}
|
|
259
|
+
spacing="md"
|
|
260
|
+
/>
|
|
261
|
+
</Stack>
|
|
262
|
+
),
|
|
263
|
+
parameters: {
|
|
264
|
+
docs: {
|
|
265
|
+
description: {
|
|
266
|
+
story: 'Name-value pairs with different colors to indicate status or importance.',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export const RealWorldExamples: Story = {
|
|
273
|
+
render: () => (
|
|
274
|
+
<SimpleGrid cols={2} spacing="xl" w={800}>
|
|
275
|
+
<Card>
|
|
276
|
+
<Stack gap="md">
|
|
277
|
+
<Title order={4} size="sm">User Profile</Title>
|
|
278
|
+
<NameValue
|
|
279
|
+
pairs={[
|
|
280
|
+
{ name: "Username", value: "@johndoe" },
|
|
281
|
+
{ name: "Member Since", value: "March 2022" },
|
|
282
|
+
{ name: "Posts", value: "1,247", valueColor: "blue" },
|
|
283
|
+
{ name: "Followers", value: "892", valueColor: "green" },
|
|
284
|
+
{ name: "Following", value: "156" },
|
|
285
|
+
]}
|
|
286
|
+
spacing="sm"
|
|
287
|
+
/>
|
|
288
|
+
</Stack>
|
|
289
|
+
</Card>
|
|
290
|
+
|
|
291
|
+
<Card>
|
|
292
|
+
<Stack gap="md">
|
|
293
|
+
<Title order={4} size="sm">Order Details</Title>
|
|
294
|
+
<NameValue
|
|
295
|
+
pairs={[
|
|
296
|
+
{ name: "Order ID", value: "#ORD-2024-001", action: { onClick: (v) => navigator.clipboard.writeText(v) } },
|
|
297
|
+
{ name: "Date", value: "Jan 15, 2024" },
|
|
298
|
+
{ name: "Status", value: "Shipped", valueColor: "blue", valueWeight: "bold" },
|
|
299
|
+
{ name: "Total", value: "$129.99", valueColor: "green", valueWeight: "bold" },
|
|
300
|
+
{ name: "Items", value: "3 items" },
|
|
301
|
+
]}
|
|
302
|
+
spacing="sm"
|
|
303
|
+
/>
|
|
304
|
+
</Stack>
|
|
305
|
+
</Card>
|
|
306
|
+
|
|
307
|
+
<Card>
|
|
308
|
+
<Stack gap="md">
|
|
309
|
+
<Title order={4} size="sm">System Info</Title>
|
|
310
|
+
<NameValue
|
|
311
|
+
pairs={[
|
|
312
|
+
{ name: "Version", value: "v2.1.0" },
|
|
313
|
+
{ name: "Build", value: "20240115.1", action: { onClick: (v) => navigator.clipboard.writeText(v) } },
|
|
314
|
+
{ name: "Environment", value: "Production", valueColor: "red", valueWeight: "bold" },
|
|
315
|
+
{ name: "Region", value: "us-east-1" },
|
|
316
|
+
{ name: "Deployed", value: "2 hours ago" },
|
|
317
|
+
]}
|
|
318
|
+
spacing="sm"
|
|
319
|
+
/>
|
|
320
|
+
</Stack>
|
|
321
|
+
</Card>
|
|
322
|
+
|
|
323
|
+
<Card>
|
|
324
|
+
<Stack gap="md">
|
|
325
|
+
<Title order={4} size="sm">Performance</Title>
|
|
326
|
+
<NameValue
|
|
327
|
+
pairs={[
|
|
328
|
+
{ name: "Response Time", value: "245ms", valueColor: "green" },
|
|
329
|
+
{ name: "Throughput", value: "1.2k req/s", valueColor: "blue" },
|
|
330
|
+
{ name: "Error Rate", value: "0.01%", valueColor: "green" },
|
|
331
|
+
{ name: "Availability", value: "99.9%", valueColor: "green", valueWeight: "bold" },
|
|
332
|
+
{ name: "Last Check", value: "30s ago" },
|
|
333
|
+
]}
|
|
334
|
+
spacing="sm"
|
|
335
|
+
/>
|
|
336
|
+
</Stack>
|
|
337
|
+
</Card>
|
|
338
|
+
</SimpleGrid>
|
|
339
|
+
),
|
|
340
|
+
parameters: {
|
|
341
|
+
docs: {
|
|
342
|
+
description: {
|
|
343
|
+
story: 'Real-world examples of NameValue usage in different application contexts.',
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export const CompactGrid: Story = {
|
|
350
|
+
render: () => {
|
|
351
|
+
const deviceSpecs = [
|
|
352
|
+
{ name: "Model", value: "iPhone 15 Pro" },
|
|
353
|
+
{ name: "Storage", value: "256 GB" },
|
|
354
|
+
{ name: "RAM", value: "8 GB" },
|
|
355
|
+
{ name: "Display", value: "6.1 inch" },
|
|
356
|
+
{ name: "Camera", value: "48 MP" },
|
|
357
|
+
{ name: "Battery", value: "3274 mAh" },
|
|
358
|
+
{ name: "OS", value: "iOS 17" },
|
|
359
|
+
{ name: "Chip", value: "A17 Pro" },
|
|
360
|
+
{ name: "5G", value: "Yes", valueColor: "green" },
|
|
361
|
+
{ name: "Weight", value: "187g" },
|
|
362
|
+
{ name: "Colors", value: "4 options" },
|
|
363
|
+
{ name: "Price", value: "$999", valueColor: "blue", valueWeight: "bold" as const },
|
|
364
|
+
];
|
|
365
|
+
|
|
366
|
+
return (
|
|
367
|
+
<Stack gap="lg" w={600}>
|
|
368
|
+
<Title order={3} size="md">Device Specifications</Title>
|
|
369
|
+
<NameValue
|
|
370
|
+
pairs={deviceSpecs}
|
|
371
|
+
columns={3}
|
|
372
|
+
spacing="xs"
|
|
373
|
+
labelSize="xs"
|
|
374
|
+
valueSize="sm"
|
|
375
|
+
/>
|
|
376
|
+
</Stack>
|
|
377
|
+
);
|
|
378
|
+
},
|
|
379
|
+
parameters: {
|
|
380
|
+
docs: {
|
|
381
|
+
description: {
|
|
382
|
+
story: 'Compact grid layout perfect for displaying specifications or technical details.',
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
export const Interactive: Story = {
|
|
389
|
+
args: {
|
|
390
|
+
name: 'Interactive Example',
|
|
391
|
+
value: 'Change me using controls',
|
|
392
|
+
labelSize: 'sm',
|
|
393
|
+
valueSize: 'md',
|
|
394
|
+
nameColor: 'dimmed',
|
|
395
|
+
valueColor: undefined,
|
|
396
|
+
valueAsBadge: false,
|
|
397
|
+
},
|
|
398
|
+
parameters: {
|
|
399
|
+
docs: {
|
|
400
|
+
description: {
|
|
401
|
+
story: 'Use the controls below to interact with the NameValue component and see different combinations.',
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
};
|