feat: activate standard objects in New Object page (#2232)
* feat: activate standard objects in New Object page Closes #2010, Closes #2173 * Pagination limit = 1000 * Various fixes --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
10
front/src/modules/ui/layout/table/components/TableBody.tsx
Normal file
10
front/src/modules/ui/layout/table/components/TableBody.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledTableBody = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: ${({ theme }) => theme.spacing(2)} 0;
|
||||
`;
|
||||
|
||||
export { StyledTableBody as TableBody };
|
||||
@ -1,6 +1,11 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
const StyledTableRow = styled.div<{ onClick?: () => void }>`
|
||||
const StyledTableRow = styled.div<{
|
||||
isSelected?: boolean;
|
||||
onClick?: () => void;
|
||||
}>`
|
||||
background-color: ${({ isSelected, theme }) =>
|
||||
isSelected ? theme.accent.quaternary : 'transparent'};
|
||||
border-radius: ${({ theme }) => theme.border.radius.sm};
|
||||
display: grid;
|
||||
grid-auto-columns: 1fr;
|
||||
|
||||
@ -4,6 +4,8 @@ import styled from '@emotion/styled';
|
||||
|
||||
import { IconChevronDown, IconChevronUp } from '@/ui/display/icon';
|
||||
|
||||
import { TableBody } from './TableBody';
|
||||
|
||||
type TableSectionProps = {
|
||||
children: ReactNode;
|
||||
isInitiallyExpanded?: boolean;
|
||||
@ -34,9 +36,8 @@ const StyledSection = styled.div<{ isExpanded: boolean }>`
|
||||
opacity ${({ theme }) => theme.animation.duration.normal}s;
|
||||
`;
|
||||
|
||||
const StyledSectionContent = styled.div`
|
||||
const StyledSectionContent = styled(TableBody)`
|
||||
border-bottom: 1px solid ${({ theme }) => theme.border.color.light};
|
||||
padding: ${({ theme }) => theme.spacing(2)} 0;
|
||||
`;
|
||||
|
||||
export const TableSection = ({
|
||||
|
||||
Reference in New Issue
Block a user