@synerise/ds-logic 1.1.29 → 1.1.31

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.31](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.30...@synerise/ds-logic@1.1.31) (2026-03-20)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-logic
9
+
10
+ ## [1.1.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.29...@synerise/ds-logic@1.1.30) (2026-03-09)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-logic
13
+
6
14
  ## [1.1.29](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@1.1.28...@synerise/ds-logic@1.1.29) (2026-02-23)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-logic
package/README.md CHANGED
@@ -13,7 +13,7 @@ or
13
13
  yarn add @synerise/ds-logic
14
14
  ```
15
15
 
16
- ## Usage of Login
16
+ ## Usage of Logic
17
17
 
18
18
  ```
19
19
  import Logic from '@synerise/ds-logic'
@@ -39,9 +39,10 @@ import Logic from '@synerise/ds-logic'
39
39
 
40
40
  | Property | Description | Type | Default |
41
41
  | -------- | ------------------------------------------ | ----------------------- | ------------------------------------------------------------ |
42
- | value | Value of logic component | string | - |
43
- | onChange | Function called when user change the value | (value: string) => void | - |
44
- | options | Custom list of options | LogicOperator[] | `[{value: 'AND', label: 'And'}, {value: 'OR', label: 'Or'}]` |
42
+ | value | Value of logic component | `LogicOperatorValue` (`'AND' \| 'OR' \| string`) | - |
43
+ | onChange | Function called when user change the value | `(value: LogicOperatorValue) => void` | - |
44
+ | options | Custom list of options | `LogicOperator[]` | i18n-resolved `AND` / `OR` labels (`DS.LOGIC.AND`, `DS.LOGIC.OR`) |
45
+ | readOnly | Disables click interaction and hover styles | `boolean` | `false` |
45
46
 
46
47
  ### LogicOperator
47
48
 
@@ -54,10 +55,11 @@ import Logic from '@synerise/ds-logic'
54
55
 
55
56
  | Property | Description | Type | Default |
56
57
  | -------- | --------------------------------------------------------------------------------------- | --------------------------- | ------- |
57
- | matching | Value of Matching component | boolean | false |
58
+ | matching | Value of Matching component | boolean | `true` |
58
59
  | sentence | Custom sentence require `#MATCHING_TOGGLE#`, which will be replaced by Toggle component | string | - |
59
60
  | onChange | Function called when user click on Toggle component | (matching: boolean) => void | - |
60
- | texts | Custom labels of Matching, Not matching | MatchingTexts | - |
61
+ | texts | Custom labels of Matching, Not matching | `Partial<MatchingTexts>` | - |
62
+ | readOnly | Disables click interaction and hover styles | `boolean` | `false` |
61
63
 
62
64
  ### MatchingTexts
63
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-logic",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "Logic UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,9 +35,9 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-icon": "^1.14.1",
39
- "@synerise/ds-typography": "^1.1.10",
40
- "@synerise/ds-utils": "^1.6.0"
38
+ "@synerise/ds-icon": "^1.15.0",
39
+ "@synerise/ds-typography": "^1.1.12",
40
+ "@synerise/ds-utils": "^1.7.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@synerise/ds-core": "*",
@@ -45,5 +45,5 @@
45
45
  "react-intl": ">=3.12.0 <= 6.8",
46
46
  "styled-components": "^5.3.3"
47
47
  },
48
- "gitHead": "2997f77d657c1aed2fc39901d3e0b8f88b05cc53"
48
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
49
49
  }