techsbcn-storybook 0.12.5 → 0.12.6

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './ButtonComponent.scss';
3
3
  export interface ButtonComponentProps {
4
4
  className?: string;
5
- label?: string;
5
+ label?: any;
6
6
  startIcon?: React.ReactNode;
7
7
  endIcon?: React.ReactNode;
8
8
  onClick?: () => void;
@@ -1454,7 +1454,7 @@ var TextSimpleComponent = function TextSimpleComponent(props) {
1454
1454
  display: "flex",
1455
1455
  flexDirection: "column"
1456
1456
  }, props.label && React__default.createElement(_.FormLabel, null, props.label), React__default.createElement(_.Box, {
1457
- display: "flex",
1457
+ display: "" + (props.startIcon || props.endIcon ? 'flex' : 'block'),
1458
1458
  alignItems: "center",
1459
1459
  className: "text-simple-box " + (props.className ? props.className : '') + " " + (props.noMargin ? 'no-margin' : '') + " " + (props.noBorders ? 'no-border' : '') + " " + (props.error ? 'has-error-border' : ''),
1460
1460
  width: "" + (props.fullWidth ? 'auto' : 'fit-content')