cozy-ui 111.4.0 → 111.6.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/.nvmrc +1 -1
- package/CHANGELOG.md +21 -0
- package/package.json +16 -6
- package/react/AccordionSummary/index.js +1 -1
- package/react/ActionsBar/ResponsiveAction.jsx +3 -3
- package/react/ActionsBar/index.jsx +14 -15
- package/react/ActionsBar/locales/withActionsLocales.jsx +1 -2
- package/react/ActionsMenu/Actions/call.js +3 -3
- package/react/ActionsMenu/Actions/emailTo.js +3 -3
- package/react/ActionsMenu/Actions/helpers.js +1 -0
- package/react/ActionsMenu/Actions/locales/withActionsLocales.jsx +2 -3
- package/react/ActionsMenu/Actions/modify.js +3 -3
- package/react/ActionsMenu/Actions/others.jsx +1 -2
- package/react/ActionsMenu/Actions/print.js +4 -4
- package/react/ActionsMenu/Actions/smsTo.js +3 -3
- package/react/ActionsMenu/Actions/viewInContacts.js +3 -3
- package/react/ActionsMenu/ActionsItems.jsx +6 -6
- package/react/ActionsMenu/ActionsMenuItem.jsx +4 -4
- package/react/ActionsMenu/ActionsMenuMobileHeader.jsx +1 -1
- package/react/ActionsMenu/ActionsMenuWrapper.jsx +4 -4
- package/react/ActionsMenu/index.jsx +2 -2
- package/react/Alert/index.jsx +5 -5
- package/react/AppIcon/index.jsx +4 -5
- package/react/AppLinker/expiringMemoize.js +1 -1
- package/react/AppLinker/index.deprecated.spec.jsx +2 -2
- package/react/AppLinker/index.jsx +3 -3
- package/react/AppLinker/index.spec.jsx +2 -2
- package/react/AppSections/Sections.jsx +9 -13
- package/react/AppSections/categories.spec.js +3 -3
- package/react/AppSections/components/AppsSection.jsx +6 -5
- package/react/AppSections/components/AppsSection.spec.jsx +5 -6
- package/react/AppSections/components/DropdownFilter.jsx +3 -4
- package/react/AppSections/helpers.spec.js +1 -1
- package/react/AppSections/index.spec.jsx +4 -4
- package/react/AppSections/search.js +1 -1
- package/react/AppTile/AppTile.spec.jsx +3 -3
- package/react/AppTile/index.jsx +12 -15
- package/react/AppTitle/index.jsx +3 -2
- package/react/Avatar/index.jsx +4 -4
- package/react/Backdrop/index.js +2 -2
- package/react/Badge/index.jsx +2 -2
- package/react/Banner/index.jsx +4 -5
- package/react/Banner/index.spec.jsx +2 -1
- package/react/BarButton/index.jsx +2 -3
- package/react/BarContextProvider/index.jsx +4 -3
- package/react/BarContextProvider/index.spec.jsx +2 -2
- package/react/BarTitle/index.jsx +2 -3
- package/react/BottomSheet/BottomSheet.jsx +10 -11
- package/react/BottomSheet/BottomSheetHeader.jsx +1 -1
- package/react/BottomSheet/BottomSheetItem.jsx +2 -2
- package/react/BottomSheet/BottomSheetTitle.jsx +3 -3
- package/react/Buttons/index.jsx +3 -4
- package/react/Card/index.jsx +1 -1
- package/react/Checkbox/index.jsx +3 -4
- package/react/Chips/index.jsx +2 -2
- package/react/CipherIcon/index.jsx +6 -5
- package/react/CipherIcon/index.spec.jsx +2 -1
- package/react/Circle/index.jsx +2 -2
- package/react/CircleButton/index.jsx +3 -3
- package/react/CircularChart/CircularChartProgress.jsx +2 -2
- package/react/CircularChart/CircularProgressWithBackground.jsx +2 -2
- package/react/CircularChart/index.jsx +4 -6
- package/react/ContactPicker/index.jsx +4 -3
- package/react/ContactPicker/index.spec.jsx +4 -5
- package/react/ContactsList/ContactRow.jsx +4 -4
- package/react/ContactsList/ContactRow.spec.js +5 -4
- package/react/ContactsList/Contacts/ContactCozy.jsx +1 -1
- package/react/ContactsList/Contacts/ContactEmail.jsx +1 -1
- package/react/ContactsList/Contacts/ContactIdentity.jsx +4 -5
- package/react/ContactsList/Contacts/ContactName.jsx +2 -2
- package/react/ContactsList/Contacts/ContactPhone.jsx +1 -1
- package/react/ContactsList/ContactsList.jsx +6 -6
- package/react/ContactsList/locales/withContactsListLocales.jsx +1 -2
- package/react/ContactsListModal/AddContact/AddContactContent.jsx +5 -6
- package/react/ContactsListModal/AddContact/AddContactDialog.jsx +3 -3
- package/react/ContactsListModal/ContactsListContent.jsx +2 -2
- package/react/ContactsListModal/ContactsListModal.jsx +12 -13
- package/react/ContactsListModal/ContactsListModalWithQuery.jsx +2 -2
- package/react/ContactsListModal/EmptyMessage.jsx +2 -1
- package/react/ContactsListModal/MobileHeader.jsx +4 -4
- package/react/ContactsListModal/index.jsx +2 -2
- package/react/ContactsListModal/withContactsListLocales.jsx +1 -2
- package/react/Counter/index.jsx +1 -1
- package/react/CozyDialogs/ConfirmDialog.jsx +4 -5
- package/react/CozyDialogs/Dialog.jsx +4 -5
- package/react/CozyDialogs/DialogBackButton.jsx +4 -6
- package/react/CozyDialogs/DialogCloseButton.jsx +4 -5
- package/react/CozyDialogs/DialogTransition.jsx +3 -3
- package/react/CozyDialogs/FixedActionsDialog.jsx +4 -5
- package/react/CozyDialogs/FixedDialog.jsx +4 -5
- package/react/CozyDialogs/IllustrationDialog.jsx +4 -5
- package/react/CozyDialogs/PermissionDialog.jsx +4 -4
- package/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.jsx +5 -6
- package/react/CozyDialogs/SpecificDialogs/AuthentificationDialog.jsx +7 -7
- package/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.jsx +6 -7
- package/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.jsx +1 -2
- package/react/CozyDialogs/TopAnchoredDialog.jsx +1 -1
- package/react/CozyDialogs/testing.spec.jsx +1 -2
- package/react/CozyDialogs/useCozyDialog.js +2 -3
- package/react/DateMonthPicker/index.jsx +7 -8
- package/react/DateMonthPicker/index.spec.jsx +2 -2
- package/react/Dialog/DialogEffects.spec.tsx +13 -7
- package/react/Dialog/DialogEffects.ts +4 -5
- package/react/Dialog/index.jsx +2 -2
- package/react/Divider/TextDivider/index.jsx +2 -3
- package/react/Divider/index.jsx +2 -3
- package/react/DropdownButton/index.jsx +3 -3
- package/react/DropdownText/index.jsx +3 -3
- package/react/Empty/index.jsx +2 -3
- package/react/Fab/ExtendableFab.jsx +1 -1
- package/react/Field/index.jsx +5 -5
- package/react/Field/index.spec.js +2 -1
- package/react/Figure/Figure.jsx +3 -2
- package/react/Figure/Figure.spec.jsx +6 -2
- package/react/Figure/FigureBlock.jsx +4 -3
- package/react/FileImageLoader/index.jsx +2 -1
- package/react/FileImageLoader/index.spec.jsx +1 -1
- package/react/FileInput/index.jsx +2 -2
- package/react/FileInput/index.spec.jsx +1 -1
- package/react/FilePath/index.jsx +2 -1
- package/react/FilePathLink/index.jsx +2 -1
- package/react/FilePicker/FilePickerBody.jsx +10 -9
- package/react/FilePicker/FilePickerBodyItem.jsx +10 -12
- package/react/FilePicker/FilePickerBodyItem.spec.jsx +2 -2
- package/react/FilePicker/FilePickerBreadcrumb.jsx +7 -7
- package/react/FilePicker/FilePickerFooter.jsx +3 -4
- package/react/FilePicker/FilePickerFooter.spec.jsx +2 -2
- package/react/FilePicker/FilePickerHeader.jsx +8 -9
- package/react/FilePicker/index.jsx +6 -6
- package/react/Filename/index.jsx +2 -2
- package/react/GhostFileBadge/index.jsx +1 -1
- package/react/Hero/index.jsx +2 -1
- package/react/HistoryRow/index.jsx +3 -4
- package/react/I18n/index.js +2 -1
- package/react/I18n/withLocales.js +1 -1
- package/react/Icon/Sprite.jsx +2 -1
- package/react/Icon/index.jsx +2 -2
- package/react/IconButton/index.jsx +3 -3
- package/react/IconStack/index.jsx +2 -2
- package/react/InfosBadge/index.jsx +1 -1
- package/react/Input/index.jsx +2 -1
- package/react/InputGroup/index.jsx +4 -9
- package/react/IntentDialogOpener/IntentDialogOpener.jsx +2 -2
- package/react/IntentHeader/index.jsx +3 -3
- package/react/IntentIframe/IntentIframe.jsx +6 -13
- package/react/IntentWrapper/index.jsx +3 -3
- package/react/Label/index.jsx +2 -1
- package/react/Labs/CollectionField/index.jsx +4 -5
- package/react/Labs/ExperimentalDialog/index.jsx +1 -1
- package/react/Labs/IconGrid/index.jsx +1 -0
- package/react/Labs/PasswordInput/index.jsx +6 -5
- package/react/Layout/Layout.jsx +3 -2
- package/react/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +5 -6
- package/react/ListItem/ExpandedAttributes/helpers.js +17 -15
- package/react/ListItem/ExpandedAttributes/index.jsx +4 -5
- package/react/ListItem/ListItemBase/Renaming/RenameDialog.jsx +1 -2
- package/react/ListItem/ListItemBase/Renaming/RenameInput.jsx +4 -5
- package/react/ListItem/ListItemBase/index.jsx +10 -11
- package/react/ListItem/ListItemByDoc/index.jsx +3 -3
- package/react/ListItem/ListItemContact/helpers.spec.js +1 -2
- package/react/ListItem/ListItemContact/index.jsx +2 -3
- package/react/ListItem/ListItemContact/useActions.jsx +1 -2
- package/react/ListItem/ListItemFile/ExpirationAnnotation.jsx +1 -2
- package/react/ListItem/ListItemFile/ItemIcon.jsx +4 -4
- package/react/ListItem/ListItemFile/PrimaryText.jsx +1 -1
- package/react/ListItem/ListItemFile/SecondaryText.jsx +2 -3
- package/react/ListItem/ListItemFile/index.jsx +4 -5
- package/react/ListItem/hoc/withListItemLocales.jsx +0 -1
- package/react/ListItem/index.js +4 -4
- package/react/ListItemIcon/index.js +1 -2
- package/react/ListItemText/index.jsx +2 -2
- package/react/ListSubheader/index.js +3 -3
- package/react/LoadMore/index.jsx +3 -2
- package/react/MenuItem/index.js +1 -1
- package/react/MidEllipsis/index.jsx +2 -2
- package/react/MuiCozyTheme/Divider/index.jsx +1 -0
- package/react/MuiCozyTheme/List/index.jsx +1 -0
- package/react/MuiCozyTheme/ListItem/index.jsx +1 -0
- package/react/MuiCozyTheme/ListItemIcon/index.jsx +1 -0
- package/react/MuiCozyTheme/ListItemSecondaryAction/index.jsx +1 -0
- package/react/MuiCozyTheme/index.jsx +2 -2
- package/react/MuiCozyTheme/makeTheme.jsx +6 -7
- package/react/MuiTabs/index.jsx +3 -2
- package/react/Nav/index.jsx +18 -14
- package/react/Nav/locales/withNavLocales.jsx +1 -1
- package/react/NavigationList/index.jsx +5 -4
- package/react/NestedSelect/BottomSheet.jsx +4 -5
- package/react/NestedSelect/ItemRow.jsx +4 -4
- package/react/NestedSelect/Modal.jsx +4 -5
- package/react/NestedSelect/NestedSelect.jsx +6 -6
- package/react/NestedSelect/NestedSelectResponsive.jsx +1 -1
- package/react/OrderedList/index.jsx +3 -2
- package/react/Page/index.jsx +1 -0
- package/react/Panel/index.jsx +1 -1
- package/react/PasswordExample/index.jsx +3 -2
- package/react/PasswordField/index.jsx +5 -6
- package/react/Paywall/MaxAccountsByKonnectorPaywall.jsx +1 -1
- package/react/Paywall/MaxAccountsPaywall.jsx +1 -1
- package/react/Paywall/MaxDaysToCapturePaywall.jsx +1 -1
- package/react/Paywall/MaxPapersPaywall.jsx +1 -1
- package/react/Paywall/OnlyOfficePaywall.jsx +1 -1
- package/react/Paywall/PasswordSharingPaywall.jsx +1 -1
- package/react/Paywall/Paywall.jsx +6 -6
- package/react/Paywall/Paywall.spec.jsx +2 -2
- package/react/Paywall/QuotaPaywall.jsx +1 -1
- package/react/Paywall/index.jsx +1 -3
- package/react/Paywall/locales/withPaywallLocales.jsx +1 -2
- package/react/PieChart/index.jsx +7 -7
- package/react/PointerAlert/index.jsx +4 -5
- package/react/Popup/index.jsx +1 -1
- package/react/Popup/index.spec.jsx +1 -1
- package/react/PopupOpener/index.jsx +1 -1
- package/react/ProgressionBanner/index.jsx +2 -2
- package/react/QualificationGrid/index.jsx +11 -12
- package/react/QualificationGrid/locales/withLocales.jsx +1 -2
- package/react/QualificationItem/index.jsx +2 -2
- package/react/Radios/index.jsx +1 -2
- package/react/SearchBar/index.jsx +8 -8
- package/react/SearchBar/locales/withOnlyLocales.jsx +1 -2
- package/react/SelectBox/ControlDefault.jsx +1 -2
- package/react/SelectBox/SelectBox.jsx +15 -17
- package/react/SelectBox/SelectBoxWithFixedOptions.jsx +2 -2
- package/react/SelectBox/index.jsx +1 -3
- package/react/SelectionBar/SelectionBarAction.jsx +3 -4
- package/react/SelectionBar/SelectionBarMore.jsx +2 -3
- package/react/SelectionBar/index.jsx +7 -8
- package/react/SelectionBar/useMaxActions.jsx +2 -2
- package/react/Sidebar/index.jsx +3 -2
- package/react/Skeletons/ListItemSkeleton.jsx +2 -2
- package/react/Skeletons/ListSkeleton.jsx +2 -3
- package/react/Snackbar/index.jsx +1 -1
- package/react/Spinner/index.jsx +4 -5
- package/react/SquareAppIcon/SquareAppIcon.spec.js +2 -2
- package/react/SquareAppIcon/index.jsx +10 -10
- package/react/Stack/index.jsx +2 -1
- package/react/Stepper/testing.jsx +1 -1
- package/react/Tabs/index.jsx +2 -2
- package/react/TextField/MobileSelect.jsx +12 -10
- package/react/TextField/index.jsx +2 -2
- package/react/Textarea/index.jsx +2 -1
- package/react/Thumbnail/index.jsx +2 -2
- package/react/Tile/index.jsx +4 -3
- package/react/Toggle/index.jsx +3 -3
- package/react/Typography/index.jsx +1 -1
- package/react/UnorderedList/index.jsx +2 -1
- package/react/UploadQueue/index.jsx +11 -12
- package/react/UploadQueue/index.spec.jsx +2 -1
- package/react/Viewer/Footer/BottomSheetContent.jsx +1 -2
- package/react/Viewer/Footer/DownloadButton.jsx +3 -3
- package/react/Viewer/Footer/FooterActionButtons.jsx +1 -1
- package/react/Viewer/Footer/FooterActionButtons.spec.jsx +1 -1
- package/react/Viewer/Footer/FooterContent.jsx +5 -5
- package/react/Viewer/Footer/ForwardButton.jsx +5 -5
- package/react/Viewer/Footer/ForwardButton.spec.jsx +2 -2
- package/react/Viewer/Footer/ForwardOrDownloadButton.jsx +2 -2
- package/react/Viewer/Footer/Sharing.jsx +2 -2
- package/react/Viewer/Footer/helpers.js +1 -0
- package/react/Viewer/NoViewer/DownloadButton.jsx +3 -4
- package/react/Viewer/NoViewer/FileIcon.jsx +2 -2
- package/react/Viewer/NoViewer/NoViewer.jsx +4 -3
- package/react/Viewer/NoViewer/NoViewer.spec.jsx +2 -3
- package/react/Viewer/Panel/ActionMenuDesktop.jsx +4 -4
- package/react/Viewer/Panel/ActionMenuMobile.jsx +6 -6
- package/react/Viewer/Panel/ActionMenuWrapper.jsx +4 -4
- package/react/Viewer/Panel/Certifications.jsx +5 -5
- package/react/Viewer/Panel/PanelContent.jsx +5 -6
- package/react/Viewer/Panel/Qualification.jsx +5 -5
- package/react/Viewer/Panel/QualificationListItemContact.jsx +9 -9
- package/react/Viewer/Panel/QualificationListItemDate.jsx +7 -7
- package/react/Viewer/Panel/QualificationListItemInformation.jsx +7 -7
- package/react/Viewer/Panel/QualificationListItemInformation.spec.jsx +2 -1
- package/react/Viewer/Panel/QualificationListItemOther.jsx +7 -7
- package/react/Viewer/Panel/QualificationListItemText.jsx +1 -1
- package/react/Viewer/Panel/getPanelBlocks.jsx +1 -1
- package/react/Viewer/Viewer.jsx +4 -5
- package/react/Viewer/ViewerContainer.jsx +12 -13
- package/react/Viewer/ViewerInformationsWrapper.jsx +6 -7
- package/react/Viewer/ViewerInformationsWrapper.spec.jsx +1 -1
- package/react/Viewer/ViewerWithCustomPanelAndFooter.jsx +4 -6
- package/react/Viewer/ViewersByFile/AudioViewer.jsx +1 -3
- package/react/Viewer/ViewersByFile/AudioViewer.spec.jsx +2 -4
- package/react/Viewer/ViewersByFile/BlankPaperViewer.jsx +2 -4
- package/react/Viewer/ViewersByFile/ImageViewer.jsx +3 -5
- package/react/Viewer/ViewersByFile/ImageViewer.spec.jsx +3 -5
- package/react/Viewer/ViewersByFile/NoNetworkViewer.jsx +1 -3
- package/react/Viewer/ViewersByFile/OnlyOfficeViewer.jsx +2 -3
- package/react/Viewer/ViewersByFile/PdfJsViewer.jsx +9 -13
- package/react/Viewer/ViewersByFile/PdfJsViewer.spec.jsx +2 -2
- package/react/Viewer/ViewersByFile/PdfMobileViewer.jsx +5 -7
- package/react/Viewer/ViewersByFile/PdfMobileViewer.spec.jsx +2 -3
- package/react/Viewer/ViewersByFile/ShortcutViewer.jsx +4 -4
- package/react/Viewer/ViewersByFile/ShortcutViewer.spec.jsx +3 -4
- package/react/Viewer/ViewersByFile/TextViewer.jsx +5 -7
- package/react/Viewer/ViewersByFile/TextViewer.spec.jsx +3 -5
- package/react/Viewer/ViewersByFile/VideoViewer.jsx +1 -2
- package/react/Viewer/ViewersByFile/VideoViewer.spec.jsx +2 -3
- package/react/Viewer/components/ExpirationAlert.jsx +2 -2
- package/react/Viewer/components/ExpirationAnnotation.jsx +1 -1
- package/react/Viewer/components/Footer.jsx +1 -2
- package/react/Viewer/components/InformationPanel.jsx +1 -1
- package/react/Viewer/components/Navigation.jsx +3 -4
- package/react/Viewer/components/PdfToolbarButton.jsx +1 -1
- package/react/Viewer/components/PrintButton.jsx +6 -6
- package/react/Viewer/components/Toolbar.jsx +12 -14
- package/react/Viewer/components/ToolbarFilePath.jsx +1 -2
- package/react/Viewer/components/ViewerByFile.jsx +9 -11
- package/react/Viewer/components/ViewerControls.jsx +11 -17
- package/react/Viewer/components/ViewerControls.spec.jsx +2 -2
- package/react/Viewer/components/ViewerSpinner.jsx +1 -1
- package/react/Viewer/helpers.js +0 -2
- package/react/Viewer/hoc/withFileUrl.jsx +2 -2
- package/react/Viewer/hoc/withViewerLocales.jsx +0 -1
- package/react/Viewer/index.jsx +2 -6
- package/react/Wizard/index.jsx +4 -4
- package/react/deprecated/ActionMenu/ActionMenuEffects.ts +3 -3
- package/react/deprecated/ActionMenu/ActionMenuHeader.jsx +2 -2
- package/react/deprecated/ActionMenu/ActionMenuItem.jsx +4 -5
- package/react/deprecated/ActionMenu/ActionMenuItemWrapper.jsx +4 -4
- package/react/deprecated/ActionMenu/ActionMenuRadio.jsx +1 -2
- package/react/deprecated/ActionMenu/ActionMenuWrapper.jsx +3 -4
- package/react/deprecated/ActionMenu/Actions/ActionsItems.jsx +6 -6
- package/react/deprecated/ActionMenu/Actions/call.js +2 -2
- package/react/deprecated/ActionMenu/Actions/emailTo.js +2 -2
- package/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.jsx +1 -2
- package/react/deprecated/ActionMenu/Actions/modify.js +2 -2
- package/react/deprecated/ActionMenu/Actions/smsTo.js +2 -2
- package/react/deprecated/ActionMenu/Actions/viewInContacts.js +2 -2
- package/react/deprecated/ActionMenu/NotInlineWrapper.jsx +1 -1
- package/react/deprecated/ActionMenu/index.jsx +7 -9
- package/react/deprecated/ActionMenu/index.spec.jsx +10 -22
- package/react/deprecated/Alerter/Alert.jsx +3 -4
- package/react/deprecated/Alerter/alerter.spec.js +4 -17
- package/react/deprecated/Alerter/index.jsx +3 -2
- package/react/deprecated/BottomDrawer/index.jsx +4 -4
- package/react/deprecated/Button/index.jsx +3 -3
- package/react/deprecated/ButtonAction/index.jsx +2 -1
- package/react/deprecated/Chip/index.jsx +1 -0
- package/react/deprecated/CompositeRow/index.jsx +3 -4
- package/react/deprecated/GridItem/index.jsx +4 -3
- package/react/deprecated/Infos/index.jsx +5 -12
- package/react/deprecated/InfosCarrousel/index.jsx +4 -6
- package/react/deprecated/InfosCarrousel/index.spec.jsx +4 -8
- package/react/deprecated/InlineCard/index.jsx +1 -1
- package/react/deprecated/IntentModal/IntentModal.jsx +4 -5
- package/react/deprecated/IntentOpener/IntentOpener.jsx +2 -2
- package/react/deprecated/Media/Media.jsx +3 -2
- package/react/deprecated/Menus/index.js +4 -4
- package/react/deprecated/Modal/ModalBackButton.jsx +3 -3
- package/react/deprecated/Modal/ModalButtons.jsx +2 -1
- package/react/deprecated/Modal/ModalContent.jsx +3 -2
- package/react/deprecated/Modal/ModalCross.jsx +3 -4
- package/react/deprecated/Modal/ModalEffects.ts +3 -3
- package/react/deprecated/Modal/ModalFooter.jsx +2 -1
- package/react/deprecated/Modal/ModalHeader.jsx +2 -1
- package/react/deprecated/Modal/ModalSection.jsx +2 -1
- package/react/deprecated/Modal/index.jsx +13 -12
- package/react/deprecated/Modal/index.spec.jsx +3 -6
- package/react/deprecated/NarrowContent/index.jsx +2 -1
- package/react/deprecated/Overlay/index.jsx +3 -2
- package/react/deprecated/PercentageBar/index.jsx +3 -2
- package/react/deprecated/PercentageLine/index.jsx +3 -2
- package/react/deprecated/PushClientButton/index.jsx +3 -4
- package/react/deprecated/PushClientButton/index.spec.jsx +1 -2
- package/react/deprecated/QuotaAlert/index.jsx +1 -1
- package/react/deprecated/Radio/index.jsx +3 -3
- package/react/deprecated/Radio/index.spec.jsx +3 -4
- package/react/deprecated/RaisedList/index.js +1 -1
- package/react/deprecated/Table/index.jsx +1 -1
- package/react/deprecated/ViewStack/ModalStack.jsx +2 -1
- package/react/deprecated/ViewStack/ViewStack.jsx +2 -1
- package/react/deprecated/ViewStack/example.jsx +1 -0
- package/react/deprecated/ViewStack/index.spec.jsx +6 -9
- package/react/examples.spec.jsx +2 -1
- package/react/helpers/appDataset.spec.js +1 -0
- package/react/helpers/tracker.jsx +1 -0
- package/react/helpers/tracker.spec.js +1 -1
- package/react/helpers/withBreakpoints.jsx +33 -29
- package/react/hooks/useBrowserOffline.js +9 -6
- package/react/hooks/useBrowserOffline.spec.js +2 -1
- package/react/hooks/useConfirmExit/index.jsx +5 -6
- package/react/hooks/useConfirmExit/index.spec.js +8 -5
- package/react/hooks/useCycle.spec.jsx +1 -0
- package/react/hooks/useEventListener.js +1 -0
- package/react/hooks/useEventListener.spec.js +2 -1
- package/react/hooks/usePeriodicRender.spec.js +2 -1
- package/react/hooks/useRealtime.spec.js +2 -1
- package/react/hooks/useScroll.jsx +1 -1
- package/react/hooks/useScroll.spec.jsx +1 -0
- package/react/hooks/useSetFlagshipUi/helpers.js +0 -1
- package/react/hooks/useSetFlagshipUi/useSetFlagshipUI.spec.ts +3 -1
- package/react/hooks/useSetFlagshipUi/useSetFlagshipUI.ts +3 -3
- package/react/legacy/Breadcrumbs/index.jsx +4 -5
- package/react/providers/Alert/index.jsx +1 -1
- package/react/providers/Breakpoints/index.jsx +1 -1
- package/react/providers/CozyTheme/CozyThemeWithQuery.jsx +1 -1
- package/react/providers/CozyTheme/DumbCozyTheme.jsx +6 -7
- package/react/providers/CozyTheme/index.jsx +2 -2
- package/react/providers/I18n/createUseI18n.jsx +2 -2
- package/react/providers/I18n/format.jsx +7 -8
- package/react/providers/I18n/helpers.js +2 -2
- package/react/providers/I18n/index.jsx +2 -2
- package/react/providers/I18n/index.spec.jsx +3 -2
- package/react/providers/I18n/translate.jsx +3 -2
- package/react/providers/I18n/withLocales.jsx +5 -3
- package/react/providers/I18n/withLocales.spec.jsx +1 -0
- package/react/providers/I18n/withOnlyLocales.jsx +4 -2
- package/react/providers/Intent/index.jsx +1 -1
- package/react/utils/color.js +1 -4
- package/react/utils.jsx +14 -16
- package/scripts/screenshots/prepares.js +4 -1
- package/scripts/screenshots.js +1 -1
- package/transpiled/react/AccordionSummary/index.js +1 -1
- package/transpiled/react/ActionsBar/ResponsiveAction.js +3 -3
- package/transpiled/react/ActionsBar/index.js +10 -10
- package/transpiled/react/ActionsBar/locales/withActionsLocales.js +1 -1
- package/transpiled/react/ActionsMenu/Actions/call.js +3 -3
- package/transpiled/react/ActionsMenu/Actions/emailTo.js +3 -3
- package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.js +2 -2
- package/transpiled/react/ActionsMenu/Actions/modify.js +3 -3
- package/transpiled/react/ActionsMenu/Actions/others.js +1 -1
- package/transpiled/react/ActionsMenu/Actions/print.js +4 -4
- package/transpiled/react/ActionsMenu/Actions/smsTo.js +3 -3
- package/transpiled/react/ActionsMenu/Actions/viewInContacts.js +3 -3
- package/transpiled/react/ActionsMenu/ActionsItems.js +2 -2
- package/transpiled/react/ActionsMenu/ActionsMenuItem.js +4 -4
- package/transpiled/react/ActionsMenu/ActionsMenuMobileHeader.js +1 -1
- package/transpiled/react/ActionsMenu/ActionsMenuWrapper.js +4 -4
- package/transpiled/react/ActionsMenu/index.js +2 -2
- package/transpiled/react/Alert/index.js +5 -5
- package/transpiled/react/AppIcon/index.js +2 -2
- package/transpiled/react/AppLinker/index.js +2 -2
- package/transpiled/react/AppSections/Sections.js +11 -11
- package/transpiled/react/AppSections/components/AppsSection.js +6 -6
- package/transpiled/react/AppSections/components/DropdownFilter.js +5 -5
- package/transpiled/react/AppSections/search.js +1 -1
- package/transpiled/react/AppTile/index.js +12 -12
- package/transpiled/react/AppTitle/index.js +2 -2
- package/transpiled/react/Avatar/index.js +4 -4
- package/transpiled/react/Backdrop/index.js +2 -2
- package/transpiled/react/Badge/index.js +2 -2
- package/transpiled/react/Banner/index.js +5 -5
- package/transpiled/react/BarButton/index.js +2 -2
- package/transpiled/react/BarContextProvider/index.js +3 -3
- package/transpiled/react/BarTitle/index.js +2 -2
- package/transpiled/react/BottomSheet/BottomSheet.js +10 -10
- package/transpiled/react/BottomSheet/BottomSheetHeader.js +1 -1
- package/transpiled/react/BottomSheet/BottomSheetItem.js +2 -2
- package/transpiled/react/BottomSheet/BottomSheetTitle.js +3 -3
- package/transpiled/react/Buttons/index.js +3 -3
- package/transpiled/react/Card/index.js +1 -1
- package/transpiled/react/Checkbox/index.js +3 -3
- package/transpiled/react/Chips/index.js +2 -2
- package/transpiled/react/CipherIcon/index.js +4 -4
- package/transpiled/react/Circle/index.js +2 -2
- package/transpiled/react/CircleButton/index.js +3 -3
- package/transpiled/react/CircularChart/CircularChartProgress.js +2 -2
- package/transpiled/react/CircularChart/CircularProgressWithBackground.js +2 -2
- package/transpiled/react/CircularChart/index.js +2 -2
- package/transpiled/react/ContactPicker/index.js +3 -3
- package/transpiled/react/ContactsList/ContactRow.js +4 -4
- 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 +2 -2
- package/transpiled/react/ContactsList/Contacts/ContactName.js +2 -2
- package/transpiled/react/ContactsList/Contacts/ContactPhone.js +1 -1
- package/transpiled/react/ContactsList/ContactsList.js +6 -6
- package/transpiled/react/ContactsList/locales/withContactsListLocales.js +1 -1
- package/transpiled/react/ContactsListModal/AddContact/AddContactContent.js +7 -7
- package/transpiled/react/ContactsListModal/AddContact/AddContactDialog.js +3 -3
- package/transpiled/react/ContactsListModal/ContactsListContent.js +2 -2
- package/transpiled/react/ContactsListModal/ContactsListModal.js +14 -14
- package/transpiled/react/ContactsListModal/ContactsListModalWithQuery.js +2 -2
- package/transpiled/react/ContactsListModal/EmptyMessage.js +1 -1
- package/transpiled/react/ContactsListModal/MobileHeader.js +4 -4
- package/transpiled/react/ContactsListModal/index.js +2 -2
- package/transpiled/react/ContactsListModal/withContactsListLocales.js +1 -1
- package/transpiled/react/Counter/index.js +1 -1
- package/transpiled/react/CozyDialogs/ConfirmDialog.js +4 -4
- package/transpiled/react/CozyDialogs/Dialog.js +4 -4
- package/transpiled/react/CozyDialogs/DialogBackButton.js +5 -5
- package/transpiled/react/CozyDialogs/DialogCloseButton.js +6 -6
- package/transpiled/react/CozyDialogs/DialogTransition.js +3 -3
- package/transpiled/react/CozyDialogs/FixedActionsDialog.js +4 -4
- package/transpiled/react/CozyDialogs/FixedDialog.js +4 -4
- package/transpiled/react/CozyDialogs/IllustrationDialog.js +4 -4
- package/transpiled/react/CozyDialogs/PermissionDialog.js +4 -4
- package/transpiled/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.js +5 -5
- package/transpiled/react/CozyDialogs/SpecificDialogs/AuthentificationDialog.js +6 -6
- package/transpiled/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.js +5 -5
- package/transpiled/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.js +1 -1
- package/transpiled/react/CozyDialogs/TopAnchoredDialog.js +1 -1
- package/transpiled/react/CozyDialogs/useCozyDialog.js +2 -2
- package/transpiled/react/DateMonthPicker/index.js +8 -8
- package/transpiled/react/Dialog/DialogEffects.d.ts +1 -1
- package/transpiled/react/Dialog/DialogEffects.js +3 -4
- package/transpiled/react/Dialog/index.js +2 -2
- package/transpiled/react/Divider/TextDivider/index.js +2 -2
- package/transpiled/react/Divider/index.js +2 -2
- package/transpiled/react/DropdownButton/index.js +3 -3
- package/transpiled/react/DropdownText/index.js +3 -3
- package/transpiled/react/Empty/index.js +3 -3
- package/transpiled/react/Fab/ExtendableFab.js +1 -1
- package/transpiled/react/Field/index.js +8 -8
- package/transpiled/react/Figure/Figure.js +2 -2
- package/transpiled/react/Figure/FigureBlock.js +3 -3
- package/transpiled/react/FileImageLoader/index.js +1 -1
- package/transpiled/react/FileInput/index.js +2 -2
- package/transpiled/react/FilePath/index.js +1 -1
- package/transpiled/react/FilePathLink/index.js +1 -1
- package/transpiled/react/FilePicker/FilePickerBody.js +4 -4
- package/transpiled/react/FilePicker/FilePickerBodyItem.js +14 -14
- package/transpiled/react/FilePicker/FilePickerBreadcrumb.js +5 -5
- package/transpiled/react/FilePicker/FilePickerFooter.js +3 -3
- package/transpiled/react/FilePicker/FilePickerHeader.js +8 -8
- package/transpiled/react/FilePicker/index.js +6 -6
- package/transpiled/react/Filename/index.js +2 -2
- package/transpiled/react/GhostFileBadge/index.js +1 -1
- package/transpiled/react/Hero/index.js +1 -1
- package/transpiled/react/HistoryRow/index.js +7 -7
- package/transpiled/react/I18n/index.js +1 -1
- package/transpiled/react/I18n/withLocales.js +1 -1
- package/transpiled/react/Icon/Sprite.js +1 -1
- package/transpiled/react/Icon/index.js +2 -2
- package/transpiled/react/IconButton/index.js +3 -3
- package/transpiled/react/IconStack/index.js +2 -2
- package/transpiled/react/InfosBadge/index.js +1 -1
- package/transpiled/react/Input/index.js +1 -1
- package/transpiled/react/InputGroup/index.js +1 -1
- package/transpiled/react/IntentDialogOpener/IntentDialogOpener.js +2 -2
- package/transpiled/react/IntentHeader/index.js +2 -2
- package/transpiled/react/IntentIframe/IntentIframe.js +4 -4
- package/transpiled/react/IntentWrapper/index.js +2 -2
- package/transpiled/react/Label/index.js +1 -1
- package/transpiled/react/Labs/CollectionField/index.js +8 -8
- package/transpiled/react/Labs/ExperimentalDialog/index.js +1 -1
- package/transpiled/react/Labs/PasswordInput/index.js +5 -5
- package/transpiled/react/Layout/Layout.js +2 -2
- package/transpiled/react/ListItem/ExpandedAttributes/ExpandedAttribute.js +5 -5
- package/transpiled/react/ListItem/ExpandedAttributes/index.js +4 -4
- package/transpiled/react/ListItem/ListItemBase/Renaming/RenameDialog.js +1 -1
- package/transpiled/react/ListItem/ListItemBase/Renaming/RenameInput.js +4 -4
- package/transpiled/react/ListItem/ListItemBase/index.js +10 -10
- package/transpiled/react/ListItem/ListItemByDoc/index.js +3 -3
- package/transpiled/react/ListItem/ListItemContact/index.js +2 -2
- package/transpiled/react/ListItem/ListItemContact/useActions.js +1 -1
- package/transpiled/react/ListItem/ListItemFile/ExpirationAnnotation.js +1 -1
- package/transpiled/react/ListItem/ListItemFile/ItemIcon.js +4 -4
- package/transpiled/react/ListItem/ListItemFile/PrimaryText.js +1 -1
- package/transpiled/react/ListItem/ListItemFile/SecondaryText.js +2 -2
- package/transpiled/react/ListItem/ListItemFile/index.js +4 -4
- package/transpiled/react/ListItem/index.js +4 -4
- package/transpiled/react/ListItemIcon/index.js +1 -1
- package/transpiled/react/ListItemText/index.js +2 -2
- package/transpiled/react/ListSubheader/index.js +3 -3
- package/transpiled/react/LoadMore/index.js +2 -2
- package/transpiled/react/MenuItem/index.js +1 -1
- package/transpiled/react/MidEllipsis/index.js +2 -2
- package/transpiled/react/MuiCozyTheme/index.js +2 -2
- package/transpiled/react/MuiCozyTheme/makeTheme.js +6 -6
- package/transpiled/react/MuiTabs/index.js +2 -2
- package/transpiled/react/Nav/index.js +4 -4
- package/transpiled/react/Nav/locales/withNavLocales.js +1 -1
- package/transpiled/react/NavigationList/index.js +6 -6
- package/transpiled/react/NestedSelect/BottomSheet.js +4 -4
- package/transpiled/react/NestedSelect/ItemRow.js +4 -4
- package/transpiled/react/NestedSelect/Modal.js +6 -6
- package/transpiled/react/NestedSelect/NestedSelect.js +6 -6
- package/transpiled/react/NestedSelect/NestedSelectResponsive.js +1 -1
- package/transpiled/react/OrderedList/index.js +2 -2
- package/transpiled/react/Panel/index.js +1 -1
- package/transpiled/react/PasswordExample/index.js +2 -2
- package/transpiled/react/PasswordField/index.js +8 -8
- package/transpiled/react/Paywall/MaxAccountsByKonnectorPaywall.js +1 -1
- package/transpiled/react/Paywall/MaxAccountsPaywall.js +1 -1
- package/transpiled/react/Paywall/MaxDaysToCapturePaywall.js +1 -1
- package/transpiled/react/Paywall/MaxPapersPaywall.js +1 -1
- package/transpiled/react/Paywall/OnlyOfficePaywall.js +1 -1
- package/transpiled/react/Paywall/PasswordSharingPaywall.js +1 -1
- package/transpiled/react/Paywall/Paywall.js +6 -6
- package/transpiled/react/Paywall/QuotaPaywall.js +1 -1
- package/transpiled/react/Paywall/locales/withPaywallLocales.js +1 -1
- package/transpiled/react/PieChart/index.js +7 -7
- package/transpiled/react/PointerAlert/index.js +4 -4
- package/transpiled/react/Popup/index.js +1 -1
- package/transpiled/react/PopupOpener/index.js +2 -2
- package/transpiled/react/ProgressionBanner/index.js +2 -2
- package/transpiled/react/QualificationGrid/index.js +11 -11
- package/transpiled/react/QualificationGrid/locales/withLocales.js +1 -1
- package/transpiled/react/QualificationItem/index.js +2 -2
- package/transpiled/react/Radios/index.js +1 -1
- package/transpiled/react/SearchBar/index.js +8 -8
- package/transpiled/react/SearchBar/locales/withOnlyLocales.js +1 -1
- package/transpiled/react/SelectBox/ControlDefault.js +1 -1
- package/transpiled/react/SelectBox/SelectBox.js +8 -8
- package/transpiled/react/SelectBox/SelectBoxWithFixedOptions.js +2 -2
- package/transpiled/react/SelectionBar/SelectionBarAction.js +6 -6
- package/transpiled/react/SelectionBar/SelectionBarMore.js +6 -6
- package/transpiled/react/SelectionBar/index.js +9 -9
- package/transpiled/react/SelectionBar/useMaxActions.js +2 -2
- package/transpiled/react/Sidebar/index.js +2 -2
- package/transpiled/react/Skeletons/ListItemSkeleton.js +2 -2
- package/transpiled/react/Skeletons/ListSkeleton.js +2 -2
- package/transpiled/react/Snackbar/index.js +1 -1
- package/transpiled/react/Spinner/index.js +6 -6
- package/transpiled/react/SquareAppIcon/index.js +16 -16
- package/transpiled/react/Stack/index.js +1 -1
- package/transpiled/react/Stepper/testing.js +1 -1
- package/transpiled/react/Tabs/index.js +2 -2
- package/transpiled/react/TextField/MobileSelect.js +5 -5
- package/transpiled/react/TextField/index.js +2 -2
- package/transpiled/react/Textarea/index.js +1 -1
- package/transpiled/react/Thumbnail/index.js +2 -2
- package/transpiled/react/Tile/index.js +3 -3
- package/transpiled/react/Toggle/index.js +2 -2
- package/transpiled/react/Typography/index.js +1 -1
- package/transpiled/react/UnorderedList/index.js +1 -1
- package/transpiled/react/UploadQueue/index.js +37 -37
- package/transpiled/react/Viewer/Footer/BottomSheetContent.js +1 -1
- package/transpiled/react/Viewer/Footer/DownloadButton.js +3 -3
- package/transpiled/react/Viewer/Footer/FooterActionButtons.js +1 -1
- package/transpiled/react/Viewer/Footer/FooterContent.js +5 -5
- package/transpiled/react/Viewer/Footer/ForwardButton.js +5 -5
- package/transpiled/react/Viewer/Footer/ForwardOrDownloadButton.js +2 -2
- package/transpiled/react/Viewer/Footer/Sharing.js +2 -2
- package/transpiled/react/Viewer/NoViewer/DownloadButton.js +3 -3
- package/transpiled/react/Viewer/NoViewer/FileIcon.js +2 -2
- package/transpiled/react/Viewer/NoViewer/NoViewer.js +3 -3
- package/transpiled/react/Viewer/Panel/ActionMenuDesktop.js +3 -3
- package/transpiled/react/Viewer/Panel/ActionMenuMobile.js +6 -6
- package/transpiled/react/Viewer/Panel/ActionMenuWrapper.js +4 -4
- package/transpiled/react/Viewer/Panel/Certifications.js +5 -5
- package/transpiled/react/Viewer/Panel/PanelContent.js +5 -5
- package/transpiled/react/Viewer/Panel/Qualification.js +5 -5
- package/transpiled/react/Viewer/Panel/QualificationListItemContact.js +9 -9
- package/transpiled/react/Viewer/Panel/QualificationListItemDate.js +7 -7
- package/transpiled/react/Viewer/Panel/QualificationListItemInformation.js +7 -7
- package/transpiled/react/Viewer/Panel/QualificationListItemOther.js +7 -7
- package/transpiled/react/Viewer/Panel/QualificationListItemText.js +1 -1
- package/transpiled/react/Viewer/Panel/getPanelBlocks.js +1 -1
- package/transpiled/react/Viewer/Viewer.js +4 -4
- package/transpiled/react/Viewer/ViewerContainer.js +12 -12
- package/transpiled/react/Viewer/ViewerInformationsWrapper.js +6 -6
- package/transpiled/react/Viewer/ViewerWithCustomPanelAndFooter.js +4 -4
- package/transpiled/react/Viewer/ViewersByFile/AudioViewer.js +4 -4
- package/transpiled/react/Viewer/ViewersByFile/BlankPaperViewer.js +6 -6
- package/transpiled/react/Viewer/ViewersByFile/ImageViewer.js +3 -3
- package/transpiled/react/Viewer/ViewersByFile/NoNetworkViewer.js +4 -4
- package/transpiled/react/Viewer/ViewersByFile/OnlyOfficeViewer.js +2 -2
- package/transpiled/react/Viewer/ViewersByFile/PdfJsViewer.js +9 -9
- package/transpiled/react/Viewer/ViewersByFile/PdfMobileViewer.js +5 -5
- package/transpiled/react/Viewer/ViewersByFile/ShortcutViewer.js +3 -3
- package/transpiled/react/Viewer/ViewersByFile/TextViewer.js +7 -7
- package/transpiled/react/Viewer/ViewersByFile/VideoViewer.js +1 -1
- package/transpiled/react/Viewer/components/ExpirationAlert.js +2 -2
- package/transpiled/react/Viewer/components/ExpirationAnnotation.js +1 -1
- package/transpiled/react/Viewer/components/Footer.js +1 -1
- package/transpiled/react/Viewer/components/InformationPanel.js +1 -1
- package/transpiled/react/Viewer/components/Navigation.js +4 -4
- package/transpiled/react/Viewer/components/PdfToolbarButton.js +1 -1
- package/transpiled/react/Viewer/components/PrintButton.js +5 -5
- package/transpiled/react/Viewer/components/Toolbar.js +15 -15
- package/transpiled/react/Viewer/components/ToolbarFilePath.js +1 -1
- package/transpiled/react/Viewer/components/ViewerByFile.js +9 -9
- package/transpiled/react/Viewer/components/ViewerControls.js +8 -8
- package/transpiled/react/Viewer/components/ViewerSpinner.js +1 -1
- package/transpiled/react/Viewer/hoc/withFileUrl.js +2 -2
- package/transpiled/react/Wizard/index.js +8 -7
- package/transpiled/react/deprecated/ActionMenu/ActionMenuEffects.js +3 -3
- package/transpiled/react/deprecated/ActionMenu/ActionMenuHeader.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/ActionMenuItem.js +4 -4
- package/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper.js +4 -4
- package/transpiled/react/deprecated/ActionMenu/ActionMenuRadio.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/ActionMenuWrapper.js +3 -3
- package/transpiled/react/deprecated/ActionMenu/Actions/ActionsItems.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/Actions/call.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/Actions/emailTo.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/modify.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/Actions/smsTo.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/Actions/viewInContacts.js +2 -2
- package/transpiled/react/deprecated/ActionMenu/NotInlineWrapper.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/index.js +7 -7
- package/transpiled/react/deprecated/Alerter/Alert.js +3 -3
- package/transpiled/react/deprecated/Alerter/index.js +2 -2
- package/transpiled/react/deprecated/BottomDrawer/index.js +2 -2
- package/transpiled/react/deprecated/Button/index.js +1 -1
- package/transpiled/react/deprecated/ButtonAction/index.js +1 -1
- package/transpiled/react/deprecated/CompositeRow/index.js +3 -3
- package/transpiled/react/deprecated/GridItem/index.js +3 -3
- package/transpiled/react/deprecated/Infos/index.js +8 -8
- package/transpiled/react/deprecated/InfosCarrousel/index.js +4 -4
- package/transpiled/react/deprecated/InlineCard/index.js +1 -1
- package/transpiled/react/deprecated/IntentModal/IntentModal.js +3 -3
- package/transpiled/react/deprecated/IntentOpener/IntentOpener.js +2 -2
- package/transpiled/react/deprecated/Media/Media.js +2 -2
- package/transpiled/react/deprecated/Menus/index.js +4 -4
- package/transpiled/react/deprecated/Modal/ModalBackButton.js +2 -2
- package/transpiled/react/deprecated/Modal/ModalButtons.js +1 -1
- package/transpiled/react/deprecated/Modal/ModalContent.js +2 -2
- package/transpiled/react/deprecated/Modal/ModalCross.js +5 -5
- package/transpiled/react/deprecated/Modal/ModalEffects.js +3 -3
- package/transpiled/react/deprecated/Modal/ModalFooter.js +1 -1
- package/transpiled/react/deprecated/Modal/ModalHeader.js +1 -1
- package/transpiled/react/deprecated/Modal/ModalSection.js +1 -1
- package/transpiled/react/deprecated/Modal/index.js +14 -14
- package/transpiled/react/deprecated/NarrowContent/index.js +1 -1
- package/transpiled/react/deprecated/Overlay/index.js +4 -4
- package/transpiled/react/deprecated/PercentageBar/index.js +2 -2
- package/transpiled/react/deprecated/PercentageLine/index.js +2 -2
- package/transpiled/react/deprecated/PushClientButton/index.js +4 -4
- package/transpiled/react/deprecated/QuotaAlert/index.js +1 -1
- package/transpiled/react/deprecated/Radio/index.js +2 -2
- package/transpiled/react/deprecated/RaisedList/index.js +1 -1
- package/transpiled/react/deprecated/Table/index.js +1 -1
- package/transpiled/react/deprecated/ViewStack/ModalStack.js +1 -1
- package/transpiled/react/deprecated/ViewStack/ViewStack.js +2 -2
- package/transpiled/react/helpers/withBreakpoints.js +1 -1
- package/transpiled/react/hooks/useConfirmExit/index.js +5 -5
- package/transpiled/react/hooks/useScroll.js +1 -1
- package/transpiled/react/hooks/useSetFlagshipUi/helpers.d.ts +0 -1
- package/transpiled/react/hooks/useSetFlagshipUi/helpers.js +0 -1
- package/transpiled/react/hooks/useSetFlagshipUi/useSetFlagshipUI.js +3 -3
- package/transpiled/react/legacy/Breadcrumbs/index.js +5 -5
- package/transpiled/react/providers/Alert/index.js +1 -1
- package/transpiled/react/providers/Breakpoints/index.js +1 -1
- package/transpiled/react/providers/CozyTheme/CozyThemeWithQuery.js +1 -1
- package/transpiled/react/providers/CozyTheme/DumbCozyTheme.js +4 -4
- package/transpiled/react/providers/CozyTheme/index.js +2 -2
- package/transpiled/react/providers/I18n/createUseI18n.js +2 -2
- package/transpiled/react/providers/I18n/format.js +1 -1
- package/transpiled/react/providers/I18n/helpers.js +2 -2
- package/transpiled/react/providers/I18n/index.js +2 -2
- package/transpiled/react/providers/I18n/withLocales.js +1 -1
- package/transpiled/react/providers/Intent/index.js +1 -1
- package/transpiled/react/stylesheet.css +1 -1419
package/react/Snackbar/index.jsx
CHANGED
package/react/Spinner/index.jsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import cx from 'classnames'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React from 'react'
|
|
4
4
|
|
|
5
|
+
import styles from './styles.styl'
|
|
5
6
|
import Icon from '../Icon'
|
|
7
|
+
import SpinnerIcon from '../Icons/Spinner'
|
|
6
8
|
import Typography from '../Typography'
|
|
7
9
|
import { translate } from '../providers/I18n'
|
|
8
|
-
import SpinnerIcon from '../Icons/Spinner'
|
|
9
|
-
|
|
10
|
-
import styles from './styles.styl'
|
|
11
10
|
|
|
12
11
|
export const Spinner = ({
|
|
13
12
|
t,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* eslint-env jest */
|
|
2
2
|
|
|
3
|
-
import React from 'react'
|
|
4
3
|
import { render } from '@testing-library/react'
|
|
4
|
+
import React from 'react'
|
|
5
5
|
|
|
6
6
|
import CozyClient from 'cozy-client'
|
|
7
7
|
|
|
8
|
+
import SquareAppIcon from '.'
|
|
8
9
|
import Icon from '../Icon'
|
|
9
10
|
import CozyIcon from '../Icons/Cozy'
|
|
10
11
|
import DemoProvider from '../providers/DemoProvider'
|
|
11
|
-
import SquareAppIcon from '.'
|
|
12
12
|
|
|
13
13
|
const appMock = {
|
|
14
14
|
slug: 'test',
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react'
|
|
2
1
|
import cx from 'classnames'
|
|
3
|
-
import PropTypes from 'prop-types'
|
|
4
2
|
import get from 'lodash/get'
|
|
3
|
+
import PropTypes from 'prop-types'
|
|
4
|
+
import React, { useEffect, useState } from 'react'
|
|
5
|
+
|
|
6
|
+
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
5
7
|
|
|
8
|
+
import styles from './styles.styl'
|
|
6
9
|
import AppIcon from '../AppIcon'
|
|
10
|
+
import { nameToColor } from '../Avatar/helpers'
|
|
7
11
|
import Badge from '../Badge'
|
|
8
12
|
import Icon from '../Icon'
|
|
9
13
|
import IconCheckAnimated from '../Icons/IconCheckAnimated'
|
|
10
|
-
import InfosBadge from '../InfosBadge'
|
|
11
|
-
import Spinner from '../Spinner'
|
|
12
14
|
import SvgIconCrossAnimated from '../Icons/IconCrossAnimated'
|
|
13
|
-
import Typography from '../Typography'
|
|
14
15
|
import iconOut from '../Icons/LinkOut'
|
|
15
16
|
import iconPlus from '../Icons/Plus'
|
|
16
17
|
import iconWarning from '../Icons/WarningCircle'
|
|
17
|
-
import
|
|
18
|
-
import
|
|
18
|
+
import InfosBadge from '../InfosBadge'
|
|
19
|
+
import Spinner from '../Spinner'
|
|
20
|
+
import Typography from '../Typography'
|
|
19
21
|
import CozyTheme, { useCozyTheme } from '../providers/CozyTheme'
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import styles from './styles.styl'
|
|
22
|
+
import { alpha, makeStyles } from '../styles'
|
|
23
23
|
|
|
24
24
|
const useStyles = makeStyles(theme => ({
|
|
25
25
|
name: {
|
package/react/Stack/index.jsx
CHANGED
package/react/Tabs/index.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import MuiTabs from '@material-ui/core/Tabs'
|
|
4
2
|
import cx from 'classnames'
|
|
3
|
+
import PropTypes from 'prop-types'
|
|
4
|
+
import React, { forwardRef } from 'react'
|
|
5
5
|
|
|
6
6
|
import useBreakpoints from '../providers/Breakpoints'
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React, { forwardRef, useEffect, useState } from 'react'
|
|
2
|
-
import merge from 'lodash/merge'
|
|
3
1
|
import MuiTextField from '@material-ui/core/TextField'
|
|
2
|
+
import merge from 'lodash/merge'
|
|
4
3
|
import PropTypes from 'prop-types'
|
|
4
|
+
import React, { forwardRef, useEffect, useState } from 'react'
|
|
5
5
|
|
|
6
|
+
import ActionsMenuItem from '../ActionsMenu/ActionsMenuItem'
|
|
7
|
+
import ActionsMenuWrapper from '../ActionsMenu/ActionsMenuWrapper'
|
|
6
8
|
import Icon from '../Icon'
|
|
7
9
|
import BottomIcon from '../Icons/Bottom'
|
|
8
10
|
import InputAdornment from '../InputAdornment'
|
|
9
|
-
import ListItemText from '../ListItemText'
|
|
10
11
|
import ListItemIcon from '../ListItemIcon'
|
|
12
|
+
import ListItemText from '../ListItemText'
|
|
11
13
|
import Radio from '../Radios'
|
|
12
|
-
import ActionsMenuWrapper from '../ActionsMenu/ActionsMenuWrapper'
|
|
13
|
-
import ActionsMenuItem from '../ActionsMenu/ActionsMenuItem'
|
|
14
14
|
|
|
15
15
|
const MobileSelect = forwardRef(
|
|
16
16
|
(
|
|
@@ -31,11 +31,13 @@ const MobileSelect = forwardRef(
|
|
|
31
31
|
onClick?.()
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const handleItemClick =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
const handleItemClick =
|
|
35
|
+
({ value, children, onClick }) =>
|
|
36
|
+
ev => {
|
|
37
|
+
onClick?.(merge({}, ev, { target: { value } }))
|
|
38
|
+
setState({ label: children, value })
|
|
39
|
+
onChange?.({ target: { value } })
|
|
40
|
+
}
|
|
39
41
|
|
|
40
42
|
const handleClose = () => {
|
|
41
43
|
setShowDrawer(false)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react'
|
|
2
1
|
import MuiTextField from '@material-ui/core/TextField'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
3
|
|
|
4
|
+
import MobileSelect from './MobileSelect'
|
|
4
5
|
import Icon from '../Icon'
|
|
5
6
|
import BottomIcon from '../Icons/Bottom'
|
|
6
7
|
import { getRandomUUID } from '../helpers/getRandomUUID'
|
|
7
8
|
import { useBreakpoints } from '../providers/Breakpoints'
|
|
8
|
-
import MobileSelect from './MobileSelect'
|
|
9
9
|
|
|
10
10
|
const TextField = forwardRef(({ select, options, children, ...props }, ref) => {
|
|
11
11
|
// A11Y, https://v4.mui.com/api/text-field/#props
|
package/react/Textarea/index.jsx
CHANGED
package/react/Tile/index.jsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import cx from 'classnames'
|
|
4
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React from 'react'
|
|
4
|
+
|
|
5
5
|
import styles from './styles.styl'
|
|
6
|
+
import Typography from '../Typography'
|
|
6
7
|
|
|
7
8
|
const Tile = ({ children, className, tag: Tag, isSecondary, ...props }) => {
|
|
8
9
|
return (
|
package/react/Toggle/index.jsx
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import React, { Component, useState } from 'react'
|
|
2
|
-
import cx from 'classnames'
|
|
3
1
|
import LinearProgress from '@material-ui/core/LinearProgress'
|
|
2
|
+
import cx from 'classnames'
|
|
3
|
+
import React, { Component, useState } from 'react'
|
|
4
4
|
import { useIntervalWhen } from 'rooks'
|
|
5
5
|
|
|
6
6
|
import { splitFilename } from 'cozy-client/dist/models/file'
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import localeEn from './locales/en.json'
|
|
9
|
+
import localeEs from './locales/es.json'
|
|
10
|
+
import localeFr from './locales/fr.json'
|
|
11
|
+
import styles from './styles.styl'
|
|
12
|
+
import Icon from '../Icon'
|
|
13
|
+
import CheckIcon from '../Icons/Check'
|
|
9
14
|
import CrossIcon from '../Icons/Cross'
|
|
10
15
|
import WarningIcon from '../Icons/Warning'
|
|
11
|
-
import CheckIcon from '../Icons/Check'
|
|
12
|
-
import { translate, useI18n } from '../providers/I18n'
|
|
13
|
-
import withLocales from '../providers/I18n/withLocales'
|
|
14
|
-
import Icon from '../Icon'
|
|
15
16
|
import Spinner from '../Spinner'
|
|
16
17
|
import Typography from '../Typography'
|
|
17
18
|
import List from '../List'
|
|
@@ -20,12 +21,10 @@ import ListItemText from '../ListItemText'
|
|
|
20
21
|
import ListItemIcon from '../ListItemIcon'
|
|
21
22
|
import { Img } from '../deprecated/Media'
|
|
22
23
|
import Button from '../deprecated/Button'
|
|
23
|
-
|
|
24
|
-
import styles from './styles.styl'
|
|
25
|
-
import localeEn from './locales/en.json'
|
|
26
|
-
import localeEs from './locales/es.json'
|
|
27
|
-
import localeFr from './locales/fr.json'
|
|
24
|
+
import { translate, useI18n } from '../providers/I18n'
|
|
28
25
|
import { formatLocallyDistanceToNow } from '../providers/I18n/format'
|
|
26
|
+
import withLocales from '../providers/I18n/withLocales'
|
|
27
|
+
import { withStyles } from '../styles'
|
|
29
28
|
|
|
30
29
|
const locales = {
|
|
31
30
|
en: localeEn,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { render } from '@testing-library/react'
|
|
1
2
|
import React from 'react'
|
|
3
|
+
|
|
2
4
|
import { UploadQueue, formatRemainingTime } from '.'
|
|
3
|
-
import { render } from '@testing-library/react'
|
|
4
5
|
import { useI18n } from '../providers/I18n'
|
|
5
6
|
|
|
6
7
|
jest.mock('../providers/I18n/withLocales', () =>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { BottomSheetItem } from '../../BottomSheet'
|
|
5
|
-
|
|
6
5
|
import getPanelBlocks, { getPanelBlocksSpecs } from '../Panel/getPanelBlocks'
|
|
7
6
|
|
|
8
7
|
const BottomSheetContent = ({ file, isPublic }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import Button from '../../Buttons'
|
|
7
7
|
import Icon from '../../Icon'
|
|
8
8
|
import IconButton from '../../IconButton'
|
|
9
9
|
import DownloadIcon from '../../Icons/Download'
|
|
10
|
-
import Button from '../../Buttons'
|
|
11
10
|
import Alerter from '../../deprecated/Alerter'
|
|
11
|
+
import { useI18n } from '../../providers/I18n'
|
|
12
12
|
|
|
13
13
|
const DownloadButton = ({ file, variant }) => {
|
|
14
14
|
const client = useClient()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { useMemo } from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import cx from 'classnames'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React, { useMemo } from 'react'
|
|
4
4
|
|
|
5
|
+
import BottomSheetContent from './BottomSheetContent'
|
|
6
|
+
import { extractChildrenCompByName } from './helpers'
|
|
5
7
|
import BottomSheet, { BottomSheetHeader } from '../../BottomSheet'
|
|
6
8
|
import { makeStyles } from '../../styles'
|
|
7
|
-
import { isValidForPanel } from '../helpers'
|
|
8
9
|
import PrintButton from '../components/PrintButton'
|
|
9
|
-
import {
|
|
10
|
-
import BottomSheetContent from './BottomSheetContent'
|
|
10
|
+
import { isValidForPanel } from '../helpers'
|
|
11
11
|
|
|
12
12
|
const FooterButtons = ({
|
|
13
13
|
file,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
|
+
import { getSharingLink } from 'cozy-client/dist/models/sharing'
|
|
5
6
|
import { isIOS, isMobileApp } from 'cozy-device-helper'
|
|
6
7
|
|
|
7
|
-
import {
|
|
8
|
+
import { exportFilesNative } from './helpers'
|
|
9
|
+
import Button from '../../Buttons'
|
|
8
10
|
import Icon from '../../Icon'
|
|
9
11
|
import IconButton from '../../IconButton'
|
|
10
12
|
import ReplyIcon from '../../Icons/Reply'
|
|
11
13
|
import ShareIosIcon from '../../Icons/ShareIos'
|
|
12
|
-
import Button from '../../Buttons'
|
|
13
14
|
import Alerter from '../../deprecated/Alerter'
|
|
14
|
-
import {
|
|
15
|
-
import { getSharingLink } from 'cozy-client/dist/models/sharing'
|
|
15
|
+
import { useI18n } from '../../providers/I18n'
|
|
16
16
|
|
|
17
17
|
const ForwardIcon = isIOS() ? ShareIosIcon : ReplyIcon
|
|
18
18
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { render, fireEvent } from '@testing-library/react'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { getSharingLink } from 'cozy-client/dist/models/sharing'
|
|
5
5
|
import { isMobileApp } from 'cozy-device-helper'
|
|
6
6
|
|
|
7
|
-
import DemoProvider from '../docs/DemoProvider'
|
|
8
7
|
import ForwardButton from './ForwardButton'
|
|
9
8
|
import { exportFilesNative } from './helpers'
|
|
9
|
+
import DemoProvider from '../docs/DemoProvider'
|
|
10
10
|
|
|
11
11
|
jest.mock('cozy-device-helper')
|
|
12
12
|
jest.mock('cozy-client/dist/models/sharing', () => ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
5
|
|
|
6
|
-
import ForwardButton from './ForwardButton'
|
|
7
6
|
import DownloadButton from './DownloadButton'
|
|
7
|
+
import ForwardButton from './ForwardButton'
|
|
8
8
|
import { shouldBeForwardButton } from './helpers'
|
|
9
9
|
|
|
10
10
|
const ForwardOrDownloadButton = ({ file, ...props }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
5
|
import { ShareModal, ShareButton } from 'cozy-sharing'
|
|
6
6
|
import { SharingProvider } from 'cozy-sharing/dist/SharingProvider'
|
|
7
7
|
|
|
8
|
-
import IconButton from '../../IconButton'
|
|
9
8
|
import Icon from '../../Icon'
|
|
9
|
+
import IconButton from '../../IconButton'
|
|
10
10
|
import ShareIcon from '../../Icons/Share'
|
|
11
11
|
|
|
12
12
|
const Sharing = ({ file, variant }) => {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { withClient } from 'cozy-client'
|
|
5
5
|
|
|
6
|
-
import { useI18n } from '../../providers/I18n'
|
|
7
|
-
import { FileDoctype } from '../../proptypes'
|
|
8
6
|
import Button from '../../deprecated/Button'
|
|
9
|
-
|
|
7
|
+
import { FileDoctype } from '../../proptypes'
|
|
8
|
+
import { useI18n } from '../../providers/I18n'
|
|
10
9
|
import { downloadFile } from '../helpers'
|
|
11
10
|
|
|
12
11
|
const DownloadButton = ({ client, file, url }) => {
|
|
@@ -3,12 +3,12 @@ import React from 'react'
|
|
|
3
3
|
import Icon from '../../Icon'
|
|
4
4
|
import FileTypeBinIcon from '../../Icons/FileTypeBin'
|
|
5
5
|
import FileTypeCodeIcon from '../../Icons/FileTypeCode'
|
|
6
|
+
import FileTypeFilesIcon from '../../Icons/FileTypeFiles'
|
|
7
|
+
import FileTypePdfIcon from '../../Icons/FileTypePdf'
|
|
6
8
|
import FileTypeSheetIcon from '../../Icons/FileTypeSheet'
|
|
7
9
|
import FileTypeSlideIcon from '../../Icons/FileTypeSlide'
|
|
8
10
|
import FileTypeTextIcon from '../../Icons/FileTypeText'
|
|
9
11
|
import FileTypeZipIcon from '../../Icons/FileTypeZip'
|
|
10
|
-
import FileTypePdfIcon from '../../Icons/FileTypePdf'
|
|
11
|
-
import FileTypeFilesIcon from '../../Icons/FileTypeFiles'
|
|
12
12
|
|
|
13
13
|
const FileIcon = ({ type }) => {
|
|
14
14
|
let icon
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
|
-
import
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
4
|
import DownloadButton from './DownloadButton'
|
|
5
|
-
import
|
|
5
|
+
import FileIcon from './FileIcon'
|
|
6
6
|
import { FileDoctype } from '../../proptypes'
|
|
7
|
+
import styles from '../ViewersByFile/styles.styl'
|
|
7
8
|
|
|
8
9
|
const NoViewer = ({ file, url, renderFallbackExtraContent }) => (
|
|
9
10
|
<div className={styles['viewer-noviewer']}>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { render } from '@testing-library/react'
|
|
3
|
-
|
|
4
|
-
import DemoProvider from '../docs/DemoProvider'
|
|
2
|
+
import React from 'react'
|
|
5
3
|
|
|
6
4
|
import NoViewer from './NoViewer'
|
|
5
|
+
import DemoProvider from '../docs/DemoProvider'
|
|
7
6
|
|
|
8
7
|
const file = {
|
|
9
8
|
_id: 'notSupported',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
|
-
import
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
4
3
|
|
|
4
|
+
import styles from './styles.styl'
|
|
5
|
+
import AppLinker from '../../AppLinker'
|
|
5
6
|
import Icon from '../../Icon'
|
|
6
7
|
import Copy from '../../Icons/Copy'
|
|
7
8
|
import Edit from '../../Icons/Rename'
|
|
8
|
-
import ActionMenu, { ActionMenuItem } from '../../deprecated/ActionMenu'
|
|
9
9
|
import Typography from '../../Typography'
|
|
10
|
+
import ActionMenu, { ActionMenuItem } from '../../deprecated/ActionMenu'
|
|
10
11
|
import { useI18n } from '../../providers/I18n'
|
|
11
|
-
import AppLinker from '../../AppLinker'
|
|
12
12
|
|
|
13
13
|
const ActionMenuDesktop = forwardRef(
|
|
14
14
|
({ onClose, isEditable, actions, appLink, appSlug }, ref) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React from 'react'
|
|
3
3
|
|
|
4
|
+
import AppLinker from '../../AppLinker'
|
|
5
|
+
import BottomSheet, { BottomSheetItem } from '../../BottomSheet'
|
|
6
|
+
import Icon from '../../Icon'
|
|
7
|
+
import Copy from '../../Icons/Copy'
|
|
8
|
+
import Edit from '../../Icons/Rename'
|
|
4
9
|
import List from '../../List'
|
|
5
10
|
import ListItem from '../../ListItem'
|
|
6
11
|
import ListItemIcon from '../../ListItemIcon'
|
|
7
12
|
import ListItemText from '../../ListItemText'
|
|
8
|
-
import Icon from '../../Icon'
|
|
9
|
-
import Copy from '../../Icons/Copy'
|
|
10
|
-
import Edit from '../../Icons/Rename'
|
|
11
|
-
import BottomSheet, { BottomSheetItem } from '../../BottomSheet'
|
|
12
13
|
import { useI18n } from '../../providers/I18n'
|
|
13
|
-
import AppLinker from '../../AppLinker'
|
|
14
14
|
|
|
15
15
|
const ActionMenuMobile = ({
|
|
16
16
|
onClose,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
3
|
|
|
4
4
|
import { useAppLinkWithStoreFallback, useClient } from 'cozy-client'
|
|
5
5
|
|
|
6
|
+
import ActionMenuDesktop from './ActionMenuDesktop'
|
|
7
|
+
import ActionMenuMobile from './ActionMenuMobile'
|
|
8
|
+
import { useAlert } from '../../providers/Alert'
|
|
6
9
|
import useBreakpoints from '../../providers/Breakpoints'
|
|
7
10
|
import { useI18n } from '../../providers/I18n'
|
|
8
|
-
import { useAlert } from '../../providers/Alert'
|
|
9
11
|
import {
|
|
10
12
|
buildEditAttributePath,
|
|
11
13
|
isEditableAttribute,
|
|
12
14
|
getCurrentModel
|
|
13
15
|
} from '../helpers'
|
|
14
16
|
import useActionMenuContext from '../providers/ActionMenuProvider'
|
|
15
|
-
import ActionMenuMobile from './ActionMenuMobile'
|
|
16
|
-
import ActionMenuDesktop from './ActionMenuDesktop'
|
|
17
17
|
|
|
18
18
|
const mespapiersAppSlug = 'mespapiers'
|
|
19
19
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import has from 'lodash/has'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import Typography from '../../Typography'
|
|
6
|
-
import { Media, Img, Bd } from '../../deprecated/Media'
|
|
7
5
|
import Icon, { iconPropType } from '../../Icon'
|
|
8
6
|
import CarbonCopyIcon from '../../Icons/CarbonCopy'
|
|
9
7
|
import SafeIcon from '../../Icons/Safe'
|
|
8
|
+
import Typography from '../../Typography'
|
|
9
|
+
import { Media, Img, Bd } from '../../deprecated/Media'
|
|
10
10
|
import { withViewerLocales } from '../hoc/withViewerLocales'
|
|
11
11
|
|
|
12
12
|
const Certification = ({ icon, title, caption }) => {
|
|
13
13
|
return (
|
|
14
|
-
<div className=
|
|
14
|
+
<div className="u-ph-2 u-pv-1">
|
|
15
15
|
<Media className="u-mb-half" align="top">
|
|
16
16
|
<Img className="u-mr-half">
|
|
17
17
|
<Icon icon={icon} />
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PropTypes from 'prop-types'
|
|
3
1
|
import cx from 'classnames'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import getPanelBlocks, { getPanelBlocksSpecs } from './getPanelBlocks'
|
|
6
6
|
import Paper from '../../Paper'
|
|
7
|
+
import Stack from '../../Stack'
|
|
7
8
|
import Typography from '../../Typography'
|
|
8
9
|
import { withViewerLocales } from '../hoc/withViewerLocales'
|
|
9
10
|
|
|
10
|
-
import getPanelBlocks, { getPanelBlocksSpecs } from './getPanelBlocks'
|
|
11
|
-
|
|
12
11
|
const PanelContent = ({ file, isPublic, t }) => {
|
|
13
12
|
const panelBlocks = getPanelBlocks({
|
|
14
13
|
panelBlocksSpecs: getPanelBlocksSpecs(isPublic),
|
|
@@ -33,7 +32,7 @@ const PanelContent = ({ file, isPublic, t }) => {
|
|
|
33
32
|
elevation={2}
|
|
34
33
|
square
|
|
35
34
|
>
|
|
36
|
-
<Typography variant="h4" className=
|
|
35
|
+
<Typography variant="h4" className="u-pv-1">
|
|
37
36
|
<PanelBlock file={file} />
|
|
38
37
|
</Typography>
|
|
39
38
|
</Paper>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { useRef, useState, createRef, useMemo, useEffect } from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
2
|
+
import React, { useRef, useState, createRef, useMemo, useEffect } from 'react'
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
isExpiringSoon,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getMetadataQualificationType
|
|
9
9
|
} from 'cozy-client/dist/models/paper'
|
|
10
10
|
|
|
11
|
-
import List from '../../List'
|
|
12
|
-
import { withViewerLocales } from '../hoc/withViewerLocales'
|
|
13
|
-
import ExpirationAlert from '../components/ExpirationAlert'
|
|
14
11
|
import ActionMenuWrapper from './ActionMenuWrapper'
|
|
15
12
|
import QualificationListItemContact from './QualificationListItemContact'
|
|
16
13
|
import QualificationListItemDate from './QualificationListItemDate'
|
|
17
14
|
import QualificationListItemInformation from './QualificationListItemInformation'
|
|
18
15
|
import QualificationListItemOther from './QualificationListItemOther'
|
|
16
|
+
import List from '../../List'
|
|
17
|
+
import ExpirationAlert from '../components/ExpirationAlert'
|
|
18
|
+
import { withViewerLocales } from '../hoc/withViewerLocales'
|
|
19
19
|
|
|
20
20
|
const ComponentFromMetadataQualificationType = {
|
|
21
21
|
contact: QualificationListItemContact,
|
|
@@ -76,7 +76,7 @@ const Qualification = ({ file }) => {
|
|
|
76
76
|
{isExpiringSoon(file) && !isExpirationAlertHidden(file) && (
|
|
77
77
|
<ExpirationAlert file={file} />
|
|
78
78
|
)}
|
|
79
|
-
<List className=
|
|
79
|
+
<List className="u-pv-1">
|
|
80
80
|
{formattedMetadataQualification.map((meta, idx) => {
|
|
81
81
|
const { name } = meta
|
|
82
82
|
const metadataQualificationType = getMetadataQualificationType(name)
|