cozy-ui 117.2.1 → 117.3.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 +15 -0
- package/assets/icons/illus/file-type-server.svg +1 -0
- package/package.json +1 -1
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/FileTypeServer.jsx +23 -0
- package/react/NestedSelect/NestedSelect.jsx +6 -1
- package/react/NestedSelect/styles.styl +3 -0
- package/react/QualificationModal/helpers.js +2 -0
- package/react/QualificationModal/helpers.spec.js +29 -0
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/FileTypeServer.js +21 -0
- package/transpiled/react/NestedSelect/Modal.js +1 -0
- package/transpiled/react/NestedSelect/NestedSelect.js +3 -1
- package/transpiled/react/QualificationModal/helpers.js +1 -0
- package/transpiled/react/stylesheet.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [117.3.0](https://github.com/cozy/cozy-ui/compare/v117.2.2...v117.3.0) (2025-02-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add FileTypeServer illustration ([740ddb7](https://github.com/cozy/cozy-ui/commit/740ddb7))
|
|
7
|
+
|
|
8
|
+
## [117.2.2](https://github.com/cozy/cozy-ui/compare/v117.2.1...v117.2.2) (2025-02-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **NestedSelect:** Now add space between close button and content if no title ([0f20f2a](https://github.com/cozy/cozy-ui/commit/0f20f2a))
|
|
14
|
+
* **QualificationModal:** Now show initial list if search value is empty ([831b53e](https://github.com/cozy/cozy-ui/commit/831b53e))
|
|
15
|
+
|
|
1
16
|
## [117.2.1](https://github.com/cozy/cozy-ui/compare/v117.2.0...v117.2.1) (2025-02-04)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.799 16.501A4 4 0 0 1 5.923 15h20.155a4 4 0 0 1 3.123 1.501l2.142 2.677A3 3 0 0 1 32 21.052V24H0v-2.948a3 3 0 0 1 .657-1.874L2.8 16.501ZM2.799 2.501A4 4 0 0 1 5.923 1h20.155A4 4 0 0 1 29.2 2.501l2.142 2.677A3 3 0 0 1 32 7.052V10H0V7.052a3 3 0 0 1 .657-1.874L2.8 2.501Z" fill="#197BFF"/><path d="M0 21a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-8ZM0 7a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V7Z" fill="#B2D3FF"/><path d="M8 25a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 11a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" fill="#297EF2"/></svg>
|
package/package.json
CHANGED
package/react/Icon/Readme.md
CHANGED
|
@@ -693,6 +693,7 @@ import FileTypeBinIcon from 'cozy-ui/transpiled/react/Icons/FileTypeBin'
|
|
|
693
693
|
import FileTypeCodeIcon from 'cozy-ui/transpiled/react/Icons/FileTypeCode'
|
|
694
694
|
import FileTypeFilesIcon from 'cozy-ui/transpiled/react/Icons/FileTypeFiles'
|
|
695
695
|
import FileTypeFolderIcon from 'cozy-ui/transpiled/react/Icons/FileTypeFolder'
|
|
696
|
+
import FileTypeServerIcon from 'cozy-ui/transpiled/react/Icons/FileTypeServer'
|
|
696
697
|
import FileTypeImageIcon from 'cozy-ui/transpiled/react/Icons/FileTypeImage'
|
|
697
698
|
import FileTypeNoteIcon from 'cozy-ui/transpiled/react/Icons/FileTypeNote'
|
|
698
699
|
import FileTypePdfIcon from 'cozy-ui/transpiled/react/Icons/FileTypePdf'
|
|
@@ -733,6 +734,7 @@ const icons = [
|
|
|
733
734
|
FileTypeCodeIcon,
|
|
734
735
|
FileTypeFilesIcon,
|
|
735
736
|
FileTypeFolderIcon,
|
|
737
|
+
FileTypeServerIcon,
|
|
736
738
|
FileTypeImageIcon,
|
|
737
739
|
FileTypeNoteIcon,
|
|
738
740
|
FileTypePdfIcon,
|
|
@@ -788,7 +790,7 @@ import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
|
788
790
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
789
791
|
import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
|
|
790
792
|
|
|
791
|
-
const availableIcons = ['account', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'store', 'top-select', 'trash-duotone', 'cozy']
|
|
793
|
+
const availableIcons = ['account', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-server', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'store', 'top-select', 'trash-duotone', 'cozy']
|
|
792
794
|
|
|
793
795
|
;
|
|
794
796
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/file-type-server.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgFileTypeServer(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 32 32" fill="none" {...props}>
|
|
7
|
+
<path
|
|
8
|
+
d="M2.799 16.501A4 4 0 015.923 15h20.155a4 4 0 013.123 1.501l2.142 2.677A3 3 0 0132 21.052V24H0v-2.948a3 3 0 01.657-1.874L2.8 16.501zm0-14A4 4 0 015.923 1h20.155A4 4 0 0129.2 2.501l2.142 2.677A3 3 0 0132 7.052V10H0V7.052a3 3 0 01.657-1.874L2.8 2.501z"
|
|
9
|
+
fill="#197BFF"
|
|
10
|
+
/>
|
|
11
|
+
<path
|
|
12
|
+
d="M0 21a2 2 0 012-2h28a2 2 0 012 2v8a2 2 0 01-2 2H2a2 2 0 01-2-2v-8zM0 7a2 2 0 012-2h28a2 2 0 012 2v8a2 2 0 01-2 2H2a2 2 0 01-2-2V7z"
|
|
13
|
+
fill="#B2D3FF"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
d="M8 25a2 2 0 11-4 0 2 2 0 014 0zm0-14a2 2 0 11-4 0 2 2 0 014 0z"
|
|
17
|
+
fill="#297EF2"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default SvgFileTypeServer
|
|
@@ -94,7 +94,12 @@ const NestedSelect = ({
|
|
|
94
94
|
const currentTitle = current.title || title
|
|
95
95
|
|
|
96
96
|
return (
|
|
97
|
-
<span
|
|
97
|
+
<span
|
|
98
|
+
ref={innerRef}
|
|
99
|
+
className={cx({
|
|
100
|
+
[styles['title-container--without-title']]: !currentTitle
|
|
101
|
+
})}
|
|
102
|
+
>
|
|
98
103
|
{HeaderComponent ? (
|
|
99
104
|
<HeaderComponent
|
|
100
105
|
title={currentTitle}
|
|
@@ -29,4 +29,33 @@ describe('searchOptionsFn', () => {
|
|
|
29
29
|
|
|
30
30
|
expect(res).toStrictEqual([{ id: '01', title: 'Identity Photo' }])
|
|
31
31
|
})
|
|
32
|
+
|
|
33
|
+
it('should return the initial list and not all children', () => {
|
|
34
|
+
const options = {
|
|
35
|
+
children: [
|
|
36
|
+
{ id: 'none', title: 'None' },
|
|
37
|
+
{
|
|
38
|
+
id: 'theme1',
|
|
39
|
+
title: 'Identity',
|
|
40
|
+
children: [
|
|
41
|
+
{ id: '01', title: 'Identity Photo' },
|
|
42
|
+
{ id: '02', title: 'ID card' }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'theme2',
|
|
47
|
+
title: 'Family',
|
|
48
|
+
children: [
|
|
49
|
+
{ id: '03', title: 'Family record book' },
|
|
50
|
+
{ id: '04', title: 'Birth certificate' },
|
|
51
|
+
{ id: '01', title: 'Identity Photo' }
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const res = searchOptionsFn(options, '')
|
|
58
|
+
|
|
59
|
+
expect(res).toStrictEqual(options.children)
|
|
60
|
+
})
|
|
32
61
|
})
|