@symbo.ls/select 3.0.6 → 3.1.1

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.
Files changed (2) hide show
  1. package/index.js +12 -14
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -4,19 +4,17 @@ export const Select = {
4
4
  extends: 'Focusable',
5
5
  tag: 'select',
6
6
 
7
- props: {
8
- fontSize: 'A',
9
- border: 'none',
10
- boxSizing: 'border-box',
11
- theme: 'field',
12
- cursor: 'pointer',
13
- childProps: {
14
- tag: 'option',
15
- attr: {
16
- value: ({ props }) => props.value,
17
- selected: ({ props }) => props.selected,
18
- disabled: ({ props }) => props.disabled
19
- }
7
+ fontSize: 'A',
8
+ border: 'none',
9
+ boxSizing: 'border-box',
10
+ theme: 'field',
11
+ cursor: 'pointer',
12
+ childProps: {
13
+ tag: 'option',
14
+ attr: {
15
+ value: ({ props }) => props.value,
16
+ selected: ({ props }) => props.selected,
17
+ disabled: ({ props }) => props.disabled
20
18
  }
21
19
  },
22
20
 
@@ -24,7 +22,7 @@ export const Select = {
24
22
  required: ({ props }) => props.required,
25
23
  name: ({ props }) => props.name,
26
24
  disabled: ({ props }) => props.disabled,
27
- value: (el) => {
25
+ value: el => {
28
26
  if (!el.props || !el.props.value) return
29
27
  const val = el.call('exec', el.props.value, el)
30
28
  if (el.call('isString', val) && val.includes('{{')) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/select",
3
- "version": "3.0.6",
3
+ "version": "3.1.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "d78a3603eea303118e84a46c24160c6d590bdb90",
6
+ "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692",
7
7
  "dependencies": {
8
- "@symbo.ls/atoms": "^3.0.6"
8
+ "@symbo.ls/atoms": "^3.1.1"
9
9
  },
10
10
  "source": "src/index.js"
11
11
  }