@synerise/ds-scrollbar 2.0.9 → 2.1.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
+ ## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@2.1.0...@synerise/ds-scrollbar@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-scrollbar
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@2.0.9...@synerise/ds-scrollbar@2.1.0) (2026-10-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@2.0.8...@synerise/ds-scrollbar@2.0.9) (2026-10-26)
7
26
 
8
27
 
package/CLAUDE.md CHANGED
@@ -105,13 +105,13 @@ import Scrollbar from '@synerise/ds-scrollbar';
105
105
 
106
106
  Two layers of styling:
107
107
 
108
- 1. **styled-components** — `ScrollbarContainer` (relative, `height: 100%`) wraps both mode variants. It owns the `.ps { overscroll-behavior: <overscrollBehavior>; }` rule, which is picked up by the virtual variant (perfect-scrollbar's `.ps` element). The DnD variant ships its own `ScrollbarContainer` that applies `overscroll-behavior` directly on itself. The prop defaults to `'contain'`, matching the behavior previously hard-coded in `scrollbar.mixin.less`. `LoaderWrapper` (absolute fill, `rgba(255,255,255,0.6)`) and a spinning `Loader` are rendered on top when `loading` is true.
108
+ 1. **styled-components** — `ScrollbarContainer` (relative, `height: 100%`) wraps both mode variants. It owns the `.ps { overscroll-behavior: <overscrollBehavior>; }` rule, which is picked up by the virtual variant (perfect-scrollbar's `.ps` element). The DnD variant ships its own `ScrollbarContainer` that applies `overscroll-behavior` directly on itself. The prop defaults to `'contain'`, matching the behavior previously hard-coded in `scrollbar.mixin.less`. `LoaderWrapper` (absolute fill, `--ds-scrollbar-loading-overlay`, the page background at 60%, so it follows dark mode) and a spinning `Loader` are rendered on top when `loading` is true.
109
109
  2. **Less overrides** (`style/scrollbar.mixin.less`) — patches PerfectScrollbar's `.ps__rail-*` and `.ps__thumb-*` classes. The `.large-size` class (applied via `classnames` in `VirtualScrollbar`) activates the wide blue thumb variant.
110
110
 
111
111
  **Token usage:**
112
- - Default thumb: `grey-300` / `grey-500` (hover). In both variants the thumb element spans the full 11 px rail so it is easy to grab, and only a 3 px bar is painted by its `::before`
113
- - Large thumb: `blue-050` / `blue-100` (hover), `grey-300` border / `grey-400` border (hover)
114
- - Loading spinner in `Scrollbar.styles`: `grey-600`; in `DnDScrollbar.styles`: `blue-600`
112
+ - Default thumb: `var(--ds-color-background-base-strong)` / `var(--ds-color-background-base-stronghover)` (hover). In both variants the thumb element spans the full 11 px rail so it is easy to grab, and only a 3 px bar is painted by its `::before`
113
+ - Large thumb: `var(--ds-color-background-brand-subtle)` / `var(--ds-color-background-brand-subtlehover)` (hover), `var(--ds-color-border-base-strong)` border / `var(--ds-color-border-base-stronghover)` border (hover)
114
+ - Loading spinner in `Scrollbar.styles`: `var(--ds-color-icon-base-default)`; in `DnDScrollbar.styles`: `var(--ds-color-icon-brand-default)`
115
115
 
116
116
  The track in `DnDScrollbar` is hidden (`opacity: 0`) and revealed on parent hover via a styled-components selector chain.
117
117
 
@@ -120,7 +120,7 @@ The track in `DnDScrollbar` is hidden (`opacity: 0`) and revealed on parent hove
120
120
  - `@ofsajd/react-perfect-scrollbar` `1.0.0` — used only by `VirtualScrollbar`; this is a fork/mirror of `react-perfect-scrollbar`
121
121
  - `@synerise/ds-utils` — `useCombinedRefs`, `useResizeObserver` (used in `VirtualScrollbar`)
122
122
  - `@synerise/ds-icon` + `SpinnerM` — loading spinner icon
123
- - `@synerise/ds-core` — `useTheme` for palette tokens; peer dependency
123
+ - `@synerise/ds-core` — peer dependency; `DSProvider` injects the `--ds-*` token custom properties
124
124
  - `classnames` — conditional class composition in `VirtualScrollbar`
125
125
 
126
126
  ## Implementation notes
@@ -16,24 +16,24 @@ const ScrollbarWrapper = /* @__PURE__ */ styled.div.withConfig({
16
16
  return "";
17
17
  }
18
18
  return props.largeSize ? "20px !important" : "11px !important";
19
- }, (props) => props.loading ? "0.2" : "1");
19
+ }, (props) => props.loading ? "var(--ds-opacity-muted)" : "1");
20
20
  const ThumbVertical = /* @__PURE__ */ styled.div.withConfig({
21
21
  displayName: "DnDScrollbarstyles__ThumbVertical",
22
22
  componentId: "sc-12t6y2d-2"
23
- })(["position:absolute;", ""], (props) => props.largeSize ? css(["right:4px;width:16px;background-color:", ";border-radius:3px;border:1px solid ", ";&:hover,&:active{background-color:", ";border:1px solid ", ";}"], props.theme.palette["blue-050"], props.theme.palette["grey-300"], props.theme.palette["blue-100"], props.theme.palette["grey-400"]) : css(["right:0;width:11px;background-color:transparent;&::before{content:'';position:absolute;top:0;bottom:0;right:4px;width:3px;border-radius:3px;background-color:", ";}&:hover::before,&:active::before{background-color:", ";}"], props.theme.palette["grey-300"], props.theme.palette["grey-500"]));
23
+ })(["position:absolute;", ""], (props) => props.largeSize ? css(["right:4px;width:16px;background-color:var(--ds-color-background-brand-subtle);border-radius:3px;border:1px solid var(--ds-color-border-base-strong);&:hover,&:active{background-color:var(--ds-color-background-brand-subtlehover);border:1px solid var(--ds-color-border-base-stronghover);}"]) : css(["right:0;width:11px;background-color:transparent;&::before{content:'';position:absolute;top:0;bottom:0;right:4px;width:3px;border-radius:3px;background-color:var(--ds-color-background-base-strong);}&:hover::before,&:active::before{background-color:var(--ds-color-background-base-stronghover);}"]));
24
24
  const ScrollbarTrackWrapper = /* @__PURE__ */ styled.div.withConfig({
25
25
  displayName: "DnDScrollbarstyles__ScrollbarTrackWrapper",
26
26
  componentId: "sc-12t6y2d-3"
27
- })(["display:block;height:100%;position:absolute;width:", ";top:0;right:", ";bottom:0;user-select:none;opacity:0;transition:opacity 0.3s ease-in-out;", " ", ""], (props) => props.largeSize ? "24px" : "11px", (props) => props.largeSize ? "3px" : "0", (props) => props.largeSize && css(["&:hover ", "{background-color:", ";border:1px solid ", ";}"], ThumbVertical, props.theme.palette["blue-100"], props.theme.palette["grey-400"]), (props) => !props.largeSize && css(["&:hover ", "::before{background-color:", ";}"], ThumbVertical, props.theme.palette["grey-500"]));
27
+ })(["display:block;height:100%;position:absolute;width:", ";top:0;right:", ";bottom:0;user-select:none;opacity:0;transition:opacity 0.3s ease-in-out;", " ", ""], (props) => props.largeSize ? "24px" : "11px", (props) => props.largeSize ? "3px" : "0", (props) => props.largeSize && css(["&:hover ", "{background-color:var(--ds-color-background-brand-subtlehover);border:1px solid var(--ds-color-border-base-stronghover);}"], ThumbVertical), (props) => !props.largeSize && css(["&:hover ", "::before{background-color:var(--ds-color-background-base-stronghover);}"], ThumbVertical));
28
28
  const TrackVertical = /* @__PURE__ */ styled.div.withConfig({
29
29
  displayName: "DnDScrollbarstyles__TrackVertical",
30
30
  componentId: "sc-12t6y2d-4"
31
- })(["opacity:0.2;width:11px;height:calc(100% - 8px);transform:translateY(4px);overflow:hidden;right:0;top:0;bottom:0;position:absolute;&:hover,&:active,&:focus{opacity:0.6;}"]);
31
+ })(["opacity:var(--ds-opacity-muted);width:11px;height:calc(100% - 8px);transform:translateY(4px);overflow:hidden;right:0;top:0;bottom:0;position:absolute;&:hover,&:active,&:focus{opacity:0.6;}"]);
32
32
  const spinnerAnimation = /* @__PURE__ */ keyframes(["from{transform:rotateZ(0deg);}to{transform:rotateZ(360deg);}"]);
33
33
  const Loader = /* @__PURE__ */ styled.div.withConfig({
34
34
  displayName: "DnDScrollbarstyles__Loader",
35
35
  componentId: "sc-12t6y2d-5"
36
- })(["width:0;height:0;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);z-index:99;pointer-events:none;display:flex;opacity:", ";transform-origin:12px 12px;transition:opacity 0.3s ease-in-out;animation:", " 1s forwards linear infinite;svg{color:", ";fill:", ";}"], (props) => props.loading ? "1" : "0", spinnerAnimation, (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"]);
36
+ })(["width:0;height:0;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);z-index:99;pointer-events:none;display:flex;opacity:", ";transform-origin:12px 12px;transition:opacity 0.3s ease-in-out;animation:", " 1s forwards linear infinite;svg{color:var(--ds-color-icon-brand-default);fill:var(--ds-color-icon-brand-default);}"], (props) => props.loading ? "1" : "0", spinnerAnimation);
37
37
  const ScrollbarContainer = /* @__PURE__ */ styled.div.withConfig({
38
38
  displayName: "DnDScrollbarstyles__ScrollbarContainer",
39
39
  componentId: "sc-12t6y2d-6"
package/dist/Scrollbar.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { useTheme } from "@synerise/ds-core";
4
3
  import Icon, { SpinnerM } from "@synerise/ds-icon";
5
4
  import { DnDScrollbar } from "./DnDScrollbar/DnDScrollbar.js";
6
5
  import { ScrollbarContainer, LoaderWrapper, Loader } from "./Scrollbar.styles.js";
@@ -14,11 +13,10 @@ const Scrollbar = forwardRef(({
14
13
  overscrollBehavior = "contain",
15
14
  ...props
16
15
  }, forwardedRef) => {
17
- const theme = useTheme();
18
16
  const Component = withDnd ? DnDScrollbar : VirtualScrollbar;
19
17
  return /* @__PURE__ */ jsxs(ScrollbarContainer, { overscrollBehavior, className, children: [
20
18
  /* @__PURE__ */ jsx(Component, { ...props, overscrollBehavior, fetchData, ref: forwardedRef, children }),
21
- loading && /* @__PURE__ */ jsx(LoaderWrapper, { children: /* @__PURE__ */ jsx(Loader, { loading, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SpinnerM, {}), color: theme.palette["grey-600"] }) }) })
19
+ loading && /* @__PURE__ */ jsx(LoaderWrapper, { children: /* @__PURE__ */ jsx(Loader, { loading, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SpinnerM, {}), color: "var(--ds-color-icon-base-default)" }) }) })
22
20
  ] });
23
21
  });
24
22
  export {
@@ -3,11 +3,11 @@ const spinnerAnimation = /* @__PURE__ */ keyframes(["from{transform:rotateZ(0deg
3
3
  const Loader = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "Scrollbarstyles__Loader",
5
5
  componentId: "sc-rfwkf7-0"
6
- })(["width:0;height:0;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);z-index:99;pointer-events:none;display:flex;opacity:", ";transform-origin:12px 12px;transition:opacity 0.3s ease-in-out;animation:", " 1s forwards linear infinite;svg{color:", ";fill:", ";}"], (props) => props.loading ? "1" : "0", spinnerAnimation, (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-600"]);
6
+ })(["width:0;height:0;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);z-index:99;pointer-events:none;display:flex;opacity:", ";transform-origin:12px 12px;transition:opacity 0.3s ease-in-out;animation:", " 1s forwards linear infinite;svg{color:var(--ds-color-icon-base-default);fill:var(--ds-color-icon-base-default);}"], (props) => props.loading ? "1" : "0", spinnerAnimation);
7
7
  const LoaderWrapper = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "Scrollbarstyles__LoaderWrapper",
9
9
  componentId: "sc-rfwkf7-1"
10
- })(["width:100%;height:100%;bottom:0;left:0;position:absolute;background-color:rgba(255,255,255,0.6);"]);
10
+ })(["width:100%;height:100%;bottom:0;left:0;position:absolute;background-color:var(--ds-scrollbar-loading-overlay);"]);
11
11
  const ScrollbarContainer = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "Scrollbarstyles__ScrollbarContainer",
13
13
  componentId: "sc-rfwkf7-2"
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export declare const VirtualScrollbar: React.ForwardRefExoticComponent<import('../Scrollbar.types').ScrollbarAdditionalProps & {
2
+ export declare const VirtualScrollbar: React.ForwardRefExoticComponent<import('..').ScrollbarAdditionalProps & {
3
3
  children?: React.ReactNode;
4
4
  } & {
5
5
  scrollbarOptions?: import('@ofsajd/react-perfect-scrollbar').ScrollBarProps["options"];
@@ -16,7 +16,7 @@ const ScrollbarWrapper = /* @__PURE__ */ styled.div.withConfig({
16
16
  return "";
17
17
  }
18
18
  return props.largeSize ? "20px !important" : "11px !important";
19
- }, (props) => props.loading ? "0.2" : "1");
19
+ }, (props) => props.loading ? "var(--ds-opacity-muted)" : "1");
20
20
  export {
21
21
  ScrollbarContent,
22
22
  ScrollbarWrapper
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ declare module '*.less';
@@ -1 +1 @@
1
- .ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.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:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}.scrollbar-container{position:relative;height:100%}.ps__rail-x.ps__rail-x{opacity:0;height:11px;top:unset!important;bottom:0;position:absolute;width:calc(100% - 8px)!important;transform:translateX(-4px);overflow:hidden;margin-right:12px;transition:opacity .3s ease-in-out}.ps__rail-y.ps__rail-y{opacity:0;width:11px;left:unset!important;right:0;position:absolute;height:calc(100% - 8px)!important;transform:translateY(4px);overflow:hidden;margin-bottom:12px;transition:opacity .3s ease-in-out}.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,.ps__thumb-y{background-color:transparent;border-radius:0}.ps__thumb-x::before,.ps__thumb-y::before{content:'';position:absolute;background-color:#dbe0e3;border-radius:3px;transition:background-color .2s linear}.ps__thumb-x{height:11px;bottom:0;margin:0 4px}.ps__thumb-x::before{left:0;right:0;bottom:4px;height:3px}.ps__thumb-y{width:11px;right:0}.ps__thumb-y::before{top:0;bottom:0;right:4px;width:3px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x,.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:transparent}.ps__rail-x.ps--clicking .ps__thumb-x::before,.ps__rail-x:focus>.ps__thumb-x::before,.ps__rail-x:hover>.ps__thumb-x::before,.ps__rail-y.ps--clicking .ps__thumb-y::before,.ps__rail-y:focus>.ps__thumb-y::before,.ps__rail-y:hover>.ps__thumb-y::before{background-color:#949ea6}.large-size .ps__rail-x.ps__rail-x,.large-size .ps__rail-y.ps__rail-y{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__thumb-x{bottom:4px}.large-size .ps__thumb-y{right:4px}.large-size .ps__thumb-x::before,.large-size .ps__thumb-y::before{content:none}.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{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.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:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}.scrollbar-container{position:relative;height:100%}.ps__rail-x.ps__rail-x{opacity:0;height:11px;top:unset!important;bottom:0;position:absolute;width:calc(100% - 8px)!important;transform:translateX(-4px);overflow:hidden;margin-right:12px;transition:opacity .3s ease-in-out}.ps__rail-y.ps__rail-y{opacity:0;width:11px;left:unset!important;right:0;position:absolute;height:calc(100% - 8px)!important;transform:translateY(4px);overflow:hidden;margin-bottom:12px;transition:opacity .3s ease-in-out}.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,.ps__thumb-y{background-color:transparent;border-radius:0}.ps__thumb-x::before,.ps__thumb-y::before{content:'';position:absolute;background-color:var(--ds-color-background-base-strong);border-radius:3px;transition:background-color .2s linear}.ps__thumb-x{height:11px;bottom:0;margin:0 4px}.ps__thumb-x::before{left:0;right:0;bottom:4px;height:3px}.ps__thumb-y{width:11px;right:0}.ps__thumb-y::before{top:0;bottom:0;right:4px;width:3px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x,.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:transparent}.ps__rail-x.ps--clicking .ps__thumb-x::before,.ps__rail-x:focus>.ps__thumb-x::before,.ps__rail-x:hover>.ps__thumb-x::before,.ps__rail-y.ps--clicking .ps__thumb-y::before,.ps__rail-y:focus>.ps__thumb-y::before,.ps__rail-y:hover>.ps__thumb-y::before{background-color:var(--ds-color-background-base-stronghover)}.large-size .ps__rail-x.ps__rail-x,.large-size .ps__rail-y.ps__rail-y{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:var(--ds-color-background-brand-subtle);border-radius:3px;width:16px;height:16px;border:1px solid var(--ds-color-border-base-strong)}.large-size .ps__thumb-x{bottom:4px}.large-size .ps__thumb-y{right:4px}.large-size .ps__thumb-x::before,.large-size .ps__thumb-y::before{content:none}.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:var(--ds-color-background-brand-subtlehover);border:1px solid var(--ds-color-border-base-stronghover);height:16px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-scrollbar",
3
- "version": "2.0.9",
3
+ "version": "2.1.1",
4
4
  "description": "Scrollbar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,8 +43,8 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
45
  "@ofsajd/react-perfect-scrollbar": "1.0.0",
46
- "@synerise/ds-icon": "^2.2.3",
47
- "@synerise/ds-utils": "^2.2.2",
46
+ "@synerise/ds-icon": "^2.3.1",
47
+ "@synerise/ds-utils": "^2.3.1",
48
48
  "classnames": "^2.3.2"
49
49
  },
50
50
  "devDependencies": {
@@ -55,5 +55,5 @@
55
55
  "react": ">=16.9.0 <= 18.3.1",
56
56
  "styled-components": "^5.3.3"
57
57
  },
58
- "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
58
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
59
59
  }