@apify/ui-library 1.134.0 → 1.134.2
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/button.js.map +1 -1
- 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.map +1 -1
- package/dist/src/components/code/prism_python.js +2 -2
- package/dist/src/components/code/prism_python.js.map +1 -1
- package/dist/src/components/icon_button.d.ts.map +1 -1
- package/dist/src/components/icon_button.js.map +1 -1
- package/dist/src/components/message.d.ts.map +1 -1
- package/dist/src/components/message.js.map +1 -1
- package/dist/src/design_system/typography_theme.js +1 -1
- package/dist/src/design_system/typography_theme.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/codemods/generate_typograpy_tokens_files.mjs +1 -1
- package/src/components/badge.stories.jsx +1 -1
- package/src/components/button.stories.tsx +1 -1
- package/src/components/button.tsx +3 -3
- package/src/components/code/code_block/code_block.styled.tsx +3 -3
- package/src/components/code/prism_python.ts +2 -2
- package/src/components/icon_button.stories.tsx +1 -1
- package/src/components/icon_button.tsx +5 -5
- package/src/components/link.stories.tsx +1 -1
- package/src/components/message.tsx +2 -2
- package/src/design_system/colors/build_color_tokens.js +1 -0
- package/src/design_system/typography_theme.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/ui-library",
|
|
3
|
-
"version": "1.134.
|
|
3
|
+
"version": "1.134.2",
|
|
4
4
|
"description": "React UI library used by apify.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"It's not nice, but helps us to get around the problem of multiple react instances."
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@apify/ui-icons": "^1.34.
|
|
30
|
+
"@apify/ui-icons": "^1.34.3",
|
|
31
31
|
"@floating-ui/react": "^0.27.19",
|
|
32
32
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
33
33
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"src",
|
|
71
71
|
"style"
|
|
72
72
|
],
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "80b843dce14832793c2bff2e4ffda8d525ce1cf2"
|
|
74
74
|
}
|
|
@@ -236,12 +236,12 @@ export const getButtonColorStyles = (variant: ButtonVariant = 'primary', color:
|
|
|
236
236
|
&:hover {
|
|
237
237
|
color: ${actionTextColor || textColor};
|
|
238
238
|
${hoverGradient
|
|
239
|
-
|
|
239
|
+
? css`
|
|
240
240
|
background-image: ${hoverGradient};
|
|
241
241
|
background-color: ${backgroundColor};
|
|
242
242
|
`
|
|
243
|
-
|
|
244
|
-
}
|
|
243
|
+
: css`background-color: ${hoverColor};`
|
|
244
|
+
}
|
|
245
245
|
border-color: ${actionBorderColor || (hoverGradient ? borderColor : hoverColor)};
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -8,7 +8,7 @@ export type SyntaxHighlighterBaseStylesWrapperProps = SharedTextProps & {
|
|
|
8
8
|
$fullWidth?: boolean;
|
|
9
9
|
$fullHeight?: string;
|
|
10
10
|
$showLineNumbers?: boolean;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
|
|
13
13
|
export const SyntaxHighlighterBaseStylesWrapper = styled(Box)<SyntaxHighlighterBaseStylesWrapperProps>`
|
|
14
14
|
background-color: ${theme.color.neutral.backgroundMuted} !important;
|
|
@@ -130,10 +130,10 @@ export const CodeBlockWrapper = styled(SyntaxHighlighterBaseStylesWrapper) <{
|
|
|
130
130
|
top: 0;
|
|
131
131
|
right: 0;
|
|
132
132
|
${({ $hasHeader }) => ($hasHeader
|
|
133
|
-
|
|
133
|
+
? css`
|
|
134
134
|
padding-top: 6px;
|
|
135
135
|
padding-right: ${theme.space.space8};`
|
|
136
|
-
|
|
136
|
+
: css`
|
|
137
137
|
padding-top: ${theme.space.space16};
|
|
138
138
|
padding-right: ${theme.space.space16};`)}
|
|
139
139
|
|
|
@@ -60,9 +60,9 @@ Prism.languages.python = {
|
|
|
60
60
|
punctuation: /\./,
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
|
-
// eslint-disable-next-line max-len
|
|
63
|
+
// eslint-disable-next-line @stylistic/max-len
|
|
64
64
|
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
65
|
-
// eslint-disable-next-line max-len
|
|
65
|
+
// eslint-disable-next-line @stylistic/max-len
|
|
66
66
|
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
67
67
|
boolean: /\b(?:False|None|True)\b/,
|
|
68
68
|
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
@@ -96,7 +96,7 @@ const iconButtonVariantStyle: Record<ICON_BUTTON_VARIANTS, IconButtonVariantStyl
|
|
|
96
96
|
type IconButtonSizeConfig = {
|
|
97
97
|
iconSize: IconSize;
|
|
98
98
|
spinnerSize: string;
|
|
99
|
-
}
|
|
99
|
+
};
|
|
100
100
|
|
|
101
101
|
const iconButtonSizeConfig: Record<ButtonSize, IconButtonSizeConfig> = {
|
|
102
102
|
extraLarge: {
|
|
@@ -142,12 +142,12 @@ const getIconButtonColorStyles = (variant: ICON_BUTTON_VARIANTS) => {
|
|
|
142
142
|
|
|
143
143
|
&:hover {
|
|
144
144
|
${backgroundHoverGradient
|
|
145
|
-
|
|
145
|
+
? css`
|
|
146
146
|
background-image: ${backgroundHoverGradient};
|
|
147
147
|
background-color: ${backgroundColor};
|
|
148
148
|
`
|
|
149
|
-
|
|
150
|
-
}
|
|
149
|
+
: css`background-color: ${backgroundHoverColor};`
|
|
150
|
+
}
|
|
151
151
|
border-color: ${borderHoverColor || borderColor};
|
|
152
152
|
color: ${iconColor};
|
|
153
153
|
}
|
|
@@ -195,7 +195,7 @@ type IconButtonNodePropsMap = {
|
|
|
195
195
|
element: HTMLButtonElement;
|
|
196
196
|
props: RegularButtonProps;
|
|
197
197
|
};
|
|
198
|
-
}
|
|
198
|
+
};
|
|
199
199
|
|
|
200
200
|
export type IconButtonProps<T extends IconButtonNodeType> = RegularBoxProps & Pick<TransientButtonProps, 'size'> & {
|
|
201
201
|
as?: T
|
|
@@ -3,7 +3,7 @@ import type { ElementType } from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { Link, type LinkProps } from './link.js';
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line max-len
|
|
6
|
+
// eslint-disable-next-line @stylistic/max-len
|
|
7
7
|
const longText = 'This is a very long link text that might wrap to multiple lines depending on the container width. It is used to test how the Link component handles overflow and wrapping in different scenarios.';
|
|
8
8
|
|
|
9
9
|
// Mock the UI dependencies provider for Storybook
|
|
@@ -59,7 +59,7 @@ const StyledMessage = styled(Box)<{ $boxless?: boolean, $hasCaption?: boolean }>
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
${({ $hasCaption }) => ($hasCaption
|
|
62
|
-
|
|
62
|
+
? css`
|
|
63
63
|
grid-template-areas:
|
|
64
64
|
'iconArea captionArea'
|
|
65
65
|
'descriptionArea descriptionArea';
|
|
@@ -152,7 +152,7 @@ type MessageProps = BoxProps & {
|
|
|
152
152
|
as?: React.ElementType,
|
|
153
153
|
dismissTrackingId?: string,
|
|
154
154
|
actions?: ActionButtonProps[],
|
|
155
|
-
}
|
|
155
|
+
};
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Component used to display larger messages that are part of the content of the application.
|