cozy-ui 93.1.1 → 93.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
@@ -1,3 +1,10 @@
1
+ # [93.2.0](https://github.com/cozy/cozy-ui/compare/v93.1.1...v93.2.0) (2023-09-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * **NestedSelectModal:** The dialog must be centered ([6d4447f](https://github.com/cozy/cozy-ui/commit/6d4447f))
7
+
1
8
  ## [93.1.1](https://github.com/cozy/cozy-ui/compare/v93.1.0...v93.1.1) (2023-09-18)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "93.1.1",
3
+ "version": "93.2.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@ Use `makeActions` method and create (or use the predefined actions) to build the
11
11
  ```bash
12
12
  const action1 = ({ option1, option2 }) => ({
13
13
  name: action1,
14
- action: ({ option3, option4 }) => {}
14
+ action: (doc, { option3, option4 }) => {}
15
15
  Component: ({ onClick, ...props }) => <SomeComponent {...props} onClick={() => onClick({ option3 })}} />
16
16
  })
17
17
 
@@ -40,17 +40,9 @@ const NestedSelectDialogContent = ({ children }) => {
40
40
  }
41
41
 
42
42
  const NestedSelectModal = props => {
43
- const { dialogProps } = useCozyDialog({
44
- open: true,
45
- align: 'top'
46
- })
43
+ const { dialogProps } = useCozyDialog({ open: true })
47
44
  return (
48
- <Dialog
49
- {...dialogProps}
50
- open={true}
51
- title={props.title}
52
- onClose={props.onClose}
53
- >
45
+ <Dialog {...dialogProps} title={props.title} onClose={props.onClose}>
54
46
  <DialogCloseButton
55
47
  onClick={props.onClose}
56
48
  data-testid={`modal-close-button-nested-select`}
@@ -41,13 +41,11 @@ var NestedSelectDialogContent = function NestedSelectDialogContent(_ref2) {
41
41
 
42
42
  var NestedSelectModal = function NestedSelectModal(props) {
43
43
  var _useCozyDialog2 = useCozyDialog({
44
- open: true,
45
- align: 'top'
44
+ open: true
46
45
  }),
47
46
  dialogProps = _useCozyDialog2.dialogProps;
48
47
 
49
48
  return /*#__PURE__*/React.createElement(Dialog, _extends({}, dialogProps, {
50
- open: true,
51
49
  title: props.title,
52
50
  onClose: props.onClose
53
51
  }), /*#__PURE__*/React.createElement(DialogCloseButton, {