widenarrow-ui 1.1.29 → 1.1.30

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/lib/index.esm.js CHANGED
@@ -178,15 +178,24 @@ var styles$r = {"body":"Box-module_xGQn8w","container":"Box-module_ufkImw","marg
178
178
  var s$r = classNames.bind(styles$r);
179
179
  var Box = forwardRef(function (_a, ref) {
180
180
  var _b;
181
- var className = _a.className, children = _a.children, // flex
182
- backgroundColor = _a.backgroundColor, withBorderRadius = _a.withBorderRadius, showOnBreakpoint = _a.showOnBreakpoint, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, position = _a.position, style = _a.style, // inline style
183
- onClickCallback = _a.onClickCallback, otherProps = __rest(_a, ["className", "children", "backgroundColor", "withBorderRadius", "showOnBreakpoint", "width", "minWidth", "maxWidth", "position", "style", "onClickCallback"]);
181
+ var className = _a.className, children = _a.children, displayFlex = _a.displayFlex, displayFlexCenter = _a.displayFlexCenter, displayFlexCenterSpaceBetween = _a.displayFlexCenterSpaceBetween, justifyContent = _a.justifyContent, flexDirection = _a.flexDirection, alignSelf = _a.alignSelf, alignItems = _a.alignItems, flexWrap = _a.flexWrap, flexGrow = _a.flexGrow, padding = _a.padding, paddingX = _a.paddingX, paddingY = _a.paddingY, paddingTop = _a.paddingTop, paddingBottom = _a.paddingBottom, paddingRight = _a.paddingRight, paddingLeft = _a.paddingLeft, margin = _a.margin, marginTop = _a.marginTop, marginX = _a.marginX, marginY = _a.marginY, marginBottom = _a.marginBottom, marginRight = _a.marginRight, marginLeft = _a.marginLeft, backgroundColor = _a.backgroundColor, borderColor = _a.borderColor, border = _a.border, borderTop = _a.borderTop, borderLeft = _a.borderLeft, borderBottom = _a.borderBottom, borderRight = _a.borderRight, withBorderRadius = _a.withBorderRadius, showOnBreakpoint = _a.showOnBreakpoint, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, position = _a.position, style = _a.style, // inline style
182
+ onClickCallback = _a.onClickCallback, otherProps = __rest(_a, ["className", "children", "displayFlex", "displayFlexCenter", "displayFlexCenterSpaceBetween", "justifyContent", "flexDirection", "alignSelf", "alignItems", "flexWrap", "flexGrow", "padding", "paddingX", "paddingY", "paddingTop", "paddingBottom", "paddingRight", "paddingLeft", "margin", "marginTop", "marginX", "marginY", "marginBottom", "marginRight", "marginLeft", "backgroundColor", "borderColor", "border", "borderTop", "borderLeft", "borderBottom", "borderRight", "withBorderRadius", "showOnBreakpoint", "width", "minWidth", "maxWidth", "position", "style", "onClickCallback"]);
184
183
  var onClick = function () {
185
184
  if (onClickCallback) {
186
185
  onClickCallback();
187
186
  }
188
187
  };
189
- return (jsx("div", __assign({ className: s$r('container', __assign(__assign(__assign(__assign(__assign({}, flexClassNames(otherProps)), paddingClassNames(otherProps)), marginClassNames(otherProps)), borderClassNames(otherProps)), (_b = {}, _b["backgroundColor_".concat(backgroundColor)] = is(String, backgroundColor), _b["width_".concat(width)] = is(String, width), _b["minWidth_".concat(minWidth)] = is(String, minWidth), _b["maxWidth_".concat(maxWidth)] = is(String, maxWidth), _b.borderRadius = withBorderRadius,
188
+ return (jsx("div", __assign({ className: s$r('container', __assign(__assign(__assign(__assign(__assign({}, flexClassNames({
189
+ displayFlex: displayFlex,
190
+ displayFlexCenter: displayFlexCenter,
191
+ displayFlexCenterSpaceBetween: displayFlexCenterSpaceBetween,
192
+ alignSelf: alignSelf,
193
+ justifyContent: justifyContent,
194
+ flexDirection: flexDirection,
195
+ flexGrow: flexGrow,
196
+ flexWrap: flexWrap,
197
+ alignItems: alignItems
198
+ })), paddingClassNames({ padding: padding, paddingX: paddingX, paddingY: paddingY, paddingTop: paddingTop, paddingBottom: paddingBottom, paddingRight: paddingRight, paddingLeft: paddingLeft })), marginClassNames({ margin: margin, marginTop: marginTop, marginX: marginX, marginY: marginY, marginBottom: marginBottom, marginRight: marginRight, marginLeft: marginLeft })), borderClassNames({ borderColor: borderColor, border: border, borderTop: borderTop, borderLeft: borderLeft, borderBottom: borderBottom, borderRight: borderRight })), (_b = {}, _b["backgroundColor_".concat(backgroundColor)] = is(String, backgroundColor), _b["width_".concat(width)] = is(String, width), _b["minWidth_".concat(minWidth)] = is(String, minWidth), _b["maxWidth_".concat(maxWidth)] = is(String, maxWidth), _b.borderRadius = withBorderRadius,
190
199
  // position
191
200
  _b.position_relative = ref, _b["position_".concat(position)] = is(String, position), _b["showOnBreakpoint_".concat(showOnBreakpoint)] = is(String, showOnBreakpoint), _b[className] = className, _b))), style: style, ref: ref, onClick: onClick }, otherProps, { children: children && children })));
192
201
  });