@symbo.ls/input 2.11.226 → 2.11.231
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 +1 -1
- package/Number.js +21 -3
- package/Textarea.js +5 -23
- package/Toggle.js +2 -1
- package/package.json +2 -2
package/Checkbox.js
CHANGED
package/Number.js
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
import { Flex } from '@symbo.ls/atoms'
|
|
3
4
|
import { Input } from './Input'
|
|
4
5
|
|
|
5
|
-
export const
|
|
6
|
-
extend: Input,
|
|
7
|
-
props: {
|
|
6
|
+
export const Number = {
|
|
7
|
+
extend: [Input, Flex],
|
|
8
|
+
props: {
|
|
9
|
+
type: 'number',
|
|
10
|
+
fontSize: 'E',
|
|
11
|
+
boxSize: 'C+X',
|
|
12
|
+
align: 'center center',
|
|
13
|
+
textAlign: 'center',
|
|
14
|
+
round: 'Y1',
|
|
15
|
+
theme: 'transparent',
|
|
16
|
+
border: 'solid, gray3',
|
|
17
|
+
borderWidth: '1px',
|
|
18
|
+
placeholder: '0',
|
|
19
|
+
fontWeight: '400',
|
|
20
|
+
style: {
|
|
21
|
+
'&::-webkit-inner-spin-button': {
|
|
22
|
+
'-webkit-appearance': 'none'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
8
26
|
attr: {
|
|
9
27
|
step: ({ props }) => props.step,
|
|
10
28
|
min: ({ props }) => props.min,
|
package/Textarea.js
CHANGED
|
@@ -9,12 +9,15 @@ export const Textarea = {
|
|
|
9
9
|
|
|
10
10
|
props: {
|
|
11
11
|
variant: 'outlined',
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
fontfamily: 'Avenir',
|
|
13
|
+
round: 'Z1',
|
|
14
|
+
maxWidth: 'H',
|
|
14
15
|
minHeight: 'E',
|
|
15
16
|
placeholder: 'Leave us a message...',
|
|
16
17
|
padding: 'A',
|
|
18
|
+
theme: 'transparent',
|
|
17
19
|
color: 'white',
|
|
20
|
+
border: 'none',
|
|
18
21
|
style: { resize: 'none' }
|
|
19
22
|
},
|
|
20
23
|
|
|
@@ -30,9 +33,7 @@ export const Textarea = {
|
|
|
30
33
|
|
|
31
34
|
'.outlined': {
|
|
32
35
|
props: {
|
|
33
|
-
border: '1px solid #3F3F43',
|
|
34
36
|
background: 'transparent',
|
|
35
|
-
round: 'Y+W', //
|
|
36
37
|
width: 'G1',
|
|
37
38
|
height: 'D2+W',
|
|
38
39
|
lineHeight: 1.4,
|
|
@@ -44,25 +45,6 @@ export const Textarea = {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
export const TextareaWithTitle = {
|
|
48
|
-
extend: Flex,
|
|
49
|
-
props: {
|
|
50
|
-
flow: 'column',
|
|
51
|
-
boxSize: 'fit-content fit-content',
|
|
52
|
-
gap: 'Y+W'
|
|
53
|
-
},
|
|
54
|
-
Title: {
|
|
55
|
-
props: {
|
|
56
|
-
text: 'Label',
|
|
57
|
-
fontSize: 'Z',
|
|
58
|
-
lineHeight: '1em',
|
|
59
|
-
padding: '- - - Z',
|
|
60
|
-
color: 'gray4'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
Textarea: {}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
48
|
export const TextareaWithButton = {
|
|
67
49
|
extend: Flex,
|
|
68
50
|
props: { gap: 'Y2' },
|
package/Toggle.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { Checkbox, CheckboxTitleParagraph } from './Checkbox'
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* A Toggle component
|
|
6
7
|
* The `Toggle` component represents a customizable checkbox input with a switch-like appearance.
|
|
@@ -48,7 +49,7 @@ export const Toggle = {
|
|
|
48
49
|
padding: '- W',
|
|
49
50
|
round: 'D',
|
|
50
51
|
align: 'center flex-start',
|
|
51
|
-
background: 'gray
|
|
52
|
+
background: 'gray',
|
|
52
53
|
border: 'none',
|
|
53
54
|
transition: 'opacity .15s ease',
|
|
54
55
|
':after': {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/input",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.231",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"source": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"gitHead": "
|
|
7
|
+
"gitHead": "5d29ff74b50f1feeeff85976496c4320fce96f71",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@domql/utils": "latest",
|
|
10
10
|
"@symbo.ls/atoms": "latest"
|