@apify/ui-library 1.96.0 → 1.97.1

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.96.0",
3
+ "version": "1.97.1",
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.18.1",
29
+ "@apify/ui-icons": "^1.18.2",
30
30
  "@floating-ui/react": "^0.26.2",
31
31
  "@react-hook/resize-observer": "^2.0.2",
32
32
  "clsx": "^2.0.0",
@@ -54,17 +54,15 @@
54
54
  "devDependencies": {
55
55
  "@storybook/react-vite": "^9.0.16",
56
56
  "@types/lodash": "^4.14.200",
57
- "@types/node": "^22.10.5",
58
57
  "@types/react": "^18.2.74",
59
58
  "@types/styled-components": "^5.1.34",
60
59
  "recast": "^0.23.9",
61
- "style-dictionary": "^4.4.0",
62
- "typescript": "^5.1.6"
60
+ "style-dictionary": "^4.4.0"
63
61
  },
64
62
  "files": [
65
63
  "dist",
66
64
  "src",
67
65
  "style"
68
66
  ],
69
- "gitHead": "98a14f6a95bd2c1458dbc93cae1843208073a960"
67
+ "gitHead": "5174c9c9414a8c7f6107dab1d339ee2246b434a5"
70
68
  }
@@ -67,7 +67,6 @@ type ButtonColorCombinations = {
67
67
 
68
68
  type ButtonSizeCombinations = {
69
69
  [Size in ButtonSize]: {
70
- fontSize: number,
71
70
  horizontalPadding: number,
72
71
  height: number,
73
72
  };
@@ -152,12 +151,10 @@ const BUTTON_COLOR_VARIANTS_CSS: ButtonColorCombinations = {
152
151
 
153
152
  export const BUTTON_SIZE_VARIANTS_CSS: ButtonSizeCombinations = {
154
153
  medium: {
155
- fontSize: 14,
156
154
  height: 32,
157
155
  horizontalPadding: 12,
158
156
  },
159
157
  small: {
160
- fontSize: 14,
161
158
  height: 28,
162
159
  horizontalPadding: 8,
163
160
  },
@@ -204,20 +201,20 @@ export const getButtonColorStyles = (variant: ButtonVariant = 'primary', color:
204
201
 
205
202
  export const getButtonSizeStyles = (size: ButtonSize = 'medium') => {
206
203
  const {
207
- fontSize,
208
204
  height,
209
205
  horizontalPadding,
210
206
  } = BUTTON_SIZE_VARIANTS_CSS[size];
211
207
 
212
208
  return css`
213
209
  height: ${height}px;
214
- font-size: ${fontSize}px;
215
210
  /* We just want to ensure padding on the sides. Height is set the the hard way for simplicity */
216
211
  padding: 0 ${horizontalPadding}px;
217
212
  `;
218
213
  };
219
214
 
220
215
  const StyledButton = styled(Box)<WithTransientProps<Required<TransientButtonProps>>>`
216
+ ${theme.typography.shared.mobile.bodyMMedium};
217
+
221
218
  /* Basic positioning */
222
219
  display: inline-flex;
223
220
  align-items: center;
@@ -227,7 +224,6 @@ const StyledButton = styled(Box)<WithTransientProps<Required<TransientButtonProp
227
224
  gap: ${theme.space.space8};
228
225
 
229
226
  /* Basic styles */
230
- font-weight: 500;
231
227
  white-space: nowrap;
232
228
  cursor: pointer;
233
229
  transition: border-color ${theme.transition.fastEaseOut}, background-color ${theme.transition.fastEaseOut};