@apify/ui-library 1.104.0 → 1.105.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.104.0",
3
+ "version": "1.105.0",
4
4
  "description": "React UI library used by apify.com",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -64,5 +64,5 @@
64
64
  "src",
65
65
  "style"
66
66
  ],
67
- "gitHead": "9a04c047684eb42d2908e4d8e261bfc47ad9b813"
67
+ "gitHead": "169dd57050d442647f09346ab9530db038e766bc"
68
68
  }
@@ -3,6 +3,8 @@ import styled, { css } from 'styled-components';
3
3
 
4
4
  import { EyeIcon, EyeOffIcon } from '@apify/ui-icons';
5
5
 
6
+ import type { HttpMethod } from '@apify-packages/types';
7
+
6
8
  import { theme } from '../../../design_system/theme.js';
7
9
  import type { BoxProps } from '../../box.js';
8
10
  import { Text } from '../../text/index.js';
@@ -21,7 +23,6 @@ export const oneLineCodeClassNames = {
21
23
  buttons: 'OneLineCode-Buttons',
22
24
  };
23
25
 
24
- type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH';
25
26
  type ThemeType = keyof Pick<
26
27
  (typeof theme)['color'],
27
28
  'primary' | 'success' | 'warning' | 'danger' | 'neutral'
@@ -34,6 +35,7 @@ const HTML_METHOD_CHIP_STYLES: Record<HttpMethod, ThemeType> = {
34
35
  DELETE: 'danger',
35
36
  HEAD: 'neutral',
36
37
  PATCH: 'neutral',
38
+ OPTIONS: 'neutral',
37
39
  };
38
40
 
39
41
  function getChipStyles(httpMethod: HttpMethod) {