@apify/ui-library 1.87.0 → 1.87.2-fixactorissuescomponentsoncl-2f1509.12
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/action_link.d.ts +1 -1
- package/dist/src/components/action_link.d.ts.map +1 -1
- package/dist/src/components/actor_template_card.d.ts +1 -1
- package/dist/src/components/actor_template_card.d.ts.map +1 -1
- package/dist/src/components/badge.d.ts +1 -1
- package/dist/src/components/badge.d.ts.map +1 -1
- package/dist/src/components/badge.js.map +1 -1
- package/dist/src/components/banner.d.ts +1 -1
- package/dist/src/components/banner.d.ts.map +1 -1
- package/dist/src/components/blog_article.d.ts +1 -1
- package/dist/src/components/blog_article.d.ts.map +1 -1
- package/dist/src/components/box.d.ts +1 -1
- package/dist/src/components/box.d.ts.map +1 -1
- package/dist/src/components/box.js.map +1 -1
- package/dist/src/components/button.d.ts +1 -1
- package/dist/src/components/button.d.ts.map +1 -1
- package/dist/src/components/button.js.map +1 -1
- package/dist/src/components/chip.d.ts +1 -1
- package/dist/src/components/chip.d.ts.map +1 -1
- package/dist/src/components/chip.js.map +1 -1
- package/dist/src/components/code/action_button.d.ts +1 -1
- package/dist/src/components/code/action_button.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.d.ts +1 -1
- package/dist/src/components/code/code_block/code_block.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.js.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.js +3 -2
- package/dist/src/components/code/code_block/code_block_with_tabs.js.map +1 -1
- package/dist/src/components/code/inline_code/inline_code.d.ts +1 -1
- package/dist/src/components/code/inline_code/inline_code.d.ts.map +1 -1
- package/dist/src/components/floating/menu.d.ts +1 -1
- package/dist/src/components/floating/menu.d.ts.map +1 -1
- package/dist/src/components/floating/menu.js.map +1 -1
- package/dist/src/components/link.d.ts +1 -1
- package/dist/src/components/link.d.ts.map +1 -1
- package/dist/src/components/link.js.map +1 -1
- package/dist/src/components/message.d.ts +1 -1
- package/dist/src/components/message.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.d.ts +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.d.ts.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts +1 -1
- package/dist/src/components/simple_markdown/simple_markdown_components.d.ts.map +1 -1
- package/dist/src/components/tabs/tab.d.ts +1 -1
- package/dist/src/components/tabs/tab.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +1 -1
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag.d.ts +2 -1
- package/dist/src/components/tag.d.ts.map +1 -1
- package/dist/src/components/tag.js.map +1 -1
- package/dist/src/components/text/heading_content.d.ts +1 -1
- package/dist/src/components/text/heading_content.d.ts.map +1 -1
- package/dist/src/components/text/heading_marketing.d.ts +1 -1
- package/dist/src/components/text/heading_marketing.d.ts.map +1 -1
- package/dist/src/components/text/heading_shared.d.ts +1 -1
- package/dist/src/components/text/heading_shared.d.ts.map +1 -1
- package/dist/src/components/text/text_base.d.ts +1 -1
- package/dist/src/components/text/text_base.d.ts.map +1 -1
- package/dist/src/components/tile/horizontal_tile.d.ts +1 -1
- package/dist/src/components/tile/horizontal_tile.d.ts.map +1 -1
- package/dist/src/components/tile/vertical_tile.d.ts +1 -1
- package/dist/src/components/tile/vertical_tile.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/card.d.ts +1 -1
- package/dist/src/components/to_consolidate/card.d.ts.map +1 -1
- package/dist/src/components/to_consolidate/card.js.map +1 -1
- package/dist/src/components/to_consolidate/tab_number_chip.d.ts +1 -1
- package/dist/src/components/to_consolidate/tab_number_chip.d.ts.map +1 -1
- package/dist/src/design_system/colors/colors.stories.d.ts.map +1 -1
- package/dist/src/design_system/colors/colors.stories.js +0 -1
- package/dist/src/design_system/colors/colors.stories.js.map +1 -1
- package/dist/src/ui_dependency_provider.d.ts +1 -1
- package/dist/src/ui_dependency_provider.d.ts.map +1 -1
- package/dist/src/ui_dependency_provider.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/action_link.tsx +1 -1
- package/src/components/actor_template_card.tsx +1 -1
- package/src/components/badge.stories.jsx +6 -3
- package/src/components/badge.tsx +2 -1
- package/src/components/banner.tsx +1 -1
- package/src/components/blog_article.tsx +1 -1
- package/src/components/box.tsx +2 -1
- package/src/components/button.stories.jsx +6 -3
- package/src/components/button.tsx +2 -1
- package/src/components/chip.tsx +2 -1
- package/src/components/code/action_button.tsx +1 -1
- package/src/components/code/code_block/code_block.tsx +2 -1
- package/src/components/code/code_block/code_block_with_tabs.tsx +4 -9
- package/src/components/code/inline_code/inline_code.tsx +1 -1
- package/src/components/floating/menu.tsx +2 -1
- package/src/components/link.tsx +2 -1
- package/src/components/message.tsx +1 -1
- package/src/components/simple_markdown/simple_markdown.tsx +2 -1
- package/src/components/simple_markdown/simple_markdown_components.tsx +1 -1
- package/src/components/tabs/tab.tsx +1 -1
- package/src/components/tabs/tabs.tsx +2 -1
- package/src/components/tag.tsx +2 -1
- package/src/components/text/heading_content.tsx +1 -1
- package/src/components/text/heading_marketing.tsx +1 -1
- package/src/components/text/heading_shared.tsx +1 -1
- package/src/components/text/text_base.tsx +1 -1
- package/src/components/tile/horizontal_tile.tsx +1 -1
- package/src/components/tile/vertical_tile.tsx +1 -1
- package/src/components/to_consolidate/card.tsx +2 -1
- package/src/components/to_consolidate/tab_number_chip.tsx +1 -1
- package/src/design_system/colors/colors.stories.tsx +0 -1
- package/src/ui_dependency_provider.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.87.
|
|
3
|
+
"version": "1.87.2-fixactorissuescomponentsoncl-2f1509.12+95cb0678c7c",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"It's not nice, but helps us to get around the problem of multiple react instances."
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@apify/ui-icons": "^1.15.
|
|
29
|
+
"@apify/ui-icons": "^1.15.1",
|
|
30
30
|
"@floating-ui/react": "^0.26.2",
|
|
31
31
|
"@react-hook/resize-observer": "^2.0.2",
|
|
32
32
|
"clsx": "^2.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"src",
|
|
67
67
|
"style"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "95cb0678c7c6b046e97e7d2dc3f55395dbe0276e"
|
|
70
70
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
|
|
6
|
-
import {
|
|
5
|
+
|
|
6
|
+
import { PeopleIcon } from '@apify/ui-icons';
|
|
7
|
+
|
|
8
|
+
import { Badge, BADGE_SIZES, BADGE_VARIANTS } from './badge.jsx';
|
|
9
|
+
import { SHARED_TEXT_TYPES } from './text.jsx';
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
title: 'UI-Library/Badge',
|
package/src/components/badge.tsx
CHANGED
package/src/components/box.tsx
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { X16 } from '@apify/icons';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
5
|
+
import { X16 } from '@apify/icons';
|
|
6
|
+
|
|
7
|
+
import { theme } from '../design_system/theme.jsx';
|
|
8
|
+
import { Button } from './button.jsx';
|
|
6
9
|
|
|
7
10
|
export default {
|
|
8
11
|
title: 'UI-Library/Button',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AriaAttributes } from 'react';
|
|
2
|
-
import React
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
3
4
|
import styled, { css } from 'styled-components';
|
|
4
5
|
|
|
5
6
|
import { ExternalLinkIcon } from '@apify/ui-icons';
|
package/src/components/chip.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
import React
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
4
5
|
import styled, { css } from 'styled-components';
|
|
5
6
|
|
|
6
7
|
import type { ValueOf } from '@apify-packages/types';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import React
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { useMemo, useRef, useState } from 'react';
|
|
3
4
|
|
|
4
5
|
import type { RegularBoxProps } from '../../box.js';
|
|
5
6
|
import { ColorWheelGradient } from '../../color_wheel_gradient.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import type React from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
|
|
5
6
|
import { theme } from '../../../design_system/theme.js';
|
|
@@ -206,7 +207,7 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
|
|
|
206
207
|
const commonProps = {
|
|
207
208
|
className: clsx(CODE_BLOCK_WITH_TABS_CLASSNAMES.TAB, { selected }),
|
|
208
209
|
'data-test': `code-block-tab-${tab.key}`,
|
|
209
|
-
|
|
210
|
+
..._.omit(tab, ['bashCommandsStart', 'content', 'languageOverride']),
|
|
210
211
|
};
|
|
211
212
|
const children = (
|
|
212
213
|
<>
|
|
@@ -221,13 +222,7 @@ export const CodeBlockWithTabs = ({ className, codeBlockProps, currentTabKey, ta
|
|
|
221
222
|
// if the tab has a 'to' prop, render a Link component
|
|
222
223
|
if (tab.to) {
|
|
223
224
|
return (
|
|
224
|
-
<Link
|
|
225
|
-
{...commonProps}
|
|
226
|
-
to={tab.to}
|
|
227
|
-
rel={tab.rel}
|
|
228
|
-
target={tab.target}
|
|
229
|
-
key={tab.key}
|
|
230
|
-
>
|
|
225
|
+
<Link {...commonProps} key={tab.key} to={tab.to}>
|
|
231
226
|
{children}
|
|
232
227
|
</Link>
|
|
233
228
|
);
|
package/src/components/link.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import { createPath, type Path } from 'history';
|
|
3
|
-
import React
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
|
|
6
7
|
import { ExternalLinkIcon } from '@apify/ui-icons';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Element, Root, Text as TextNode } from 'hast';
|
|
2
|
-
import React
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { useCallback, useMemo, useRef } from 'react';
|
|
3
4
|
import type { Components } from 'react-markdown';
|
|
4
5
|
import ReactMarkdown, { uriTransformer } from 'react-markdown';
|
|
5
6
|
import type { ReactMarkdownOptions } from 'react-markdown/lib/react-markdown.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useCallback, useRef, useState } from 'react';
|
|
2
3
|
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
3
4
|
import styled, { css } from 'styled-components';
|
|
4
5
|
|
package/src/components/tag.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type ForwardedRef, forwardRef } from 'react';
|
|
2
3
|
import styled, { css, type FlattenSimpleInterpolation } from 'styled-components';
|
|
3
4
|
|
|
4
5
|
import type { IconComponent, IconSize } from '@apify/ui-icons';
|