-
Notifications
You must be signed in to change notification settings - Fork 66
/
DataStoreForm.styled.ts
111 lines (96 loc) 路 2.45 KB
/
DataStoreForm.styled.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import styled, {css} from 'styled-components';
import {Typography} from 'antd';
import {CheckCircleOutlined} from '@ant-design/icons';
export const FormContainer = styled.div`
display: grid;
grid-template-columns: auto 1fr;
gap: 24px;
min-height: 750px;
`;
export const FactoryContainer = styled.div`
display: flex;
flex-direction: column;
padding: 22px 0;
border-left: ${({theme}) => `1px solid ${theme.color.borderLight}`};
justify-content: space-between;
.ant-form-item {
margin: 0;
}
`;
export const TopContainer = styled.div`
display: flex;
flex-direction: column;
gap: 16px;
padding: 0 22px;
`;
export const DataStoreListContainer = styled.div`
display: flex;
gap: 16px;
flex-direction: column;
`;
export const DataStoreItemContainer = styled.div<{$isDisabled: boolean; $isSelected: boolean}>`
display: flex;
align-items: center;
gap: 10px;
padding: 12px 22px;
cursor: pointer;
border-left: ${({theme, $isSelected}) => $isSelected && `2px solid ${theme.color.primary}`};
${({$isDisabled}) =>
$isDisabled &&
css`
cursor: not-allowed;
opacity: 0.5;
`}
`;
export const Circle = styled.div`
min-height: 16px;
min-width: 16px;
max-height: 16px;
max-width: 16px;
border: ${({theme}) => `1px solid ${theme.color.primary}`};
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
`;
export const Check = styled.div`
height: 8px;
width: 8px;
background: ${({theme}) => theme.color.primary};
border-radius: 50%;
display: inline-block;
`;
export const DataStoreName = styled(Typography.Text)<{$isSelected: boolean}>`
&& {
color: ${({theme, $isSelected}) => ($isSelected ? theme.color.primary : theme.color.text)};
font-weight: ${({$isSelected}) => ($isSelected ? 700 : 400)};
}
`;
export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.md};
margin: 0 !important;
}
`;
export const Description = styled(Typography.Text)`
&& {
color: ${({theme}) => theme.color.textSecondary};
}
`;
export const ButtonsContainer = styled.div`
display: flex;
justify-content: space-between;
gap: 8px;
margin-top: 23px;
padding: 16px 22px 0;
border-top: 1px solid ${({theme}) => theme.color.borderLight};
`;
export const SaveContainer = styled.div`
display: flex;
gap: 8px;
`;
export const InfoIcon = styled(CheckCircleOutlined)`
color: ${({theme}) => theme.color.text};
cursor: pointer;
margin: 4px;
`;