@aloudata/aloudata-design 2.10.5 → 2.11.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.
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "className", "innerClassName", "horizontalScrollBarClassName", "verticalScrollBarClassName", "onViewportScroll", "contentDeterminesWidth", "scrollBarHidden"];
1
+ var _excluded = ["children", "className", "innerClassName", "horizontalScrollBarClassName", "verticalScrollBarClassName", "onViewportScroll", "contentDeterminesWidth", "scrollBarHidden", "asChild"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -14,6 +14,7 @@ var ScrollArea = function ScrollArea(props, ref) {
14
14
  onViewportScroll = props.onViewportScroll,
15
15
  contentDeterminesWidth = props.contentDeterminesWidth,
16
16
  scrollBarHidden = props.scrollBarHidden,
17
+ asChild = props.asChild,
17
18
  rest = _objectWithoutProperties(props, _excluded);
18
19
  var isHorizontalScrollBarHidden = scrollBarHidden === null || scrollBarHidden === void 0 ? void 0 : scrollBarHidden.includes('horizontal');
19
20
  var isVerticalScrollBarHidden = scrollBarHidden === null || scrollBarHidden === void 0 ? void 0 : scrollBarHidden.includes('vertical');
@@ -21,6 +22,7 @@ var ScrollArea = function ScrollArea(props, ref) {
21
22
  scrollHideDelay: 50,
22
23
  className: classNames('ald-scroll-area', className)
23
24
  }), /*#__PURE__*/React.createElement(ScrollAreaComponent.Viewport, {
25
+ asChild: asChild,
24
26
  className: classNames('ald-scroll-area-inner', {
25
27
  'ald-scroll-area-width-auto': !contentDeterminesWidth
26
28
  }, innerClassName),
@@ -8,6 +8,7 @@ export interface SpinProps {
8
8
  spinning?: boolean;
9
9
  wrapperClassName?: string;
10
10
  className?: string;
11
+ style?: React.CSSProperties;
11
12
  }
12
13
  declare function CustomSpin(props: SpinProps): React.JSX.Element | null;
13
14
  export default CustomSpin;
@@ -16,7 +16,8 @@ function CustomSpin(props) {
16
16
  children = props.children,
17
17
  spinning = props.spinning,
18
18
  wrapperClassName = props.wrapperClassName,
19
- className = props.className;
19
+ className = props.className,
20
+ style = props.style;
20
21
  if (!children) {
21
22
  return CustomIcon({
22
23
  size: size,
@@ -31,9 +32,9 @@ function CustomSpin(props) {
31
32
  }
32
33
  if (isFragment(children) || isReactComponent(children)) {
33
34
  return /*#__PURE__*/React.createElement('div', {
34
- style: {
35
+ style: _objectSpread(_objectSpread({}, style), {}, {
35
36
  position: 'relative'
36
- },
37
+ }),
37
38
  className: classNames(wrapperClassName)
38
39
  }, [children, CustomIcon({
39
40
  size: size,
@@ -148,10 +148,8 @@
148
148
  }
149
149
  }
150
150
 
151
- &.ald-tabs-compact {
152
- .ant-tabs-nav {
153
- margin-bottom: 0;
154
- }
151
+ &.ald-tabs-compact > .ant-tabs-nav {
152
+ margin-bottom: 0;
155
153
  }
156
154
  }
157
155