@synerise/ds-operators 0.10.36 → 0.10.37

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
+ ## [0.10.37](https://github.com/Synerise/synerise-design/compare/@synerise/ds-operators@0.10.36...@synerise/ds-operators@0.10.37) (2023-09-19)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-operators
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.10.36](https://github.com/Synerise/synerise-design/compare/@synerise/ds-operators@0.10.35...@synerise/ds-operators@0.10.36) (2023-09-18)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-operators
package/README.md CHANGED
@@ -78,6 +78,7 @@ import Operators from '@synerise/ds-operators'
78
78
 
79
79
  | Property | Description | Type | Default |
80
80
  | --- | --- | --- | --- |
81
+ | error | error validation | boolean | - |
81
82
  | getPopupContainerOverride | Popup container function for child tooltips and dropdowns | (trigger: HTMLElement \ null) => HTMLElement; | - |
82
83
  | groups | Groups of operators | OperatorsGroup[] | [] |
83
84
  | items | Array of operators | OperatorsItem[] | [] |
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { ReactNode, ReactText } from 'react';
2
2
  export declare type OperatorTexts = {
3
3
  buttonLabel: string;
4
4
  searchPlaceholder: string;
@@ -6,19 +6,19 @@ export declare type OperatorTexts = {
6
6
  };
7
7
  export declare type OperatorsItem = {
8
8
  name: string;
9
- icon: React.ReactNode;
9
+ icon: ReactNode;
10
10
  group?: string;
11
- groupId: React.ReactText;
11
+ groupId: ReactText;
12
12
  groupName?: string;
13
- id: React.ReactText;
13
+ id: ReactText;
14
14
  logic?: string;
15
15
  value?: string;
16
16
  subGroups?: OperatorsGroup[];
17
17
  };
18
18
  export declare type OperatorsGroup = {
19
19
  defaultGroup?: boolean;
20
- icon: React.ReactNode;
21
- id: React.ReactText;
20
+ icon: ReactNode;
21
+ id: ReactText;
22
22
  itemType?: string;
23
23
  name: string;
24
24
  tooltip?: string;
@@ -35,6 +35,7 @@ export declare type OperatorsProps = {
35
35
  opened?: boolean;
36
36
  getPopupContainerOverride?: (trigger: HTMLElement | null) => HTMLElement;
37
37
  readOnly?: boolean;
38
+ errorText?: ReactNode;
38
39
  };
39
40
  export declare type OperatorsDropdownProps = {
40
41
  setDropdownVisible: (show: boolean) => void;
package/dist/Operators.js CHANGED
@@ -25,7 +25,8 @@ var Operators = function Operators(_ref) {
25
25
  onActivate = _ref.onActivate,
26
26
  onDeactivate = _ref.onDeactivate,
27
27
  _ref$readOnly = _ref.readOnly,
28
- readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly;
28
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
29
+ errorText = _ref.errorText;
29
30
 
30
31
  var _useIntl = useIntl(),
31
32
  formatMessage = _useIntl.formatMessage;
@@ -80,6 +81,7 @@ var Operators = function Operators(_ref) {
80
81
  title: (value == null ? void 0 : value.name) || '',
81
82
  trigger: ['hover']
82
83
  }, /*#__PURE__*/React.createElement(Button, {
84
+ error: Boolean(errorText),
83
85
  type: "secondary",
84
86
  mode: triggerMode,
85
87
  onClick: !readOnly ? handleClick : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-operators",
3
- "version": "0.10.36",
3
+ "version": "0.10.37",
4
4
  "description": "Operators UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,12 +33,12 @@
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
35
  "@synerise/ds-button": "^0.18.1",
36
- "@synerise/ds-dropdown": "^0.17.78",
36
+ "@synerise/ds-dropdown": "^0.17.79",
37
37
  "@synerise/ds-icon": "^0.58.1",
38
38
  "@synerise/ds-menu": "^0.17.17",
39
39
  "@synerise/ds-result": "^0.6.30",
40
40
  "@synerise/ds-scrollbar": "^0.6.6",
41
- "@synerise/ds-tabs": "^0.13.75",
41
+ "@synerise/ds-tabs": "^0.13.76",
42
42
  "@synerise/ds-tooltip": "^0.14.3",
43
43
  "@synerise/ds-utils": "^0.24.15",
44
44
  "react-intl": "3.12.0",
@@ -54,5 +54,5 @@
54
54
  "@testing-library/react": "10.0.1",
55
55
  "@testing-library/user-event": "^10.3.1"
56
56
  },
57
- "gitHead": "ef59143e0ab93cee5b9a738fa1fa9c60748ddffc"
57
+ "gitHead": "dcdec905a4a36109a33d28d9d31fc0b4af51567e"
58
58
  }