tenjin-ui-kit 0.2.113 → 0.2.114

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.
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _clsx2 = _interopRequireDefault(require("clsx"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  var _style = _interopRequireDefault(require("./style"));
14
- var _excluded = ["className", "sx", "children", "loading", "fullHeight"];
14
+ var _excluded = ["className", "sx", "children", "loading", "fullHeight", "position"];
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
17
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
@@ -25,15 +25,20 @@ var Paper = function Paper(_ref) {
25
25
  children = _ref.children,
26
26
  loading = _ref.loading,
27
27
  fullHeight = _ref.fullHeight,
28
+ position = _ref.position,
28
29
  rest = _objectWithoutProperties(_ref, _excluded);
29
30
  var classes = (0, _style.default)();
30
31
  return /*#__PURE__*/_react.default.createElement(_material.Paper, {
31
- className: (0, _clsx2.default)((_clsx = {}, _defineProperty(_clsx, classes.paper, true), _defineProperty(_clsx, classes.fullHeight, fullHeight), _defineProperty(_clsx, className, true), _clsx)),
32
+ className: (0, _clsx2.default)((_clsx = {}, _defineProperty(_clsx, classes.paper, true), _defineProperty(_clsx, classes.fullHeight, fullHeight), _defineProperty(_clsx, className, true), _defineProperty(_clsx, classes[position], true), _clsx)),
32
33
  sx: sx
33
34
  }, loading ? /*#__PURE__*/_react.default.createElement(_loader.default, null) : children);
34
35
  };
35
36
  Paper.propTypes = {
36
- loading: _propTypes.default.bool
37
+ loading: _propTypes.default.bool,
38
+ position: _propTypes.default.oneOf(["static", "relative", "fixed", "absolute", "sticky"])
39
+ };
40
+ Paper.defaultProps = {
41
+ position: "static"
37
42
  };
38
43
  var _default = Paper;
39
44
  exports.default = _default;
@@ -13,6 +13,21 @@ var _default = (0, _styles.makeStyles)(function (theme) {
13
13
  },
14
14
  fullHeight: {
15
15
  height: "100%"
16
+ },
17
+ relative: {
18
+ position: "relative"
19
+ },
20
+ fixed: {
21
+ position: "fixed"
22
+ },
23
+ static: {
24
+ position: "static"
25
+ },
26
+ sticky: {
27
+ position: "sticky"
28
+ },
29
+ absolute: {
30
+ position: "absolute"
16
31
  }
17
32
  };
18
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.2.113",
3
+ "version": "0.2.114",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },