oolib 2.17.8 → 2.17.9

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,6 +1,13 @@
1
- export function Container({ children, className, style, noPadding }: {
1
+ export function Comp({ children, className, style, noPadding }: {
2
2
  children: any;
3
3
  className: any;
4
4
  style: any;
5
5
  noPadding: any;
6
- }): JSX.Element;
6
+ }, ref: any): JSX.Element;
7
+ export const Container: React.ForwardRefExoticComponent<{
8
+ children: any;
9
+ className: any;
10
+ style: any;
11
+ noPadding: any;
12
+ } & React.RefAttributes<any>>;
13
+ import React from "react";
@@ -10,15 +10,36 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
15
35
  };
16
36
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Container = void 0;
18
- var react_1 = __importDefault(require("react"));
37
+ exports.Container = exports.Comp = void 0;
38
+ var react_1 = __importStar(require("react"));
19
39
  var index_styled_1 = require("./index.styled");
20
- var Container = function (_a) {
40
+ var Comp = function (_a, ref) {
21
41
  var children = _a.children, className = _a.className, style = _a.style, noPadding = _a.noPadding;
22
- return (react_1.default.createElement(index_styled_1.StyledContainer, { className: className || '', style: __assign(__assign({}, (noPadding ? { padding: 0 } : {})), style) }, children));
42
+ return (react_1.default.createElement(index_styled_1.StyledContainer, { ref: ref, className: className || '', style: __assign(__assign({}, (noPadding ? { padding: 0 } : {})), style) }, children));
23
43
  };
24
- exports.Container = Container;
44
+ exports.Comp = Comp;
45
+ exports.Container = (0, react_1.forwardRef)(exports.Comp);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.17.8",
3
+ "version": "2.17.9",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",