feat(Card): card footer actions.

This commit is contained in:
a.bouhuolia
2021-12-27 18:29:52 +02:00
parent f261555b86
commit 93bd2af1d7
10 changed files with 54 additions and 43 deletions

View File

@@ -1,13 +0,0 @@
import React from 'react';
import styled from 'styled-components';
export default function Card({ className, children }) {
return <CardRoot className={className}>{children}</CardRoot>;
}
const CardRoot = styled.div`
padding: 15px;
margin: 15px;
background: #fff;
border: 1px solid #d2dce2;
`;

View File

@@ -0,0 +1,27 @@
import React from 'react';
import styled from 'styled-components';
export function Card({ className, children }) {
return <CardRoot className={className}>{children}</CardRoot>;
}
const CardRoot = styled.div`
padding: 15px;
margin: 15px;
background: #fff;
border: 1px solid #d2dce2;
`;
export const CardFooterActions = styled.div`
padding-top: 16px;
border-top: 1px solid #e0e7ea;
margin-top: 30px;
.bp3-button {
min-width: 70px;
+ .bp3-button {
margin-left: 10px;
}
}
`;

View File

@@ -1,5 +1,5 @@
import styled from 'styled-components';
import Card from '../Card';
import { Card } from '../Card';
import DataTable from '../DataTable';
export const CommercialDocBox = styled(Card)`
@@ -22,4 +22,4 @@ export const CommercialDocEntriesTable = styled(DataTable)`
export const CommercialDocFooter = styled.div`
margin-top: 25px;
`
`;

View File

@@ -54,7 +54,6 @@ import Postbox from './Postbox';
import AccountsSuggestField from './AccountsSuggestField';
import MaterialProgressBar from './MaterialProgressBar';
import { MoneyFieldCell } from './DataTableCells';
import Card from './Card';
import AvaterCell from './AvaterCell';
import { ItemsMultiSelect } from './Items';
@@ -92,6 +91,7 @@ export * from './Typo';
export * from './TextStatus';
export * from './Tags';
export * from './CommercialDoc';
export * from './Card';
const Hint = FieldHint;
@@ -158,7 +158,6 @@ export {
MaterialProgressBar,
MoneyFieldCell,
ItemsMultiSelect,
Card,
AvaterCell,
MoreMenuItems,
};