cozy-ui 104.3.0 → 105.0.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 +18 -0
- package/package.json +1 -1
- package/react/ContactsList/Contacts/ContactCozy.jsx +1 -1
- package/react/ContactsList/Contacts/ContactEmail.jsx +1 -1
- package/react/ContactsList/Contacts/ContactIdentity.jsx +1 -1
- package/react/ContactsList/Contacts/ContactPhone.jsx +1 -1
- package/react/ContactsList/ContactsList.jsx +1 -1
- package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +4 -4
- package/react/Table/index.js +3 -0
- package/react/TableBody/index.js +3 -0
- package/react/TableCell/index.js +3 -0
- package/react/TableContainer/index.js +3 -0
- package/react/TableFooter/index.js +3 -0
- package/react/TableHead/index.js +3 -0
- package/react/TablePagination/index.js +3 -0
- package/react/TableRow/index.js +3 -0
- package/react/TableSortLabel/index.js +3 -0
- package/react/__snapshots__/examples.spec.jsx.snap +506 -529
- package/react/{Table → deprecated/Table}/Readme.md +1 -1
- package/react/examples.spec.jsx +0 -1
- package/transpiled/react/ContactsList/Contacts/ContactCozy.js +1 -1
- package/transpiled/react/ContactsList/Contacts/ContactEmail.js +1 -1
- package/transpiled/react/ContactsList/Contacts/ContactIdentity.js +1 -1
- package/transpiled/react/ContactsList/Contacts/ContactPhone.js +1 -1
- package/transpiled/react/ContactsList/ContactsList.js +1 -1
- package/transpiled/react/Table/index.js +2 -103
- package/transpiled/react/TableBody/index.js +2 -0
- package/transpiled/react/TableCell/index.js +2 -0
- package/transpiled/react/TableContainer/index.js +2 -0
- package/transpiled/react/TableFooter/index.js +2 -0
- package/transpiled/react/TableHead/index.js +2 -0
- package/transpiled/react/TablePagination/index.js +2 -0
- package/transpiled/react/TableRow/index.js +2 -0
- package/transpiled/react/TableSortLabel/index.js +2 -0
- package/transpiled/react/deprecated/Table/index.js +103 -0
- package/transpiled/react/stylesheet.css +1 -1
- /package/react/{Table → deprecated/Table}/index.jsx +0 -0
- /package/react/{Table → deprecated/Table}/styles.styl +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# [105.0.0](https://github.com/cozy/cozy-ui/compare/v104.3.0...v105.0.0) (2024-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add all Table components from MUI ([5c6438f](https://github.com/cozy/cozy-ui/commit/5c6438f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* `Table` component has been deprecated. Use codemods to deal with the change.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
yarn global add @cozy/codemods
|
|
15
|
+
yarn global add jscodeshift@0.13.1
|
|
16
|
+
jscodeshift -t $(yarn global dir)/node_modules/@cozy/codemods/src/transforms/transform-ui-deprecated-table.js src babel --ignore-pattern=src/targets/ --extensions js,jsx,tsx --parser tsx
|
|
17
|
+
```
|
|
18
|
+
|
|
1
19
|
# [104.3.0](https://github.com/cozy/cozy-ui/compare/v104.2.0...v104.3.0) (2024-03-13)
|
|
2
20
|
|
|
3
21
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { models } from 'cozy-client'
|
|
|
3
3
|
import PropTypes from 'prop-types'
|
|
4
4
|
|
|
5
5
|
import { Avatar } from '../../Avatar'
|
|
6
|
-
import { TableCell } from '../../Table'
|
|
6
|
+
import { TableCell } from '../../deprecated/Table'
|
|
7
7
|
import ContactName from './ContactName'
|
|
8
8
|
import styles from '../styles.styl'
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
|
|
4
4
|
import { useI18n } from '../providers/I18n'
|
|
5
|
-
import { Table } from '../Table'
|
|
5
|
+
import { Table } from '../deprecated/Table'
|
|
6
6
|
import List from '../List'
|
|
7
7
|
import ListSubheader from '../ListSubheader'
|
|
8
8
|
import { sortContacts, categorizeContacts, sortHeaders } from './helpers'
|
|
@@ -9,7 +9,7 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
9
9
|
size="medium"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
className="
|
|
12
|
+
className="styles__TableCell___3vgVE styles__contact-identity___mL3IJ u-flex u-flex-items-center u-ellipsis u-p-0"
|
|
13
13
|
data-testid="ContactIdentity"
|
|
14
14
|
>
|
|
15
15
|
<div
|
|
@@ -48,19 +48,19 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
48
48
|
</p>
|
|
49
49
|
</div>
|
|
50
50
|
<div
|
|
51
|
-
className="
|
|
51
|
+
className="styles__TableCell___3vgVE styles__contact-email___3n3q2 u-ellipsis u-p-0"
|
|
52
52
|
data-testid="ContactEmail"
|
|
53
53
|
>
|
|
54
54
|
johndoe@localhost
|
|
55
55
|
</div>
|
|
56
56
|
<div
|
|
57
|
-
className="
|
|
57
|
+
className="styles__TableCell___3vgVE styles__contact-phone___1sA_m u-ellipsis u-p-0"
|
|
58
58
|
data-testid="ContactPhone"
|
|
59
59
|
>
|
|
60
60
|
0123456789
|
|
61
61
|
</div>
|
|
62
62
|
<div
|
|
63
|
-
className="
|
|
63
|
+
className="styles__TableCell___3vgVE styles__contact-cozyurl___3kBp5 u-ellipsis u-p-0"
|
|
64
64
|
data-testid="ContactCozy"
|
|
65
65
|
>
|
|
66
66
|
http://johndoe.mycozy.cloud
|