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