@webiny/admin-ui 6.2.0 → 6.3.0-beta.1

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 (161) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.mdx +437 -463
  3. package/Accordion/components/AccordionContent.js.map +1 -1
  4. package/Alert/Alert.d.ts +1 -1
  5. package/Alert/Alert.js.map +1 -1
  6. package/Alert/Alert.mdx +80 -83
  7. package/AutoComplete/AutoComplete.mdx +63 -55
  8. package/Avatar/Avatar.d.ts +1 -1
  9. package/Avatar/Avatar.js.map +1 -1
  10. package/Avatar/Avatar.mdx +52 -43
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js.map +1 -1
  13. package/Button/Button.mdx +50 -42
  14. package/Button/IconButton.d.ts +1 -1
  15. package/Button/IconButton.js.map +1 -1
  16. package/Card/components/CardContent.d.ts +1 -1
  17. package/Card/components/CardTitle.d.ts +1 -1
  18. package/Checkbox/Checkbox.mdx +51 -49
  19. package/Checkbox/primitives/CheckboxPrimitive.d.ts +1 -1
  20. package/CheckboxGroup/CheckboxGroup.mdx +51 -53
  21. package/CodeEditor/CodeEditor.mdx +44 -43
  22. package/ColorPicker/ColorPicker.mdx +41 -40
  23. package/Command/components/Item.d.ts +1 -1
  24. package/Command/components/Item.js.map +1 -1
  25. package/DataTable/DataTable.mdx +537 -542
  26. package/DataTable/components/ColumnSorter.d.ts +1 -1
  27. package/DataTable/components/ColumnSorter.js.map +1 -1
  28. package/Dialog/Dialog.js.map +1 -1
  29. package/Dialog/components/DialogContent.d.ts +1 -1
  30. package/Dialog/components/DialogContent.js +1 -1
  31. package/Dialog/components/DialogContent.js.map +1 -1
  32. package/Dialog/components/DialogFooter.d.ts +1 -1
  33. package/Dialog/components/DialogFooter.js.map +1 -1
  34. package/Dialog/components/DialogTitle.d.ts +1 -1
  35. package/Drawer/Drawer.js.map +1 -1
  36. package/Drawer/Drawer.mdx +73 -64
  37. package/Drawer/components/DrawerContent.d.ts +1 -1
  38. package/Drawer/components/DrawerContent.js.map +1 -1
  39. package/DropdownMenu/DropdownMenu.js.map +1 -1
  40. package/DropdownMenu/DropdownMenu.mdx +155 -256
  41. package/DropdownMenu/components/DropdownMenuCheckboxItem.js.map +1 -1
  42. package/DropdownMenu/components/DropdownMenuLabel.js.map +1 -1
  43. package/FilePicker/FilePicker.mdx +69 -69
  44. package/FilePicker/primitives/FilePickerPrimitive.d.ts +19 -19
  45. package/FilePicker/primitives/FilePickerPrimitive.js.map +1 -1
  46. package/FilePicker/primitives/components/Trigger.d.ts +1 -1
  47. package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +1 -1
  48. package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
  49. package/FilePicker/primitives/components/types.js.map +1 -1
  50. package/FormComponent/Description.d.ts +1 -1
  51. package/FormComponent/ErrorMessage.d.ts +1 -1
  52. package/FormComponent/Note.d.ts +1 -1
  53. package/Grid/Grid.d.ts +2 -2
  54. package/Grid/Grid.js.map +1 -1
  55. package/Grid/Grid.mdx +111 -121
  56. package/HeaderBar/HeaderBar.mdx +98 -99
  57. package/Heading/Heading.d.ts +1 -1
  58. package/Heading/Heading.js.map +1 -1
  59. package/Heading/Heading.mdx +63 -58
  60. package/Icon/Icon.d.ts +1 -1
  61. package/Icon/Icon.js.map +1 -1
  62. package/Icon/Icon.mdx +79 -147
  63. package/IconPicker/IconPicker.mdx +66 -64
  64. package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
  65. package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
  66. package/Image/Image.js.map +1 -1
  67. package/Input/Input.mdx +67 -56
  68. package/Input/InputPrimitive.d.ts +1 -1
  69. package/Label/Label.d.ts +1 -1
  70. package/Label/Label.js.map +1 -1
  71. package/Label/Label.mdx +42 -42
  72. package/Label/components/LabelDescription.d.ts +1 -1
  73. package/Label/components/LabelRequired.d.ts +1 -1
  74. package/Label/components/LabelValue.d.ts +1 -1
  75. package/Link/Link.d.ts +1 -1
  76. package/Link/Link.mdx +129 -116
  77. package/List/List.d.ts +1 -1
  78. package/List/List.js.map +1 -1
  79. package/List/List.mdx +317 -329
  80. package/List/components/ListItem.d.ts +1 -1
  81. package/List/components/ListItem.js.map +1 -1
  82. package/Loader/Loader.d.ts +2 -2
  83. package/Loader/Loader.js.map +1 -1
  84. package/Loader/Loader.mdx +96 -91
  85. package/MultiAutoComplete/MultiAutoComplete.mdx +52 -51
  86. package/MultiAutoComplete/primitives/components/MultiAutoCompleteInput.d.ts +1 -1
  87. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenter.js.map +1 -1
  88. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteListOptionsPresenterWithUniqueValues.js.map +1 -1
  89. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteSelectedOptionsPresenter.js.map +1 -1
  90. package/MultiAutoComplete/primitives/presenters/MultiAutoCompleteTemporaryOptionPresenter.js.map +1 -1
  91. package/MultiFilePicker/MultiFilePicker.mdx +84 -80
  92. package/MultiFilePicker/primitives/MultiFilePickerPrimitive.js.map +1 -1
  93. package/Popover/Popover.mdx +112 -118
  94. package/Popover/primitives/components/PopoverArrow.d.ts +1 -1
  95. package/Popover/primitives/components/PopoverContent.d.ts +1 -1
  96. package/RadioGroup/RadioGroup.mdx +62 -59
  97. package/RadioGroup/primitives/RadioGroupPrimitive.js.map +1 -1
  98. package/RangeSlider/RangeSlider.mdx +48 -47
  99. package/RangeSlider/primitives/RangeSliderPrimitive.js.map +1 -1
  100. package/RangeSlider/primitives/components/RangeSliderValue.d.ts +1 -1
  101. package/RangeSlider/primitives/components/RangeSliderValue.js.map +1 -1
  102. package/ScrollArea/ScrollArea.js.map +1 -1
  103. package/SegmentedControl/SegmentedControl.mdx +59 -59
  104. package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +1 -1
  105. package/SegmentedControl/primitives/SegmentedControlPrimitive.js.map +1 -1
  106. package/Select/Select.mdx +52 -43
  107. package/Select/primitives/components/SelectTrigger.d.ts +1 -1
  108. package/Select/primitives/components/SelectTrigger.js.map +1 -1
  109. package/Select/primitives/presenters/SelectPresenter.d.ts +1 -1
  110. package/Separator/Separator.d.ts +1 -1
  111. package/Separator/Separator.mdx +139 -150
  112. package/Sidebar/Sidebar.js.map +1 -1
  113. package/Sidebar/Sidebar.mdx +66 -88
  114. package/Sidebar/components/items/SidebarMenuSubItemIndentation.d.ts +1 -1
  115. package/Sidebar/components/items/SidebarMenuSubItemIndentation.js.map +1 -1
  116. package/Skeleton/Skeleton.d.ts +1 -1
  117. package/Skeleton/Skeleton.js.map +1 -1
  118. package/Skeleton/Skeleton.mdx +37 -37
  119. package/Slider/Slider.mdx +48 -47
  120. package/Slider/primitives/SliderPrimitive.js.map +1 -1
  121. package/Slider/primitives/components/SliderSideValue.d.ts +1 -1
  122. package/Slider/primitives/components/SliderSideValue.js.map +1 -1
  123. package/Slider/primitives/components/SliderTooltip.d.ts +1 -1
  124. package/SteppedProgress/components/SteppedProgressIcon.d.ts +1 -1
  125. package/SteppedProgress/components/SteppedProgressIcon.js.map +1 -1
  126. package/SteppedProgress/components/SteppedProgressIndicator.d.ts +1 -1
  127. package/SteppedProgress/components/SteppedProgressIndicator.js.map +1 -1
  128. package/Switch/Switch.mdx +44 -42
  129. package/Switch/primitives/SwitchPrimitive.d.ts +1 -1
  130. package/Table/Table.d.ts +1 -1
  131. package/Table/Table.js.map +1 -1
  132. package/Table/components/Direction.d.ts +1 -1
  133. package/Table/components/Direction.js.map +1 -1
  134. package/Table/components/Header.d.ts +1 -1
  135. package/Table/components/Header.js.map +1 -1
  136. package/Table/components/Resizer.d.ts +1 -1
  137. package/Table/components/Resizer.js.map +1 -1
  138. package/Table/components/Row.d.ts +1 -1
  139. package/Table/components/Row.js.map +1 -1
  140. package/Tabs/Tabs.mdx +297 -292
  141. package/Tabs/components/Content.d.ts +1 -1
  142. package/Tabs/components/List.d.ts +1 -1
  143. package/Tabs/components/Trigger.d.ts +1 -1
  144. package/Tag/Tag.d.ts +1 -1
  145. package/Tag/Tag.js.map +1 -1
  146. package/Tag/Tag.mdx +68 -64
  147. package/Tags/primitives/TagsPrimitive.js.map +1 -1
  148. package/Text/Text.d.ts +1 -1
  149. package/Text/Text.mdx +54 -48
  150. package/Textarea/Textarea.mdx +49 -39
  151. package/Textarea/TextareaPrimitive.d.ts +1 -1
  152. package/Textarea/TextareaPrimitive.js.map +1 -1
  153. package/Toast/Toast.mdx +63 -53
  154. package/Toast/components/ToastRoot.d.ts +1 -1
  155. package/Tooltip/Tooltip.mdx +197 -198
  156. package/Tooltip/components/TooltipArrow.d.ts +1 -1
  157. package/Tooltip/components/TooltipContent.d.ts +1 -1
  158. package/Tree/components/Item.d.ts +1 -1
  159. package/Tree/useTree.d.ts +1 -1
  160. package/Widget/components/WidgetContent.d.ts +1 -1
  161. package/package.json +15 -15
package/List/List.mdx CHANGED
@@ -1,6 +1,6 @@
1
- import { Canvas, Meta, Controls } from '@storybook/addon-docs/blocks';
1
+ import { Canvas, Meta, Controls } from "@storybook/addon-docs/blocks";
2
2
 
3
- import * as ListStories from './List.stories';
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
- return (
22
- <List variant="underline" background="base">
23
- <List.Item
24
- icon={<UserIcon />}
25
- title="User Profile"
26
- description="View and edit your profile information"
27
- onClick={() => console.log("User Profile clicked")}
28
- />
29
- <List.Item
30
- icon={<SettingsIcon />}
31
- title="Settings"
32
- description="Configure application settings"
33
- onClick={() => console.log("Settings clicked")}
34
- />
35
- <List.Item
36
- icon={<HelpIcon />}
37
- title="Help & Support"
38
- description="Get assistance and view documentation"
39
- onClick={() => console.log("Help & Support clicked")}
40
- />
41
- </List>
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
- 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
- ]}
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
- 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
- );
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
- return (
108
- <List>
109
- <List.Item title="Item 1" />
110
- <List.Item title="Item 2" />
111
- <List.Item title="Item 3" />
112
- </List>
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
- return (
130
- <List>
131
- <List.Item icon={<UserIcon />} title="User Profile" />
132
- <List.Item icon={<SettingsIcon />} title="Settings" />
133
- <List.Item icon={<HelpIcon />} title="Help & Support" />
134
- </List>
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
- return (
149
- <List>
150
- <List.Item
151
- title="User Profile"
152
- description="View and edit your profile information"
153
- />
154
- <List.Item
155
- title="Settings"
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
- return (
180
- <List>
181
- <List.Item
182
- icon={<UserIcon />}
183
- title="User Profile"
184
- description="View and edit your profile information"
185
- />
186
- <List.Item
187
- icon={<SettingsIcon />}
188
- title="Settings"
189
- description="Configure application settings"
190
- />
191
- <List.Item
192
- icon={<HelpIcon />}
193
- title="Help & Support"
194
- description="Get assistance and view documentation"
195
- />
196
- </List>
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
- return (
214
- <List variant="container">
215
- <List.Item
216
- icon={<UserIcon />}
217
- title="User Profile"
218
- description="View and edit your profile information"
219
- />
220
- <List.Item
221
- icon={<SettingsIcon />}
222
- title="Settings"
223
- description="Configure application settings"
224
- />
225
- <List.Item
226
- icon={<HelpIcon />}
227
- title="Help & Support"
228
- description="Get assistance and view documentation"
229
- />
230
- </List>
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
- return (
248
- <List background="light">
249
- <List.Item
250
- icon={<UserIcon />}
251
- title="User Profile"
252
- description="View and edit your profile information"
253
- />
254
- <List.Item
255
- icon={<SettingsIcon />}
256
- title="Settings"
257
- description="Configure application settings"
258
- />
259
- <List.Item
260
- icon={<HelpIcon />}
261
- title="Help & Support"
262
- description="Get assistance and view documentation"
263
- />
264
- </List>
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
- return (
282
- <div className="bg-neutral-light p-md">
283
- <List background="transparent">
284
- <List.Item
285
- icon={<UserIcon />}
286
- title="User Profile"
287
- description="View and edit your profile information"
288
- />
289
- <List.Item
290
- icon={<SettingsIcon />}
291
- title="Settings"
292
- description="Configure application settings"
293
- />
294
- <List.Item
295
- icon={<HelpIcon />}
296
- title="Help & Support"
297
- description="Get assistance and view documentation"
298
- />
299
- </List>
300
- </div>
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
- return (
315
- <List>
316
- <List.Item
317
- title="User Profile"
318
- description="View and edit your profile information"
319
- onClick={() => alert("User Profile clicked")}
320
- />
321
- <List.Item
322
- title="Settings"
323
- description="Configure application settings"
324
- onClick={() => alert("Settings clicked")}
325
- />
326
- <List.Item
327
- title="Help & Support"
328
- description="Get assistance and view documentation"
329
- onClick={() => alert("Help & Support clicked")}
330
- />
331
- </List>
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
- const [selectedIndex, setSelectedIndex] = useState(0);
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
- return (
382
- <List>
383
- <List.Item
384
- title="User Profile"
385
- description="View and edit your profile information"
386
- onClick={() => alert("User Profile clicked")}
387
- />
388
- <List.Item
389
- title="Settings"
390
- description="Configure application settings"
391
- disabled={true}
392
- onClick={() => alert("This alert won't show because the item is disabled")}
393
- />
394
- <List.Item
395
- title="Help & Support"
396
- description="Get assistance and view documentation"
397
- onClick={() => alert("Help & Support clicked")}
398
- />
399
- </List>
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
- return (
414
- <List>
415
- <List.Item
416
- title="User Profile"
417
- description="View and edit your profile information"
418
- activated={true}
419
- onClick={() => console.log("User Profile clicked")}
420
- />
421
- <List.Item
422
- title="Settings"
423
- description="Configure application settings"
424
- onClick={() => console.log("Settings clicked")}
425
- />
426
- <List.Item
427
- title="Help & Support"
428
- description="Get assistance and view documentation"
429
- onClick={() => console.log("Help & Support clicked")}
430
- />
431
- </List>
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
- return (
447
- <List>
448
- <List.Item
449
- title="List item 1"
450
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
451
- icon={
452
- <Avatar
453
- image={
454
- <Avatar.Image src="https://i.pravatar.cc/300?img=1" alt="@webiny" />
455
- }
456
- fallback={<Avatar.Fallback>W</Avatar.Fallback>}
457
- />
458
- }
459
- />
460
- <List.Item
461
- title="List item 2"
462
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
463
- icon={
464
- <Avatar
465
- image={
466
- <Avatar.Image src="https://i.pravatar.cc/300?img=2" alt="@webiny" />
467
- }
468
- fallback={<Avatar.Fallback>W</Avatar.Fallback>}
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
- return (
487
- <List>
488
- <List.Item
489
- title="List Item 1"
490
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
491
- handle={<List.Item.Handle />}
492
- />
493
- <List.Item
494
- title="List Item 2"
495
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
496
- handle={<List.Item.Handle />}
497
- />
498
- </List>
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
- return (
518
- <List>
519
- <List.Item
520
- title="List Item 1"
521
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
522
- icon={<List.Item.Icon icon={<ChartIcon />} label={"Chart"} />}
523
- actions={
524
- <>
525
- <List.Item.Action icon={<EditIcon />} />
526
- <List.Item.Action icon={<TrashIcon />} />
527
- <List.Item.Action.Separator />
528
- <List.Item.Action icon={<OpenIcon />} />
529
- <List.Item.Action icon={<MoreIcon />} />
530
- </>
531
- }
532
- />
533
- <List.Item
534
- title="List Item 2"
535
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
536
- icon={<List.Item.Icon icon={<ChartIcon />} label={"Chart"} />}
537
- actions={
538
- <>
539
- <List.Item.Action icon={<EditIcon />} />
540
- <List.Item.Action icon={<TrashIcon />} />
541
- <List.Item.Action.Separator />
542
- <List.Item.Action icon={<OpenIcon />} />
543
- <List.Item.Action icon={<MoreIcon />} />
544
- </>
545
- }
546
- />
547
- </List>
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
- return (
562
- <List background="base">
563
- <List.Item title="List Item 1" />
564
- <List.Item title="List Item 2" />
565
- <List.Item title="List Item 3" />
566
- </List>
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
- return (
581
- <List variant="underline">
582
- <List.Item title="List Item 1" />
583
- <List.Item title="List Item 2" />
584
- <List.Item title="List Item 3" />
585
- </List>
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
  ` } } />