@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/Link/Link.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 LinkStories from
|
|
3
|
+
import * as LinkStories from "./Link.stories";
|
|
4
4
|
|
|
5
5
|
<Meta of={LinkStories} />
|
|
6
6
|
|
|
@@ -15,39 +15,39 @@ import React from "react";
|
|
|
15
15
|
import { Link } from "@webiny/admin-ui";
|
|
16
16
|
|
|
17
17
|
const LinkExample = () => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
18
|
+
return (
|
|
19
|
+
|
|
20
|
+
<div>
|
|
21
|
+
<p>
|
|
22
|
+
This is a paragraph with a <Link to="/dashboard">link to the dashboard</Link> in it.
|
|
23
|
+
</p>
|
|
24
|
+
<p>
|
|
25
|
+
<Link to="/settings" variant="secondary" size="lg">
|
|
26
|
+
This is a large secondary link
|
|
27
|
+
</Link>
|
|
28
|
+
</p>
|
|
29
|
+
<p>
|
|
30
|
+
<Link to="/help" underline={true}>
|
|
31
|
+
This link is underlined by default
|
|
32
|
+
</Link>
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
); };
|
|
36
36
|
|
|
37
37
|
export default LinkExample;
|
|
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/Link/Link.tsx',
|
|
46
|
+
'_blank'
|
|
47
|
+
);
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
]}
|
|
51
51
|
/>
|
|
52
52
|
|
|
53
53
|
<Controls of={LinkStories.Documentation} />
|
|
@@ -57,23 +57,23 @@ import React from "react";
|
|
|
57
57
|
import { Link } from "@webiny/admin-ui";
|
|
58
58
|
|
|
59
59
|
const LinkExample = () => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
return (
|
|
61
|
+
<div>
|
|
62
|
+
<p>
|
|
63
|
+
This is a paragraph with a <Link to="/dashboard">link to the dashboard</Link> in it.
|
|
64
|
+
</p>
|
|
65
|
+
<p>
|
|
66
|
+
<Link to="/settings" variant="secondary" size="lg">
|
|
67
|
+
This is a large secondary link
|
|
68
|
+
</Link>
|
|
69
|
+
</p>
|
|
70
|
+
<p>
|
|
71
|
+
<Link to="/help" underline={true}>
|
|
72
|
+
This link is underlined by default
|
|
73
|
+
</Link>
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
|
+
);
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
export default LinkExample;
|
|
@@ -88,12 +88,13 @@ import React from "react";
|
|
|
88
88
|
import { Link } from "@webiny/admin-ui";
|
|
89
89
|
|
|
90
90
|
const DefaultLinkExample = () => {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
return (
|
|
92
|
+
|
|
93
|
+
<Link to="#">
|
|
94
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum
|
|
95
|
+
rhoncus.
|
|
96
|
+
</Link>
|
|
97
|
+
); };
|
|
97
98
|
|
|
98
99
|
export default DefaultLinkExample;
|
|
99
100
|
` } } />
|
|
@@ -107,12 +108,12 @@ import React from "react";
|
|
|
107
108
|
import { Link } from "@webiny/admin-ui";
|
|
108
109
|
|
|
109
110
|
const XlLinkExample = () => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
};
|
|
111
|
+
return (
|
|
112
|
+
|
|
113
|
+
<Link to="#" size="xl">
|
|
114
|
+
Extra large link
|
|
115
|
+
</Link>
|
|
116
|
+
); };
|
|
116
117
|
|
|
117
118
|
export default XlLinkExample;
|
|
118
119
|
` } } />
|
|
@@ -124,12 +125,12 @@ import React from "react";
|
|
|
124
125
|
import { Link } from "@webiny/admin-ui";
|
|
125
126
|
|
|
126
127
|
const LgLinkExample = () => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
};
|
|
128
|
+
return (
|
|
129
|
+
|
|
130
|
+
<Link to="#" size="lg">
|
|
131
|
+
Large link
|
|
132
|
+
</Link>
|
|
133
|
+
); };
|
|
133
134
|
|
|
134
135
|
export default LgLinkExample;
|
|
135
136
|
` } } />
|
|
@@ -141,12 +142,12 @@ import React from "react";
|
|
|
141
142
|
import { Link } from "@webiny/admin-ui";
|
|
142
143
|
|
|
143
144
|
const MdLinkExample = () => {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
145
|
+
return (
|
|
146
|
+
|
|
147
|
+
<Link to="#" size="md">
|
|
148
|
+
Medium link
|
|
149
|
+
</Link>
|
|
150
|
+
); };
|
|
150
151
|
|
|
151
152
|
export default MdLinkExample;
|
|
152
153
|
` } } />
|
|
@@ -158,12 +159,12 @@ import React from "react";
|
|
|
158
159
|
import { Link } from "@webiny/admin-ui";
|
|
159
160
|
|
|
160
161
|
const SmLinkExample = () => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
};
|
|
162
|
+
return (
|
|
163
|
+
|
|
164
|
+
<Link to="#" size="sm">
|
|
165
|
+
Small link
|
|
166
|
+
</Link>
|
|
167
|
+
); };
|
|
167
168
|
|
|
168
169
|
export default SmLinkExample;
|
|
169
170
|
` } } />
|
|
@@ -175,15 +176,15 @@ import React from "react";
|
|
|
175
176
|
import { Link, Text } from "@webiny/admin-ui";
|
|
176
177
|
|
|
177
178
|
const InheritedSizeLinkExample = () => {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
};
|
|
179
|
+
return (
|
|
180
|
+
|
|
181
|
+
<Text>
|
|
182
|
+
<Text size="lg">
|
|
183
|
+
Size of this text is set to large, so,
|
|
184
|
+
<Link to="#">this link's</Link> size is also automatically set to large.
|
|
185
|
+
</Text>
|
|
186
|
+
</Text>
|
|
187
|
+
); };
|
|
187
188
|
|
|
188
189
|
export default InheritedSizeLinkExample;
|
|
189
190
|
` } } />
|
|
@@ -195,12 +196,12 @@ import React from "react";
|
|
|
195
196
|
import { Link } from "@webiny/admin-ui";
|
|
196
197
|
|
|
197
198
|
const UnderlinedLinkExample = () => {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
};
|
|
199
|
+
return (
|
|
200
|
+
|
|
201
|
+
<Link to="#" underline={true}>
|
|
202
|
+
This link is underlined by default
|
|
203
|
+
</Link>
|
|
204
|
+
); };
|
|
204
205
|
|
|
205
206
|
export default UnderlinedLinkExample;
|
|
206
207
|
` } } />
|
|
@@ -212,15 +213,18 @@ import React from "react";
|
|
|
212
213
|
import { Link, Text } from "@webiny/admin-ui";
|
|
213
214
|
|
|
214
215
|
const PrimaryNegativeLinkExample = () => {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
return (
|
|
217
|
+
|
|
218
|
+
<div className="bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed">
|
|
219
|
+
<Text>
|
|
220
|
+
Lorem{" "}
|
|
221
|
+
<Link to="#" variant="primary-negative">
|
|
222
|
+
ipsum dolor sit amet
|
|
223
|
+
</Link>
|
|
224
|
+
, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.
|
|
225
|
+
</Text>
|
|
226
|
+
</div>
|
|
227
|
+
); };
|
|
224
228
|
|
|
225
229
|
export default PrimaryNegativeLinkExample;
|
|
226
230
|
` } } />
|
|
@@ -232,15 +236,18 @@ import React from "react";
|
|
|
232
236
|
import { Link, Text } from "@webiny/admin-ui";
|
|
233
237
|
|
|
234
238
|
const SecondaryNegativeLinkExample = () => {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
return (
|
|
240
|
+
|
|
241
|
+
<div className="bg-[#25292e] p-[300px] rounded-[5px] text-neutral-dimmed">
|
|
242
|
+
<Text>
|
|
243
|
+
Lorem{" "}
|
|
244
|
+
<Link to="#" variant="secondary-negative">
|
|
245
|
+
ipsum dolor sit amet
|
|
246
|
+
</Link>
|
|
247
|
+
, consectetur adipiscing elit. Fusce tempus tortor eu sapien interdum rhoncus.
|
|
248
|
+
</Text>
|
|
249
|
+
</div>
|
|
250
|
+
); };
|
|
244
251
|
|
|
245
252
|
export default SecondaryNegativeLinkExample;
|
|
246
253
|
` } } />
|
|
@@ -248,17 +255,23 @@ export default SecondaryNegativeLinkExample;
|
|
|
248
255
|
## Anatomy
|
|
249
256
|
|
|
250
257
|
### Primary
|
|
251
|
-
|
|
258
|
+
|
|
259
|
+
<img src="/images/storybook/link/primary.png" alt="Primary" />
|
|
252
260
|
|
|
253
261
|
### Secondary
|
|
254
|
-
|
|
262
|
+
|
|
263
|
+
<img src="/images/storybook/link/secondary.png" alt="Secondary" />
|
|
255
264
|
|
|
256
265
|
### Sizing
|
|
266
|
+
|
|
257
267
|
Links inherit font styles of surrounding text.
|
|
258
|
-
|
|
268
|
+
|
|
269
|
+
<img src="/images/storybook/link/sizing.png" alt="Sizing" />
|
|
259
270
|
|
|
260
271
|
### State
|
|
261
|
-
|
|
272
|
+
|
|
273
|
+
<img src="/images/storybook/link/states.png" alt="State" />
|
|
262
274
|
|
|
263
275
|
## Usage
|
|
264
|
-
|
|
276
|
+
|
|
277
|
+
<img src="/images/storybook/link/usage.png" alt="Usage" />
|
package/List/List.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type ListItemProps } from "./components/index.js";
|
|
|
4
4
|
declare const listVariants: (props?: ({
|
|
5
5
|
variant?: "container" | "underline" | null | undefined;
|
|
6
6
|
background?: "base" | "transparent" | "light" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
interface ListProps extends VariantProps<typeof listVariants>, Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
}
|
package/List/List.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","makeDecoratable","withStaticProps","cva","cn","ListItem","listVariants","variants","variant","container","underline","background","base","light","transparent","defaultVariants","DecoratableList","children","className","props","createElement","Object","assign","List","Item"],"sources":["List.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { makeDecoratable, withStaticProps, cva, type VariantProps, cn } from \"~/utils.js\";\nimport { ListItem, type ListItemProps } from \"./components/index.js\";\n\nconst listVariants = cva(\"group w-full\", {\n variants: {\n variant: {\n container: \"list-variant-container\",\n underline: \"list-variant-underline\"\n },\n background: {\n base: \"list-background-base\",\n light: \"list-background-light\",\n transparent: \"list-background-transparent\"\n }\n },\n defaultVariants: {\n variant: \"underline\",\n background: \"base\"\n }\n});\n\ninterface ListProps\n extends
|
|
1
|
+
{"version":3,"names":["React","makeDecoratable","withStaticProps","cva","cn","ListItem","listVariants","variants","variant","container","underline","background","base","light","transparent","defaultVariants","DecoratableList","children","className","props","createElement","Object","assign","List","Item"],"sources":["List.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { makeDecoratable, withStaticProps, cva, type VariantProps, cn } from \"~/utils.js\";\nimport { ListItem, type ListItemProps } from \"./components/index.js\";\n\nconst listVariants = cva(\"group w-full\", {\n variants: {\n variant: {\n container: \"list-variant-container\",\n underline: \"list-variant-underline\"\n },\n background: {\n base: \"list-background-base\",\n light: \"list-background-light\",\n transparent: \"list-background-transparent\"\n }\n },\n defaultVariants: {\n variant: \"underline\",\n background: \"base\"\n }\n});\n\ninterface ListProps\n extends\n VariantProps<typeof listVariants>,\n Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> {\n children: React.ReactNode;\n}\n\nconst DecoratableList = ({ children, variant, background, className, ...props }: ListProps) => {\n return (\n <div {...props} className={cn(listVariants({ variant, background }), className)}>\n {children}\n </div>\n );\n};\n\nconst List = withStaticProps(makeDecoratable(\"List\", DecoratableList), {\n Item: ListItem\n});\n\nexport { List, type ListProps, type ListItemProps };\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,eAAe,EAAEC,eAAe,EAAEC,GAAG,EAAqBC,EAAE;AACrE,SAASC,QAAQ;AAEjB,MAAMC,YAAY,GAAGH,GAAG,CAAC,cAAc,EAAE;EACrCI,QAAQ,EAAE;IACNC,OAAO,EAAE;MACLC,SAAS,EAAE,wBAAwB;MACnCC,SAAS,EAAE;IACf,CAAC;IACDC,UAAU,EAAE;MACRC,IAAI,EAAE,sBAAsB;MAC5BC,KAAK,EAAE,uBAAuB;MAC9BC,WAAW,EAAE;IACjB;EACJ,CAAC;EACDC,eAAe,EAAE;IACbP,OAAO,EAAE,WAAW;IACpBG,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC;AASF,MAAMK,eAAe,GAAGA,CAAC;EAAEC,QAAQ;EAAET,OAAO;EAAEG,UAAU;EAAEO,SAAS;EAAE,GAAGC;AAAiB,CAAC,KAAK;EAC3F,oBACInB,KAAA,CAAAoB,aAAA,QAAAC,MAAA,CAAAC,MAAA,KAASH,KAAK;IAAED,SAAS,EAAEd,EAAE,CAACE,YAAY,CAAC;MAAEE,OAAO;MAAEG;IAAW,CAAC,CAAC,EAAEO,SAAS;EAAE,IAC3ED,QACA,CAAC;AAEd,CAAC;AAED,MAAMM,IAAI,GAAGrB,eAAe,CAACD,eAAe,CAAC,MAAM,EAAEe,eAAe,CAAC,EAAE;EACnEQ,IAAI,EAAEnB;AACV,CAAC,CAAC;AAEF,SAASkB,IAAI","ignoreList":[]}
|