@symbo.ls/input 2.33.34 → 2.33.35

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 (3) hide show
  1. package/Input.js +8 -1
  2. package/Textarea.js +1 -19
  3. package/package.json +4 -4
package/Input.js CHANGED
@@ -21,7 +21,14 @@ export const Input = {
21
21
  maxLength: ({ props }) => props.maxlength,
22
22
  name: ({ props }) => props.name,
23
23
  autocomplete: ({ props }) => props.autocomplete,
24
- placeholder: ({ props }) => props.placeholder,
24
+ placeholder: (el) => {
25
+ if (!el.props || !el.props.placeholder) return
26
+ const placeholder = el.call('exec', el.props.placeholder, el)
27
+ if (el.call('isString', placeholder) && placeholder.includes('{{')) {
28
+ return el.call('replaceLiteralsWithObjectFields', placeholder)
29
+ }
30
+ return placeholder
31
+ },
25
32
  value: (el) => {
26
33
  if (!el.props || !el.props.value) return
27
34
  const val = el.call('exec', el.props.value, el)
package/Textarea.js CHANGED
@@ -7,6 +7,7 @@ export const Textarea = {
7
7
  props: {
8
8
  variant: 'outlined',
9
9
  fontfamily: 'Avenir',
10
+ theme: 'field',
10
11
  round: 'Z1',
11
12
  placeholder: 'Leave us a message...',
12
13
  padding: 'A',
@@ -20,25 +21,6 @@ export const Textarea = {
20
21
  style: { resize: 'none' }
21
22
  },
22
23
 
23
- '.simple': {
24
- props: {
25
- theme: 'field',
26
- round: 'Z2',
27
- lineHeight: 1.4
28
- }
29
- },
30
-
31
- '.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
- }
40
- },
41
-
42
24
  html: (el, s) => {
43
25
  const val = el.call('exec', el.props.value, el)
44
26
  if (el.call('isString', val) && val.includes('{{')) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "2.33.34",
3
+ "version": "2.33.35",
4
4
  "main": "index.js",
5
5
  "source": "index.js",
6
6
  "license": "MIT",
7
- "gitHead": "14a204110bf402fb4bb09d449ccc9abd1b19ef48",
7
+ "gitHead": "3ad860e75a24c41afaac79d639f7a9162c2f4c81",
8
8
  "dependencies": {
9
- "@domql/utils": "^2.33.34",
10
- "@symbo.ls/atoms": "^2.33.34"
9
+ "@domql/utils": "^2.33.35",
10
+ "@symbo.ls/atoms": "^2.33.35"
11
11
  }
12
12
  }