@synerise/ds-scrollbar 1.2.16 → 1.2.18

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
+ ## [1.2.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@1.2.17...@synerise/ds-scrollbar@1.2.18) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-scrollbar
9
+
10
+ ## [1.2.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@1.2.16...@synerise/ds-scrollbar@1.2.17) (2026-03-24)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-scrollbar
13
+
6
14
  ## [1.2.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-scrollbar@1.2.15...@synerise/ds-scrollbar@1.2.16) (2026-03-20)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-scrollbar
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { type ScrollbarProps } from '../Scrollbar.types';
1
+ import { default as React } from 'react';
2
+ import { ScrollbarProps } from '../Scrollbar.types';
3
3
  export declare const DnDScrollbar: ({ children, classes, maxHeight, absolute, loading, largeSize, onScroll, onYReachEnd, fetchData, hasMore, confineScroll, ...props }: ScrollbarProps) => React.JSX.Element;
@@ -1,71 +1,71 @@
1
- var _excluded = ["children", "classes", "maxHeight", "absolute", "loading", "largeSize", "onScroll", "onYReachEnd", "fetchData", "hasMore", "confineScroll"];
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
- 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, { useCallback, useEffect, useRef, useState } from 'react';
5
- import * as S from './DnDScrollbar.styles';
6
- export var DnDScrollbar = function DnDScrollbar(_ref) {
7
- var children = _ref.children,
8
- classes = _ref.classes,
9
- maxHeight = _ref.maxHeight,
10
- absolute = _ref.absolute,
11
- loading = _ref.loading,
12
- largeSize = _ref.largeSize,
13
- onScroll = _ref.onScroll,
14
- onYReachEnd = _ref.onYReachEnd,
15
- fetchData = _ref.fetchData,
16
- hasMore = _ref.hasMore,
17
- confineScroll = _ref.confineScroll,
18
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
19
- var contentRef = useRef(null);
20
- var wrapperRef = useRef(null);
21
- var scrollTrackRef = useRef(null);
22
- var scrollThumbRef = useRef(null);
23
- var observer = useRef(null);
24
- var _useState = useState(48),
25
- thumbHeight = _useState[0],
26
- setThumbHeight = _useState[1];
27
- var _useState2 = useState(0),
28
- scrollStartPosition = _useState2[0],
29
- setScrollStartPosition = _useState2[1];
30
- var _useState3 = useState(0),
31
- initialScrollTop = _useState3[0],
32
- setInitialScrollTop = _useState3[1];
33
- var _useState4 = useState(false),
34
- isDragging = _useState4[0],
35
- setIsDragging = _useState4[1];
36
- var handleTrackClick = useCallback(function (event) {
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useRef, useState, useCallback, useEffect } from "react";
3
+ import { ScrollbarContainer, ScrollbarContent, ScrollbarWrapper, ScrollbarTrackWrapper, TrackVertical, ThumbVertical } from "./DnDScrollbar.styles.js";
4
+ const DnDScrollbar = ({
5
+ children,
6
+ classes,
7
+ maxHeight,
8
+ absolute,
9
+ loading,
10
+ largeSize,
11
+ onScroll,
12
+ onYReachEnd,
13
+ fetchData,
14
+ hasMore,
15
+ confineScroll,
16
+ ...props
17
+ }) => {
18
+ const contentRef = useRef(null);
19
+ const wrapperRef = useRef(null);
20
+ const scrollTrackRef = useRef(null);
21
+ const scrollThumbRef = useRef(null);
22
+ const observer = useRef(null);
23
+ const [thumbHeight, setThumbHeight] = useState(48);
24
+ const [scrollStartPosition, setScrollStartPosition] = useState(0);
25
+ const [initialScrollTop, setInitialScrollTop] = useState(0);
26
+ const [isDragging, setIsDragging] = useState(false);
27
+ const handleTrackClick = useCallback((event) => {
37
28
  event.preventDefault();
38
29
  event.stopPropagation();
39
- var trackCurrent = scrollTrackRef.current;
40
- var contentCurrent = contentRef.current;
30
+ const {
31
+ current: trackCurrent
32
+ } = scrollTrackRef;
33
+ const {
34
+ current: contentCurrent
35
+ } = contentRef;
41
36
  if (trackCurrent && contentCurrent) {
42
- var clientY = event.clientY;
43
- var target = event.target;
44
- var rect = target.getBoundingClientRect();
45
- var trackTop = rect.top;
46
- var thumbOffset = -(thumbHeight / 2);
47
- var clickRatio = (clientY - trackTop + thumbOffset) / trackCurrent.clientHeight;
48
- var scrollAmount = Math.floor(clickRatio * contentCurrent.scrollHeight);
37
+ const {
38
+ clientY
39
+ } = event;
40
+ const target = event.target;
41
+ const rect = target.getBoundingClientRect();
42
+ const trackTop = rect.top;
43
+ const thumbOffset = -(thumbHeight / 2);
44
+ const clickRatio = (clientY - trackTop + thumbOffset) / trackCurrent.clientHeight;
45
+ const scrollAmount = Math.floor(clickRatio * contentCurrent.scrollHeight);
49
46
  contentCurrent.scrollTo({
50
47
  top: scrollAmount,
51
- behavior: 'smooth'
48
+ behavior: "smooth"
52
49
  });
53
50
  }
54
51
  }, [thumbHeight]);
55
- var handleThumbPosition = useCallback(function () {
52
+ const handleThumbPosition = useCallback(() => {
56
53
  if (!contentRef.current || !scrollTrackRef.current || !scrollThumbRef.current) {
57
54
  return;
58
55
  }
59
- var _contentRef$current = contentRef.current,
60
- contentTop = _contentRef$current.scrollTop,
61
- contentHeight = _contentRef$current.scrollHeight;
62
- var trackHeight = scrollTrackRef.current.clientHeight;
63
- var newTop = +contentTop / +contentHeight * trackHeight;
56
+ const {
57
+ scrollTop: contentTop,
58
+ scrollHeight: contentHeight
59
+ } = contentRef.current;
60
+ const {
61
+ clientHeight: trackHeight
62
+ } = scrollTrackRef.current;
63
+ let newTop = +contentTop / +contentHeight * trackHeight;
64
64
  newTop = Math.min(newTop, trackHeight - thumbHeight);
65
- var thumb = scrollThumbRef.current;
66
- thumb.style.top = newTop + "px";
65
+ const thumb = scrollThumbRef.current;
66
+ thumb.style.top = `${newTop}px`;
67
67
  }, [thumbHeight]);
68
- var handleThumbMousedown = useCallback(function (event) {
68
+ const handleThumbMousedown = useCallback((event) => {
69
69
  event.stopPropagation();
70
70
  setScrollStartPosition(event.clientY);
71
71
  if (contentRef.current) {
@@ -73,29 +73,31 @@ export var DnDScrollbar = function DnDScrollbar(_ref) {
73
73
  }
74
74
  setIsDragging(true);
75
75
  }, []);
76
- var handleThumbMouseup = useCallback(function (event) {
76
+ const handleThumbMouseup = useCallback((event) => {
77
77
  event.stopPropagation();
78
78
  if (isDragging) {
79
79
  setIsDragging(false);
80
80
  }
81
81
  }, [isDragging]);
82
- var handleThumbMousemove = useCallback(function (event) {
82
+ const handleThumbMousemove = useCallback((event) => {
83
83
  event.stopPropagation();
84
84
  if (isDragging && contentRef.current !== null) {
85
- var _contentRef$current2 = contentRef.current,
86
- contentScrollHeight = _contentRef$current2.scrollHeight,
87
- contentOffsetHeight = _contentRef$current2.offsetHeight;
88
- var deltaY = (event.clientY - scrollStartPosition) * (contentOffsetHeight / thumbHeight);
85
+ const {
86
+ scrollHeight: contentScrollHeight,
87
+ offsetHeight: contentOffsetHeight
88
+ } = contentRef.current;
89
+ const deltaY = (event.clientY - scrollStartPosition) * (contentOffsetHeight / thumbHeight);
89
90
  contentRef.current.scrollTop = Math.min(initialScrollTop + deltaY, contentScrollHeight - contentOffsetHeight);
90
91
  }
91
92
  }, [initialScrollTop, isDragging, scrollStartPosition, thumbHeight]);
92
- var handleScroll = useCallback(function (event) {
93
+ const handleScroll = useCallback((event) => {
93
94
  if (contentRef.current !== null) {
94
- var _contentRef$current3 = contentRef.current,
95
- scrollHeight = _contentRef$current3.scrollHeight,
96
- offsetHeight = _contentRef$current3.offsetHeight,
97
- scrollTop = _contentRef$current3.scrollTop;
98
- var progress = Math.round((scrollTop + offsetHeight) / scrollHeight * 100) / 100;
95
+ const {
96
+ scrollHeight,
97
+ offsetHeight,
98
+ scrollTop
99
+ } = contentRef.current;
100
+ const progress = Math.round((scrollTop + offsetHeight) / scrollHeight * 100) / 100;
99
101
  if (progress === 1 && hasMore) {
100
102
  onYReachEnd && onYReachEnd();
101
103
  fetchData && fetchData();
@@ -103,11 +105,12 @@ export var DnDScrollbar = function DnDScrollbar(_ref) {
103
105
  }
104
106
  onScroll && onScroll(event);
105
107
  }, [fetchData, hasMore, onScroll, onYReachEnd]);
106
- var handleResize = useCallback(function (trackSize) {
108
+ const handleResize = useCallback((trackSize) => {
107
109
  if (contentRef.current !== null) {
108
- var _contentRef$current4 = contentRef.current,
109
- clientHeightContent = _contentRef$current4.clientHeight,
110
- scrollHeightContent = _contentRef$current4.scrollHeight;
110
+ const {
111
+ clientHeight: clientHeightContent,
112
+ scrollHeight: scrollHeightContent
113
+ } = contentRef.current;
111
114
  if (clientHeightContent === scrollHeightContent) {
112
115
  setThumbHeight(0);
113
116
  } else {
@@ -116,65 +119,54 @@ export var DnDScrollbar = function DnDScrollbar(_ref) {
116
119
  }
117
120
  }
118
121
  }, [handleThumbPosition]);
119
- var handleWheel = function handleWheel(event) {
122
+ const handleWheel = (event) => {
120
123
  if (confineScroll) {
121
124
  event.stopPropagation();
122
125
  }
123
126
  };
124
- useEffect(function () {
127
+ useEffect(() => {
125
128
  if (contentRef.current !== null && scrollTrackRef.current !== null && wrapperRef.current !== null) {
126
- var ref = wrapperRef.current;
127
- var content = contentRef.current;
128
- var trackSize = scrollTrackRef.current.clientHeight;
129
- observer.current = new ResizeObserver(function () {
129
+ const ref = wrapperRef.current;
130
+ const content = contentRef.current;
131
+ const {
132
+ clientHeight: trackSize
133
+ } = scrollTrackRef.current;
134
+ observer.current = new ResizeObserver(() => {
130
135
  handleResize(trackSize);
131
136
  });
132
137
  observer.current.observe(ref);
133
- content.addEventListener('scroll', handleThumbPosition);
134
- return function () {
138
+ content.addEventListener("scroll", handleThumbPosition);
139
+ return () => {
135
140
  if (observer.current !== null) {
136
141
  observer.current.unobserve(ref);
137
142
  }
138
- content.removeEventListener('scroll', handleThumbPosition);
143
+ content.removeEventListener("scroll", handleThumbPosition);
139
144
  };
140
145
  }
141
- return undefined;
146
+ return void 0;
142
147
  }, [handleResize, handleThumbPosition]);
143
- useEffect(function () {
144
- document.addEventListener('mousemove', handleThumbMousemove);
145
- document.addEventListener('mouseup', handleThumbMouseup);
146
- document.addEventListener('mouseleave', handleThumbMouseup);
147
- return function () {
148
- document.removeEventListener('mousemove', handleThumbMousemove);
149
- document.removeEventListener('mouseup', handleThumbMouseup);
150
- document.removeEventListener('mouseleave', handleThumbMouseup);
148
+ useEffect(() => {
149
+ document.addEventListener("mousemove", handleThumbMousemove);
150
+ document.addEventListener("mouseup", handleThumbMouseup);
151
+ document.addEventListener("mouseleave", handleThumbMouseup);
152
+ return () => {
153
+ document.removeEventListener("mousemove", handleThumbMousemove);
154
+ document.removeEventListener("mouseup", handleThumbMouseup);
155
+ document.removeEventListener("mouseleave", handleThumbMouseup);
151
156
  };
152
157
  }, [handleThumbMousemove, handleThumbMouseup]);
153
- return /*#__PURE__*/React.createElement(S.ScrollbarContainer, {
154
- "data-testid": "dnd-scrollbar"
155
- }, /*#__PURE__*/React.createElement(S.ScrollbarContent, _extends({
156
- ref: contentRef
157
- }, props, {
158
- style: {
159
- maxHeight: maxHeight
160
- },
161
- onScroll: handleScroll,
162
- onWheel: handleWheel
163
- }), /*#__PURE__*/React.createElement(S.ScrollbarWrapper, {
164
- ref: wrapperRef,
165
- loading: loading,
166
- absolute: absolute,
167
- largeSize: largeSize
168
- }, children)), /*#__PURE__*/React.createElement(S.ScrollbarTrackWrapper, {
169
- largeSize: largeSize
170
- }, /*#__PURE__*/React.createElement(S.TrackVertical, {
171
- ref: scrollTrackRef,
172
- onClick: handleTrackClick
173
- }), /*#__PURE__*/React.createElement(S.ThumbVertical, {
174
- ref: scrollThumbRef,
175
- onMouseDown: handleThumbMousedown,
176
- style: {
177
- height: thumbHeight + "px"
178
- }
179
- })));
180
- };
158
+ return /* @__PURE__ */ jsxs(ScrollbarContainer, { "data-testid": "dnd-scrollbar", children: [
159
+ /* @__PURE__ */ jsx(ScrollbarContent, { ref: contentRef, ...props, style: {
160
+ maxHeight
161
+ }, onScroll: handleScroll, onWheel: handleWheel, children: /* @__PURE__ */ jsx(ScrollbarWrapper, { ref: wrapperRef, loading, absolute, largeSize, children }) }),
162
+ /* @__PURE__ */ jsxs(ScrollbarTrackWrapper, { largeSize, children: [
163
+ /* @__PURE__ */ jsx(TrackVertical, { ref: scrollTrackRef, onClick: handleTrackClick }),
164
+ /* @__PURE__ */ jsx(ThumbVertical, { ref: scrollThumbRef, onMouseDown: handleThumbMousedown, style: {
165
+ height: `${thumbHeight}px`
166
+ } })
167
+ ] })
168
+ ] });
169
+ };
170
+ export {
171
+ DnDScrollbar
172
+ };
@@ -1,17 +1,17 @@
1
- export declare const ScrollbarContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const ScrollbarWrapper: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const ScrollbarContent: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const ScrollbarWrapper: import('styled-components').StyledComponent<"div", any, {
3
3
  absolute?: boolean;
4
4
  loading?: boolean;
5
5
  largeSize?: boolean;
6
6
  }, never>;
7
- export declare const ThumbVertical: import("styled-components").StyledComponent<"div", any, {
7
+ export declare const ThumbVertical: import('styled-components').StyledComponent<"div", any, {
8
8
  largeSize?: boolean;
9
9
  }, never>;
10
- export declare const ScrollbarTrackWrapper: import("styled-components").StyledComponent<"div", any, {
10
+ export declare const ScrollbarTrackWrapper: import('styled-components').StyledComponent<"div", any, {
11
11
  largeSize?: boolean;
12
12
  }, never>;
13
- export declare const TrackVertical: import("styled-components").StyledComponent<"div", any, {}, never>;
14
- export declare const Loader: import("styled-components").StyledComponent<"div", any, {
13
+ export declare const TrackVertical: import('styled-components').StyledComponent<"div", any, {}, never>;
14
+ export declare const Loader: import('styled-components').StyledComponent<"div", any, {
15
15
  loading?: boolean;
16
16
  }, never>;
17
- export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
17
+ export declare const ScrollbarContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,74 +1,49 @@
1
- import styled, { keyframes } from 'styled-components';
2
- export var ScrollbarContent = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ const ScrollbarContent = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "DnDScrollbarstyles__ScrollbarContent",
4
4
  componentId: "sc-12t6y2d-0"
5
5
  })(["-ms-overflow-style:none;overflow:auto;scrollbar-width:none;width:100%;&::-webkit-scrollbar{display:none;}"]);
6
- export var ScrollbarWrapper = styled.div.withConfig({
6
+ const ScrollbarWrapper = /* @__PURE__ */ styled.div.withConfig({
7
7
  displayName: "DnDScrollbarstyles__ScrollbarWrapper",
8
8
  componentId: "sc-12t6y2d-1"
9
- })(["padding-right:", ";padding-bottom:", ";& > *{opacity:", ";transition:opacity 0.25s ease-in-out;}"], function (props) {
9
+ })(["padding-right:", ";padding-bottom:", ";& > *{opacity:", ";transition:opacity 0.25s ease-in-out;}"], (props) => {
10
10
  if (props.absolute) {
11
- return '';
11
+ return "";
12
12
  }
13
- return props.largeSize ? '24px !important' : '11px !important';
14
- }, function (props) {
13
+ return props.largeSize ? "24px !important" : "11px !important";
14
+ }, (props) => {
15
15
  if (props.absolute) {
16
- return '';
16
+ return "";
17
17
  }
18
- return props.largeSize ? '20px !important' : '11px !important';
19
- }, function (props) {
20
- return props.loading ? '0.2' : '1';
21
- });
22
- export var ThumbVertical = styled.div.withConfig({
18
+ return props.largeSize ? "20px !important" : "11px !important";
19
+ }, (props) => props.loading ? "0.2" : "1");
20
+ const ThumbVertical = /* @__PURE__ */ styled.div.withConfig({
23
21
  displayName: "DnDScrollbarstyles__ThumbVertical",
24
22
  componentId: "sc-12t6y2d-2"
25
- })(["width:", ";background-color:", ";border-radius:3px;right:", ";position:absolute;border:", ";&:hover,&:active{background-color:", ";border:", ";}"], function (props) {
26
- return props.largeSize ? '16px' : '3px';
27
- }, function (props) {
28
- return props.largeSize ? props.theme.palette['blue-050'] : props.theme.palette['grey-300'];
29
- }, function (props) {
30
- return props.largeSize ? '0' : '4px';
31
- }, function (props) {
32
- return props.largeSize ? "1px solid " + props.theme.palette['grey-300'] : 'none';
33
- }, function (props) {
34
- return props.largeSize ? props.theme.palette['blue-100'] : props.theme.palette['grey-500'];
35
- }, function (props) {
36
- return props.largeSize ? "1px solid " + props.theme.palette['grey-400'] : 'none';
37
- });
38
- export var ScrollbarTrackWrapper = styled.div.withConfig({
23
+ })(["width:", ";background-color:", ";border-radius:3px;right:", ";position:absolute;border:", ";&:hover,&:active{background-color:", ";border:", ";}"], (props) => props.largeSize ? "16px" : "3px", (props) => props.largeSize ? props.theme.palette["blue-050"] : props.theme.palette["grey-300"], (props) => props.largeSize ? "0" : "4px", (props) => props.largeSize ? `1px solid ${props.theme.palette["grey-300"]}` : "none", (props) => props.largeSize ? props.theme.palette["blue-100"] : props.theme.palette["grey-500"], (props) => props.largeSize ? `1px solid ${props.theme.palette["grey-400"]}` : "none");
24
+ const ScrollbarTrackWrapper = /* @__PURE__ */ styled.div.withConfig({
39
25
  displayName: "DnDScrollbarstyles__ScrollbarTrackWrapper",
40
26
  componentId: "sc-12t6y2d-3"
41
- })(["display:block;height:100%;position:absolute;width:", ";top:0;right:", ";bottom:0;user-select:none;opacity:0;transition:opacity 0.3s ease-in-out;", "{width:", ";background-color:", ";border:", ";}&:hover{", "{background-color:", ";border:", ";}}"], function (props) {
42
- return props.largeSize ? '24px' : '11px';
43
- }, function (props) {
44
- return props.largeSize ? '3px' : '0';
45
- }, ThumbVertical, function (props) {
46
- return props.largeSize ? '16px' : '3px';
47
- }, function (props) {
48
- return props.largeSize ? props.theme.palette['blue-050'] : props.theme.palette['grey-300'];
49
- }, function (props) {
50
- return props.largeSize ? "1px solid " + props.theme.palette['grey-300'] : 'none';
51
- }, ThumbVertical, function (props) {
52
- return props.largeSize ? props.theme.palette['blue-100'] : props.theme.palette['grey-500'];
53
- }, function (props) {
54
- return props.largeSize ? "1px solid " + props.theme.palette['grey-400'] : 'none';
55
- });
56
- export var TrackVertical = styled.div.withConfig({
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;", "{width:", ";background-color:", ";border:", ";}&:hover{", "{background-color:", ";border:", ";}}"], (props) => props.largeSize ? "24px" : "11px", (props) => props.largeSize ? "3px" : "0", ThumbVertical, (props) => props.largeSize ? "16px" : "3px", (props) => props.largeSize ? props.theme.palette["blue-050"] : props.theme.palette["grey-300"], (props) => props.largeSize ? `1px solid ${props.theme.palette["grey-300"]}` : "none", ThumbVertical, (props) => props.largeSize ? props.theme.palette["blue-100"] : props.theme.palette["grey-500"], (props) => props.largeSize ? `1px solid ${props.theme.palette["grey-400"]}` : "none");
28
+ const TrackVertical = /* @__PURE__ */ styled.div.withConfig({
57
29
  displayName: "DnDScrollbarstyles__TrackVertical",
58
30
  componentId: "sc-12t6y2d-4"
59
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;}"]);
60
- var spinnerAnimation = keyframes(["from{transform:rotateZ(0deg);}to{transform:rotateZ(360deg);}"]);
61
- export var Loader = styled.div.withConfig({
32
+ const spinnerAnimation = /* @__PURE__ */ keyframes(["from{transform:rotateZ(0deg);}to{transform:rotateZ(360deg);}"]);
33
+ const Loader = /* @__PURE__ */ styled.div.withConfig({
62
34
  displayName: "DnDScrollbarstyles__Loader",
63
35
  componentId: "sc-12t6y2d-5"
64
- })(["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:", ";}"], function (props) {
65
- return props.loading ? '1' : '0';
66
- }, spinnerAnimation, function (props) {
67
- return props.theme.palette['blue-600'];
68
- }, function (props) {
69
- return props.theme.palette['blue-600'];
70
- });
71
- export var ScrollbarContainer = styled.div.withConfig({
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"]);
37
+ const ScrollbarContainer = /* @__PURE__ */ styled.div.withConfig({
72
38
  displayName: "DnDScrollbarstyles__ScrollbarContainer",
73
39
  componentId: "sc-12t6y2d-6"
74
- })(["display:flex;height:100%;overflow:hidden;position:relative;&:hover{", "{opacity:1;}}"], ScrollbarTrackWrapper);
40
+ })(["display:flex;height:100%;overflow:hidden;position:relative;&:hover{", "{opacity:1;}}"], ScrollbarTrackWrapper);
41
+ export {
42
+ Loader,
43
+ ScrollbarContainer,
44
+ ScrollbarContent,
45
+ ScrollbarTrackWrapper,
46
+ ScrollbarWrapper,
47
+ ThumbVertical,
48
+ TrackVertical
49
+ };
@@ -1 +1,4 @@
1
- export * from './DnDScrollbar';
1
+ import { DnDScrollbar } from "./DnDScrollbar.js";
2
+ export {
3
+ DnDScrollbar
4
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type ScrollbarProps, type VirtualScrollbarProps } from './Scrollbar.types';
1
+ import { default as React } from 'react';
2
+ import { ScrollbarProps, VirtualScrollbarProps } from './Scrollbar.types';
3
3
  declare const Scrollbar: React.ForwardRefExoticComponent<(ScrollbarProps | VirtualScrollbarProps) & React.RefAttributes<HTMLElement>>;
4
4
  export default Scrollbar;
package/dist/Scrollbar.js CHANGED
@@ -1,31 +1,25 @@
1
- var _excluded = ["children", "className", "loading", "withDnd", "fetchData"];
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
- 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, { forwardRef } from 'react';
5
- import { useTheme } from '@synerise/ds-core';
6
- import Icon, { SpinnerM } from '@synerise/ds-icon';
7
- import { DnDScrollbar } from './DnDScrollbar';
8
- import * as S from './Scrollbar.styles';
9
- import { VirtualScrollbar } from './VirtualScrollbar';
10
- var Scrollbar = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
11
- var children = _ref.children,
12
- className = _ref.className,
13
- loading = _ref.loading,
14
- withDnd = _ref.withDnd,
15
- fetchData = _ref.fetchData,
16
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
17
- var theme = useTheme();
18
- var Component = withDnd ? DnDScrollbar : VirtualScrollbar;
19
- return /*#__PURE__*/React.createElement(S.ScrollbarContainer, {
20
- className: className
21
- }, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
22
- fetchData: fetchData,
23
- ref: forwardedRef
24
- }), children), loading && /*#__PURE__*/React.createElement(S.LoaderWrapper, null, /*#__PURE__*/React.createElement(S.Loader, {
25
- loading: loading
26
- }, /*#__PURE__*/React.createElement(Icon, {
27
- component: /*#__PURE__*/React.createElement(SpinnerM, null),
28
- color: theme.palette['grey-600']
29
- }))));
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { useTheme } from "@synerise/ds-core";
4
+ import Icon, { SpinnerM } from "@synerise/ds-icon";
5
+ import { DnDScrollbar } from "./DnDScrollbar/DnDScrollbar.js";
6
+ import { ScrollbarContainer, LoaderWrapper, Loader } from "./Scrollbar.styles.js";
7
+ import { VirtualScrollbar } from "./VirtualScrollbar/VirtualScrollbar.js";
8
+ const Scrollbar = forwardRef(({
9
+ children,
10
+ className,
11
+ loading,
12
+ withDnd,
13
+ fetchData,
14
+ ...props
15
+ }, forwardedRef) => {
16
+ const theme = useTheme();
17
+ const Component = withDnd ? DnDScrollbar : VirtualScrollbar;
18
+ return /* @__PURE__ */ jsxs(ScrollbarContainer, { className, children: [
19
+ /* @__PURE__ */ jsx(Component, { ...props, fetchData, ref: forwardedRef, children }),
20
+ loading && /* @__PURE__ */ jsx(LoaderWrapper, { children: /* @__PURE__ */ jsx(Loader, { loading, children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SpinnerM, {}), color: theme.palette["grey-600"] }) }) })
21
+ ] });
30
22
  });
31
- export default Scrollbar;
23
+ export {
24
+ Scrollbar as default
25
+ };
@@ -1,5 +1,5 @@
1
- export declare const Loader: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const Loader: import('styled-components').StyledComponent<"div", any, {
2
2
  loading?: boolean;
3
3
  }, never>;
4
- export declare const LoaderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const ScrollbarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const LoaderWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
5
+ export declare const ScrollbarContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,20 +1,19 @@
1
- import styled, { keyframes } from 'styled-components';
2
- var spinnerAnimation = keyframes(["from{transform:rotateZ(0deg);}to{transform:rotateZ(360deg);}"]);
3
- export var Loader = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ const spinnerAnimation = /* @__PURE__ */ keyframes(["from{transform:rotateZ(0deg);}to{transform:rotateZ(360deg);}"]);
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:", ";}"], function (props) {
7
- return props.loading ? '1' : '0';
8
- }, spinnerAnimation, function (props) {
9
- return props.theme.palette['grey-600'];
10
- }, function (props) {
11
- return props.theme.palette['grey-600'];
12
- });
13
- export var LoaderWrapper = styled.div.withConfig({
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"]);
7
+ const LoaderWrapper = /* @__PURE__ */ styled.div.withConfig({
14
8
  displayName: "Scrollbarstyles__LoaderWrapper",
15
9
  componentId: "sc-rfwkf7-1"
16
10
  })(["width:100%;height:100%;bottom:0;left:0;position:absolute;background-color:rgba(255,255,255,0.6);"]);
17
- export var ScrollbarContainer = styled.div.withConfig({
11
+ const ScrollbarContainer = /* @__PURE__ */ styled.div.withConfig({
18
12
  displayName: "Scrollbarstyles__ScrollbarContainer",
19
13
  componentId: "sc-rfwkf7-2"
20
- })(["position:relative;height:100%;"]);
14
+ })(["position:relative;height:100%;"]);
15
+ export {
16
+ Loader,
17
+ LoaderWrapper,
18
+ ScrollbarContainer
19
+ };
@@ -1,5 +1,5 @@
1
- import { type CSSProperties, type ReactNode, type UIEvent } from 'react';
2
- import { type ScrollBarProps } from '@ofsajd/react-perfect-scrollbar';
1
+ import { CSSProperties, ReactNode, UIEvent } from 'react';
2
+ import { ScrollBarProps } from '@ofsajd/react-perfect-scrollbar';
3
3
  export type ScrollbarAdditionalProps = {
4
4
  absolute?: boolean;
5
5
  classes?: string;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
- import '../style/index.less';
3
- export declare const VirtualScrollbar: React.ForwardRefExoticComponent<import("../Scrollbar.types").ScrollbarAdditionalProps & {
1
+ import { default as React } from 'react';
2
+ export declare const VirtualScrollbar: React.ForwardRefExoticComponent<import('../Scrollbar.types').ScrollbarAdditionalProps & {
4
3
  children?: React.ReactNode;
5
4
  } & {
6
- scrollbarOptions?: import("@ofsajd/react-perfect-scrollbar").ScrollBarProps["options"];
5
+ scrollbarOptions?: import('@ofsajd/react-perfect-scrollbar').ScrollBarProps["options"];
7
6
  } & React.RefAttributes<HTMLElement>>;
@@ -1,111 +1,106 @@
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
- import classnames from 'classnames';
3
- import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
4
- import PerfectScrollbar from '@ofsajd/react-perfect-scrollbar';
5
- import { useCombinedRefs, useResizeObserver } from '@synerise/ds-utils';
6
- import "../style/index.css";
7
- import * as S from './VirtualScrollbar.styles';
8
- export var VirtualScrollbar = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
9
- var _ref$absolute = _ref.absolute,
10
- absolute = _ref$absolute === void 0 ? false : _ref$absolute,
11
- children = _ref.children,
12
- classes = _ref.classes,
13
- hasMore = _ref.hasMore,
14
- loading = _ref.loading,
15
- maxHeight = _ref.maxHeight,
16
- largeSize = _ref.largeSize,
17
- style = _ref.style,
18
- fetchData = _ref.fetchData,
19
- onScroll = _ref.onScroll,
20
- scrollbarOptions = _ref.scrollbarOptions,
21
- onYReachEnd = _ref.onYReachEnd,
22
- confineScroll = _ref.confineScroll;
23
- var scrollRef = useRef();
24
- var wrapperRef = useRef(null);
25
- var combinedScrollRef = useCombinedRefs(forwardedRef, scrollRef);
26
- var _useState = useState(0),
27
- lastScrollTop = _useState[0],
28
- setLastScrollTop = _useState[1];
29
- var _useResizeObserver = useResizeObserver(wrapperRef),
30
- height = _useResizeObserver.height,
31
- width = _useResizeObserver.width;
32
- var triggerScrollbarGeometryUpdate = useCallback(function () {
33
- var scrollEvent = new window.Event('scroll');
1
+ import { jsx } from "react/jsx-runtime";
2
+ import classnames from "classnames";
3
+ import { forwardRef, useRef, useState, useCallback, useEffect } from "react";
4
+ import PerfectScrollbar from "@ofsajd/react-perfect-scrollbar";
5
+ import { useCombinedRefs, useResizeObserver } from "@synerise/ds-utils";
6
+ import { ScrollbarContent, ScrollbarWrapper } from "./VirtualScrollbar.styles.js";
7
+ import "./../style/index.css";
8
+ const VirtualScrollbar = forwardRef(({
9
+ absolute = false,
10
+ children,
11
+ classes,
12
+ hasMore,
13
+ loading,
14
+ maxHeight,
15
+ largeSize,
16
+ style,
17
+ fetchData,
18
+ onScroll,
19
+ scrollbarOptions,
20
+ onYReachEnd,
21
+ confineScroll
22
+ }, forwardedRef) => {
23
+ const scrollRef = useRef();
24
+ const wrapperRef = useRef(null);
25
+ const combinedScrollRef = useCombinedRefs(forwardedRef, scrollRef);
26
+ const [lastScrollTop, setLastScrollTop] = useState(0);
27
+ const {
28
+ height,
29
+ width
30
+ } = useResizeObserver(wrapperRef);
31
+ const triggerScrollbarGeometryUpdate = useCallback(() => {
32
+ const scrollEvent = new window.Event("scroll");
34
33
  wrapperRef.current && wrapperRef.current.dispatchEvent(scrollEvent);
35
34
  combinedScrollRef.current && combinedScrollRef.current.dispatchEvent(scrollEvent);
36
35
  }, [combinedScrollRef]);
37
- useEffect(function () {
36
+ useEffect(() => {
38
37
  triggerScrollbarGeometryUpdate();
39
38
  }, [height, width, triggerScrollbarGeometryUpdate]);
40
- var handleReachEnd = useCallback(function () {
41
- var _combinedScrollRef$cu;
42
- if ((combinedScrollRef == null || (_combinedScrollRef$cu = combinedScrollRef.current) == null ? void 0 : _combinedScrollRef$cu.scrollTop) === lastScrollTop) {
39
+ const handleReachEnd = useCallback(() => {
40
+ if (combinedScrollRef?.current?.scrollTop === lastScrollTop) {
43
41
  return;
44
42
  }
45
43
  combinedScrollRef.current && setLastScrollTop(combinedScrollRef.current.scrollTop);
46
- if (typeof onYReachEnd === 'function') {
44
+ if (typeof onYReachEnd === "function") {
47
45
  onYReachEnd();
48
46
  }
49
47
  if (!loading && hasMore && fetchData) {
50
48
  fetchData();
51
49
  }
52
50
  }, [loading, hasMore, lastScrollTop, fetchData, onYReachEnd, combinedScrollRef]);
53
- var handleScrollUp = useCallback(function () {
54
- var _combinedScrollRef$cu2;
55
- if ((combinedScrollRef == null || (_combinedScrollRef$cu2 = combinedScrollRef.current) == null ? void 0 : _combinedScrollRef$cu2.scrollTop) !== 0) {
51
+ const handleScrollUp = useCallback(() => {
52
+ if (combinedScrollRef?.current?.scrollTop !== 0) {
56
53
  setLastScrollTop(0);
57
54
  }
58
55
  }, [combinedScrollRef]);
59
- useEffect(function () {
60
- var handleWheel = confineScroll && function (event) {
56
+ useEffect(() => {
57
+ const handleWheel = confineScroll && ((event) => {
61
58
  event.preventDefault();
62
- };
63
- var wrapper = wrapperRef.current;
64
- wrapper && handleWheel && wrapper.addEventListener('wheel', handleWheel);
65
- return function () {
66
- wrapper && handleWheel && wrapper.removeEventListener('wheel', handleWheel);
59
+ });
60
+ const wrapper = wrapperRef.current;
61
+ wrapper && handleWheel && wrapper.addEventListener("wheel", handleWheel);
62
+ return () => {
63
+ wrapper && handleWheel && wrapper.removeEventListener("wheel", handleWheel);
67
64
  };
68
65
  }, [confineScroll]);
69
- useEffect(function () {
70
- var endHandler = function endHandler(_ref2) {
71
- var target = _ref2.target;
66
+ useEffect(() => {
67
+ const endHandler = ({
68
+ target
69
+ }) => {
72
70
  if (target instanceof HTMLElement && combinedScrollRef.current && target.contains(combinedScrollRef.current)) {
73
71
  triggerScrollbarGeometryUpdate();
74
72
  }
75
73
  };
76
- document.body.addEventListener('transitionend', endHandler);
77
- document.body.addEventListener('animationend', endHandler);
78
- return function () {
79
- document.body.removeEventListener('transitionend', endHandler);
80
- document.body.removeEventListener('animationend', endHandler);
74
+ document.body.addEventListener("transitionend", endHandler);
75
+ document.body.addEventListener("animationend", endHandler);
76
+ return () => {
77
+ document.body.removeEventListener("transitionend", endHandler);
78
+ document.body.removeEventListener("animationend", endHandler);
81
79
  };
82
80
  });
83
- var className = classnames('perfect-scrollbar-wrapper', {
84
- 'large-size': largeSize
81
+ const className = classnames("perfect-scrollbar-wrapper", {
82
+ "large-size": largeSize
85
83
  });
86
- return /*#__PURE__*/React.createElement(PerfectScrollbar, {
87
- containerRef: function containerRef(ref) {
88
- combinedScrollRef.current = ref;
89
- } // workaround: https://github.com/goldenyz/react-perfect-scrollbar/issues/94#issuecomment-619131257
90
- ,
91
- onScroll: onScroll,
92
- onScrollUp: handleScrollUp,
93
- options: _extends({}, scrollbarOptions, {
94
- minScrollbarLength: 48
95
- }),
96
- onYReachEnd: handleReachEnd,
97
- className: className
98
- }, /*#__PURE__*/React.createElement(S.ScrollbarContent, {
99
- className: "" + classes,
100
- style: {
101
- maxHeight: maxHeight
102
- },
103
- "data-testid": "virtual-scrollbar"
104
- }, /*#__PURE__*/React.createElement(S.ScrollbarWrapper, {
105
- ref: wrapperRef,
106
- absolute: absolute,
107
- loading: loading,
108
- style: style,
109
- largeSize: largeSize
110
- }, children)));
111
- });
84
+ return /* @__PURE__ */ jsx(
85
+ PerfectScrollbar,
86
+ {
87
+ containerRef: (ref) => {
88
+ combinedScrollRef.current = ref;
89
+ },
90
+ onScroll,
91
+ onScrollUp: handleScrollUp,
92
+ options: {
93
+ ...scrollbarOptions,
94
+ minScrollbarLength: 48
95
+ },
96
+ onYReachEnd: handleReachEnd,
97
+ className,
98
+ children: /* @__PURE__ */ jsx(ScrollbarContent, { className: `${classes}`, style: {
99
+ maxHeight
100
+ }, "data-testid": "virtual-scrollbar", children: /* @__PURE__ */ jsx(ScrollbarWrapper, { ref: wrapperRef, absolute, loading, style, largeSize, children }) })
101
+ }
102
+ );
103
+ });
104
+ export {
105
+ VirtualScrollbar
106
+ };
@@ -1,5 +1,5 @@
1
- export declare const ScrollbarContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const ScrollbarWrapper: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const ScrollbarContent: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const ScrollbarWrapper: import('styled-components').StyledComponent<"div", any, {
3
3
  absolute?: boolean;
4
4
  loading?: boolean;
5
5
  largeSize?: boolean;
@@ -1,21 +1,23 @@
1
- import styled from 'styled-components';
2
- export var ScrollbarContent = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ const ScrollbarContent = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "VirtualScrollbarstyles__ScrollbarContent",
4
4
  componentId: "sc-hoiad9-0"
5
5
  })([""]);
6
- export var ScrollbarWrapper = styled.div.withConfig({
6
+ const ScrollbarWrapper = /* @__PURE__ */ styled.div.withConfig({
7
7
  displayName: "VirtualScrollbarstyles__ScrollbarWrapper",
8
8
  componentId: "sc-hoiad9-1"
9
- })(["padding-right:", ";.ps--active-x &{padding-bottom:", ";}& > *{opacity:", ";transition:all 0.25s ease-in-out;}"], function (props) {
9
+ })(["padding-right:", ";.ps--active-x &{padding-bottom:", ";}& > *{opacity:", ";transition:all 0.25s ease-in-out;}"], (props) => {
10
10
  if (props.absolute) {
11
- return '';
11
+ return "";
12
12
  }
13
- return props.largeSize ? '24px !important' : '11px !important';
14
- }, function (props) {
13
+ return props.largeSize ? "24px !important" : "11px !important";
14
+ }, (props) => {
15
15
  if (props.absolute) {
16
- return '';
16
+ return "";
17
17
  }
18
- return props.largeSize ? '20px !important' : '11px !important';
19
- }, function (props) {
20
- return props.loading ? '0.2' : '1';
21
- });
18
+ return props.largeSize ? "20px !important" : "11px !important";
19
+ }, (props) => props.loading ? "0.2" : "1");
20
+ export {
21
+ ScrollbarContent,
22
+ ScrollbarWrapper
23
+ };
@@ -1 +1,4 @@
1
- export * from './VirtualScrollbar';
1
+ import { VirtualScrollbar } from "./VirtualScrollbar.js";
2
+ export {
3
+ VirtualScrollbar
4
+ };
File without changes
package/dist/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export { default } from './Scrollbar';
2
- export * from './Scrollbar.types';
1
+ import { default as default2 } from "./Scrollbar.js";
2
+ export {
3
+ default2 as default
4
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-scrollbar",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "Scrollbar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
19
+ "build": "vite build",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
- "build:watch": "pnpm run build:js -- --watch",
22
+ "build:watch": "vite build --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "pnpm run build",
@@ -36,8 +36,8 @@
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
38
  "@ofsajd/react-perfect-scrollbar": "1.0.0",
39
- "@synerise/ds-icon": "^1.15.0",
40
- "@synerise/ds-utils": "^1.7.0",
39
+ "@synerise/ds-icon": "^1.15.2",
40
+ "@synerise/ds-utils": "^1.7.1",
41
41
  "classnames": "^2.3.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "react": ">=16.9.0 <= 18.3.1",
46
46
  "styled-components": "^5.3.3"
47
47
  },
48
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
48
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
49
49
  }