@bigbinary/neeto-molecules 2.0.2 → 2.0.3
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/dist/Container.js +8 -2
- package/dist/Container.js.map +1 -1
- package/dist/cjs/Container.js +8 -2
- package/dist/cjs/Container.js.map +1 -1
- package/package.json +1 -1
- package/types/Container.d.ts +1 -0
package/dist/Container.js
CHANGED
|
@@ -9,12 +9,14 @@ n(css,{});
|
|
|
9
9
|
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
10
|
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
11
11
|
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
12
|
+
_ref$className = _ref.className,
|
|
13
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
12
14
|
children = _ref.children;
|
|
13
15
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14
16
|
ref: ref,
|
|
15
17
|
className: classnames("neeto-molecules-container", {
|
|
16
18
|
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
17
|
-
})
|
|
19
|
+
}, className)
|
|
18
20
|
}, children);
|
|
19
21
|
});
|
|
20
22
|
Container.displayName = "Container";
|
|
@@ -22,7 +24,11 @@ Container.propTypes = {
|
|
|
22
24
|
/**
|
|
23
25
|
* Decides whether the `Header` component should be stickied at the top on scroll.
|
|
24
26
|
*/
|
|
25
|
-
isHeaderFixed: propTypes.exports.bool
|
|
27
|
+
isHeaderFixed: propTypes.exports.bool,
|
|
28
|
+
/**
|
|
29
|
+
* Additional classes to be added to the modal
|
|
30
|
+
*/
|
|
31
|
+
className: propTypes.exports.string
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
export { Container as default };
|
package/dist/Container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../src/components/Container/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./container.scss\";\n\nconst Container = forwardRef(({ isHeaderFixed = false, children }, ref) => (\n
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../src/components/Container/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./container.scss\";\n\nconst Container = forwardRef(\n ({ isHeaderFixed = false, className = \"\", children }, ref) => (\n <div\n {...{ ref }}\n className={classnames(\n \"neeto-molecules-container\",\n { \"neeto-molecules-container--header-fixed\": isHeaderFixed },\n className\n )}\n >\n {children}\n </div>\n )\n);\n\nContainer.displayName = \"Container\";\n\nContainer.propTypes = {\n /**\n * Decides whether the `Header` component should be stickied at the top on scroll.\n */\n isHeaderFixed: PropTypes.bool,\n /**\n * Additional classes to be added to the modal\n */\n className: PropTypes.string,\n};\n\nexport default Container;\n"],"names":["Container","forwardRef","_ref","ref","_ref$isHeaderFixed","isHeaderFixed","_ref$className","className","children","React","createElement","classnames","displayName","propTypes","PropTypes","bool","string"],"mappings":";;;;;;;;AAOA,IAAMA,SAAS,gBAAGC,UAAU,CAC1B,UAAAC,IAAA,EAAsDC,GAAG,EAAA;AAAA,EAAA,IAAAC,kBAAA,GAAAF,IAAA,CAAtDG,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,kBAAA;IAAAE,cAAA,GAAAJ,IAAA,CAAEK,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAEE,QAAQ,GAAAN,IAAA,CAARM,QAAQ,CAAA;EAAA,oBAChDC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACQP,IAAAA,GAAG,EAAHA,GAAG;AACTI,IAAAA,SAAS,EAAEI,UAAU,CACnB,2BAA2B,EAC3B;AAAE,MAAA,yCAAyC,EAAEN,aAAAA;AAAc,KAAC,EAC5DE,SACF,CAAA;AAAE,GAAA,EAEDC,QACE,CAAC,CAAA;AAAA,CAEV,EAAC;AAEDR,SAAS,CAACY,WAAW,GAAG,WAAW,CAAA;AAEnCZ,SAAS,CAACa,SAAS,GAAG;AACpB;AACF;AACA;EACER,aAAa,EAAES,iBAAS,CAACC,IAAI;AAC7B;AACF;AACA;EACER,SAAS,EAAEO,iBAAS,CAACE,MAAAA;AACvB,CAAC;;;;"}
|
package/dist/cjs/Container.js
CHANGED
|
@@ -16,12 +16,14 @@ injectCss.n(css,{});
|
|
|
16
16
|
var Container = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
17
17
|
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
18
18
|
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
19
|
+
_ref$className = _ref.className,
|
|
20
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
19
21
|
children = _ref.children;
|
|
20
22
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21
23
|
ref: ref,
|
|
22
24
|
className: classnames__default["default"]("neeto-molecules-container", {
|
|
23
25
|
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
24
|
-
})
|
|
26
|
+
}, className)
|
|
25
27
|
}, children);
|
|
26
28
|
});
|
|
27
29
|
Container.displayName = "Container";
|
|
@@ -29,7 +31,11 @@ Container.propTypes = {
|
|
|
29
31
|
/**
|
|
30
32
|
* Decides whether the `Header` component should be stickied at the top on scroll.
|
|
31
33
|
*/
|
|
32
|
-
isHeaderFixed: index.propTypes.exports.bool
|
|
34
|
+
isHeaderFixed: index.propTypes.exports.bool,
|
|
35
|
+
/**
|
|
36
|
+
* Additional classes to be added to the modal
|
|
37
|
+
*/
|
|
38
|
+
className: index.propTypes.exports.string
|
|
33
39
|
};
|
|
34
40
|
|
|
35
41
|
module.exports = Container;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../../src/components/Container/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./container.scss\";\n\nconst Container = forwardRef(({ isHeaderFixed = false, children }, ref) => (\n
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../../src/components/Container/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport \"./container.scss\";\n\nconst Container = forwardRef(\n ({ isHeaderFixed = false, className = \"\", children }, ref) => (\n <div\n {...{ ref }}\n className={classnames(\n \"neeto-molecules-container\",\n { \"neeto-molecules-container--header-fixed\": isHeaderFixed },\n className\n )}\n >\n {children}\n </div>\n )\n);\n\nContainer.displayName = \"Container\";\n\nContainer.propTypes = {\n /**\n * Decides whether the `Header` component should be stickied at the top on scroll.\n */\n isHeaderFixed: PropTypes.bool,\n /**\n * Additional classes to be added to the modal\n */\n className: PropTypes.string,\n};\n\nexport default Container;\n"],"names":["Container","forwardRef","_ref","ref","_ref$isHeaderFixed","isHeaderFixed","_ref$className","className","children","React","createElement","classnames","displayName","propTypes","PropTypes","bool","string"],"mappings":";;;;;;;;;;;;;;;AAOA,IAAMA,SAAS,gBAAGC,gBAAU,CAC1B,UAAAC,IAAA,EAAsDC,GAAG,EAAA;AAAA,EAAA,IAAAC,kBAAA,GAAAF,IAAA,CAAtDG,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,kBAAA;IAAAE,cAAA,GAAAJ,IAAA,CAAEK,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAEE,QAAQ,GAAAN,IAAA,CAARM,QAAQ,CAAA;EAAA,oBAChDC,yBAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACQP,IAAAA,GAAG,EAAHA,GAAG;AACTI,IAAAA,SAAS,EAAEI,8BAAU,CACnB,2BAA2B,EAC3B;AAAE,MAAA,yCAAyC,EAAEN,aAAAA;AAAc,KAAC,EAC5DE,SACF,CAAA;AAAE,GAAA,EAEDC,QACE,CAAC,CAAA;AAAA,CAEV,EAAC;AAEDR,SAAS,CAACY,WAAW,GAAG,WAAW,CAAA;AAEnCZ,SAAS,CAACa,SAAS,GAAG;AACpB;AACF;AACA;EACER,aAAa,EAAES,uBAAS,CAACC,IAAI;AAC7B;AACF;AACA;EACER,SAAS,EAAEO,uBAAS,CAACE,MAAAA;AACvB,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|