@momo-kits/collapse 0.165.1-expo.1 → 0.165.2-beta.1
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/index.tsx +3 -1
- package/package.json +1 -1
package/index.tsx
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
ScreenContext,
|
|
24
24
|
Tag,
|
|
25
25
|
Text,
|
|
26
|
+
exportFontFamily,
|
|
26
27
|
} from '@momo-kits/foundation';
|
|
27
28
|
import { CollapseHandle, CollapseImageSize, CollapseProps } from './types';
|
|
28
29
|
import styles from './styles';
|
|
@@ -64,6 +65,7 @@ const Collapse = React.forwardRef<CollapseHandle, CollapseProps>(
|
|
|
64
65
|
|
|
65
66
|
// Dynamic font sizes using useScaleSize
|
|
66
67
|
const fontSize14 = useScaleSize(14);
|
|
68
|
+
const titleFontFamily = exportFontFamily('semibold');
|
|
67
69
|
const lineHeight20 = useScaleSize(20);
|
|
68
70
|
const fontSize16 = useScaleSize(16);
|
|
69
71
|
const lineHeight22 = useScaleSize(22);
|
|
@@ -215,7 +217,7 @@ const Collapse = React.forwardRef<CollapseHandle, CollapseProps>(
|
|
|
215
217
|
style={[
|
|
216
218
|
getTitleTypo(),
|
|
217
219
|
{
|
|
218
|
-
fontFamily:
|
|
220
|
+
fontFamily: titleFontFamily,
|
|
219
221
|
color: titleColor ?? theme.colors.text.default,
|
|
220
222
|
},
|
|
221
223
|
]}
|