@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.
- package/components/docked-composer/__docs__/__snapshots__/storybook-stories.storyshot +152 -383
- package/components/docked-composer/__examples__/base.jsx +28 -17
- package/components/docked-composer/__examples__/minimized.jsx +35 -24
- package/design-system-react-components.js +1 -1
- package/design-system-react-components.min.js.LICENSE.txt +1 -1
- package/design-system-react.js +1 -1
- package/design-system-react.min.js.LICENSE.txt +1 -1
- package/lib/components/docked-composer/__docs__/__snapshots__/storybook-stories.storyshot +152 -383
- package/lib/components/docked-composer/__examples__/base.jsx +28 -17
- package/lib/components/docked-composer/__examples__/minimized.jsx +35 -24
- package/lib/design-system-react-components.min.js.LICENSE.txt +1 -1
- package/lib/design-system-react.min.js.LICENSE.txt +1 -1
- package/lib/package.json +3 -3
- package/module/components/docked-composer/__docs__/__snapshots__/storybook-stories.storyshot +152 -383
- package/module/components/docked-composer/__examples__/base.js +16 -15
- package/module/components/docked-composer/__examples__/base.js.map +1 -1
- package/module/components/docked-composer/__examples__/minimized.js +24 -23
- package/module/components/docked-composer/__examples__/minimized.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
7
|
+
class Example extends React.Component {
|
|
8
8
|
static displayName = 'DockedComposerMinimized';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
61
|
+
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-system-react",
|
|
3
|
-
"version": "0.10.
|
|
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": "
|
|
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": "
|
|
1874
|
+
"gitURL": "2.21.3-wcag"
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|