@synerise/ds-table 1.6.7 → 1.6.8

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,17 @@
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.6.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.6.7...@synerise/ds-table@1.6.8) (2025-10-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **tags:** adjust tags to table requirements ([fe1aa4d](https://github.com/synerise/synerise-design/commit/fe1aa4d00f8ad95fb191f866b548af72863a8963))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.6.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.6.6...@synerise/ds-table@1.6.7) (2025-10-10)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-table
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type TagsGroupProps } from './TagsGroup.types';
3
- export declare const TagsGroupCell: ({ disabled, tagsProps, ...htmlAttributes }: TagsGroupProps) => React.JSX.Element;
3
+ export declare const TagsGroupCell: ({ disabled, isError, isLoading, tagsProps, ...htmlAttributes }: TagsGroupProps) => React.JSX.Element;
@@ -1,15 +1,34 @@
1
- var _excluded = ["disabled", "tagsProps"];
1
+ var _excluded = ["disabled", "isError", "isLoading", "tagsProps"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
5
+ import { useTheme } from '@synerise/ds-core';
6
+ import Icon, { WarningFillM } from '@synerise/ds-icon';
7
+ import Skeleton from '@synerise/ds-skeleton';
5
8
  import Tags from '@synerise/ds-tags';
6
9
  import * as S from './TagsGroup.styles';
7
10
  export var TagsGroupCell = function TagsGroupCell(_ref) {
8
11
  var _tagsProps$selected;
9
12
  var disabled = _ref.disabled,
13
+ isError = _ref.isError,
14
+ isLoading = _ref.isLoading,
10
15
  tagsProps = _ref.tagsProps,
11
16
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
17
+ var theme = useTheme();
12
18
  var isEmpty = !(tagsProps != null && (_tagsProps$selected = tagsProps.selected) != null && _tagsProps$selected.length);
19
+ if (isError) {
20
+ return /*#__PURE__*/React.createElement(Icon, {
21
+ component: /*#__PURE__*/React.createElement(WarningFillM, null),
22
+ color: theme.palette['red-600'],
23
+ size: 24
24
+ });
25
+ }
26
+ if (isLoading) {
27
+ return /*#__PURE__*/React.createElement(S.TagsGroupSkeleton, null, /*#__PURE__*/React.createElement(Skeleton, {
28
+ size: "M",
29
+ numberOfSkeletons: 1
30
+ }));
31
+ }
13
32
  return /*#__PURE__*/React.createElement(S.TagsGroupWrapper, _extends({}, htmlAttributes, {
14
33
  isDisabled: disabled,
15
34
  isEmpty: isEmpty
@@ -2,3 +2,4 @@ export declare const TagsGroupWrapper: import("styled-components").StyledCompone
2
2
  isDisabled?: boolean;
3
3
  isEmpty?: boolean;
4
4
  }, never>;
5
+ export declare const TagsGroupSkeleton: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -6,4 +6,8 @@ export var TagsGroupWrapper = styled.div.withConfig({
6
6
  componentId: "sc-a6dl1s-0"
7
7
  })(["min-width:0;", "{margin-bottom:0;}", "{flex-flow:nowrap;}", ""], Container, SelectedTags, function (props) {
8
8
  return props.isDisabled ? "\n opacity: 0.4;\n pointer-events: none;\n " : "\n " + AddTagButton + AddTagButton + AddTagButton + " svg {\n transition: none;\n }\n " + (!props.isEmpty && AddTagButton + " {\n flex-shrink: 0\n }") + "\n " + AddTagButton + ":not(:focus) {\n visibility: hidden;\n }\n tr:hover &, \n .virtual-table-row:hover & {\n " + AddTagButton + " {\n visibility: visible;\n }\n }\n ";
9
- });
9
+ });
10
+ export var TagsGroupSkeleton = styled.div.withConfig({
11
+ displayName: "TagsGroupstyles__TagsGroupSkeleton",
12
+ componentId: "sc-a6dl1s-1"
13
+ })(["display:flex;align-items:center;width:100%;"]);
@@ -2,5 +2,7 @@ import { type TagsProps } from '@synerise/ds-tags';
2
2
  import { type WithHTMLAttributes } from '@synerise/ds-utils';
3
3
  export type TagsGroupProps = WithHTMLAttributes<HTMLDivElement, {
4
4
  disabled?: boolean;
5
+ isLoading?: boolean;
6
+ isError?: boolean;
5
7
  tagsProps?: TagsProps;
6
8
  }>;
@@ -44,7 +44,6 @@ var OuterListElement = function OuterListElement(containerRef, isSticky) {
44
44
  ref: ref,
45
45
  onWheel: onWheelHandler,
46
46
  "data-testid": "virtual-table-scrollable-window-sticky",
47
- "data-popup-container": true,
48
47
  style: _extends({}, rest, {
49
48
  maxHeight: height
50
49
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-table",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "Table UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -35,26 +35,26 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-alert": "^1.1.22",
38
+ "@synerise/ds-alert": "^1.1.23",
39
39
  "@synerise/ds-badge": "^1.0.24",
40
- "@synerise/ds-button": "^1.4.14",
41
- "@synerise/ds-button-group": "^1.1.21",
40
+ "@synerise/ds-button": "^1.4.15",
41
+ "@synerise/ds-button-group": "^1.1.22",
42
42
  "@synerise/ds-checkbox": "^1.2.0",
43
- "@synerise/ds-dropdown": "^1.0.31",
43
+ "@synerise/ds-dropdown": "^1.0.32",
44
44
  "@synerise/ds-flag": "^1.0.5",
45
45
  "@synerise/ds-icon": "^1.7.3",
46
46
  "@synerise/ds-input": "^1.4.0",
47
47
  "@synerise/ds-input-number": "^1.2.13",
48
48
  "@synerise/ds-loader": "^1.0.10",
49
- "@synerise/ds-menu": "^1.1.0",
50
- "@synerise/ds-modal": "^1.2.14",
51
- "@synerise/ds-result": "^1.0.27",
49
+ "@synerise/ds-menu": "^1.1.1",
50
+ "@synerise/ds-modal": "^1.2.15",
51
+ "@synerise/ds-result": "^1.0.28",
52
52
  "@synerise/ds-scrollbar": "^1.1.9",
53
- "@synerise/ds-search": "^1.3.7",
53
+ "@synerise/ds-search": "^1.3.8",
54
54
  "@synerise/ds-skeleton": "^1.0.24",
55
- "@synerise/ds-status": "^1.2.18",
56
- "@synerise/ds-tag": "^1.3.2",
57
- "@synerise/ds-tags": "^1.4.6",
55
+ "@synerise/ds-status": "^1.2.19",
56
+ "@synerise/ds-tag": "^1.3.3",
57
+ "@synerise/ds-tags": "^1.4.7",
58
58
  "@synerise/ds-tooltip": "^1.2.1",
59
59
  "@synerise/ds-typography": "^1.0.22",
60
60
  "@synerise/ds-utils": "^1.5.0",
@@ -76,5 +76,5 @@
76
76
  "react-intl": ">=3.12.0 <= 6.8",
77
77
  "styled-components": "^5.3.3"
78
78
  },
79
- "gitHead": "4e09fc37fa21ff2e27655e7bb305b136db0ca199"
79
+ "gitHead": "dff7f973bc9fb59e3eb88c658add8b6eb5a1b792"
80
80
  }