smbls 0.15.37 → 0.15.38

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.15.37",
6
+ "version": "0.15.38",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
@@ -1,13 +1,17 @@
1
1
  'use strict'
2
2
 
3
+ import { getSystemTheme } from './Theme' // eslint-disable-line no-unused-vars
4
+
3
5
  export const Picture = {
4
6
  tag: 'picture',
5
7
 
6
8
  childExtend: {
7
9
  tag: 'source',
8
10
  attr: {
9
- media: ({ props, key, context }) => {
11
+ media: element => {
12
+ const { props, key, context } = element
10
13
  const { MEDIA } = context.SYSTEM
14
+ // getSystemTheme(element)
11
15
  return MEDIA[(props.media || key).slice(1)]
12
16
  },
13
17
  srcset: ({ props }) => props.srcset