cozy-ui 122.8.0 → 122.9.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [122.9.0](https://github.com/cozy/cozy-ui/compare/v122.8.0...v122.9.0) (2025-04-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * **BarTitle:** Adjust font size for Twake theme ([cba1b13](https://github.com/cozy/cozy-ui/commit/cba1b13))
7
+
1
8
  # [122.8.0](https://github.com/cozy/cozy-ui/compare/v122.7.0...v122.8.0) (2025-04-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "122.8.0",
3
+ "version": "122.9.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -3,11 +3,16 @@ import React from 'react'
3
3
 
4
4
  import styles from './styles.styl'
5
5
  import Typography from '../Typography'
6
+ import { isTwakeTheme } from '../helpers/isTwakeTheme'
6
7
 
7
8
  const BarTitle = ({ noWrap, children }) => {
8
9
  return (
9
10
  <div className={styles.BarTitle}>
10
- <Typography variant="h5" component="h1" noWrap={noWrap}>
11
+ <Typography
12
+ variant={isTwakeTheme() ? 'h4' : 'h5'}
13
+ component="h1"
14
+ noWrap={noWrap}
15
+ >
11
16
  {children}
12
17
  </Typography>
13
18
  </div>
@@ -4,6 +4,7 @@ var styles = {
4
4
  "BarTitle": "styles__BarTitle___I5r2e"
5
5
  };
6
6
  import Typography from "cozy-ui/transpiled/react/Typography";
7
+ import { isTwakeTheme } from "cozy-ui/transpiled/react/helpers/isTwakeTheme";
7
8
 
8
9
  var BarTitle = function BarTitle(_ref) {
9
10
  var noWrap = _ref.noWrap,
@@ -11,7 +12,7 @@ var BarTitle = function BarTitle(_ref) {
11
12
  return /*#__PURE__*/React.createElement("div", {
12
13
  className: styles.BarTitle
13
14
  }, /*#__PURE__*/React.createElement(Typography, {
14
- variant: "h5",
15
+ variant: isTwakeTheme() ? 'h4' : 'h5',
15
16
  component: "h1",
16
17
  noWrap: noWrap
17
18
  }, children));