tabler-react-2 0.1.42 → 0.1.44
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/util/flex.js +8 -2
- package/package.json +1 -1
package/dist/util/flex.js
CHANGED
|
@@ -12,7 +12,7 @@ var _index = require("./index");
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _excluded = ["children", "className", "wrap", "gap", "align", "justify"],
|
|
14
14
|
_excluded2 = ["children", "className", "gap", "align", "justify"],
|
|
15
|
-
_excluded3 = ["threshold", "default", "children"];
|
|
15
|
+
_excluded3 = ["threshold", "default", "children", "gap", "align", "justify"];
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -107,6 +107,9 @@ var Responsive = exports.Responsive = function Responsive(_ref3) {
|
|
|
107
107
|
_ref3$default = _ref3["default"],
|
|
108
108
|
defaultDirection = _ref3$default === void 0 ? "row" : _ref3$default,
|
|
109
109
|
children = _ref3.children,
|
|
110
|
+
gap = _ref3.gap,
|
|
111
|
+
align = _ref3.align,
|
|
112
|
+
justify = _ref3.justify,
|
|
110
113
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
111
114
|
var _useState = (0, _react.useState)(defaultDirection),
|
|
112
115
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -135,7 +138,10 @@ var Responsive = exports.Responsive = function Responsive(_ref3) {
|
|
|
135
138
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({}, props, {
|
|
136
139
|
style: _objectSpread({
|
|
137
140
|
display: "flex",
|
|
138
|
-
flexDirection: direction
|
|
141
|
+
flexDirection: direction,
|
|
142
|
+
gap: (0, _index.m)(gap) || 0,
|
|
143
|
+
justifyContent: mapJustify(justify),
|
|
144
|
+
alignItems: mapAlignment(align)
|
|
139
145
|
}, props.style)
|
|
140
146
|
}), children);
|
|
141
147
|
};
|