cozy-ui 106.2.0 → 106.4.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,17 @@
1
+ # [106.4.0](https://github.com/cozy/cozy-ui/compare/v106.3.0...v106.4.0) (2024-05-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Flagship:** Mock getFlagshipMetadata if node_env = test ([5411534](https://github.com/cozy/cozy-ui/commit/5411534))
7
+
8
+ # [106.3.0](https://github.com/cozy/cozy-ui/compare/v106.2.0...v106.3.0) (2024-05-15)
9
+
10
+
11
+ ### Features
12
+
13
+ * **TextField:** Force left text alignment for input ([d3ff3c2](https://github.com/cozy/cozy-ui/commit/d3ff3c2))
14
+
1
15
  # [106.2.0](https://github.com/cozy/cozy-ui/compare/v106.1.1...v106.2.0) (2024-05-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "106.2.0",
3
+ "version": "106.4.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -52,6 +52,7 @@ export const makeLightNormalOverrides = theme => ({
52
52
  transition: `border-color ${theme.transitions.duration.shorter}ms`
53
53
  },
54
54
  input: {
55
+ textAlign: 'left',
55
56
  padding: '18.5px 16px'
56
57
  },
57
58
  inputMarginDense: {
@@ -89,15 +89,16 @@ export const isRsg = !!document.getElementById('rsg-root')
89
89
  * Overrides flagship metadata
90
90
  * See https://github.com/cozy/cozy-libs/blob/master/packages/cozy-device-helper/src/flagship.ts#L13
91
91
  */
92
- export const getFlagshipMetadata = isRsg
93
- ? () => ({
94
- immersive:
95
- JSON.parse(localStorage.getItem('flagship-app'))?.contained === 'off' ||
96
- false,
97
- statusBarHeight: 40,
98
- navbarHeight: 40
99
- })
100
- : getFlagshipMetadataFromDeviceHelper
92
+ export const getFlagshipMetadata =
93
+ isRsg || process.env.NODE_ENV === 'test'
94
+ ? () => ({
95
+ immersive:
96
+ JSON.parse(localStorage.getItem('flagship-app'))?.contained ===
97
+ 'off' || false,
98
+ statusBarHeight: 40,
99
+ navbarHeight: 40
100
+ })
101
+ : getFlagshipMetadataFromDeviceHelper
101
102
 
102
103
  /**
103
104
  * Set the css values for Status and Nav bar inside cozy-ui documentation
@@ -49,6 +49,7 @@ export var makeLightNormalOverrides = function makeLightNormalOverrides(theme) {
49
49
  transition: "border-color ".concat(theme.transitions.duration.shorter, "ms")
50
50
  },
51
51
  input: {
52
+ textAlign: 'left',
52
53
  padding: '18.5px 16px'
53
54
  },
54
55
  inputMarginDense: {
@@ -89,7 +89,7 @@ export var isRsg = !!document.getElementById('rsg-root');
89
89
  * See https://github.com/cozy/cozy-libs/blob/master/packages/cozy-device-helper/src/flagship.ts#L13
90
90
  */
91
91
 
92
- export var getFlagshipMetadata = isRsg ? function () {
92
+ export var getFlagshipMetadata = isRsg || process.env.NODE_ENV === 'test' ? function () {
93
93
  var _JSON$parse;
94
94
 
95
95
  return {