@bitrise/bitkit 12.96.0 → 12.98.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.96.0",
4
+ "version": "12.98.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -41,12 +41,6 @@ const TagsInput = ({
41
41
  ...rest
42
42
  }: TagsInputProps) => {
43
43
  const theme = useStyleConfig('TagsInput');
44
- const keyupHandler: KeyboardEventHandler<HTMLInputElement> = (ev) => {
45
- const target = ev.currentTarget;
46
- if (ev.key === 'Backspace' && target.value.length === 0) {
47
- onRemove(value[value.length - 1]);
48
- }
49
- };
50
44
  const addValues = (maybeValues: string) => {
51
45
  const newValue = maybeValues.split(separator).filter((item) => item && !item.match(/\s/) && !value.includes(item));
52
46
  if (newValue.length > 0) {
@@ -59,6 +53,8 @@ const TagsInput = ({
59
53
  ev.preventDefault();
60
54
  addValues(target.value);
61
55
  target.value = '';
56
+ } else if (ev.key === 'Backspace' && target.value.length === 0) {
57
+ onRemove(value[value.length - 1]);
62
58
  }
63
59
  };
64
60
  const pasteEventHandler: ClipboardEventHandler<HTMLInputElement> = (ev) => {
@@ -125,24 +121,15 @@ const TagsInput = ({
125
121
  {item}
126
122
  </Tag>
127
123
  ))}
128
- {value.length === 0 && placeholder && (
129
- <Text
130
- color="sys.fg.subtle"
131
- pointerEvents="none"
132
- position="absolute"
133
- sx={{ ':has(+ :focus-visible)': { display: 'none' } }}
134
- >
135
- {placeholder}
136
- </Text>
137
- )}
138
124
  <chakra.input
139
125
  _focusVisible={{ boxShadow: 'none' }}
140
126
  flexGrow="1"
127
+ height="26px"
141
128
  id={id}
142
129
  onBlur={blurHandler}
143
130
  onKeyDown={keydownHandler}
144
- onKeyUp={keyupHandler}
145
131
  onPaste={pasteEventHandler}
132
+ placeholder={value.length === 0 ? placeholder : undefined}
146
133
  />
147
134
  {isInvalid && <Icon color="icon.negative" name="ErrorCircleFilled" position="absolute" right="16" />}
148
135
  </Box>
@@ -0,0 +1,12 @@
1
+ import { forwardRef, Icon, IconProps } from '@chakra-ui/react';
2
+
3
+ const Configure = forwardRef<IconProps, 'svg'>((props, ref) => (
4
+ <Icon ref={ref} viewBox="0 0 16 16" {...props}>
5
+ <path
6
+ d="M7.148 3.333A1.327 1.327 0 0 0 6 2.667c-.492 0-.918.269-1.148.666H2v1.334h2.852c.23.397.656.666 1.148.666.492 0 .917-.269 1.148-.666H14V3.333H7.148ZM10 6.667a1.33 1.33 0 0 0-1.149.666H2v1.334h6.851c.232.397.657.666 1.149.666s.917-.269 1.149-.666H14V7.333h-2.851A1.328 1.328 0 0 0 10 6.667Zm-5.101 4.666a1.33 1.33 0 0 1 2.202 0H14v1.334H7.193c-.216.442-.667.75-1.193.75s-.977-.308-1.193-.75H2v-1.334h2.899Z"
7
+ fill="currentColor"
8
+ />
9
+ </Icon>
10
+ ));
11
+
12
+ export default Configure;
@@ -65,6 +65,7 @@ export { default as Code } from './Code';
65
65
  export { default as Coffee } from './Coffee';
66
66
  export { default as Commit } from './Commit';
67
67
  export { default as Conference } from './Conference';
68
+ export { default as Configure } from './Configure';
68
69
  export { default as ConnectedAccounts } from './ConnectedAccounts';
69
70
  export { default as Cordova } from './Cordova';
70
71
  export { default as Cpu } from './Cpu';
@@ -0,0 +1,12 @@
1
+ import { forwardRef, Icon, IconProps } from '@chakra-ui/react';
2
+
3
+ const Configure = forwardRef<IconProps, 'svg'>((props, ref) => (
4
+ <Icon ref={ref} viewBox="0 0 24 24" {...props}>
5
+ <path
6
+ d="M10.723 5A1.99 1.99 0 0 0 9 4c-.738 0-1.376.404-1.722 1H3v2h4.278c.346.596.984 1 1.722 1a1.99 1.99 0 0 0 1.723-1H21V5H10.723ZM15 10c-.738 0-1.376.404-1.723 1H3v2h10.277c.347.596.985 1 1.723 1 .738 0 1.376-.404 1.723-1H21v-2h-4.277c-.347-.596-.985-1-1.723-1ZM7.348 17a1.994 1.994 0 0 1 3.304 0H21v2H10.79A1.993 1.993 0 0 1 9 20.125 1.993 1.993 0 0 1 7.21 19H3v-2h4.348Z"
7
+ fill="currentColor"
8
+ />
9
+ </Icon>
10
+ ));
11
+
12
+ export default Configure;
@@ -65,6 +65,7 @@ export { default as Code } from './Code';
65
65
  export { default as Coffee } from './Coffee';
66
66
  export { default as Commit } from './Commit';
67
67
  export { default as Conference } from './Conference';
68
+ export { default as Configure } from './Configure';
68
69
  export { default as ConnectedAccounts } from './ConnectedAccounts';
69
70
  export { default as Cordova } from './Cordova';
70
71
  export { default as Cpu } from './Cpu';
@@ -61,16 +61,16 @@ export const figmaIcons: {
61
61
  { figmaToken: 'step-version-ok', iconName: 'StepVersionOk' },
62
62
  ],
63
63
  Computer: [
64
- { figmaToken: 'cpu', iconName: 'Cpu' },
65
64
  { figmaToken: 'memory', iconName: 'Cache', tags: 'cache, ram' },
65
+ { figmaToken: 'configure', iconName: 'Configure' },
66
+ { figmaToken: 'cpu', iconName: 'Cpu' },
66
67
  { figmaToken: 'file-doc', iconName: 'FileDoc' },
67
68
  { figmaToken: 'file-pdf', iconName: 'FilePdf' },
68
69
  { figmaToken: 'file-plist', iconName: 'FilePlist' },
69
70
  { figmaToken: 'file-zip', iconName: 'FileZip' },
70
71
  { figmaToken: 'login', iconName: 'Login' },
71
72
  { figmaToken: 'logout', iconName: 'Logout' },
72
- { figmaToken: 'configure', iconName: 'Filter', tags: 'configuration, preferences' },
73
- { figmaToken: 'filter', iconName: '', tags: 'filtering, funnel' },
73
+ { figmaToken: 'filter', iconName: 'Filter', tags: 'configuration, preferences' },
74
74
  { figmaToken: 'copy', iconName: 'Duplicate', tags: 'clone, duplicate' },
75
75
  { figmaToken: 'download', iconName: 'Download' },
76
76
  { figmaToken: 'install', iconName: '' },