cozy-ui 140.0.0 → 140.1.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 +7 -0
- package/package.json +1 -1
- package/react/Autocomplete/Readme.md +17 -0
- package/react/Autocomplete/index.js +3 -0
- package/react/index.js +1 -0
- package/skills/cozy-ui-reference/references/components.md +41 -6
- package/transpiled/react/Autocomplete/index.d.ts +2 -0
- package/transpiled/react/Autocomplete/index.js +2 -0
- package/transpiled/react/index.d.ts +1 -0
- package/transpiled/react/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [140.1.0](https://github.com/cozy/cozy-ui/compare/v140.0.0...v140.1.0) (2026-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Re-export of [@material-ui](https://github.com/material-ui) Autocomplete ([73c077a](https://github.com/cozy/cozy-ui/commit/73c077a))
|
|
7
|
+
|
|
1
8
|
# [140.0.0](https://github.com/cozy/cozy-ui/compare/v139.2.0...v140.0.0) (2026-06-23)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Re-export of @material-ui. See [the official API](https://v4.mui.com/components/autocomplete/).
|
|
2
|
+
|
|
3
|
+
```jsx
|
|
4
|
+
import Autocomplete from 'cozy-ui/transpiled/react/Autocomplete'
|
|
5
|
+
import TextField from 'cozy-ui/transpiled/react/TextField'
|
|
6
|
+
import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
|
|
7
|
+
|
|
8
|
+
const options = ['one', 'two', 'three']
|
|
9
|
+
|
|
10
|
+
;
|
|
11
|
+
<DemoProvider>
|
|
12
|
+
<Autocomplete
|
|
13
|
+
options={options}
|
|
14
|
+
renderInput={params => <TextField {...params} label="Basic" />}
|
|
15
|
+
/>
|
|
16
|
+
</DemoProvider>
|
|
17
|
+
```
|
package/react/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export { default as Spinner } from './Spinner'
|
|
|
16
16
|
export { default as Accordion } from './Accordion'
|
|
17
17
|
export { default as AccordionSummary } from './AccordionSummary'
|
|
18
18
|
export { default as AccordionDetails } from './AccordionDetails'
|
|
19
|
+
export { default as Autocomplete } from './Autocomplete'
|
|
19
20
|
export { default as Breadcrumbs } from './Breadcrumbs'
|
|
20
21
|
export { default as withBreakpoints } from './helpers/withBreakpoints'
|
|
21
22
|
export { default as useBreakpoints } from './providers/Breakpoints'
|
|
@@ -16,8 +16,8 @@ Generated reference for React components available in cozy-ui. Use this file to
|
|
|
16
16
|
- **Dialogs**: [ActionsBar](#actionsbar), [ActionsMenu](#actionsmenu), [CozyDialogs](#cozydialogs), [Dialog](#dialog), [Menu](#menu), [SpecificDialogs (CozyDialogs/SpecificDialogs)](#specificdialogs-cozydialogs-specificdialogs)
|
|
17
17
|
- **Utils**: [DropdownText](#dropdowntext), [MuiCozyTheme](#muicozytheme)
|
|
18
18
|
- **Hooks & Providers**: [Breakpoints (providers/Breakpoints)](#breakpoints-providers-breakpoints), [ConfirmDialog (providers/ConfirmDialog)](#confirmdialog-providers-confirmdialog), [CozyTheme (providers/CozyTheme)](#cozytheme-providers-cozytheme), [Selection (providers/Selection)](#selection-providers-selection), [useConfirmExit (hooks/useConfirmExit)](#useconfirmexit-hooks-useconfirmexit)
|
|
19
|
-
- **Labs**: [Labs](#labs), [PasswordInput (Labs/PasswordInput)](#passwordinput-labs-passwordinput)
|
|
20
|
-
- **Other**: [BottomSheet](#bottomsheet), [providers](#providers)
|
|
19
|
+
- **Labs**: [IconGrid (Labs/IconGrid)](#icongrid-labs-icongrid), [Labs](#labs), [PasswordInput (Labs/PasswordInput)](#passwordinput-labs-passwordinput)
|
|
20
|
+
- **Other**: [Autocomplete](#autocomplete), [BottomSheet](#bottomsheet), [providers](#providers)
|
|
21
21
|
|
|
22
22
|
## Buttons
|
|
23
23
|
|
|
@@ -253,6 +253,7 @@ import SearchBar from 'cozy-ui/transpiled/react/SearchBar'
|
|
|
253
253
|
|------|------|---------|-------------|
|
|
254
254
|
| `className` | string | - | - |
|
|
255
255
|
| `type` | `button` \| `search` | `'search'` | - |
|
|
256
|
+
| `icon` | string \| object \| function | `Magnifier` | - |
|
|
256
257
|
| `size` | `small` \| `medium` \| `large` \| `auto` | `'small'` | - |
|
|
257
258
|
| `componentsProps` | object | - | - |
|
|
258
259
|
| `value` | string | - | Used to control the component outside of it |
|
|
@@ -409,8 +410,8 @@ import Empty from 'cozy-ui/transpiled/react/Empty'
|
|
|
409
410
|
**Example:**
|
|
410
411
|
|
|
411
412
|
```jsx
|
|
413
|
+
import { Icon, Cozy } from '@linagora/twake-icons'
|
|
412
414
|
import Empty from 'cozy-ui/transpiled/react/Empty'
|
|
413
|
-
import { Cozy, Icon } from '@linagora/twake-icons'
|
|
414
415
|
|
|
415
416
|
<>
|
|
416
417
|
<Empty
|
|
@@ -442,6 +443,7 @@ import { Cozy, Icon } from '@linagora/twake-icons'
|
|
|
442
443
|
|
|
443
444
|
| Prop | Type | Default | Description |
|
|
444
445
|
|------|------|---------|-------------|
|
|
446
|
+
| `icon` | string \| object \| function | - | - |
|
|
445
447
|
| `iconSize` | `normal` \| `medium` \| `large` | `'normal'` | - |
|
|
446
448
|
| `title` | React.node | - | - |
|
|
447
449
|
| `text` | React.node | - | - |
|
|
@@ -903,8 +905,8 @@ import Badge from 'cozy-ui/transpiled/react/Badge'
|
|
|
903
905
|
|
|
904
906
|
```jsx
|
|
905
907
|
import Badge from 'cozy-ui/transpiled/react/Badge'
|
|
906
|
-
import { Icon, Link } from '@linagora/twake-icons'
|
|
907
908
|
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
909
|
+
import { Icon, Link } from '@linagora/twake-icons'
|
|
908
910
|
|
|
909
911
|
<Badge
|
|
910
912
|
anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
|
|
@@ -999,6 +1001,7 @@ import Filename from 'cozy-ui/transpiled/react/Filename'
|
|
|
999
1001
|
|
|
1000
1002
|
| Prop | Type | Default | Description |
|
|
1001
1003
|
|------|------|---------|-------------|
|
|
1004
|
+
| `icon` | string \| object \| function | - | Filename icon |
|
|
1002
1005
|
| `filename` | string | - | folder or file name |
|
|
1003
1006
|
| `extension` | string | - | If a file name, you can specify the extension |
|
|
1004
1007
|
| `midEllipsis` | boolean | `false` | To replace the end ellipsis by a middle on in the filename |
|
|
@@ -1097,7 +1100,7 @@ const HistoryRow = ({
|
|
|
1097
1100
|
<div className={styles.HistoryRowCircleWrapper}>
|
|
1098
1101
|
<div className={styles.HistoryRowMediaImg}>
|
|
1099
1102
|
<Avatar size={tag ? 's' : 'xs'} className={styles.HistoryRowCircle}>
|
|
1100
|
-
{tag && <Icon icon={
|
|
1103
|
+
{tag && <Icon icon={File} color="var(--primaryTextColor)" />}
|
|
1101
1104
|
</Avatar>
|
|
1102
1105
|
</div>
|
|
1103
1106
|
</div>
|
|
@@ -1117,7 +1120,7 @@ const HistoryRow = ({
|
|
|
1117
1120
|
<Icon
|
|
1118
1121
|
className="u-c-pointer"
|
|
1119
1122
|
color="var(--secondaryTextColor)"
|
|
1120
|
-
icon={
|
|
1123
|
+
icon={Download}
|
|
1121
1124
|
onClick={() => downloadLink()}
|
|
1122
1125
|
/>
|
|
1123
1126
|
</div>
|
|
@@ -1753,6 +1756,29 @@ const Example = () => {
|
|
|
1753
1756
|
|
|
1754
1757
|
## Labs
|
|
1755
1758
|
|
|
1759
|
+
### IconGrid (Labs/IconGrid)
|
|
1760
|
+
|
|
1761
|
+
A component to display a grid of 4 icons. This component is not considered stable and may be replaced by a more generic grid component in the future.
|
|
1762
|
+
|
|
1763
|
+
```jsx
|
|
1764
|
+
import IconGrid from 'cozy-ui/transpiled/react/Labs/IconGrid'
|
|
1765
|
+
```
|
|
1766
|
+
|
|
1767
|
+
**Example:**
|
|
1768
|
+
|
|
1769
|
+
```jsx
|
|
1770
|
+
import IconGrid from 'cozy-ui/transpiled/react/Labs/IconGrid'
|
|
1771
|
+
import { Cloud, CloudHappy, File, Icon, Online } from '@linagora/twake-icons'
|
|
1772
|
+
|
|
1773
|
+
<IconGrid>
|
|
1774
|
+
<Icon icon={File} />
|
|
1775
|
+
<Icon icon={Cloud} />
|
|
1776
|
+
<Icon icon={CloudHappy} />
|
|
1777
|
+
<Icon icon={Online} />
|
|
1778
|
+
</IconGrid>
|
|
1779
|
+
```
|
|
1780
|
+
|
|
1781
|
+
|
|
1756
1782
|
### Labs
|
|
1757
1783
|
|
|
1758
1784
|
In this directory, components you will find are experimental and subject to API change without creating any breaking change.
|
|
@@ -1780,6 +1806,15 @@ import PasswordInput from 'cozy-ui/transpiled/react/Labs/PasswordInput'
|
|
|
1780
1806
|
|
|
1781
1807
|
## Other
|
|
1782
1808
|
|
|
1809
|
+
### Autocomplete
|
|
1810
|
+
|
|
1811
|
+
Re-export of @material-ui. See the official API.
|
|
1812
|
+
|
|
1813
|
+
```jsx
|
|
1814
|
+
import Autocomplete from 'cozy-ui/transpiled/react/Autocomplete'
|
|
1815
|
+
```
|
|
1816
|
+
|
|
1817
|
+
|
|
1783
1818
|
### BottomSheet
|
|
1784
1819
|
|
|
1785
1820
|
Display content coming up from the bottom of the screen. The pane can be swiped to the top of the screen. Based on cozy / mui-bottom-sheet: API documentation is here. It uses Portal to have the same behavior as Dialogs / Modals (can be disabled with the disablePortal prop).
|
|
@@ -5,6 +5,7 @@ export { default as Spinner } from "./Spinner";
|
|
|
5
5
|
export { default as Accordion } from "./Accordion";
|
|
6
6
|
export { default as AccordionSummary } from "./AccordionSummary";
|
|
7
7
|
export { default as AccordionDetails } from "./AccordionDetails";
|
|
8
|
+
export { default as Autocomplete } from "./Autocomplete";
|
|
8
9
|
export { default as Breadcrumbs } from "./Breadcrumbs";
|
|
9
10
|
export { default as withBreakpoints } from "./helpers/withBreakpoints";
|
|
10
11
|
export { default as useBreakpoints } from "./providers/Breakpoints";
|
|
@@ -8,6 +8,7 @@ export { default as Spinner } from './Spinner';
|
|
|
8
8
|
export { default as Accordion } from './Accordion';
|
|
9
9
|
export { default as AccordionSummary } from './AccordionSummary';
|
|
10
10
|
export { default as AccordionDetails } from './AccordionDetails';
|
|
11
|
+
export { default as Autocomplete } from './Autocomplete';
|
|
11
12
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
12
13
|
export { default as withBreakpoints } from './helpers/withBreakpoints';
|
|
13
14
|
export { default as useBreakpoints } from './providers/Breakpoints';
|