cozy-ui 111.5.0 → 111.7.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 -5
- 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 +13 -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 +56 -13
- package/react/AppSections/__snapshots__/index.spec.jsx.snap +10 -0
- package/react/AppSections/categories.js +35 -11
- package/react/AppSections/categories.spec.js +9 -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/components/__snapshots__/AppsSection.spec.jsx.snap +1 -1
- package/react/AppSections/constants.js +6 -1
- package/react/AppSections/generateI18nConfig.ts +23 -0
- package/react/AppSections/helpers.js +8 -0
- package/react/AppSections/helpers.spec.js +1 -1
- package/react/AppSections/index.spec.jsx +4 -4
- package/react/AppSections/locales/en.json +4 -2
- package/react/AppSections/locales/fr.json +4 -2
- package/react/AppSections/search.js +1 -1
- package/react/AppTile/AppTile.spec.jsx +7 -6
- package/react/AppTile/index.jsx +44 -26
- package/react/AppTile/locales/en.json +2 -1
- package/react/AppTile/locales/fr.json +2 -1
- 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/ShortcutTile/index.tsx +63 -0
- 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/types.d.ts +4 -0
- 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 +13 -3
- package/transpiled/react/AppLinker/index.js +2 -2
- package/transpiled/react/AppSections/Sections.js +50 -16
- package/transpiled/react/AppSections/categories.js +31 -3
- package/transpiled/react/AppSections/components/AppsSection.js +6 -6
- package/transpiled/react/AppSections/components/DropdownFilter.js +5 -5
- package/transpiled/react/AppSections/constants.js +5 -1
- package/transpiled/react/AppSections/generateI18nConfig.d.ts +6 -0
- package/transpiled/react/AppSections/generateI18nConfig.js +25 -0
- package/transpiled/react/AppSections/helpers.js +5 -0
- package/transpiled/react/AppSections/search.js +1 -1
- package/transpiled/react/AppTile/index.js +33 -18
- 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/ShortcutTile/index.d.ts +15 -0
- package/transpiled/react/ShortcutTile/index.js +53 -0
- 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.d.ts +68 -0
- package/transpiled/react/Tile/index.js +3 -3
- package/transpiled/react/Toggle/index.js +2 -2
- package/transpiled/react/Typography/index.d.ts +3 -0
- 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 -1
- package/transpiled/react/types.d.js +0 -0
|
@@ -10,18 +10,14 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
|
-
import React, { Component } from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
15
|
-
import flow from 'lodash/flow';
|
|
16
13
|
import cx from 'classnames';
|
|
17
14
|
import Hammer from 'hammerjs';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import { toolbarPropsPropType } from "cozy-ui/transpiled/react/Viewer";
|
|
15
|
+
import flow from 'lodash/flow';
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
17
|
+
import React, { Component } from 'react';
|
|
22
18
|
import { infoWidth } from "cozy-ui/transpiled/react/Viewer/components/InformationPanel";
|
|
23
|
-
import Toolbar from "cozy-ui/transpiled/react/Viewer/components/Toolbar";
|
|
24
19
|
import Navigation from "cozy-ui/transpiled/react/Viewer/components/Navigation";
|
|
20
|
+
import Toolbar from "cozy-ui/transpiled/react/Viewer/components/Toolbar";
|
|
25
21
|
var styles = {
|
|
26
22
|
"viewer-nav": "styles__viewer-nav___1MSd7",
|
|
27
23
|
"viewer-nav--visible": "styles__viewer-nav--visible___h_KJD",
|
|
@@ -35,6 +31,10 @@ var styles = {
|
|
|
35
31
|
"viewer-toolbar--hidden": "styles__viewer-toolbar--hidden___3r3Sj",
|
|
36
32
|
"viewer-footer": "styles__viewer-footer___2ieQS"
|
|
37
33
|
};
|
|
34
|
+
import { toolbarPropsPropType } from "cozy-ui/transpiled/react/Viewer";
|
|
35
|
+
import withBreakpoints from "cozy-ui/transpiled/react/helpers/withBreakpoints";
|
|
36
|
+
import { withStyles } from "cozy-ui/transpiled/react/styles";
|
|
37
|
+
import { isValidForPanel } from "cozy-ui/transpiled/react/Viewer/helpers";
|
|
38
38
|
var ACTIONS_HIDE_DELAY = 3000;
|
|
39
39
|
|
|
40
40
|
var customStyles = function customStyles() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import withBreakpoints from "cozy-ui/transpiled/react/helpers/withBreakpoints";
|
|
4
3
|
import Spinner from "cozy-ui/transpiled/react/Spinner";
|
|
4
|
+
import withBreakpoints from "cozy-ui/transpiled/react/helpers/withBreakpoints";
|
|
5
5
|
|
|
6
6
|
var ViewerSpinner = function ViewerSpinner(_ref) {
|
|
7
7
|
var isDesktop = _ref.breakpoints.isDesktop;
|
|
@@ -17,10 +17,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
17
17
|
|
|
18
18
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
19
19
|
|
|
20
|
-
import React, { Component } from 'react';
|
|
21
20
|
import PropTypes from 'prop-types';
|
|
22
|
-
import
|
|
21
|
+
import React, { Component } from 'react';
|
|
23
22
|
import NoNetworkViewer from "cozy-ui/transpiled/react/Viewer/ViewersByFile/NoNetworkViewer";
|
|
23
|
+
import ViewerSpinner from "cozy-ui/transpiled/react/Viewer/components/ViewerSpinner";
|
|
24
24
|
import { isFileEncrypted } from "cozy-ui/transpiled/react/Viewer/helpers";
|
|
25
25
|
var TTL = 6000;
|
|
26
26
|
var LOADING = 'LOADING';
|
|
@@ -8,13 +8,8 @@ var _excluded = ["children", "tag"],
|
|
|
8
8
|
_excluded5 = ["className"],
|
|
9
9
|
_excluded6 = ["children", "className", "tag", "variant"],
|
|
10
10
|
_excluded7 = ["children", "className", "tag"];
|
|
11
|
-
import React from 'react';
|
|
12
11
|
import cx from 'classnames';
|
|
13
|
-
import
|
|
14
|
-
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
15
|
-
import CloudIcon from "cozy-ui/transpiled/react/Icons/Cloud";
|
|
16
|
-
import Input from "cozy-ui/transpiled/react/Input";
|
|
17
|
-
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
12
|
+
import React from 'react';
|
|
18
13
|
var styles = {
|
|
19
14
|
"wizard-select": "styles__wizard-select___2-yNW",
|
|
20
15
|
"is-error": "styles__is-error___1X2dc",
|
|
@@ -49,6 +44,11 @@ var styles = {
|
|
|
49
44
|
"spin": "styles__spin___1yERN",
|
|
50
45
|
"shake": "styles__shake___YNHmI"
|
|
51
46
|
};
|
|
47
|
+
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
48
|
+
import CloudIcon from "cozy-ui/transpiled/react/Icons/Cloud";
|
|
49
|
+
import Input from "cozy-ui/transpiled/react/Input";
|
|
50
|
+
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
51
|
+
import Button from "cozy-ui/transpiled/react/deprecated/Button";
|
|
52
52
|
export var Wizard = function Wizard(_ref) {
|
|
53
53
|
var children = _ref.children,
|
|
54
54
|
tag = _ref.tag,
|
|
@@ -111,7 +111,8 @@ export var WizardLogo = function WizardLogo(_ref8) {
|
|
|
111
111
|
className: styles['wizard-logo-img'],
|
|
112
112
|
src: src,
|
|
113
113
|
alt: "",
|
|
114
|
-
"aria-hidden": "true"
|
|
114
|
+
"aria-hidden": "true" // eslint-disable-next-line react/no-unknown-property
|
|
115
|
+
,
|
|
115
116
|
focusable: "false"
|
|
116
117
|
}), /*#__PURE__*/React.createElement("div", {
|
|
117
118
|
className: styles['wizard-logo-badge']
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// TODO: remove eslint-disable and @ts-ignore rules
|
|
3
3
|
import { useTheme } from '@material-ui/core';
|
|
4
4
|
import { isFlagshipApp } from 'cozy-device-helper';
|
|
5
|
-
import { useSetFlagshipUI } from "cozy-ui/transpiled/react/hooks/useSetFlagshipUi/useSetFlagshipUI";
|
|
6
5
|
import { isRsg } from "cozy-ui/transpiled/react/hooks/useSetFlagshipUi/helpers";
|
|
6
|
+
import { useSetFlagshipUI } from "cozy-ui/transpiled/react/hooks/useSetFlagshipUi/useSetFlagshipUI";
|
|
7
7
|
import { useCozyTheme } from "cozy-ui/transpiled/react/providers/CozyTheme";
|
|
8
8
|
|
|
9
9
|
var getBottomBackground = function getBottomBackground(theme) {
|
|
@@ -19,11 +19,11 @@ var useHook = function useHook() {
|
|
|
19
19
|
|
|
20
20
|
useSetFlagshipUI({
|
|
21
21
|
bottomBackground: theme.palette.background.paper,
|
|
22
|
-
// @ts-
|
|
22
|
+
// @ts-expect-error
|
|
23
23
|
bottomTheme: isLight ? 'dark' : 'light',
|
|
24
24
|
topOverlay: 'rgba(0, 0, 0, 0.5)',
|
|
25
25
|
topBackground: theme.palette.background.paper,
|
|
26
|
-
// @ts-
|
|
26
|
+
// @ts-expect-error
|
|
27
27
|
topTheme: 'light'
|
|
28
28
|
}, {
|
|
29
29
|
bottomBackground: getBottomBackground(theme),
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
var styles = {
|
|
5
5
|
"c-actionmenu": "styles__c-actionmenu___IUGX7",
|
|
6
6
|
"c-actionmenu--inline": "styles__c-actionmenu--inline___1RWrO",
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
1
|
import cx from 'classnames';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
6
4
|
var styles = {
|
|
7
5
|
"c-actionmenu": "styles__c-actionmenu___IUGX7",
|
|
8
6
|
"c-actionmenu--inline": "styles__c-actionmenu--inline___1RWrO",
|
|
@@ -10,6 +8,8 @@ var styles = {
|
|
|
10
8
|
"c-actionmenu-item": "styles__c-actionmenu-item___WzUJQ",
|
|
11
9
|
"c-actionmenu-radio": "styles__c-actionmenu-radio___38gls"
|
|
12
10
|
};
|
|
11
|
+
import { spacingProp } from "cozy-ui/transpiled/react/Stack";
|
|
12
|
+
import { Media, Bd, Img } from "cozy-ui/transpiled/react/deprecated/Media";
|
|
13
13
|
export var ActionMenuItem = function ActionMenuItem(_ref) {
|
|
14
14
|
var left = _ref.left,
|
|
15
15
|
children = _ref.children,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import cx from 'classnames';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
|
-
import
|
|
7
|
-
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
8
|
-
import Icon, { iconPropType } from "cozy-ui/transpiled/react/Icon";
|
|
5
|
+
import React from 'react';
|
|
9
6
|
import { ActionMenuItem } from "cozy-ui/transpiled/react/deprecated/ActionMenu";
|
|
7
|
+
import Icon, { iconPropType } from "cozy-ui/transpiled/react/Icon";
|
|
8
|
+
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
9
|
+
import { makeStyles } from "cozy-ui/transpiled/react/styles";
|
|
10
10
|
var useStyles = makeStyles(function (theme) {
|
|
11
11
|
return {
|
|
12
12
|
disabledItem: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Radio from "cozy-ui/transpiled/react/deprecated/Radio";
|
|
4
3
|
var styles = {
|
|
5
4
|
"c-actionmenu": "styles__c-actionmenu___IUGX7",
|
|
6
5
|
"c-actionmenu--inline": "styles__c-actionmenu--inline___1RWrO",
|
|
@@ -8,6 +7,7 @@ var styles = {
|
|
|
8
7
|
"c-actionmenu-item": "styles__c-actionmenu-item___WzUJQ",
|
|
9
8
|
"c-actionmenu-radio": "styles__c-actionmenu-radio___38gls"
|
|
10
9
|
};
|
|
10
|
+
import Radio from "cozy-ui/transpiled/react/deprecated/Radio";
|
|
11
11
|
export var ActionMenuRadio = function ActionMenuRadio(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement(Radio, _extends({}, props, {
|
|
13
13
|
className: styles['c-actionmenu-radio']
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
|
|
3
|
-
import isTesting from "cozy-ui/transpiled/react/helpers/isTesting";
|
|
4
|
-
import BottomSheet from "cozy-ui/transpiled/react/BottomSheet";
|
|
5
2
|
import NotInlineWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/NotInlineWrapper";
|
|
3
|
+
import BottomSheet from "cozy-ui/transpiled/react/BottomSheet";
|
|
4
|
+
import isTesting from "cozy-ui/transpiled/react/helpers/isTesting";
|
|
5
|
+
import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated This component is depreacated, please use [ActionsMenu](#/ActionsMenu) instead.
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
4
3
|
import { getActionName, getOnlyNeededActions } from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/helpers";
|
|
4
|
+
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
5
5
|
|
|
6
6
|
var ActionsItems = function ActionsItems(_ref) {
|
|
7
7
|
var doc = _ref.doc,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
3
3
|
import TelephoneIcon from "cozy-ui/transpiled/react/Icons/Telephone";
|
|
4
|
+
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
4
5
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
5
|
-
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
6
6
|
export var call = function call() {
|
|
7
7
|
return {
|
|
8
8
|
name: 'call',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
3
3
|
import EmailIcon from "cozy-ui/transpiled/react/Icons/Email";
|
|
4
|
+
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
4
5
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
5
|
-
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
6
6
|
export var emailTo = function emailTo() {
|
|
7
7
|
return {
|
|
8
8
|
name: 'emailTo',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import withLocales from "cozy-ui/transpiled/react/providers/I18n/withLocales";
|
|
2
1
|
var en = {
|
|
3
2
|
viewInContacts: "View in Cozy Contacts",
|
|
4
3
|
modify: "Modify",
|
|
@@ -15,6 +14,7 @@ var fr = {
|
|
|
15
14
|
print: "Imprimer",
|
|
16
15
|
call: "Appeler"
|
|
17
16
|
};
|
|
17
|
+
import withLocales from "cozy-ui/transpiled/react/providers/I18n/withLocales";
|
|
18
18
|
export var locales = {
|
|
19
19
|
en: en,
|
|
20
20
|
fr: fr
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { generateWebLink, useClient } from 'cozy-client';
|
|
3
|
+
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
4
|
+
import PenIcon from "cozy-ui/transpiled/react/Icons/Pen";
|
|
3
5
|
import Link from "cozy-ui/transpiled/react/Link";
|
|
4
6
|
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
5
|
-
import PenIcon from "cozy-ui/transpiled/react/Icons/Pen";
|
|
6
7
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
7
|
-
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
8
8
|
export var modify = function modify() {
|
|
9
9
|
return {
|
|
10
10
|
name: 'modify',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
3
3
|
import CommentIcon from "cozy-ui/transpiled/react/Icons/Comment";
|
|
4
|
+
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
4
5
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
5
|
-
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
6
6
|
export var smsTo = function smsTo() {
|
|
7
7
|
return {
|
|
8
8
|
name: 'smsTo',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { generateWebLink, useClient } from 'cozy-client';
|
|
3
|
+
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
4
|
+
import OpenappIcon from "cozy-ui/transpiled/react/Icons/Openapp";
|
|
3
5
|
import Link from "cozy-ui/transpiled/react/Link";
|
|
4
6
|
import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
|
|
5
|
-
import OpenappIcon from "cozy-ui/transpiled/react/Icons/Openapp";
|
|
6
7
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
7
|
-
import withActionsLocales from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales";
|
|
8
8
|
export var viewInContacts = function viewInContacts() {
|
|
9
9
|
return {
|
|
10
10
|
name: 'viewInContacts',
|
|
@@ -6,9 +6,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
|
+
import ClickAwayListener from '@material-ui/core/ClickAwayListener';
|
|
9
10
|
import React, { useState } from 'react';
|
|
10
11
|
import { usePopper } from 'react-popper';
|
|
11
|
-
import ClickAwayListener from '@material-ui/core/ClickAwayListener';
|
|
12
12
|
|
|
13
13
|
var NotInlineWrapper = function NotInlineWrapper(_ref) {
|
|
14
14
|
var anchorElRef = _ref.anchorElRef,
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import cx from 'classnames';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useActionMenuEffects } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuEffects";
|
|
8
6
|
import { ActionMenuHeader } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuHeader";
|
|
9
7
|
import { ActionMenuItem } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItem";
|
|
10
|
-
import { ActionMenuRadio } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuRadio";
|
|
11
|
-
import { useActionMenuEffects } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuEffects";
|
|
12
8
|
import ActionMenuItemWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuItemWrapper";
|
|
9
|
+
import { ActionMenuRadio } from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuRadio";
|
|
13
10
|
import ActionMenuWithClose from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuWithClose";
|
|
11
|
+
import ActionMenuWrapper from "cozy-ui/transpiled/react/deprecated/ActionMenu/ActionMenuWrapper";
|
|
14
12
|
import ActionsItems from "cozy-ui/transpiled/react/deprecated/ActionMenu/Actions/ActionsItems";
|
|
15
13
|
var styles = {
|
|
16
14
|
"c-actionmenu": "styles__c-actionmenu___IUGX7",
|
|
@@ -19,6 +17,8 @@ var styles = {
|
|
|
19
17
|
"c-actionmenu-item": "styles__c-actionmenu-item___WzUJQ",
|
|
20
18
|
"c-actionmenu-radio": "styles__c-actionmenu-radio___38gls"
|
|
21
19
|
};
|
|
20
|
+
import createDepreciationLogger from "cozy-ui/transpiled/react/helpers/createDepreciationLogger";
|
|
21
|
+
import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
|
|
22
22
|
var logDepecratedMenu = createDepreciationLogger();
|
|
23
23
|
var logDepecratedPlacement = createDepreciationLogger();
|
|
24
24
|
var logDepecratedOverflow = createDepreciationLogger();
|
|
@@ -10,9 +10,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import cx from 'classnames';
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
|
-
import
|
|
15
|
+
import React, { Component } from 'react';
|
|
16
16
|
var styles = {
|
|
17
17
|
"c-btn--alert-error": "styles__c-btn--alert-error___3uH5i",
|
|
18
18
|
"c-btn--alert-info": "styles__c-btn--alert-info___1xAkg",
|
|
@@ -27,7 +27,7 @@ var styles = {
|
|
|
27
27
|
"spin": "styles__spin___10b55",
|
|
28
28
|
"shake": "styles__shake___JTDyQ"
|
|
29
29
|
};
|
|
30
|
-
import
|
|
30
|
+
import Button from "cozy-ui/transpiled/react/deprecated/Button";
|
|
31
31
|
export var Alert = /*#__PURE__*/function (_Component) {
|
|
32
32
|
_inherits(Alert, _Component);
|
|
33
33
|
|
|
@@ -11,10 +11,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
|
|
14
|
-
import React, { Component } from 'react';
|
|
15
14
|
import PropTypes from 'prop-types';
|
|
16
|
-
import
|
|
15
|
+
import React, { Component } from 'react';
|
|
17
16
|
import Alert from "cozy-ui/transpiled/react/deprecated/Alerter/Alert";
|
|
17
|
+
import Portal from "cozy-ui/transpiled/react/Portal";
|
|
18
18
|
var MINIMUM_ALERT_DURATION = 2000;
|
|
19
19
|
var currentId = 0;
|
|
20
20
|
|
|
@@ -10,10 +10,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
|
-
import React, { Component, createRef } from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
15
13
|
import Hammer from 'hammerjs';
|
|
16
14
|
import once from 'lodash/once';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
16
|
+
import React, { Component, createRef } from 'react';
|
|
17
17
|
import { RemoveScroll } from 'react-remove-scroll';
|
|
18
18
|
var styles = {
|
|
19
19
|
"with-transition": "styles__with-transition___3OLmI",
|
|
@@ -3,9 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["busy", "disabled"],
|
|
5
5
|
_excluded2 = ["children", "icon", "iconOnly", "label", "subtle", "className", "extension", "round", "size", "theme", "align", "extraRight", "tag"];
|
|
6
|
-
import React from 'react';
|
|
7
6
|
import cx from 'classnames';
|
|
8
7
|
import PropTypes from 'prop-types';
|
|
8
|
+
import React from 'react';
|
|
9
9
|
var styles = {
|
|
10
10
|
"c-btn": "styles__c-btn___3kXsk",
|
|
11
11
|
"c-btn--regular": "styles__c-btn--regular___1ilYT",
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["type", "disabled", "children", "label", "leftIcon", "rightIcon", "compact", "className", "onClick"];
|
|
5
|
-
import React from 'react';
|
|
6
5
|
import cx from 'classnames';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import React from 'react';
|
|
8
8
|
var styles = {
|
|
9
9
|
"c-actionbtn": "styles__c-actionbtn___294nr",
|
|
10
10
|
"c-actionbtn--compact": "styles__c-actionbtn--compact___3CFm-",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["style", "className", "primaryText", "primaryTextClassName", "secondaryTextClassName", "secondaryText", "image", "right", "actions", "dense"];
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import cx from 'classnames';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
|
-
import
|
|
8
|
-
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
6
|
+
import React from 'react';
|
|
9
7
|
var styles = {
|
|
10
8
|
"CompositeRow": "styles__CompositeRow___1Dmi2",
|
|
11
9
|
"CompositeRow__dense": "styles__CompositeRow__dense___3p1f3",
|
|
12
10
|
"CompositeRow__body": "styles__CompositeRow__body___1Bjsp"
|
|
13
11
|
};
|
|
12
|
+
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
13
|
+
import { Media, Bd, Img } from "cozy-ui/transpiled/react/deprecated/Media";
|
|
14
14
|
var denseStyle = {
|
|
15
15
|
height: '48px'
|
|
16
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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';
|
|
5
4
|
var styles = {
|
|
6
5
|
"gridItem-container": "styles__gridItem-container___2Xeyk"
|
|
7
6
|
};
|
|
7
|
+
import Grid from "cozy-ui/transpiled/react/Grid";
|
|
8
8
|
|
|
9
9
|
var GridItem = function GridItem(_ref) {
|
|
10
10
|
var _onClick = _ref.onClick,
|
|
@@ -2,15 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
var _excluded = ["title", "text", "icon", "actionButton", "isImportant"];
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
5
|
import cx from 'classnames';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import CrossIcon from "cozy-ui/transpiled/react/Icons/Cross";
|
|
11
|
-
import Stack from "cozy-ui/transpiled/react/Stack";
|
|
12
|
-
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
13
|
-
import createDepreciationLogger from "cozy-ui/transpiled/react/helpers/createDepreciationLogger";
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import React from 'react';
|
|
14
8
|
var styles = {
|
|
15
9
|
"Infos": "styles__Infos___tpCYh",
|
|
16
10
|
"Infos--primary": "styles__Infos--primary____iqfw",
|
|
@@ -19,6 +13,12 @@ var styles = {
|
|
|
19
13
|
"Infos-description": "styles__Infos-description___3q8sW",
|
|
20
14
|
"Info-close": "styles__Info-close___EnUCb"
|
|
21
15
|
};
|
|
16
|
+
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
17
|
+
import IconButton from "cozy-ui/transpiled/react/IconButton";
|
|
18
|
+
import CrossIcon from "cozy-ui/transpiled/react/Icons/Cross";
|
|
19
|
+
import Stack from "cozy-ui/transpiled/react/Stack";
|
|
20
|
+
import Typography from "cozy-ui/transpiled/react/Typography";
|
|
21
|
+
import createDepreciationLogger from "cozy-ui/transpiled/react/helpers/createDepreciationLogger";
|
|
22
22
|
export var Infos = function Infos(_ref) {
|
|
23
23
|
var description = _ref.description,
|
|
24
24
|
action = _ref.action,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import React, { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import cx from 'classnames';
|
|
6
4
|
import clamp from 'lodash/clamp';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import React, { useState, useCallback, useEffect } from 'react';
|
|
7
7
|
import SwipeableViews from 'react-swipeable-views';
|
|
8
|
-
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
9
|
-
import IconButton from "cozy-ui/transpiled/react/IconButton";
|
|
10
8
|
var styles = {
|
|
11
9
|
"InfosCarrousel": "styles__InfosCarrousel___1-aJZ",
|
|
12
10
|
"InfosCarrousel-navigation": "styles__InfosCarrousel-navigation___2Cm0M",
|
|
13
11
|
"InfosCarrousel-separator": "styles__InfosCarrousel-separator___3GYRV"
|
|
14
12
|
};
|
|
13
|
+
import Icon from "cozy-ui/transpiled/react/Icon";
|
|
14
|
+
import IconButton from "cozy-ui/transpiled/react/IconButton";
|
|
15
15
|
import LeftIcon from "cozy-ui/transpiled/react/Icons/Left";
|
|
16
16
|
import RightIcon from "cozy-ui/transpiled/react/Icons/Right";
|
|
17
17
|
|
|
@@ -11,9 +11,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
|
|
14
|
-
import React, { PureComponent } from 'react';
|
|
15
14
|
import cx from 'classnames';
|
|
16
15
|
import PropTypes from 'prop-types';
|
|
16
|
+
import React, { PureComponent } from 'react';
|
|
17
17
|
var styles = {
|
|
18
18
|
"c-inline-card": "styles__c-inline-card___1a8Og"
|
|
19
19
|
};
|
|
@@ -15,16 +15,16 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
15
15
|
|
|
16
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
17
|
|
|
18
|
+
import once from 'lodash/once';
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
18
20
|
import React, { Component } from 'react';
|
|
19
21
|
var styles = {
|
|
20
22
|
"intentModal": "styles__intentModal___1NbfY",
|
|
21
23
|
"intentModal__cross": "styles__intentModal__cross___1ISTs"
|
|
22
24
|
};
|
|
23
|
-
import PropTypes from 'prop-types';
|
|
24
|
-
import once from 'lodash/once';
|
|
25
25
|
import IntentIframe from "cozy-ui/transpiled/react/IntentIframe";
|
|
26
|
-
import Modal from "cozy-ui/transpiled/react/deprecated/Modal";
|
|
27
26
|
import createDepreciationLogger from "cozy-ui/transpiled/react/helpers/createDepreciationLogger";
|
|
27
|
+
import Modal from "cozy-ui/transpiled/react/deprecated/Modal";
|
|
28
28
|
var logIntentModalDepecrated = createDepreciationLogger();
|
|
29
29
|
/**
|
|
30
30
|
* Render a modal for the specified intent.
|
|
@@ -2,10 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["options", "action", "doctype", "children", "closable", "create", "tag", "into", "onComplete", "onDismiss"];
|
|
5
|
-
import React, { useState } from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
|
-
import
|
|
6
|
+
import React, { useState } from 'react';
|
|
8
7
|
import createDepreciationLogger from "cozy-ui/transpiled/react/helpers/createDepreciationLogger";
|
|
8
|
+
import IntentModal from "cozy-ui/transpiled/react/deprecated/IntentModal";
|
|
9
9
|
var logIntentOpenerDepecrated = createDepreciationLogger();
|
|
10
10
|
/**
|
|
11
11
|
* Wrapper that adds an `onClick` handler to its children that opens a modal
|
|
@@ -4,8 +4,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["children", "className", "align"],
|
|
5
5
|
_excluded2 = ["children", "className", "style"],
|
|
6
6
|
_excluded3 = ["children", "className", "style"];
|
|
7
|
-
import
|
|
7
|
+
import cx from 'classnames';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
+
import React from 'react';
|
|
9
10
|
var styles = {
|
|
10
11
|
"media": "styles__media___1rIBu",
|
|
11
12
|
"media--top": "styles__media--top___1t0j5",
|
|
@@ -13,7 +14,6 @@ var styles = {
|
|
|
13
14
|
"bd": "styles__bd___3SAX2",
|
|
14
15
|
"img": "styles__img___3sztD"
|
|
15
16
|
};
|
|
16
|
-
import cx from 'classnames';
|
|
17
17
|
/**
|
|
18
18
|
* Useful to align image/icon and content.
|
|
19
19
|
*/
|
|
@@ -14,13 +14,13 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
14
14
|
// This component is inspired by https://material-ui.com/demos/menus/#menulist-composition
|
|
15
15
|
// Since the MuiMenu component doesn't allow another Popover positioning,
|
|
16
16
|
// we have to recompose the Menu component ourselves with basic Mui component
|
|
17
|
-
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
17
|
import ClickAwayListener from '@material-ui/core/ClickAwayListener';
|
|
20
18
|
import Grow from '@material-ui/core/Grow';
|
|
21
|
-
import Popper from '@material-ui/core/Popper';
|
|
22
|
-
import Paper from '@material-ui/core/Paper';
|
|
23
19
|
import MenuList from '@material-ui/core/MenuList';
|
|
20
|
+
import Paper from '@material-ui/core/Paper';
|
|
21
|
+
import Popper from '@material-ui/core/Popper';
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
23
|
+
import React, { Component } from 'react';
|
|
24
24
|
import { withStyles } from "cozy-ui/transpiled/react/styles";
|
|
25
25
|
import MenuButton from "cozy-ui/transpiled/react/deprecated/Button";
|
|
26
26
|
var styles = {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className"];
|
|
4
|
-
import React from 'react';
|
|
5
4
|
import cx from 'classnames';
|
|
6
|
-
import
|
|
5
|
+
import React from 'react';
|
|
7
6
|
var styles = {
|
|
8
7
|
"c-modal": "styles__c-modal___dljYk",
|
|
9
8
|
"c-modal-content": "styles__c-modal-content___22N4k",
|
|
@@ -41,6 +40,7 @@ var styles = {
|
|
|
41
40
|
};
|
|
42
41
|
import PreviousIcon from "cozy-ui/transpiled/react/Icons/Previous";
|
|
43
42
|
import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
|
|
43
|
+
import Button from "cozy-ui/transpiled/react/deprecated/Button";
|
|
44
44
|
|
|
45
45
|
var DumbModalBackButton = function DumbModalBackButton(props) {
|
|
46
46
|
var _useBreakpoints = useBreakpoints(),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import cx from 'classnames';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
var styles = {
|
|
3
4
|
"c-modal": "styles__c-modal___dljYk",
|
|
@@ -34,7 +35,6 @@ var styles = {
|
|
|
34
35
|
"spin": "styles__spin___1fJIg",
|
|
35
36
|
"shake": "styles__shake___gVu0K"
|
|
36
37
|
};
|
|
37
|
-
import cx from 'classnames';
|
|
38
38
|
import Button from "cozy-ui/transpiled/react/deprecated/Button";
|
|
39
39
|
|
|
40
40
|
var ModalButtons = function ModalButtons(_ref) {
|