cozy-ui 110.7.0 → 110.7.1

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
+ ## [110.7.1](https://github.com/cozy/cozy-ui/compare/v110.7.0...v110.7.1) (2024-07-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **AlertProvider:** `filled` wasn't the default variant ([c4d545d](https://github.com/cozy/cozy-ui/commit/c4d545d))
7
+
1
8
  # [110.7.0](https://github.com/cozy/cozy-ui/compare/v110.6.0...v110.7.0) (2024-07-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "110.7.0",
3
+ "version": "110.7.1",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -13,7 +13,7 @@ const initialVariants = [{
13
13
  largeIcon: false,
14
14
  noIcon: false,
15
15
  square: false,
16
- filled: false,
16
+ standard: false,
17
17
  outlined: false,
18
18
  close: true
19
19
  }]
@@ -30,17 +30,17 @@ const Component = ({ variant }) => {
30
30
  severity: 'success',
31
31
  message: 'Alert message',
32
32
  color: variant.color ? "#EFA82D" : undefined,
33
- variant: variant.filled
34
- ? 'filled'
33
+ variant: variant.standard
34
+ ? 'standard'
35
35
  : variant.outlined
36
36
  ? 'outlined'
37
- : undefined,
37
+ : 'filled',
38
38
  block: variant.block,
39
39
  square: variant.square,
40
40
  icon: variant.noIcon
41
41
  ? false
42
42
  : variant.largeIcon
43
- ? <Icon icon={DeviceLaptopIcon} color="var(--errorColor)" size={32} />
43
+ ? <Icon icon={DeviceLaptopIcon} size={32} />
44
44
  : undefined,
45
45
  onClose: variant.close ? () => {} : undefined
46
46
  })
@@ -56,6 +56,7 @@ const AlertProvider = ({ children }) => {
56
56
  {children}
57
57
  <Snackbar open={open} onClose={handleClose(state, setState)}>
58
58
  <Alert
59
+ variant="filled"
59
60
  elevation={6}
60
61
  onClose={handleClose(state, setState)}
61
62
  {...alertProps}
@@ -80,6 +80,7 @@ var AlertProvider = function AlertProvider(_ref) {
80
80
  open: open,
81
81
  onClose: handleClose(state, setState)
82
82
  }, /*#__PURE__*/React.createElement(Alert, _extends({
83
+ variant: "filled",
83
84
  elevation: 6,
84
85
  onClose: handleClose(state, setState)
85
86
  }, alertProps), title && /*#__PURE__*/React.createElement(AlertTitle, null, title), message)));