@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/Tooltip/Tooltip.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 TooltipStories from
|
|
3
|
+
import * as TooltipStories from "./Tooltip.stories";
|
|
4
4
|
|
|
5
5
|
<Meta of={TooltipStories} />
|
|
6
6
|
|
|
@@ -15,39 +15,39 @@ import React from "react";
|
|
|
15
15
|
import { Tooltip } from "@webiny/admin-ui";
|
|
16
16
|
|
|
17
17
|
const TooltipExample = () => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
18
|
+
return (
|
|
19
|
+
|
|
20
|
+
<Tooltip.Provider>
|
|
21
|
+
<Tooltip
|
|
22
|
+
trigger={<p>Tooltip trigger</p>}
|
|
23
|
+
content={
|
|
24
|
+
<>
|
|
25
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra sit
|
|
26
|
+
amet massa sagittis sollicitudin.
|
|
27
|
+
</>
|
|
28
|
+
}
|
|
29
|
+
align="center"
|
|
30
|
+
side="top"
|
|
31
|
+
variant="accent"
|
|
32
|
+
showArrow={true}
|
|
33
|
+
/>
|
|
34
|
+
</Tooltip.Provider>
|
|
35
|
+
); };
|
|
36
36
|
|
|
37
37
|
export default TooltipExample;
|
|
38
38
|
|
|
39
39
|
` } }
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
additionalActions={[
|
|
41
|
+
{
|
|
42
|
+
title: 'Open in GitHub',
|
|
43
|
+
onClick: () => {
|
|
44
|
+
window.open(
|
|
45
|
+
'https://github.com/webiny/webiny-js/blob/feat/new-admin-ui/packages/admin-ui/src/Tooltip/Tooltip.tsx',
|
|
46
|
+
'_blank'
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
]}
|
|
51
51
|
/>
|
|
52
52
|
|
|
53
53
|
<Controls of={TooltipStories.Documentation} />
|
|
@@ -57,23 +57,23 @@ import React from "react";
|
|
|
57
57
|
import { Tooltip } from "@webiny/admin-ui";
|
|
58
58
|
|
|
59
59
|
const TooltipExample = () => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
return (
|
|
61
|
+
<Tooltip.Provider>
|
|
62
|
+
<Tooltip
|
|
63
|
+
trigger={<p>Tooltip trigger</p>}
|
|
64
|
+
content={
|
|
65
|
+
<>
|
|
66
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra
|
|
67
|
+
sit amet massa sagittis sollicitudin.
|
|
68
|
+
</>
|
|
69
|
+
}
|
|
70
|
+
align="center"
|
|
71
|
+
side="top"
|
|
72
|
+
variant="accent"
|
|
73
|
+
showArrow={true}
|
|
74
|
+
/>
|
|
75
|
+
</Tooltip.Provider>
|
|
76
|
+
);
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
export default TooltipExample;
|
|
@@ -90,20 +90,20 @@ import React from "react";
|
|
|
90
90
|
import { Tooltip } from "@webiny/admin-ui";
|
|
91
91
|
|
|
92
92
|
const BasicTooltipExample = () => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
93
|
+
return (
|
|
94
|
+
|
|
95
|
+
<Tooltip.Provider>
|
|
96
|
+
<Tooltip
|
|
97
|
+
trigger={<p>Tooltip trigger</p>}
|
|
98
|
+
content={
|
|
99
|
+
<>
|
|
100
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra sit
|
|
101
|
+
amet massa sagittis sollicitudin.
|
|
102
|
+
</>
|
|
103
|
+
}
|
|
104
|
+
/>
|
|
105
|
+
</Tooltip.Provider>
|
|
106
|
+
); };
|
|
107
107
|
|
|
108
108
|
export default BasicTooltipExample;
|
|
109
109
|
` } } />
|
|
@@ -117,21 +117,21 @@ import React from "react";
|
|
|
117
117
|
import { Tooltip } from "@webiny/admin-ui";
|
|
118
118
|
|
|
119
119
|
const AccentVariantExample = () => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
};
|
|
120
|
+
return (
|
|
121
|
+
|
|
122
|
+
<Tooltip.Provider>
|
|
123
|
+
<Tooltip
|
|
124
|
+
trigger={<p>Tooltip trigger</p>}
|
|
125
|
+
content={
|
|
126
|
+
<>
|
|
127
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra sit
|
|
128
|
+
amet massa sagittis sollicitudin.
|
|
129
|
+
</>
|
|
130
|
+
}
|
|
131
|
+
variant="accent"
|
|
132
|
+
/>
|
|
133
|
+
</Tooltip.Provider>
|
|
134
|
+
); };
|
|
135
135
|
|
|
136
136
|
export default AccentVariantExample;
|
|
137
137
|
` } } />
|
|
@@ -145,21 +145,21 @@ import React from "react";
|
|
|
145
145
|
import { Tooltip } from "@webiny/admin-ui";
|
|
146
146
|
|
|
147
147
|
const SubtleVariantExample = () => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
};
|
|
148
|
+
return (
|
|
149
|
+
|
|
150
|
+
<Tooltip.Provider>
|
|
151
|
+
<Tooltip
|
|
152
|
+
trigger={<p>Tooltip trigger</p>}
|
|
153
|
+
content={
|
|
154
|
+
<>
|
|
155
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra sit
|
|
156
|
+
amet massa sagittis sollicitudin.
|
|
157
|
+
</>
|
|
158
|
+
}
|
|
159
|
+
variant="subtle"
|
|
160
|
+
/>
|
|
161
|
+
</Tooltip.Provider>
|
|
162
|
+
); };
|
|
163
163
|
|
|
164
164
|
export default SubtleVariantExample;
|
|
165
165
|
` } } />
|
|
@@ -173,21 +173,21 @@ import React from "react";
|
|
|
173
173
|
import { Tooltip } from "@webiny/admin-ui";
|
|
174
174
|
|
|
175
175
|
const WithoutArrowExample = () => {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
};
|
|
176
|
+
return (
|
|
177
|
+
|
|
178
|
+
<Tooltip.Provider>
|
|
179
|
+
<Tooltip
|
|
180
|
+
trigger={<p>Tooltip trigger</p>}
|
|
181
|
+
content={
|
|
182
|
+
<>
|
|
183
|
+
<strong>Lorem ipsum dolor sit amet</strong>, consectetur adipiscing elit. Donec viverra sit
|
|
184
|
+
amet massa sagittis sollicitudin.
|
|
185
|
+
</>
|
|
186
|
+
}
|
|
187
|
+
showArrow={false}
|
|
188
|
+
/>
|
|
189
|
+
</Tooltip.Provider>
|
|
190
|
+
); };
|
|
191
191
|
|
|
192
192
|
export default WithoutArrowExample;
|
|
193
193
|
` } } />
|
|
@@ -202,15 +202,15 @@ import { Tooltip, Icon } from "@webiny/admin-ui";
|
|
|
202
202
|
import { ReactComponent as InfoIcon } from "@webiny/icons/info.svg";
|
|
203
203
|
|
|
204
204
|
const WithIconTriggerExample = () => {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
};
|
|
205
|
+
return (
|
|
206
|
+
|
|
207
|
+
<Tooltip.Provider>
|
|
208
|
+
<Tooltip
|
|
209
|
+
trigger={<Icon icon={<InfoIcon />} label="Information" />}
|
|
210
|
+
content="This is a helpful tooltip"
|
|
211
|
+
/>
|
|
212
|
+
</Tooltip.Provider>
|
|
213
|
+
); };
|
|
214
214
|
|
|
215
215
|
export default WithIconTriggerExample;
|
|
216
216
|
` } } />
|
|
@@ -224,33 +224,33 @@ import React from "react";
|
|
|
224
224
|
import { Tooltip } from "@webiny/admin-ui";
|
|
225
225
|
|
|
226
226
|
const PositioningExample = () => {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
};
|
|
227
|
+
return (
|
|
228
|
+
|
|
229
|
+
<Tooltip.Provider>
|
|
230
|
+
<div className="flex justify-center items-center h-48">
|
|
231
|
+
<Tooltip
|
|
232
|
+
trigger={<p> Top </p>}
|
|
233
|
+
content={<div>Tooltip on top</div>}
|
|
234
|
+
side="top"
|
|
235
|
+
/>
|
|
236
|
+
<Tooltip
|
|
237
|
+
trigger={<p> Right </p>}
|
|
238
|
+
content={<div>Tooltip on right</div>}
|
|
239
|
+
side="right"
|
|
240
|
+
/>
|
|
241
|
+
<Tooltip
|
|
242
|
+
trigger={<p> Bottom </p>}
|
|
243
|
+
content={<div>Tooltip on bottom</div>}
|
|
244
|
+
side="bottom"
|
|
245
|
+
/>
|
|
246
|
+
<Tooltip
|
|
247
|
+
trigger={<p> Left </p>}
|
|
248
|
+
content={<div>Tooltip on left</div>}
|
|
249
|
+
side="left"
|
|
250
|
+
/>
|
|
251
|
+
</div>
|
|
252
|
+
</Tooltip.Provider>
|
|
253
|
+
); };
|
|
254
254
|
|
|
255
255
|
export default PositioningExample;
|
|
256
256
|
` } } />
|
|
@@ -264,28 +264,28 @@ import React from "react";
|
|
|
264
264
|
import { Tooltip } from "@webiny/admin-ui";
|
|
265
265
|
|
|
266
266
|
const AlignmentExample = () => {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
};
|
|
267
|
+
return (
|
|
268
|
+
|
|
269
|
+
<Tooltip.Provider>
|
|
270
|
+
<div className="flex justify-center items-center h-48">
|
|
271
|
+
<Tooltip
|
|
272
|
+
trigger={<p> Start </p>}
|
|
273
|
+
content={<div>Aligned to start</div>}
|
|
274
|
+
align="start"
|
|
275
|
+
/>
|
|
276
|
+
<Tooltip
|
|
277
|
+
trigger={<p> Center </p>}
|
|
278
|
+
content={<div>Aligned to center</div>}
|
|
279
|
+
align="center"
|
|
280
|
+
/>
|
|
281
|
+
<Tooltip
|
|
282
|
+
trigger={<p> End </p>}
|
|
283
|
+
content={<div>Aligned to end</div>}
|
|
284
|
+
align="end"
|
|
285
|
+
/>
|
|
286
|
+
</div>
|
|
287
|
+
</Tooltip.Provider>
|
|
288
|
+
); };
|
|
289
289
|
|
|
290
290
|
export default AlignmentExample;
|
|
291
291
|
` } } />
|
|
@@ -299,15 +299,12 @@ import React from "react";
|
|
|
299
299
|
import { Tooltip, Button } from "@webiny/admin-ui";
|
|
300
300
|
|
|
301
301
|
const WithButtonTriggerExample = () => {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
</Tooltip.Provider>
|
|
309
|
-
);
|
|
310
|
-
};
|
|
302
|
+
return (
|
|
303
|
+
|
|
304
|
+
<Tooltip.Provider>
|
|
305
|
+
<Tooltip trigger={<Button text="Hover me" />} content="This tooltip is triggered by a button" />
|
|
306
|
+
</Tooltip.Provider>
|
|
307
|
+
); };
|
|
311
308
|
|
|
312
309
|
export default WithButtonTriggerExample;
|
|
313
310
|
` } } />
|
|
@@ -321,21 +318,23 @@ import React from "react";
|
|
|
321
318
|
import { Tooltip, Text } from "@webiny/admin-ui";
|
|
322
319
|
|
|
323
320
|
const WithFormattedContentExample = () => {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
321
|
+
return (
|
|
322
|
+
|
|
323
|
+
<Tooltip.Provider>
|
|
324
|
+
<Tooltip
|
|
325
|
+
trigger={<p>Hover for more info</p>}
|
|
326
|
+
content={
|
|
327
|
+
<div className="flex flex-col gap-xs">
|
|
328
|
+
<Text size="sm" className="font-bold">
|
|
329
|
+
Important Information
|
|
330
|
+
</Text>
|
|
331
|
+
<Text size="sm">This tooltip contains formatted content with multiple paragraphs.</Text>
|
|
332
|
+
<Text size="sm">You can include various elements inside tooltips.</Text>
|
|
333
|
+
</div>
|
|
334
|
+
}
|
|
335
|
+
/>
|
|
336
|
+
</Tooltip.Provider>
|
|
337
|
+
); };
|
|
339
338
|
|
|
340
339
|
export default WithFormattedContentExample;
|
|
341
340
|
` } } />
|
|
@@ -350,15 +349,15 @@ import { Tooltip, Icon } from "@webiny/admin-ui";
|
|
|
350
349
|
import { ReactComponent as HelpIcon } from "@webiny/icons/help.svg";
|
|
351
350
|
|
|
352
351
|
const WithHelpIconExample = () => {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
};
|
|
352
|
+
return (
|
|
353
|
+
|
|
354
|
+
<Tooltip.Provider>
|
|
355
|
+
<Tooltip
|
|
356
|
+
trigger={<Icon icon={<HelpIcon />} label="Help" />}
|
|
357
|
+
content="Need help? Contact support at support@example.com"
|
|
358
|
+
/>
|
|
359
|
+
</Tooltip.Provider>
|
|
360
|
+
); };
|
|
362
361
|
|
|
363
362
|
export default WithHelpIconExample;
|
|
364
363
|
` } } />
|
|
@@ -3,7 +3,7 @@ import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
|
3
3
|
import { type VariantProps } from "../../utils.js";
|
|
4
4
|
declare const tooltipArrowVariants: (props?: ({
|
|
5
5
|
variant?: "accent" | "subtle" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type TooltipArrowProps = TooltipPrimitive.TooltipArrowProps & VariantProps<typeof tooltipArrowVariants>;
|
|
8
8
|
declare const TooltipArrow: ({ variant, className, ...props }: TooltipArrowProps) => React.JSX.Element;
|
|
9
9
|
export { TooltipArrow, type TooltipArrowProps };
|
|
@@ -4,7 +4,7 @@ import { type VariantProps } from "../../utils.js";
|
|
|
4
4
|
declare const tooltipContentVariants: (props?: ({
|
|
5
5
|
variant?: "accent" | "subtle" | null | undefined;
|
|
6
6
|
hiddenArrow?: boolean | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type TooltipContentProps = TooltipPrimitive.TooltipContentProps & VariantProps<typeof tooltipContentVariants>;
|
|
9
9
|
declare const TooltipContent: ({ className, variant, hiddenArrow, ...props }: TooltipContentProps) => React.JSX.Element;
|
|
10
10
|
export { TooltipContent, type TooltipContentProps };
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from "../../utils.js";
|
|
|
3
3
|
declare const itemVariants: (props?: ({
|
|
4
4
|
active?: boolean | null | undefined;
|
|
5
5
|
loading?: boolean | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type ItemProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof itemVariants>;
|
|
8
8
|
declare const Item: (({ children, className, active, loading, ...props }: ItemProps) => React.JSX.Element) & {
|
|
9
9
|
original: ({ children, className, active, loading, ...props }: ItemProps) => React.JSX.Element;
|
package/Tree/useTree.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { DropOptions as DndDropOptions, NodeModel } from "@minoru/react-dnd
|
|
|
2
2
|
import type { TreeProps } from "./Tree.js";
|
|
3
3
|
export declare const useTree: <TData = Record<string, any>>(props: TreeProps<TData>) => {
|
|
4
4
|
vm: {
|
|
5
|
-
nodes: import("./
|
|
5
|
+
nodes: import("./index.js").NodeFormatted<TData>[];
|
|
6
6
|
openNodeIds: string[];
|
|
7
7
|
lockedOpenNodeIds: string[];
|
|
8
8
|
loadingNodeIds: string[];
|
|
@@ -4,7 +4,7 @@ declare const widgetContentVariants: (props?: ({
|
|
|
4
4
|
variant?: "accent" | "base" | "light" | null | undefined;
|
|
5
5
|
elevation?: "sm" | "md" | "none" | "lg" | null | undefined;
|
|
6
6
|
outline?: boolean | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface WidgetContentProps extends VariantProps<typeof widgetContentVariants> {
|
|
9
9
|
className?: string;
|
|
10
10
|
children: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/admin-ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"@monaco-editor/react": "4.7.0",
|
|
17
17
|
"@radix-ui/react-scroll-area": "1.2.10",
|
|
18
18
|
"@tanstack/react-table": "8.21.3",
|
|
19
|
-
"@webiny/icons": "6.
|
|
20
|
-
"@webiny/react-composition": "6.
|
|
21
|
-
"@webiny/utils": "6.
|
|
19
|
+
"@webiny/icons": "6.3.0-beta.0",
|
|
20
|
+
"@webiny/react-composition": "6.3.0-beta.0",
|
|
21
|
+
"@webiny/utils": "6.3.0-beta.0",
|
|
22
22
|
"bytes": "3.1.2",
|
|
23
23
|
"class-variance-authority": "0.7.1",
|
|
24
24
|
"clsx": "2.1.1",
|
|
@@ -38,32 +38,32 @@
|
|
|
38
38
|
"tailwindcss": "4.2.2",
|
|
39
39
|
"timeago-react": "3.0.7",
|
|
40
40
|
"tw-animate-css": "1.4.0",
|
|
41
|
-
"type-fest": "5.
|
|
41
|
+
"type-fest": "5.6.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@fortawesome/free-solid-svg-icons": "7.2.0",
|
|
45
|
-
"@storybook/addon-a11y": "
|
|
46
|
-
"@storybook/addon-docs": "
|
|
47
|
-
"@storybook/addon-webpack5-compiler-babel": "
|
|
48
|
-
"@storybook/react-webpack5": "
|
|
45
|
+
"@storybook/addon-a11y": "10.3.5",
|
|
46
|
+
"@storybook/addon-docs": "10.3.5",
|
|
47
|
+
"@storybook/addon-webpack5-compiler-babel": "4.0.1",
|
|
48
|
+
"@storybook/react-webpack5": "10.3.5",
|
|
49
49
|
"@svgr/webpack": "8.1.0",
|
|
50
50
|
"@tailwindcss/postcss": "4.2.2",
|
|
51
51
|
"@types/react": "18.3.28",
|
|
52
52
|
"@types/react-color": "3.0.13",
|
|
53
53
|
"@types/react-custom-scrollbars": "4.0.13",
|
|
54
54
|
"@types/react-virtualized": "9.22.3",
|
|
55
|
-
"@webiny/build-tools": "6.
|
|
56
|
-
"@webiny/project": "6.
|
|
55
|
+
"@webiny/build-tools": "6.3.0-beta.0",
|
|
56
|
+
"@webiny/project": "6.3.0-beta.0",
|
|
57
57
|
"chalk": "5.6.2",
|
|
58
58
|
"css-loader": "7.1.4",
|
|
59
59
|
"eslint-plugin-storybook": "10.3.5",
|
|
60
60
|
"file-loader": "6.2.0",
|
|
61
|
+
"oxfmt": "0.45.0",
|
|
61
62
|
"postcss-loader": "8.2.1",
|
|
62
|
-
"prettier": "3.6.2",
|
|
63
63
|
"rimraf": "6.1.3",
|
|
64
64
|
"sass": "1.99.0",
|
|
65
|
-
"storybook": "
|
|
66
|
-
"typescript": "
|
|
65
|
+
"storybook": "10.3.5",
|
|
66
|
+
"typescript": "6.0.3",
|
|
67
67
|
"vitest": "4.1.4"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "94c21e58aebc9855bf1ae972423281faa0f5c135"
|
|
88
88
|
}
|