@symbo.ls/input 3.1.1 → 3.2.3

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/Checkbox.js CHANGED
@@ -18,7 +18,7 @@ export const Checkbox = {
18
18
  opacity: '1'
19
19
  },
20
20
  attr: {
21
- checked: (el) => el.call('exec', el.parent.props.checked)
21
+ checked: el => el.call('exec', el.parent.props.checked)
22
22
  }
23
23
  },
24
24
 
@@ -39,7 +39,7 @@ export const Checkbox = {
39
39
  }
40
40
 
41
41
  export const CheckboxHgroup = {
42
- extends: 'Flex',
42
+ display: 'flex',
43
43
  tag: 'label',
44
44
 
45
45
  boxSize: 'fit-content',
package/Input.js CHANGED
@@ -5,15 +5,13 @@ export const Input = {
5
5
 
6
6
  tag: 'input',
7
7
 
8
- props: {
9
- border: 'none',
10
- type: 'input',
11
- theme: 'field',
12
- fontSize: 'A',
13
- round: 'C',
14
- lineHeight: '1',
15
- padding: 'Z2 B'
16
- },
8
+ border: 'none',
9
+ type: 'input',
10
+ theme: 'field',
11
+ fontSize: 'A',
12
+ round: 'C',
13
+ lineHeight: '1',
14
+ padding: 'Z2 B',
17
15
 
18
16
  attr: {
19
17
  pattern: ({ props }) => props.pattern,
@@ -22,7 +20,7 @@ export const Input = {
22
20
  name: ({ props }) => props.name,
23
21
  autocomplete: ({ props }) => props.autocomplete,
24
22
  placeholder: ({ props }) => props.placeholder,
25
- value: (el) => {
23
+ value: el => {
26
24
  if (!el.props || !el.props.value) return
27
25
  const val = el.call('exec', el.props.value, el)
28
26
  if (el.call('isString', val) && val.includes('{{')) {
@@ -30,7 +28,7 @@ export const Input = {
30
28
  }
31
29
  return val
32
30
  },
33
- checked: (el) => el.call('exec', el.props.checked, el),
31
+ checked: el => el.call('exec', el.props.checked, el),
34
32
  disabled: ({ props }) => props.disabled || null,
35
33
  readonly: ({ props }) => props.readonly,
36
34
  required: ({ props }) => props.required,
package/Textarea.js CHANGED
@@ -4,46 +4,41 @@ export const Textarea = {
4
4
  tag: 'textarea',
5
5
  extends: ['Input', 'Flex'],
6
6
 
7
- props: {
8
- variant: 'outlined',
9
- fontfamily: 'Avenir',
10
- round: 'Z1',
11
- placeholder: 'Leave us a message...',
12
- padding: 'A',
13
- theme: 'field',
14
- border: 'none',
15
- maxWidth: 'G1_default',
16
- minHeight: 'E_default',
17
- width: '100%',
18
- height: 'E1_default',
19
- fontFamily: 'inherit',
20
- style: { resize: 'none' }
21
- },
7
+ variant: 'outlined',
8
+ fontfamily: 'Avenir',
9
+ round: 'Z1',
10
+ placeholder: 'Leave us a message...',
11
+ padding: 'A',
12
+ theme: 'field',
13
+ border: 'none',
14
+ maxWidth: 'G1_default',
15
+ minHeight: 'E_default',
16
+ width: '100%',
17
+ height: 'E1_default',
18
+ fontFamily: 'inherit',
19
+ style: { resize: 'none' },
22
20
 
23
21
  '.simple': {
24
- props: {
25
- theme: 'field',
26
- round: 'Z2',
27
- lineHeight: 1.4
28
- }
22
+ theme: 'field',
23
+ round: 'Z2',
24
+ lineHeight: 1.4
29
25
  },
30
26
 
31
27
  '.outlined': {
32
- props: {
33
- theme: 'field',
34
- borderWidth: '1px',
35
- borderStyle: 'solid',
36
- lineHeight: 1.4,
37
- placeholder: 'Leave us a message...',
38
- resize: 'none'
39
- }
28
+ theme: 'field',
29
+ borderWidth: '1px',
30
+ borderStyle: 'solid',
31
+ lineHeight: 1.4,
32
+ placeholder: 'Leave us a message...',
33
+ resize: 'none'
40
34
  },
41
35
 
42
36
  html: (el, s) => el.props.value
43
37
  }
44
38
 
45
39
  export const TextareaWithButton = {
46
- props: { display: 'flex', gap: 'Y2' },
40
+ display: 'flex',
41
+ gap: 'Y2',
47
42
  Textarea: {
48
43
  height: 'C2+W',
49
44
  minWidth: 'H',
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "3.1.1",
3
+ "version": "3.2.3",
4
4
  "main": "index.js",
5
5
  "source": "index.js",
6
6
  "license": "MIT",
7
- "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692",
7
+ "gitHead": "9fc1b79b41cdc725ca6b24aec64920a599634681",
8
8
  "dependencies": {
9
- "@domql/utils": "^3.1.1",
10
- "@symbo.ls/atoms": "^3.1.1"
9
+ "@domql/utils": "^3.2.3",
10
+ "@symbo.ls/atoms": "^3.2.3"
11
11
  }
12
12
  }