@bitrise/bitkit 12.33.1 → 12.33.3

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.33.1",
4
+ "version": "12.33.3",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -23,6 +23,12 @@ const InputTheme = defineStyle({
23
23
  borderColor: 'neutral.90',
24
24
  },
25
25
  },
26
+ _readOnly: {
27
+ background: 'neutral.93',
28
+ _hover: {
29
+ borderColor: 'neutral.90',
30
+ },
31
+ },
26
32
  _focusVisible: {
27
33
  boxShadow: 'formFocus',
28
34
  borderColor: 'purple.50',
@@ -11,6 +11,7 @@ import {
11
11
  } from '@chakra-ui/react';
12
12
  import Icon from '../Icon/Icon';
13
13
  import ProgressSpinner from '../ProgressSpinner/ProgressSpinner';
14
+ import Text from '../Text/Text';
14
15
 
15
16
  export interface SelectProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
16
17
  'data-testid'?: string;
@@ -74,7 +75,18 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
74
75
 
75
76
  return (
76
77
  <FormControl {...formControlProps}>
77
- {label && <FormLabel>{label}</FormLabel>}
78
+ {label && (
79
+ <FormLabel
80
+ requiredIndicator={null as any}
81
+ optionalIndicator={
82
+ <Text as="span" fontSize="2" color="neutral.40" fontWeight="normal" marginLeft="4px">
83
+ (Optional)
84
+ </Text>
85
+ }
86
+ >
87
+ {label}
88
+ </FormLabel>
89
+ )}
78
90
  <ChakraSelect data-testid={dataTestid} ref={ref} {...selectProperties}>
79
91
  {placeholder && (
80
92
  <option disabled value="">
@@ -66,7 +66,13 @@ const Tr = forwardRef<TableRowProps, 'tr'>((props, ref) => {
66
66
  {children}
67
67
  </ChakraTr>
68
68
  <ChakraTr>
69
- <Td colSpan={colSpan} paddingY="0" transform={isOpen ? 'none' : 'translateY(-1px)'}>
69
+ <Td
70
+ borderColor={isOpen ? undefined : 'transparent'}
71
+ colSpan={colSpan}
72
+ height="0"
73
+ paddingY="0"
74
+ transform={isOpen ? 'none' : 'translateY(-1px)'}
75
+ >
70
76
  <Collapse in={isOpen} unmountOnExit>
71
77
  {expandableContent}
72
78
  </Collapse>