@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.
@@ -15,7 +15,7 @@ var contentStyles = {
15
15
  width: '90vw',
16
16
  maxWidth: '640px',
17
17
  maxHeight: '85vh',
18
- padding: 25,
18
+ padding: 32,
19
19
  '&:focus': {
20
20
  outline: 'none'
21
21
  },
@@ -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
  });
@@ -39,6 +39,9 @@ var DialogTitle = function DialogTitle(_ref) {
39
39
  }
40
40
 
41
41
  return (0, _jsxRuntime.jsx)(DialogPrimitive.Title, {
42
+ sx: {
43
+ margin: 0
44
+ },
42
45
  children: titleNode
43
46
  });
44
47
  };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip-design-system",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "main": "build/system/index.js",
5
5
  "scripts": {
6
6
  "build-storybook": "build-storybook",
@@ -11,7 +11,7 @@ export const contentStyles = {
11
11
  width: '90vw',
12
12
  maxWidth: '640px',
13
13
  maxHeight: '85vh',
14
- padding: 25,
14
+ padding: 32,
15
15
  '&:focus': { outline: 'none' },
16
16
  '> h1, > h2': { marginTop: '0 !important' },
17
17
  };
@@ -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
  </>