venice-ui 2.0.2 → 2.0.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/dist/cjs/components/Card/Card.js +1 -1
- package/dist/cjs/components/Card/Card.styles.js +3 -1
- package/dist/cjs/components/ElementHeader/ElementHeader.styles.js +1 -3
- package/dist/cjs/components/Input/Input.js +2 -0
- package/dist/esm/components/Card/Card.js +1 -1
- package/dist/esm/components/Card/Card.styles.js +3 -1
- package/dist/esm/components/ElementHeader/ElementHeader.styles.js +1 -3
- package/dist/esm/components/Input/Input.js +2 -0
- package/dist/types/components/Card/Card.styles.d.ts +4 -1
- package/package.json +1 -1
|
@@ -11,6 +11,6 @@ const Theme_1 = require("../../Theme");
|
|
|
11
11
|
const Card = ({ children, title, actionLabel, theme = Theme_1.mainTheme, iconColor = theme.textColor, iconHoverColor = theme.action, handleClick, handleBack, height, options, shadow = true, headerDivader = false }) => {
|
|
12
12
|
return (react_1.default.createElement(Card_styles_1.CardElement, { height: height, shadow: shadow },
|
|
13
13
|
(title || actionLabel) && (react_1.default.createElement(ElementHeader_1.ElementHeader, { title: title, actionLabel: actionLabel, handleClick: handleClick, handleBack: handleBack, options: options, theme: theme, iconColor: iconColor, iconHoverColor: iconHoverColor, bottomDivader: headerDivader })),
|
|
14
|
-
react_1.default.createElement(Card_styles_1.CardContent,
|
|
14
|
+
react_1.default.createElement(Card_styles_1.CardContent, { soloMode: !title && !actionLabel }, children)));
|
|
15
15
|
};
|
|
16
16
|
exports.Card = Card;
|
|
@@ -11,7 +11,5 @@ exports.ElementHeaderWrapper = (0, styled_components_1.default)(Aligment_1.Aligm
|
|
|
11
11
|
${(p) => p.bottomDivader &&
|
|
12
12
|
`
|
|
13
13
|
border-bottom: 2px solid rgba(0, 0, 0, 0.14);
|
|
14
|
-
overflow-x:hidden;
|
|
15
14
|
`}
|
|
16
|
-
|
|
17
|
-
// box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
|
15
|
+
`;
|
|
@@ -5,5 +5,5 @@ import { mainTheme } from '../../Theme';
|
|
|
5
5
|
export const Card = ({ children, title, actionLabel, theme = mainTheme, iconColor = theme.textColor, iconHoverColor = theme.action, handleClick, handleBack, height, options, shadow = true, headerDivader = false }) => {
|
|
6
6
|
return (React.createElement(CardElement, { height: height, shadow: shadow },
|
|
7
7
|
(title || actionLabel) && (React.createElement(ElementHeader, { title: title, actionLabel: actionLabel, handleClick: handleClick, handleBack: handleBack, options: options, theme: theme, iconColor: iconColor, iconHoverColor: iconHoverColor, bottomDivader: headerDivader })),
|
|
8
|
-
React.createElement(CardContent,
|
|
8
|
+
React.createElement(CardContent, { soloMode: !title && !actionLabel }, children)));
|
|
9
9
|
};
|
|
@@ -3,5 +3,8 @@ interface ICardElementProps {
|
|
|
3
3
|
height?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const CardElement: import("styled-components").StyledComponent<"div", any, ICardElementProps, never>;
|
|
6
|
-
|
|
6
|
+
interface ICardContentStyles {
|
|
7
|
+
soloMode: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const CardContent: import("styled-components").StyledComponent<"div", any, ICardContentStyles, never>;
|
|
7
10
|
export {};
|