@dialpad/dialtone 6.40.0 → 6.41.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.
@@ -18,19 +18,12 @@
18
18
  // - Sizes
19
19
  // • INPUT ICONS
20
20
  //
21
- // ============================================================================
22
- // Inputs CSS Vars
23
- // ----------------------------------------------------------------------------
24
- @inputs-icon-spacing--xs: calc(var(--su4) + @icon12 + var(--su8));
25
- @inputs-icon-spacing--sm: calc(var(--su4) + @icon14 + var(--su8));
26
- @inputs-icon-spacing: calc(var(--su4) + @icon16 + var(--su8));
27
- @inputs-icon-spacing--lg: calc(var(--su4) + @icon20 + var(--su8));
28
- @inputs-icon-spacing--xl: calc(var(--su4) + @icon24 + var(--su8));
29
21
 
30
22
  // $ INPUTS
31
23
  // ----------------------------------------------------------------------------
32
24
  .d-input,
33
- .d-textarea {
25
+ .d-textarea,
26
+ .d-input__wrapper {
34
27
  // Component CSS Vars
35
28
  // ------------------------------------------------------------------------
36
29
  --input--focus-bc: var(--primary-color);
@@ -59,14 +52,6 @@
59
52
  transition-duration: 100ms;
60
53
  transition-property: border, box-shadow, background-color;
61
54
 
62
- &.d-input-icon--right {
63
- padding-right: @inputs-icon-spacing;
64
- }
65
-
66
- &.d-input-icon--left {
67
- padding-left: @inputs-icon-spacing;
68
- }
69
-
70
55
  // -- Placeholder copy
71
56
  &::placeholder {
72
57
  color: var(--black-300);
@@ -76,7 +61,8 @@
76
61
  display: none;
77
62
  }
78
63
  // -- FOCUS
79
- &:focus {
64
+ &:focus,
65
+ &:focus-within {
80
66
  --input--bc: var(--input--focus-bc);
81
67
 
82
68
  outline: 0;
@@ -89,7 +75,8 @@
89
75
  --input--bgc: var(--black-075);
90
76
  --input--fc: var(--black-400);
91
77
 
92
- &:focus {
78
+ &:focus,
79
+ &:focus-within {
93
80
  box-shadow: none !important;
94
81
  }
95
82
 
@@ -107,57 +94,54 @@
107
94
  // $$ INPUT WRAPPER
108
95
  // ----------------------------------------------------------------------------
109
96
  .d-input__wrapper {
110
- position: relative;
97
+ padding: 0;
98
+
99
+ .d-input-icon.d-input-icon--right {
100
+ margin-right: var(--su8);
101
+ }
102
+
103
+ .d-input-icon.d-input-icon--left {
104
+ margin-left: var(--su8);
105
+ }
106
+
107
+ .d-input,
108
+ .d-textarea {
109
+ flex: 1;
110
+ border: none;
111
+ border-radius: var(--base--corner-radius);
112
+
113
+ &:focus {
114
+ border: none;
115
+ outline: 0;
116
+ box-shadow: none !important;
117
+ }
118
+
119
+ &.d-input-icon--right {
120
+ padding-right: var(--su6);
121
+ }
122
+
123
+ &.d-input-icon--left {
124
+ padding-left: var(--su6);
125
+ }
126
+ }
111
127
  }
112
128
 
113
129
  // $$ SIZES
114
130
  // ----------------------------------------------------------------------------
115
131
  .d-input.d-input--xs {
116
132
  .input-button-xs();
117
-
118
- &.d-input-icon--right {
119
- padding-right: @inputs-icon-spacing--xs;
120
- }
121
-
122
- &.d-input-icon--left {
123
- padding-left: @inputs-icon-spacing--xs;
124
- }
125
133
  }
126
134
 
127
135
  .d-input.d-input--sm {
128
136
  .input-button-sm();
129
-
130
- &.d-input-icon--right {
131
- padding-right: @inputs-icon-spacing--sm;
132
- }
133
-
134
- &.d-input-icon--left {
135
- padding-left: @inputs-icon-spacing--sm;
136
- }
137
137
  }
138
138
 
139
139
  .d-input.d-input--lg {
140
140
  .input-button-lg();
141
-
142
- &.d-input-icon--right {
143
- padding-right: @inputs-icon-spacing--lg;
144
- }
145
-
146
- &.d-input-icon--left {
147
- padding-left: @inputs-icon-spacing--lg;
148
- }
149
141
  }
150
142
 
151
143
  .d-input.d-input--xl {
152
144
  .input-button-xl();
153
-
154
- &.d-input-icon--right {
155
- padding-right: @inputs-icon-spacing--xl;
156
- }
157
-
158
- &.d-input-icon--left {
159
- padding-left: @inputs-icon-spacing--xl;
160
- }
161
145
  }
162
146
 
163
147
 
@@ -175,56 +159,24 @@
175
159
  .input-button-xs();
176
160
 
177
161
  min-height: 4rem;
178
-
179
- &.d-input-icon--right {
180
- padding-right: @inputs-icon-spacing--xs;
181
- }
182
-
183
- &.d-input-icon--left {
184
- padding-left: @inputs-icon-spacing--xs;
185
- }
186
162
  }
187
163
 
188
164
  .d-textarea--sm {
189
165
  .input-button-sm();
190
166
 
191
167
  min-height: 4.8rem;
192
-
193
- &.d-input-icon--right {
194
- padding-right: @inputs-icon-spacing--sm;
195
- }
196
-
197
- &.d-input-icon--left {
198
- padding-left: @inputs-icon-spacing--sm;
199
- }
200
168
  }
201
169
 
202
170
  .d-textarea--lg {
203
171
  .input-button-lg();
204
172
 
205
173
  min-height: 9.2rem;
206
-
207
- &.d-input-icon--right {
208
- padding-right: @inputs-icon-spacing--lg;
209
- }
210
-
211
- &.d-input-icon--left {
212
- padding-left: @inputs-icon-spacing--lg;
213
- }
214
174
  }
215
175
 
216
176
  .d-textarea--xl {
217
177
  .input-button-xl();
218
178
 
219
179
  min-height: 10rem;
220
-
221
- &.d-input-icon--right {
222
- padding-right: @inputs-icon-spacing--xl;
223
- }
224
-
225
- &.d-input-icon--left {
226
- padding-left: @inputs-icon-spacing--xl;
227
- }
228
180
  }
229
181
 
230
182
  // $$ VALIDATION STATES
@@ -267,7 +219,6 @@
267
219
  // ------------------------------------------------------------------------
268
220
  --input-icon-size: @icon16;
269
221
 
270
- position: absolute;
271
222
  z-index: var(--zi-base1);
272
223
  display: inline-flex;
273
224
  align-items: center;
@@ -279,24 +230,6 @@
279
230
  width: var(--input-icon-size);
280
231
  height: var(--input-icon-size);
281
232
  }
282
-
283
- &.d-input-icon--left {
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
- }
290
- }
291
-
292
- &.d-input-icon--right {
293
- right: var(--su8);
294
-
295
- // Update padding for d-input if d-input-icon--right is present
296
- & ~ .d-input {
297
- padding-right: @inputs-icon-spacing;
298
- }
299
- }
300
233
  }
301
234
 
302
235
 
@@ -309,19 +242,6 @@
309
242
 
310
243
  .d-input-icon--xs {
311
244
  --input-icon-size: @icon12;
312
-
313
- // For backwards compatibility purposes only.
314
- // Update padding for d-input, d-textarea if d-input-icon--left is present
315
- &.d-input-icon--left ~ .d-input,
316
- &.d-input-icon--left ~ .d-textarea {
317
- padding-left: @inputs-icon-spacing--xs;
318
- }
319
-
320
- // For backwards compatibility purposes only.
321
- // Update padding for d-input if d-input-icon--right is present
322
- &.d-input-icon--right ~ .d-input {
323
- padding-right: @inputs-icon-spacing--xs;
324
- }
325
245
  }
326
246
 
327
247
  .d-input-icon.d-input--sm {
@@ -330,19 +250,6 @@
330
250
 
331
251
  .d-input-icon--sm {
332
252
  --input-icon-size: @icon14;
333
-
334
- // For backwards compatibility purposes only.
335
- // Update padding for d-input, d-textarea if d-input-icon--left is present
336
- &.d-input-icon--left ~ .d-input,
337
- &.d-input-icon--left ~ .d-textarea {
338
- padding-left: @inputs-icon-spacing--sm;
339
- }
340
-
341
- // For backwards compatibility purposes only.
342
- // Update padding for d-input if d-input-icon--right is present
343
- &.d-input-icon--right ~ .d-input {
344
- padding-right: @inputs-icon-spacing--sm;
345
- }
346
253
  }
347
254
 
348
255
  .d-input-icon.d-input--lg {
@@ -351,19 +258,6 @@
351
258
 
352
259
  .d-input-icon--lg {
353
260
  --input-icon-size: @icon20;
354
-
355
- // For backwards compatibility purposes only.
356
- // Update padding for d-input, d-textarea if d-input-icon--left is present
357
- &.d-input-icon--left ~ .d-input,
358
- &.d-input-icon--left ~ .d-textarea {
359
- padding-left: @inputs-icon-spacing--lg;
360
- }
361
-
362
- // For backwards compatibility purposes only.
363
- // Update padding for d-input if d-input-icon--right is present
364
- &.d-input-icon--right ~ .d-input {
365
- padding-right: @inputs-icon-spacing--lg;
366
- }
367
261
  }
368
262
 
369
263
  .d-input-icon.d-input--xl {
@@ -372,17 +266,4 @@
372
266
 
373
267
  .d-input-icon--xl {
374
268
  --input-icon-size: @icon24;
375
-
376
- // For backwards compatibility purposes only.
377
- // Update padding for d-input, d-textarea if d-input-icon--left is present
378
- &.d-input-icon--left ~ .d-input,
379
- &.d-input-icon--left ~ .d-textarea {
380
- padding-left: @inputs-icon-spacing--xl;
381
- }
382
-
383
- // For backwards compatibility purposes only.
384
- // Update padding for d-input if d-input-icon--right is present
385
- &.d-input-icon--right ~ .d-input {
386
- padding-right: @inputs-icon-spacing--xl;
387
- }
388
269
  }
@@ -27,7 +27,7 @@
27
27
  .d-modal {
28
28
  // Component CSS Vars
29
29
  // ------------------------------------------------------------------------
30
- --modal--bgc: hsla(var(--black-900-hsl) ~' / ' 85%);
30
+ --modal--bgc: hsla(var(--black-900-hsl) ~' / ' 60%);
31
31
  --modal-dialog--bgc: var(--white);
32
32
  --modal-dialog--fc: var(--black-700);
33
33
  --modal-header--fc: var(--black-800);
@@ -240,7 +240,7 @@
240
240
  // $$ DANGER
241
241
  // ----------------------------------------------------------------------------
242
242
  .d-modal--danger {
243
- --modal-header--fc: var(--fc-error);
243
+ --modal-header--fc: var(--fc-dark);
244
244
  }
245
245
 
246
246
 
@@ -1,4 +1,3 @@
1
1
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="3" y="3" width="18" height="18" rx="2" />
3
- <path d="M9.01818 7.68L10.5455 6L16 12L10.5455 18L9.01818 16.32L11.8545 13.2H3V10.8H11.8545L9.01818 7.68Z" fill="#E5E5E5"/>
2
+ <path d="M5 3h14s2 0 2 2v14s0 2 -2 2h-14s-2 0 -2 -2v-14s0 -2 2 -2 M9.01818 7.68L10.5455 6L16 12L10.5455 18L9.01818 16.32L11.8545 13.2H3V10.8H11.8545L9.01818 7.68Z" fill="black" fill-rule="evenodd"/>
4
3
  </svg>
@@ -1,3 +1,3 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ <svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M19.1111 3.22222L20 2.33333C18.4444 0.777778 16.4444 0 14.4444 0C12.4444 0 10.4444 0.777778 8.88889 2.33333L9.77778 3.22222C11.1111 2 12.7778 1.33333 14.4444 1.33333C16.1111 1.33333 17.7778 2 19.1111 3.22222ZM18.1111 4.11111C17.1111 3.11111 15.7778 2.55556 14.4444 2.55556C13.1111 2.55556 11.7778 3.11111 10.7778 4.11111L11.6667 5C12.4444 4.22222 13.4444 3.88889 14.4444 3.88889C15.4444 3.88889 16.4444 4.22222 17.2222 5L18.1111 4.11111ZM17.7778 11.1111H15.5556V6.66667H13.3333V11.1111H2.22222C1 11.1111 0 12.1111 0 13.3333V17.7778C0 19 1 20 2.22222 20H17.7778C19 20 20 19 20 17.7778V13.3333C20 12.1111 19 11.1111 17.7778 11.1111ZM5.55556 16.6667H3.33333V14.4444H5.55556V16.6667ZM9.44444 16.6667H7.22222V14.4444H9.44444V16.6667ZM13.3333 16.6667H11.1111V14.4444H13.3333V16.6667Z" fill="#0D0C0F"/>
3
- </svg>
3
+ </svg>