@rescui/textarea 0.3.1 → 0.4.0
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/lib/index.css +99 -99
- package/lib/index.d.ts +60 -1
- package/lib/index.js +8 -1
- package/lib/textarea.p.module.css.js +20 -20
- package/package.json +7 -7
package/lib/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.
|
|
1
|
+
._labelWrapper_1npu676_44{
|
|
2
2
|
display:block;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
._wrapper_1npu676_48{
|
|
5
5
|
position:relative;
|
|
6
6
|
|
|
7
7
|
display:-webkit-box;
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
cursor:text;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
._disabled_1npu676_56 ._wrapper_1npu676_48{
|
|
18
18
|
cursor:default;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
._inner_1npu676_61{
|
|
21
21
|
display:block;
|
|
22
22
|
-webkit-box-flex:1;
|
|
23
23
|
-ms-flex:1 1 100%;
|
|
@@ -42,28 +42,28 @@
|
|
|
42
42
|
|
|
43
43
|
font:inherit;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
._inner_1npu676_61:focus{
|
|
46
46
|
outline:none;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
._inner_1npu676_61::-webkit-input-placeholder{
|
|
49
49
|
opacity:1;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
._inner_1npu676_61::-moz-placeholder{
|
|
52
52
|
opacity:1;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
._inner_1npu676_61:-ms-input-placeholder{
|
|
55
55
|
opacity:1;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
._inner_1npu676_61::-ms-input-placeholder{
|
|
58
58
|
opacity:1;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
._inner_1npu676_61::placeholder{
|
|
61
61
|
opacity:1;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
._focused_1npu676_90 ._inner_1npu676_61{
|
|
64
64
|
border-width:2px;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
._sizeL_1npu676_94 ._inner_1npu676_61{
|
|
67
67
|
padding: 11px 15px;
|
|
68
68
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
69
69
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
line-height:28px;
|
|
76
76
|
line-height:var(--rs-text-1-line-height, 28px);
|
|
77
77
|
}
|
|
78
|
-
.
|
|
78
|
+
._sizeM_1npu676_98 ._inner_1npu676_61{
|
|
79
79
|
padding: 7px 7px;
|
|
80
80
|
letter-spacing:0.0015em;
|
|
81
81
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
line-height:24px;
|
|
89
89
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
90
90
|
}
|
|
91
|
-
._rs-reset-letter-
|
|
91
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeM_1npu676_98 ._inner_1npu676_61{
|
|
92
92
|
letter-spacing:normal;
|
|
93
93
|
}
|
|
94
|
-
.
|
|
94
|
+
._sizeS_1npu676_102 ._inner_1npu676_61{
|
|
95
95
|
padding: 5px 7px;
|
|
96
96
|
letter-spacing:0.0045em;
|
|
97
97
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -103,47 +103,47 @@
|
|
|
103
103
|
line-height:20px;
|
|
104
104
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
105
105
|
}
|
|
106
|
-
._rs-reset-letter-
|
|
106
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeS_1npu676_102 ._inner_1npu676_61{
|
|
107
107
|
letter-spacing:normal;
|
|
108
108
|
}
|
|
109
|
-
.
|
|
110
|
-
.
|
|
109
|
+
._sizeL_1npu676_94._focused_1npu676_90 ._inner_1npu676_61,
|
|
110
|
+
._sizeL_1npu676_94._error_1npu676_108 ._inner_1npu676_61{
|
|
111
111
|
padding: 10px 14px;
|
|
112
112
|
}
|
|
113
|
-
.
|
|
114
|
-
.
|
|
113
|
+
._sizeM_1npu676_98._focused_1npu676_90 ._inner_1npu676_61,
|
|
114
|
+
._sizeM_1npu676_98._error_1npu676_108 ._inner_1npu676_61{
|
|
115
115
|
padding: 6px 6px;
|
|
116
116
|
}
|
|
117
|
-
.
|
|
118
|
-
.
|
|
117
|
+
._sizeS_1npu676_102._focused_1npu676_90 ._inner_1npu676_61,
|
|
118
|
+
._sizeS_1npu676_102._error_1npu676_108 ._inner_1npu676_61{
|
|
119
119
|
padding: 4px 6px;
|
|
120
120
|
}
|
|
121
121
|
@media (hover: hover){
|
|
122
|
-
.
|
|
122
|
+
._themeLight_1npu676_122 ._inner_1npu676_61{
|
|
123
123
|
scrollbar-color:#A3A3A4 #E8E8E8;
|
|
124
124
|
scrollbar-color:var(--rs-color-grey-40, #A3A3A4) var(--rs-color-grey-10, #E8E8E8);
|
|
125
125
|
scrollbar-width:thin;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
@media (hover: hover){
|
|
129
|
-
.
|
|
129
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-webkit-scrollbar{
|
|
130
130
|
width:7px;
|
|
131
131
|
height:8px
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
@media (hover: hover){
|
|
135
|
-
.
|
|
135
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-webkit-scrollbar-corner{
|
|
136
136
|
background-color:transparent
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
@media (hover: hover){
|
|
140
|
-
.
|
|
140
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-webkit-scrollbar-track{
|
|
141
141
|
background-color:#E8E8E8;
|
|
142
142
|
background-color:var(--rs-color-grey-10, #E8E8E8)
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
@media (hover: hover){
|
|
146
|
-
.
|
|
146
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-webkit-scrollbar-thumb{
|
|
147
147
|
width:7px;
|
|
148
148
|
|
|
149
149
|
border-radius:7px;
|
|
@@ -153,36 +153,36 @@
|
|
|
153
153
|
background:var(--rs-color-grey-40, #A3A3A4)
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
._themeLight_1npu676_122 ._inner_1npu676_61 {
|
|
157
157
|
color:#19191C;
|
|
158
158
|
color:var(--rs-typography-color-hard, #19191C);
|
|
159
159
|
border-color:rgba(25,25,28,0.2);
|
|
160
160
|
|
|
161
161
|
background-color:#FFFFFF;
|
|
162
162
|
}
|
|
163
|
-
.
|
|
163
|
+
._themeLight_1npu676_122 ._inner_1npu676_61._filled_1npu676_129{
|
|
164
164
|
border-color:rgba(25,25,28,0.3);
|
|
165
165
|
}
|
|
166
166
|
@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none),(hover: hover){
|
|
167
|
-
.
|
|
167
|
+
._themeLight_1npu676_122 ._inner_1npu676_61:hover{
|
|
168
168
|
border-color:rgba(25,25,28,0.5);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
.
|
|
171
|
+
._themeLight_1npu676_122._focused_1npu676_90 ._inner_1npu676_61{
|
|
172
172
|
border-color:#19191C;
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
._themeLight_1npu676_122._focused_1npu676_90._keyFocused_1npu676_144 ._inner_1npu676_61{
|
|
175
175
|
-webkit-box-shadow:0 0 0 4px #8979ff;
|
|
176
176
|
-webkit-box-shadow:0 0 0 4px var(--rs-color-primary-dim-light-theme, #8979ff);
|
|
177
177
|
box-shadow:0 0 0 4px #8979ff;
|
|
178
178
|
box-shadow:0 0 0 4px var(--rs-color-primary-dim-light-theme, #8979ff);
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61{
|
|
181
181
|
color:#FFFFFF;
|
|
182
182
|
color:var(--rs-typography-color-hard, #FFFFFF);
|
|
183
183
|
background-color:#19191C;
|
|
184
184
|
}
|
|
185
|
-
.
|
|
185
|
+
._themeLight_1npu676_122._disabled_1npu676_56 ._inner_1npu676_61{
|
|
186
186
|
border-color:rgba(25,25,28,0.2);
|
|
187
187
|
|
|
188
188
|
background-color:#F4F4F4;
|
|
@@ -190,31 +190,31 @@
|
|
|
190
190
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
191
191
|
}
|
|
192
192
|
@media (hover: hover){
|
|
193
|
-
.
|
|
193
|
+
._themeDark_1npu676_160 ._inner_1npu676_61{
|
|
194
194
|
scrollbar-color:#8C8C8E #5E5E60;
|
|
195
195
|
scrollbar-color:var(--rs-color-grey-50, #8C8C8E) var(--rs-color-grey-70, #5E5E60);
|
|
196
196
|
scrollbar-width:thin;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
@media (hover: hover){
|
|
200
|
-
.
|
|
200
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-webkit-scrollbar{
|
|
201
201
|
width:7px;
|
|
202
202
|
height:8px
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
@media (hover: hover){
|
|
206
|
-
.
|
|
206
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-webkit-scrollbar-corner{
|
|
207
207
|
background-color:transparent
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
@media (hover: hover){
|
|
211
|
-
.
|
|
211
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-webkit-scrollbar-track{
|
|
212
212
|
background-color:#5E5E60;
|
|
213
213
|
background-color:var(--rs-color-grey-70, #5E5E60)
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
@media (hover: hover){
|
|
217
|
-
.
|
|
217
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-webkit-scrollbar-thumb{
|
|
218
218
|
width:7px;
|
|
219
219
|
|
|
220
220
|
border-radius:7px;
|
|
@@ -224,95 +224,95 @@
|
|
|
224
224
|
background:var(--rs-color-grey-50, #8C8C8E)
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
.
|
|
227
|
+
._themeDark_1npu676_160 ._inner_1npu676_61 {
|
|
228
228
|
color:#FFFFFF;
|
|
229
229
|
color:var(--rs-typography-color-hard, #FFFFFF);
|
|
230
230
|
border-color:rgba(255,255,255,0.2);
|
|
231
231
|
|
|
232
232
|
background-color:#303033;
|
|
233
233
|
}
|
|
234
|
-
.
|
|
234
|
+
._themeDark_1npu676_160 ._inner_1npu676_61._filled_1npu676_129{
|
|
235
235
|
border-color:rgba(255,255,255,0.3);
|
|
236
236
|
}
|
|
237
237
|
@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none),(hover: hover){
|
|
238
|
-
.
|
|
238
|
+
._themeDark_1npu676_160 ._inner_1npu676_61:hover{
|
|
239
239
|
border-color:rgba(255,255,255,0.5);
|
|
240
240
|
|
|
241
241
|
background-color:#474749;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
.
|
|
244
|
+
._themeDark_1npu676_160._focused_1npu676_90 ._inner_1npu676_61{
|
|
245
245
|
border-color:#FFFFFF;
|
|
246
246
|
|
|
247
247
|
background-color:#474749;
|
|
248
248
|
}
|
|
249
|
-
.
|
|
249
|
+
._themeDark_1npu676_160._focused_1npu676_90._keyFocused_1npu676_144 ._inner_1npu676_61{
|
|
250
250
|
-webkit-box-shadow:0 0 0 4px #6f61d2;
|
|
251
251
|
-webkit-box-shadow:0 0 0 4px var(--rs-color-primary-dim-dark-theme, #6f61d2);
|
|
252
252
|
box-shadow:0 0 0 4px #6f61d2;
|
|
253
253
|
box-shadow:0 0 0 4px var(--rs-color-primary-dim-dark-theme, #6f61d2);
|
|
254
254
|
}
|
|
255
|
-
.
|
|
255
|
+
._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61{
|
|
256
256
|
color:#19191C;
|
|
257
257
|
color:var(--rs-typography-color-hard, #19191C);
|
|
258
258
|
background-color:#FFFFFF;
|
|
259
259
|
}
|
|
260
|
-
.
|
|
260
|
+
._themeDark_1npu676_160._disabled_1npu676_56 ._inner_1npu676_61{
|
|
261
261
|
border-color:rgba(255,255,255,0.2);
|
|
262
262
|
|
|
263
263
|
background-color:#19191C;
|
|
264
264
|
color:rgba(255,255,255,0.5);
|
|
265
265
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
266
266
|
}
|
|
267
|
-
.
|
|
268
|
-
.
|
|
269
|
-
.
|
|
267
|
+
._labelWrapper_1npu676_44._error_1npu676_108 ._inner_1npu676_61,
|
|
268
|
+
._labelWrapper_1npu676_44._error_1npu676_108 ._inner_1npu676_61:hover,
|
|
269
|
+
._labelWrapper_1npu676_44._error_1npu676_108._focused_1npu676_90 ._inner_1npu676_61{
|
|
270
270
|
border-width:2px;
|
|
271
271
|
border-color:#F45C4A;
|
|
272
272
|
}
|
|
273
|
-
.
|
|
273
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-webkit-input-placeholder, ._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-webkit-input-placeholder{
|
|
274
274
|
color:rgba(25,25,28,0.5);
|
|
275
275
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-moz-placeholder, ._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-moz-placeholder{
|
|
278
278
|
color:rgba(25,25,28,0.5);
|
|
279
279
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
280
280
|
}
|
|
281
|
-
.
|
|
281
|
+
._themeLight_1npu676_122 ._inner_1npu676_61:-ms-input-placeholder, ._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61:-ms-input-placeholder{
|
|
282
282
|
color:rgba(25,25,28,0.5);
|
|
283
283
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
284
284
|
}
|
|
285
|
-
.
|
|
285
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::-ms-input-placeholder, ._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-ms-input-placeholder{
|
|
286
286
|
color:rgba(25,25,28,0.5);
|
|
287
287
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
288
288
|
}
|
|
289
|
-
.
|
|
290
|
-
.
|
|
289
|
+
._themeLight_1npu676_122 ._inner_1npu676_61::placeholder,
|
|
290
|
+
._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::placeholder{
|
|
291
291
|
color:rgba(25,25,28,0.5);
|
|
292
292
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
293
293
|
}
|
|
294
|
-
.
|
|
294
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-webkit-input-placeholder, ._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-webkit-input-placeholder{
|
|
295
295
|
color:rgba(255,255,255,0.5);
|
|
296
296
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
297
297
|
}
|
|
298
|
-
.
|
|
298
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-moz-placeholder, ._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-moz-placeholder{
|
|
299
299
|
color:rgba(255,255,255,0.5);
|
|
300
300
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
301
301
|
}
|
|
302
|
-
.
|
|
302
|
+
._themeDark_1npu676_160 ._inner_1npu676_61:-ms-input-placeholder, ._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61:-ms-input-placeholder{
|
|
303
303
|
color:rgba(255,255,255,0.5);
|
|
304
304
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
305
305
|
}
|
|
306
|
-
.
|
|
306
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::-ms-input-placeholder, ._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::-ms-input-placeholder{
|
|
307
307
|
color:rgba(255,255,255,0.5);
|
|
308
308
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
309
309
|
}
|
|
310
|
-
.
|
|
311
|
-
.
|
|
310
|
+
._themeDark_1npu676_160 ._inner_1npu676_61::placeholder,
|
|
311
|
+
._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._inner_1npu676_61::placeholder{
|
|
312
312
|
color:rgba(255,255,255,0.5);
|
|
313
313
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
314
314
|
}
|
|
315
|
-
.
|
|
315
|
+
._busy_1npu676_220{
|
|
316
316
|
position:absolute;
|
|
317
317
|
|
|
318
318
|
display:-webkit-box;
|
|
@@ -323,41 +323,41 @@
|
|
|
323
323
|
|
|
324
324
|
pointer-events:none;
|
|
325
325
|
}
|
|
326
|
-
.
|
|
327
|
-
.
|
|
326
|
+
._themeLight_1npu676_122 ._busy_1npu676_220,
|
|
327
|
+
._themeDark_1npu676_160._rock_1npu676_148._focused_1npu676_90 ._busy_1npu676_220{
|
|
328
328
|
color:rgba(25,25,28,0.7);
|
|
329
329
|
color:var(--rs-typography-color-average, rgba(25,25,28,0.7));
|
|
330
330
|
}
|
|
331
|
-
.
|
|
332
|
-
.
|
|
331
|
+
._themeDark_1npu676_160 ._busy_1npu676_220,
|
|
332
|
+
._themeLight_1npu676_122._rock_1npu676_148._focused_1npu676_90 ._busy_1npu676_220{
|
|
333
333
|
color:rgba(255,255,255,0.7);
|
|
334
334
|
color:var(--rs-typography-color-average, rgba(255,255,255,0.7));
|
|
335
335
|
}
|
|
336
|
-
.
|
|
336
|
+
._themeLight_1npu676_122._disabled_1npu676_56 ._busy_1npu676_220{
|
|
337
337
|
color:rgba(25,25,28,0.5);
|
|
338
338
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
339
339
|
}
|
|
340
|
-
.
|
|
340
|
+
._themeDark_1npu676_160._disabled_1npu676_56 ._busy_1npu676_220{
|
|
341
341
|
color:rgba(255,255,255,0.5);
|
|
342
342
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
343
343
|
}
|
|
344
|
-
.
|
|
344
|
+
._sizeL_1npu676_94 ._busy_1npu676_220{
|
|
345
345
|
right: 15px;
|
|
346
346
|
bottom: 11px;
|
|
347
347
|
}
|
|
348
|
-
.
|
|
348
|
+
._sizeM_1npu676_98 ._busy_1npu676_220{
|
|
349
349
|
right: 7px;
|
|
350
350
|
bottom: 7px;
|
|
351
351
|
}
|
|
352
|
-
.
|
|
352
|
+
._sizeS_1npu676_102 ._busy_1npu676_220{
|
|
353
353
|
right: 7px;
|
|
354
354
|
bottom: 5px;
|
|
355
355
|
}
|
|
356
|
-
.
|
|
357
|
-
.
|
|
356
|
+
._errorMessage_1npu676_256,
|
|
357
|
+
._note_1npu676_257{
|
|
358
358
|
margin-top:8px;
|
|
359
359
|
}
|
|
360
|
-
.
|
|
360
|
+
._sizeL_1npu676_94 ._errorMessage_1npu676_256, ._sizeL_1npu676_94 ._note_1npu676_257{
|
|
361
361
|
letter-spacing:0.0015em;
|
|
362
362
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
363
363
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -369,10 +369,10 @@
|
|
|
369
369
|
line-height:24px;
|
|
370
370
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
371
371
|
}
|
|
372
|
-
._rs-reset-letter-
|
|
372
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeL_1npu676_94 ._errorMessage_1npu676_256, ._rs-reset-letter-spacing_1npu676_1 ._sizeL_1npu676_94 ._note_1npu676_257{
|
|
373
373
|
letter-spacing:normal;
|
|
374
374
|
}
|
|
375
|
-
.
|
|
375
|
+
._sizeM_1npu676_98 ._errorMessage_1npu676_256, ._sizeM_1npu676_98 ._note_1npu676_257{
|
|
376
376
|
letter-spacing:0.0045em;
|
|
377
377
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
378
378
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -383,10 +383,10 @@
|
|
|
383
383
|
line-height:20px;
|
|
384
384
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
385
385
|
}
|
|
386
|
-
._rs-reset-letter-
|
|
386
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeM_1npu676_98 ._errorMessage_1npu676_256, ._rs-reset-letter-spacing_1npu676_1 ._sizeM_1npu676_98 ._note_1npu676_257{
|
|
387
387
|
letter-spacing:normal;
|
|
388
388
|
}
|
|
389
|
-
.
|
|
389
|
+
._sizeS_1npu676_102 ._errorMessage_1npu676_256, ._sizeS_1npu676_102 ._note_1npu676_257{
|
|
390
390
|
letter-spacing:0.0045em;
|
|
391
391
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
392
392
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -397,26 +397,26 @@
|
|
|
397
397
|
line-height:20px;
|
|
398
398
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
399
399
|
}
|
|
400
|
-
._rs-reset-letter-
|
|
400
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeS_1npu676_102 ._errorMessage_1npu676_256, ._rs-reset-letter-spacing_1npu676_1 ._sizeS_1npu676_102 ._note_1npu676_257{
|
|
401
401
|
letter-spacing:normal;
|
|
402
402
|
}
|
|
403
|
-
.
|
|
403
|
+
._sizeS_1npu676_102 ._errorMessage_1npu676_256, ._sizeS_1npu676_102 ._note_1npu676_257 {
|
|
404
404
|
|
|
405
405
|
margin-top:4px;
|
|
406
406
|
}
|
|
407
|
-
.
|
|
407
|
+
._errorMessage_1npu676_256 + ._note_1npu676_257{
|
|
408
408
|
margin-top:4px;
|
|
409
409
|
}
|
|
410
|
-
.
|
|
410
|
+
._sizeS_1npu676_102 ._errorMessage_1npu676_256 + ._note_1npu676_257{
|
|
411
411
|
margin-top:0;
|
|
412
412
|
}
|
|
413
|
-
.
|
|
413
|
+
._label_1npu676_44{
|
|
414
414
|
margin-bottom:8px;
|
|
415
415
|
}
|
|
416
|
-
.
|
|
416
|
+
._sizeS_1npu676_102 ._label_1npu676_44{
|
|
417
417
|
margin-bottom:4px;
|
|
418
418
|
}
|
|
419
|
-
.
|
|
419
|
+
._sizeL_1npu676_94 ._label_1npu676_44{
|
|
420
420
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
421
421
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
422
422
|
-webkit-font-feature-settings:"kern", "liga", "calt";
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
line-height:28px;
|
|
428
428
|
line-height:var(--rs-text-1-line-height, 28px);
|
|
429
429
|
}
|
|
430
|
-
.
|
|
430
|
+
._sizeM_1npu676_98 ._label_1npu676_44{
|
|
431
431
|
letter-spacing:0.0015em;
|
|
432
432
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
433
433
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -439,10 +439,10 @@
|
|
|
439
439
|
line-height:24px;
|
|
440
440
|
line-height:var(--rs-text-2-line-height, 24px);
|
|
441
441
|
}
|
|
442
|
-
._rs-reset-letter-
|
|
442
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeM_1npu676_98 ._label_1npu676_44{
|
|
443
443
|
letter-spacing:normal;
|
|
444
444
|
}
|
|
445
|
-
.
|
|
445
|
+
._sizeS_1npu676_102 ._label_1npu676_44{
|
|
446
446
|
letter-spacing:0.0045em;
|
|
447
447
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
448
448
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -453,10 +453,10 @@
|
|
|
453
453
|
line-height:20px;
|
|
454
454
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
455
455
|
}
|
|
456
|
-
._rs-reset-letter-
|
|
456
|
+
._rs-reset-letter-spacing_1npu676_1 ._sizeS_1npu676_102 ._label_1npu676_44{
|
|
457
457
|
letter-spacing:normal;
|
|
458
458
|
}
|
|
459
|
-
.
|
|
459
|
+
._sizeS_1npu676_102._boldLabel_1npu676_302 ._label_1npu676_44{
|
|
460
460
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
461
461
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
462
462
|
-webkit-font-feature-settings:"kern", "liga", "calt";
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
line-height:20px;
|
|
469
469
|
line-height:var(--rs-h5-line-height, 20px);
|
|
470
470
|
}
|
|
471
|
-
.
|
|
471
|
+
._sizeL_1npu676_94._boldLabel_1npu676_302 ._label_1npu676_44{
|
|
472
472
|
letter-spacing:normal;
|
|
473
473
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
474
474
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
line-height:28px;
|
|
482
482
|
line-height:var(--rs-h3-line-height, 28px);
|
|
483
483
|
}
|
|
484
|
-
.
|
|
484
|
+
._sizeM_1npu676_98._boldLabel_1npu676_302 ._label_1npu676_44{
|
|
485
485
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
486
486
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
487
487
|
-webkit-font-feature-settings:"kern", "liga", "calt";
|
|
@@ -493,30 +493,30 @@
|
|
|
493
493
|
line-height:24px;
|
|
494
494
|
line-height:var(--rs-h4-line-height, 24px);
|
|
495
495
|
}
|
|
496
|
-
.
|
|
496
|
+
._errorMessage_1npu676_256{
|
|
497
497
|
color:#F45C4A;
|
|
498
498
|
}
|
|
499
|
-
.
|
|
499
|
+
._themeLight_1npu676_122 ._label_1npu676_44{
|
|
500
500
|
color:#19191C;
|
|
501
501
|
color:var(--rs-typography-color-hard, #19191C);
|
|
502
502
|
}
|
|
503
|
-
.
|
|
503
|
+
._themeDark_1npu676_160 ._label_1npu676_44{
|
|
504
504
|
color:#FFFFFF;
|
|
505
505
|
color:var(--rs-typography-color-hard, #FFFFFF);
|
|
506
506
|
}
|
|
507
|
-
.
|
|
507
|
+
._themeLight_1npu676_122 ._note_1npu676_257{
|
|
508
508
|
color:rgba(25,25,28,0.7);
|
|
509
509
|
color:var(--rs-typography-color-average, rgba(25,25,28,0.7));
|
|
510
510
|
}
|
|
511
|
-
.
|
|
511
|
+
._themeDark_1npu676_160 ._note_1npu676_257{
|
|
512
512
|
color:rgba(255,255,255,0.7);
|
|
513
513
|
color:var(--rs-typography-color-average, rgba(255,255,255,0.7));
|
|
514
514
|
}
|
|
515
|
-
.
|
|
515
|
+
._themeLight_1npu676_122._disabled_1npu676_56 ._note_1npu676_257, ._themeLight_1npu676_122._disabled_1npu676_56 ._label_1npu676_44{
|
|
516
516
|
color:rgba(25,25,28,0.5);
|
|
517
517
|
color:var(--rs-typography-color-pale, rgba(25,25,28,0.5));
|
|
518
518
|
}
|
|
519
|
-
.
|
|
519
|
+
._themeDark_1npu676_160._disabled_1npu676_56 ._note_1npu676_257, ._themeDark_1npu676_160._disabled_1npu676_56 ._label_1npu676_44{
|
|
520
520
|
color:rgba(255,255,255,0.5);
|
|
521
521
|
color:var(--rs-typography-color-pale, rgba(255,255,255,0.5));
|
|
522
522
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,61 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use named import instead
|
|
4
|
+
*/
|
|
5
|
+
declare const DefaultTextarea: import("react").ForwardRefExoticComponent<Omit<import("react-textarea-autosize").TextareaAutosizeProps, keyof {
|
|
6
|
+
id?: string;
|
|
7
|
+
autoComplete?: import("./textarea").TextareaAutoComplete;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
error?: import("react").ReactNode;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
name?: string;
|
|
14
|
+
onChange?: import("react").ChangeEventHandler<HTMLTextAreaElement>;
|
|
15
|
+
onFocus?: import("react").FocusEventHandler<HTMLTextAreaElement>;
|
|
16
|
+
onBlur?: import("react").FocusEventHandler<HTMLTextAreaElement>;
|
|
17
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLTextAreaElement>;
|
|
18
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLTextAreaElement>;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
minRows?: number;
|
|
22
|
+
maxRows?: number;
|
|
23
|
+
size?: import("./textarea").TextareaSize;
|
|
24
|
+
mode?: import("./textarea").TextareaMode;
|
|
25
|
+
theme?: import("./textarea").TextareaTheme;
|
|
26
|
+
value?: string;
|
|
27
|
+
label?: import("react").ReactNode;
|
|
28
|
+
note?: import("react").ReactNode;
|
|
29
|
+
textareaRef?: import("react").Ref<HTMLTextAreaElement>;
|
|
30
|
+
enableClear?: boolean;
|
|
31
|
+
boldLabel?: boolean;
|
|
32
|
+
}> & {
|
|
33
|
+
id?: string;
|
|
34
|
+
autoComplete?: import("./textarea").TextareaAutoComplete;
|
|
35
|
+
autoFocus?: boolean;
|
|
36
|
+
className?: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
error?: import("react").ReactNode;
|
|
39
|
+
busy?: boolean;
|
|
40
|
+
name?: string;
|
|
41
|
+
onChange?: import("react").ChangeEventHandler<HTMLTextAreaElement>;
|
|
42
|
+
onFocus?: import("react").FocusEventHandler<HTMLTextAreaElement>;
|
|
43
|
+
onBlur?: import("react").FocusEventHandler<HTMLTextAreaElement>;
|
|
44
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLTextAreaElement>;
|
|
45
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLTextAreaElement>;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
minRows?: number;
|
|
49
|
+
maxRows?: number;
|
|
50
|
+
size?: import("./textarea").TextareaSize;
|
|
51
|
+
mode?: import("./textarea").TextareaMode;
|
|
52
|
+
theme?: import("./textarea").TextareaTheme;
|
|
53
|
+
value?: string;
|
|
54
|
+
label?: import("react").ReactNode;
|
|
55
|
+
note?: import("react").ReactNode;
|
|
56
|
+
textareaRef?: import("react").Ref<HTMLTextAreaElement>;
|
|
57
|
+
enableClear?: boolean;
|
|
58
|
+
boldLabel?: boolean;
|
|
59
|
+
} & import("react").RefAttributes<HTMLLabelElement>>;
|
|
60
|
+
export default DefaultTextarea;
|
|
1
61
|
export { Textarea } from './textarea';
|
|
2
|
-
export { Textarea as default } from './textarea';
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
|
|
2
|
+
import { Textarea } from './textarea.js';
|
|
3
|
+
export { Textarea } from './textarea.js';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use named import instead
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var DefaultTextarea = Textarea;
|
|
9
|
+
export { DefaultTextarea as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"labelWrapper": "
|
|
3
|
-
"wrapper": "
|
|
4
|
-
"disabled": "
|
|
5
|
-
"inner": "
|
|
6
|
-
"focused": "
|
|
7
|
-
"sizeL": "
|
|
8
|
-
"sizeM": "
|
|
9
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-
|
|
10
|
-
"sizeS": "
|
|
11
|
-
"error": "
|
|
12
|
-
"themeLight": "
|
|
13
|
-
"filled": "
|
|
14
|
-
"keyFocused": "
|
|
15
|
-
"rock": "
|
|
16
|
-
"themeDark": "
|
|
17
|
-
"busy": "
|
|
18
|
-
"errorMessage": "
|
|
19
|
-
"note": "
|
|
20
|
-
"label": "
|
|
21
|
-
"boldLabel": "
|
|
2
|
+
"labelWrapper": "_labelWrapper_1npu676_44",
|
|
3
|
+
"wrapper": "_wrapper_1npu676_48",
|
|
4
|
+
"disabled": "_disabled_1npu676_56",
|
|
5
|
+
"inner": "_inner_1npu676_61",
|
|
6
|
+
"focused": "_focused_1npu676_90",
|
|
7
|
+
"sizeL": "_sizeL_1npu676_94",
|
|
8
|
+
"sizeM": "_sizeM_1npu676_98",
|
|
9
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_1npu676_1",
|
|
10
|
+
"sizeS": "_sizeS_1npu676_102",
|
|
11
|
+
"error": "_error_1npu676_108",
|
|
12
|
+
"themeLight": "_themeLight_1npu676_122",
|
|
13
|
+
"filled": "_filled_1npu676_129",
|
|
14
|
+
"keyFocused": "_keyFocused_1npu676_144",
|
|
15
|
+
"rock": "_rock_1npu676_148",
|
|
16
|
+
"themeDark": "_themeDark_1npu676_160",
|
|
17
|
+
"busy": "_busy_1npu676_220",
|
|
18
|
+
"errorMessage": "_errorMessage_1npu676_256",
|
|
19
|
+
"note": "_note_1npu676_257",
|
|
20
|
+
"label": "_label_1npu676_44",
|
|
21
|
+
"boldLabel": "_boldLabel_1npu676_302"
|
|
22
22
|
};
|
|
23
23
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/textarea",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
18
|
-
"@rescui/icons": "^0.
|
|
18
|
+
"@rescui/icons": "^0.11.0",
|
|
19
19
|
"classnames": "^2.2.6",
|
|
20
20
|
"core-js": "^3.9.1",
|
|
21
21
|
"react-textarea-autosize": "^8.3.4"
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"react": ">=16.8.0 <18"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rescui/colors": "^0.1.
|
|
29
|
+
"@rescui/colors": "^0.1.6",
|
|
30
30
|
"@rescui/postcss-preset-library": "^0.1.0",
|
|
31
|
-
"@rescui/scripts": "^0.
|
|
32
|
-
"@rescui/tooltip": "^0.
|
|
33
|
-
"@rescui/typography": "^0.
|
|
31
|
+
"@rescui/scripts": "^0.2.0",
|
|
32
|
+
"@rescui/tooltip": "^0.5.0",
|
|
33
|
+
"@rescui/typography": "^0.10.0",
|
|
34
34
|
"@rescui/visual-regression": "^0.0.4",
|
|
35
35
|
"@types/classnames": "^2.2.11"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "rescui-scripts build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c87adfdebe07392a0aa67ce434ce465762d8fa95"
|
|
41
41
|
}
|