@yamada-ui/scroll-area 0.2.4 → 0.2.6

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.
@@ -0,0 +1,2 @@
1
+ export { ScrollArea, ScrollAreaProps } from './scroll-area.mjs';
2
+ import '@yamada-ui/core';
@@ -0,0 +1,32 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps, ThemeProps } from '@yamada-ui/core';
3
+
4
+ type ScrollAreaOptions = {
5
+ /**
6
+ * Scrollbar visibility type.
7
+ *
8
+ * @default 'hover'
9
+ */
10
+ type?: 'always' | 'scroll' | 'hover' | 'never';
11
+ /**
12
+ * Props for inner element.
13
+ */
14
+ innerProps?: HTMLUIProps<'div'>;
15
+ /**
16
+ * Delay in milliseconds before scrollbars are hidden.
17
+ *
18
+ * @default 1000
19
+ */
20
+ scrollHideDelay?: number;
21
+ /**
22
+ * Callback function for when the scroll position changes.
23
+ */
24
+ onScrollPositionChange?: ({ x, y }: {
25
+ x: number;
26
+ y: number;
27
+ }) => void;
28
+ };
29
+ type ScrollAreaProps = HTMLUIProps<'div'> & ThemeProps<'ScrollArea'> & ScrollAreaOptions;
30
+ declare const ScrollArea: _yamada_ui_core.Component<"div", ScrollAreaProps>;
31
+
32
+ export { ScrollArea, ScrollAreaProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/scroll-area",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Yamada UI scroll area component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,8 +35,8 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.4.3",
39
- "@yamada-ui/utils": "0.1.2"
38
+ "@yamada-ui/core": "0.5.1",
39
+ "@yamada-ui/utils": "0.1.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "react": "^18.0.0",