@headless-adminapp/app 1.4.46 → 1.4.48

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.
@@ -6,6 +6,7 @@ interface ScrollViewProps {
6
6
  rtl?: boolean;
7
7
  onScroll?: ScrollbarProps['onScroll'];
8
8
  shadowEffect?: boolean;
9
+ flexColumn?: boolean;
9
10
  }
10
11
  export declare const ScrollView: FC<PropsWithChildren<ScrollViewProps>>;
11
12
  export {};
@@ -8,7 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const clsx_1 = __importDefault(require("clsx"));
9
9
  const react_1 = require("react");
10
10
  const react_custom_scrollbars_2_1 = require("react-custom-scrollbars-2");
11
- const ScrollView = ({ children, className, rtl, autoHide, onScroll, shadowEffect = false, }) => {
11
+ const ScrollView = ({ children, className, rtl, autoHide, onScroll, shadowEffect = false, flexColumn = false, }) => {
12
12
  const [isTop, setIsTop] = (0, react_1.useState)(true);
13
13
  const [isBottom, setIsBottom] = (0, react_1.useState)(false);
14
14
  const handleScroll = (event) => {
@@ -27,6 +27,6 @@ const ScrollView = ({ children, className, rtl, autoHide, onScroll, shadowEffect
27
27
  setIsBottom(_isBottom);
28
28
  }
29
29
  };
30
- return ((0, jsx_runtime_1.jsx)(react_custom_scrollbars_2_1.Scrollbars, { autoHide: autoHide, className: (0, clsx_1.default)(className, 'hdl-scrollbar', rtl && 'rtl', shadowEffect && !isTop && 'hdl-scrollbar-shadow-top', shadowEffect && !isBottom && 'hdl-scrollbar-shadow-bottom'), onScroll: handleScroll, onUpdate: handleOnUpdate, children: children }));
30
+ return ((0, jsx_runtime_1.jsx)(react_custom_scrollbars_2_1.Scrollbars, { autoHide: autoHide, className: (0, clsx_1.default)(className, 'hdl-scrollbar', rtl && 'rtl', shadowEffect && !isTop && 'hdl-scrollbar-shadow-top', shadowEffect && !isBottom && 'hdl-scrollbar-shadow-bottom', flexColumn && 'hdl-scrollbar-column'), onScroll: handleScroll, onUpdate: handleOnUpdate, children: children }));
31
31
  };
32
32
  exports.ScrollView = ScrollView;
package/index.css CHANGED
@@ -3,6 +3,11 @@
3
3
  margin-left: -15px;
4
4
  }
5
5
 
6
+ .hdl-scrollbar-column > div {
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
10
+
6
11
  .hdl-scrollbar-shadow-top::before {
7
12
  content: ' ';
8
13
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-adminapp/app",
3
- "version": "1.4.46",
3
+ "version": "1.4.48",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -38,5 +38,5 @@
38
38
  "uuid": "11.0.3",
39
39
  "yup": "^1.4.0"
40
40
  },
41
- "gitHead": "1bfcdb7d46b6cc382bf841ef4987203a7eb34878"
41
+ "gitHead": "b50526fb97247c5c376a4a997a6eb44cea8c8ae1"
42
42
  }