@symbo.ls/input 2.11.226 → 2.11.234

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
@@ -57,7 +57,7 @@ export const CheckboxTitleParagraph = {
57
57
  },
58
58
 
59
59
  Checkbox: { tag: 'div' },
60
- TitleParagraph: {
60
+ TitleParagraphRows: {
61
61
  gap: 'Z1',
62
62
  margin: 'Y - - -'
63
63
  }
package/NumberInput.js ADDED
@@ -0,0 +1,31 @@
1
+ 'use strict'
2
+
3
+ import { Flex } from '@symbo.ls/atoms'
4
+ import { Input } from './Input'
5
+
6
+ export const NumberInput = {
7
+ extend: [Input, Flex],
8
+
9
+ props: {
10
+ type: 'number',
11
+ fontSize: 'E',
12
+ boxSize: 'C+X',
13
+ align: 'center center',
14
+ textAlign: 'center',
15
+ round: 'Y1',
16
+ theme: 'transparent',
17
+ border: 'solid, gray3',
18
+ borderWidth: '1px',
19
+ placeholder: '0',
20
+ fontWeight: '400',
21
+ '::-webkit-inner-spin-button': {
22
+ appearance: 'none'
23
+ }
24
+ },
25
+
26
+ attr: {
27
+ step: ({ props }) => props.step,
28
+ min: ({ props }) => props.min,
29
+ max: ({ props }) => props.max
30
+ }
31
+ }
package/Textarea.js CHANGED
@@ -9,12 +9,15 @@ export const Textarea = {
9
9
 
10
10
  props: {
11
11
  variant: 'outlined',
12
- round: 'Z2',
13
- width: 'H',
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 .8 +68',
52
+ background: 'gray',
52
53
  border: 'none',
53
54
  transition: 'opacity .15s ease',
54
55
  ':after': {
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  export * from './Input'
4
- export * from './Number'
4
+ export * from './NumberInput'
5
5
  export * from './Checkbox'
6
6
  export * from './Radio'
7
7
  export * from './Toggle'
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "2.11.226",
3
+ "version": "2.11.234",
4
4
  "main": "index.js",
5
5
  "source": "index.js",
6
6
  "license": "MIT",
7
- "gitHead": "cc4d8658520b0dc949f40274fbc99f2915877f96",
7
+ "gitHead": "16ba231199a1a519fa482541824c9820630f826e",
8
8
  "dependencies": {
9
9
  "@domql/utils": "latest",
10
10
  "@symbo.ls/atoms": "latest"
package/Number.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict'
2
-
3
- import { Input } from './Input'
4
-
5
- export const NumberInput = {
6
- extend: Input,
7
- props: { type: 'number' },
8
- attr: {
9
- step: ({ props }) => props.step,
10
- min: ({ props }) => props.min,
11
- max: ({ props }) => props.max
12
- }
13
- }