@apify/ui-library 1.116.0 → 1.117.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.117.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": "13929e171fe47c6451f983e94763b5923af1215d"
|
|
68
68
|
}
|
package/src/components/badge.tsx
CHANGED
|
@@ -40,6 +40,7 @@ export type BadgeProps = SharedBadgeProps & {
|
|
|
40
40
|
type?: SharedTextType;
|
|
41
41
|
variant?: BadgeVariant;
|
|
42
42
|
LeadingIcon?: IconComponent;
|
|
43
|
+
TrailingIcon?: IconComponent;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
const badgeSizeStyle = {
|
|
@@ -139,6 +140,7 @@ export const Badge = forwardRef(
|
|
|
139
140
|
type = 'body',
|
|
140
141
|
variant = 'neutral',
|
|
141
142
|
LeadingIcon,
|
|
143
|
+
TrailingIcon,
|
|
142
144
|
children,
|
|
143
145
|
...props
|
|
144
146
|
}: BadgeProps,
|
|
@@ -154,6 +156,7 @@ export const Badge = forwardRef(
|
|
|
154
156
|
>
|
|
155
157
|
{LeadingIcon && <LeadingIcon size={BADGE_ICON_SIZES[size]} />}
|
|
156
158
|
{children && (<Text size={BADGE_TEXT_SIZES[size]} type={type} weight="medium" as='span'>{children}</Text>)}
|
|
159
|
+
{TrailingIcon && <TrailingIcon size={BADGE_ICON_SIZES[size]} />}
|
|
157
160
|
</StyledBadge>
|
|
158
161
|
);
|
|
159
162
|
},
|