@automattic/vip-design-system 0.10.2 → 0.10.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/build/system/Table/Table.js +15 -15
- package/package.json +1 -1
- package/src/system/Table/Table.js +10 -9
|
@@ -11,29 +11,29 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
14
16
|
var _jsxRuntime = require("theme-ui/jsx-runtime");
|
|
15
17
|
|
|
16
|
-
var _excluded = ["sx"];
|
|
18
|
+
var _excluded = ["sx", "className"];
|
|
17
19
|
|
|
18
20
|
var Table = function Table(_ref) {
|
|
19
21
|
var sx = _ref.sx,
|
|
22
|
+
className = _ref.className,
|
|
20
23
|
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
21
|
-
return (0, _jsxRuntime.jsx)("
|
|
22
|
-
sx: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
cellPadding: 0,
|
|
31
|
-
cellSpacing: 0
|
|
32
|
-
}, props))
|
|
33
|
-
});
|
|
24
|
+
return (0, _jsxRuntime.jsx)("table", (0, _extends2["default"])({
|
|
25
|
+
sx: (0, _extends2["default"])({
|
|
26
|
+
width: '100%',
|
|
27
|
+
minWidth: 1024
|
|
28
|
+
}, sx),
|
|
29
|
+
cellPadding: 0,
|
|
30
|
+
cellSpacing: 0,
|
|
31
|
+
className: (0, _classnames["default"])('vip-table-component', className)
|
|
32
|
+
}, props));
|
|
34
33
|
};
|
|
35
34
|
|
|
36
35
|
exports.Table = Table;
|
|
37
36
|
Table.propTypes = {
|
|
38
|
-
sx: _propTypes["default"].object
|
|
37
|
+
sx: _propTypes["default"].object,
|
|
38
|
+
className: _propTypes["default"].any
|
|
39
39
|
};
|
package/package.json
CHANGED
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
* External dependencies
|
|
5
5
|
*/
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import classNames from 'classnames';
|
|
7
8
|
|
|
8
|
-
const Table = ( { sx, ...props } ) => (
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
</div>
|
|
9
|
+
const Table = ( { sx, className, ...props } ) => (
|
|
10
|
+
<table
|
|
11
|
+
sx={{ width: '100%', minWidth: 1024, ...sx }}
|
|
12
|
+
cellPadding={0}
|
|
13
|
+
cellSpacing={0}
|
|
14
|
+
className={classNames( 'vip-table-component', className )}
|
|
15
|
+
{...props}
|
|
16
|
+
/>
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
Table.propTypes = {
|
|
20
20
|
sx: PropTypes.object,
|
|
21
|
+
className: PropTypes.any,
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export { Table };
|