cozy-ui 122.7.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,17 @@
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
+
8
+ # [122.8.0](https://github.com/cozy/cozy-ui/compare/v122.7.0...v122.8.0) (2025-04-16)
9
+
10
+
11
+ ### Features
12
+
13
+ * Add Assistant icon ([bf045d0](https://github.com/cozy/cozy-ui/commit/bf045d0))
14
+
1
15
  # [122.7.0](https://github.com/cozy/cozy-ui/compare/v122.6.0...v122.7.0) (2025-04-15)
2
16
 
3
17
 
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 22 22"><path fillRule="evenodd" clipRule="evenodd" d="M10.094.305a1.5 1.5 0 0 1 2.351.79l.005.02 1.581 6.135a1 1 0 0 0 .718.719l6.136 1.58.016.005a1.5 1.5 0 0 1 0 2.892l-.016.004-6.135 1.581a1 1 0 0 0-.719.719l-1.582 6.135-.005.02a1.5 1.5 0 0 1-2.889 0l-.005-.02-1.581-6.135a1.001 1.001 0 0 0-.719-.719L1.115 12.45l-.023-.006a1.5 1.5 0 0 1 0-2.886l.023-.006L7.25 7.968a1 1 0 0 0 .719-.718L9.55 1.115l.005-.02a1.5 1.5 0 0 1 .538-.79zM11 3.503l1.095 4.247a3.002 3.002 0 0 0 2.155 2.155L18.498 11l-4.248 1.095a3.001 3.001 0 0 0-2.155 2.155L11 18.497 9.905 14.25a3 3 0 0 0-2.155-2.156L3.504 11 7.75 9.904A3 3 0 0 0 9.905 7.75L11 3.503zM19 1a1 1 0 0 1 1 1v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0V5h-1a1 1 0 1 1 0-2h1V2a1 1 0 0 1 1-1zM3 15a1 1 0 0 1 1 1 1 1 0 1 1 0 2 1 1 0 1 1-2 0 1 1 0 1 1 0-2 1 1 0 0 1 1-1z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "122.7.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>
@@ -70,6 +70,7 @@ import Answer from 'cozy-ui/transpiled/react/Icons/Answer'
70
70
  import Apple from 'cozy-ui/transpiled/react/Icons/Apple'
71
71
  import Archive from 'cozy-ui/transpiled/react/Icons/Archive'
72
72
  import ArrowUp from 'cozy-ui/transpiled/react/Icons/ArrowUp'
73
+ import Assistant from 'cozy-ui/transpiled/react/Icons/Assistant'
73
74
  import Attachment from 'cozy-ui/transpiled/react/Icons/Attachment'
74
75
  import Attention from 'cozy-ui/transpiled/react/Icons/Attention'
75
76
  import Bank from 'cozy-ui/transpiled/react/Icons/Bank'
@@ -344,6 +345,7 @@ const icons = [
344
345
  Apple,
345
346
  Archive,
346
347
  ArrowUp,
348
+ ...(isTwakeTheme() ? [Assistant] : []),
347
349
  Attachment,
348
350
  Attention,
349
351
  Bank,
@@ -0,0 +1,16 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/illus/assistant.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgAssistant(props) {
5
+ return (
6
+ <svg viewBox="0 0 22 22" {...props}>
7
+ <path
8
+ fillRule="evenodd"
9
+ clipRule="evenodd"
10
+ d="M10.094.305a1.5 1.5 0 012.351.79l.005.02 1.581 6.135a1 1 0 00.718.719l6.136 1.58.016.005a1.5 1.5 0 010 2.892l-.016.004-6.135 1.581a1 1 0 00-.719.719l-1.582 6.135-.005.02a1.5 1.5 0 01-2.889 0l-.005-.02-1.581-6.135a1.001 1.001 0 00-.719-.719L1.115 12.45l-.023-.006a1.5 1.5 0 010-2.886l.023-.006L7.25 7.968a1 1 0 00.719-.718L9.55 1.115l.005-.02a1.5 1.5 0 01.538-.79zM11 3.503l1.095 4.247a3.002 3.002 0 002.155 2.155L18.498 11l-4.248 1.095a3.001 3.001 0 00-2.155 2.155L11 18.497 9.905 14.25a3 3 0 00-2.155-2.156L3.504 11 7.75 9.904A3 3 0 009.905 7.75L11 3.503zM19 1a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0V5h-1a1 1 0 110-2h1V2a1 1 0 011-1zM3 15a1 1 0 011 1 1 1 0 110 2 1 1 0 11-2 0 1 1 0 110-2 1 1 0 011-1z"
11
+ />
12
+ </svg>
13
+ )
14
+ }
15
+
16
+ export default SvgAssistant
@@ -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));
@@ -0,0 +1,2 @@
1
+ export default SvgAssistant;
2
+ declare function SvgAssistant(props: any): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/illus/assistant.svg` to regenerate;
3
+ import React from 'react';
4
+
5
+ function SvgAssistant(props) {
6
+ return /*#__PURE__*/React.createElement("svg", _extends({
7
+ viewBox: "0 0 22 22"
8
+ }, props), /*#__PURE__*/React.createElement("path", {
9
+ fillRule: "evenodd",
10
+ clipRule: "evenodd",
11
+ d: "M10.094.305a1.5 1.5 0 012.351.79l.005.02 1.581 6.135a1 1 0 00.718.719l6.136 1.58.016.005a1.5 1.5 0 010 2.892l-.016.004-6.135 1.581a1 1 0 00-.719.719l-1.582 6.135-.005.02a1.5 1.5 0 01-2.889 0l-.005-.02-1.581-6.135a1.001 1.001 0 00-.719-.719L1.115 12.45l-.023-.006a1.5 1.5 0 010-2.886l.023-.006L7.25 7.968a1 1 0 00.719-.718L9.55 1.115l.005-.02a1.5 1.5 0 01.538-.79zM11 3.503l1.095 4.247a3.002 3.002 0 002.155 2.155L18.498 11l-4.248 1.095a3.001 3.001 0 00-2.155 2.155L11 18.497 9.905 14.25a3 3 0 00-2.155-2.156L3.504 11 7.75 9.904A3 3 0 009.905 7.75L11 3.503zM19 1a1 1 0 011 1v1h1a1 1 0 110 2h-1v1a1 1 0 11-2 0V5h-1a1 1 0 110-2h1V2a1 1 0 011-1zM3 15a1 1 0 011 1 1 1 0 110 2 1 1 0 11-2 0 1 1 0 110-2 1 1 0 011-1z"
12
+ }));
13
+ }
14
+
15
+ export default SvgAssistant;