@apify/ui-library 1.145.15 → 1.145.17
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/action_link.d.ts +2 -2
- package/dist/src/components/action_link/action_link.d.ts.map +1 -1
- package/dist/src/components/action_link/action_link.js +3 -3
- package/dist/src/components/action_link/action_link.js.map +1 -1
- package/dist/src/components/actor_template_card/actor_template_card.js +3 -3
- package/dist/src/components/actor_template_card/actor_template_card.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +1 -1
- package/dist/src/components/badge/badge.d.ts.map +1 -1
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.js +3 -3
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/browser_window/browser_window.js +1 -1
- package/dist/src/components/browser_window/browser_window.js.map +1 -1
- package/dist/src/components/button/button.d.ts +2 -2
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/button/button.js +2 -2
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/card/card.js +2 -2
- package/dist/src/components/card/card.js.map +1 -1
- package/dist/src/components/card_container/card_container.d.ts +1 -1
- package/dist/src/components/card_container/card_container.d.ts.map +1 -1
- package/dist/src/components/card_container/card_container.js +1 -1
- package/dist/src/components/card_container/card_container.js.map +1 -1
- package/dist/src/components/code/action_button.js +2 -2
- package/dist/src/components/code/action_button.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.js +3 -3
- package/dist/src/components/code/code_block/code_block.js.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.d.ts +2 -2
- package/dist/src/components/code/code_block/code_block.styled.d.ts.map +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js +1 -1
- package/dist/src/components/code/code_block/code_block.styled.js.map +1 -1
- package/dist/src/components/code/code_block/code_block_with_tabs.d.ts +2 -2
- 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 +2 -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.js +1 -1
- package/dist/src/components/code/inline_code/inline_code.js.map +1 -1
- package/dist/src/components/code/one_line_code/one_line_code.js +1 -1
- package/dist/src/components/code/one_line_code/one_line_code.js.map +1 -1
- package/dist/src/components/code/prism_highlighter.d.ts.map +1 -1
- package/dist/src/components/code/prism_highlighter.js +1 -1
- package/dist/src/components/code/prism_highlighter.js.map +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js +1 -1
- package/dist/src/components/collapsible_card/collapsible_card.js.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 +2 -2
- package/dist/src/components/floating/menu.js.map +1 -1
- package/dist/src/components/floating/menu_components.js +2 -2
- package/dist/src/components/floating/menu_components.js.map +1 -1
- package/dist/src/components/floating/tooltip_content.js +1 -1
- package/dist/src/components/floating/tooltip_content.js.map +1 -1
- package/dist/src/components/icon_button/icon_button.d.ts +2 -2
- package/dist/src/components/icon_button/icon_button.d.ts.map +1 -1
- package/dist/src/components/icon_button/icon_button.js +4 -4
- package/dist/src/components/icon_button/icon_button.js.map +1 -1
- package/dist/src/components/image/image.d.ts +1 -1
- package/dist/src/components/image/image.d.ts.map +1 -1
- package/dist/src/components/image/image.js +1 -1
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/index.d.ts +40 -40
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +40 -40
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/link/link.d.ts +1 -1
- package/dist/src/components/link/link.d.ts.map +1 -1
- package/dist/src/components/link/link.js +1 -1
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/markdown/markdown.d.ts.map +1 -1
- package/dist/src/components/markdown/markdown.js +5 -5
- package/dist/src/components/markdown/markdown.js.map +1 -1
- package/dist/src/components/message/message.d.ts +1 -1
- package/dist/src/components/message/message.d.ts.map +1 -1
- package/dist/src/components/message/message.js +3 -3
- package/dist/src/components/message/message.js.map +1 -1
- package/dist/src/components/pagination/pagination.js +2 -2
- package/dist/src/components/pagination/pagination.js.map +1 -1
- package/dist/src/components/rating/rating.js +2 -2
- package/dist/src/components/rating/rating.js.map +1 -1
- package/dist/src/components/readme_renderer/table_of_contents.js +3 -3
- package/dist/src/components/readme_renderer/table_of_contents.js.map +1 -1
- package/dist/src/components/select/select.js +2 -2
- package/dist/src/components/select/select.js.map +1 -1
- package/dist/src/components/shortcut/shortcut.js +1 -1
- package/dist/src/components/shortcut/shortcut.js.map +1 -1
- package/dist/src/components/simple_markdown/simple_markdown.js +5 -5
- 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/simple_markdown/simple_markdown_components.js +6 -6
- package/dist/src/components/simple_markdown/simple_markdown_components.js.map +1 -1
- package/dist/src/components/store/store_actor_header.d.ts +1 -1
- package/dist/src/components/store/store_actor_header.d.ts.map +1 -1
- package/dist/src/components/store/store_actor_header.js +2 -2
- package/dist/src/components/store/store_actor_header.js.map +1 -1
- package/dist/src/components/tab_number_chip/tab_number_chip.js +1 -1
- package/dist/src/components/tab_number_chip/tab_number_chip.js.map +1 -1
- package/dist/src/components/table/table.styled.d.ts +2 -2
- package/dist/src/components/table/table.styled.d.ts.map +1 -1
- package/dist/src/components/table/table.styled.js +1 -1
- package/dist/src/components/table/table.styled.js.map +1 -1
- package/dist/src/components/table/table_cell.d.ts +1 -1
- package/dist/src/components/table/table_cell.d.ts.map +1 -1
- package/dist/src/components/table/table_cell.js +1 -1
- package/dist/src/components/table/table_cell.js.map +1 -1
- package/dist/src/components/table/table_error_row.js +1 -1
- package/dist/src/components/table/table_error_row.js.map +1 -1
- package/dist/src/components/table/table_loading_row.js +1 -1
- package/dist/src/components/table/table_loading_row.js.map +1 -1
- package/dist/src/components/table/table_wrapper.js +1 -1
- package/dist/src/components/table/table_wrapper.js.map +1 -1
- package/dist/src/components/tabs/tab.js +3 -3
- package/dist/src/components/tabs/tab.js.map +1 -1
- package/dist/src/components/tabs/tabs.js +1 -1
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +3 -3
- package/dist/src/components/tag/tag.d.ts.map +1 -1
- package/dist/src/components/tag/tag.js +4 -4
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/text/text_base.js +1 -1
- package/dist/src/components/text/text_base.js.map +1 -1
- package/dist/src/design_system/theme.js +2 -2
- package/dist/src/design_system/theme.js.map +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -4
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/action_link/action_link.tsx +3 -3
- package/src/components/actor_template_card/actor_template_card.tsx +3 -3
- package/src/components/badge/badge.tsx +2 -2
- package/src/components/breadcrumb/breadcrumb.tsx +3 -3
- package/src/components/browser_window/browser_window.tsx +1 -1
- package/src/components/button/button.tsx +2 -2
- package/src/components/card/card.stories.tsx +1 -1
- package/src/components/card/card.tsx +2 -2
- package/src/components/card_container/card_container.stories.tsx +1 -1
- package/src/components/card_container/card_container.tsx +1 -1
- package/src/components/code/action_button.tsx +2 -2
- package/src/components/code/code_block/code_block.styled.tsx +1 -1
- package/src/components/code/code_block/code_block.tsx +3 -3
- package/src/components/code/code_block/code_block_with_tabs.tsx +2 -2
- package/src/components/code/inline_code/inline_code.tsx +1 -1
- package/src/components/code/one_line_code/one_line_code.tsx +1 -1
- package/src/components/code/prism_highlighter.tsx +1 -1
- package/src/components/collapsible_card/collapsible_card.tsx +1 -1
- package/src/components/floating/menu.tsx +2 -2
- package/src/components/floating/menu_components.tsx +2 -2
- package/src/components/floating/tooltip_content.tsx +1 -1
- package/src/components/icon_button/icon_button.tsx +4 -4
- package/src/components/image/image.tsx +1 -1
- package/src/components/index.ts +40 -40
- package/src/components/link/link.tsx +1 -1
- package/src/components/markdown/markdown.tsx +5 -5
- package/src/components/message/message.tsx +3 -3
- package/src/components/pagination/pagination.tsx +2 -2
- package/src/components/rating/rating.tsx +2 -2
- package/src/components/readme_renderer/table_of_contents.tsx +3 -3
- package/src/components/select/select.tsx +2 -2
- package/src/components/shortcut/shortcut.tsx +1 -1
- package/src/components/simple_markdown/simple_markdown.stories.tsx +1 -1
- package/src/components/simple_markdown/simple_markdown.tsx +5 -5
- package/src/components/simple_markdown/simple_markdown_components.tsx +6 -6
- package/src/components/store/store_actor_header.tsx +2 -2
- package/src/components/tab_number_chip/tab_number_chip.tsx +1 -1
- package/src/components/table/table.stories.tsx +1 -1
- package/src/components/table/table.styled.ts +1 -1
- package/src/components/table/table_cell.tsx +1 -1
- package/src/components/table/table_error_row.tsx +1 -1
- package/src/components/table/table_loading_row.tsx +1 -1
- package/src/components/table/table_wrapper.tsx +1 -1
- package/src/components/tabs/tab.tsx +3 -3
- package/src/components/tabs/tabs.tsx +1 -1
- package/src/components/tag/tag.tsx +4 -4
- package/src/components/text/text_base.tsx +1 -1
- package/src/components/tile/horizontal_tile.stories.tsx +1 -1
- package/src/components/tile/vertical_tile.stories.tsx +2 -2
- package/src/design_system/theme.ts +2 -2
- package/src/index.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.145.
|
|
3
|
+
"version": "1.145.17",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"styled-components": "^6.1.19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@apify-packages/types": "^3.
|
|
64
|
+
"@apify-packages/types": "^3.368.0",
|
|
65
65
|
"@storybook/react-vite": "^10.3.5",
|
|
66
66
|
"@testing-library/react": "^16.3.2",
|
|
67
67
|
"@types/hast": "^3.0.4",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"src",
|
|
79
79
|
"style"
|
|
80
80
|
],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "d329d5ca86ef9f2fee8b23d7b4a2cf4938df0069"
|
|
82
82
|
}
|
|
@@ -6,9 +6,9 @@ import { ArrowLeftIcon, ArrowRightIcon } from '@apify/ui-icons';
|
|
|
6
6
|
import type { RequiredBy } from '@apify-packages/types';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
|
-
import { Box, type BoxProps } from '../box';
|
|
10
|
-
import { Link, type LinkProps, StyledAsLink } from '../link';
|
|
11
|
-
import { Heading } from '../text';
|
|
9
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
10
|
+
import { Link, type LinkProps, StyledAsLink } from '../link/index.js';
|
|
11
|
+
import { Heading } from '../text/index.js';
|
|
12
12
|
|
|
13
13
|
const StyledGuidepost = styled(Box)<{ $isBackLink: boolean }>`
|
|
14
14
|
display: inline-flex;
|
|
@@ -2,9 +2,9 @@ import type React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { TextMarketing } from '../text';
|
|
7
|
-
import { VerticalTile } from '../tile';
|
|
5
|
+
import { Badge } from '../badge/index.js';
|
|
6
|
+
import { TextMarketing } from '../text/index.js';
|
|
7
|
+
import { VerticalTile } from '../tile/index.js';
|
|
8
8
|
|
|
9
9
|
interface ActorTemplateCardProps {
|
|
10
10
|
id: string;
|
|
@@ -7,9 +7,9 @@ import type { IconComponent, IconSize } from '@apify/ui-icons';
|
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
8
|
import type { WithTransientProps } from '../../type_utils';
|
|
9
9
|
import type { FlattenSimpleInterpolation } from '../../utils/type_utils';
|
|
10
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
|
|
11
|
-
import { Text } from '../text';
|
|
10
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box/index.js';
|
|
12
11
|
import type { SharedTextSize, SharedTextType } from '../text';
|
|
12
|
+
import { Text } from '../text/index.js';
|
|
13
13
|
|
|
14
14
|
export type BadgeSize = 'large' | 'regular' | 'small' | 'extra_small';
|
|
15
15
|
export const BADGE_SIZES: BadgeSize[] = ['large', 'regular', 'small', 'extra_small'];
|
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
|
-
import { Box } from '../box';
|
|
7
|
-
import { Link } from '../link';
|
|
8
|
-
import { Text } from '../text';
|
|
6
|
+
import { Box } from '../box/index.js';
|
|
7
|
+
import { Link } from '../link/index.js';
|
|
8
|
+
import { Text } from '../text/index.js';
|
|
9
9
|
|
|
10
10
|
export const breadcrumbClassNames = {
|
|
11
11
|
WRAPPER: 'Breadcrumbs__Wrapper',
|
|
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
5
|
import { theme } from '../../design_system/theme.js';
|
|
6
|
-
import { Badge } from '../badge';
|
|
6
|
+
import { Badge } from '../badge/index.js';
|
|
7
7
|
|
|
8
8
|
const classNames = {
|
|
9
9
|
ROOT: 'browser-window',
|
|
@@ -8,8 +8,8 @@ import { ExternalLinkIcon, type IconSize } from '@apify/ui-icons';
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
9
|
import { type WithRequired, type WithTransientProps } from '../../type_utils.js';
|
|
10
10
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
11
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box';
|
|
12
|
-
import { isUrlExternal, Link, type LinkProps } from '../link';
|
|
11
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../box/index.js';
|
|
12
|
+
import { isUrlExternal, Link, type LinkProps } from '../link/index.js';
|
|
13
13
|
|
|
14
14
|
export type ButtonSize = 'extraLarge' | 'large' | 'medium' | 'small' | 'extraSmall';
|
|
15
15
|
type ButtonColor = 'default' | 'success' | 'danger' | 'primaryBlack';
|
|
@@ -6,8 +6,8 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
7
|
import type { WithTransientProps } from '../../type_utils';
|
|
8
8
|
import type { BoxProps } from '../box';
|
|
9
|
-
import { Box } from '../box';
|
|
10
|
-
import { Text } from '../text';
|
|
9
|
+
import { Box } from '../box/index.js';
|
|
10
|
+
import { Text } from '../text/index.js';
|
|
11
11
|
|
|
12
12
|
export const cardClassNames = {
|
|
13
13
|
WRAPPER: 'Card',
|
|
@@ -4,7 +4,7 @@ import styled from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
import { DragIndicatorIcon } from '@apify/ui-icons';
|
|
6
6
|
|
|
7
|
-
import { IconButton } from '../icon_button';
|
|
7
|
+
import { IconButton } from '../icon_button/index.js';
|
|
8
8
|
import { CardContainer, cardContainerClassNames, type CardContainerProps } from './card_container.js';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -5,7 +5,7 @@ import type { ValueOf } from '@apify-packages/types';
|
|
|
5
5
|
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
7
|
import type { Size } from '../../design_system/tokens';
|
|
8
|
-
import { Box, type BoxProps } from '../box';
|
|
8
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
9
9
|
|
|
10
10
|
export const cardContainerClassNames = {
|
|
11
11
|
CONTENT: 'CardContainer-Content',
|
|
@@ -5,8 +5,8 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
|
|
|
5
5
|
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
7
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
8
|
-
import { useCopyToClipboard } from '../../utils';
|
|
9
|
-
import { Text } from '../text';
|
|
8
|
+
import { useCopyToClipboard } from '../../utils/index.js';
|
|
9
|
+
import { Text } from '../text/index.js';
|
|
10
10
|
|
|
11
11
|
interface StyledButtonProps {
|
|
12
12
|
$successStyle?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../../design_system/theme.js';
|
|
4
|
-
import { Box } from '../../box';
|
|
4
|
+
import { Box } from '../../box/index.js';
|
|
5
5
|
import type { SharedTextProps, SharedTextSize } from '../../text/text_shared';
|
|
6
6
|
|
|
7
7
|
export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
|
|
@@ -3,9 +3,9 @@ import type React from 'react';
|
|
|
3
3
|
import { useMemo, useRef, useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import type { RegularBoxProps } from '../../box';
|
|
6
|
-
import { ColorWheelGradient } from '../../color_wheel_gradient';
|
|
7
|
-
import { Link } from '../../link';
|
|
8
|
-
import { Text } from '../../text';
|
|
6
|
+
import { ColorWheelGradient } from '../../color_wheel_gradient/index.js';
|
|
7
|
+
import { Link } from '../../link/index.js';
|
|
8
|
+
import { Text } from '../../text/index.js';
|
|
9
9
|
import type { SharedTextSize } from '../../text/text_shared';
|
|
10
10
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
11
11
|
import { PrismSyntaxHighlighter } from '../prism_highlighter.js';
|
|
@@ -7,8 +7,8 @@ import { CodeIcon, HttpIcon, type IconComponent, McpIcon } from '@apify/ui-icons
|
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../../design_system/theme.js';
|
|
9
9
|
import { useSharedUiDependencies } from '../../../ui_dependency_provider.js';
|
|
10
|
-
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box';
|
|
11
|
-
import { Link, type RegularLinkProps } from '../../link';
|
|
10
|
+
import { Box, type MarginSpacingProps, type RegularBoxProps } from '../../box/index.js';
|
|
11
|
+
import { Link, type RegularLinkProps } from '../../link/index.js';
|
|
12
12
|
import { HeadingShared } from '../../text/heading_shared.js';
|
|
13
13
|
import { CodeBlock, type CodeBlockProps } from './code_block.js';
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@ import { CheckIcon, CopyIcon } from '@apify/ui-icons';
|
|
|
6
6
|
import { theme } from '../../../design_system/theme.js';
|
|
7
7
|
import { useCopyToClipboard } from '../../../utils/copy_to_clipboard.js';
|
|
8
8
|
import type { RegularBoxProps } from '../../box';
|
|
9
|
-
import { Text } from '../../text';
|
|
9
|
+
import { Text } from '../../text/index.js';
|
|
10
10
|
import type { SharedTextSize } from '../../text/text_shared';
|
|
11
11
|
|
|
12
12
|
// TODO: We should not need to export these once we consolidate Markdown
|
|
@@ -7,7 +7,7 @@ import type { HttpMethod } from '@apify-packages/types';
|
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../../design_system/theme.js';
|
|
9
9
|
import type { BoxProps } from '../../box';
|
|
10
|
-
import { Text } from '../../text';
|
|
10
|
+
import { Text } from '../../text/index.js';
|
|
11
11
|
import type { SharedTextSize } from '../../text/text_shared';
|
|
12
12
|
import { ActionButton, CopyButton } from '../action_button.js';
|
|
13
13
|
import type { SyntaxHighlighterBaseStylesWrapperProps } from '../code_block/code_block.styled';
|
|
@@ -8,8 +8,8 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
10
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
11
|
-
import { Text } from '../text';
|
|
12
11
|
import type { SharedTextSize } from '../text';
|
|
12
|
+
import { Text } from '../text/index.js';
|
|
13
13
|
import { oneLightTheme } from './one_light_theme.js';
|
|
14
14
|
|
|
15
15
|
(typeof global !== 'undefined' ? global : window).Prism = Prism;
|
|
@@ -7,7 +7,7 @@ import { ChevronDownIcon } from '@apify/ui-icons';
|
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
9
|
import type { WithTransientProps } from '../../type_utils';
|
|
10
|
-
import { Box } from '../box';
|
|
10
|
+
import { Box } from '../box/index.js';
|
|
11
11
|
|
|
12
12
|
interface TransientWrapperProps {
|
|
13
13
|
hideOuterBorder?: boolean;
|
|
@@ -13,8 +13,8 @@ import clsx from 'clsx';
|
|
|
13
13
|
import type React from 'react';
|
|
14
14
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import { Box, type BoxProps } from '../box';
|
|
17
|
-
import { Text } from '../text';
|
|
16
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
17
|
+
import { Text } from '../text/index.js';
|
|
18
18
|
import { useFloatingMenu } from './menu_common.js';
|
|
19
19
|
import { DropdownMenuBaseComponent, ListMenuComponent, ListMenuItemComponent } from './menu_components.js';
|
|
20
20
|
|
|
@@ -6,9 +6,9 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import { ChevronDownIcon, CrossIcon } from '@apify/ui-icons';
|
|
7
7
|
|
|
8
8
|
import { theme } from '../../design_system/theme.js';
|
|
9
|
-
import { Badge } from '../badge';
|
|
9
|
+
import { Badge } from '../badge/index.js';
|
|
10
10
|
import type { BoxProps } from '../box';
|
|
11
|
-
import { Box } from '../box';
|
|
11
|
+
import { Box } from '../box/index.js';
|
|
12
12
|
|
|
13
13
|
export type FloatingContext = Pick<UseFloatingReturn<ReferenceType>, 'context'>['context'];
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../design_system/theme.js';
|
|
4
|
-
import { Shortcut } from '../shortcut';
|
|
4
|
+
import { Shortcut } from '../shortcut/index.js';
|
|
5
5
|
import type { TooltipProps, TooltipSize, TooltipTextAlign } from './tooltip';
|
|
6
6
|
import { TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS } from './tooltip.js';
|
|
7
7
|
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
type ButtonSize,
|
|
14
14
|
type RegularButtonProps,
|
|
15
15
|
type TransientButtonProps,
|
|
16
|
-
} from '../button';
|
|
17
|
-
import { Tooltip } from '../floating';
|
|
18
|
-
import { Link, type RegularLinkProps } from '../link';
|
|
19
|
-
import { InlineSpinner, spinnerClassNames } from '../spinner';
|
|
16
|
+
} from '../button/index.js';
|
|
17
|
+
import { Tooltip } from '../floating/index.js';
|
|
18
|
+
import { Link, type RegularLinkProps } from '../link/index.js';
|
|
19
|
+
import { InlineSpinner, spinnerClassNames } from '../spinner/index.js';
|
|
20
20
|
|
|
21
21
|
export const ICON_BUTTON_VARIANTS = {
|
|
22
22
|
DEFAULT: 'DEFAULT',
|
|
@@ -2,7 +2,7 @@ import { forwardRef } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import type { ImageProxyOptions } from '../../ui_dependency_provider';
|
|
4
4
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
5
|
-
import { Box, type BoxProps } from '../box';
|
|
5
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
6
6
|
|
|
7
7
|
type ImageProps = {
|
|
8
8
|
src: string;
|
package/src/components/index.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export * from './text';
|
|
2
|
-
export * from './box';
|
|
3
|
-
export * from './avatar';
|
|
4
|
-
export * from './card_container';
|
|
5
|
-
export * from './message';
|
|
6
|
-
export * from './floating';
|
|
7
|
-
export * from './button';
|
|
8
|
-
export * from './link';
|
|
9
|
-
export * from './action_link';
|
|
10
|
-
export * from './simple_markdown';
|
|
11
|
-
export * from './code';
|
|
12
|
-
export * from './color_wheel_gradient';
|
|
13
|
-
export * from './readme_renderer';
|
|
14
|
-
export * from './card';
|
|
15
|
-
export * from './markdown';
|
|
16
|
-
export * from './pagination';
|
|
17
|
-
export * from './tab_number_chip';
|
|
18
|
-
export * from './tile';
|
|
19
|
-
export * from './blog_article';
|
|
20
|
-
export * from './banner';
|
|
21
|
-
export * from './actor_template_card';
|
|
22
|
-
export * from './chip';
|
|
23
|
-
export * from './image';
|
|
24
|
-
export * from './rating';
|
|
25
|
-
export * from './badge';
|
|
26
|
-
export * from './tag';
|
|
27
|
-
export * from './tabs';
|
|
28
|
-
export * from './shortcut';
|
|
29
|
-
export * from './icon_button';
|
|
30
|
-
export * from './spinner';
|
|
31
|
-
export * from './store';
|
|
32
|
-
export * from './checkbox';
|
|
33
|
-
export * from './radio_button';
|
|
34
|
-
export * from './browser_window';
|
|
35
|
-
export * from './collapsible_card';
|
|
36
|
-
export * from './select';
|
|
37
|
-
export * from './switch';
|
|
38
|
-
export * from './table';
|
|
39
|
-
export * from './breadcrumb';
|
|
40
|
-
export * from './dropdown';
|
|
1
|
+
export * from './text/index.js';
|
|
2
|
+
export * from './box/index.js';
|
|
3
|
+
export * from './avatar/index.js';
|
|
4
|
+
export * from './card_container/index.js';
|
|
5
|
+
export * from './message/index.js';
|
|
6
|
+
export * from './floating/index.js';
|
|
7
|
+
export * from './button/index.js';
|
|
8
|
+
export * from './link/index.js';
|
|
9
|
+
export * from './action_link/index.js';
|
|
10
|
+
export * from './simple_markdown/index.js';
|
|
11
|
+
export * from './code/index.js';
|
|
12
|
+
export * from './color_wheel_gradient/index.js';
|
|
13
|
+
export * from './readme_renderer/index.js';
|
|
14
|
+
export * from './card/index.js';
|
|
15
|
+
export * from './markdown/index.js';
|
|
16
|
+
export * from './pagination/index.js';
|
|
17
|
+
export * from './tab_number_chip/index.js';
|
|
18
|
+
export * from './tile/index.js';
|
|
19
|
+
export * from './blog_article/index.js';
|
|
20
|
+
export * from './banner/index.js';
|
|
21
|
+
export * from './actor_template_card/index.js';
|
|
22
|
+
export * from './chip/index.js';
|
|
23
|
+
export * from './image/index.js';
|
|
24
|
+
export * from './rating/index.js';
|
|
25
|
+
export * from './badge/index.js';
|
|
26
|
+
export * from './tag/index.js';
|
|
27
|
+
export * from './tabs/index.js';
|
|
28
|
+
export * from './shortcut/index.js';
|
|
29
|
+
export * from './icon_button/index.js';
|
|
30
|
+
export * from './spinner/index.js';
|
|
31
|
+
export * from './store/index.js';
|
|
32
|
+
export * from './checkbox/index.js';
|
|
33
|
+
export * from './radio_button/index.js';
|
|
34
|
+
export * from './browser_window/index.js';
|
|
35
|
+
export * from './collapsible_card/index.js';
|
|
36
|
+
export * from './select/index.js';
|
|
37
|
+
export * from './switch/index.js';
|
|
38
|
+
export * from './table/index.js';
|
|
39
|
+
export * from './breadcrumb/index.js';
|
|
40
|
+
export * from './dropdown/index.js';
|
|
@@ -8,7 +8,7 @@ import { ExternalLinkIcon } from '@apify/ui-icons';
|
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
10
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
11
|
-
import { Box, type BoxProps } from '../box';
|
|
11
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
12
12
|
|
|
13
13
|
export type To = string | Partial<Path>;
|
|
14
14
|
export interface RegularLinkProps {
|
|
@@ -10,13 +10,13 @@ import styled from 'styled-components';
|
|
|
10
10
|
|
|
11
11
|
import { LinkIcon } from '@apify/ui-icons';
|
|
12
12
|
|
|
13
|
-
import { Box } from '..';
|
|
14
13
|
import type { UiThemeOption } from '../../design_system/theme';
|
|
15
14
|
import { theme } from '../../design_system/theme.js';
|
|
16
|
-
import { useCopyToClipboard } from '../../utils';
|
|
17
|
-
import { CodeBlock, inlineCodeStyles, OneLineCode } from '../code';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
15
|
+
import { useCopyToClipboard } from '../../utils/index.js';
|
|
16
|
+
import { CodeBlock, inlineCodeStyles, OneLineCode } from '../code/index.js';
|
|
17
|
+
import { Box } from '../index.js';
|
|
18
|
+
import { Link as SharedLink, type LinkProps } from '../link/index.js';
|
|
19
|
+
import { cleanMarkdown, slugifyHeadingChildren } from '../readme_renderer/index.js';
|
|
20
20
|
|
|
21
21
|
interface StyledReadmeProps {
|
|
22
22
|
$scrollMarginTopPx: number;
|
|
@@ -7,10 +7,10 @@ import type { IconComponent as IconComponentType } from '@apify/ui-icons';
|
|
|
7
7
|
import { CheckIcon, CrossIcon, InfoIcon, WarningTriangleIcon, XCircleIcon } from '@apify/ui-icons';
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
|
-
import { Box, type BoxProps } from '../box';
|
|
10
|
+
import { Box, type BoxProps } from '../box/index.js';
|
|
11
11
|
import type { ButtonProps } from '../button';
|
|
12
|
-
import { Button } from '../button';
|
|
13
|
-
import { Text } from '../text';
|
|
12
|
+
import { Button } from '../button/index.js';
|
|
13
|
+
import { Text } from '../text/index.js';
|
|
14
14
|
|
|
15
15
|
export const messageClassNames = {
|
|
16
16
|
main: 'Message',
|
|
@@ -5,8 +5,8 @@ import styled from 'styled-components';
|
|
|
5
5
|
import { ChevronLeftIcon, ChevronRightIcon } from '@apify/ui-icons';
|
|
6
6
|
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
|
-
import { Box } from '../box';
|
|
9
|
-
import { Button } from '../button';
|
|
8
|
+
import { Box } from '../box/index.js';
|
|
9
|
+
import { Button } from '../button/index.js';
|
|
10
10
|
|
|
11
11
|
const LEADING_THREE_DOTS_PAGE_KEY = -1;
|
|
12
12
|
const TRAILING_THREE_DOTS_PAGE_KEY = -2;
|
|
@@ -8,8 +8,8 @@ import type { ReviewRating } from '@apify-packages/types';
|
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
10
|
import type { BoxProps } from '../box';
|
|
11
|
-
import { Box } from '../box';
|
|
12
|
-
import { Text } from '../text';
|
|
11
|
+
import { Box } from '../box/index.js';
|
|
12
|
+
import { Text } from '../text/index.js';
|
|
13
13
|
|
|
14
14
|
type RatingStatsProps = {
|
|
15
15
|
ratingStats: Record<ReviewRating, number>;
|
|
@@ -5,9 +5,9 @@ import remarkToc from 'remark-toc';
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
|
|
7
7
|
import { theme } from '../../design_system/theme.js';
|
|
8
|
-
import { inlineCodeStyles } from '../code';
|
|
9
|
-
import { Link } from '../link';
|
|
10
|
-
import { Text } from '../text';
|
|
8
|
+
import { inlineCodeStyles } from '../code/index.js';
|
|
9
|
+
import { Link } from '../link/index.js';
|
|
10
|
+
import { Text } from '../text/index.js';
|
|
11
11
|
import { cleanMarkdown, slugifyHeadingChildren } from './utils.js';
|
|
12
12
|
|
|
13
13
|
export const useShowTableOfContents = (markdown: string | null | undefined) =>
|
|
@@ -14,8 +14,8 @@ import styled from 'styled-components';
|
|
|
14
14
|
import { CaretDownIcon, CaretUpIcon, CrossIcon, XCircleIcon } from '@apify/ui-icons';
|
|
15
15
|
|
|
16
16
|
import { theme } from '../../design_system/theme.js';
|
|
17
|
-
import { IconButton } from '../icon_button';
|
|
18
|
-
import { Text } from '../text';
|
|
17
|
+
import { IconButton } from '../icon_button/index.js';
|
|
18
|
+
import { Text } from '../text/index.js';
|
|
19
19
|
|
|
20
20
|
const DEFAULT_Z_INDEX_IN_MODAL = 99;
|
|
21
21
|
const DEFAULT_Z_INDEX_OUTSIDE_MODAL = 9;
|
|
@@ -2,7 +2,7 @@ import type { ElementType } from 'react';
|
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import { Text } from '../text';
|
|
5
|
+
import { Text } from '../text/index.js';
|
|
6
6
|
|
|
7
7
|
interface ShortcutProps {
|
|
8
8
|
as?: ElementType;
|
|
@@ -11,11 +11,11 @@ import { visit } from 'unist-util-visit';
|
|
|
11
11
|
|
|
12
12
|
import { theme } from '../../design_system/theme.js';
|
|
13
13
|
import { useSharedUiDependencies } from '../../ui_dependency_provider.js';
|
|
14
|
-
import { Box } from '../box';
|
|
15
|
-
import { Image } from '../image';
|
|
16
|
-
import { isUrlExternal } from '../link';
|
|
17
|
-
import { cleanMarkdown } from '../readme_renderer';
|
|
18
|
-
import { Heading, HeadingContent, Text, TextContent } from '../text';
|
|
14
|
+
import { Box } from '../box/index.js';
|
|
15
|
+
import { Image } from '../image/index.js';
|
|
16
|
+
import { isUrlExternal } from '../link/index.js';
|
|
17
|
+
import { cleanMarkdown } from '../readme_renderer/index.js';
|
|
18
|
+
import { Heading, HeadingContent, Text, TextContent } from '../text/index.js';
|
|
19
19
|
import { MarkdownBlockQuote, MarkdownCode, MarkdownLink, MarkdownTable } from './simple_markdown_components.js';
|
|
20
20
|
|
|
21
21
|
export type SimpleMarkdownComponents = Components;
|
|
@@ -8,16 +8,16 @@ import { CheckIcon, LinkIcon } from '@apify/ui-icons';
|
|
|
8
8
|
|
|
9
9
|
import { theme } from '../../design_system/theme.js';
|
|
10
10
|
import type { WithOptional } from '../../type_utils';
|
|
11
|
-
import { useCopyToClipboard } from '../../utils';
|
|
12
|
-
import { Box } from '../box';
|
|
13
|
-
import { CodeBlock, InlineCode, OneLineCode } from '../code';
|
|
11
|
+
import { useCopyToClipboard } from '../../utils/index.js';
|
|
12
|
+
import { Box } from '../box/index.js';
|
|
13
|
+
import { CodeBlock, InlineCode, OneLineCode } from '../code/index.js';
|
|
14
14
|
import type { LinkProps } from '../link';
|
|
15
|
-
import { Link } from '../link';
|
|
16
|
-
import { slugifyHeadingChildren } from '../readme_renderer';
|
|
17
|
-
import { Heading, TextContent } from '../text';
|
|
15
|
+
import { Link } from '../link/index.js';
|
|
16
|
+
import { slugifyHeadingChildren } from '../readme_renderer/index.js';
|
|
18
17
|
import type { HeadingSharedProps } from '../text';
|
|
19
18
|
import type { ContentTextProps } from '../text';
|
|
20
19
|
import type { SharedTextSize } from '../text';
|
|
20
|
+
import { Heading, TextContent } from '../text/index.js';
|
|
21
21
|
|
|
22
22
|
const simpleMarkdownClassNames = {
|
|
23
23
|
HEADING_ICON_LINK: 'headingIconLink',
|
|
@@ -2,9 +2,9 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
import { StarEmptyIcon, WarningTriangleIcon } from '@apify/ui-icons';
|
|
4
4
|
|
|
5
|
-
import { Badge, Box, type BoxProps, Text } from '../../components';
|
|
5
|
+
import { Badge, Box, type BoxProps, Text } from '../../components/index.js';
|
|
6
6
|
import { theme } from '../../design_system/theme.js';
|
|
7
|
-
import { ActorAvatar, actorAvatarClassnames } from '../avatar';
|
|
7
|
+
import { ActorAvatar, actorAvatarClassnames } from '../avatar/index.js';
|
|
8
8
|
|
|
9
9
|
const storeActorHeaderClassNames = {
|
|
10
10
|
title: 'ActorStoreItem-title',
|
|
@@ -2,7 +2,7 @@ import type React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
import { theme } from '../../design_system/theme.js';
|
|
5
|
-
import { Text } from '../text';
|
|
5
|
+
import { Text } from '../text/index.js';
|
|
6
6
|
|
|
7
7
|
const StyledChip = styled(Text)`
|
|
8
8
|
color: ${theme.color.neutral.text};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import { theme } from '../../design_system/theme.js';
|
|
4
|
-
import { Box } from '../box';
|
|
4
|
+
import { Box } from '../box/index.js';
|
|
5
5
|
|
|
6
6
|
/** z-index for sticky table head cells. Consumers can override via CSS if needed. */
|
|
7
7
|
const STICKY_HEAD_Z_INDEX = 5;
|
|
@@ -2,7 +2,7 @@ import clsx from 'clsx';
|
|
|
2
2
|
import type { FC, TdHTMLAttributes } from 'react';
|
|
3
3
|
import { useContext } from 'react';
|
|
4
4
|
|
|
5
|
-
import { Link, type LinkProps } from '../link';
|
|
5
|
+
import { Link, type LinkProps } from '../link/index.js';
|
|
6
6
|
import { TableRowLinkContext } from './table.context.js';
|
|
7
7
|
import { tableClassNames } from './table.styled.js';
|
|
8
8
|
import { tableTestIds } from './table.test_ids.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
import { Box } from '../box';
|
|
4
|
+
import { Box } from '../box/index.js';
|
|
5
5
|
import { StyledHorizontallyScrollableTableWrapper, StyledTableFooterWrapper, tableClassNames } from './table.styled.js';
|
|
6
6
|
import { tableTestIds } from './table.test_ids.js';
|
|
7
7
|
import type { HorizontallyScrollableTableWrapperProps } from './table.types';
|