@homecode/ui 4.26.7 → 4.26.8

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.
@@ -26,7 +26,7 @@ import 'justorm/react';
26
26
  import 'lodash.omit';
27
27
  import 'nanoid';
28
28
  import '../Checkbox/Checkbox.styl.js';
29
- import '../Container/Container.styl.js';
29
+ import '../Container/Container.js';
30
30
  import '../DatePicker/DatePicker.styl.js';
31
31
  import 'moment';
32
32
  import '../DatePickerInput/DatePickerInput.styl.js';
@@ -1,12 +1,13 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import cn from 'classnames';
3
3
  import S from './Container.styl.js';
4
+ import { forwardRef } from 'react';
4
5
 
5
- function Container(props) {
6
+ const Container = forwardRef((props, ref) => {
6
7
  const { className, children, size, alignItemsCenter, justifyContentCenter, vertical, fullHeight, fullWidth, scrolledX, scrolledY, style, ...rest } = props;
7
8
  const classes = cn(S.root, size && S[`size-${size}`], alignItemsCenter && S.alignItemsCenter, justifyContentCenter && S.justifyContentCenter, vertical && S.vertical, scrolledX && S.scrolledX, scrolledY && S.scrolledY, fullHeight && S.fullHeight, fullWidth && S.fullWidth, className);
8
9
  const stylesObj = { ...style };
9
- return (jsx("div", { className: classes, ...rest, style: stylesObj, children: children }));
10
- }
10
+ return (jsx("div", { className: classes, ...rest, style: stylesObj, ref: ref, children: children }));
11
+ });
11
12
 
12
13
  export { Container };
@@ -30,7 +30,7 @@ import '../RequiredStar/RequiredStar.styl.js';
30
30
  import '../Select/Select.styl.js';
31
31
  import 'lodash.omit';
32
32
  import '../Checkbox/Checkbox.styl.js';
33
- import '../Container/Container.styl.js';
33
+ import '../Container/Container.js';
34
34
  import '../DatePicker/DatePicker.styl.js';
35
35
  import 'moment';
36
36
  import '../DatePickerInput/DatePickerInput.styl.js';
@@ -1,2 +1,2 @@
1
1
  import * as T from './Container.types';
2
- export declare function Container(props: T.Props): JSX.Element;
2
+ export declare const Container: import("react").ForwardRefExoticComponent<T.Props & import("react").RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.26.7",
3
+ "version": "4.26.8",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "tests": "jest",