@synerise/ds-context-selector 0.22.4 → 0.23.1

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,25 @@
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-context-selector@0.23.0...@synerise/ds-context-selector@0.23.1) (2024-07-02)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-context-selector
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+
17
+ ### Features
18
+
19
+ * **context-selector:** swapped Menu.Item to ListItem ([ee6c517](https://github.com/Synerise/synerise-design/commit/ee6c5176701112014c7cb2dc9b50f46e3330355a))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [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)
7
26
 
8
27
 
@@ -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"
@@ -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.4",
3
+ "version": "0.23.1",
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": "97079401754d831aff3985620e6cbb623e0eb867",
30
+ "gitHead": "0692552b018dc9c8042f18c773f88890c9ad3270",
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.29",
40
- "@synerise/ds-icon": "^0.62.1",
41
- "@synerise/ds-information-card": "^0.4.10",
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.3",
39
+ "@synerise/ds-factors": "^0.23.0",
40
+ "@synerise/ds-icon": "^0.63.0",
41
+ "@synerise/ds-information-card": "^0.4.12",
42
+ "@synerise/ds-list-item": "^0.3.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.7",
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
  }