smbls 2.7.11 → 2.7.13

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": "2.7.11",
6
+ "version": "2.7.13",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/Range.js CHANGED
@@ -96,10 +96,6 @@ export const RangeWithButtons = {
96
96
  on: {
97
97
  click: (ev, el, s) => {
98
98
  el.props && isFunction(el.props.onClick) && el.props.onClick(ev, el, s)
99
- const input = el.parent.input
100
- const props = input.props
101
- const value = isFunction(props.value) ? props.value(el, s) : props.value
102
- input.node.value = value
103
99
  }
104
100
  }
105
101
  },
@@ -107,15 +103,14 @@ export const RangeWithButtons = {
107
103
  style: { width: '4ch' },
108
104
  tag: 'span',
109
105
  text: (el, s) => {
110
- const value = listenProp(el.parent.input, 'value')
111
106
  const unit = listenProp(el.parent.input, 'unit', '')
112
- return '' + value + unit
107
+ return '' + (s.value || 50) + unit
113
108
  }
114
109
  },
115
110
  input: {
116
111
  extend: Range,
117
112
  attr: {
118
- value: (el, s) => listenProp(el, 'value', 50),
113
+ value: (el, s) => parseFloat(s.value),
119
114
  min: (el, s) => listenProp(el, 'min', 0),
120
115
  max: (el, s) => listenProp(el, 'max', 100),
121
116
  step: (el, s) => listenProp(el, 'step', 1)
@@ -131,10 +126,6 @@ export const RangeWithButtons = {
131
126
  on: {
132
127
  click: (ev, el, s) => {
133
128
  el.props && isFunction(el.props.onClick) && el.props.onClick(ev, el, s)
134
- const input = el.parent.input
135
- const props = input.props
136
- const value = isFunction(props.value) ? props.value(el, s) : props.value
137
- input.node.value = value
138
129
  }
139
130
  }
140
131
  }
package/src/User.js CHANGED
@@ -6,6 +6,7 @@ export const User = {
6
6
  extend: Img,
7
7
  key: 'nikoloza',
8
8
  props: {
9
+ display: 'block',
9
10
  avatarType: 'initials',
10
11
  borderRadius: '100%',
11
12
  boxSize: 'B',
@@ -3,7 +3,7 @@
3
3
  import { getTimingByKey, getTimingFunction } from '@symbo.ls/scratch'
4
4
  import { isObject } from '@domql/utils'
5
5
  import { convertPropsToClass } from './Media' // eslint-disable-line no-unused-vars
6
- import { emotion } from '@symbo.ls/create-emotion'
6
+ import { emotion } from '@symbo.ls/emotion'
7
7
  const { keyframes } = emotion
8
8
 
9
9
  const applyAnimationProps = (animation, element) => {