@bitrise/bitkit 13.281.0 → 13.282.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.281.0",
4
+ "version": "13.282.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -108,7 +108,7 @@ const LabeledData = ({
108
108
  {skeletonVariant === 'double' && <SkeletonBox height="14" width="120px" marginY="3" />}
109
109
  </Skeleton>
110
110
  ) : (
111
- <>
111
+ <Box display="flex" flexDirection="column" gap="4">
112
112
  {data && (
113
113
  <Box as="dd" display="flex" alignItems="center" gap="4" color="text/body" textStyle={`comp/data/${size}`}>
114
114
  {data}
@@ -142,7 +142,7 @@ const LabeledData = ({
142
142
  )}
143
143
  </Box>
144
144
  )}
145
- </>
145
+ </Box>
146
146
  )}
147
147
  </Box>
148
148
  );
@@ -13,19 +13,14 @@ import ToggleComponent, { ToggleComponentProps } from '../../Components/Toggle/T
13
13
  const [SettingsCardStyleProvider, useSettingsCardStyle] = createStylesContext('SettingsCard');
14
14
  export const SettingsCardData = ({ helperText, ...rest }: LabeledDataProps & { helperText?: string }) => {
15
15
  const { data } = useSettingsCardStyle();
16
- const labaledData = <LabeledData {...rest} __css={data} />;
16
+ const labeledData = <LabeledData {...rest} __css={data} />;
17
17
 
18
18
  return helperText ? (
19
19
  <Box __css={data}>
20
- <LabeledData {...rest} />
21
- {helperText && (
22
- <Text color="input/text/helper" textStyle="comp/input/helperText">
23
- {helperText}
24
- </Text>
25
- )}
20
+ <LabeledData {...rest} secondaryLabel={helperText} />
26
21
  </Box>
27
22
  ) : (
28
- labaledData
23
+ labeledData
29
24
  );
30
25
  };
31
26
  export const SettingsCardActions = ({ children }: { children: ReactNode }) => {