@pure-ds/storybook 0.5.42 → 0.5.43
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.
|
@@ -7,10 +7,11 @@ addons.register(ADDON_ID, () => {
|
|
|
7
7
|
addons.add(PANEL_ID, {
|
|
8
8
|
type: types.PANEL,
|
|
9
9
|
title: 'Code',
|
|
10
|
-
render: ({ active, key }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
render: ({ active, key }) =>
|
|
11
|
+
React.createElement(
|
|
12
|
+
'div',
|
|
13
|
+
{ style: { display: active ? 'block' : 'none', height: '100%' } },
|
|
14
|
+
React.createElement(Panel, { key, active })
|
|
15
|
+
)
|
|
15
16
|
});
|
|
16
17
|
});
|
|
@@ -28,17 +28,19 @@ export const SearchTool = () => {
|
|
|
28
28
|
setIsOpen(newState);
|
|
29
29
|
}, [isOpen, channel]);
|
|
30
30
|
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
return React.createElement(
|
|
32
|
+
IconButton,
|
|
33
|
+
{
|
|
34
|
+
key: 'search-tool',
|
|
35
|
+
active: isOpen,
|
|
36
|
+
title: 'Quick Search PDS',
|
|
37
|
+
onClick: toggleSearch
|
|
38
|
+
},
|
|
39
|
+
React.createElement(
|
|
40
|
+
'svg',
|
|
41
|
+
{ width: '14', height: '14', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '2' },
|
|
42
|
+
React.createElement('circle', { cx: '11', cy: '11', r: '8' }),
|
|
43
|
+
React.createElement('path', { d: 'm21 21-4.35-4.35' })
|
|
44
|
+
)
|
|
43
45
|
);
|
|
44
46
|
};
|
|
@@ -15,16 +15,20 @@ export const Tool = () => {
|
|
|
15
15
|
emit(EVENTS.OPEN_CONFIGURATOR);
|
|
16
16
|
}, [emit]);
|
|
17
17
|
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
return React.createElement(
|
|
19
|
+
IconButton,
|
|
20
|
+
{
|
|
21
|
+
key: 'configurator-toggle',
|
|
22
|
+
title: 'Open PDS Configurator',
|
|
23
|
+
onClick: openConfigurator
|
|
24
|
+
},
|
|
25
|
+
React.createElement(
|
|
26
|
+
'svg',
|
|
27
|
+
{ width: '14', height: '14', viewBox: '0 0 24 24', fill: 'currentColor' },
|
|
28
|
+
React.createElement('path', {
|
|
29
|
+
d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'
|
|
30
|
+
}),
|
|
31
|
+
React.createElement('circle', { cx: '12', cy: '12', r: '3' })
|
|
32
|
+
)
|
|
29
33
|
);
|
|
30
34
|
};
|
package/dist/pds-reference.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pure-ds/storybook",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.43",
|
|
4
4
|
"description": "Storybook showcase for Pure Design System with live configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"pds:build-icons": "pds-build-icons"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@pure-ds/core": "^0.5.
|
|
41
|
+
"@pure-ds/core": "^0.5.43"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|