@festo-ui/react 7.2.0-dev.449 → 7.2.0-dev.454
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/index.d.ts +1 -0
- package/index.js +1 -0
- package/lib/components/scroll-area/ScrollArea.d.ts +6 -0
- package/lib/components/scroll-area/ScrollArea.js +14 -0
- package/node/index.js +7 -0
- package/node/lib/components/scroll-area/ScrollArea.js +21 -0
- package/package.json +2 -1
- package/simplebar.min.css +1 -0
package/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export { default as DateRangePicker } from './lib/forms/date-range-picker/DateRa
|
|
|
49
49
|
export { default as RadioButton } from './lib/forms/radio/RadioButton';
|
|
50
50
|
export { default as Radio } from './lib/forms/radio/RadioButton';
|
|
51
51
|
export { default as RadioGroup } from './lib/forms/radio/RadioGroup';
|
|
52
|
+
export { default as ScrollArea } from './lib/components/scroll-area/ScrollArea';
|
|
52
53
|
export { default as Segment } from './lib/forms/segment/Segment';
|
|
53
54
|
export { default as SegmentControl } from './lib/forms/segment/segment-control/SegmentControl';
|
|
54
55
|
export { default as Select } from './lib/forms/select/Select';
|
package/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export { default as DateRangePicker } from "./lib/forms/date-range-picker/DateRa
|
|
|
49
49
|
export { default as RadioButton } from "./lib/forms/radio/RadioButton.js";
|
|
50
50
|
export { default as Radio } from "./lib/forms/radio/RadioButton.js";
|
|
51
51
|
export { default as RadioGroup } from "./lib/forms/radio/RadioGroup.js";
|
|
52
|
+
export { default as ScrollArea } from "./lib/components/scroll-area/ScrollArea.js";
|
|
52
53
|
export { default as Segment } from "./lib/forms/segment/Segment.js";
|
|
53
54
|
export { default as SegmentControl } from "./lib/forms/segment/segment-control/SegmentControl.js";
|
|
54
55
|
export { default as Select } from "./lib/forms/select/Select.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import SimpleBar from 'simplebar-react';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export default function ScrollArea(_ref) {
|
|
4
|
+
let {
|
|
5
|
+
children,
|
|
6
|
+
scrollbarMinSize = 25,
|
|
7
|
+
...props
|
|
8
|
+
} = _ref;
|
|
9
|
+
return /*#__PURE__*/_jsx(SimpleBar, {
|
|
10
|
+
...props,
|
|
11
|
+
scrollbarMinSize: scrollbarMinSize,
|
|
12
|
+
children: children
|
|
13
|
+
});
|
|
14
|
+
}
|
package/node/index.js
CHANGED
|
@@ -237,6 +237,12 @@ Object.defineProperty(exports, "RadioGroup", {
|
|
|
237
237
|
return _RadioGroup.default;
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () {
|
|
243
|
+
return _ScrollArea.default;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
240
246
|
Object.defineProperty(exports, "SearchInput", {
|
|
241
247
|
enumerable: true,
|
|
242
248
|
get: function () {
|
|
@@ -425,6 +431,7 @@ var _DatePicker = _interopRequireDefault(require("./lib/forms/date-picker/DatePi
|
|
|
425
431
|
var _DateRangePicker = _interopRequireDefault(require("./lib/forms/date-range-picker/DateRangePicker.js"));
|
|
426
432
|
var _RadioButton = _interopRequireDefault(require("./lib/forms/radio/RadioButton.js"));
|
|
427
433
|
var _RadioGroup = _interopRequireDefault(require("./lib/forms/radio/RadioGroup.js"));
|
|
434
|
+
var _ScrollArea = _interopRequireDefault(require("./lib/components/scroll-area/ScrollArea.js"));
|
|
428
435
|
var _Segment = _interopRequireDefault(require("./lib/forms/segment/Segment.js"));
|
|
429
436
|
var _SegmentControl = _interopRequireDefault(require("./lib/forms/segment/segment-control/SegmentControl.js"));
|
|
430
437
|
var _Select = _interopRequireDefault(require("./lib/forms/select/Select.js"));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = ScrollArea;
|
|
7
|
+
var _simplebarReact = _interopRequireDefault(require("simplebar-react"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function ScrollArea(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
children,
|
|
13
|
+
scrollbarMinSize = 25,
|
|
14
|
+
...props
|
|
15
|
+
} = _ref;
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_simplebarReact.default, {
|
|
17
|
+
...props,
|
|
18
|
+
scrollbarMinSize: scrollbarMinSize,
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@festo-ui/react",
|
|
3
|
-
"version": "7.2.0-dev.
|
|
3
|
+
"version": "7.2.0-dev.454",
|
|
4
4
|
"author": "Festo UI (styleguide@festo.com)",
|
|
5
5
|
"license": "apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"react-popper": "^2.3.0",
|
|
33
33
|
"react-remove-scroll": "^2.5.7",
|
|
34
34
|
"react-transition-group": "^4.4.2",
|
|
35
|
+
"simplebar-react": "^3.2.6",
|
|
35
36
|
"swiper": "^9.4.1",
|
|
36
37
|
"xss": "^1.0.10"
|
|
37
38
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|