@festo-ui/react-extra 9.0.0-dev.718 → 9.0.0-dev.719

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,4 @@
1
+ export interface ScrollAreaProps extends React.ComponentPropsWithoutRef<'div'> {
2
+ readonly scrollbarMinSize?: number;
3
+ }
4
+ export declare function ScrollArea({ children, scrollbarMinSize, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import simplebar_react from "simplebar-react";
3
+ function ScrollArea({ children, scrollbarMinSize = 25, ...props }) {
4
+ return /*#__PURE__*/ jsx(simplebar_react, {
5
+ ...props,
6
+ scrollbarMinSize: scrollbarMinSize,
7
+ children: children
8
+ });
9
+ }
10
+ export { ScrollArea };
@@ -0,0 +1,9 @@
1
+ .scroll-area-styles {
2
+ width: 400px;
3
+ max-width: 400px;
4
+ height: 300px;
5
+ padding-right: 8px;
6
+ display: block;
7
+ overflow: hidden auto;
8
+ }
9
+
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { ColorIndicator, type ColorIndicatorProps, } from './forms/color-indicator/ColorIndicator';
1
+ export { ColorIndicator, type ColorIndicatorProps, } from './components/color-indicator/ColorIndicator';
2
+ export { ScrollArea, type ScrollAreaProps, } from './components/scroll-area/ScrollArea';
2
3
  export { ColorPicker, type ColorPickerProps, } from './forms/color-picker/ColorPicker';
3
4
  export { DatePicker, type DatePickerOptions, type DatePickerProps, } from './forms/date-picker/DatePicker';
4
5
  export { DateRangePicker, type DateRangePickerOptions, type DateRangePickerProps, } from './forms/date-range-picker/DateRangePicker';
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
- import { ColorIndicator } from "./forms/color-indicator/ColorIndicator.js";
1
+ import { ColorIndicator } from "./components/color-indicator/ColorIndicator.js";
2
+ import { ScrollArea } from "./components/scroll-area/ScrollArea.js";
2
3
  import { ColorPicker } from "./forms/color-picker/ColorPicker.js";
3
4
  import { DatePicker } from "./forms/date-picker/DatePicker.js";
4
5
  import { DateRangePicker } from "./forms/date-range-picker/DateRangePicker.js";
5
6
  import { TextEditor } from "./forms/text-editor/TextEditor.js";
6
- export { ColorIndicator, ColorPicker, DatePicker, DateRangePicker, TextEditor };
7
+ export { ColorIndicator, ColorPicker, DatePicker, DateRangePicker, ScrollArea, TextEditor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react-extra",
3
- "version": "9.0.0-dev.718",
3
+ "version": "9.0.0-dev.719",
4
4
  "license": "apache-2.0",
5
5
  "author": "Festo UI (styleguide@festo.com)",
6
6
  "type": "module",
@@ -33,6 +33,7 @@
33
33
  "classnames": "^2.5.1",
34
34
  "flatpickr": "^4.6.9",
35
35
  "react-draggable": "^4.4.6",
36
+ "simplebar-react": "^3.3.2",
36
37
  "xss": "^1.0.10"
37
38
  },
38
39
  "devDependencies": {