@nulogy/components 8.13.0 → 8.13.1

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/main.js CHANGED
@@ -24407,12 +24407,12 @@
24407
24407
  style: style,
24408
24408
  placement: placement
24409
24409
  }, tooltip ? tooltip : children) : null;
24410
- })), children && !labelHidden && /*#__PURE__*/React__default["default"].createElement(Text, {
24410
+ })), children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /*#__PURE__*/React__default["default"].createElement(Text, {
24411
24411
  fontSize: fontSize,
24412
24412
  mr: "half",
24413
24413
  ml: "half",
24414
24414
  color: color
24415
- }, children));
24415
+ }, children) : children));
24416
24416
  });
24417
24417
  IconicButton.propTypes = {
24418
24418
  className: PropTypes__default["default"].string,
@@ -25064,7 +25064,7 @@
25064
25064
  var isOpen = _ref.isOpen,
25065
25065
  theme = _ref.theme;
25066
25066
  return {
25067
- position: "relative",
25067
+ padding: theme.space.x1 + " " + theme.space.x1 + " " + theme.space.x1 + " 12px",
25068
25068
  backgroundColor: isOpen ? theme.colors.lightBlue : "transparent",
25069
25069
  color: isOpen ? theme.colors.darkBlue : theme.colors.darkGrey
25070
25070
  };
@@ -25077,15 +25077,14 @@
25077
25077
  return /*#__PURE__*/React__default["default"].createElement(StyledButton$3, Object.assign({
25078
25078
  isOpen: isOpen,
25079
25079
  ref: ref
25080
- }, props), name, /*#__PURE__*/React__default["default"].createElement(Icon, {
25081
- style: {
25082
- position: "absolute",
25083
- top: "10px"
25084
- },
25080
+ }, props), /*#__PURE__*/React__default["default"].createElement(Flex, {
25081
+ gap: "half",
25082
+ justifyContent: "space-between",
25083
+ alignItems: "center"
25084
+ }, name, /*#__PURE__*/React__default["default"].createElement(Icon, {
25085
25085
  icon: "rightArrow",
25086
- size: "20px",
25087
- p: "2px"
25088
- }));
25086
+ size: "20px"
25087
+ })));
25089
25088
  });
25090
25089
  SubMenuTriggerButton$1.displayName = "SubMenuTriggerButton";
25091
25090
 
@@ -24384,12 +24384,12 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
24384
24384
  style: style,
24385
24385
  placement: placement
24386
24386
  }, tooltip ? tooltip : children) : null;
24387
- })), children && !labelHidden && /*#__PURE__*/React__default.createElement(Text, {
24387
+ })), children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /*#__PURE__*/React__default.createElement(Text, {
24388
24388
  fontSize: fontSize,
24389
24389
  mr: "half",
24390
24390
  ml: "half",
24391
24391
  color: color
24392
- }, children));
24392
+ }, children) : children));
24393
24393
  });
24394
24394
  IconicButton.propTypes = {
24395
24395
  className: PropTypes.string,
@@ -25041,7 +25041,7 @@ var StyledButton$3 = styled(DropdownButton).withConfig({
25041
25041
  var isOpen = _ref.isOpen,
25042
25042
  theme = _ref.theme;
25043
25043
  return {
25044
- position: "relative",
25044
+ padding: theme.space.x1 + " " + theme.space.x1 + " " + theme.space.x1 + " 12px",
25045
25045
  backgroundColor: isOpen ? theme.colors.lightBlue : "transparent",
25046
25046
  color: isOpen ? theme.colors.darkBlue : theme.colors.darkGrey
25047
25047
  };
@@ -25054,15 +25054,14 @@ var SubMenuTriggerButton$1 = /*#__PURE__*/React__default.forwardRef(function (_a
25054
25054
  return /*#__PURE__*/React__default.createElement(StyledButton$3, Object.assign({
25055
25055
  isOpen: isOpen,
25056
25056
  ref: ref
25057
- }, props), name, /*#__PURE__*/React__default.createElement(Icon, {
25058
- style: {
25059
- position: "absolute",
25060
- top: "10px"
25061
- },
25057
+ }, props), /*#__PURE__*/React__default.createElement(Flex, {
25058
+ gap: "half",
25059
+ justifyContent: "space-between",
25060
+ alignItems: "center"
25061
+ }, name, /*#__PURE__*/React__default.createElement(Icon, {
25062
25062
  icon: "rightArrow",
25063
- size: "20px",
25064
- p: "2px"
25065
- }));
25063
+ size: "20px"
25064
+ })));
25066
25065
  });
25067
25066
  SubMenuTriggerButton$1.displayName = "SubMenuTriggerButton";
25068
25067
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "8.13.0",
3
+ "version": "8.13.1",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {