@webiny/admin-ui 6.2.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.
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/Tabs/Tabs.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 Tabs from './Tabs.stories';
3
+ import * as Tabs from "./Tabs.stories";
4
4
 
5
5
  <Meta of={Tabs} />
6
6
 
@@ -15,49 +15,49 @@ import React from "react";
15
15
  import { Tabs } from "@webiny/admin-ui";
16
16
 
17
17
  const TabsExample = () => {
18
- return (
19
- <Tabs
20
- size="md"
21
- spacing="lg"
22
- separator={true}
23
- tabs={[
24
- <Tabs.Tab
25
- key="account"
26
- value="account"
27
- trigger="Account"
28
- content="Account settings and personal information"
29
- />,
30
- <Tabs.Tab
31
- key="security"
32
- value="security"
33
- trigger="Security"
34
- content="Security settings and password management"
35
- />,
36
- <Tabs.Tab
37
- key="preferences"
38
- value="preferences"
39
- trigger="Preferences"
40
- content="User interface preferences and customization"
41
- />
42
- ]}
43
- />
44
- );
45
- };
18
+ return (
19
+
20
+ <Tabs
21
+ size="md"
22
+ spacing="lg"
23
+ separator={true}
24
+ tabs={[
25
+ <Tabs.Tab
26
+ key="account"
27
+ value="account"
28
+ trigger="Account"
29
+ content="Account settings and personal information"
30
+ />,
31
+ <Tabs.Tab
32
+ key="security"
33
+ value="security"
34
+ trigger="Security"
35
+ content="Security settings and password management"
36
+ />,
37
+ <Tabs.Tab
38
+ key="preferences"
39
+ value="preferences"
40
+ trigger="Preferences"
41
+ content="User interface preferences and customization"
42
+ />
43
+ ]}
44
+ />
45
+ ); };
46
46
 
47
47
  export default TabsExample;
48
48
 
49
49
  ` } }
50
- additionalActions={[
51
- {
52
- title: 'Open in GitHub',
53
- onClick: () => {
54
- window.open(
55
- 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Tabs/Tabs.tsx',
56
- '_blank'
57
- );
58
- },
59
- }
60
- ]}
50
+ additionalActions={[
51
+ {
52
+ title: 'Open in GitHub',
53
+ onClick: () => {
54
+ window.open(
55
+ 'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Tabs/Tabs.tsx',
56
+ '_blank'
57
+ );
58
+ },
59
+ }
60
+ ]}
61
61
  />
62
62
 
63
63
  <Controls of={Tabs.Documentation} />
@@ -67,33 +67,33 @@ import React from "react";
67
67
  import { Tabs } from "@webiny/admin-ui";
68
68
 
69
69
  const TabsExample = () => {
70
- return (
71
- <Tabs
72
- size="md"
73
- spacing="lg"
74
- separator={true}
75
- tabs={[
76
- <Tabs.Tab
77
- key="account"
78
- value="account"
79
- trigger="Account"
80
- content="Account settings and personal information"
81
- />,
82
- <Tabs.Tab
83
- key="security"
84
- value="security"
85
- trigger="Security"
86
- content="Security settings and password management"
87
- />,
88
- <Tabs.Tab
89
- key="preferences"
90
- value="preferences"
91
- trigger="Preferences"
92
- content="User interface preferences and customization"
93
- />
94
- ]}
70
+ return (
71
+ <Tabs
72
+ size="md"
73
+ spacing="lg"
74
+ separator={true}
75
+ tabs={[
76
+ <Tabs.Tab
77
+ key="account"
78
+ value="account"
79
+ trigger="Account"
80
+ content="Account settings and personal information"
81
+ />,
82
+ <Tabs.Tab
83
+ key="security"
84
+ value="security"
85
+ trigger="Security"
86
+ content="Security settings and password management"
87
+ />,
88
+ <Tabs.Tab
89
+ key="preferences"
90
+ value="preferences"
91
+ trigger="Preferences"
92
+ content="User interface preferences and customization"
95
93
  />
96
- );
94
+ ]}
95
+ />
96
+ );
97
97
  };
98
98
 
99
99
  export default TabsExample;
@@ -108,25 +108,25 @@ import React from "react";
108
108
  import { Tabs } from "@webiny/admin-ui";
109
109
 
110
110
  const DefaultTabsExample = () => {
111
- return (
112
- <Tabs
113
- tabs={[
114
- <Tabs.Tab
115
- key="account"
116
- value="account"
117
- trigger="Account"
118
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
119
- />,
120
- <Tabs.Tab
121
- key="password"
122
- value="password"
123
- trigger="Password"
124
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
125
- />
126
- ]}
127
- />
128
- );
129
- };
111
+ return (
112
+
113
+ <Tabs
114
+ tabs={[
115
+ <Tabs.Tab
116
+ key="account"
117
+ value="account"
118
+ trigger="Account"
119
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
120
+ />,
121
+ <Tabs.Tab
122
+ key="password"
123
+ value="password"
124
+ trigger="Password"
125
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
126
+ />
127
+ ]}
128
+ />
129
+ ); };
130
130
 
131
131
  export default DefaultTabsExample;
132
132
  ` } } />
@@ -140,26 +140,26 @@ import React from "react";
140
140
  import { Tabs } from "@webiny/admin-ui";
141
141
 
142
142
  const SmallTabsExample = () => {
143
- return (
144
- <Tabs
145
- size="sm"
146
- tabs={[
147
- <Tabs.Tab
148
- key="account"
149
- value="account"
150
- trigger="Account"
151
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
152
- />,
153
- <Tabs.Tab
154
- key="password"
155
- value="password"
156
- trigger="Password"
157
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
158
- />
159
- ]}
160
- />
161
- );
162
- };
143
+ return (
144
+
145
+ <Tabs
146
+ size="sm"
147
+ tabs={[
148
+ <Tabs.Tab
149
+ key="account"
150
+ value="account"
151
+ trigger="Account"
152
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
153
+ />,
154
+ <Tabs.Tab
155
+ key="password"
156
+ value="password"
157
+ trigger="Password"
158
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
159
+ />
160
+ ]}
161
+ />
162
+ ); };
163
163
 
164
164
  export default SmallTabsExample;
165
165
  ` } } />
@@ -171,26 +171,26 @@ import React from "react";
171
171
  import { Tabs } from "@webiny/admin-ui";
172
172
 
173
173
  const MediumTabsExample = () => {
174
- return (
175
- <Tabs
176
- size="md"
177
- tabs={[
178
- <Tabs.Tab
179
- key="account"
180
- value="account"
181
- trigger="Account"
182
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
183
- />,
184
- <Tabs.Tab
185
- key="password"
186
- value="password"
187
- trigger="Password"
188
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
189
- />
190
- ]}
191
- />
192
- );
193
- };
174
+ return (
175
+
176
+ <Tabs
177
+ size="md"
178
+ tabs={[
179
+ <Tabs.Tab
180
+ key="account"
181
+ value="account"
182
+ trigger="Account"
183
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
184
+ />,
185
+ <Tabs.Tab
186
+ key="password"
187
+ value="password"
188
+ trigger="Password"
189
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
190
+ />
191
+ ]}
192
+ />
193
+ ); };
194
194
 
195
195
  export default MediumTabsExample;
196
196
  ` } } />
@@ -202,26 +202,26 @@ import React from "react";
202
202
  import { Tabs } from "@webiny/admin-ui";
203
203
 
204
204
  const LargeTabsExample = () => {
205
- return (
206
- <Tabs
207
- size="lg"
208
- tabs={[
209
- <Tabs.Tab
210
- key="account"
211
- value="account"
212
- trigger="Account"
213
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
214
- />,
215
- <Tabs.Tab
216
- key="password"
217
- value="password"
218
- trigger="Password"
219
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
220
- />
221
- ]}
222
- />
223
- );
224
- };
205
+ return (
206
+
207
+ <Tabs
208
+ size="lg"
209
+ tabs={[
210
+ <Tabs.Tab
211
+ key="account"
212
+ value="account"
213
+ trigger="Account"
214
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
215
+ />,
216
+ <Tabs.Tab
217
+ key="password"
218
+ value="password"
219
+ trigger="Password"
220
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
221
+ />
222
+ ]}
223
+ />
224
+ ); };
225
225
 
226
226
  export default LargeTabsExample;
227
227
  ` } } />
@@ -233,26 +233,26 @@ import React from "react";
233
233
  import { Tabs } from "@webiny/admin-ui";
234
234
 
235
235
  const ExtraLargeTabsExample = () => {
236
- return (
237
- <Tabs
238
- size="xl"
239
- tabs={[
240
- <Tabs.Tab
241
- key="account"
242
- value="account"
243
- trigger="Account"
244
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
245
- />,
246
- <Tabs.Tab
247
- key="password"
248
- value="password"
249
- trigger="Password"
250
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
251
- />
252
- ]}
253
- />
254
- );
255
- };
236
+ return (
237
+
238
+ <Tabs
239
+ size="xl"
240
+ tabs={[
241
+ <Tabs.Tab
242
+ key="account"
243
+ value="account"
244
+ trigger="Account"
245
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
246
+ />,
247
+ <Tabs.Tab
248
+ key="password"
249
+ value="password"
250
+ trigger="Password"
251
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
252
+ />
253
+ ]}
254
+ />
255
+ ); };
256
256
 
257
257
  export default ExtraLargeTabsExample;
258
258
  ` } } />
@@ -264,26 +264,26 @@ import React from "react";
264
264
  import { Tabs } from "@webiny/admin-ui";
265
265
 
266
266
  const SpacingMediumExample = () => {
267
- return (
268
- <Tabs
269
- spacing="md"
270
- tabs={[
271
- <Tabs.Tab
272
- key="account"
273
- value="account"
274
- trigger="Account"
275
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
276
- />,
277
- <Tabs.Tab
278
- key="password"
279
- value="password"
280
- trigger="Password"
281
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
282
- />
283
- ]}
284
- />
285
- );
286
- };
267
+ return (
268
+
269
+ <Tabs
270
+ spacing="md"
271
+ tabs={[
272
+ <Tabs.Tab
273
+ key="account"
274
+ value="account"
275
+ trigger="Account"
276
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
277
+ />,
278
+ <Tabs.Tab
279
+ key="password"
280
+ value="password"
281
+ trigger="Password"
282
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
283
+ />
284
+ ]}
285
+ />
286
+ ); };
287
287
 
288
288
  export default SpacingMediumExample;
289
289
  ` } } />
@@ -295,26 +295,26 @@ import React from "react";
295
295
  import { Tabs } from "@webiny/admin-ui";
296
296
 
297
297
  const WithSeparatorExample = () => {
298
- return (
299
- <Tabs
300
- separator={true}
301
- tabs={[
302
- <Tabs.Tab
303
- key="account"
304
- value="account"
305
- trigger="Account"
306
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
307
- />,
308
- <Tabs.Tab
309
- key="password"
310
- value="password"
311
- trigger="Password"
312
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
313
- />
314
- ]}
315
- />
316
- );
317
- };
298
+ return (
299
+
300
+ <Tabs
301
+ separator={true}
302
+ tabs={[
303
+ <Tabs.Tab
304
+ key="account"
305
+ value="account"
306
+ trigger="Account"
307
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
308
+ />,
309
+ <Tabs.Tab
310
+ key="password"
311
+ value="password"
312
+ trigger="Password"
313
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
314
+ />
315
+ ]}
316
+ />
317
+ ); };
318
318
 
319
319
  export default WithSeparatorExample;
320
320
  ` } } />
@@ -326,26 +326,26 @@ import React from "react";
326
326
  import { Tabs } from "@webiny/admin-ui";
327
327
 
328
328
  const WithDefaultValueExample = () => {
329
- return (
330
- <Tabs
331
- defaultValue="password"
332
- tabs={[
333
- <Tabs.Tab
334
- key="account"
335
- value="account"
336
- trigger="Account"
337
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
338
- />,
339
- <Tabs.Tab
340
- key="password"
341
- value="password"
342
- trigger="Password"
343
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
344
- />
345
- ]}
346
- />
347
- );
348
- };
329
+ return (
330
+
331
+ <Tabs
332
+ defaultValue="password"
333
+ tabs={[
334
+ <Tabs.Tab
335
+ key="account"
336
+ value="account"
337
+ trigger="Account"
338
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
339
+ />,
340
+ <Tabs.Tab
341
+ key="password"
342
+ value="password"
343
+ trigger="Password"
344
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
345
+ />
346
+ ]}
347
+ />
348
+ ); };
349
349
 
350
350
  export default WithDefaultValueExample;
351
351
  ` } } />
@@ -357,7 +357,7 @@ import React, { useState } from "react";
357
357
  import { Tabs } from "@webiny/admin-ui";
358
358
 
359
359
  const WithControlledValueExample = () => {
360
- const [value, setValue] = useState("password");
360
+ const [value, setValue] = useState("password");
361
361
 
362
362
  return (
363
363
  <Tabs
@@ -379,6 +379,7 @@ const WithControlledValueExample = () => {
379
379
  ]}
380
380
  />
381
381
  );
382
+
382
383
  };
383
384
 
384
385
  export default WithControlledValueExample;
@@ -393,27 +394,27 @@ import { ReactComponent as PersonIcon } from "@webiny/icons/person.svg";
393
394
  import { ReactComponent as LockIcon } from "@webiny/icons/lock.svg";
394
395
 
395
396
  const WithIconsExample = () => {
396
- return (
397
- <Tabs
398
- tabs={[
399
- <Tabs.Tab
400
- key="account"
401
- value="account"
402
- trigger="Account"
403
- icon={<PersonIcon />}
404
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
405
- />,
406
- <Tabs.Tab
407
- key="password"
408
- value="password"
409
- trigger="Password"
410
- icon={<LockIcon />}
411
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
412
- />
413
- ]}
414
- />
415
- );
416
- };
397
+ return (
398
+
399
+ <Tabs
400
+ tabs={[
401
+ <Tabs.Tab
402
+ key="account"
403
+ value="account"
404
+ trigger="Account"
405
+ icon={<PersonIcon />}
406
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
407
+ />,
408
+ <Tabs.Tab
409
+ key="password"
410
+ value="password"
411
+ trigger="Password"
412
+ icon={<LockIcon />}
413
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
414
+ />
415
+ ]}
416
+ />
417
+ ); };
417
418
 
418
419
  export default WithIconsExample;
419
420
  ` } } />
@@ -425,26 +426,26 @@ import React from "react";
425
426
  import { Tabs } from "@webiny/admin-ui";
426
427
 
427
428
  const WithDisabledTabExample = () => {
428
- return (
429
- <Tabs
430
- tabs={[
431
- <Tabs.Tab
432
- key="account"
433
- value="account"
434
- trigger="Account"
435
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
436
- disabled={true}
437
- />,
438
- <Tabs.Tab
439
- key="password"
440
- value="password"
441
- trigger="Password"
442
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
443
- />
444
- ]}
445
- />
446
- );
447
- };
429
+ return (
430
+
431
+ <Tabs
432
+ tabs={[
433
+ <Tabs.Tab
434
+ key="account"
435
+ value="account"
436
+ trigger="Account"
437
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
438
+ disabled={true}
439
+ />,
440
+ <Tabs.Tab
441
+ key="password"
442
+ value="password"
443
+ trigger="Password"
444
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
445
+ />
446
+ ]}
447
+ />
448
+ ); };
448
449
 
449
450
  export default WithDisabledTabExample;
450
451
  ` } } />
@@ -456,26 +457,26 @@ import React from "react";
456
457
  import { Tabs } from "@webiny/admin-ui";
457
458
 
458
459
  const WithHiddenTabExample = () => {
459
- return (
460
- <Tabs
461
- tabs={[
462
- <Tabs.Tab
463
- key="account"
464
- value="account"
465
- trigger="Account"
466
- content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
467
- visible={false}
468
- />,
469
- <Tabs.Tab
470
- key="password"
471
- value="password"
472
- trigger="Password"
473
- content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
474
- />
475
- ]}
476
- />
477
- );
478
- };
460
+ return (
461
+
462
+ <Tabs
463
+ tabs={[
464
+ <Tabs.Tab
465
+ key="account"
466
+ value="account"
467
+ trigger="Account"
468
+ content="Account content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
469
+ visible={false}
470
+ />,
471
+ <Tabs.Tab
472
+ key="password"
473
+ value="password"
474
+ trigger="Password"
475
+ content="Password content - Lorem ipsum dolor sit amet, consectetur adipiscing elit."
476
+ />
477
+ ]}
478
+ />
479
+ ); };
479
480
 
480
481
  export default WithHiddenTabExample;
481
482
  ` } } />
@@ -483,13 +484,17 @@ export default WithHiddenTabExample;
483
484
  ## Anatomy
484
485
 
485
486
  ### Construction
486
- <img src="/images/storybook/tabs/construction.png" alt="Construction"/>
487
+
488
+ <img src="/images/storybook/tabs/construction.png" alt="Construction" />
487
489
 
488
490
  ### Size & States
489
- <img src="/images/storybook/tabs/size-and-states.png" alt="Size & States"/>
491
+
492
+ <img src="/images/storybook/tabs/size-and-states.png" alt="Size & States" />
490
493
 
491
494
  ### Tab Group
492
- <img src="/images/storybook/tabs/tab-group.png" alt="Tab Group"/>
495
+
496
+ <img src="/images/storybook/tabs/tab-group.png" alt="Tab Group" />
493
497
 
494
498
  ## Usage
495
- <img src="/images/storybook/tabs/usage.png" alt="Usage"/>
499
+
500
+ <img src="/images/storybook/tabs/usage.png" alt="Usage" />