@symbo.ls/input 2.11.247 → 2.11.261
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 +3 -1
- package/Textarea.js +5 -8
- package/Toggle.js +6 -35
- package/package.json +2 -2
package/Checkbox.js
CHANGED
package/Textarea.js
CHANGED
|
@@ -11,12 +11,14 @@ export const Textarea = {
|
|
|
11
11
|
variant: 'outlined',
|
|
12
12
|
fontfamily: 'Avenir',
|
|
13
13
|
round: 'Z1',
|
|
14
|
-
maxWidth: 'H',
|
|
15
|
-
minHeight: 'E',
|
|
16
14
|
placeholder: 'Leave us a message...',
|
|
17
15
|
padding: 'A',
|
|
18
16
|
theme: 'transparent',
|
|
19
17
|
border: 'none',
|
|
18
|
+
maxWidth: 'G1_default',
|
|
19
|
+
minHeight: 'E_default',
|
|
20
|
+
width: '100%',
|
|
21
|
+
height: 'E1_default',
|
|
20
22
|
style: { resize: 'none' }
|
|
21
23
|
},
|
|
22
24
|
|
|
@@ -24,8 +26,6 @@ export const Textarea = {
|
|
|
24
26
|
props: {
|
|
25
27
|
theme: 'field',
|
|
26
28
|
round: 'Z2',
|
|
27
|
-
width: 'G1_default',
|
|
28
|
-
height: 'E1',
|
|
29
29
|
lineHeight: 1.4
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -33,8 +33,6 @@ export const Textarea = {
|
|
|
33
33
|
'.outlined': {
|
|
34
34
|
props: {
|
|
35
35
|
background: 'transparent',
|
|
36
|
-
width: 'G1_default',
|
|
37
|
-
height: 'D2+W',
|
|
38
36
|
lineHeight: 1.4,
|
|
39
37
|
placeholder: 'Leave us a message...',
|
|
40
38
|
outline: 'none !important',
|
|
@@ -52,8 +50,7 @@ export const TextareaWithButton = {
|
|
|
52
50
|
padding: 'A',
|
|
53
51
|
fontSize: 'Z1',
|
|
54
52
|
round: 'Z2',
|
|
55
|
-
minHeight: '
|
|
56
|
-
|
|
53
|
+
minHeight: 'fit-content'
|
|
57
54
|
},
|
|
58
55
|
IconCommonButton: {
|
|
59
56
|
props: {
|
package/Toggle.js
CHANGED
|
@@ -2,44 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { Checkbox, CheckboxTitleParagraph } from './Checkbox'
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* A Toggle component
|
|
7
|
-
* The `Toggle` component represents a customizable checkbox input with a switch-like appearance.
|
|
8
|
-
* It extends the Checkbox component and allows for various style and property configurations.
|
|
9
|
-
*
|
|
10
|
-
* @typedef {Object} Toggle
|
|
11
|
-
* @property {Object} Input - Style configurations for the input element.
|
|
12
|
-
* @property {Object} Flex - Style and property configurations for the surrounding container.
|
|
13
|
-
* @property {Object} Flex.props - Additional properties for the Flex container.
|
|
14
|
-
* @property {string} Flex.props.boxSize - The size of the container (e.g., 'A+X B+Z').
|
|
15
|
-
* @property {string} Flex.props.padding - The padding of the container (e.g., '- W').
|
|
16
|
-
* @property {string} Flex.props.round - The roundness of the container (e.g., 'D').
|
|
17
|
-
* @property {string} Flex.props.align - The alignment of the container (e.g., 'center flex-start').
|
|
18
|
-
* @property {string} Flex.props.background - The background color of the container (e.g., 'gray .8 +68').
|
|
19
|
-
* @property {string} Flex.props.border - The border style of the container (e.g., 'none').
|
|
20
|
-
* @property {string} Flex.props.transition - The transition effect of the container (e.g., 'opacity .15s ease').
|
|
21
|
-
* @property {Object} Flex.props.:after - Additional styles for the pseudo-element ":after".
|
|
22
|
-
* @property {string} Flex.props.:after.content - Content to be displayed in the pseudo-element.
|
|
23
|
-
* @property {string} Flex.props.:after.boxSize - The size of the pseudo-element (e.g., 'A A').
|
|
24
|
-
* @property {string} Flex.props.:after.round - The roundness of the pseudo-element (e.g., '100%').
|
|
25
|
-
* @property {string} Flex.props.:after.background - The background color of the pseudo-element (e.g., 'white').
|
|
26
|
-
* @property {string} Flex.props.:after.boxShadow - The box shadow of the pseudo-element (e.g., '1px, 1px, Z, gray .2').
|
|
27
|
-
* @property {null|object} Flex.Icon - An optional icon for the Toggle component.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // Example usage of the Toggle component:
|
|
31
|
-
* const myToggle = {
|
|
32
|
-
* extend: Toggle,
|
|
33
|
-
* };
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
5
|
export const Toggle = {
|
|
37
6
|
extend: Checkbox,
|
|
38
7
|
|
|
39
8
|
Input: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
9
|
+
props: {
|
|
10
|
+
':checked + div': {
|
|
11
|
+
background: 'green2 +8',
|
|
12
|
+
justifyContent: 'flex-end'
|
|
13
|
+
}
|
|
43
14
|
}
|
|
44
15
|
},
|
|
45
16
|
|
|
@@ -49,7 +20,7 @@ export const Toggle = {
|
|
|
49
20
|
padding: '- W',
|
|
50
21
|
round: 'D',
|
|
51
22
|
align: 'center flex-start',
|
|
52
|
-
|
|
23
|
+
theme: 'field',
|
|
53
24
|
border: 'none',
|
|
54
25
|
transition: 'opacity .15s ease',
|
|
55
26
|
':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.261",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"source": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"gitHead": "
|
|
7
|
+
"gitHead": "53e63702105d8c7baf0f136c5756383533bf3b30",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@domql/utils": "latest",
|
|
10
10
|
"@symbo.ls/atoms": "latest"
|