@bitrise/bitkit 13.101.0 → 13.103.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": "13.101.0",
4
+ "version": "13.103.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -49,8 +49,8 @@ const Drawer = ({ overlayProps, contentProps, headerProps, bodyProps, footerProp
49
49
 
50
50
  return (
51
51
  <ChakraDrawer {...drawerProps}>
52
- <DrawerOverlay maxWidth={maxWidth} padding={padding} {...overlayProps} />
53
- <DrawerContent margin={margin} {...contentProps}>
52
+ <DrawerOverlay {...overlayProps} />
53
+ <DrawerContent maxWidth={maxWidth} padding={padding} margin={margin} {...contentProps}>
54
54
  <DrawerCloseButton size="md">
55
55
  <Icon name="CloseSmall" />
56
56
  </DrawerCloseButton>
@@ -112,7 +112,7 @@ const FilterForm = (props: FilterFormProps) => {
112
112
  isAsync && !!searchValue ? [...value, ...foundOptions] : Array.from(new Set([...value, ...filteredOptions]));
113
113
 
114
114
  return (
115
- <Box as="form" onSubmit={onSubmit} sx={filterStyle.form}>
115
+ <Box as="form" data-testid={`${category}-form`} onSubmit={onSubmit} sx={filterStyle.form}>
116
116
  <Box sx={filterStyle.formHeader}>
117
117
  <Text as="h5" sx={filterStyle.formTitle}>
118
118
  {categoryName || category}
@@ -68,7 +68,14 @@ const FilterItem = (props: FilterItemProps) => {
68
68
  <PopoverTrigger>
69
69
  <Box position={isOpen ? 'relative' : undefined} sx={filterStyle.item} zIndex={isOpen ? 'dialog' : undefined}>
70
70
  <Tooltip isDisabled={isLoading || type !== 'tag'} label="Edit">
71
- <Text as="button" disabled={isLoading} onClick={onToggle} size="2" sx={filterStyle.tagEdit}>
71
+ <Text
72
+ as="button"
73
+ data-testid={`${category}-trigger`}
74
+ disabled={isLoading}
75
+ onClick={onToggle}
76
+ size="2"
77
+ sx={filterStyle.tagEdit}
78
+ >
72
79
  {getText()}
73
80
  {type === 'select' && <Icon name="ChevronDown" size="16" />}
74
81
  </Text>