venice-ui 2.0.3 → 2.0.5
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 +3 -0
- 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 +3 -0
- 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;
|
|
@@ -6,8 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ElementHeaderWrapper = void 0;
|
|
7
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
8
|
const Aligment_1 = require("../Aligment");
|
|
9
|
+
const Theme_1 = require("../../Theme/Theme");
|
|
9
10
|
exports.ElementHeaderWrapper = (0, styled_components_1.default)(Aligment_1.Aligment) `
|
|
10
11
|
width: 100%;
|
|
12
|
+
border-top-left-radius:${Theme_1.Theme.borderRadius.m};
|
|
13
|
+
border-top-right-radius:${Theme_1.Theme.borderRadius.m};
|
|
11
14
|
${(p) => p.bottomDivader &&
|
|
12
15
|
`
|
|
13
16
|
border-bottom: 2px solid rgba(0, 0, 0, 0.14);
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Aligment } from '../Aligment';
|
|
3
|
+
import { Theme } from '../../Theme/Theme';
|
|
3
4
|
export const ElementHeaderWrapper = styled(Aligment) `
|
|
4
5
|
width: 100%;
|
|
6
|
+
border-top-left-radius:${Theme.borderRadius.m};
|
|
7
|
+
border-top-right-radius:${Theme.borderRadius.m};
|
|
5
8
|
${(p) => p.bottomDivader &&
|
|
6
9
|
`
|
|
7
10
|
border-bottom: 2px solid rgba(0, 0, 0, 0.14);
|
|
@@ -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 {};
|