cozy-ui 142.1.1 → 142.2.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,15 @@
1
+ # [142.2.0](https://github.com/cozy/cozy-ui/compare/v142.1.1...v142.2.0) (2026-10-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **docs:** Transpile rooks in styleguidist build ([2bf37f7](https://github.com/cozy/cozy-ui/commit/2bf37f7))
7
+
8
+
9
+ ### Features
10
+
11
+ * Update rooks to 8.4.0 ([ece5e36](https://github.com/cozy/cozy-ui/commit/ece5e36))
12
+
1
13
  ## [142.1.1](https://github.com/cozy/cozy-ui/compare/v142.1.0...v142.1.1) (2026-10-05)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "142.1.1",
3
+ "version": "142.2.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "engines": {
6
6
  "node": "24.x"
@@ -181,7 +181,7 @@
181
181
  "react-select": "^4.3.0",
182
182
  "react-virtuoso": "^4.13.0",
183
183
  "remark-gfm": "^1.0.0",
184
- "rooks": "7.14.1"
184
+ "rooks": "8.4.0"
185
185
  },
186
186
  "peerDependencies": {
187
187
  "@linagora/twake-icons": ">=2.6.2",
@@ -552,10 +552,16 @@ import BarTitle from 'cozy-ui/transpiled/react/BarTitle'
552
552
  **Example:**
553
553
 
554
554
  ```jsx
555
+ import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
555
556
 
556
- <div style={{ border: '1px solid red' }}>
557
- <BarTitle>My transactions</BarTitle>
558
- </div>
557
+ const MyPage = () => {
558
+ const { isMobile } = useBreakpoints()
559
+ return (
560
+ <BarCenter>
561
+ {isMobile ? <BarTitle>My transactions</BarTitle> : null }
562
+ </BarCenter>
563
+ )
564
+ }
559
565
  ```
560
566
 
561
567
  | Prop | Type | Default | Description |
@@ -652,38 +658,10 @@ import Sidebar from 'cozy-ui/transpiled/react/Sidebar'
652
658
  **Example:**
653
659
 
654
660
  ```jsx
655
- import Sidebar from 'cozy-ui/transpiled/react/Sidebar'
656
- import Nav, { NavItem, NavIcon, NavText, genNavLink } from 'cozy-ui/transpiled/react/Nav'
657
- import { Check, Download, Warn } from '@linagora/twake-icons'
658
- import cx from 'classnames'
659
-
660
- <Sidebar id='sidebar' style={demoStyle}>
661
- <Nav>
662
- <NavItem id='nav-item'>
663
- <NavLink to="/warn" active>
664
- <NavIcon icon={Warn} />
665
- <NavText>Warn</NavText>
666
- </NavLink>
667
- </NavItem>
668
- <NavItem>
669
- <NavLink to="/check">
670
- <NavIcon icon={Check} />
671
- <NavText>Check</NavText>
672
- </NavLink>
673
- </NavItem>
674
- <NavItem secondary>
675
- <NavLink to="/secondary">
676
- <NavText>Secondary link</NavText>
677
- </NavLink>
678
- </NavItem>
679
- <NavItem>
680
- <NavLink to="/download">
681
- <NavIcon icon={Download} />
682
- <NavText>Download</NavText>
683
- </NavLink>
684
- </NavItem>
685
- </Nav>
686
- </Sidebar>
661
+ import { NavLink as RouterLink } from 'react-router'
662
+ import { genNavLink } from 'cozy-ui/transpiled/react/Nav'
663
+
664
+ const NavLink = genNavLink(RouterLink)
687
665
  ```
688
666
 
689
667
  | Prop | Type | Default | Description |
@@ -1397,25 +1375,6 @@ import Stepper from 'cozy-ui/transpiled/react/Stepper'
1397
1375
  import Table from 'cozy-ui/transpiled/react/Table'
1398
1376
  ```
1399
1377
 
1400
- **Example:**
1401
-
1402
- ```jsx
1403
- import { useState } from 'react'
1404
- import VirtualizedTableDnd from 'cozy-ui/transpiled/react/Table/Virtualized/Dnd'
1405
- import Typography from 'cozy-ui/transpiled/react/Typography'
1406
- import SelectionProvider, { useSelection } from 'cozy-ui/transpiled/react/providers/Selection'
1407
- import { DndProvider } from 'react-dnd'
1408
- import { HTML5Backend } from 'react-dnd-html5-backend'
1409
-
1410
- <SelectionProvider>
1411
- <DndProvider backend={HTML5Backend}>
1412
- <div className="u-mt-half" style={{ border: "1px solid var(--borderMainColor)", height: 400, width: "100%" }}>
1413
- <DndExample />
1414
- </div>
1415
- </DndProvider>
1416
- </SelectionProvider>
1417
- ```
1418
-
1419
1378
 
1420
1379
  ### Thumbnail
1421
1380
 
@@ -1591,6 +1550,19 @@ import DropdownText from 'cozy-ui/transpiled/react/DropdownText'
1591
1550
  import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme'
1592
1551
  ```
1593
1552
 
1553
+ **Example:**
1554
+
1555
+ ```jsx
1556
+ import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme'
1557
+ import Button from '@material-ui/core/Button'
1558
+
1559
+ const DisplayButtonWithCozyTheme = () => (
1560
+ <MuiCozyTheme>
1561
+ <Button>Default button with Cozy theme</Button>
1562
+ </MuiCozyTheme>
1563
+ )
1564
+ ```
1565
+
1594
1566
  | Prop | Type | Default | Description |
1595
1567
  |------|------|---------|-------------|
1596
1568
  | `type` | `light` \| `dark` | `'light'` | - |
@@ -1839,26 +1811,12 @@ With saturation, hue and hex input for manual input or copy/paste.
1839
1811
  import ColorPickerCustom from 'cozy-ui/transpiled/react/ColorPickerCustom'
1840
1812
  ```
1841
1813
 
1842
- **Example:**
1843
-
1844
- ```jsx
1845
- import { useState } from 'react'
1846
- import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
1847
- import Paper from 'cozy-ui/transpiled/react/Paper';
1848
- import ColorPickerCustom from 'cozy-ui/transpiled/react/ColorPickerCustom'
1849
-
1850
- <BreakpointsProvider>
1851
- <Paper className="u-p-1">
1852
- <ColorPickerCustom color={color} setColor={setColor}/>
1853
- </Paper>
1854
- </BreakpointsProvider>
1855
- ```
1856
-
1857
1814
  | Prop | Type | Default | Description |
1858
1815
  |------|------|---------|-------------|
1859
- | `color` | string | - | - |
1860
- | `setColor` | function | - | - |
1861
1816
  | `className` | string | - | - |
1817
+ | `color` | string | - | - |
1818
+ | `onSave` | function | - | - |
1819
+ | `onCancel` | function | - | - |
1862
1820
 
1863
1821
 
1864
1822
  ### providers