cozy-sharing 23.1.0 → 23.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [23.2.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.1.0...cozy-sharing@23.2.0) (2025-03-12)
7
+
8
+ ### Features
9
+
10
+ - Replace sprite icons by svgr ([a7f2d16](https://github.com/cozy/cozy-libs/commit/a7f2d16cd1f3471c9aefe18b0403483f74fc26a5))
11
+
6
12
  # [23.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@23.0.0...cozy-sharing@23.1.0) (2025-03-11)
7
13
 
8
14
  ### Features
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import Box from 'cozy-ui/transpiled/react/Box';
5
5
  import DatePicker from 'cozy-ui/transpiled/react/DatePicker';
6
6
  import Icon from 'cozy-ui/transpiled/react/Icon';
7
+ import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar';
7
8
  import List from 'cozy-ui/transpiled/react/List';
8
9
  import ListItem from 'cozy-ui/transpiled/react/ListItem';
9
10
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
@@ -43,7 +44,7 @@ export var BoxDate = function BoxDate(_ref) {
43
44
  return handleDateToggle(!toggle);
44
45
  }
45
46
  }, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
46
- icon: "calendar"
47
+ icon: CalendarIcon
47
48
  })), /*#__PURE__*/React.createElement(ListItemText, {
48
49
  primary: t('BoxDate.text')
49
50
  }), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
@@ -6,6 +6,8 @@ import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu';
6
6
  import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions';
7
7
  import Box from 'cozy-ui/transpiled/react/Box';
8
8
  import Icon from 'cozy-ui/transpiled/react/Icon';
9
+ import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom';
10
+ import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People';
9
11
  import List from 'cozy-ui/transpiled/react/List';
10
12
  import ListItem from 'cozy-ui/transpiled/react/ListItem';
11
13
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
@@ -55,14 +57,14 @@ export var BoxEditingRights = function BoxEditingRights(_ref) {
55
57
  ellipsis: false,
56
58
  onClick: toggleMenuDisplayed
57
59
  }, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
58
- icon: "people"
60
+ icon: PeopleIcon
59
61
  })), /*#__PURE__*/React.createElement(ListItemText, {
60
62
  primary: t('BoxEditingRights.text'),
61
63
  secondary: textSecondary
62
64
  }), /*#__PURE__*/React.createElement(ListItemIcon, {
63
65
  className: "u-mr-half"
64
66
  }, /*#__PURE__*/React.createElement(Icon, {
65
- icon: "bottom"
67
+ icon: BottomIcon
66
68
  }))))), /*#__PURE__*/React.createElement(ActionsMenu, {
67
69
  ref: buttonRef,
68
70
  open: isMenuDisplayed,
@@ -7,6 +7,8 @@ import React, { useState } from 'react';
7
7
  import Box from 'cozy-ui/transpiled/react/Box';
8
8
  import Icon from 'cozy-ui/transpiled/react/Icon';
9
9
  import IconButton from 'cozy-ui/transpiled/react/IconButton';
10
+ import CopyIcon from 'cozy-ui/transpiled/react/Icons/Copy';
11
+ import PasswordIcon from 'cozy-ui/transpiled/react/Icons/Password';
10
12
  import List from 'cozy-ui/transpiled/react/List';
11
13
  import ListItem from 'cozy-ui/transpiled/react/ListItem';
12
14
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon';
@@ -106,7 +108,7 @@ export var BoxPassword = function BoxPassword(_ref) {
106
108
  return handlePasswordToggle(!toggle);
107
109
  }
108
110
  }, /*#__PURE__*/React.createElement(ListItemIcon, null, /*#__PURE__*/React.createElement(Icon, {
109
- icon: "password"
111
+ icon: PasswordIcon
110
112
  })), /*#__PURE__*/React.createElement(ListItemText, {
111
113
  primary: t('BoxPassword.text')
112
114
  }), /*#__PURE__*/React.createElement(ListItemSecondaryAction, null, /*#__PURE__*/React.createElement(Switch, {
@@ -139,7 +141,7 @@ export var BoxPassword = function BoxPassword(_ref) {
139
141
  endAdornment: /*#__PURE__*/React.createElement(IconButton, {
140
142
  onClick: handleCopy
141
143
  }, /*#__PURE__*/React.createElement(Icon, {
142
- icon: "copy"
144
+ icon: CopyIcon
143
145
  }))
144
146
  },
145
147
  inputProps: inputProps
@@ -8,6 +8,7 @@ import { generateWebLink, useClient } from 'cozy-client';
8
8
  import Button from 'cozy-ui/transpiled/react/Buttons';
9
9
  import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
10
10
  import Icon from 'cozy-ui/transpiled/react/Icon';
11
+ import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash';
11
12
  import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert';
12
13
  import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n';
13
14
  import { ShareRestrictionContentModal } from './ShareRestrictionContentModal';
@@ -238,7 +239,7 @@ export var ShareRestrictionModal = function ShareRestrictionModal(_ref) {
238
239
  variant: "secondary",
239
240
  color: "error",
240
241
  startIcon: /*#__PURE__*/React.createElement(Icon, {
241
- icon: "trash"
242
+ icon: TrashIcon
242
243
  }),
243
244
  onClick: handleRevokeLink,
244
245
  busy: loading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "23.1.0",
3
+ "version": "23.2.0",
4
4
  "description": "Provides sharing login for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -79,5 +79,5 @@
79
79
  "sideEffects": [
80
80
  "*.css"
81
81
  ],
82
- "gitHead": "f83732db828dad35ba70c744c91f8081d26254f2"
82
+ "gitHead": "5643e4881d740ef129b2875eb6e5e3b7a8666266"
83
83
  }
@@ -5,6 +5,7 @@ import React from 'react'
5
5
  import Box from 'cozy-ui/transpiled/react/Box'
6
6
  import DatePicker from 'cozy-ui/transpiled/react/DatePicker'
7
7
  import Icon from 'cozy-ui/transpiled/react/Icon'
8
+ import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar'
8
9
  import List from 'cozy-ui/transpiled/react/List'
9
10
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
10
11
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
@@ -32,7 +33,7 @@ export const BoxDate = ({ onChange, date, toggle, onToggle }) => {
32
33
  onClick={() => handleDateToggle(!toggle)}
33
34
  >
34
35
  <ListItemIcon>
35
- <Icon icon="calendar" />
36
+ <Icon icon={CalendarIcon} />
36
37
  </ListItemIcon>
37
38
  <ListItemText primary={t('BoxDate.text')} />
38
39
  <ListItemSecondaryAction>
@@ -6,6 +6,8 @@ import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
6
6
  import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
7
7
  import Box from 'cozy-ui/transpiled/react/Box'
8
8
  import Icon from 'cozy-ui/transpiled/react/Icon'
9
+ import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
10
+ import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
9
11
  import List from 'cozy-ui/transpiled/react/List'
10
12
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
11
13
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
@@ -55,14 +57,14 @@ export const BoxEditingRights = ({ file, editingRights, setEditingRights }) => {
55
57
  onClick={toggleMenuDisplayed}
56
58
  >
57
59
  <ListItemIcon>
58
- <Icon icon="people" />
60
+ <Icon icon={PeopleIcon} />
59
61
  </ListItemIcon>
60
62
  <ListItemText
61
63
  primary={t('BoxEditingRights.text')}
62
64
  secondary={textSecondary}
63
65
  />
64
66
  <ListItemIcon className="u-mr-half">
65
- <Icon icon="bottom" />
67
+ <Icon icon={BottomIcon} />
66
68
  </ListItemIcon>
67
69
  </ListItem>
68
70
  </List>
@@ -4,6 +4,8 @@ import React, { useState } from 'react'
4
4
  import Box from 'cozy-ui/transpiled/react/Box'
5
5
  import Icon from 'cozy-ui/transpiled/react/Icon'
6
6
  import IconButton from 'cozy-ui/transpiled/react/IconButton'
7
+ import CopyIcon from 'cozy-ui/transpiled/react/Icons/Copy'
8
+ import PasswordIcon from 'cozy-ui/transpiled/react/Icons/Password'
7
9
  import List from 'cozy-ui/transpiled/react/List'
8
10
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
9
11
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
@@ -67,7 +69,7 @@ export const BoxPassword = ({
67
69
  onClick={() => handlePasswordToggle(!toggle)}
68
70
  >
69
71
  <ListItemIcon>
70
- <Icon icon="password" />
72
+ <Icon icon={PasswordIcon} />
71
73
  </ListItemIcon>
72
74
  <ListItemText primary={t('BoxPassword.text')} />
73
75
  <ListItemSecondaryAction>
@@ -104,7 +106,7 @@ export const BoxPassword = ({
104
106
  InputProps={{
105
107
  endAdornment: (
106
108
  <IconButton onClick={handleCopy}>
107
- <Icon icon="copy" />
109
+ <Icon icon={CopyIcon} />
108
110
  </IconButton>
109
111
  )
110
112
  }}
@@ -6,6 +6,7 @@ import { generateWebLink, useClient } from 'cozy-client'
6
6
  import Button from 'cozy-ui/transpiled/react/Buttons'
7
7
  import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
8
8
  import Icon from 'cozy-ui/transpiled/react/Icon'
9
+ import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash'
9
10
  import { useAlert } from 'cozy-ui/transpiled/react/providers/Alert'
10
11
  import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
11
12
 
@@ -163,7 +164,7 @@ export const ShareRestrictionModal = ({ file, onClose }) => {
163
164
  label={t('Share.permissionLink.deactivate')}
164
165
  variant="secondary"
165
166
  color="error"
166
- startIcon={<Icon icon="trash" />}
167
+ startIcon={<Icon icon={TrashIcon} />}
167
168
  onClick={handleRevokeLink}
168
169
  busy={loading}
169
170
  />