@symbo.ls/input 2.11.249 → 2.11.265

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
@@ -23,7 +23,9 @@ export const Checkbox = {
23
23
  opacity: '1'
24
24
  }
25
25
  },
26
- attr: { checked: ({ parent }) => parent.props.checked }
26
+ attr: {
27
+ checked: ({ parent }) => parent.props.checked
28
+ }
27
29
  },
28
30
 
29
31
  Flex: {
@@ -46,7 +48,7 @@ export const Checkbox = {
46
48
  }
47
49
  }
48
50
 
49
- export const CheckboxTitleParagraph = {
51
+ export const CheckboxHgroup = {
50
52
  extend: Flex,
51
53
  tag: 'label',
52
54
 
@@ -57,7 +59,7 @@ export const CheckboxTitleParagraph = {
57
59
  },
58
60
 
59
61
  Checkbox: { tag: 'div' },
60
- TitleParagraphRows: {
62
+ HgroupRows: {
61
63
  gap: 'Z1',
62
64
  margin: 'Y - - -'
63
65
  }
package/Radio.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { Pseudo } from '@symbo.ls/atoms'
4
- import { Checkbox, CheckboxTitleParagraph } from './Checkbox'
4
+ import { Checkbox, CheckboxHgroup } from './Checkbox'
5
5
 
6
6
  export const Radio = {
7
7
  extend: Checkbox,
@@ -30,8 +30,8 @@ export const Radio = {
30
30
  }
31
31
  }
32
32
 
33
- export const RadioTitleParagraph = {
34
- extend: CheckboxTitleParagraph,
33
+ export const RadioHgroup = {
34
+ extend: CheckboxHgroup,
35
35
  Checkbox: null,
36
36
  Radio: {}
37
37
  }
package/Textarea.js CHANGED
@@ -52,7 +52,7 @@ export const TextareaWithButton = {
52
52
  round: 'Z2',
53
53
  minHeight: 'fit-content'
54
54
  },
55
- IconCommonButton: {
55
+ IconFlexButton: {
56
56
  props: {
57
57
  background: 'blue',
58
58
  Icon: { name: 'send' }
package/Toggle.js CHANGED
@@ -1,45 +1,16 @@
1
1
  'use strict'
2
2
 
3
- import { Checkbox, CheckboxTitleParagraph } from './Checkbox'
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
- */
3
+ import { Checkbox, CheckboxHgroup } from './Checkbox'
35
4
 
36
5
  export const Toggle = {
37
6
  extend: Checkbox,
38
7
 
39
8
  Input: {
40
- ':checked + div': {
41
- background: 'green2 +8',
42
- justifyContent: 'flex-end'
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
- background: 'gray',
23
+ theme: 'field',
53
24
  border: 'none',
54
25
  transition: 'opacity .15s ease',
55
26
  ':after': {
@@ -64,8 +35,8 @@ export const Toggle = {
64
35
  }
65
36
  }
66
37
 
67
- export const ToggleTitleParagraph = {
68
- extend: CheckboxTitleParagraph,
38
+ export const ToggleHgroup = {
39
+ extend: CheckboxHgroup,
69
40
  Checkbox: null,
70
41
  Toggle: {}
71
42
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@symbo.ls/input",
3
- "version": "2.11.249",
3
+ "version": "2.11.265",
4
4
  "main": "index.js",
5
5
  "source": "index.js",
6
6
  "license": "MIT",
7
- "gitHead": "9c800fdfdff5d9a49083e7d4f849189a35b8054c",
7
+ "gitHead": "e96a45d1a191dbcd8ee2d02c969398821e1f446d",
8
8
  "dependencies": {
9
9
  "@domql/utils": "latest",
10
10
  "@symbo.ls/atoms": "latest"