@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/dist/src/components/chip.d.ts +2 -2
- package/dist/src/components/chip.d.ts.map +1 -1
- package/dist/src/components/chip.js +2 -2
- package/dist/src/components/chip.js.map +1 -1
- package/dist/src/components/tag.d.ts.map +1 -1
- package/dist/src/components/tag.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/chip.tsx +2 -2
- package/src/components/tag.tsx +12 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "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": "
|
|
75
|
+
"gitHead": "b3a70f747fd1578657936c16fbff780962e93c49"
|
|
76
76
|
}
|
package/src/components/chip.tsx
CHANGED
|
@@ -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',
|
package/src/components/tag.tsx
CHANGED
|
@@ -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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
|