techsbcn-storybook 0.14.7 → 0.14.8
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/techsbcn-storybook.cjs.development.js +8 -12
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +8 -12
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/fields/TextSimpleComponent/TextSimpleComponent.tsx +5 -11
|
@@ -1519,17 +1519,6 @@ var TextSimpleComponent = function TextSimpleComponent(props) {
|
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
|
-
var ChildrenValues = function ChildrenValues() {
|
|
1523
|
-
return React__default.createElement(React__default.Fragment, null, props.startIcon && React__default.createElement(_.Box, {
|
|
1524
|
-
mr: 1
|
|
1525
|
-
}, props.startIcon), props.isLoading ? React__default.createElement(_.CircularProgress, {
|
|
1526
|
-
className: "circular-progress-main-color",
|
|
1527
|
-
size: 20
|
|
1528
|
-
}) : props.value, props.endIcon && React__default.createElement(_.Box, {
|
|
1529
|
-
ml: "" + (props.fullWidth ? 'auto' : 1)
|
|
1530
|
-
}, props.endIcon));
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
1522
|
return React__default.createElement(_.Box, {
|
|
1534
1523
|
className: "text-simple-component",
|
|
1535
1524
|
display: "flex",
|
|
@@ -1546,7 +1535,14 @@ var TextSimpleComponent = function TextSimpleComponent(props) {
|
|
|
1546
1535
|
alignItems: "center",
|
|
1547
1536
|
className: "text-simple-box " + ((_props$className = props.className) != null ? _props$className : '') + " " + (props.noMargin ? 'no-margin' : '') + " " + (props.noBorders || props.skeletonValue && props.skeletonValue.useSkeleton ? 'no-border' : '') + " " + (props.error ? 'has-error-border' : ''),
|
|
1548
1537
|
width: "" + (props.fullWidth ? 'auto' : 'fit-content')
|
|
1549
|
-
}, props.skeletonValue && props.skeletonValue.useSkeleton ? React__default.createElement(SkeletonCompleteDefault, Object.assign({}, props.skeletonValue)) : React__default.createElement(
|
|
1538
|
+
}, props.skeletonValue && props.skeletonValue.useSkeleton ? React__default.createElement(SkeletonCompleteDefault, Object.assign({}, props.skeletonValue)) : React__default.createElement(React__default.Fragment, null, props.startIcon && React__default.createElement(_.Box, {
|
|
1539
|
+
mr: 1
|
|
1540
|
+
}, props.startIcon), props.isLoading ? React__default.createElement(_.CircularProgress, {
|
|
1541
|
+
className: "circular-progress-main-color",
|
|
1542
|
+
size: 20
|
|
1543
|
+
}) : props.value, props.endIcon && React__default.createElement(_.Box, {
|
|
1544
|
+
ml: "" + (props.fullWidth ? 'auto' : 1)
|
|
1545
|
+
}, props.endIcon))), props.helperText && React__default.createElement(_.Box, {
|
|
1550
1546
|
className: "helper-text " + (props.error ? 'has-error' : '')
|
|
1551
1547
|
}, props.skeletonValue && props.skeletonValue.useSkeleton ? React__default.createElement(_.Skeleton, {
|
|
1552
1548
|
width: "15%",
|