@ntbjs/react-components 2.0.2-rc.3 → 2.0.2-rc.4
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/build/inputs/ActionButton/ActionButton.js +5 -9
- package/build/inputs/ActionButton/ActionButton.js.map +1 -1
- package/build/inputs/ActionButton/ActionButton.styled.js +13 -16
- package/build/inputs/ActionButton/ActionButton.styled.js.map +1 -1
- package/build/inputs/CompactTextInput/CompactTextInput.js +71 -58
- package/build/inputs/CompactTextInput/CompactTextInput.js.map +1 -1
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js +208 -133
- package/build/inputs/CompactTextInput/CompactTextInput.styled.js.map +1 -1
- package/build/inputs/TextArea/TextArea.js +77 -67
- package/build/inputs/TextArea/TextArea.js.map +1 -1
- package/build/inputs/TextArea/TextArea.styled.js +204 -171
- package/build/inputs/TextArea/TextArea.styled.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +26 -20
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +15 -19
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +16 -18
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js.map +1 -1
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +34 -75
- package/build/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js.map +1 -1
- package/build/widgets/Instructions/Instructions.js +9 -0
- package/build/widgets/Instructions/Instructions.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { applyDefaultTheme } from '../../utils/defaultTheme.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const linkColor = css`
|
|
5
|
+
${props => props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))}
|
|
6
|
+
${props => !props.disabled && css`
|
|
7
|
+
&:hover {
|
|
8
|
+
text-decoration: underline;
|
|
9
|
+
}
|
|
10
|
+
`}
|
|
11
|
+
`;
|
|
12
|
+
const commonAnchorTagStyle = css`
|
|
13
|
+
a,
|
|
14
|
+
&& {
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const readOnlyBackground = css`
|
|
20
|
+
${props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
21
|
+
`;
|
|
22
|
+
const shouldForwardProp = prop => {
|
|
23
|
+
return prop !== 'theme' && !prop.startsWith('$');
|
|
24
|
+
};
|
|
5
25
|
const CompactTextInput = styled.div.withConfig({
|
|
6
26
|
shouldForwardProp
|
|
7
27
|
}).attrs(applyDefaultTheme)`
|
|
@@ -21,7 +41,7 @@ const Label = styled.label.withConfig({
|
|
|
21
41
|
height: 19px;
|
|
22
42
|
display: flex;
|
|
23
43
|
align-items: center;
|
|
24
|
-
${props => props
|
|
44
|
+
${props => props.disabled && css`
|
|
25
45
|
opacity: 0.5;
|
|
26
46
|
cursor: not-allowed;
|
|
27
47
|
`}
|
|
@@ -33,69 +53,77 @@ const InputContainer = styled.div.withConfig({
|
|
|
33
53
|
height: 19px;
|
|
34
54
|
flex-basis: ${props => props.$hasLabel ? '66.66%' : '100%'};
|
|
35
55
|
`;
|
|
36
|
-
const
|
|
56
|
+
const SuccessContainer = styled.div.withConfig({
|
|
37
57
|
shouldForwardProp
|
|
38
58
|
}).attrs(applyDefaultTheme)`
|
|
59
|
+
opacity: 1;
|
|
60
|
+
pointer-events: none;
|
|
39
61
|
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
62
|
transition: opacity 0.5s ease-in-out;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))};
|
|
63
|
+
margin-right: 5px;
|
|
64
|
+
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))}
|
|
45
65
|
> svg {
|
|
46
66
|
width: 13px;
|
|
47
67
|
}
|
|
48
68
|
`;
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
69
|
+
const InputSuccessContainer = styled.div.withConfig({
|
|
70
|
+
shouldForwardProp
|
|
71
|
+
}).attrs(applyDefaultTheme)`
|
|
72
|
+
opacity: 1;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
transition: opacity 0.5s ease-in-out;
|
|
77
|
+
position: relative;
|
|
78
|
+
margin-top: -20px;
|
|
79
|
+
margin-right: 8px;
|
|
80
|
+
${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))}
|
|
81
|
+
> svg {
|
|
82
|
+
width: 13px;
|
|
83
|
+
}
|
|
57
84
|
`;
|
|
58
85
|
const InputIconContainer = styled.div.withConfig({
|
|
59
86
|
shouldForwardProp
|
|
60
87
|
}).attrs(applyDefaultTheme)`
|
|
61
88
|
opacity: 0;
|
|
62
89
|
pointer-events: none;
|
|
90
|
+
border-top-right-radius: 3px;
|
|
91
|
+
border-bottom-right-radius: 3px;
|
|
92
|
+
padding: 5px 10px 0 0;
|
|
93
|
+
transition: opacity 250ms;
|
|
94
|
+
${props => props.theme.themeProp('background', css`
|
|
95
|
+
linear-gradient(-90deg,
|
|
96
|
+
${props => props.$type === 'error' ? '#901d1d' : props.$type === 'warning' ? '#816600' : props.theme.getColor('gray-700')} 55%,
|
|
97
|
+
transparent)
|
|
98
|
+
`, css`
|
|
99
|
+
linear-gradient(-90deg,
|
|
100
|
+
${props => props.$type === 'error' ? '#f7d5d0' : props.$type === 'warning' ? '#fffebf' : props.theme.getColor('gray-100')} 55%,
|
|
101
|
+
transparent)
|
|
102
|
+
`)};
|
|
103
|
+
|
|
63
104
|
display: flex;
|
|
64
105
|
align-items: center;
|
|
65
106
|
position: absolute;
|
|
66
107
|
right: 0;
|
|
67
108
|
top: 0;
|
|
68
109
|
bottom: 0;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
${props =>
|
|
74
|
-
|
|
75
|
-
return css`
|
|
76
|
-
color: #c3af43;
|
|
77
|
-
${props.theme.themeProp('background', 'linear-gradient(-90deg, #816600 55%, transparent)', 'linear-gradient(-90deg, #fffebf 55%, transparent)')};
|
|
78
|
-
`;
|
|
79
|
-
}
|
|
80
|
-
if (props.$type === 'error') {
|
|
81
|
-
return css`
|
|
82
|
-
color: #cb968f;
|
|
83
|
-
${props.theme.themeProp('background', 'linear-gradient(-90deg, #901d1d 55%, transparent)', 'linear-gradient(-90deg, #f7d5d0 55%, transparent)')};
|
|
84
|
-
`;
|
|
85
|
-
}
|
|
86
|
-
return css`
|
|
87
|
-
color: ${props.theme.getColor('gray-400')};
|
|
88
|
-
${props.theme.themeProp('background', 'linear-gradient(-90deg, ' + props.theme.getColor('gray-700') + ' 55%, transparent)', 'linear-gradient(-90deg, ' + props.theme.getColor('gray-100') + ' 55%, transparent)')};
|
|
89
|
-
`;
|
|
90
|
-
}}
|
|
91
|
-
|
|
110
|
+
color: ${props => props.theme.getColor('gray-400')};
|
|
111
|
+
|
|
112
|
+
${props => props.$type === 'warning' && props.theme.themeProp('color', '#C3AF43', '#C3AF43')}
|
|
113
|
+
|
|
114
|
+
${props => props.$type === 'error' && props.theme.themeProp('color', '#CB968F', '#CB968F')}
|
|
115
|
+
|
|
92
116
|
> svg {
|
|
93
117
|
width: 12px;
|
|
118
|
+
transition: opacity 250ms;
|
|
94
119
|
}
|
|
95
120
|
`;
|
|
96
121
|
const Input = styled.input.withConfig({
|
|
97
122
|
shouldForwardProp
|
|
98
|
-
}).attrs(
|
|
123
|
+
}).attrs(props => ({
|
|
124
|
+
...applyDefaultTheme(props),
|
|
125
|
+
type: props.inputtype || 'text'
|
|
126
|
+
}))`
|
|
99
127
|
box-sizing: border-box;
|
|
100
128
|
height: 22px;
|
|
101
129
|
width: 100%;
|
|
@@ -106,143 +134,190 @@ const Input = styled.input.withConfig({
|
|
|
106
134
|
padding: 1px 10px;
|
|
107
135
|
border-radius: 3px;
|
|
108
136
|
border: 1px solid transparent;
|
|
109
|
-
|
|
110
|
-
|
|
137
|
+
transition: border-color 350ms, background 350ms;
|
|
138
|
+
|
|
139
|
+
${props => {
|
|
140
|
+
if (props.$type === 'error') {
|
|
141
|
+
return css`
|
|
142
|
+
${props.theme.themeProp('background', '#7f1b1b', '#FEE2E2')} !important;
|
|
143
|
+
`;
|
|
144
|
+
} else if (props.$type === 'warning') {
|
|
145
|
+
return css`
|
|
146
|
+
${props.theme.themeProp('background', '#634E01', '#FFFDE8')} !important;
|
|
147
|
+
`;
|
|
148
|
+
} else {
|
|
149
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'));
|
|
150
|
+
}
|
|
151
|
+
}}
|
|
111
152
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
${props.theme.themeProp('background', '#7f1b1b', '#FEE2E2')} !important;
|
|
153
|
+
${props => props.readOnly && css`
|
|
154
|
+
cursor: default;
|
|
115
155
|
`}
|
|
116
|
-
|
|
117
|
-
${props => props
|
|
118
|
-
|
|
156
|
+
|
|
157
|
+
${props => props.disabled && css`
|
|
158
|
+
opacity: 0.5;
|
|
119
159
|
`}
|
|
120
160
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
${props => props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'))}
|
|
164
|
+
|
|
165
|
+
${props => props.$haslink && css`
|
|
166
|
+
&&:not(:focus),
|
|
167
|
+
&&:read-only {
|
|
168
|
+
${linkColor}
|
|
126
169
|
}
|
|
127
|
-
|
|
170
|
+
&&:read-only {
|
|
171
|
+
cursor: default;
|
|
172
|
+
}
|
|
173
|
+
`};
|
|
128
174
|
|
|
129
|
-
|
|
130
|
-
&:hover:not(:focus):not([readonly]):not([disabled]) {
|
|
175
|
+
&&:not(:hover):not(:focus) {
|
|
131
176
|
${props => {
|
|
177
|
+
if (props.$edit) {
|
|
178
|
+
if (props.$type === 'error') {
|
|
179
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
|
|
180
|
+
} else if (props.$type === 'warning') {
|
|
181
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
182
|
+
} else {
|
|
183
|
+
return props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}}
|
|
187
|
+
|
|
188
|
+
${props => props.$edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)')};
|
|
189
|
+
|
|
190
|
+
${props => props.$haslink && css`
|
|
191
|
+
&&:not(:focus),
|
|
192
|
+
&&:read-only {
|
|
193
|
+
cursor: default;
|
|
194
|
+
${linkColor}
|
|
195
|
+
}
|
|
196
|
+
`}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&&:hover:not(:focus) {
|
|
200
|
+
${props => {
|
|
201
|
+
if (props.readOnly) {
|
|
202
|
+
if (props.$type === 'error') {
|
|
203
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
|
|
204
|
+
} else if (props.$type === 'warning') {
|
|
205
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
206
|
+
}
|
|
207
|
+
return readOnlyBackground;
|
|
208
|
+
}
|
|
132
209
|
if (props.$type === 'error') {
|
|
133
210
|
return props.theme.themeProp('background', '#901d1d', '#F7D5D0');
|
|
134
|
-
}
|
|
135
|
-
if (props.$type === 'warning') {
|
|
211
|
+
} else if (props.$type === 'warning') {
|
|
136
212
|
return props.theme.themeProp('background', '#806403', '#FFFEBF');
|
|
213
|
+
} else {
|
|
214
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
137
215
|
}
|
|
138
|
-
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
139
216
|
}}
|
|
140
|
-
|
|
141
|
-
${props => props.$edit &&
|
|
142
|
-
|
|
217
|
+
|
|
218
|
+
${props => props.$edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))};
|
|
219
|
+
|
|
220
|
+
${props => props.$haslink && css`
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
&&:read-only {
|
|
223
|
+
background: none !important;
|
|
224
|
+
cursor: default;
|
|
225
|
+
}
|
|
143
226
|
`}
|
|
144
|
-
|
|
227
|
+
|
|
145
228
|
& + ${InputIconContainer} {
|
|
146
229
|
opacity: 1;
|
|
230
|
+
${props => props.$type === 'success' && css`
|
|
231
|
+
opacity: 0;
|
|
232
|
+
`}
|
|
147
233
|
}
|
|
234
|
+
|
|
235
|
+
${props => props.disabled && css`
|
|
236
|
+
background: none !important;
|
|
237
|
+
cursor: not-allowed;
|
|
238
|
+
`}
|
|
239
|
+
|
|
240
|
+
${props => props.disabled && props.$haslink && css`
|
|
241
|
+
background: none !important;
|
|
242
|
+
cursor: not-allowed !important;
|
|
243
|
+
`}
|
|
148
244
|
}
|
|
149
245
|
|
|
150
|
-
|
|
151
|
-
&:focus:not([readonly]):not([disabled]) {
|
|
246
|
+
&&:focus {
|
|
152
247
|
outline: none;
|
|
153
|
-
|
|
248
|
+
|
|
154
249
|
${props => {
|
|
250
|
+
if (props.readOnly) {
|
|
251
|
+
if (props.$type === 'error') {
|
|
252
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
|
|
253
|
+
} else if (props.$type === 'warning') {
|
|
254
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
255
|
+
}
|
|
256
|
+
return readOnlyBackground;
|
|
257
|
+
}
|
|
155
258
|
if (props.$type === 'error') {
|
|
156
259
|
return css`
|
|
157
|
-
border-color
|
|
158
|
-
background
|
|
159
|
-
color
|
|
260
|
+
${props.theme.themeProp('border-color', '#D83018', '#D83018')}
|
|
261
|
+
${props.theme.themeProp('background', 'white', 'white')}
|
|
262
|
+
${props.theme.themeProp('color', 'black', 'black')}
|
|
160
263
|
`;
|
|
161
|
-
}
|
|
162
|
-
|
|
264
|
+
} else if (props.$type === 'warning') {
|
|
265
|
+
return css`
|
|
266
|
+
${props.theme.themeProp('border-color', '#F4E21E', '#F4E21E')}
|
|
267
|
+
${props.theme.themeProp('background', 'white', 'white')}
|
|
268
|
+
${props.theme.themeProp('color', 'black', 'black')}
|
|
269
|
+
`;
|
|
270
|
+
} else {
|
|
163
271
|
return css`
|
|
164
|
-
border-color:
|
|
165
|
-
background
|
|
166
|
-
color: black;
|
|
272
|
+
border-color: ${props.theme.getColor('gray-600')};
|
|
273
|
+
${props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))}
|
|
167
274
|
`;
|
|
168
275
|
}
|
|
169
|
-
return css`
|
|
170
|
-
border-color: ${props.theme.getColor('gray-600')};
|
|
171
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'))};
|
|
172
|
-
`;
|
|
173
276
|
}}
|
|
174
277
|
}
|
|
175
278
|
|
|
176
|
-
|
|
177
|
-
${props => props.readOnly && css`
|
|
178
|
-
cursor: default;
|
|
179
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))} !important;
|
|
180
|
-
|
|
181
|
-
&:hover {
|
|
182
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))} !important;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&:focus {
|
|
186
|
-
outline: none;
|
|
187
|
-
${props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))} !important;
|
|
188
|
-
}
|
|
189
|
-
`}
|
|
190
|
-
|
|
191
|
-
/* Disabled state */
|
|
192
|
-
${props => props.disabled && css`
|
|
193
|
-
opacity: 0.5;
|
|
194
|
-
cursor: not-allowed;
|
|
195
|
-
pointer-events: none;
|
|
196
|
-
background: none !important;
|
|
197
|
-
`}
|
|
198
|
-
|
|
199
|
-
/* Link styling */
|
|
200
|
-
${props => props.$haslink && css`
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
${props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))};
|
|
203
|
-
&:hover:not([readonly]):not([disabled]) {
|
|
204
|
-
text-decoration: underline;
|
|
205
|
-
}
|
|
206
|
-
&[readonly],
|
|
207
|
-
&[disabled] {
|
|
208
|
-
cursor: default;
|
|
209
|
-
text-decoration: none;
|
|
210
|
-
}
|
|
211
|
-
`}
|
|
212
|
-
|
|
213
|
-
&::placeholder {
|
|
279
|
+
&&::placeholder {
|
|
214
280
|
color: inherit;
|
|
215
281
|
opacity: 0.6;
|
|
216
282
|
}
|
|
217
283
|
|
|
284
|
+
&&:hover::placeholder {
|
|
285
|
+
${props => {
|
|
286
|
+
if (props.$type === 'warning') {
|
|
287
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
288
|
+
} else if (props.$type === 'error') {
|
|
289
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
290
|
+
}
|
|
291
|
+
return '';
|
|
292
|
+
}}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&&:focus::placeholder {
|
|
296
|
+
${props => {
|
|
297
|
+
if (props.$type === 'warning') {
|
|
298
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
|
|
299
|
+
} else if (props.$type === 'error') {
|
|
300
|
+
return props.theme.themeProp('color', props.theme.getColor('red-600'), props.theme.getColor('red-600'));
|
|
301
|
+
}
|
|
302
|
+
return '';
|
|
303
|
+
}}
|
|
304
|
+
}
|
|
305
|
+
|
|
218
306
|
${props => props.$bold && css`
|
|
219
307
|
font-size: 1rem;
|
|
220
308
|
font-weight: 500;
|
|
309
|
+
line-height: 1.0625;
|
|
310
|
+
padding-top: 3px;
|
|
311
|
+
padding-bottom: 2px;
|
|
221
312
|
`}
|
|
222
313
|
`;
|
|
223
|
-
const linkColor = css`
|
|
224
|
-
${props => props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))}
|
|
225
|
-
${props => !props.$disabled && css`
|
|
226
|
-
&:hover {
|
|
227
|
-
text-decoration: underline;
|
|
228
|
-
}
|
|
229
|
-
`}
|
|
230
|
-
`;
|
|
231
|
-
const commonAnchorTagStyle = css`
|
|
232
|
-
a,
|
|
233
|
-
&& {
|
|
234
|
-
font-size: 0.875rem;
|
|
235
|
-
text-decoration: none;
|
|
236
|
-
}
|
|
237
|
-
`;
|
|
238
|
-
const readOnlyBackground = css`
|
|
239
|
-
${props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))}
|
|
240
|
-
`;
|
|
241
314
|
const LinkPopoverContainer = styled.div.withConfig({
|
|
242
315
|
shouldForwardProp
|
|
243
316
|
}).attrs(applyDefaultTheme)`
|
|
244
317
|
${commonAnchorTagStyle}
|
|
318
|
+
|
|
245
319
|
padding: 5px 8px;
|
|
320
|
+
|
|
246
321
|
svg {
|
|
247
322
|
width: 18px;
|
|
248
323
|
margin-right: 8px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactTextInput.styled.js","sources":["../../../src/components/inputs/CompactTextInput/CompactTextInput.styled.js"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { applyDefaultTheme } from '../../../utils/defaultTheme';\n\nconst shouldForwardProp = prop => !prop.startsWith('$');\n\nexport const CompactTextInput = styled.div\n .withConfig({ shouldForwardProp })\n .attrs(applyDefaultTheme)`\n display: flex;\n align-items: center;\n height: 24px;\n font-family: ${props => props.theme.primaryFontFamily};\n`;\n\nexport const Label = styled.label.withConfig({ shouldForwardProp }).attrs(applyDefaultTheme)`\n ${props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700'))};\n flex-basis: 33.33%;\n font-size: 0.875rem;\n line-height: 1rem;\n justify-content: space-between;\n height: 19px;\n display: flex;\n align-items: center;\n ${props =>\n props.$disabled &&\n css`\n opacity: 0.5;\n cursor: not-allowed;\n `}\n`;\n\nexport const InputContainer = styled.div.withConfig({ shouldForwardProp }).attrs(applyDefaultTheme)`\n position: relative;\n height: 19px;\n flex-basis: ${props => (props.$hasLabel ? '66.66%' : '100%')};\n`;\n\nconst SuccessContainerBase = styled.div.withConfig({ shouldForwardProp }).attrs(applyDefaultTheme)`\n display: flex;\n align-items: center;\n transition: opacity 0.5s ease-in-out;\n opacity: ${props => (props.$type === 'loading' || props.$type === 'success' ? 1 : 0)};\n pointer-events: none;\n ${props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'))};\n > svg {\n width: 13px;\n }\n`;\n\nexport const SuccessContainer = styled(SuccessContainerBase)`\n margin-right: 5px;\n`;\n\nexport const InputSuccessContainer = styled(SuccessContainerBase)`\n position: absolute;\n top: 0;\n right: 8px;\n height: 100%;\n`;\n\nexport const InputIconContainer = styled.div\n .withConfig({ shouldForwardProp })\n .attrs(applyDefaultTheme)`\n opacity: 0;\n pointer-events: none;\n display: flex;\n align-items: center;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 5px 10px 0 0;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n \n ${props => {\n if (props.$type === 'warning') {\n return css`\n color: #c3af43;\n ${props.theme.themeProp(\n 'background',\n 'linear-gradient(-90deg, #816600 55%, transparent)',\n 'linear-gradient(-90deg, #fffebf 55%, transparent)'\n )};\n `;\n }\n if (props.$type === 'error') {\n return css`\n color: #cb968f;\n ${props.theme.themeProp(\n 'background',\n 'linear-gradient(-90deg, #901d1d 55%, transparent)',\n 'linear-gradient(-90deg, #f7d5d0 55%, transparent)'\n )};\n `;\n }\n return css`\n color: ${props.theme.getColor('gray-400')};\n ${props.theme.themeProp(\n 'background',\n 'linear-gradient(-90deg, ' + props.theme.getColor('gray-700') + ' 55%, transparent)',\n 'linear-gradient(-90deg, ' + props.theme.getColor('gray-100') + ' 55%, transparent)'\n )};\n `;\n }}\n \n > svg {\n width: 12px;\n }\n`;\n\nexport const Input = styled.input.withConfig({ shouldForwardProp }).attrs(applyDefaultTheme)`\n box-sizing: border-box;\n height: 22px;\n width: 100%;\n display: block;\n font-size: 0.875rem;\n line-height: 1rem;\n font-family: inherit;\n padding: 1px 10px;\n border-radius: 3px;\n border: 1px solid transparent;\n ${props => props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'))};\n ${props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white'))};\n\n /* Type-specific backgrounds - these override the default */\n ${props =>\n props.$type === 'error' &&\n css`\n ${props.theme.themeProp('background', '#7f1b1b', '#FEE2E2')} !important;\n `}\n \n ${props =>\n props.$type === 'warning' &&\n css`\n ${props.theme.themeProp('background', '#634E01', '#FFFDE8')} !important;\n `}\n\n /* Edit mode styling */\n ${props =>\n props.$edit &&\n css`\n &:not(:hover):not(:focus) {\n ${props.$type === 'error'\n ? props.theme.themeProp('background', '#7f1b1b', '#FEE2E2')\n : props.$type === 'warning'\n ? props.theme.themeProp('background', '#634E01', '#FFFDE8')\n : props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)')};\n ${props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)')};\n }\n `}\n\n /* Hover state */\n &:hover:not(:focus):not([readonly]):not([disabled]) {\n ${props => {\n if (props.$type === 'error') {\n return props.theme.themeProp('background', '#901d1d', '#F7D5D0');\n }\n if (props.$type === 'warning') {\n return props.theme.themeProp('background', '#806403', '#FFFEBF');\n }\n return props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n );\n }}\n \n ${props =>\n props.$edit &&\n css`\n ${props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n )};\n `}\n \n & + ${InputIconContainer} {\n opacity: 1;\n }\n }\n\n /* Focus state */\n &:focus:not([readonly]):not([disabled]) {\n outline: none;\n \n ${props => {\n if (props.$type === 'error') {\n return css`\n border-color: #d83018;\n background: white;\n color: black;\n `;\n }\n if (props.$type === 'warning') {\n return css`\n border-color: #f4e21e;\n background: white;\n color: black;\n `;\n }\n return css`\n border-color: ${props.theme.getColor('gray-600')};\n ${props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n )};\n `;\n }}\n }\n\n /* Read-only state */\n ${props =>\n props.readOnly &&\n css`\n cursor: default;\n ${props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )} !important;\n\n &:hover {\n ${props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )} !important;\n }\n\n &:focus {\n outline: none;\n ${props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )} !important;\n }\n `}\n\n /* Disabled state */\n ${props =>\n props.disabled &&\n css`\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n background: none !important;\n `}\n\n /* Link styling */\n ${props =>\n props.$haslink &&\n css`\n cursor: pointer;\n ${props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))};\n &:hover:not([readonly]):not([disabled]) {\n text-decoration: underline;\n }\n &[readonly],\n &[disabled] {\n cursor: default;\n text-decoration: none;\n }\n `}\n\n &::placeholder {\n color: inherit;\n opacity: 0.6;\n }\n\n ${props =>\n props.$bold &&\n css`\n font-size: 1rem;\n font-weight: 500;\n `}\n`;\n\nconst linkColor = css`\n ${props => props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))}\n ${props =>\n !props.$disabled &&\n css`\n &:hover {\n text-decoration: underline;\n }\n `}\n`;\n\nconst commonAnchorTagStyle = css`\n a,\n && {\n font-size: 0.875rem;\n text-decoration: none;\n }\n`;\n\nconst readOnlyBackground = css`\n ${props =>\n props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )}\n`;\n\nexport const LinkPopoverContainer = styled.div\n .withConfig({ shouldForwardProp })\n .attrs(applyDefaultTheme)`\n ${commonAnchorTagStyle}\n padding: 5px 8px;\n svg {\n width: 18px;\n margin-right: 8px;\n }\n`;\n\nexport const StyledLink = styled.a.withConfig({ shouldForwardProp }).attrs(applyDefaultTheme)`\n ${commonAnchorTagStyle}\n ${linkColor}\n`;\n\nexport const ReadOnlyLinkContainer = styled.div\n .withConfig({ shouldForwardProp })\n .attrs(applyDefaultTheme)`\n ${readOnlyBackground};\n border: 1px solid transparent;\n border-radius: 3px;\n padding: 0 10px 1px;\n`;\n"],"names":["shouldForwardProp","prop","startsWith","CompactTextInput","styled","div","withConfig","attrs","applyDefaultTheme","props","theme","primaryFontFamily","Label","label","themeProp","getColor","$disabled","css","InputContainer","$hasLabel","SuccessContainerBase","$type","SuccessContainer","InputSuccessContainer","InputIconContainer","Input","input","$edit","readOnly","disabled","$haslink","$bold","linkColor","commonAnchorTagStyle","readOnlyBackground","LinkPopoverContainer","StyledLink","a","ReadOnlyLinkContainer"],"mappings":";;;AAGA,MAAMA,iBAAiB,GAAGC,IAAI,IAAI,CAACA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,CAAA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N,KAAK,IACL,CAACA,KAAK,CAACO,SAAS,IAChBC,GAAG,CAAA;AACP;AACA;AACA;AACA,IAAK,CAAA,CAAA;AACL,CAAC,CAAA;AAED,MAAMgB,oBAAoB,GAAGhB,GAAG,CAAA;AAChC;AACA;AACA;AACA;AACA;AACA,CAAC,CAAA;AAED,MAAMiB,kBAAkB,GAAGjB,GAAG,CAAA;AAC9B,EAAIR,EAAAA,KAAK,IACLA,KAAK,CAACC,KAAK,CAACI,SAAS,CACnB,YAAY,EACZL,KAAK,CAACC,KAAK,CAACK,QAAQ,CAAC,UAAU,CAAC,EAChCN,KAAK,CAACC,KAAK,CAACK,QAAQ,CAAC,OAAO,CAC9B,CAAC,CAAA;AACL,CAAC,CAAA;AAEM,MAAMoB,oBAAoB,GAAG/B,MAAM,CAACC,GAAG,CAC3CC,UAAU,CAAC;AAAEN,EAAAA,iBAAAA;AAAkB,CAAC,CAAC,CACjCO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC3B,EAAA,EAAIyB,oBAAoB,CAAA;AACxB;AACA;AACA;AACA;AACA;AACA,EAAC;AAEM,MAAMG,UAAU,GAAGhC,MAAM,CAACiC,CAAC,CAAC/B,UAAU,CAAC;AAAEN,EAAAA,iBAAAA;AAAkB,CAAC,CAAC,CAACO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC7F,EAAA,EAAIyB,oBAAoB,CAAA;AACxB,EAAA,EAAID,SAAS,CAAA;AACb,EAAC;AAEM,MAAMM,qBAAqB,GAAGlC,MAAM,CAACC,GAAG,CAC5CC,UAAU,CAAC;AAAEN,EAAAA,iBAAAA;AAAkB,CAAC,CAAC,CACjCO,KAAK,CAACC,iBAAiB,CAAC,CAAA;AAC3B,EAAA,EAAI0B,kBAAkB,CAAA;AACtB;AACA;AACA;AACA;;;;"}
|
|
1
|
+
{"version":3,"file":"CompactTextInput.styled.js","sources":["../../../src/components/inputs/CompactTextInput/CompactTextInput.styled.js"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { applyDefaultTheme } from '../../../utils/defaultTheme';\n\nconst linkColor = css`\n ${props => props.theme.themeProp('color', '#ACCDC3', props.theme.getColor('emerald-500'))}\n ${props =>\n !props.disabled &&\n css`\n &:hover {\n text-decoration: underline;\n }\n `}\n`;\n\nconst commonAnchorTagStyle = css`\n a,\n && {\n font-size: 0.875rem;\n text-decoration: none;\n }\n`;\n\nconst readOnlyBackground = css`\n ${props =>\n props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n )}\n`;\n\nconst shouldForwardProp = prop => {\n return prop !== 'theme' && !prop.startsWith('$');\n};\n\nexport const CompactTextInput = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n display: flex;\n align-items: center;\n height: 24px;\n font-family: ${props => props.theme.primaryFontFamily};\n`;\n\nexport const Label = styled.label\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('white'),\n props.theme.getColor('gray-700')\n )};\n flex-basis: 33.33%;\n font-size: 0.875rem;\n line-height: 1rem;\n justify-content: space-between;\n height: 19px;\n display: flex;\n align-items: center;\n ${props =>\n props.disabled &&\n css`\n opacity: 0.5;\n cursor: not-allowed;\n `}\n`;\n\nexport const InputContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n position: relative;\n height: 19px;\n flex-basis: ${props => (props.$hasLabel ? '66.66%' : '100%')};\n`;\n\nexport const SuccessContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n opacity: 1;\n pointer-events: none;\n display: flex;\n transition: opacity 0.5s ease-in-out;\n margin-right: 5px;\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-300'),\n props.theme.getColor('gray-500')\n )}\n > svg {\n width: 13px;\n }\n`;\n\nexport const InputSuccessContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n opacity: 1;\n pointer-events: none;\n display: flex;\n justify-content: flex-end;\n transition: opacity 0.5s ease-in-out;\n position: relative;\n margin-top: -20px;\n margin-right: 8px;\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-300'),\n props.theme.getColor('gray-500')\n )}\n > svg {\n width: 13px;\n }\n`;\n\nexport const InputIconContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n opacity: 0;\n pointer-events: none;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n padding: 5px 10px 0 0;\n transition: opacity 250ms;\n ${props =>\n props.theme.themeProp(\n 'background',\n css`\n linear-gradient(-90deg,\n ${props =>\n props.$type === 'error'\n ? '#901d1d'\n : props.$type === 'warning'\n ? '#816600'\n : props.theme.getColor('gray-700')} 55%,\n transparent)\n `,\n css`\n linear-gradient(-90deg,\n ${props =>\n props.$type === 'error'\n ? '#f7d5d0'\n : props.$type === 'warning'\n ? '#fffebf'\n : props.theme.getColor('gray-100')} 55%,\n transparent)\n `\n )};\n\n display: flex;\n align-items: center;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n color: ${props => props.theme.getColor('gray-400')};\n\n ${props => props.$type === 'warning' && props.theme.themeProp('color', '#C3AF43', '#C3AF43')}\n\n ${props => props.$type === 'error' && props.theme.themeProp('color', '#CB968F', '#CB968F')}\n\n > svg {\n width: 12px;\n transition: opacity 250ms;\n }\n`;\n\n// @ts-ignore - Transient props ($type, $edit, $bold, $haslink) are filtered by shouldForwardProp\nexport const Input = styled.input\n .withConfig({\n shouldForwardProp\n })\n .attrs(props => ({\n ...applyDefaultTheme(props),\n type: props.inputtype || 'text'\n }))`\n box-sizing: border-box;\n height: 22px;\n width: 100%;\n display: block;\n font-size: 0.875rem;\n line-height: 1rem;\n font-family: inherit;\n padding: 1px 10px;\n border-radius: 3px;\n border: 1px solid transparent;\n transition: border-color 350ms, background 350ms;\n\n ${props => {\n if (props.$type === 'error') {\n return css`\n ${props.theme.themeProp('background', '#7f1b1b', '#FEE2E2')} !important;\n `;\n } else if (props.$type === 'warning') {\n return css`\n ${props.theme.themeProp('background', '#634E01', '#FFFDE8')} !important;\n `;\n } else {\n return props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-900'),\n props.theme.getColor('white')\n );\n }\n }}\n\n ${props =>\n props.readOnly &&\n css`\n cursor: default;\n `}\n\n ${props =>\n props.disabled &&\n css`\n opacity: 0.5;\n `}\n\n\n\n ${props =>\n props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-200'),\n props.theme.getColor('gray-700')\n )}\n\n ${props =>\n props.$haslink &&\n css`\n &&:not(:focus),\n &&:read-only {\n ${linkColor}\n }\n &&:read-only {\n cursor: default;\n }\n `};\n\n &&:not(:hover):not(:focus) {\n ${props => {\n if (props.$edit) {\n if (props.$type === 'error') {\n return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');\n } else if (props.$type === 'warning') {\n return props.theme.themeProp('background', '#634E01', '#FFFDE8');\n } else {\n return props.theme.themeProp(\n 'background',\n 'rgba(39,39,42, 0.7)',\n 'rgba(244,244,245, 0.3)'\n );\n }\n }\n }}\n\n ${props =>\n props.$edit &&\n props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)')};\n \n ${props =>\n props.$haslink &&\n css`\n &&:not(:focus),\n &&:read-only {\n cursor: default;\n ${linkColor}\n }\n `}\n }\n\n &&:hover:not(:focus) {\n ${props => {\n if (props.readOnly) {\n if (props.$type === 'error') {\n return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');\n } else if (props.$type === 'warning') {\n return props.theme.themeProp('background', '#634E01', '#FFFDE8');\n }\n return readOnlyBackground;\n }\n\n if (props.$type === 'error') {\n return props.theme.themeProp('background', '#901d1d', '#F7D5D0');\n } else if (props.$type === 'warning') {\n return props.theme.themeProp('background', '#806403', '#FFFEBF');\n } else {\n return props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n );\n }\n }}\n\n ${props =>\n props.$edit &&\n props.theme.themeProp(\n 'border-color',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n )};\n\n ${props =>\n props.$haslink &&\n css`\n cursor: pointer;\n &&:read-only {\n background: none !important;\n cursor: default;\n }\n `}\n \n & + ${InputIconContainer} {\n opacity: 1;\n ${props =>\n props.$type === 'success' &&\n css`\n opacity: 0;\n `}\n }\n\n ${props =>\n props.disabled &&\n css`\n background: none !important;\n cursor: not-allowed;\n `}\n \n ${props =>\n props.disabled &&\n props.$haslink &&\n css`\n background: none !important;\n cursor: not-allowed !important;\n `}\n }\n\n &&:focus {\n outline: none;\n\n ${props => {\n if (props.readOnly) {\n if (props.$type === 'error') {\n return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');\n } else if (props.$type === 'warning') {\n return props.theme.themeProp('background', '#634E01', '#FFFDE8');\n }\n return readOnlyBackground;\n }\n\n if (props.$type === 'error') {\n return css`\n ${props.theme.themeProp('border-color', '#D83018', '#D83018')}\n ${props.theme.themeProp('background', 'white', 'white')}\n ${props.theme.themeProp('color', 'black', 'black')}\n `;\n } else if (props.$type === 'warning') {\n return css`\n ${props.theme.themeProp('border-color', '#F4E21E', '#F4E21E')}\n ${props.theme.themeProp('background', 'white', 'white')}\n ${props.theme.themeProp('color', 'black', 'black')}\n `;\n } else {\n return css`\n border-color: ${props.theme.getColor('gray-600')};\n ${props.theme.themeProp(\n 'background',\n props.theme.getColor('gray-700'),\n props.theme.getColor('gray-100')\n )}\n `;\n }\n }}\n }\n\n &&::placeholder {\n color: inherit;\n opacity: 0.6;\n }\n\n &&:hover::placeholder {\n ${props => {\n if (props.$type === 'warning') {\n return props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-200'),\n props.theme.getColor('gray-700')\n );\n } else if (props.$type === 'error') {\n return props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-200'),\n props.theme.getColor('gray-700')\n );\n }\n return '';\n }}\n }\n\n &&:focus::placeholder {\n ${props => {\n if (props.$type === 'warning') {\n return props.theme.themeProp(\n 'color',\n props.theme.getColor('gray-900'),\n props.theme.getColor('gray-900')\n );\n } else if (props.$type === 'error') {\n return props.theme.themeProp(\n 'color',\n props.theme.getColor('red-600'),\n props.theme.getColor('red-600')\n );\n }\n return '';\n }}\n }\n\n ${props =>\n props.$bold &&\n css`\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.0625;\n padding-top: 3px;\n padding-bottom: 2px;\n `}\n`;\n\nexport const LinkPopoverContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n ${commonAnchorTagStyle}\n\n padding: 5px 8px;\n\n svg {\n width: 18px;\n margin-right: 8px;\n }\n`;\n\nexport const StyledLink = styled.a\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n ${commonAnchorTagStyle}\n ${linkColor}\n`;\n\nexport const ReadOnlyLinkContainer = styled.div\n .withConfig({\n shouldForwardProp\n })\n .attrs(applyDefaultTheme)`\n ${readOnlyBackground};\n border: 1px solid transparent;\n border-radius: 3px;\n padding: 0 10px 1px;\n`;\n"],"names":["linkColor","css","props","theme","themeProp","getColor","disabled","commonAnchorTagStyle","readOnlyBackground","shouldForwardProp","prop","startsWith","CompactTextInput","styled","div","withConfig","attrs","applyDefaultTheme","primaryFontFamily","Label","label","InputContainer","$hasLabel","SuccessContainer","InputSuccessContainer","InputIconContainer","$type","Input","input","type","inputtype","readOnly","$haslink","$edit","$bold","LinkPopoverContainer","StyledLink","a","ReadOnlyLinkContainer"],"mappings":";;;AAGA,MAAMA,SAAS,GAAGC,GAAG,CAAA;AACrB,EAAIC,EAAAA,KAAK,IAAIA,KAAK,CAACC,KAAK,CAACC,SAAS,CAAC,OAAO,EAAE,SAAS,EAAEF,KAAK,CAACC,KAAK,CAACE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;AAC3F,EAAA,EAAIH,KAAK,IACL,CAACA,KAAK,CAACI,QAA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