@apify/ui-library 1.84.3-fixactorissuescomponentsoncl-2f1509.7 → 1.85.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.84.3-fixactorissuescomponentsoncl-2f1509.7+cb135631463",
3
+ "version": "1.85.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -65,5 +65,5 @@
65
65
  "src",
66
66
  "style"
67
67
  ],
68
- "gitHead": "cb135631463566a35469a5142d446af2335c05c8"
68
+ "gitHead": "887177418a6630b5b2343d033c83f6f8578cac64"
69
69
  }
@@ -1,5 +1,4 @@
1
1
  import clsx from 'clsx';
2
- import _ from 'lodash';
3
2
  import React from 'react';
4
3
  import styled from 'styled-components';
5
4
 
@@ -207,7 +206,7 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
207
206
  const commonProps = {
208
207
  className: clsx(CODE_BLOCK_WITH_TABS_CLASSNAMES.TAB, { selected }),
209
208
  'data-test': `code-block-tab-${tab.key}`,
210
- ..._.omit(tab, ['bashCommandsStart', 'content', 'languageOverride']),
209
+ onClick: tab.onClick,
211
210
  };
212
211
  const children = (
213
212
  <>
@@ -224,8 +223,10 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
224
223
  return (
225
224
  <Link
226
225
  {...commonProps}
227
- key={tab.key}
228
226
  to={tab.to}
227
+ rel={tab.rel}
228
+ target={tab.target}
229
+ key={tab.key}
229
230
  >
230
231
  {children}
231
232
  </Link>
@@ -17,6 +17,7 @@ type RatingStatsProps = {
17
17
 
18
18
  const StyledRating = styled(Box)`
19
19
  display: flex;
20
+ align-items: center;
20
21
  `;
21
22
 
22
23
  const StyledRatingStats = styled(Box)`
@@ -54,6 +55,21 @@ const StyledRatingBar = styled(Box)<{ $widthPercent: number }>`
54
55
  }
55
56
  `;
56
57
 
58
+ type SingleStarRatingProps = BoxProps & {
59
+ color?: string;
60
+ }
61
+
62
+ export const SingleStarRating: FC<SingleStarRatingProps> = ({
63
+ color = theme.color.neutral.icon,
64
+ ...rest
65
+ }) => {
66
+ return (
67
+ <StyledRating {...rest}>
68
+ <StarFullIcon size="12" color={color} />
69
+ </StyledRating>
70
+ );
71
+ };
72
+
57
73
  // 0 is only for empty rating - we don't display any stars filled
58
74
  type RatingProps = BoxProps & {
59
75
  rating: number | undefined;
@@ -6,7 +6,7 @@ import type { WithTransientProps } from '../../type_utils.js';
6
6
  import type { TextBaseProps } from './text_base.js';
7
7
  import { TextBaseComponent } from './text_base.js';
8
8
 
9
- type HeadingMarketingType = 'titleXs' | 'titleS' | 'titleM' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
9
+ type HeadingMarketingType = 'titleXs' | 'titleS' | 'titleM' | 'titleMl' | 'titleL' | 'titleXl' | 'title2xl' | 'title3xl';
10
10
 
11
11
  interface HeadingMarketingTransientProps {
12
12
  type?: HeadingMarketingType,
@@ -19,6 +19,7 @@ const HEADING_MARKETING_DEFAULT_ELEMENTS: { [Type in HeadingMarketingType]: stri
19
19
  titleXs: 'h6',
20
20
  titleS: 'h5',
21
21
  titleM: 'h4',
22
+ titleMl: 'h4',
22
23
  titleL: 'h3',
23
24
  titleXl: 'h2',
24
25
  title2xl: 'h1',
@@ -311,6 +311,15 @@
311
311
  "fontFamily": "GT Walsheim"
312
312
  },
313
313
  "type": "typography"
314
+ },
315
+ "titleMl": {
316
+ "value": {
317
+ "fontFamily": "GT Walsheim",
318
+ "fontSize": "26",
319
+ "fontWeight": "400",
320
+ "lineHeight": "34"
321
+ },
322
+ "type": "typography"
314
323
  }
315
324
  },
316
325
  "tablet": {
@@ -358,6 +367,15 @@
358
367
  "fontFamily": "GT Walsheim"
359
368
  },
360
369
  "type": "typography"
370
+ },
371
+ "titleMl": {
372
+ "value": {
373
+ "fontFamily": "GT Walsheim",
374
+ "fontSize": "28",
375
+ "fontWeight": "400",
376
+ "lineHeight": "36"
377
+ },
378
+ "type": "typography"
361
379
  }
362
380
  },
363
381
  "title3xl": {
@@ -405,6 +423,15 @@
405
423
  },
406
424
  "type": "typography"
407
425
  },
426
+ "titleMl": {
427
+ "value": {
428
+ "fontFamily": "GT Walsheim",
429
+ "fontSize": "36",
430
+ "fontWeight": "400",
431
+ "lineHeight": "42"
432
+ },
433
+ "type": "typography"
434
+ },
408
435
  "titleS": {
409
436
  "value": {
410
437
  "fontWeight": "650",
@@ -93,6 +93,7 @@ export const typographyTokens = {
93
93
  titleXl: "font-size: 3.2rem; line-height: 4.2rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
94
94
  titleL: "font-size: 2.8rem; line-height: 3.6rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
95
95
  titleM: "font-size: 2.4rem; line-height: 3.2rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
96
+ titleMl: "font-size: 2.6rem; line-height: 3.4rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
96
97
  titleS: 'font-size: 2rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
97
98
  titleXs: 'font-size: 1.6rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
98
99
  bodyL: 'font-size: 1.8rem; line-height: 2.8rem; font-weight: 400; font-family: Inter, sans-serif;',
@@ -115,6 +116,7 @@ export const typographyTokens = {
115
116
  titleXl: "font-size: 4.4rem; line-height: 5.4rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
116
117
  titleL: "font-size: 3.2rem; line-height: 4.2rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
117
118
  titleM: "font-size: 2.6rem; line-height: 3rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
119
+ titleMl: "font-size: 2.8rem; line-height: 3.6rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
118
120
  titleS: 'font-size: 2rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
119
121
  titleXs: 'font-size: 1.6rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
120
122
  bodyL: 'font-size: 1.8rem; line-height: 2.8rem; font-weight: 400; font-family: Inter, sans-serif;',
@@ -137,6 +139,7 @@ export const typographyTokens = {
137
139
  titleXl: "font-size: 4.8rem; line-height: 5.8rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
138
140
  titleL: "font-size: 4rem; line-height: 5rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
139
141
  titleM: "font-size: 2.6rem; line-height: 3.4rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
142
+ titleMl: "font-size: 3.6rem; line-height: 4.2rem; font-weight: 400; font-family: 'GT-Walsheim-Regular', sans-serif;",
140
143
  titleS: 'font-size: 2rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
141
144
  titleXs: 'font-size: 1.6rem; line-height: 2.4rem; font-weight: 650; font-family: Inter, sans-serif;',
142
145
  bodyL: 'font-size: 1.8rem; line-height: 2.8rem; font-weight: 400; font-family: Inter, sans-serif;',