@symbo.ls/preview 0.0.22 → 0.0.23
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.
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { CATEGORIES } from '../categories'
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Notification } from '@symbo.ls/components'
|
|
5
|
+
import { Notification } from 'smbls'
|
|
7
6
|
|
|
8
7
|
const key = 'notification'
|
|
9
8
|
const title = 'Notification'
|
|
@@ -11,11 +10,8 @@ const description = ''
|
|
|
11
10
|
const category = CATEGORIES[4]
|
|
12
11
|
|
|
13
12
|
const component = {
|
|
14
|
-
style,
|
|
15
13
|
extend: Notification,
|
|
16
|
-
props: {
|
|
17
|
-
theme: 'alert'
|
|
18
|
-
}
|
|
14
|
+
props: { theme: 'alert' }
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
const code = `{
|
package/.symbols/pills/index.js
CHANGED
package/package.json
CHANGED
package/src/app.js
CHANGED
package/src/index.js
CHANGED
|
@@ -10,10 +10,9 @@ import scene from './scene'
|
|
|
10
10
|
import tools from './tools'
|
|
11
11
|
import description from './description'
|
|
12
12
|
|
|
13
|
-
import { LIBRARY } from '../../../.symbols'
|
|
14
13
|
import { COMPONENT_ROUTES } from './const'
|
|
15
14
|
|
|
16
|
-
const componentState = () => LIBRARY.filter(v => {
|
|
15
|
+
const componentState = (context) => context.LIBRARY.filter(v => {
|
|
17
16
|
const key = window.location.pathname.split('component/')[1]
|
|
18
17
|
return v.key === key
|
|
19
18
|
})
|
|
@@ -28,8 +27,8 @@ export const Export = {
|
|
|
28
27
|
padding: '0 Y2'
|
|
29
28
|
},
|
|
30
29
|
|
|
31
|
-
state: () => ({
|
|
32
|
-
...componentState()[0],
|
|
30
|
+
state: ({ context }) => ({
|
|
31
|
+
...componentState(context)[0],
|
|
33
32
|
...state
|
|
34
33
|
}),
|
|
35
34
|
|