@synerise/ds-items-roll 0.6.79 → 0.6.81

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,22 @@
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.6.81](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.6.80...@synerise/ds-items-roll@0.6.81) (2023-10-02)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-items-roll
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.80](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.6.79...@synerise/ds-items-roll@0.6.80) (2023-09-26)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-items-roll
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.6.79](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.6.78...@synerise/ds-items-roll@0.6.79) (2023-09-21)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-items-roll
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemRollElement } from '../ItemsRoll.types';
3
- export declare type ExtrasProps = {
3
+ export type ExtrasProps = {
4
4
  actions: ItemRollElement[];
5
5
  };
6
6
  declare const Extras: React.FC<ExtrasProps>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ItemsRollProps } from './ItemsRoll.types';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<ItemsRollProps, "style" | "className" | "onClearAll" | "maxToShowItems" | "showMoreStep" | "items" | "onSearch" | "onSearchClear" | "searchValue" | "searchPlaceholder" | "actions" | "changeSelectionIcon" | "changeSelectionDropdownProps" | "customSidebarActions" | "groups" | "hideSearch" | "onChangeSelection" | "onItemRemove" | "onItemClick" | "texts" | "useFooter" | "useVirtualizedList" | "virtualizedRowHeight" | "virtualizedRowWidth"> & {
4
- forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
3
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<ItemsRollProps, "intl"> & {
4
+ forwardedRef?: React.Ref<any> | undefined;
5
5
  } & React.RefAttributes<any>> & {
6
6
  WrappedComponent: React.ComponentType<ItemsRollProps>;
7
7
  };
@@ -2,13 +2,13 @@ import * as React from 'react';
2
2
  import { IntlShape } from 'react-intl';
3
3
  import { MenuItemProps } from '@synerise/ds-menu/dist/Elements/Item/MenuItem.types';
4
4
  import { DropdownProps } from '@synerise/ds-dropdown/dist/Dropdown';
5
- export declare type ItemRollElement = MenuItemProps & {
5
+ export type ItemRollElement = MenuItemProps & {
6
6
  id: string;
7
7
  group?: string;
8
8
  };
9
- export declare type Texts = 'changeSelectionLabel' | 'clearAllLabel' | 'itemsLabel' | 'moreLabel' | 'noResultsLabel' | 'popconfirmNoLabel' | 'popconfirmTitleLabel' | 'popconfirmYesLabel' | 'removeTooltipLabel' | 'searchClearTooltipLabel' | 'showLabel' | 'showLessLabel';
10
- export declare type ItemsRollGroup = string;
11
- export declare type ItemsRollProps = {
9
+ export type Texts = 'changeSelectionLabel' | 'clearAllLabel' | 'itemsLabel' | 'moreLabel' | 'noResultsLabel' | 'popconfirmNoLabel' | 'popconfirmTitleLabel' | 'popconfirmYesLabel' | 'removeTooltipLabel' | 'searchClearTooltipLabel' | 'showLabel' | 'showLessLabel';
10
+ export type ItemsRollGroup = string;
11
+ export type ItemsRollProps = {
12
12
  intl: IntlShape;
13
13
  items: ItemRollElement[];
14
14
  onSearch?: (value: string) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Texts, ItemsRollProps } from '../ItemsRoll.types';
3
- export declare type FooterProps = Pick<ItemsRollProps, 'onClearAll' | 'maxToShowItems' | 'showMoreStep'> & {
3
+ export type FooterProps = Pick<ItemsRollProps, 'onClearAll' | 'maxToShowItems' | 'showMoreStep'> & {
4
4
  allTexts: {
5
5
  [k in Texts]: string | React.ReactNode;
6
6
  };
@@ -10,11 +10,11 @@ export declare type FooterProps = Pick<ItemsRollProps, 'onClearAll' | 'maxToShow
10
10
  visibleItemsCount: number;
11
11
  searchMode: boolean;
12
12
  };
13
- export declare type ShowLessButtonProps = {
13
+ export type ShowLessButtonProps = {
14
14
  showDefaultItemsAmount: () => void;
15
15
  showLessLabel: string | React.ReactNode;
16
16
  };
17
- export declare type ShowMoreButtonProps = {
17
+ export type ShowMoreButtonProps = {
18
18
  getShowMoreNumber: number;
19
19
  moreLabel: string | React.ReactNode;
20
20
  showAdditionalItems: () => void;
@@ -29,7 +29,7 @@ var Header = function Header(_ref) {
29
29
  component: /*#__PURE__*/React.createElement(ChangeSelectionIcon, null),
30
30
  size: 24
31
31
  }), allTexts.changeSelectionLabel);
32
- }, [onChangeSelection, allTexts.changeSelectionLabel]);
32
+ }, [ChangeSelectionIcon, onChangeSelection, allTexts.changeSelectionLabel]);
33
33
  return /*#__PURE__*/React.createElement(S.ContainerSpaceBetween, null, /*#__PURE__*/React.createElement(S.HeaderLeft, null, allTexts.itemsLabel, ": ", /*#__PURE__*/React.createElement(S.Bold, null, itemsCount)), /*#__PURE__*/React.createElement(S.HeaderRight, null, onChangeSelection && (changeSelectionDropdownProps ? /*#__PURE__*/React.createElement(Dropdown, changeSelectionDropdownProps, ChangeSelectionButton) : ChangeSelectionButton), !hideSearch && /*#__PURE__*/React.createElement(S.SearchWrapper, null, /*#__PURE__*/React.createElement(SearchInput, {
34
34
  clearTooltip: allTexts.searchClearTooltipLabel,
35
35
  onClear: onSearchClear || NOOP,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemsRollProps, Texts } from '../ItemsRoll.types';
3
- export declare type HeaderProps = Pick<ItemsRollProps, 'actions' | 'changeSelectionIcon' | 'changeSelectionDropdownProps' | 'onChangeSelection' | 'onSearch' | 'onSearchClear' | 'searchValue' | 'searchPlaceholder' | 'hideSearch' | 'customSidebarActions'> & {
3
+ export type HeaderProps = Pick<ItemsRollProps, 'actions' | 'changeSelectionIcon' | 'changeSelectionDropdownProps' | 'onChangeSelection' | 'onSearch' | 'onSearchClear' | 'searchValue' | 'searchPlaceholder' | 'hideSearch' | 'customSidebarActions'> & {
4
4
  allTexts: {
5
5
  [k in Texts]: string | React.ReactNode;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemsRollGroup } from '../ItemsRoll.types';
3
- export declare type RemoveIconProps = {
3
+ export type RemoveIconProps = {
4
4
  id: string;
5
5
  group?: ItemsRollGroup;
6
6
  handleRemove: (id: string, group?: ItemsRollGroup) => void;
@@ -44,7 +44,6 @@ var List = function List(_ref) {
44
44
  var groupItems = itemsInGroup(group, visibleItems);
45
45
  return groupItems.length > 0 ?
46
46
  /*#__PURE__*/
47
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
48
47
  // @ts-ignore
49
48
  React.createElement(Menu.ItemGroup, {
50
49
  key: group,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemRollElement, ItemsRollProps } from '../ItemsRoll.types';
3
- export declare type ListProps = Pick<ItemsRollProps, 'groups' | 'items' | 'onItemClick' | 'onItemRemove' | 'searchValue' | 'useVirtualizedList' | 'virtualizedRowHeight' | 'virtualizedRowWidth'> & {
3
+ export type ListProps = Pick<ItemsRollProps, 'groups' | 'items' | 'onItemClick' | 'onItemRemove' | 'searchValue' | 'useVirtualizedList' | 'virtualizedRowHeight' | 'virtualizedRowWidth'> & {
4
4
  noResultsLabel: string | React.ReactNode;
5
5
  removeTooltipLabel: string | React.ReactNode;
6
6
  visibleItems: ItemRollElement[];
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemRollElement, ItemsRollGroup } from '../ItemsRoll.types';
3
- export declare type ItemElementProps = {
3
+ export type ItemElementProps = {
4
4
  highlight?: string;
5
5
  item: ItemRollElement;
6
6
  group?: ItemsRollGroup;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ListChildComponentProps } from 'react-window';
3
2
  import { ItemRendererProps } from './VirtualizedListItem.types';
4
3
  declare const ItemRenderer: ({ highlight, onItemClick, onItemRemove, tooltipLabel, group }: ItemRendererProps) => ({ index, style, data, }: ListChildComponentProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ItemsRollGroup } from '../ItemsRoll.types';
3
- export declare type ItemRendererProps = {
3
+ export type ItemRendererProps = {
4
4
  highlight?: string;
5
5
  group?: ItemsRollGroup;
6
6
  onItemClick?: (id: string, group?: ItemsRollGroup) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-items-roll",
3
- "version": "0.6.79",
3
+ "version": "0.6.81",
4
4
  "description": "ItemsRoll UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,16 +32,16 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.18.1",
36
- "@synerise/ds-core": "^0.40.1",
37
- "@synerise/ds-divider": "^0.5.42",
38
- "@synerise/ds-dropdown": "^0.17.79",
39
- "@synerise/ds-icon": "^0.58.1",
40
- "@synerise/ds-menu": "^0.17.18",
41
- "@synerise/ds-popconfirm": "^0.10.14",
42
- "@synerise/ds-search": "^0.8.64",
43
- "@synerise/ds-tooltip": "^0.14.3",
44
- "@synerise/ds-utils": "^0.24.15",
35
+ "@synerise/ds-button": "^0.18.3",
36
+ "@synerise/ds-core": "^0.40.3",
37
+ "@synerise/ds-divider": "^0.5.44",
38
+ "@synerise/ds-dropdown": "^0.17.81",
39
+ "@synerise/ds-icon": "^0.58.3",
40
+ "@synerise/ds-menu": "^0.17.20",
41
+ "@synerise/ds-popconfirm": "^0.10.16",
42
+ "@synerise/ds-search": "^0.8.66",
43
+ "@synerise/ds-tooltip": "^0.14.5",
44
+ "@synerise/ds-utils": "^0.24.17",
45
45
  "react-window": "^1.8.5"
46
46
  },
47
47
  "peerDependencies": {
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {
53
53
  "@testing-library/jest-dom": "5.1.1",
54
54
  "@testing-library/react": "10.0.1",
55
- "@types/react-window": "^1.8.2"
55
+ "@types/react-window": "^1.8.5"
56
56
  },
57
- "gitHead": "7df57233258ec34b90c3c92dbe1696788abd6ec6"
57
+ "gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
58
58
  }