@webiny/admin-ui 6.2.0-beta.0 → 6.3.0-beta.0
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/Accordion/Accordion.d.ts +1 -1
- package/Accordion/Accordion.mdx +437 -463
- package/Accordion/components/AccordionContent.js.map +1 -1
- package/Alert/Alert.d.ts +1 -1
- package/Alert/Alert.js.map +1 -1
- package/Alert/Alert.mdx +80 -83
- package/AutoComplete/AutoComplete.mdx +63 -55
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js.map +1 -1
- package/Avatar/Avatar.mdx +52 -43
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js.map +1 -1
- package/Button/Button.mdx +50 -42
- package/Button/IconButton.d.ts +1 -1
- package/Button/IconButton.js.map +1 -1
- package/Card/components/CardContent.d.ts +1 -1
- package/Card/components/CardTitle.d.ts +1 -1
- package/Checkbox/Checkbox.mdx +51 -49
- package/Checkbox/primitives/CheckboxPrimitive.d.ts +1 -1
- package/CheckboxGroup/CheckboxGroup.mdx +51 -53
- package/CodeEditor/CodeEditor.mdx +44 -43
- package/ColorPicker/ColorPicker.mdx +41 -40
- package/Command/components/Item.d.ts +1 -1
- package/Command/components/Item.js.map +1 -1
- package/DataTable/DataTable.mdx +537 -542
- package/DataTable/components/ColumnSorter.d.ts +1 -1
- package/DataTable/components/ColumnSorter.js.map +1 -1
- package/Dialog/Dialog.js.map +1 -1
- package/Dialog/components/DialogContent.d.ts +1 -1
- package/Dialog/components/DialogContent.js +1 -1
- package/Dialog/components/DialogContent.js.map +1 -1
- package/Dialog/components/DialogFooter.d.ts +1 -1
- package/Dialog/components/DialogFooter.js.map +1 -1
- package/Dialog/components/DialogTitle.d.ts +1 -1
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/Drawer.mdx +73 -64
- package/Drawer/components/DrawerContent.d.ts +1 -1
- package/Drawer/components/DrawerContent.js.map +1 -1
- package/DropdownMenu/DropdownMenu.js.map +1 -1
- package/DropdownMenu/DropdownMenu.mdx +155 -256
- package/DropdownMenu/components/DropdownMenuCheckboxItem.js.map +1 -1
- package/DropdownMenu/components/DropdownMenuLabel.js.map +1 -1
- package/FilePicker/FilePicker.mdx +69 -69
- package/FilePicker/primitives/FilePickerPrimitive.d.ts +19 -19
- package/FilePicker/primitives/FilePickerPrimitive.js.map +1 -1
- package/FilePicker/primitives/components/Trigger.d.ts +1 -1
- package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +1 -1
- package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
- package/FilePicker/primitives/components/types.js.map +1 -1
- package/FormComponent/Description.d.ts +1 -1
- package/FormComponent/ErrorMessage.d.ts +1 -1
- package/FormComponent/Note.d.ts +1 -1
- package/Grid/Grid.d.ts +2 -2
- package/Grid/Grid.js.map +1 -1
- package/Grid/Grid.mdx +111 -121
- package/HeaderBar/HeaderBar.mdx +98 -99
- package/Heading/Heading.d.ts +1 -1
- package/Heading/Heading.js.map +1 -1
- package/Heading/Heading.mdx +63 -58
- package/Icon/Icon.d.ts +1 -1
- package/Icon/Icon.js.map +1 -1
- package/Icon/Icon.mdx +79 -147
- package/IconPicker/IconPicker.mdx +66 -64
- package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
- package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
- package/Image/Image.js.map +1 -1
- package/Input/Input.mdx +67 -56
- package/Input/InputPrimitive.d.ts +1 -1
- package/Label/Label.d.ts +1 -1
- package/Label/Label.js.map +1 -1
- package/Label/Label.mdx +42 -42
- package/Label/components/LabelDescription.d.ts +1 -1
- package/Label/components/LabelRequired.d.ts +1 -1
- package/Label/components/LabelValue.d.ts +1 -1
- package/Link/Link.d.ts +1 -1
- package/Link/Link.mdx +129 -116
- package/List/List.d.ts +1 -1
- package/List/List.js.map +1 -1
- package/List/List.mdx +317 -329
- package/List/components/ListItem.d.ts +1 -1
- package/List/components/ListItem.js.map +1 -1
- package/Loader/Loader.d.ts +2 -2
- package/Loader/Loader.js.map +1 -1
- package/Loader/Loader.mdx +96 -91
- package/MultiAutoComplete/MultiAutoComplete.mdx +52 -51
- package/MultiAutoComplete/primitives/components/MultiAutoCompleteInput.d.ts +1 -1
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenter.js.map +1 -1
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenterWithUniqueValues.js.map +1 -1
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteSelectedOptionsPresenter.js.map +1 -1
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteTemporaryOptionPresenter.js.map +1 -1
- package/MultiFilePicker/MultiFilePicker.mdx +84 -80
- package/MultiFilePicker/primitives/MultiFilePickerPrimitive.js.map +1 -1
- package/Popover/Popover.mdx +112 -118
- package/Popover/primitives/components/PopoverArrow.d.ts +1 -1
- package/Popover/primitives/components/PopoverContent.d.ts +1 -1
- package/RadioGroup/RadioGroup.mdx +62 -59
- package/RadioGroup/primitives/RadioGroupPrimitive.js.map +1 -1
- package/RangeSlider/RangeSlider.mdx +48 -47
- package/RangeSlider/primitives/RangeSliderPrimitive.js.map +1 -1
- package/RangeSlider/primitives/components/RangeSliderValue.d.ts +1 -1
- package/RangeSlider/primitives/components/RangeSliderValue.js.map +1 -1
- package/ScrollArea/ScrollArea.js.map +1 -1
- package/SegmentedControl/SegmentedControl.mdx +59 -59
- package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
- package/SegmentedControl/primitives/SegmentedControlPrimitive.js.map +1 -1
- package/Select/Select.mdx +52 -43
- package/Select/primitives/components/SelectTrigger.d.ts +1 -1
- package/Select/primitives/components/SelectTrigger.js.map +1 -1
- package/Select/primitives/presenters/SelectPresenter.d.ts +1 -1
- package/Separator/Separator.d.ts +1 -1
- package/Separator/Separator.mdx +139 -150
- package/Sidebar/Sidebar.js.map +1 -1
- package/Sidebar/Sidebar.mdx +66 -88
- package/Sidebar/components/items/SidebarMenuSubItemIndentation.d.ts +1 -1
- package/Sidebar/components/items/SidebarMenuSubItemIndentation.js.map +1 -1
- package/Skeleton/Skeleton.d.ts +1 -1
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/Skeleton.mdx +37 -37
- package/Slider/Slider.mdx +48 -47
- package/Slider/primitives/SliderPrimitive.js.map +1 -1
- package/Slider/primitives/components/SliderSideValue.d.ts +1 -1
- package/Slider/primitives/components/SliderSideValue.js.map +1 -1
- package/Slider/primitives/components/SliderTooltip.d.ts +1 -1
- package/SteppedProgress/components/SteppedProgressIcon.d.ts +1 -1
- package/SteppedProgress/components/SteppedProgressIcon.js.map +1 -1
- package/SteppedProgress/components/SteppedProgressIndicator.d.ts +1 -1
- package/SteppedProgress/components/SteppedProgressIndicator.js.map +1 -1
- package/Switch/Switch.mdx +44 -42
- package/Switch/primitives/SwitchPrimitive.d.ts +1 -1
- package/Table/Table.d.ts +1 -1
- package/Table/Table.js.map +1 -1
- package/Table/components/Direction.d.ts +1 -1
- package/Table/components/Direction.js.map +1 -1
- package/Table/components/Header.d.ts +1 -1
- package/Table/components/Header.js.map +1 -1
- package/Table/components/Resizer.d.ts +1 -1
- package/Table/components/Resizer.js.map +1 -1
- package/Table/components/Row.d.ts +1 -1
- package/Table/components/Row.js.map +1 -1
- package/Tabs/Tabs.mdx +297 -292
- package/Tabs/components/Content.d.ts +1 -1
- package/Tabs/components/List.d.ts +1 -1
- package/Tabs/components/Trigger.d.ts +1 -1
- package/Tag/Tag.d.ts +1 -1
- package/Tag/Tag.js.map +1 -1
- package/Tag/Tag.mdx +68 -64
- package/Tags/primitives/TagsPrimitive.js.map +1 -1
- package/Text/Text.d.ts +1 -1
- package/Text/Text.mdx +54 -48
- package/Textarea/Textarea.mdx +49 -39
- package/Textarea/TextareaPrimitive.d.ts +1 -1
- package/Textarea/TextareaPrimitive.js.map +1 -1
- package/Toast/Toast.mdx +63 -53
- package/Toast/components/ToastRoot.d.ts +1 -1
- package/Tooltip/Tooltip.mdx +197 -198
- package/Tooltip/components/TooltipArrow.d.ts +1 -1
- package/Tooltip/components/TooltipContent.d.ts +1 -1
- package/Tree/components/Item.d.ts +1 -1
- package/Tree/useTree.d.ts +1 -1
- package/Widget/components/WidgetContent.d.ts +1 -1
- package/package.json +15 -15
package/List/List.mdx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Canvas, Meta, Controls } from
|
|
1
|
+
import { Canvas, Meta, Controls } from "@storybook/addon-docs/blocks";
|
|
2
2
|
|
|
3
|
-
import * as ListStories from
|
|
3
|
+
import * as ListStories from "./List.stories";
|
|
4
4
|
|
|
5
5
|
<Meta of={ListStories} />
|
|
6
6
|
|
|
@@ -18,44 +18,44 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
18
18
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
19
19
|
|
|
20
20
|
const ListExample = () => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
21
|
+
return (
|
|
22
|
+
|
|
23
|
+
<List variant="underline" background="base">
|
|
24
|
+
<List.Item
|
|
25
|
+
icon={<UserIcon />}
|
|
26
|
+
title="User Profile"
|
|
27
|
+
description="View and edit your profile information"
|
|
28
|
+
onClick={() => console.log("User Profile clicked")}
|
|
29
|
+
/>
|
|
30
|
+
<List.Item
|
|
31
|
+
icon={<SettingsIcon />}
|
|
32
|
+
title="Settings"
|
|
33
|
+
description="Configure application settings"
|
|
34
|
+
onClick={() => console.log("Settings clicked")}
|
|
35
|
+
/>
|
|
36
|
+
<List.Item
|
|
37
|
+
icon={<HelpIcon />}
|
|
38
|
+
title="Help & Support"
|
|
39
|
+
description="Get assistance and view documentation"
|
|
40
|
+
onClick={() => console.log("Help & Support clicked")}
|
|
41
|
+
/>
|
|
42
|
+
</List>
|
|
43
|
+
); };
|
|
44
44
|
|
|
45
45
|
export default ListExample;
|
|
46
46
|
|
|
47
47
|
` } }
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
additionalActions={[
|
|
49
|
+
{
|
|
50
|
+
title: 'Open in GitHub',
|
|
51
|
+
onClick: () => {
|
|
52
|
+
window.open(
|
|
53
|
+
'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/List/List.tsx',
|
|
54
|
+
'_blank'
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
]}
|
|
59
59
|
/>
|
|
60
60
|
|
|
61
61
|
<Controls of={ListStories.Documentation} />
|
|
@@ -68,28 +68,28 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
68
68
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
69
69
|
|
|
70
70
|
const ListExample = () => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
71
|
+
return (
|
|
72
|
+
<List variant="underline" background="base">
|
|
73
|
+
<List.Item
|
|
74
|
+
icon={<UserIcon />}
|
|
75
|
+
title="User Profile"
|
|
76
|
+
description="View and edit your profile information"
|
|
77
|
+
onClick={() => console.log("User Profile clicked")}
|
|
78
|
+
/>
|
|
79
|
+
<List.Item
|
|
80
|
+
icon={<SettingsIcon />}
|
|
81
|
+
title="Settings"
|
|
82
|
+
description="Configure application settings"
|
|
83
|
+
onClick={() => console.log("Settings clicked")}
|
|
84
|
+
/>
|
|
85
|
+
<List.Item
|
|
86
|
+
icon={<HelpIcon />}
|
|
87
|
+
title="Help & Support"
|
|
88
|
+
description="Get assistance and view documentation"
|
|
89
|
+
onClick={() => console.log("Help & Support clicked")}
|
|
90
|
+
/>
|
|
91
|
+
</List>
|
|
92
|
+
);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export default ListExample;
|
|
@@ -104,14 +104,14 @@ import React from "react";
|
|
|
104
104
|
import { List } from "@webiny/admin-ui";
|
|
105
105
|
|
|
106
106
|
const DefaultListExample = () => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
107
|
+
return (
|
|
108
|
+
|
|
109
|
+
<List>
|
|
110
|
+
<List.Item title="Item 1" />
|
|
111
|
+
<List.Item title="Item 2" />
|
|
112
|
+
<List.Item title="Item 3" />
|
|
113
|
+
</List>
|
|
114
|
+
); };
|
|
115
115
|
|
|
116
116
|
export default DefaultListExample;
|
|
117
117
|
` } } />
|
|
@@ -126,14 +126,14 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
126
126
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
127
127
|
|
|
128
128
|
const WithIconsExample = () => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
};
|
|
129
|
+
return (
|
|
130
|
+
|
|
131
|
+
<List>
|
|
132
|
+
<List.Item icon={<UserIcon />} title="User Profile" />
|
|
133
|
+
<List.Item icon={<SettingsIcon />} title="Settings" />
|
|
134
|
+
<List.Item icon={<HelpIcon />} title="Help & Support" />
|
|
135
|
+
</List>
|
|
136
|
+
); };
|
|
137
137
|
|
|
138
138
|
export default WithIconsExample;
|
|
139
139
|
` } } />
|
|
@@ -145,23 +145,14 @@ import React from "react";
|
|
|
145
145
|
import { List } from "@webiny/admin-ui";
|
|
146
146
|
|
|
147
147
|
const WithDescriptionsExample = () => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
description="Configure application settings"
|
|
157
|
-
/>
|
|
158
|
-
<List.Item
|
|
159
|
-
title="Help & Support"
|
|
160
|
-
description="Get assistance and view documentation"
|
|
161
|
-
/>
|
|
162
|
-
</List>
|
|
163
|
-
);
|
|
164
|
-
};
|
|
148
|
+
return (
|
|
149
|
+
|
|
150
|
+
<List>
|
|
151
|
+
<List.Item title="User Profile" description="View and edit your profile information" />
|
|
152
|
+
<List.Item title="Settings" description="Configure application settings" />
|
|
153
|
+
<List.Item title="Help & Support" description="Get assistance and view documentation" />
|
|
154
|
+
</List>
|
|
155
|
+
); };
|
|
165
156
|
|
|
166
157
|
export default WithDescriptionsExample;
|
|
167
158
|
` } } />
|
|
@@ -176,26 +167,26 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
176
167
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
177
168
|
|
|
178
169
|
const WithIconsAndDescriptionsExample = () => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
};
|
|
170
|
+
return (
|
|
171
|
+
|
|
172
|
+
<List>
|
|
173
|
+
<List.Item
|
|
174
|
+
icon={<UserIcon />}
|
|
175
|
+
title="User Profile"
|
|
176
|
+
description="View and edit your profile information"
|
|
177
|
+
/>
|
|
178
|
+
<List.Item
|
|
179
|
+
icon={<SettingsIcon />}
|
|
180
|
+
title="Settings"
|
|
181
|
+
description="Configure application settings"
|
|
182
|
+
/>
|
|
183
|
+
<List.Item
|
|
184
|
+
icon={<HelpIcon />}
|
|
185
|
+
title="Help & Support"
|
|
186
|
+
description="Get assistance and view documentation"
|
|
187
|
+
/>
|
|
188
|
+
</List>
|
|
189
|
+
); };
|
|
199
190
|
|
|
200
191
|
export default WithIconsAndDescriptionsExample;
|
|
201
192
|
` } } />
|
|
@@ -210,26 +201,26 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
210
201
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
211
202
|
|
|
212
203
|
const ContainerVariantExample = () => {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
};
|
|
204
|
+
return (
|
|
205
|
+
|
|
206
|
+
<List variant="container">
|
|
207
|
+
<List.Item
|
|
208
|
+
icon={<UserIcon />}
|
|
209
|
+
title="User Profile"
|
|
210
|
+
description="View and edit your profile information"
|
|
211
|
+
/>
|
|
212
|
+
<List.Item
|
|
213
|
+
icon={<SettingsIcon />}
|
|
214
|
+
title="Settings"
|
|
215
|
+
description="Configure application settings"
|
|
216
|
+
/>
|
|
217
|
+
<List.Item
|
|
218
|
+
icon={<HelpIcon />}
|
|
219
|
+
title="Help & Support"
|
|
220
|
+
description="Get assistance and view documentation"
|
|
221
|
+
/>
|
|
222
|
+
</List>
|
|
223
|
+
); };
|
|
233
224
|
|
|
234
225
|
export default ContainerVariantExample;
|
|
235
226
|
` } } />
|
|
@@ -244,26 +235,26 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
244
235
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
245
236
|
|
|
246
237
|
const LightBackgroundExample = () => {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
};
|
|
238
|
+
return (
|
|
239
|
+
|
|
240
|
+
<List background="light">
|
|
241
|
+
<List.Item
|
|
242
|
+
icon={<UserIcon />}
|
|
243
|
+
title="User Profile"
|
|
244
|
+
description="View and edit your profile information"
|
|
245
|
+
/>
|
|
246
|
+
<List.Item
|
|
247
|
+
icon={<SettingsIcon />}
|
|
248
|
+
title="Settings"
|
|
249
|
+
description="Configure application settings"
|
|
250
|
+
/>
|
|
251
|
+
<List.Item
|
|
252
|
+
icon={<HelpIcon />}
|
|
253
|
+
title="Help & Support"
|
|
254
|
+
description="Get assistance and view documentation"
|
|
255
|
+
/>
|
|
256
|
+
</List>
|
|
257
|
+
); };
|
|
267
258
|
|
|
268
259
|
export default LightBackgroundExample;
|
|
269
260
|
` } } />
|
|
@@ -278,28 +269,28 @@ import { ReactComponent as SettingsIcon } from "@webiny/icons/settings.svg";
|
|
|
278
269
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
279
270
|
|
|
280
271
|
const TransparentBackgroundExample = () => {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
};
|
|
272
|
+
return (
|
|
273
|
+
|
|
274
|
+
<div className="bg-neutral-light p-md">
|
|
275
|
+
<List background="transparent">
|
|
276
|
+
<List.Item
|
|
277
|
+
icon={<UserIcon />}
|
|
278
|
+
title="User Profile"
|
|
279
|
+
description="View and edit your profile information"
|
|
280
|
+
/>
|
|
281
|
+
<List.Item
|
|
282
|
+
icon={<SettingsIcon />}
|
|
283
|
+
title="Settings"
|
|
284
|
+
description="Configure application settings"
|
|
285
|
+
/>
|
|
286
|
+
<List.Item
|
|
287
|
+
icon={<HelpIcon />}
|
|
288
|
+
title="Help & Support"
|
|
289
|
+
description="Get assistance and view documentation"
|
|
290
|
+
/>
|
|
291
|
+
</List>
|
|
292
|
+
</div>
|
|
293
|
+
); };
|
|
303
294
|
|
|
304
295
|
export default TransparentBackgroundExample;
|
|
305
296
|
` } } />
|
|
@@ -311,26 +302,26 @@ import React from "react";
|
|
|
311
302
|
import { List } from "@webiny/admin-ui";
|
|
312
303
|
|
|
313
304
|
const WithClickHandlersExample = () => {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
};
|
|
305
|
+
return (
|
|
306
|
+
|
|
307
|
+
<List>
|
|
308
|
+
<List.Item
|
|
309
|
+
title="User Profile"
|
|
310
|
+
description="View and edit your profile information"
|
|
311
|
+
onClick={() => alert("User Profile clicked")}
|
|
312
|
+
/>
|
|
313
|
+
<List.Item
|
|
314
|
+
title="Settings"
|
|
315
|
+
description="Configure application settings"
|
|
316
|
+
onClick={() => alert("Settings clicked")}
|
|
317
|
+
/>
|
|
318
|
+
<List.Item
|
|
319
|
+
title="Help & Support"
|
|
320
|
+
description="Get assistance and view documentation"
|
|
321
|
+
onClick={() => alert("Help & Support clicked")}
|
|
322
|
+
/>
|
|
323
|
+
</List>
|
|
324
|
+
); };
|
|
334
325
|
|
|
335
326
|
export default WithClickHandlersExample;
|
|
336
327
|
` } } />
|
|
@@ -342,7 +333,7 @@ import React, { useState } from "react";
|
|
|
342
333
|
import { List } from "@webiny/admin-ui";
|
|
343
334
|
|
|
344
335
|
const WithSelectedItemExample = () => {
|
|
345
|
-
|
|
336
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
346
337
|
|
|
347
338
|
return (
|
|
348
339
|
<List>
|
|
@@ -366,6 +357,7 @@ const WithSelectedItemExample = () => {
|
|
|
366
357
|
/>
|
|
367
358
|
</List>
|
|
368
359
|
);
|
|
360
|
+
|
|
369
361
|
};
|
|
370
362
|
|
|
371
363
|
export default WithSelectedItemExample;
|
|
@@ -378,27 +370,27 @@ import React from "react";
|
|
|
378
370
|
import { List } from "@webiny/admin-ui";
|
|
379
371
|
|
|
380
372
|
const WithDisabledItemExample = () => {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
};
|
|
373
|
+
return (
|
|
374
|
+
|
|
375
|
+
<List>
|
|
376
|
+
<List.Item
|
|
377
|
+
title="User Profile"
|
|
378
|
+
description="View and edit your profile information"
|
|
379
|
+
onClick={() => alert("User Profile clicked")}
|
|
380
|
+
/>
|
|
381
|
+
<List.Item
|
|
382
|
+
title="Settings"
|
|
383
|
+
description="Configure application settings"
|
|
384
|
+
disabled={true}
|
|
385
|
+
onClick={() => alert("This alert won't show because the item is disabled")}
|
|
386
|
+
/>
|
|
387
|
+
<List.Item
|
|
388
|
+
title="Help & Support"
|
|
389
|
+
description="Get assistance and view documentation"
|
|
390
|
+
onClick={() => alert("Help & Support clicked")}
|
|
391
|
+
/>
|
|
392
|
+
</List>
|
|
393
|
+
); };
|
|
402
394
|
|
|
403
395
|
export default WithDisabledItemExample;
|
|
404
396
|
` } } />
|
|
@@ -410,27 +402,27 @@ import React from "react";
|
|
|
410
402
|
import { List } from "@webiny/admin-ui";
|
|
411
403
|
|
|
412
404
|
const WithActivatedItemExample = () => {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
};
|
|
405
|
+
return (
|
|
406
|
+
|
|
407
|
+
<List>
|
|
408
|
+
<List.Item
|
|
409
|
+
title="User Profile"
|
|
410
|
+
description="View and edit your profile information"
|
|
411
|
+
activated={true}
|
|
412
|
+
onClick={() => console.log("User Profile clicked")}
|
|
413
|
+
/>
|
|
414
|
+
<List.Item
|
|
415
|
+
title="Settings"
|
|
416
|
+
description="Configure application settings"
|
|
417
|
+
onClick={() => console.log("Settings clicked")}
|
|
418
|
+
/>
|
|
419
|
+
<List.Item
|
|
420
|
+
title="Help & Support"
|
|
421
|
+
description="Get assistance and view documentation"
|
|
422
|
+
onClick={() => console.log("Help & Support clicked")}
|
|
423
|
+
/>
|
|
424
|
+
</List>
|
|
425
|
+
); };
|
|
434
426
|
|
|
435
427
|
export default WithActivatedItemExample;
|
|
436
428
|
` } } />
|
|
@@ -443,35 +435,31 @@ import { List } from "@webiny/admin-ui";
|
|
|
443
435
|
import { Avatar } from "@webiny/admin-ui";
|
|
444
436
|
|
|
445
437
|
const WithAvatarExample = () => {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
/>
|
|
472
|
-
</List>
|
|
473
|
-
);
|
|
474
|
-
};
|
|
438
|
+
return (
|
|
439
|
+
|
|
440
|
+
<List>
|
|
441
|
+
<List.Item
|
|
442
|
+
title="List item 1"
|
|
443
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
444
|
+
icon={
|
|
445
|
+
<Avatar
|
|
446
|
+
image={<Avatar.Image src="https://i.pravatar.cc/300?img=1" alt="@webiny" />}
|
|
447
|
+
fallback={<Avatar.Fallback>W</Avatar.Fallback>}
|
|
448
|
+
/>
|
|
449
|
+
}
|
|
450
|
+
/>
|
|
451
|
+
<List.Item
|
|
452
|
+
title="List item 2"
|
|
453
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
454
|
+
icon={
|
|
455
|
+
<Avatar
|
|
456
|
+
image={<Avatar.Image src="https://i.pravatar.cc/300?img=2" alt="@webiny" />}
|
|
457
|
+
fallback={<Avatar.Fallback>W</Avatar.Fallback>}
|
|
458
|
+
/>
|
|
459
|
+
}
|
|
460
|
+
/>
|
|
461
|
+
</List>
|
|
462
|
+
); };
|
|
475
463
|
|
|
476
464
|
export default WithAvatarExample;
|
|
477
465
|
` } } />
|
|
@@ -483,21 +471,21 @@ import React from "react";
|
|
|
483
471
|
import { List } from "@webiny/admin-ui";
|
|
484
472
|
|
|
485
473
|
const WithHandleExample = () => {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
};
|
|
474
|
+
return (
|
|
475
|
+
|
|
476
|
+
<List>
|
|
477
|
+
<List.Item
|
|
478
|
+
title="List Item 1"
|
|
479
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
480
|
+
handle={<List.Item.Handle />}
|
|
481
|
+
/>
|
|
482
|
+
<List.Item
|
|
483
|
+
title="List Item 2"
|
|
484
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
485
|
+
handle={<List.Item.Handle />}
|
|
486
|
+
/>
|
|
487
|
+
</List>
|
|
488
|
+
); };
|
|
501
489
|
|
|
502
490
|
export default WithHandleExample;
|
|
503
491
|
` } } />
|
|
@@ -514,39 +502,39 @@ import { ReactComponent as MoreIcon } from "@webiny/icons/more_vert.svg";
|
|
|
514
502
|
import { ReactComponent as ChartIcon } from "@webiny/icons/insert_chart.svg";
|
|
515
503
|
|
|
516
504
|
const WithActionsExample = () => {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
};
|
|
505
|
+
return (
|
|
506
|
+
|
|
507
|
+
<List>
|
|
508
|
+
<List.Item
|
|
509
|
+
title="List Item 1"
|
|
510
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
511
|
+
icon={<List.Item.Icon icon={<ChartIcon />} label={"Chart"} />}
|
|
512
|
+
actions={
|
|
513
|
+
<>
|
|
514
|
+
<List.Item.Action icon={<EditIcon />} />
|
|
515
|
+
<List.Item.Action icon={<TrashIcon />} />
|
|
516
|
+
<List.Item.Action.Separator />
|
|
517
|
+
<List.Item.Action icon={<OpenIcon />} />
|
|
518
|
+
<List.Item.Action icon={<MoreIcon />} />
|
|
519
|
+
</>
|
|
520
|
+
}
|
|
521
|
+
/>
|
|
522
|
+
<List.Item
|
|
523
|
+
title="List Item 2"
|
|
524
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
525
|
+
icon={<List.Item.Icon icon={<ChartIcon />} label={"Chart"} />}
|
|
526
|
+
actions={
|
|
527
|
+
<>
|
|
528
|
+
<List.Item.Action icon={<EditIcon />} />
|
|
529
|
+
<List.Item.Action icon={<TrashIcon />} />
|
|
530
|
+
<List.Item.Action.Separator />
|
|
531
|
+
<List.Item.Action icon={<OpenIcon />} />
|
|
532
|
+
<List.Item.Action icon={<MoreIcon />} />
|
|
533
|
+
</>
|
|
534
|
+
}
|
|
535
|
+
/>
|
|
536
|
+
</List>
|
|
537
|
+
); };
|
|
550
538
|
|
|
551
539
|
export default WithActionsExample;
|
|
552
540
|
` } } />
|
|
@@ -558,14 +546,14 @@ import React from "react";
|
|
|
558
546
|
import { List } from "@webiny/admin-ui";
|
|
559
547
|
|
|
560
548
|
const WithBaseBackgroundExample = () => {
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
};
|
|
549
|
+
return (
|
|
550
|
+
|
|
551
|
+
<List background="base">
|
|
552
|
+
<List.Item title="List Item 1" />
|
|
553
|
+
<List.Item title="List Item 2" />
|
|
554
|
+
<List.Item title="List Item 3" />
|
|
555
|
+
</List>
|
|
556
|
+
); };
|
|
569
557
|
|
|
570
558
|
export default WithBaseBackgroundExample;
|
|
571
559
|
` } } />
|
|
@@ -577,14 +565,14 @@ import React from "react";
|
|
|
577
565
|
import { List } from "@webiny/admin-ui";
|
|
578
566
|
|
|
579
567
|
const WithUnderlineVariantExample = () => {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
};
|
|
568
|
+
return (
|
|
569
|
+
|
|
570
|
+
<List variant="underline">
|
|
571
|
+
<List.Item title="List Item 1" />
|
|
572
|
+
<List.Item title="List Item 2" />
|
|
573
|
+
<List.Item title="List Item 3" />
|
|
574
|
+
</List>
|
|
575
|
+
); };
|
|
588
576
|
|
|
589
577
|
export default WithUnderlineVariantExample;
|
|
590
578
|
` } } />
|