@apify/ui-library 1.101.1 → 1.103.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.101.1",
3
+ "version": "1.103.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": "22ac16994fd08d7318fca1066b88847c300729ee"
67
+ "gitHead": "d17760346a13806ba7f2bae7220eaad85e7d1a40"
68
68
  }
@@ -27,8 +27,10 @@ const BADGE_TEXT_SIZES = {
27
27
  extra_small: 'small',
28
28
  } satisfies Record<BadgeSize, SharedTextSize>;
29
29
 
30
- export const BADGE_VARIANTS = ['neutral', 'neutral_muted', 'neutral_subtle', 'primary_black', 'primary_blue', 'success', 'warning', 'danger'] as const;
31
- type BadgeVariant = typeof BADGE_VARIANTS[number];
30
+ export type BadgeVariant = 'neutral' | 'neutral_muted' | 'neutral_subtle' | 'primary_black' | 'primary_blue' | 'success' | 'warning' | 'danger';
31
+ export const BADGE_VARIANTS: BadgeVariant[] = [
32
+ 'neutral', 'neutral_muted', 'neutral_subtle', 'primary_black', 'primary_blue', 'success', 'warning', 'danger',
33
+ ] as const;
32
34
 
33
35
  type SharedBadgeProps = Omit<RegularBoxProps, 'as' | 'onClick'> & MarginSpacingProps;
34
36
  export type BadgeProps = SharedBadgeProps & {
@@ -72,7 +74,7 @@ const badgeVariantStyle = {
72
74
  background: ${theme.color.neutral.chipBackground};
73
75
  `,
74
76
  neutral_subtle: css`
75
- color: ${theme.color.neutral.textSubtle};
77
+ color: ${theme.color.neutral.text};
76
78
  fill: ${theme.color.neutral.textSubtle};
77
79
  background: ${theme.color.neutral.backgroundSubtle};
78
80
  `,
@@ -130,7 +130,7 @@ const tabVariantStyle = {
130
130
  }
131
131
 
132
132
  &.active {
133
- background-color: transparent;
133
+ background-color: ${theme.color.neutral.background};
134
134
  border-color: ${theme.color.neutral.border};
135
135
  color: ${theme.color.neutral.text};
136
136
  }
@@ -157,7 +157,7 @@ const TabWrapper = styled(Link)<TabWrapperProps>`
157
157
  transition: background-color ${theme.transition.fastEaseOut}, border-color ${theme.transition.fastEaseOut}, color ${theme.transition.fastEaseOut};
158
158
  z-index: 1;
159
159
 
160
-
160
+
161
161
  ${({ $variant }) => tabVariantStyle[$variant]};
162
162
 
163
163
  &.disabled {