@synerise/ds-scrollbar 1.0.10 → 1.1.0

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,17 @@
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
+ # [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@1.0.10...@synerise/ds-scrollbar@1.1.0) (2025-06-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **factors:** array factor type ([195d328](https://github.com/Synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@1.0.9...@synerise/ds-scrollbar@1.0.10) (2025-06-05)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-scrollbar
package/dist/Scrollbar.js CHANGED
@@ -1,13 +1,13 @@
1
1
  var _excluded = ["children", "className", "loading", "withDnd", "fetchData"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import Icon, { SpinnerM } from '@synerise/ds-icon';
6
6
  import { theme } from '@synerise/ds-core';
7
7
  import * as S from './Scrollbar.styles';
8
8
  import { DnDScrollbar } from './DnDScrollbar';
9
9
  import { VirtualScrollbar } from './VirtualScrollbar';
10
- var Scrollbar = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
10
+ var Scrollbar = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
11
11
  var children = _ref.children,
12
12
  className = _ref.className,
13
13
  loading = _ref.loading,
@@ -1,7 +1,7 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useCallback, forwardRef, useRef, useEffect, useState } from 'react';
3
3
  import PerfectScrollbar from '@ofsajd/react-perfect-scrollbar';
4
- // import { debounce } from 'lodash';
4
+ import classnames from 'classnames';
5
5
  import { useCombinedRefs, useResizeObserver } from '@synerise/ds-utils';
6
6
  import "../style/index.css";
7
7
  import * as S from './VirtualScrollbar.styles';
@@ -81,6 +81,9 @@ export var VirtualScrollbar = /*#__PURE__*/forwardRef(function (_ref, forwardedR
81
81
  document.body.removeEventListener('animationend', endHandler);
82
82
  };
83
83
  });
84
+ var className = classnames('perfect-scrollbar-wrapper', {
85
+ 'large-size': largeSize
86
+ });
84
87
  return /*#__PURE__*/React.createElement(PerfectScrollbar, {
85
88
  containerRef: function containerRef(ref) {
86
89
  combinedScrollRef.current = ref;
@@ -92,7 +95,7 @@ export var VirtualScrollbar = /*#__PURE__*/forwardRef(function (_ref, forwardedR
92
95
  minScrollbarLength: 48
93
96
  }),
94
97
  onYReachEnd: handleReachEnd,
95
- className: "" + (largeSize ? 'large-size' : '')
98
+ className: className
96
99
  }, /*#__PURE__*/React.createElement(S.ScrollbarContent, {
97
100
  className: "" + classes,
98
101
  style: {
@@ -1 +1 @@
1
- @import '~@ofsajd/react-perfect-scrollbar/dist/css/styles.css';.ps{overscroll-behavior:contain}.ps__rail-x.ps__rail-x{opacity:1;height:11px;top:unset!important;bottom:0;position:absolute;width:calc(100% - 8px)!important;transform:translateX(-4px);overflow:hidden;margin-right:12px}.ps{overscroll-behavior:contain}.ps__rail-y.ps__rail-y{opacity:1;width:11px;left:unset!important;right:0;position:absolute;height:calc(100% - 8px)!important;transform:translateY(4px);overflow:hidden;margin-bottom:12px}.ps:hover .ps__rail-x,.ps:hover .ps__rail-y{opacity:1}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:unset}.ps__thumb-x{background-color:#dbe0e3;border-radius:3px;height:3px;bottom:4px;margin:0 4px}.ps__thumb-y{background-color:#dbe0e3;border-radius:3px;width:3px;right:4px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#949ea6;height:3px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#949ea6;width:3px}.large-size .ps__rail-x.ps__rail-x,.large-size .ps__rail-y.ps__rail-y{opacity:1;width:26px;height:26px;position:absolute;overflow:hidden}.large-size .ps__rail-y.ps--clicking .ps__thumb-y,.large-size .ps__rail-y:focus>.ps__thumb-y,.large-size .ps__rail-y:hover>.ps__thumb-y,.large-size .ps__thumb-x,.large-size .ps__thumb-y,.large-size .ps__thumb-y--clicking,.large-size .ps__thumb-y:hover{background-color:#f4faff;border-radius:3px;width:16px;height:16px;border:1px solid #dbe0e3}.large-size .ps__rail-x.ps--clicking .ps__thumb-x,.large-size .ps__rail-x:focus>.ps__thumb-x,.large-size .ps__rail-x:hover>.ps__thumb-x,.large-size .ps__rail-y.ps--clicking .ps__thumb-y,.large-size .ps__rail-y:focus>.ps__thumb-y,.large-size .ps__rail-y:hover>.ps__thumb-y{background-color:#d9eeff;border:1px solid #b5bdc3;height:16px}
1
+ .ps{overscroll-behavior:contain}.ps__rail-x.ps__rail-x{opacity:1;height:11px;top:unset!important;bottom:0;position:absolute;width:calc(100% - 8px)!important;transform:translateX(-4px);overflow:hidden;margin-right:12px}.ps{overscroll-behavior:contain}.ps__rail-y.ps__rail-y{opacity:1;width:11px;left:unset!important;right:0;position:absolute;height:calc(100% - 8px)!important;transform:translateY(4px);overflow:hidden;margin-bottom:12px}.ps:hover .ps__rail-x,.ps:hover .ps__rail-y{opacity:1}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:unset}.ps__thumb-x{background-color:#dbe0e3;border-radius:3px;height:3px;bottom:4px;margin:0 4px}.ps__thumb-y{background-color:#dbe0e3;border-radius:3px;width:3px;right:4px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#949ea6;height:3px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#949ea6;width:3px}.large-size .ps__rail-x.ps__rail-x,.large-size .ps__rail-y.ps__rail-y{opacity:1;width:26px;height:26px;position:absolute;overflow:hidden}.large-size .ps__rail-y.ps--clicking .ps__thumb-y,.large-size .ps__rail-y:focus>.ps__thumb-y,.large-size .ps__rail-y:hover>.ps__thumb-y,.large-size .ps__thumb-x,.large-size .ps__thumb-y,.large-size .ps__thumb-y--clicking,.large-size .ps__thumb-y:hover{background-color:#f4faff;border-radius:3px;width:16px;height:16px;border:1px solid #dbe0e3}.large-size .ps__rail-x.ps--clicking .ps__thumb-x,.large-size .ps__rail-x:focus>.ps__thumb-x,.large-size .ps__rail-x:hover>.ps__thumb-x,.large-size .ps__rail-y.ps--clicking .ps__thumb-y,.large-size .ps__rail-y:focus>.ps__thumb-y,.large-size .ps__rail-y:hover>.ps__thumb-y{background-color:#d9eeff;border:1px solid #b5bdc3;height:16px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-scrollbar",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "description": "Scrollbar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,8 +35,9 @@
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
37
  "@ofsajd/react-perfect-scrollbar": "1.0.0",
38
- "@synerise/ds-icon": "^1.5.2",
39
- "@synerise/ds-utils": "^1.2.0",
38
+ "@synerise/ds-icon": "^1.5.3",
39
+ "@synerise/ds-utils": "^1.3.0",
40
+ "classnames": "^2.3.2",
40
41
  "lodash": "^4.7.21"
41
42
  },
42
43
  "peerDependencies": {
@@ -44,5 +45,5 @@
44
45
  "react": ">=16.9.0 <= 18.3.1",
45
46
  "styled-components": "^5.3.3"
46
47
  },
47
- "gitHead": "93bc81d59d20bc8f3bc80c5d56ae7f7c0838380d"
48
+ "gitHead": "f2713cd35cfe22f63a159f05144585834897a132"
48
49
  }