@synerise/ds-items-roll 0.7.0 → 0.7.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,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.7.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.7.0...@synerise/ds-items-roll@0.7.1) (2024-08-27)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-items-roll
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.7.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.6.124...@synerise/ds-items-roll@0.7.0) (2024-08-19)
7
15
 
8
16
 
@@ -1,8 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ItemsRollProps } from './ItemsRoll.types';
3
- declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<ItemsRollProps, "intl"> & {
4
- forwardedRef?: React.Ref<any> | undefined;
5
- } & React.RefAttributes<any>> & {
6
- WrappedComponent: React.ComponentType<ItemsRollProps>;
7
- };
8
- export default _default;
3
+ export declare const ItemsRoll: ({ actions, changeSelectionIcon, changeSelectionDropdownProps, className, customSidebarActions, groups, hideSearch, items, maxToShowItems, onClearAll, onChangeSelection, onItemClick, onItemRemove, onSearchClear, onSearch, searchValue, searchPlaceholder, showMoreStep, style, texts, useFooter, useVirtualizedList, virtualizedRowWidth, virtualizedRowHeight, }: ItemsRollProps) => React.JSX.Element;
4
+ export default ItemsRoll;
package/dist/ItemsRoll.js CHANGED
@@ -4,12 +4,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- import * as React from 'react';
8
- import { injectIntl } from 'react-intl';
7
+ import React from 'react';
8
+ import { useIntl } from 'react-intl';
9
9
  import { Footer, Header, List } from './ItemsRollComponents';
10
10
  import * as S from './ItemsRoll.styles';
11
-
12
- var ItemsRoll = function ItemsRoll(_ref) {
11
+ export var ItemsRoll = function ItemsRoll(_ref) {
13
12
  var actions = _ref.actions,
14
13
  changeSelectionIcon = _ref.changeSelectionIcon,
15
14
  changeSelectionDropdownProps = _ref.changeSelectionDropdownProps,
@@ -17,7 +16,6 @@ var ItemsRoll = function ItemsRoll(_ref) {
17
16
  customSidebarActions = _ref.customSidebarActions,
18
17
  groups = _ref.groups,
19
18
  hideSearch = _ref.hideSearch,
20
- intl = _ref.intl,
21
19
  items = _ref.items,
22
20
  _ref$maxToShowItems = _ref.maxToShowItems,
23
21
  maxToShowItems = _ref$maxToShowItems === void 0 ? 10 : _ref$maxToShowItems,
@@ -37,6 +35,7 @@ var ItemsRoll = function ItemsRoll(_ref) {
37
35
  useVirtualizedList = _ref.useVirtualizedList,
38
36
  virtualizedRowWidth = _ref.virtualizedRowWidth,
39
37
  virtualizedRowHeight = _ref.virtualizedRowHeight;
38
+ var intl = useIntl();
40
39
  var defaultTexts = {
41
40
  changeSelectionLabel: intl.formatMessage({
42
41
  id: 'DS.ITEMS-ROLL.CHANGE-SELECTION'
@@ -140,5 +139,4 @@ var ItemsRoll = function ItemsRoll(_ref) {
140
139
  visibleItemsCount: visibleItems.length
141
140
  }));
142
141
  };
143
-
144
- export default injectIntl(ItemsRoll);
142
+ export default ItemsRoll;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { ReactNode, CSSProperties, SVGProps } 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';
@@ -9,16 +9,16 @@ export type ItemRollElement = MenuItemProps & {
9
9
  export type Texts = 'changeSelectionLabel' | 'clearAllLabel' | 'itemsLabel' | 'moreLabel' | 'noResultsLabel' | 'popconfirmNoLabel' | 'popconfirmTitleLabel' | 'popconfirmYesLabel' | 'removeTooltipLabel' | 'searchClearTooltipLabel' | 'showLabel' | 'showLessLabel';
10
10
  export type ItemsRollGroup = string;
11
11
  export type ItemsRollProps = {
12
- intl: IntlShape;
12
+ intl?: IntlShape;
13
13
  items: ItemRollElement[];
14
14
  onSearch?: (value: string) => void;
15
15
  onSearchClear?: () => void;
16
16
  searchValue?: string;
17
17
  searchPlaceholder?: string;
18
18
  actions?: ItemRollElement[];
19
- changeSelectionIcon?: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
19
+ changeSelectionIcon?: (props: SVGProps<SVGSVGElement>) => JSX.Element;
20
20
  changeSelectionDropdownProps?: DropdownProps;
21
- customSidebarActions?: React.ReactNode;
21
+ customSidebarActions?: ReactNode;
22
22
  className?: string;
23
23
  groups?: ItemsRollGroup[];
24
24
  hideSearch?: boolean;
@@ -27,10 +27,10 @@ export type ItemsRollProps = {
27
27
  onChangeSelection?: () => void;
28
28
  onItemRemove?: (id: string, group?: ItemsRollGroup) => void;
29
29
  onItemClick?: (id: string, group?: ItemsRollGroup) => void;
30
- style?: React.CSSProperties;
30
+ style?: CSSProperties;
31
31
  showMoreStep?: number;
32
32
  texts?: {
33
- [k in Texts]?: string | React.ReactNode;
33
+ [k in Texts]?: string | ReactNode;
34
34
  };
35
35
  useFooter?: boolean;
36
36
  useVirtualizedList?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-items-roll",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "ItemsRoll UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,14 +33,14 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-button": "^0.21.5",
37
- "@synerise/ds-divider": "^0.7.1",
38
- "@synerise/ds-dropdown": "^0.18.9",
39
- "@synerise/ds-icon": "^0.65.0",
40
- "@synerise/ds-menu": "^0.19.9",
41
- "@synerise/ds-popconfirm": "^0.10.46",
42
- "@synerise/ds-search": "^0.9.5",
43
- "@synerise/ds-tooltip": "^0.14.35",
36
+ "@synerise/ds-button": "^0.21.6",
37
+ "@synerise/ds-divider": "^0.7.2",
38
+ "@synerise/ds-dropdown": "^0.18.10",
39
+ "@synerise/ds-icon": "^0.65.1",
40
+ "@synerise/ds-menu": "^0.19.10",
41
+ "@synerise/ds-popconfirm": "^0.10.47",
42
+ "@synerise/ds-search": "^0.9.6",
43
+ "@synerise/ds-tooltip": "^0.14.36",
44
44
  "@synerise/ds-utils": "^0.28.2",
45
45
  "react-window": "^1.8.5"
46
46
  },
@@ -49,5 +49,5 @@
49
49
  "react": ">=16.9.0 <= 17.0.2",
50
50
  "styled-components": "5.0.1"
51
51
  },
52
- "gitHead": "2e6de17b64023536c24be8fcb67b1e53e8bffa3d"
52
+ "gitHead": "a035aeea499cea00e72e20e3790c0ffcad4fe956"
53
53
  }