@bigbinary/neeto-molecules 5.1.7 → 5.1.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.
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var classnames = require('classnames');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ var TableWrapper = function TableWrapper(_ref) {
7
+ var children = _ref.children,
8
+ _ref$className = _ref.className,
9
+ className = _ref$className === void 0 ? "" : _ref$className,
10
+ _ref$hasPagination = _ref.hasPagination,
11
+ hasPagination = _ref$hasPagination === void 0 ? false : _ref$hasPagination;
12
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
13
+ "data-testid": "table-wrapper",
14
+ className: classnames("flex min-h-0 w-full flex-grow flex-col pb-6", className),
15
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
16
+ className: classnames("min-h-0 flex-grow", {
17
+ "pb-12": hasPagination
18
+ }),
19
+ children: children
20
+ })
21
+ });
22
+ };
23
+
24
+ module.exports = TableWrapper;
25
+ //# sourceMappingURL=TableWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableWrapper.js","sources":["../../../src/v2/components/TableWrapper/index.jsx"],"sourcesContent":["import classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst TableWrapper = ({ children, className = \"\", hasPagination = false }) => (\n <div\n data-testid=\"table-wrapper\"\n className={classNames(\n \"flex min-h-0 w-full flex-grow flex-col pb-6\",\n className\n )}\n >\n <div\n className={classNames(\"min-h-0 flex-grow\", {\n \"pb-12\": hasPagination,\n })}\n >\n {children}\n </div>\n </div>\n);\n\nTableWrapper.propTypes = {\n children: PropTypes.node,\n /**\n * Custom classnames for table wrapper.\n */\n className: PropTypes.string,\n /**\n * Handles table wrapper height when pagination is enabled.\n *\n * `hasPagination={totalCount > defaultPageSize}`\n */\n hasPagination: PropTypes.bool,\n};\n\nexport default TableWrapper;\n"],"names":["TableWrapper","_ref","children","_ref$className","className","_ref$hasPagination","hasPagination","_jsx","classNames"],"mappings":";;;;;AAGA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,cAAA,GAAAF,IAAA,CAAEG,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,kBAAA,GAAAJ,IAAA,CAAEK,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,kBAAA;AAAA,EAAA,oBACrEE,cAAA,CAAA,KAAA,EAAA;AACE,IAAA,aAAA,EAAY,eAAe;AAC3BH,IAAAA,SAAS,EAAEI,UAAU,CACnB,6CAA6C,EAC7CJ,SACF,CAAE;AAAAF,IAAAA,QAAA,eAEFK,cAAA,CAAA,KAAA,EAAA;AACEH,MAAAA,SAAS,EAAEI,UAAU,CAAC,mBAAmB,EAAE;AACzC,QAAA,OAAO,EAAEF;AACX,OAAC,CAAE;AAAAJ,MAAAA,QAAA,EAEFA;KACE;AAAC,GACH,CAAC;AAAA;;;;"}
@@ -0,0 +1,23 @@
1
+ import classnames from 'classnames';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ var TableWrapper = function TableWrapper(_ref) {
5
+ var children = _ref.children,
6
+ _ref$className = _ref.className,
7
+ className = _ref$className === void 0 ? "" : _ref$className,
8
+ _ref$hasPagination = _ref.hasPagination,
9
+ hasPagination = _ref$hasPagination === void 0 ? false : _ref$hasPagination;
10
+ return /*#__PURE__*/jsx("div", {
11
+ "data-testid": "table-wrapper",
12
+ className: classnames("flex min-h-0 w-full flex-grow flex-col pb-6", className),
13
+ children: /*#__PURE__*/jsx("div", {
14
+ className: classnames("min-h-0 flex-grow", {
15
+ "pb-12": hasPagination
16
+ }),
17
+ children: children
18
+ })
19
+ });
20
+ };
21
+
22
+ export { TableWrapper as default };
23
+ //# sourceMappingURL=TableWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableWrapper.js","sources":["../../src/v2/components/TableWrapper/index.jsx"],"sourcesContent":["import classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nconst TableWrapper = ({ children, className = \"\", hasPagination = false }) => (\n <div\n data-testid=\"table-wrapper\"\n className={classNames(\n \"flex min-h-0 w-full flex-grow flex-col pb-6\",\n className\n )}\n >\n <div\n className={classNames(\"min-h-0 flex-grow\", {\n \"pb-12\": hasPagination,\n })}\n >\n {children}\n </div>\n </div>\n);\n\nTableWrapper.propTypes = {\n children: PropTypes.node,\n /**\n * Custom classnames for table wrapper.\n */\n className: PropTypes.string,\n /**\n * Handles table wrapper height when pagination is enabled.\n *\n * `hasPagination={totalCount > defaultPageSize}`\n */\n hasPagination: PropTypes.bool,\n};\n\nexport default TableWrapper;\n"],"names":["TableWrapper","_ref","children","_ref$className","className","_ref$hasPagination","hasPagination","_jsx","classNames"],"mappings":";;;AAGA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,cAAA,GAAAF,IAAA,CAAEG,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,kBAAA,GAAAJ,IAAA,CAAEK,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,kBAAA;AAAA,EAAA,oBACrEE,GAAA,CAAA,KAAA,EAAA;AACE,IAAA,aAAA,EAAY,eAAe;AAC3BH,IAAAA,SAAS,EAAEI,UAAU,CACnB,6CAA6C,EAC7CJ,SACF,CAAE;AAAAF,IAAAA,QAAA,eAEFK,GAAA,CAAA,KAAA,EAAA;AACEH,MAAAA,SAAS,EAAEI,UAAU,CAAC,mBAAmB,EAAE;AACzC,QAAA,OAAO,EAAEF;AACX,OAAC,CAAE;AAAAJ,MAAAA,QAAA,EAEFA;KACE;AAAC,GACH,CAAC;AAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "5.1.7",
3
+ "version": "5.1.8",
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>",