-
Notifications
You must be signed in to change notification settings - Fork 69
/
DataStoreForm.styled.ts
129 lines (110 loc) 路 2.64 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import styled, {css} from 'styled-components';
import {Tabs, Typography} from 'antd';
import {CheckCircleOutlined} from '@ant-design/icons';
const defaultHeight = 'calc(100vh - 106px - 48px);';
export const FormContainer = styled.div`
display: grid;
grid-template-columns: auto 1fr;
height: ${defaultHeight};
overflow: hidden;
`;
export const FactoryContainer = styled.div`
display: flex;
flex-direction: column;
padding: 22px 0;
justify-content: space-between;
height: ${defaultHeight};
overflow-y: scroll;
.ant-form-item {
margin: 0;
}
`;
export const TopContainer = styled.div`
display: flex;
flex-direction: column;
gap: 16px;
padding: 0 22px;
`;
export const DataStoreListContainer = styled(Tabs)`
height: calc(100vh - 25px - 106px - 48px);
&& {
.ant-tabs-content-holder {
width: 1px;
}
.ant-tabs-tab {
margin: 0 !important;
padding: 0;
}
.ant-tabs-nav-list {
gap: 16px;
}
}
`;
export const DataStoreItemContainer = styled.div<{$isDisabled: boolean; $isSelected: boolean}>`
display: flex;
align-items: center;
gap: 10px;
padding: 12px 22px;
cursor: pointer;
${({$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;
border-top: 1px solid ${({theme}) => theme.color.borderLight};
position: sticky;
bottom: 0;
background: white;
`;
export const SaveContainer = styled.div`
display: flex;
gap: 8px;
`;
export const InfoIcon = styled(CheckCircleOutlined)`
color: ${({theme}) => theme.color.text};
cursor: pointer;
margin: 4px;
`;