@synerise/ds-items-roll 0.8.6 → 0.9.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.9.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.9.0...@synerise/ds-items-roll@0.9.1) (2025-02-04)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-items-roll
9
+
10
+
11
+
12
+
13
+
14
+ # [0.9.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.8.6...@synerise/ds-items-roll@0.9.0) (2025-01-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.8.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-items-roll@0.8.5...@synerise/ds-items-roll@0.8.6) (2025-01-21)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-items-roll
package/dist/ItemsRoll.js CHANGED
@@ -1,8 +1,4 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
2
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
7
3
  import { useIntl } from 'react-intl';
8
4
  import { Footer, Header, List } from './ItemsRollComponents';
@@ -75,7 +71,7 @@ export var ItemsRoll = function ItemsRoll(_ref) {
75
71
  id: 'DS.ITEMS-ROLL.SHOW-LESS'
76
72
  })
77
73
  };
78
- var allTexts = texts ? _objectSpread({}, defaultTexts, {}, texts) : defaultTexts;
74
+ var allTexts = texts ? _extends({}, defaultTexts, texts) : defaultTexts;
79
75
  var _useState = useState(maxToShowItems),
80
76
  visibleItemsAmount = _useState[0],
81
77
  setVisibleItemsAmount = _useState[1];
@@ -31,7 +31,7 @@ export var ShowButtonsWrapper = styled.div.withConfig({
31
31
  export var ListWrapper = styled.div.withConfig({
32
32
  displayName: "ItemsRollstyles__ListWrapper",
33
33
  componentId: "sc-579u47-5"
34
- })(["&&&{.ant-menu-inline{border:none;}.ant-menu{.items-roll-list-item{padding-left:12px;:hover{svg{fill:", ";}.element-remove-icon{svg{fill:", " !important;:hover{fill:", " !important;}}}}:focus{box-shadow:none !important;background:transparent;}:focus:hover{background-color:", ";}}.ant-menu-item-group-list{margin-left:-12px;}.ant-menu-item-group-title{font-size:10px;text-transform:uppercase;color:", ";font-weight:500;padding-left:0;padding-right:0;margin-left:-12px;}.ant-menu-item-group:not(:first-child):before{content:'';width:calc(100% + 12px);height:1px;display:block;border-bottom:1px dashed ", ";margin:12px 0px 12px -12px;}}}"], function (_ref3) {
34
+ })(["&&&{.ant-menu-inline,.-inline{border:none;}.ant-menu{.items-roll-list-item{padding-left:12px !important;:hover{svg{fill:", ";}.element-remove-icon{svg{fill:", " !important;:hover{fill:", " !important;}}}}:focus{box-shadow:none !important;background:transparent;}:focus:hover{background-color:", ";}}.ant-menu-item-group-list,.-item-group-list{margin-left:-12px;}.ant-menu-item-group-title,.-item-group-title{font-size:10px;text-transform:uppercase;color:", ";font-weight:500;padding-left:0;padding-right:0;margin-left:-12px;}.ant-menu-item-group:not(:first-child):before,.-item-group:not(:first-child):before{content:'';width:calc(100% + 12px);height:1px;display:block;border-bottom:1px dashed ", ";margin:12px 0px 12px -12px;}}}"], function (_ref3) {
35
35
  var theme = _ref3.theme;
36
36
  return theme.palette['blue-600'];
37
37
  }, function (_ref4) {
@@ -33,7 +33,7 @@ export type ItemsRollProps = {
33
33
  style?: CSSProperties;
34
34
  showMoreStep?: number;
35
35
  texts?: {
36
- [k in Texts]?: string | ReactNode;
36
+ [k in Texts]?: ReactNode;
37
37
  };
38
38
  useFooter?: boolean;
39
39
  useVirtualizedList?: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ItemElementProps } from './ListItem.types';
2
+ import type { ItemElementProps } from './ListItem.types';
3
3
  declare const ItemElement: ({ item, group, highlight, onItemClick, onItemRemove, removeTooltipLabel }: ItemElementProps) => React.JSX.Element;
4
4
  export default ItemElement;
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom/extend-expect';
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-items-roll",
3
- "version": "0.8.6",
3
+ "version": "0.9.1",
4
4
  "description": "ItemsRoll UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,22 +34,22 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.22.3",
38
- "@synerise/ds-divider": "^0.7.21",
39
- "@synerise/ds-dropdown": "^0.18.31",
40
- "@synerise/ds-icon": "^0.70.0",
41
- "@synerise/ds-list-item": "^0.6.3",
42
- "@synerise/ds-menu": "^0.20.12",
43
- "@synerise/ds-popconfirm": "^0.10.67",
44
- "@synerise/ds-search": "^0.9.25",
45
- "@synerise/ds-tooltip": "^0.14.55",
46
- "@synerise/ds-utils": "^0.31.2",
37
+ "@synerise/ds-button": "^0.23.0",
38
+ "@synerise/ds-divider": "^0.8.0",
39
+ "@synerise/ds-dropdown": "^0.19.0",
40
+ "@synerise/ds-icon": "^0.71.0",
41
+ "@synerise/ds-list-item": "^0.7.0",
42
+ "@synerise/ds-menu": "^0.21.1",
43
+ "@synerise/ds-popconfirm": "^0.11.0",
44
+ "@synerise/ds-search": "^0.10.1",
45
+ "@synerise/ds-tooltip": "^0.15.0",
46
+ "@synerise/ds-utils": "^0.32.0",
47
47
  "react-window": "^1.8.5"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@synerise/ds-core": "*",
51
- "react": ">=16.9.0 <= 17.0.2",
52
- "styled-components": "5.0.1"
51
+ "react": ">=16.9.0 <= 18.3.1",
52
+ "styled-components": "^5.3.3"
53
53
  },
54
- "gitHead": "56e23cda61b7ddfe7da4669307183b105a500e1a"
54
+ "gitHead": "ee4cd9dac1999df64735debb96ff9ad7562a4829"
55
55
  }