@bitrise/bitkit 12.94.0 → 12.95.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.94.0",
4
+ "version": "12.95.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -146,12 +146,22 @@ const FilterForm = (props: FilterFormProps) => {
146
146
  </Text>
147
147
  </Radio>
148
148
  {items.length
149
- ? items.map((opt) => (
150
- <Radio key={opt} value={opt}>
151
- {iconsMap && iconsMap[opt] && <Icon name={iconsMap[opt]} />}
152
- {getOptionLabel(opt, optionsMap)}
153
- </Radio>
154
- ))
149
+ ? items.map((opt) => {
150
+ const hasIcon = iconsMap && iconsMap[opt];
151
+ const label = getOptionLabel(opt, optionsMap);
152
+ return (
153
+ <Radio key={opt} value={opt}>
154
+ {hasIcon ? (
155
+ <Box alignItems="center" as="span" display="flex" gap="4">
156
+ <Icon name={iconsMap[opt]} />
157
+ {label}
158
+ </Box>
159
+ ) : (
160
+ label
161
+ )}
162
+ </Radio>
163
+ );
164
+ })
155
165
  : getEmptyText()}
156
166
  </RadioGroup>
157
167
  )}
@@ -50,9 +50,6 @@ const RadioTheme = {
50
50
  },
51
51
  label: {
52
52
  _disabled: { color: 'neutral.60' },
53
- alignItems: 'center',
54
- display: 'flex',
55
- gap: '4',
56
53
  userSelect: 'none',
57
54
  },
58
55
  },