@automattic/vip-design-system 0.14.1 → 0.14.2
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/build/system/NewDialog/DialogContent.js +1 -1
- package/build/system/NewDialog/DialogDescription.js +3 -0
- package/build/system/NewDialog/DialogTitle.js +3 -0
- package/build/system/NewDialog/NewDialog.stories.js +7 -0
- package/package.json +1 -1
- package/src/system/NewDialog/DialogContent.js +1 -1
- package/src/system/NewDialog/DialogDescription.js +1 -1
- package/src/system/NewDialog/DialogTitle.js +1 -1
- package/src/system/NewDialog/NewDialog.stories.jsx +14 -0
|
@@ -42,6 +42,9 @@ var DialogDescription = /*#__PURE__*/_react["default"].forwardRef(function (_ref
|
|
|
42
42
|
|
|
43
43
|
return (0, _jsxRuntime.jsx)(DialogPrimitive.Description, (0, _extends2["default"])({}, rest, {
|
|
44
44
|
ref: forwardedRef,
|
|
45
|
+
sx: {
|
|
46
|
+
margin: 0
|
|
47
|
+
},
|
|
45
48
|
children: text
|
|
46
49
|
}));
|
|
47
50
|
});
|
|
@@ -59,6 +59,13 @@ var AutoOpen = function AutoOpen() {
|
|
|
59
59
|
children: "Auto Opens when rendered. Press escape to close it."
|
|
60
60
|
}), (0, _jsxRuntime.jsx)(_NewDialog.NewDialog, (0, _extends2["default"])({}, defaultProps, {
|
|
61
61
|
defaultOpen: true,
|
|
62
|
+
content: (0, _jsxRuntime.jsxs)("div", {
|
|
63
|
+
children: [(0, _jsxRuntime.jsx)("h3", {
|
|
64
|
+
children: "Test"
|
|
65
|
+
}), (0, _jsxRuntime.jsx)("p", {
|
|
66
|
+
children: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
|
|
67
|
+
})]
|
|
68
|
+
}),
|
|
62
69
|
trigger: (0, _jsxRuntime.jsx)(_ScreenReaderText["default"], {
|
|
63
70
|
children: "hey"
|
|
64
71
|
})
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export const DialogDescription = React.forwardRef(
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
|
-
<DialogPrimitive.Description { ...rest } ref={ forwardedRef }>
|
|
24
|
+
<DialogPrimitive.Description { ...rest } ref={ forwardedRef } sx={ { margin: 0 } }>
|
|
25
25
|
{ text }
|
|
26
26
|
</DialogPrimitive.Description>
|
|
27
27
|
);
|
|
@@ -18,7 +18,7 @@ export const DialogTitle = ( { title, hidden = false } ) => {
|
|
|
18
18
|
titleNode = <ScreenReaderText>{ titleNode }</ScreenReaderText>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
return <DialogPrimitive.Title>{ titleNode }</DialogPrimitive.Title>;
|
|
21
|
+
return <DialogPrimitive.Title sx={ { margin: 0 } }>{ titleNode }</DialogPrimitive.Title>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
DialogTitle.propTypes = {
|
|
@@ -34,6 +34,20 @@ export const AutoOpen = () => (
|
|
|
34
34
|
<NewDialog
|
|
35
35
|
{ ...defaultProps }
|
|
36
36
|
defaultOpen={ true }
|
|
37
|
+
content={
|
|
38
|
+
<div>
|
|
39
|
+
<h3>Test</h3>
|
|
40
|
+
<p>
|
|
41
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
|
|
42
|
+
has been the industry standard dummy text ever since the 1500s, when an unknown printer
|
|
43
|
+
took a galley of type and scrambled it to make a type specimen book. It has survived not
|
|
44
|
+
only five centuries, but also the leap into electronic typesetting, remaining
|
|
45
|
+
essentially unchanged. It was popularised in the 1960s with the release of Letraset
|
|
46
|
+
sheets containing Lorem Ipsum passages, and more recently with desktop publishing
|
|
47
|
+
software like Aldus PageMaker including versions of Lorem Ipsum.
|
|
48
|
+
</p>
|
|
49
|
+
</div>
|
|
50
|
+
}
|
|
37
51
|
trigger={ <ScreenReaderText>hey</ScreenReaderText> }
|
|
38
52
|
/>
|
|
39
53
|
</>
|