@dialpad/dialtone 6.20.3 → 6.21.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.21.0](https://github.com/dialpad/dialtone/compare/v6.20.3...v6.21.0) (2022-04-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **input:** support different icon sizes ([#563](https://github.com/dialpad/dialtone/issues/563)) ([0ad3c02](https://github.com/dialpad/dialtone/commit/0ad3c02db72d586bc39883aa6476bd8676e5c893))
|
|
7
|
+
|
|
1
8
|
## [6.20.3](https://github.com/dialpad/dialtone/compare/v6.20.2...v6.20.3) (2022-03-31)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
// $$ SIZES
|
|
114
114
|
// ----------------------------------------------------------------------------
|
|
115
|
-
.d-input--xs {
|
|
115
|
+
.d-input.d-input--xs {
|
|
116
116
|
.input-button-xs();
|
|
117
117
|
|
|
118
118
|
&.d-input-icon--right {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.d-input--sm {
|
|
127
|
+
.d-input.d-input--sm {
|
|
128
128
|
.input-button-sm();
|
|
129
129
|
|
|
130
130
|
&.d-input-icon--right {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.d-input--lg {
|
|
139
|
+
.d-input.d-input--lg {
|
|
140
140
|
.input-button-lg();
|
|
141
141
|
|
|
142
142
|
&.d-input-icon--right {
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.d-input--xl {
|
|
151
|
+
.d-input.d-input--xl {
|
|
152
152
|
.input-button-xl();
|
|
153
153
|
|
|
154
154
|
&.d-input-icon--right {
|
|
@@ -268,14 +268,11 @@
|
|
|
268
268
|
--input-icon-size: @icon16;
|
|
269
269
|
|
|
270
270
|
position: absolute;
|
|
271
|
-
top: 0;
|
|
272
271
|
z-index: var(--zi-base1);
|
|
273
272
|
display: inline-flex;
|
|
274
273
|
align-items: center;
|
|
275
|
-
|
|
276
|
-
height: var(--input-icon-size);
|
|
274
|
+
height: 3.6rem;
|
|
277
275
|
margin: 0;
|
|
278
|
-
margin-top: 1rem;
|
|
279
276
|
line-height: 0;
|
|
280
277
|
|
|
281
278
|
svg {
|
|
@@ -285,39 +282,34 @@
|
|
|
285
282
|
|
|
286
283
|
&.d-input-icon--left {
|
|
287
284
|
left: var(--su8);
|
|
285
|
+
// Update padding for d-input if d-input-icon--left is present
|
|
286
|
+
& ~ .d-input,
|
|
287
|
+
& ~ .d-textarea {
|
|
288
|
+
padding-left: @inputs-icon-spacing;
|
|
289
|
+
}
|
|
288
290
|
}
|
|
289
291
|
|
|
290
292
|
&.d-input-icon--right {
|
|
291
293
|
right: var(--su8);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
294
|
|
|
295
|
-
//
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
& ~ .d-input,
|
|
300
|
-
& ~ .d-textarea {
|
|
301
|
-
padding-left: @inputs-icon-spacing;
|
|
295
|
+
// Update padding for d-input if d-input-icon--right is present
|
|
296
|
+
& ~ .d-input {
|
|
297
|
+
padding-right: @inputs-icon-spacing;
|
|
298
|
+
}
|
|
302
299
|
}
|
|
303
300
|
}
|
|
304
301
|
|
|
305
|
-
|
|
306
|
-
// be used instead of this.
|
|
307
|
-
.d-input-icon--right {
|
|
308
|
-
// Update padding for d-input if d-input-icon--right is present
|
|
309
|
-
& ~ .d-input {
|
|
310
|
-
padding-right: @inputs-icon-spacing;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
302
|
+
|
|
313
303
|
|
|
314
304
|
// $$ SIZES
|
|
315
305
|
// ----------------------------------------------------------------------------
|
|
306
|
+
.d-input-icon.d-input--xs {
|
|
307
|
+
height: 2.8rem;
|
|
308
|
+
}
|
|
309
|
+
|
|
316
310
|
.d-input-icon--xs {
|
|
317
311
|
--input-icon-size: @icon12;
|
|
318
312
|
|
|
319
|
-
margin-top: 0.8rem;
|
|
320
|
-
|
|
321
313
|
// For backwards compatibility purposes only.
|
|
322
314
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
323
315
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -332,11 +324,13 @@
|
|
|
332
324
|
}
|
|
333
325
|
}
|
|
334
326
|
|
|
327
|
+
.d-input-icon.d-input--sm {
|
|
328
|
+
height: 3.2rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
335
331
|
.d-input-icon--sm {
|
|
336
332
|
--input-icon-size: @icon14;
|
|
337
333
|
|
|
338
|
-
margin-top: 0.9rem;
|
|
339
|
-
|
|
340
334
|
// For backwards compatibility purposes only.
|
|
341
335
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
342
336
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -351,11 +345,13 @@
|
|
|
351
345
|
}
|
|
352
346
|
}
|
|
353
347
|
|
|
348
|
+
.d-input-icon.d-input--lg {
|
|
349
|
+
height: 4.8rem;
|
|
350
|
+
}
|
|
351
|
+
|
|
354
352
|
.d-input-icon--lg {
|
|
355
353
|
--input-icon-size: @icon20;
|
|
356
354
|
|
|
357
|
-
margin-top: 1.4rem;
|
|
358
|
-
|
|
359
355
|
// For backwards compatibility purposes only.
|
|
360
356
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
361
357
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -370,11 +366,13 @@
|
|
|
370
366
|
}
|
|
371
367
|
}
|
|
372
368
|
|
|
369
|
+
.d-input-icon.d-input--xl {
|
|
370
|
+
height: 5.6rem;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
373
|
.d-input-icon--xl {
|
|
374
374
|
--input-icon-size: @icon24;
|
|
375
375
|
|
|
376
|
-
margin-top: 1.6rem;
|
|
377
|
-
|
|
378
376
|
// For backwards compatibility purposes only.
|
|
379
377
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
380
378
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -1184,64 +1184,64 @@ legend .d-label {
|
|
|
1184
1184
|
.d-input__wrapper {
|
|
1185
1185
|
position: relative;
|
|
1186
1186
|
}
|
|
1187
|
-
.d-input--xs {
|
|
1187
|
+
.d-input.d-input--xs {
|
|
1188
1188
|
padding-top: 0.5rem;
|
|
1189
1189
|
padding-bottom: 0.5rem;
|
|
1190
1190
|
font-size: var(--fs12);
|
|
1191
1191
|
}
|
|
1192
|
-
.d-input--xs .d-btn__icon {
|
|
1192
|
+
.d-input.d-input--xs .d-btn__icon {
|
|
1193
1193
|
width: 1.4rem;
|
|
1194
1194
|
height: 1.4rem;
|
|
1195
1195
|
}
|
|
1196
|
-
.d-input--xs.d-input-icon--right {
|
|
1196
|
+
.d-input.d-input--xs.d-input-icon--right {
|
|
1197
1197
|
padding-right: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1198
1198
|
}
|
|
1199
|
-
.d-input--xs.d-input-icon--left {
|
|
1199
|
+
.d-input.d-input--xs.d-input-icon--left {
|
|
1200
1200
|
padding-left: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1201
1201
|
}
|
|
1202
|
-
.d-input--sm {
|
|
1202
|
+
.d-input.d-input--sm {
|
|
1203
1203
|
padding-top: var(--su6);
|
|
1204
1204
|
padding-bottom: var(--su6);
|
|
1205
1205
|
font-size: var(--fs14);
|
|
1206
1206
|
}
|
|
1207
|
-
.d-input--sm .d-btn__icon {
|
|
1207
|
+
.d-input.d-input--sm .d-btn__icon {
|
|
1208
1208
|
width: 1.6rem;
|
|
1209
1209
|
height: 1.6rem;
|
|
1210
1210
|
}
|
|
1211
|
-
.d-input--sm.d-input-icon--right {
|
|
1211
|
+
.d-input.d-input--sm.d-input-icon--right {
|
|
1212
1212
|
padding-right: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1213
1213
|
}
|
|
1214
|
-
.d-input--sm.d-input-icon--left {
|
|
1214
|
+
.d-input.d-input--sm.d-input-icon--left {
|
|
1215
1215
|
padding-left: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1216
1216
|
}
|
|
1217
|
-
.d-input--lg {
|
|
1217
|
+
.d-input.d-input--lg {
|
|
1218
1218
|
padding-top: 1.1rem;
|
|
1219
1219
|
padding-bottom: 1.1rem;
|
|
1220
1220
|
font-size: var(--fs20);
|
|
1221
1221
|
}
|
|
1222
|
-
.d-input--lg .d-btn__icon {
|
|
1222
|
+
.d-input.d-input--lg .d-btn__icon {
|
|
1223
1223
|
width: 2rem;
|
|
1224
1224
|
height: 2rem;
|
|
1225
1225
|
}
|
|
1226
|
-
.d-input--lg.d-input-icon--right {
|
|
1226
|
+
.d-input.d-input--lg.d-input-icon--right {
|
|
1227
1227
|
padding-right: calc(var(--su4) + 2rem + var(--su8));
|
|
1228
1228
|
}
|
|
1229
|
-
.d-input--lg.d-input-icon--left {
|
|
1229
|
+
.d-input.d-input--lg.d-input-icon--left {
|
|
1230
1230
|
padding-left: calc(var(--su4) + 2rem + var(--su8));
|
|
1231
1231
|
}
|
|
1232
|
-
.d-input--xl {
|
|
1232
|
+
.d-input.d-input--xl {
|
|
1233
1233
|
padding-top: 1.3rem;
|
|
1234
1234
|
padding-bottom: 1.3rem;
|
|
1235
1235
|
font-size: var(--fs24);
|
|
1236
1236
|
}
|
|
1237
|
-
.d-input--xl .d-btn__icon {
|
|
1237
|
+
.d-input.d-input--xl .d-btn__icon {
|
|
1238
1238
|
width: 2.4rem;
|
|
1239
1239
|
height: 2.4rem;
|
|
1240
1240
|
}
|
|
1241
|
-
.d-input--xl.d-input-icon--right {
|
|
1241
|
+
.d-input.d-input--xl.d-input-icon--right {
|
|
1242
1242
|
padding-right: calc(var(--su4) + 2.4rem + var(--su8));
|
|
1243
1243
|
}
|
|
1244
|
-
.d-input--xl.d-input-icon--left {
|
|
1244
|
+
.d-input.d-input--xl.d-input-icon--left {
|
|
1245
1245
|
padding-left: calc(var(--su4) + 2.4rem + var(--su8));
|
|
1246
1246
|
}
|
|
1247
1247
|
.d-textarea {
|
|
@@ -1342,14 +1342,11 @@ legend .d-label {
|
|
|
1342
1342
|
.d-input-icon {
|
|
1343
1343
|
--input-icon-size: 1.6rem;
|
|
1344
1344
|
position: absolute;
|
|
1345
|
-
top: 0;
|
|
1346
1345
|
z-index: var(--zi-base1);
|
|
1347
1346
|
display: inline-flex;
|
|
1348
1347
|
align-items: center;
|
|
1349
|
-
|
|
1350
|
-
height: var(--input-icon-size);
|
|
1348
|
+
height: 3.6rem;
|
|
1351
1349
|
margin: 0;
|
|
1352
|
-
margin-top: 1rem;
|
|
1353
1350
|
line-height: 0;
|
|
1354
1351
|
}
|
|
1355
1352
|
.d-input-icon svg {
|
|
@@ -1359,19 +1356,21 @@ legend .d-label {
|
|
|
1359
1356
|
.d-input-icon.d-input-icon--left {
|
|
1360
1357
|
left: var(--su8);
|
|
1361
1358
|
}
|
|
1359
|
+
.d-input-icon.d-input-icon--left ~ .d-input,
|
|
1360
|
+
.d-input-icon.d-input-icon--left ~ .d-textarea {
|
|
1361
|
+
padding-left: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1362
|
+
}
|
|
1362
1363
|
.d-input-icon.d-input-icon--right {
|
|
1363
1364
|
right: var(--su8);
|
|
1364
1365
|
}
|
|
1365
|
-
.d-input-icon--
|
|
1366
|
-
.d-input-icon--left ~ .d-textarea {
|
|
1367
|
-
padding-left: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1368
|
-
}
|
|
1369
|
-
.d-input-icon--right ~ .d-input {
|
|
1366
|
+
.d-input-icon.d-input-icon--right ~ .d-input {
|
|
1370
1367
|
padding-right: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1371
1368
|
}
|
|
1369
|
+
.d-input-icon.d-input--xs {
|
|
1370
|
+
height: 2.8rem;
|
|
1371
|
+
}
|
|
1372
1372
|
.d-input-icon--xs {
|
|
1373
1373
|
--input-icon-size: 1.2rem;
|
|
1374
|
-
margin-top: 0.8rem;
|
|
1375
1374
|
}
|
|
1376
1375
|
.d-input-icon--xs.d-input-icon--left ~ .d-input,
|
|
1377
1376
|
.d-input-icon--xs.d-input-icon--left ~ .d-textarea {
|
|
@@ -1380,9 +1379,11 @@ legend .d-label {
|
|
|
1380
1379
|
.d-input-icon--xs.d-input-icon--right ~ .d-input {
|
|
1381
1380
|
padding-right: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1382
1381
|
}
|
|
1382
|
+
.d-input-icon.d-input--sm {
|
|
1383
|
+
height: 3.2rem;
|
|
1384
|
+
}
|
|
1383
1385
|
.d-input-icon--sm {
|
|
1384
1386
|
--input-icon-size: 1.4rem;
|
|
1385
|
-
margin-top: 0.9rem;
|
|
1386
1387
|
}
|
|
1387
1388
|
.d-input-icon--sm.d-input-icon--left ~ .d-input,
|
|
1388
1389
|
.d-input-icon--sm.d-input-icon--left ~ .d-textarea {
|
|
@@ -1391,9 +1392,11 @@ legend .d-label {
|
|
|
1391
1392
|
.d-input-icon--sm.d-input-icon--right ~ .d-input {
|
|
1392
1393
|
padding-right: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1393
1394
|
}
|
|
1395
|
+
.d-input-icon.d-input--lg {
|
|
1396
|
+
height: 4.8rem;
|
|
1397
|
+
}
|
|
1394
1398
|
.d-input-icon--lg {
|
|
1395
1399
|
--input-icon-size: 2rem;
|
|
1396
|
-
margin-top: 1.4rem;
|
|
1397
1400
|
}
|
|
1398
1401
|
.d-input-icon--lg.d-input-icon--left ~ .d-input,
|
|
1399
1402
|
.d-input-icon--lg.d-input-icon--left ~ .d-textarea {
|
|
@@ -1402,9 +1405,11 @@ legend .d-label {
|
|
|
1402
1405
|
.d-input-icon--lg.d-input-icon--right ~ .d-input {
|
|
1403
1406
|
padding-right: calc(var(--su4) + 2rem + var(--su8));
|
|
1404
1407
|
}
|
|
1408
|
+
.d-input-icon.d-input--xl {
|
|
1409
|
+
height: 5.6rem;
|
|
1410
|
+
}
|
|
1405
1411
|
.d-input-icon--xl {
|
|
1406
1412
|
--input-icon-size: 2.4rem;
|
|
1407
|
-
margin-top: 1.6rem;
|
|
1408
1413
|
}
|
|
1409
1414
|
.d-input-icon--xl.d-input-icon--left ~ .d-input,
|
|
1410
1415
|
.d-input-icon--xl.d-input-icon--left ~ .d-textarea {
|