@apify/ui-library 1.115.1 → 1.116.0

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": "@apify/ui-library",
3
- "version": "1.115.1",
3
+ "version": "1.116.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -64,5 +64,5 @@
64
64
  "src",
65
65
  "style"
66
66
  ],
67
- "gitHead": "4c8d177fb4b7faae350cfdb7384bba4cedaf12b7"
67
+ "gitHead": "5752d2ffdd6814a43d72e141985f9f432dffc003"
68
68
  }
@@ -53,6 +53,7 @@ const ButtonSection = ({ ...rest }: Partial<ButtonProps>) => {
53
53
  <Button {...props} variant='secondary'>Secondary</Button>
54
54
  <Button {...props} variant='tertiary'>Tertiary</Button>
55
55
  <Button {...props} disabled>Disabled</Button>
56
+ <Button {...props} variant='tertiary' disabled>Tertiary Disabled</Button>
56
57
  </ButtonGrid>
57
58
 
58
59
  <h6>With leading icon</h6>
@@ -61,6 +62,7 @@ const ButtonSection = ({ ...rest }: Partial<ButtonProps>) => {
61
62
  <Button {...props} LeftIcon={CrossIcon} variant='secondary'>Secondary</Button>
62
63
  <Button {...props} LeftIcon={CrossIcon} variant='tertiary'>Tertiary</Button>
63
64
  <Button {...props} LeftIcon={CrossIcon} disabled>Disabled</Button>
65
+ <Button {...props} LeftIcon={CrossIcon} variant='tertiary' disabled>Tertiary Disabled</Button>
64
66
  </ButtonGrid>
65
67
 
66
68
  <h6>With trailing icon</h6>
@@ -69,6 +71,7 @@ const ButtonSection = ({ ...rest }: Partial<ButtonProps>) => {
69
71
  <Button {...props} RightIcon={CrossIcon} variant='secondary'>Secondary</Button>
70
72
  <Button {...props} RightIcon={CrossIcon} variant='tertiary'>Tertiary</Button>
71
73
  <Button {...props} RightIcon={CrossIcon} disabled>Disabled</Button>
74
+ <Button {...props} RightIcon={CrossIcon} variant='tertiary' disabled>Tertiary Disabled</Button>
72
75
  </ButtonGrid>
73
76
 
74
77
  <h6>With both icons</h6>
@@ -105,6 +108,15 @@ const ButtonSection = ({ ...rest }: Partial<ButtonProps>) => {
105
108
  >
106
109
  Disabled
107
110
  </Button>
111
+ <Button
112
+ {...props}
113
+ RightIcon={CrossIcon}
114
+ LeftIcon={CrossIcon}
115
+ variant='tertiary'
116
+ disabled
117
+ >
118
+ Tertiary Disabled
119
+ </Button>
108
120
  </ButtonGrid>
109
121
  </Wrapper>
110
122
  );
@@ -242,7 +242,7 @@ export const getButtonColorStyles = (variant: ButtonVariant = 'primary', color:
242
242
 
243
243
  &:disabled {
244
244
  color: ${theme.color.neutral.textDisabled};
245
- background-color: ${theme.color.neutral.disabled};
245
+ background-color: ${variant === 'tertiary' ? 'transparent' : theme.color.neutral.disabled};
246
246
  border-color: ${variant === 'tertiary' ? 'transparent' : theme.color.neutral.disabled};
247
247
 
248
248
  cursor: default;