cozy-ui 105.0.2 → 105.1.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
@@ -1,3 +1,15 @@
1
+ # [105.1.0](https://github.com/cozy/cozy-ui/compare/v105.0.2...v105.1.0) (2024-03-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **NestedSelect:** Remove title attribute on modal ([de57aff](https://github.com/cozy/cozy-ui/commit/de57aff))
7
+
8
+
9
+ ### Features
10
+
11
+ * **NestedSelect:** Add ellipsis on modal title ([341db5a](https://github.com/cozy/cozy-ui/commit/341db5a))
12
+
1
13
  ## [105.0.2](https://github.com/cozy/cozy-ui/compare/v105.0.1...v105.0.2) (2024-03-20)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "105.0.2",
3
+ "version": "105.1.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -13,7 +13,8 @@ import List from '../List'
13
13
 
14
14
  const NestedSelectDialogHeader = ({ onClickBack, showBack, title }) => {
15
15
  const { dialogTitleProps } = useCozyDialog({
16
- open: true
16
+ open: true,
17
+ onClose: true
17
18
  })
18
19
 
19
20
  if (!title) return null
@@ -28,7 +29,7 @@ const NestedSelectDialogHeader = ({ onClickBack, showBack, title }) => {
28
29
  </IconButton>
29
30
  </Img>
30
31
  )}
31
- <Bd>{title}</Bd>
32
+ <Bd className="u-ellipsis">{title}</Bd>
32
33
  </Media>
33
34
  </DialogTitle>
34
35
  )
@@ -44,8 +45,9 @@ const NestedSelectDialogContent = ({ children }) => {
44
45
 
45
46
  const NestedSelectModal = props => {
46
47
  const { dialogProps } = useCozyDialog({ open: true })
48
+
47
49
  return (
48
- <Dialog {...dialogProps} title={props.title} onClose={props.onClose}>
50
+ <Dialog {...dialogProps} onClose={props.onClose}>
49
51
  <DialogCloseButton
50
52
  onClick={props.onClose}
51
53
  data-testid={`modal-close-button-nested-select`}
@@ -18,7 +18,8 @@ var NestedSelectDialogHeader = function NestedSelectDialogHeader(_ref) {
18
18
  title = _ref.title;
19
19
 
20
20
  var _useCozyDialog = useCozyDialog({
21
- open: true
21
+ open: true,
22
+ onClose: true
22
23
  }),
23
24
  dialogTitleProps = _useCozyDialog.dialogTitleProps;
24
25
 
@@ -30,7 +31,9 @@ var NestedSelectDialogHeader = function NestedSelectDialogHeader(_ref) {
30
31
  onClick: onClickBack
31
32
  }, /*#__PURE__*/React.createElement(Icon, {
32
33
  icon: LeftIcon
33
- }))), /*#__PURE__*/React.createElement(Bd, null, title)));
34
+ }))), /*#__PURE__*/React.createElement(Bd, {
35
+ className: "u-ellipsis"
36
+ }, title)));
34
37
  };
35
38
 
36
39
  var NestedSelectDialogContent = function NestedSelectDialogContent(_ref2) {
@@ -47,7 +50,6 @@ var NestedSelectModal = function NestedSelectModal(props) {
47
50
  dialogProps = _useCozyDialog2.dialogProps;
48
51
 
49
52
  return /*#__PURE__*/React.createElement(Dialog, _extends({}, dialogProps, {
50
- title: props.title,
51
53
  onClose: props.onClose
52
54
  }), /*#__PURE__*/React.createElement(DialogCloseButton, {
53
55
  onClick: props.onClose,