@salesforce/design-system-react 0.10.56 → 0.10.57

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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * design-system-react
3
- * v0.10.56
3
+ * v0.10.57
4
4
  * Copyright (c) 2015-present, Salesforce.com, Inc.
5
5
  * All rights reserved.
6
6
  *
@@ -30,7 +30,7 @@ object-assign
30
30
 
31
31
  /*!
32
32
  * design-system-react
33
- * v0.10.56
33
+ * v0.10.57
34
34
  * Copyright (c) 2015-present, Salesforce.com, Inc.
35
35
  * All rights reserved.
36
36
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * design-system-react
3
- * v0.10.56
3
+ * v0.10.57
4
4
  * Copyright (c) 2015-present, Salesforce.com, Inc.
5
5
  * All rights reserved.
6
6
  *
@@ -30,7 +30,7 @@ object-assign
30
30
 
31
31
  /*!
32
32
  * design-system-react
33
- * v0.10.56
33
+ * v0.10.57
34
34
  * Copyright (c) 2015-present, Salesforce.com, Inc.
35
35
  * All rights reserved.
36
36
  *