@conveyorhq/arrow-ds 1.136.0 → 1.137.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.136.0",
5
+ "version": "1.137.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -3,6 +3,7 @@ import { BoxProps } from "../Box";
3
3
  interface ScrollPaneProps extends BoxProps {
4
4
  disabled?: boolean;
5
5
  scrollableContainerRef?: Ref<HTMLDivElement>;
6
+ scrollbarVisible?: boolean;
6
7
  }
7
8
  export declare const ScrollPane: (props: ScrollPaneProps) => JSX.Element;
8
9
  export {};
@@ -10,8 +10,11 @@ const Box_1 = require("../Box");
10
10
  const bem_1 = require("../../utilities/bem");
11
11
  const cn = "ScrollPane";
12
12
  const ScrollPane = (props) => {
13
- const { children, disabled, className, scrollableContainerRef, ...rest } = props;
13
+ const { children, disabled, className, scrollableContainerRef, scrollbarVisible, ...rest } = props;
14
14
  return (react_1.default.createElement(Box_1.Box, Object.assign({}, rest, { className: classnames_1.default(bem_1.bem(cn), disabled && "is-disabled", className) }),
15
- react_1.default.createElement(Box_1.Box, { ref: scrollableContainerRef, className: bem_1.bem(cn, { e: "container" }) }, children)));
15
+ react_1.default.createElement(Box_1.Box, { ref: scrollableContainerRef, className: classnames_1.default([
16
+ bem_1.bem(cn, { e: "container" }),
17
+ !disabled && scrollbarVisible && "visible-scrollbar",
18
+ ]) }, children)));
16
19
  };
17
20
  exports.ScrollPane = ScrollPane;
@@ -672,6 +672,23 @@ a:focus-visible,
672
672
  --tw-backdrop-sepia: ;
673
673
  }
674
674
 
675
+ .visible-scrollbar::-webkit-scrollbar {
676
+ -webkit-appearance: none;
677
+ width: 8px;
678
+ height: 8px;
679
+ }
680
+
681
+ .visible-scrollbar::-webkit-scrollbar-track,
682
+ .visible-scrollbar::-webkit-scrollbar-corner {
683
+ background-color: rgba(0, 0, 0, 0.1);
684
+ }
685
+
686
+ .visible-scrollbar::-webkit-scrollbar-thumb {
687
+ border-radius: 4px;
688
+ background-color: rgba(0, 0, 0, 0.4);
689
+ box-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
690
+ }
691
+
675
692
  /* BASICS */
676
693
 
677
694
  .CodeMirror {