cozy-ui 109.0.0 → 109.0.2

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
+ ## [109.0.2](https://github.com/cozy/cozy-ui/compare/v109.0.1...v109.0.2) (2024-06-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **InfosBadge:** Color wasn't theme responsive ([c3cf75e](https://github.com/cozy/cozy-ui/commit/c3cf75e))
7
+
8
+ ## [109.0.1](https://github.com/cozy/cozy-ui/compare/v109.0.0...v109.0.1) (2024-06-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **ExpandedAttributes:** Use Client to get excluded metadata ([1b49153](https://github.com/cozy/cozy-ui/commit/1b49153))
14
+
1
15
  # [109.0.0](https://github.com/cozy/cozy-ui/compare/v108.1.0...v109.0.0) (2024-06-06)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "109.0.0",
3
+ "version": "109.0.2",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -8,9 +8,9 @@ const customStyles = () => ({
8
8
  qualifier: {
9
9
  height: '1.125rem', // compensation of the specific border size
10
10
  minWidth: '1.125rem',
11
- backgroundColor: 'white',
12
- color: 'var(--slateGrey)',
13
- border: '1px solid var(--silver)'
11
+ backgroundColor: 'var(--paperBackgroundColor)',
12
+ color: 'var(--iconTextColor)',
13
+ border: '1px solid var(--borderMainColor)'
14
14
  }
15
15
  })
16
16
 
@@ -19,11 +19,9 @@ export const normalizeExpandedAttribute = attr =>
19
19
  export const notExpandedAttributes = {
20
20
  'io.cozy.contacts': ['fullname', 'civility', 'note'],
21
21
  'io.cozy.files': [
22
- 'name',
23
- 'metadata.datetime',
24
- 'metadata.referencedDate',
25
- 'metadata.expirationDate',
22
+ ...KNOWN_DATE_METADATA_NAMES.map(x => `metadata.${x}`),
26
23
  'metadata.noticePeriod',
24
+ 'name',
27
25
  'flexsearchProps:translated:qualificationLabel',
28
26
  'flexsearchProps:translated:driverLicense',
29
27
  'flexsearchProps:translated:paymentProofFamilyAllowance',
@@ -157,6 +157,7 @@ const files = [
157
157
  datetimeLabel: 'expirationDate',
158
158
  referencedDate: '2024-01-01T12:00:00.000Z',
159
159
  expirationDate: '2024-01-11T12:00:00.000Z',
160
+ issueDate: '2024-01-11T12:00:00.000Z',
160
161
  noticePeriod: '30',
161
162
  qualification: {
162
163
  label: 'driver_license'
@@ -13,9 +13,9 @@ var customStyles = function customStyles() {
13
13
  height: '1.125rem',
14
14
  // compensation of the specific border size
15
15
  minWidth: '1.125rem',
16
- backgroundColor: 'white',
17
- color: 'var(--slateGrey)',
18
- border: '1px solid var(--silver)'
16
+ backgroundColor: 'var(--paperBackgroundColor)',
17
+ color: 'var(--iconTextColor)',
18
+ border: '1px solid var(--borderMainColor)'
19
19
  }
20
20
  };
21
21
  };
@@ -10,7 +10,9 @@ export var normalizeExpandedAttribute = function normalizeExpandedAttribute(attr
10
10
 
11
11
  export var notExpandedAttributes = {
12
12
  'io.cozy.contacts': ['fullname', 'civility', 'note'],
13
- 'io.cozy.files': ['name', 'metadata.datetime', 'metadata.referencedDate', 'metadata.expirationDate', 'metadata.noticePeriod', 'flexsearchProps:translated:qualificationLabel', 'flexsearchProps:translated:driverLicense', 'flexsearchProps:translated:paymentProofFamilyAllowance', 'flexsearchProps:translated:caf', 'flexsearchProps:translated:vehicleRegistration', 'flexsearchProps:translated:nationalIdCard', 'flexsearchProps:translated:bankDetails', 'flexsearchProps:translated:paySheet', 'flexsearchProps:translated:passport', 'flexsearchProps:translated:residencePermit']
13
+ 'io.cozy.files': [].concat(_toConsumableArray(KNOWN_DATE_METADATA_NAMES.map(function (x) {
14
+ return "metadata.".concat(x);
15
+ })), ['metadata.noticePeriod', 'name', 'flexsearchProps:translated:qualificationLabel', 'flexsearchProps:translated:driverLicense', 'flexsearchProps:translated:paymentProofFamilyAllowance', 'flexsearchProps:translated:caf', 'flexsearchProps:translated:vehicleRegistration', 'flexsearchProps:translated:nationalIdCard', 'flexsearchProps:translated:bankDetails', 'flexsearchProps:translated:paySheet', 'flexsearchProps:translated:passport', 'flexsearchProps:translated:residencePermit'])
14
16
  }; // attributes that we want to display if no attribute of the document is related to the search
15
17
 
16
18
  export var defaultExpandedAttributes = {