@synerise/ds-items-roll 0.7.0 → 0.7.2
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 +16 -0
- package/dist/ItemsRoll.d.ts +3 -7
- package/dist/ItemsRoll.js +5 -7
- package/dist/ItemsRoll.types.d.ts +6 -6
- package/package.json +10 -10
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.7.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.7.1...@synerise/ds-items-roll@0.7.2) (2024-08-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-items-roll
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-items-roll
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [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
23
|
|
|
8
24
|
|
package/dist/ItemsRoll.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ItemsRollProps } from './ItemsRoll.types';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
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
|
|
8
|
-
import {
|
|
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
|
|
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
|
|
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:
|
|
19
|
+
changeSelectionIcon?: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
20
20
|
changeSelectionDropdownProps?: DropdownProps;
|
|
21
|
-
customSidebarActions?:
|
|
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?:
|
|
30
|
+
style?: CSSProperties;
|
|
31
31
|
showMoreStep?: number;
|
|
32
32
|
texts?: {
|
|
33
|
-
[k in Texts]?: string |
|
|
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.
|
|
3
|
+
"version": "0.7.2",
|
|
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.
|
|
37
|
-
"@synerise/ds-divider": "^0.7.
|
|
38
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
39
|
-
"@synerise/ds-icon": "^0.65.
|
|
40
|
-
"@synerise/ds-menu": "^0.19.
|
|
41
|
-
"@synerise/ds-popconfirm": "^0.10.
|
|
42
|
-
"@synerise/ds-search": "^0.9.
|
|
43
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
36
|
+
"@synerise/ds-button": "^0.21.7",
|
|
37
|
+
"@synerise/ds-divider": "^0.7.2",
|
|
38
|
+
"@synerise/ds-dropdown": "^0.18.11",
|
|
39
|
+
"@synerise/ds-icon": "^0.65.2",
|
|
40
|
+
"@synerise/ds-menu": "^0.19.11",
|
|
41
|
+
"@synerise/ds-popconfirm": "^0.10.48",
|
|
42
|
+
"@synerise/ds-search": "^0.9.7",
|
|
43
|
+
"@synerise/ds-tooltip": "^0.14.37",
|
|
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": "
|
|
52
|
+
"gitHead": "d5df67eecdc1cbcb56def8c17d04b7d883876fbf"
|
|
53
53
|
}
|