cozy-ui 96.0.0 → 96.1.1
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 +14 -0
- package/assets/icons/illus/trash-duotone.svg +1 -0
- package/package.json +1 -1
- package/react/Icon/Readme.md +35 -34
- package/react/Icon/icons-sprite.js +1 -1
- package/react/Icons/TrashDuotone.jsx +21 -0
- package/react/MuiCozyTheme/makeOverrides.js +4 -2
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/TrashDuotone.js +20 -0
- package/transpiled/react/MuiCozyTheme/makeOverrides.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [96.1.1](https://github.com/cozy/cozy-ui/compare/v96.1.0...v96.1.1) (2023-11-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Improve IllustrationDialog layout in native ([2946e9d](https://github.com/cozy/cozy-ui/commit/2946e9d))
|
|
7
|
+
|
|
8
|
+
# [96.1.0](https://github.com/cozy/cozy-ui/compare/v96.0.0...v96.1.0) (2023-11-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Add TrashDuotone icon ([b3b26b5](https://github.com/cozy/cozy-ui/commit/b3b26b5))
|
|
14
|
+
|
|
1
15
|
# [96.0.0](https://github.com/cozy/cozy-ui/compare/v95.11.1...v96.0.0) (2023-11-23)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.586 3 10.707.879A3 3 0 0 1 12.828 0h6.344a3 3 0 0 1 2.121.879L23.414 3H29a2 2 0 1 1 0 4H3a2 2 0 1 1 0-4h5.586Zm3.535-.707A1 1 0 0 1 12.828 2h6.344a1 1 0 0 1 .707.293l.707.707h-9.172l.707-.707Z" fill="#95999D"/><path d="M4 8a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v22a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8Z" fill="#D6D8DA"/></svg>
|
package/package.json
CHANGED
package/react/Icon/Readme.md
CHANGED
|
@@ -22,7 +22,7 @@ import Album from 'cozy-ui/transpiled/react/Icons/Album'
|
|
|
22
22
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
23
23
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
24
24
|
import Dialog from 'cozy-ui/transpiled/react/CozyDialogs/Dialog'
|
|
25
|
-
import
|
|
25
|
+
import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
|
|
26
26
|
import cx from 'classnames'
|
|
27
27
|
|
|
28
28
|
import { makeStyles } from 'cozy-ui/transpiled/react/styles'
|
|
@@ -503,7 +503,7 @@ const icons = [
|
|
|
503
503
|
WrenchCircle,
|
|
504
504
|
Work
|
|
505
505
|
]
|
|
506
|
-
|
|
506
|
+
const locale = {}
|
|
507
507
|
const wrapperStyle = {
|
|
508
508
|
fontSize: '2rem',
|
|
509
509
|
display: 'grid',
|
|
@@ -540,7 +540,7 @@ const InfoModal = ({ icon }) => {
|
|
|
540
540
|
|
|
541
541
|
const Example = () => {
|
|
542
542
|
return (
|
|
543
|
-
<
|
|
543
|
+
<DemoProvider>
|
|
544
544
|
<Typography component='p' variant='body1' className='u-mb-1'>
|
|
545
545
|
Font size: <input type='range' min='8' max='48' value={state.size} onChange={handleInputRangeChange} /> {state.size}px
|
|
546
546
|
</Typography>
|
|
@@ -559,7 +559,7 @@ const Example = () => {
|
|
|
559
559
|
)}
|
|
560
560
|
{ state.selected ? <InfoModal icon={state.selected} /> : null }
|
|
561
561
|
</div>
|
|
562
|
-
</
|
|
562
|
+
</DemoProvider>
|
|
563
563
|
)
|
|
564
564
|
}
|
|
565
565
|
|
|
@@ -574,15 +574,22 @@ const Example = () => {
|
|
|
574
574
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
575
575
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
576
576
|
|
|
577
|
-
import
|
|
577
|
+
import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect'
|
|
578
|
+
import CheckWhiteIcon from 'cozy-ui/transpiled/react/Icons/CheckWhite'
|
|
578
579
|
import CloudBrokenIcon from 'cozy-ui/transpiled/react/Icons/CloudBroken'
|
|
579
580
|
import CloudSync2 from 'cozy-ui/transpiled/react/Icons/CloudSync2'
|
|
581
|
+
import ContactsIcon from 'cozy-ui/transpiled/react/Icons/Contacts'
|
|
582
|
+
import CozyAuthentificationIcon from 'cozy-ui/transpiled/react/Icons/CozyAuthentification'
|
|
583
|
+
import CozyIcon from 'cozy-ui/transpiled/react/Icons/Cozy'
|
|
580
584
|
import CozyLogoIcon from 'cozy-ui/transpiled/react/Icons/CozyLogo'
|
|
585
|
+
import CozyUpgradeIcon from 'cozy-ui/transpiled/react/Icons/CozyUpgrade'
|
|
586
|
+
import DashWhiteIcon from 'cozy-ui/transpiled/react/Icons/DashWhite'
|
|
587
|
+
import DeviceBrowserIcon from 'cozy-ui/transpiled/react/Icons/DeviceBrowser'
|
|
581
588
|
import DeviceLaptopIcon from 'cozy-ui/transpiled/react/Icons/DeviceLaptop'
|
|
582
589
|
import DevicePhoneIcon from 'cozy-ui/transpiled/react/Icons/DevicePhone'
|
|
583
590
|
import DeviceTabletIcon from 'cozy-ui/transpiled/react/Icons/DeviceTablet'
|
|
584
|
-
import DeviceBrowserIcon from 'cozy-ui/transpiled/react/Icons/DeviceBrowser'
|
|
585
591
|
import FileTypeAudioIcon from 'cozy-ui/transpiled/react/Icons/FileTypeAudio'
|
|
592
|
+
import FileTypeBankingAccountIcon from 'cozy-ui/transpiled/react/Icons/FileTypeBankingAccount'
|
|
586
593
|
import FileTypeBinIcon from 'cozy-ui/transpiled/react/Icons/FileTypeBin'
|
|
587
594
|
import FileTypeCodeIcon from 'cozy-ui/transpiled/react/Icons/FileTypeCode'
|
|
588
595
|
import FileTypeFilesIcon from 'cozy-ui/transpiled/react/Icons/FileTypeFiles'
|
|
@@ -594,32 +601,32 @@ import FileTypeSlideIcon from 'cozy-ui/transpiled/react/Icons/FileTypeSlide'
|
|
|
594
601
|
import FileTypeTextIcon from 'cozy-ui/transpiled/react/Icons/FileTypeText'
|
|
595
602
|
import FileTypeVideoIcon from 'cozy-ui/transpiled/react/Icons/FileTypeVideo'
|
|
596
603
|
import FileTypeZipIcon from 'cozy-ui/transpiled/react/Icons/FileTypeZip'
|
|
597
|
-
import FileTypeBankingAccountIcon from 'cozy-ui/transpiled/react/Icons/FileTypeBankingAccount'
|
|
598
|
-
import ContactsIcon from 'cozy-ui/transpiled/react/Icons/Contacts'
|
|
599
|
-
import PapersIcon from 'cozy-ui/transpiled/react/Icons/Papers'
|
|
600
|
-
import StoreIcon from 'cozy-ui/transpiled/react/Icons/Store'
|
|
601
604
|
import ForbiddenSignIcon from 'cozy-ui/transpiled/react/Icons/ForbiddenSign'
|
|
602
605
|
import GoogleIcon from 'cozy-ui/transpiled/react/Icons/Google'
|
|
606
|
+
import KeychainIcon from 'cozy-ui/transpiled/react/Icons/Keychain'
|
|
603
607
|
import LogoutLargeIcon from 'cozy-ui/transpiled/react/Icons/LogoutLarge'
|
|
608
|
+
import PapersIcon from 'cozy-ui/transpiled/react/Icons/Papers'
|
|
609
|
+
import StoreIcon from 'cozy-ui/transpiled/react/Icons/Store'
|
|
604
610
|
import TopSelectIcon from 'cozy-ui/transpiled/react/Icons/TopSelect'
|
|
605
|
-
import
|
|
606
|
-
import CheckWhiteIcon from 'cozy-ui/transpiled/react/Icons/CheckWhite'
|
|
607
|
-
import DashWhiteIcon from 'cozy-ui/transpiled/react/Icons/DashWhite'
|
|
608
|
-
import KeychainIcon from 'cozy-ui/transpiled/react/Icons/Keychain'
|
|
609
|
-
import CozyUpgradeIcon from 'cozy-ui/transpiled/react/Icons/CozyUpgrade'
|
|
610
|
-
import CozyAuthentificationIcon from 'cozy-ui/transpiled/react/Icons/CozyAuthentification'
|
|
611
|
-
|
|
611
|
+
import TrashDuotoneIcon from 'cozy-ui/transpiled/react/Icons/TrashDuotone'
|
|
612
612
|
|
|
613
613
|
const icons = [
|
|
614
|
-
|
|
614
|
+
BottomSelectIcon,
|
|
615
|
+
CheckWhiteIcon,
|
|
615
616
|
CloudBrokenIcon,
|
|
616
617
|
CloudSync2,
|
|
618
|
+
ContactsIcon,
|
|
619
|
+
CozyAuthentificationIcon,
|
|
620
|
+
CozyIcon,
|
|
617
621
|
CozyLogoIcon,
|
|
622
|
+
CozyUpgradeIcon,
|
|
623
|
+
DashWhiteIcon,
|
|
624
|
+
DeviceBrowserIcon,
|
|
618
625
|
DeviceLaptopIcon,
|
|
619
626
|
DevicePhoneIcon,
|
|
620
627
|
DeviceTabletIcon,
|
|
621
|
-
DeviceBrowserIcon,
|
|
622
628
|
FileTypeAudioIcon,
|
|
629
|
+
FileTypeBankingAccountIcon,
|
|
623
630
|
FileTypeBinIcon,
|
|
624
631
|
FileTypeCodeIcon,
|
|
625
632
|
FileTypeFilesIcon,
|
|
@@ -631,20 +638,14 @@ const icons = [
|
|
|
631
638
|
FileTypeTextIcon,
|
|
632
639
|
FileTypeVideoIcon,
|
|
633
640
|
FileTypeZipIcon,
|
|
634
|
-
FileTypeBankingAccountIcon,
|
|
635
|
-
ContactsIcon,
|
|
636
|
-
PapersIcon,
|
|
637
|
-
StoreIcon,
|
|
638
641
|
ForbiddenSignIcon,
|
|
639
642
|
GoogleIcon,
|
|
643
|
+
KeychainIcon,
|
|
640
644
|
LogoutLargeIcon,
|
|
645
|
+
PapersIcon,
|
|
646
|
+
StoreIcon,
|
|
641
647
|
TopSelectIcon,
|
|
642
|
-
|
|
643
|
-
CheckWhiteIcon,
|
|
644
|
-
DashWhiteIcon,
|
|
645
|
-
KeychainIcon,
|
|
646
|
-
CozyUpgradeIcon,
|
|
647
|
-
CozyAuthentificationIcon
|
|
648
|
+
TrashDuotoneIcon
|
|
648
649
|
]
|
|
649
650
|
|
|
650
651
|
const wrapperStyle = {
|
|
@@ -684,7 +685,7 @@ import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
|
684
685
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
685
686
|
import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
|
|
686
687
|
|
|
687
|
-
const availableIcons = ['
|
|
688
|
+
const availableIcons = ['bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', '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']
|
|
688
689
|
|
|
689
690
|
;
|
|
690
691
|
|
|
@@ -704,7 +705,7 @@ const availableIcons = ['cozy', 'cloud-broken', 'cozy-logo', 'device-laptop', 'd
|
|
|
704
705
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
705
706
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
706
707
|
import Dialog from 'cozy-ui/transpiled/react/CozyDialogs/Dialog'
|
|
707
|
-
import
|
|
708
|
+
import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
|
|
708
709
|
import cx from 'classnames'
|
|
709
710
|
|
|
710
711
|
import { makeStyles } from 'cozy-ui/transpiled/react/styles'
|
|
@@ -755,7 +756,7 @@ import Triggers from 'cozy-ui/transpiled/react/Icons/Triggers'
|
|
|
755
756
|
import Versioning from 'cozy-ui/transpiled/react/Icons/Versioning'
|
|
756
757
|
|
|
757
758
|
const icons = [Accounts, Apps, BankAccounts, BankGroups, BankOperations, BankRecurrence, BillPermissions, BugReport, CalendarPermissions, Category, CertifiedPermissions, ConnectedClients, Consumption, ContactsAccounts, ContactsGroups, Contacts, Contract, Ecolyo, Energy, Energybreakdown, Fallback, Family, FilesPen, FilesVersions, Files, HomePermissions, Identities, KonnectorsResult, Konnectors, LocationPermissions, Notifications, Opinions, Passwords, Permissions, PhotosAlbum, PhotosSettings, Profile, SafePermissions, Settings, Sharings, Sinister, Tags,TaskToEffectuate, Triggers, Versioning]
|
|
758
|
-
|
|
759
|
+
const locale = {}
|
|
759
760
|
const wrapperStyle = {
|
|
760
761
|
fontSize: '2rem',
|
|
761
762
|
display: 'grid',
|
|
@@ -792,7 +793,7 @@ const InfoModal = ({ icon }) => {
|
|
|
792
793
|
|
|
793
794
|
const Example = () => {
|
|
794
795
|
return (
|
|
795
|
-
<
|
|
796
|
+
<DemoProvider>
|
|
796
797
|
<Typography component='p' variant='body1' className='u-mb-1'>
|
|
797
798
|
Font size: <input type='range' min='8' max='48' value={state.size} onChange={handleInputRangeChange} /> {state.size}px
|
|
798
799
|
</Typography>
|
|
@@ -811,7 +812,7 @@ const Example = () => {
|
|
|
811
812
|
)}
|
|
812
813
|
{ state.selected ? <InfoModal icon={state.selected} /> : null }
|
|
813
814
|
</div>
|
|
814
|
-
</
|
|
815
|
+
</DemoProvider>
|
|
815
816
|
)
|
|
816
817
|
}
|
|
817
818
|
|
|
@@ -167,7 +167,7 @@ animation: checkmark 0.5s ease-in-out 0.16s backwards
|
|
|
167
167
|
<g fill="#95999d" fill-rule="evenodd" transform="translate(12.285714, 12.000000) rotate(270.000000) translate(-12.285714, -12.000000)">
|
|
168
168
|
<path d="M6.46026077,20.3174036 C5.84657974,20.9310847 5.84657974,21.9260582 6.46026077,22.5397392 C7.0739418,23.1534203 8.06891534,23.1534203 8.68259637,22.5397392 L18.1111678,13.1111678 C18.7248488,12.4974868 18.7248488,11.5025132 18.1111678,10.8888322 L8.68259637,1.46026077 C8.06891534,0.846579743 7.0739418,0.846579743 6.46026077,1.46026077 C5.84657974,2.0739418 5.84657974,3.06891534 6.46026077,3.68259637 L14.7776644,12 L6.46026077,20.3174036 Z"/>
|
|
169
169
|
</g>
|
|
170
|
-
</symbol><symbol id="album-add" viewBox="0 0 16 16">
|
|
170
|
+
</symbol><symbol id="trash-duotone" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.586 3 10.707.879A3 3 0 0 1 12.828 0h6.344a3 3 0 0 1 2.121.879L23.414 3H29a2 2 0 1 1 0 4H3a2 2 0 1 1 0-4h5.586Zm3.535-.707A1 1 0 0 1 12.828 2h6.344a1 1 0 0 1 .707.293l.707.707h-9.172l.707-.707Z" fill="#95999D"/><path d="M4 8a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v22a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8Z" fill="#D6D8DA"/></symbol><symbol id="album-add" viewBox="0 0 16 16">
|
|
171
171
|
<path fill-rule="evenodd" d="M65,99.0094776 C65,97.347389 66.3423789,96 68.0033512,96 L77.9931545,96 C78.5492199,96 79,96.4438648 79,97 C79,97.5522847 78.544239,98 77.9975267,98 L68.0024733,98 C67.4488226,98 67,98.4438648 67,99 C67,99.5522847 67.455761,100 68.0024733,100 L77.9975267,100 C78.5511774,100 79,100.455761 79,101.002473 L79,110.997527 C79,111.551177 78.5500512,112 77.9931545,112 L68.0033512,112 C66.3446462,112 65,110.663369 65,108.990522 L65,99.0094776 Z M72,102 L74,102 L74,105 L77,105 L77,107 L74,107 L74,110 L72,110 L72,107 L69,107 L69,105 L72,105 L72,102 Z" transform="translate(-64 -96)"/>
|
|
172
172
|
</symbol><symbol id="album-remove" viewBox="0 0 16 16">
|
|
173
173
|
<path fill-rule="evenodd" d="M65,99.009C65,97.347 66.342,96 68.003,96L77.993,96C78.549,96 79,96.444 79,97C79,97.552 78.544,98 77.998,98L68.002,98C67.449,98 67,98.444 67,99C67,99.552 67.456,100 68.002,100L77.998,100C78.551,100 79,100.456 79,101.002L79,110.998C79,111.551 78.55,112 77.993,112L68.003,112C66.345,112 65,110.663 65,108.991L65,99.009ZM72,105L77,105L77,107L74,107L72,107L69,107L69,105L72,105Z" transform="translate(-64 -96)"/>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/trash-duotone.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgTrashDuotone(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 32 32" fill="none" {...props}>
|
|
7
|
+
<path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M8.586 3L10.707.879A3 3 0 0112.828 0h6.344a3 3 0 012.121.879L23.414 3H29a2 2 0 110 4H3a2 2 0 110-4h5.586zm3.535-.707A1 1 0 0112.828 2h6.344a1 1 0 01.707.293l.707.707h-9.172l.707-.707z"
|
|
11
|
+
fill="#95999D"
|
|
12
|
+
/>
|
|
13
|
+
<path
|
|
14
|
+
d="M4 8a1 1 0 011-1h22a1 1 0 011 1v22a2 2 0 01-2 2H6a2 2 0 01-2-2V8z"
|
|
15
|
+
fill="#D6D8DA"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default SvgTrashDuotone
|
|
@@ -506,11 +506,13 @@ export const makeOverrides = theme => ({
|
|
|
506
506
|
'& .dialogContentWrapper': {
|
|
507
507
|
flexGrow: 1,
|
|
508
508
|
'&:not(.withActions)': {
|
|
509
|
-
paddingBottom:
|
|
509
|
+
paddingBottom:
|
|
510
|
+
'calc(env(safe-area-inset-bottom) + var(--flagship-bottom-height) + 16px)'
|
|
510
511
|
}
|
|
511
512
|
},
|
|
512
513
|
'& .cozyDialogActions': {
|
|
513
|
-
paddingBottom:
|
|
514
|
+
paddingBottom:
|
|
515
|
+
'calc(env(safe-area-inset-bottom) + var(--flagship-bottom-height) + 16px)'
|
|
514
516
|
}
|
|
515
517
|
}
|
|
516
518
|
},
|