smbls 0.15.35 → 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.35",
6
+ "version": "0.15.38",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
@@ -51,7 +51,6 @@ const convertPropsToClass = (props, result, element) => {
51
51
 
52
52
  const applyMediaProps = (key, props, result, element) => {
53
53
  const { context } = element
54
- console.log(context, element)
55
54
  if (!context.SYSTEM || !context.SYSTEM.MEDIA) return
56
55
  const globalTheme = getSystemTheme(element)
57
56
  const { MEDIA } = context.SYSTEM
@@ -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
@@ -9,6 +9,7 @@ export * from './Media'
9
9
  export * from './Interaction'
10
10
  export * from './Overflow'
11
11
  export * from './Position'
12
+ export * from './Picture'
12
13
  export * from './Pseudo'
13
14
  export * from './SVG'
14
15
  export * from './Shape'