@apify/ui-library 0.79.0 → 0.81.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": "0.79.0",
3
+ "version": "0.81.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -72,5 +72,5 @@
72
72
  "src",
73
73
  "style"
74
74
  ],
75
- "gitHead": "cacada89458f8918ed098ddc01ca0b91f3718c76"
75
+ "gitHead": "b3a70f747fd1578657936c16fbff780962e93c49"
76
76
  }
@@ -8,7 +8,7 @@ import type { ValueOf } from '@apify-packages/types';
8
8
  import { theme } from '../design_system/theme.js';
9
9
  import type { RegularBoxProps } from './box.js';
10
10
 
11
- const CHIP_SIZES = {
11
+ export const CHIP_SIZES = {
12
12
  EXTRA_SMALL: 'XS',
13
13
  SMALL: 'S',
14
14
  MEDIUM: 'M',
@@ -16,7 +16,7 @@ const CHIP_SIZES = {
16
16
  } as const;
17
17
  type CHIP_SIZES = ValueOf<typeof CHIP_SIZES>;
18
18
 
19
- const CHIP_TYPES = {
19
+ export const CHIP_TYPES = {
20
20
  DEFAULT: 'DEFAULT',
21
21
  PRIMARY: 'PRIMARY',
22
22
  SUCCESS: 'SUCCESS',
@@ -163,17 +163,18 @@ const StyledTag = styled(Box)<StyledTagProps>`
163
163
  /**
164
164
  * Component for displaying inherenly interactive chip descendant
165
165
  */
166
- function TagWrapper<T extends TagNodeType>({
167
- as,
168
- size = 'small',
169
- type = 'body',
170
- variant = 'primary',
171
- LeadingIcon,
172
- TrailingIcon,
173
- children,
174
- ...props
175
- }: TagProps<T>,
176
- ref: ForwardedRef<TagNodePropsMap[T]['element']>,
166
+ function TagWrapper<T extends TagNodeType>(
167
+ {
168
+ as,
169
+ size = 'small',
170
+ type = 'body',
171
+ variant = 'primary',
172
+ LeadingIcon,
173
+ TrailingIcon,
174
+ children,
175
+ ...props
176
+ }: TagProps<T>,
177
+ ref: ForwardedRef<TagNodePropsMap[T]['element']>,
177
178
  ) {
178
179
  const component: React.ElementType = (as === 'a' ? Link : as ?? 'button');
179
180