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 +1 -1
- package/src/Range.js +2 -11
- package/src/User.js +1 -0
- package/src/atoms/Animation.js +1 -1
package/package.json
CHANGED
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) =>
|
|
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
package/src/atoms/Animation.js
CHANGED
|
@@ -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/
|
|
6
|
+
import { emotion } from '@symbo.ls/emotion'
|
|
7
7
|
const { keyframes } = emotion
|
|
8
8
|
|
|
9
9
|
const applyAnimationProps = (animation, element) => {
|