@apify/ui-library 1.102.0 → 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.
|
|
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": "
|
|
67
|
+
"gitHead": "d17760346a13806ba7f2bae7220eaad85e7d1a40"
|
|
68
68
|
}
|
package/src/components/badge.tsx
CHANGED
|
@@ -27,8 +27,10 @@ const BADGE_TEXT_SIZES = {
|
|
|
27
27
|
extra_small: 'small',
|
|
28
28
|
} satisfies Record<BadgeSize, SharedTextSize>;
|
|
29
29
|
|
|
30
|
-
export
|
|
31
|
-
|
|
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.
|
|
77
|
+
color: ${theme.color.neutral.text};
|
|
76
78
|
fill: ${theme.color.neutral.textSubtle};
|
|
77
79
|
background: ${theme.color.neutral.backgroundSubtle};
|
|
78
80
|
`,
|