@trackunit/react-components 0.1.2 → 0.1.4
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/index.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3682,19 +3682,19 @@ const StyledTextInput = twx(TextInput)`
|
|
|
3682
3682
|
*/
|
|
3683
3683
|
const Spacer = ({
|
|
3684
3684
|
minHeight,
|
|
3685
|
-
border,
|
|
3685
|
+
border = false,
|
|
3686
3686
|
dataTestId
|
|
3687
3687
|
}) => {
|
|
3688
3688
|
return jsx(Space, {
|
|
3689
3689
|
"data-testid": dataTestId,
|
|
3690
|
-
minHeight: minHeight,
|
|
3691
|
-
border: border
|
|
3690
|
+
"$minHeight": minHeight,
|
|
3691
|
+
"$border": border
|
|
3692
3692
|
});
|
|
3693
3693
|
};
|
|
3694
3694
|
const GetSpacerHeight = () => ({
|
|
3695
|
-
minHeight
|
|
3695
|
+
$minHeight
|
|
3696
3696
|
}) => {
|
|
3697
|
-
switch (minHeight) {
|
|
3697
|
+
switch ($minHeight) {
|
|
3698
3698
|
case "normal":
|
|
3699
3699
|
return tws`tu-spacer--normal`;
|
|
3700
3700
|
case "large":
|
|
@@ -3704,7 +3704,7 @@ const GetSpacerHeight = () => ({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
};
|
|
3706
3706
|
const Space = tw.div`
|
|
3707
|
-
${p => `${p
|
|
3707
|
+
${p => `${p.$border ? `tu-spacer--border` : null}`}
|
|
3708
3708
|
${GetSpacerHeight()}
|
|
3709
3709
|
`;
|
|
3710
3710
|
|