@synerise/ds-context-selector 0.22.3 → 0.23.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
@@ -3,6 +3,28 @@
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.23.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.22.4...@synerise/ds-context-selector@0.23.0) (2024-06-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * **context-selector:** swapped Menu.Item to ListItem ([ee6c517](https://github.com/Synerise/synerise-design/commit/ee6c5176701112014c7cb2dc9b50f46e3330355a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.22.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.22.3...@synerise/ds-context-selector@0.22.4) (2024-06-24)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **information-card:** updated ui and added actions and properties ([c30ed42](https://github.com/Synerise/synerise-design/commit/c30ed4203511f2c29aeea6d8bc17a6fd6170ffe5))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [0.22.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.22.2...@synerise/ds-context-selector@0.22.3) (2024-06-21)
7
29
 
8
30
  **Note:** Version bump only for package @synerise/ds-context-selector
@@ -120,7 +120,7 @@ var ContextSelector = function ContextSelector(_ref) {
120
120
  getPopupContainer: getPopupContainerOverride || getPopupContainer
121
121
  },
122
122
  renderHoverTooltip: selectedItem ? function () {
123
- return /*#__PURE__*/React.createElement(InformationCard, {
123
+ return /*#__PURE__*/React.createElement(InformationCard, _extends({
124
124
  icon: selectedItem.icon,
125
125
  subtitle: selectedItem.subtitle,
126
126
  title: selectedItem.name,
@@ -129,7 +129,7 @@ var ContextSelector = function ContextSelector(_ref) {
129
129
  disabled: true,
130
130
  label: undefined
131
131
  } : undefined
132
- });
132
+ }, selectedItem.informationCardProps));
133
133
  } : undefined
134
134
  }, getMenuEntryProps == null ? void 0 : getMenuEntryProps(selectedItem))]
135
135
  });
@@ -1,7 +1,6 @@
1
- import Menu from '@synerise/ds-menu';
2
1
  export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
2
  export declare const ContentPlaceholder: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export declare const ItemsList: import("styled-components").StyledComponent<typeof Menu, any, {}, never>;
3
+ export declare const ItemsList: import("styled-components").StyledComponent<"div", any, {}, never>;
5
4
  export declare const SearchResult: import("styled-components").StyledComponent<"span", any, {}, never>;
6
5
  export declare const SearchResultHighlight: import("styled-components").StyledComponent<"span", any, {}, never>;
7
6
  export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,5 +1,4 @@
1
1
  import styled from 'styled-components';
2
- import Menu from '@synerise/ds-menu';
3
2
  export var TabsWrapper = styled.div.withConfig({
4
3
  displayName: "ContextSelectorstyles__TabsWrapper",
5
4
  componentId: "sc-1tuu6xk-0"
@@ -8,10 +7,12 @@ export var ContentPlaceholder = styled.div.withConfig({
8
7
  displayName: "ContextSelectorstyles__ContentPlaceholder",
9
8
  componentId: "sc-1tuu6xk-1"
10
9
  })(["height:100px;"]);
11
- export var ItemsList = styled(Menu).withConfig({
10
+ export var ItemsList = styled.div.withConfig({
12
11
  displayName: "ContextSelectorstyles__ItemsList",
13
12
  componentId: "sc-1tuu6xk-2"
14
- })(["width:100%;.ds-context-selector-list{height:auto !important;max-height:300px;}"]);
13
+ })(["width:100%;background:", ";.ds-context-selector-list{height:auto !important;max-height:300px;}"], function (props) {
14
+ return props.theme.palette.white;
15
+ });
15
16
  export var SearchResult = styled.span.withConfig({
16
17
  displayName: "ContextSelectorstyles__SearchResult",
17
18
  componentId: "sc-1tuu6xk-3"
@@ -3,6 +3,7 @@ import { HandledEventsType } from '@synerise/ds-utils';
3
3
  import { ItemSize } from '@synerise/ds-menu';
4
4
  import { DropdownProps } from '@synerise/ds-dropdown/dist/Dropdown';
5
5
  import type { FactorsProps } from '@synerise/ds-factors';
6
+ import { InformationCardProps } from '@synerise/ds-information-card';
6
7
  export type ContextTexts = {
7
8
  buttonLabel: string;
8
9
  searchPlaceholder: string;
@@ -20,6 +21,7 @@ export type ContextItem = {
20
21
  subGroups?: ContextGroup[];
21
22
  useCustomIcon?: boolean;
22
23
  subtitle?: string;
24
+ informationCardProps?: Partial<InformationCardProps>;
23
25
  };
24
26
  export type ContextGroup = {
25
27
  id: ReactText;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ContextSelectorDropdownItemProps } from '../ContextSelector.types';
3
- declare const ContextSelectorDropdownItem: React.FC<ContextSelectorDropdownItemProps>;
3
+ declare const ContextSelectorDropdownItem: ({ item, clearSearch, searchQuery, hideDropdown, select, selected, className, menuItemHeight, style, }: ContextSelectorDropdownItemProps) => React.JSX.Element;
4
4
  export default ContextSelectorDropdownItem;
@@ -4,9 +4,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon, { CheckS } from '@synerise/ds-icon';
9
- import Menu from '@synerise/ds-menu';
9
+ import ListItem from '@synerise/ds-list-item';
10
10
  import { theme } from '@synerise/ds-core';
11
11
 
12
12
  var ContextSelectorDropdownItem = function ContextSelectorDropdownItem(_ref) {
@@ -24,7 +24,7 @@ var ContextSelectorDropdownItem = function ContextSelectorDropdownItem(_ref) {
24
24
  _ = item.icon,
25
25
  itemProps = _objectWithoutPropertiesLoose(item, _excluded);
26
26
 
27
- return /*#__PURE__*/React.createElement(Menu.Item, _extends({
27
+ return /*#__PURE__*/React.createElement(ListItem, _extends({
28
28
  style: style,
29
29
  className: className,
30
30
  key: item.name + item.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-context-selector",
3
- "version": "0.22.3",
3
+ "version": "0.23.0",
4
4
  "description": "ContextSelector UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -27,34 +27,31 @@
27
27
  "test:watch": "npm run test -- --watchAll",
28
28
  "types": "tsc --noEmit"
29
29
  },
30
- "gitHead": "ef835e848d4f02cca258130baa6c9f44dfa15dd0",
30
+ "gitHead": "587eb113074985ae21e4f0c25ec33c3e3e2e072b",
31
31
  "sideEffects": [
32
32
  "dist/style/*",
33
33
  "*.less"
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.21.0",
38
- "@synerise/ds-dropdown": "^0.18.1",
39
- "@synerise/ds-factors": "^0.22.28",
40
- "@synerise/ds-icon": "^0.62.1",
41
- "@synerise/ds-information-card": "^0.4.9",
42
- "@synerise/ds-menu": "^0.19.2",
43
- "@synerise/ds-result": "^0.6.57",
44
- "@synerise/ds-scrollbar": "^0.11.1",
37
+ "@synerise/ds-button": "^0.21.1",
38
+ "@synerise/ds-dropdown": "^0.18.2",
39
+ "@synerise/ds-factors": "^0.22.30",
40
+ "@synerise/ds-icon": "^0.63.0",
41
+ "@synerise/ds-information-card": "^0.4.11",
42
+ "@synerise/ds-list-item": "^0.2.0",
43
+ "@synerise/ds-menu": "^0.19.3",
44
+ "@synerise/ds-result": "^0.6.58",
45
+ "@synerise/ds-scrollbar": "^0.11.2",
45
46
  "@synerise/ds-skeleton": "^0.6.1",
46
- "@synerise/ds-tabs": "^0.14.5",
47
+ "@synerise/ds-tabs": "^0.14.6",
47
48
  "@synerise/ds-utils": "^0.27.0",
48
49
  "react-window": "1.8.5",
49
50
  "uuid": "^8.3.2"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "@synerise/ds-core": "*",
53
- "react": ">=16.9.0 < 17.0.0",
54
- "styled-components": "5.0.1"
55
- },
56
- "devDependencies": {
57
- "@testing-library/jest-dom": "5.1.1",
58
- "@testing-library/user-event": "^10.3.1"
54
+ "react": ">=16.9.0 <= 17.0.2",
55
+ "styled-components": "^5.0.1"
59
56
  }
60
57
  }