@salesforce/design-system-react 0.10.56 → 0.10.58

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.
@@ -1,16 +1,19 @@
1
1
  /* eslint-disable no-console, react/prop-types */
2
2
  import React from 'react';
3
3
 
4
+ import IconSettings from '~/components/icon-settings';
4
5
  import DockedComposer from '~/components/docked-composer';
5
- import Accordion from '~/components/accordion/__examples__/base';
6
6
 
7
- class Minimized extends React.Component {
7
+ class Example extends React.Component {
8
8
  static displayName = 'DockedComposerMinimized';
9
9
 
10
- state = {
11
- isExpanded: false,
12
- isOpen: true,
13
- };
10
+ constructor() {
11
+ super();
12
+ this.state = {
13
+ isExpanded: false,
14
+ isOpen: true,
15
+ };
16
+ }
14
17
 
15
18
  handleMinimize = (event, data) => {
16
19
  this.setState({ isExpanded: false });
@@ -26,25 +29,33 @@ class Minimized extends React.Component {
26
29
 
27
30
  render() {
28
31
  return this.state.isOpen ? (
29
- <DockedComposer
30
- header="What's New this Release?"
31
- body={<Accordion />}
32
- classNameContainer="hello-world"
33
- assistiveText={{
34
- expandButton: 'ExPaNd',
35
- minimizeButton: 'MiNiMiZe',
36
- closeButton: 'ClOsE',
37
- }}
38
- id="docked-composer"
39
- events={{
40
- onRequestMinimize: this.handleMinimize,
41
- onRequestExpand: this.handleExpand,
42
- onRequestClose: this.handleClose,
43
- }}
44
- isOpen={this.state.isExpanded}
45
- />
32
+ <IconSettings iconPath="/assets/icons">
33
+ <div
34
+ style={{
35
+ height: '500px',
36
+ position: 'relative',
37
+ }}
38
+ >
39
+ <DockedComposer
40
+ header="What's New this Release?"
41
+ classNameContainer="hello-world"
42
+ assistiveText={{
43
+ expandButton: 'ExPaNd',
44
+ minimizeButton: 'MiNiMiZe',
45
+ closeButton: 'ClOsE',
46
+ }}
47
+ id="docked-composer"
48
+ events={{
49
+ onRequestMinimize: this.handleMinimize,
50
+ onRequestExpand: this.handleExpand,
51
+ onRequestClose: this.handleClose,
52
+ }}
53
+ isOpen={this.state.isExpanded}
54
+ />
55
+ </div>
56
+ </IconSettings>
46
57
  ) : null;
47
58
  }
48
59
  }
49
60
 
50
- export default Minimized;
61
+ export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
@@ -30,7 +30,7 @@ object-assign
30
30
 
31
31
  /*!
32
32
  * design-system-react
33
- * v0.10.56
33
+ * v0.10.58
34
34
  * Copyright (c) 2015-present, Salesforce.com, Inc.
35
35
  * All rights reserved.
36
36
  *
@@ -30,7 +30,7 @@ object-assign
30
30
 
31
31
  /*!
32
32
  * design-system-react
33
- * v0.10.56
33
+ * v0.10.58
34
34
  * Copyright (c) 2015-present, Salesforce.com, Inc.
35
35
  * All rights reserved.
36
36
  *
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-system-react",
3
- "version": "0.10.56",
3
+ "version": "0.10.58",
4
4
  "description": "Salesforce Lightning Design System for React",
5
5
  "license": "BSD-3-Clause",
6
6
  "engines": {},
@@ -58,7 +58,7 @@
58
58
  "warning": "^4.0.3"
59
59
  },
60
60
  "peerDependencies": {
61
- "@salesforce-ux/design-system": "^2.20.1",
61
+ "@salesforce-ux/design-system": "2.21.3-wcag",
62
62
  "react": ">=16.8",
63
63
  "react-dom": ">=16.8"
64
64
  },
@@ -1871,6 +1871,6 @@
1871
1871
  }
1872
1872
  },
1873
1873
  "SLDS": {
1874
- "gitURL": "^2.20.1"
1874
+ "gitURL": "2.21.3-wcag"
1875
1875
  }
1876
1876
  }