@veracity/vui 2.29.6-beta.0 → 2.29.6-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veracity/vui",
3
- "version": "2.29.6-beta.0",
3
+ "version": "2.29.6-beta.1",
4
4
  "description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
5
5
  "module": "./dist/esm/index.js",
6
6
  "main": "./dist/cjs/index.js",
@@ -48,6 +48,8 @@ export type ListItemProps = SystemProps &
48
48
  itemLeft?: React.ReactNode
49
49
  /** Socket displaying a custom item on the right. */
50
50
  itemRight?: React.ReactNode
51
+ /** If true, item Left or item right will receive size params based on main size. */
52
+ syncItemSizes?: boolean
51
53
  /** If provided, content is wrapper with a link and the props are provided to the element. */
52
54
  linkProps?: ListItemLinkProps
53
55
  /** Socket displaying text within the item. */
package/src/list/theme.ts CHANGED
@@ -13,16 +13,22 @@ const baseStyle = {
13
13
 
14
14
  const defaultProps = {
15
15
  size: 'lg',
16
+ button: {
17
+ size: 'sm',
18
+ },
16
19
  variant: 'default',
17
20
  }
18
21
 
19
- const parts = ['container', 'divider', 'heading', 'icon', 'item', 'text']
22
+ const parts = ['container', 'divider', 'heading', 'icon', 'item', 'text', 'button']
20
23
 
21
24
  const sizes = {
22
25
  sm: {
23
26
  icon: {
24
27
  size: 'xs',
25
28
  },
29
+ button: {
30
+ size: 'sm',
31
+ },
26
32
  item: {
27
33
  fontSize: 12,
28
34
  h: 24,
@@ -33,6 +39,9 @@ const sizes = {
33
39
  },
34
40
  md: {
35
41
  icon: {
42
+ size: 'xs',
43
+ },
44
+ button: {
36
45
  size: 'sm',
37
46
  },
38
47
  item: {
@@ -45,7 +54,10 @@ const sizes = {
45
54
  },
46
55
  lg: {
47
56
  icon: {
48
- size: 'md',
57
+ size: 'sm',
58
+ },
59
+ button: {
60
+ size: 'sm',
49
61
  },
50
62
  item: {
51
63
  fontSize: 16,
@@ -57,7 +69,10 @@ const sizes = {
57
69
  },
58
70
  xl: {
59
71
  icon: {
60
- size: 'lg',
72
+ size: 'md',
73
+ },
74
+ button: {
75
+ size: 'md',
61
76
  },
62
77
  item: {
63
78
  fontSize: 18,
@@ -69,7 +84,10 @@ const sizes = {
69
84
  },
70
85
  xxl: {
71
86
  icon: {
72
- size: 'xl',
87
+ size: 'md',
88
+ },
89
+ button: {
90
+ size: 'md',
73
91
  },
74
92
  item: {
75
93
  fontSize: 18,
@@ -19,7 +19,7 @@ const sizes = {
19
19
  size: 'sm',
20
20
  },
21
21
  label: {
22
- fontSize: 'sm',
22
+ fontSize: 'xs',
23
23
  },
24
24
  },
25
25
  md: {
@@ -33,7 +33,7 @@ const sizes = {
33
33
  size: 'md',
34
34
  },
35
35
  label: {
36
- fontSize: 'md',
36
+ fontSize: 'sm',
37
37
  },
38
38
  },
39
39
  lg: {