@dialpad/dialtone 6.6.0 → 6.8.1

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/lib/build/less/components/avatar.less +68 -56
  3. package/lib/build/less/components/badge.less +39 -28
  4. package/lib/build/less/components/banner.less +33 -36
  5. package/lib/build/less/components/breadcrumbs.less +7 -8
  6. package/lib/build/less/components/button.less +53 -56
  7. package/lib/build/less/components/forms.less +24 -28
  8. package/lib/build/less/components/input.less +69 -42
  9. package/lib/build/less/components/link.less +12 -15
  10. package/lib/build/less/components/list-group.less +5 -5
  11. package/lib/build/less/components/modal.less +39 -49
  12. package/lib/build/less/components/notice.less +27 -29
  13. package/lib/build/less/components/radio-checkbox.less +73 -66
  14. package/lib/build/less/components/selects.less +27 -23
  15. package/lib/build/less/components/table.less +14 -17
  16. package/lib/build/less/components/tabs.less +30 -31
  17. package/lib/build/less/components/toast.less +39 -40
  18. package/lib/build/less/components/tooltip.less +21 -22
  19. package/lib/build/less/dialtone-globals.less +11 -3
  20. package/lib/build/less/dialtone-reset.less +11 -11
  21. package/lib/build/less/dialtone-variables.less +8 -8
  22. package/lib/build/less/dialtone.less +37 -35
  23. package/lib/build/less/themes/default.less +9 -9
  24. package/lib/build/less/themes/example.less +4 -4
  25. package/lib/build/less/utilities/backgrounds.less +89 -86
  26. package/lib/build/less/utilities/borders.less +101 -87
  27. package/lib/build/less/utilities/colors.less +91 -80
  28. package/lib/build/less/utilities/effects.less +83 -63
  29. package/lib/build/less/utilities/flex.less +107 -107
  30. package/lib/build/less/utilities/grid.less +146 -146
  31. package/lib/build/less/utilities/interactivity.less +27 -27
  32. package/lib/build/less/utilities/internals.less +46 -46
  33. package/lib/build/less/utilities/layout.less +82 -81
  34. package/lib/build/less/utilities/responsive.less +6 -6
  35. package/lib/build/less/utilities/sizing.less +97 -97
  36. package/lib/build/less/utilities/spacing.less +26 -26
  37. package/lib/build/less/utilities/svg.less +9 -1
  38. package/lib/build/less/utilities/typography.less +122 -111
  39. package/lib/build/less/variables/colors.less +8 -8
  40. package/lib/build/less/variables/sizes.less +8 -8
  41. package/lib/build/less/variables/spacing.less +1 -1
  42. package/lib/build/less/variables/typography.less +8 -9
  43. package/lib/build/less/variables/visual-styles.less +27 -27
  44. package/lib/build/svg/brand/play-store-badge.svg +63 -1
  45. package/lib/build/svg/spot/browser-list-callout.svg +57 -0
  46. package/lib/build/svg/spot/browser-table-graph.svg +111 -0
  47. package/lib/build/svg/system/raise-hand.svg +1 -1
  48. package/lib/build/svg/system/thumb-down.svg +3 -0
  49. package/lib/build/svg/system/thumb-up.svg +3 -0
  50. package/lib/dist/css/dialtone.css +134 -128
  51. package/lib/dist/css/dialtone.min.css +1 -1
  52. package/lib/dist/svg/brand/play-store-badge.svg +1 -1
  53. package/lib/dist/svg/spot/browser-list-callout.svg +1 -0
  54. package/lib/dist/svg/spot/browser-table-graph.svg +1 -0
  55. package/lib/dist/svg/system/raise-hand.svg +1 -1
  56. package/lib/dist/svg/system/thumb-down.svg +1 -0
  57. package/lib/dist/svg/system/thumb-up.svg +1 -0
  58. package/lib/dist/vue/icons/IconPlayStoreBadge.vue +1 -1
  59. package/lib/dist/vue/icons/IconRaiseHand.vue +1 -1
  60. package/lib/dist/vue/icons/IconThumbDown.vue +3 -0
  61. package/lib/dist/vue/icons/IconThumbUp.vue +3 -0
  62. package/lib/dist/vue/spot/SpotBrowserListCallout.vue +3 -0
  63. package/lib/dist/vue/spot/SpotBrowserTableGraph.vue +3 -0
  64. package/package.json +17 -3
@@ -1,4 +1,4 @@
1
- @import (reference) "../variables/icons.less";
1
+ @import (reference) '../variables/icons.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -20,37 +20,32 @@
20
20
  .d-btn {
21
21
  // Component specific CSS Vars
22
22
  // ------------------------------------------------------------------------
23
- --button--fc: var(--primary-color);
24
- --button--bgc: transparent;
25
- --button--bc: transparent;
26
- --button--br: var(--base--corner-radius);
27
-
28
- box-sizing: border-box;
23
+ --button--fc: var(--primary-color);
24
+ --button--bgc: transparent;
25
+ --button--bc: transparent;
26
+ --button--br: var(--base--corner-radius);
29
27
 
30
28
  position: relative;
31
29
  display: inline-flex;
32
- justify-content: center;
33
30
  align-items: center;
31
+ justify-content: center;
32
+ box-sizing: border-box;
34
33
  padding: calc(var(--su8) - var(--su1)); // Subtract border
34
+ color: var(--button--fc);
35
+ font-size: var(--fs16);
36
+ font-family: inherit;
37
+ line-height: var(--lh4);
38
+ text-transform: inherit;
39
+ text-decoration: none;
35
40
  vertical-align: middle;
36
-
41
+ background-color: var(--button--bgc);
37
42
  border: 0.1rem solid var(--button--bc);
38
43
  border-radius: var(--button--br);
39
- background-color: var(--button--bgc);
40
44
  box-shadow: var(--button--bs);
41
-
42
- text-decoration: none;
43
- text-transform: inherit;
44
- font-family: inherit;
45
- font-size: var(--fs16);
46
- line-height: var(--lh4);
47
- color: var(--button--fc);
48
-
49
45
  cursor: pointer;
50
46
  transition-timing-function: var(--ttf-in-out);
51
47
  transition-duration: 75ms;
52
48
  transition-property: background-color, border, box-shadow;
53
-
54
49
  user-select: none;
55
50
  fill: currentColor;
56
51
 
@@ -60,7 +55,7 @@
60
55
  &:active,
61
56
  &:hover {
62
57
  --button--fc: var(--primary-color-hover);
63
- --button--bgc: hsla(var(--primary-color-hsl) ~" / " 10%);
58
+ --button--bgc: hsla(var(--primary-color-hsl) ~' / ' 10%);
64
59
  }
65
60
 
66
61
  &:focus {
@@ -71,8 +66,8 @@
71
66
  &[disabled] {
72
67
  color: var(--black-400);
73
68
  background-color: var(--black-100);
74
- cursor: not-allowed;
75
69
  border-color: transparent;
70
+ cursor: not-allowed;
76
71
  transition: none;
77
72
  }
78
73
 
@@ -140,8 +135,8 @@
140
135
  // ----------------------------------------------------------------------------
141
136
  .d-btn__label {
142
137
  display: inline-flex;
143
- justify-content: center;
144
138
  align-items: center;
139
+ justify-content: center;
145
140
  }
146
141
 
147
142
  // ============================================================================
@@ -210,7 +205,7 @@
210
205
  }
211
206
 
212
207
  &.d-btn--outlined {
213
- --button--bc: var(--black-700);
208
+ --button--bc: var(--black-700);
214
209
  }
215
210
 
216
211
  // &:active {
@@ -221,29 +216,33 @@
221
216
  // Adjust padding based on sizes
222
217
  &.d-btn--xs {
223
218
  padding: calc(var(--su8) - var(--su1));
224
- --button--br: var(--br-circle);
219
+
220
+ --button--br: var(--br-circle);
225
221
  }
226
222
 
227
223
  &.d-btn--sm {
228
224
  padding: var(--su8);
229
- --button--br: var(--br-circle);
225
+
226
+ --button--br: var(--br-circle);
230
227
  }
231
228
 
232
229
  &.d-btn--lg {
233
230
  padding: calc(var(--su12) + var(--su1));
234
- --button--br: var(--br-circle);
231
+
232
+ --button--br: var(--br-circle);
235
233
  }
236
234
 
237
235
  &.d-btn--xl {
238
236
  padding: calc(var(--su16) - var(--su1));
239
- --button--br: var(--br-circle);
237
+
238
+ --button--br: var(--br-circle);
240
239
  }
241
240
  }
242
241
 
243
242
  // $$ OUTLINED BUTTON
244
243
  // ----------------------------------------------------------------------------
245
244
  .d-btn--outlined {
246
- --button--bc: var(--primary-color);
245
+ --button--bc: var(--primary-color);
247
246
  }
248
247
 
249
248
  // $$ PRIMARY BUTTON
@@ -265,7 +264,7 @@
265
264
 
266
265
  &:hover {
267
266
  --button--fc: var(--black-800);
268
- --button--bgc: hsla(var(--muted-color-hsl) ~" / " 10%);
267
+ --button--bgc: hsla(var(--muted-color-hsl) ~' / ' 10%);
269
268
  }
270
269
 
271
270
  &:focus {
@@ -283,7 +282,7 @@
283
282
  --button--fc: var(--error-color);
284
283
 
285
284
  &:hover {
286
- --button--bgc: hsla(var(--error-color-hsl) ~" / " 10%);
285
+ --button--bgc: hsla(var(--error-color-hsl) ~' / ' 10%);
287
286
  --button--fc: var(--error-color-hover);
288
287
  }
289
288
 
@@ -315,7 +314,7 @@
315
314
 
316
315
  &:hover {
317
316
  --button--fc: var(--white);
318
- --button--bgc: hsla(var(--white-hsl) ~" / " 15%);
317
+ --button--bgc: hsla(var(--white-hsl) ~' / ' 15%);
319
318
  }
320
319
 
321
320
  &:focus {
@@ -334,7 +333,7 @@
334
333
 
335
334
  &:hover {
336
335
  --button--fc: var(--primary-color-hover);
337
- --button--bgc: hsla(var(--white-hsl) ~" / " 90%);
336
+ --button--bgc: hsla(var(--white-hsl) ~' / ' 90%);
338
337
  }
339
338
  }
340
339
  }
@@ -348,30 +347,30 @@
348
347
  // $$ DISABLED STATE
349
348
  // ----------------------------------------------------------------------------
350
349
  .d-btn--disabled {
351
- pointer-events: none;
352
350
  color: var(--black-400);
353
351
  background-color: var(--black-100);
354
- cursor: not-allowed;
355
352
  border-color: transparent;
353
+ cursor: not-allowed;
356
354
  transition: none;
355
+ pointer-events: none;
357
356
  }
358
357
 
359
358
  // $$ BRAND BUTTONS
360
359
  // ----------------------------------------------------------------------------
361
360
  .d-btn--brand {
362
361
  display: flex;
363
- background-color: hsl(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l));
364
362
  color: var(--white);
363
+ background-color: hsl(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l));
365
364
 
366
365
  &:hover,
367
366
  &:focus,
368
367
  &:active {
368
+ color: hsla(var(--white-hsl) ~' / ' 90%);
369
369
  background-color: hsl(var(--brand-color-h) calc(var(--brand-color-s) + 2.5%) calc(var(--brand-color-l) - 5%));
370
- color: hsla(var(--white-hsl) ~" / " 90%);
371
370
  }
372
371
 
373
372
  &:focus {
374
- box-shadow: 0 0 0 var(--su1) var(--white), 0 0 0 0.25em hsla(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l) ~" / " 90%);
373
+ box-shadow: 0 0 0 var(--su1) var(--white), 0 0 0 0.25em hsla(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l) ~' / ' 90%);
375
374
  }
376
375
 
377
376
  &:active {
@@ -379,14 +378,14 @@
379
378
  }
380
379
 
381
380
  .d-btn__icon {
382
- margin-right: var(--su8);
383
- margin-left: var(--sun4);
381
+ align-items: center;
382
+ justify-content: center;
384
383
  width: 2em;
385
384
  height: 2em;
386
- border-radius: var(--br2);
385
+ margin-right: var(--su8);
386
+ margin-left: var(--sun4);
387
387
  background-color: var(--white);
388
- justify-content: center;
389
- align-items: center
388
+ border-radius: var(--br2);
390
389
  }
391
390
 
392
391
  .d-btn__label {
@@ -396,21 +395,21 @@
396
395
 
397
396
  // -- GOOGLE
398
397
  .d-btn--google {
399
- --brand-color-h: 217;
400
- --brand-color-s: 89%;
401
- --brand-color-l: 61%;
398
+ --brand-color-h: 217;
399
+ --brand-color-s: 89%;
400
+ --brand-color-l: 61%;
402
401
  }
403
402
  // -- OFFICE 365
404
403
  .d-btn--o365 {
405
- --brand-color-h: 15;
406
- --brand-color-s: 99%;
407
- --brand-color-l: 46%;
404
+ --brand-color-h: 15;
405
+ --brand-color-s: 99%;
406
+ --brand-color-l: 46%;
408
407
  }
409
408
  // -- LINKEDIN
410
409
  .d-btn--linkedin {
411
- --brand-color-h: 197;
412
- --brand-color-s: 100%;
413
- --brand-color-l: 26%;
410
+ --brand-color-h: 197;
411
+ --brand-color-s: 100%;
412
+ --brand-color-l: 26%;
414
413
  }
415
414
 
416
415
  // ============================================================================
@@ -431,18 +430,16 @@
431
430
  }
432
431
 
433
432
  // Show the loading animation
434
- &:before {
435
- content: "";
433
+ &::before {
436
434
  position: absolute;
437
435
  top: calc(50% - var(--su8));
438
436
  left: calc(50% - var(--su8));
439
-
440
437
  width: var(--su16);
441
438
  height: var(--su16);
442
- border-radius: var(--br-circle);
443
439
  border: var(--su2) solid currentColor;
444
440
  border-left-color: transparent !important;
445
-
441
+ border-radius: var(--br-circle);
446
442
  animation: d-loading-circle 900ms infinite linear;
443
+ content: '';
447
444
  }
448
445
  }
@@ -1,4 +1,4 @@
1
- @import (reference) "../variables/typography.less";
1
+ @import (reference) '../variables/typography.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -21,8 +21,8 @@
21
21
  // $ FIELDSETS
22
22
  // ----------------------------------------------------------------------------
23
23
  fieldset {
24
- padding: var(--su0);
25
24
  min-width: var(--su0);
25
+ padding: var(--su0);
26
26
  border: none;
27
27
  }
28
28
 
@@ -31,24 +31,20 @@ fieldset {
31
31
  // $ LABELS
32
32
  // ----------------------------------------------------------------------------
33
33
  .d-label {
34
- box-sizing: border-box;
35
-
36
34
  display: flex;
37
35
  flex: 1 0%;
38
36
  align-items: baseline;
39
37
  justify-content: space-between;
40
-
38
+ box-sizing: border-box;
41
39
  margin-bottom: var(--su6);
42
-
40
+ color: currentColor;
43
41
  font-weight: @fw-bold;
44
42
  font-size: var(--fs16);
45
43
  font-family: inherit;
46
44
  line-height: var(--lh4);
47
- color: currentColor;
48
-
49
- cursor: pointer;
50
45
  word-break: break-word;
51
46
  overflow-wrap: break-word;
47
+ cursor: pointer;
52
48
 
53
49
  legend & { cursor: default; }
54
50
  }
@@ -56,19 +52,22 @@ fieldset {
56
52
  // $$ SIZES
57
53
  // ----------------------------------------------------------------------------
58
54
  .d-label--xs {
59
- font-size: var(--fs12);
55
+ font-size: var(--fs12);
60
56
  line-height: var(--lh4);
61
57
  }
58
+
62
59
  .d-label--sm {
63
- font-size: var(--fs14);
60
+ font-size: var(--fs14);
64
61
  line-height: var(--lh2);
65
62
  }
63
+
66
64
  .d-label--lg {
67
- font-size: var(--fs18);
65
+ font-size: var(--fs18);
68
66
  line-height: var(--lh2);
69
67
  }
68
+
70
69
  .d-label--xl {
71
- font-size: var(--fs20);
70
+ font-size: var(--fs20);
72
71
  line-height: var(--lh4);
73
72
  }
74
73
 
@@ -77,16 +76,14 @@ fieldset {
77
76
  // $ DESCRIPTIONS
78
77
  // ----------------------------------------------------------------------------
79
78
  .d-description {
80
- box-sizing: border-box;
81
-
82
79
  display: flex;
80
+ box-sizing: border-box;
83
81
  margin-bottom: var(--su6);
84
-
85
82
  color: var(--black-500);
86
- fill: currentColor;
87
83
  font-size: var(--fs12);
88
84
  font-family: inherit;
89
85
  line-height: var(--lh4);
86
+ fill: currentColor;
90
87
  }
91
88
 
92
89
  .d-label + .d-description {
@@ -96,12 +93,12 @@ fieldset {
96
93
  // $$ SIZES
97
94
  // ----------------------------------------------------------------------------
98
95
  .d-description--lg {
99
- font-size: var(--fs14);
96
+ font-size: var(--fs14);
100
97
  line-height: var(--lh6);
101
98
  }
102
99
 
103
100
  .d-description--xl {
104
- font-size: var(--fs16);
101
+ font-size: var(--fs16);
105
102
  line-height: var(--lh6);
106
103
  }
107
104
 
@@ -109,32 +106,31 @@ fieldset {
109
106
  // $ VALIDATION MESSAGES
110
107
  // ----------------------------------------------------------------------------
111
108
  .d-validation-message {
112
- --validation--fc: var(--fc-light);
109
+ --validation--fc: var(--fc-light);
113
110
 
114
111
  display: inline-flex;
115
112
  align-items: flex-start;
116
113
  margin-top: var(--su6);
117
-
114
+ color: var(--validation--fc);
115
+ font-weight: inherit;
118
116
  font-size: var(--fs12);
119
117
  font-family: inherit;
120
- font-weight: inherit;
121
118
  line-height: var(--lh4);
122
- color: var(--validation--fc);
123
119
 
124
120
  // Icon Slot
125
121
  &::before {
126
- content: '';
127
- height: var(--su16);
128
122
  width: var(--su16);
129
123
  min-width: var(--su16);
124
+ height: var(--su16);
130
125
  margin-right: var(--su4);
126
+ content: '';
131
127
  }
132
128
  }
133
129
 
134
130
  // $$ VALIDATION STATES
135
131
  // ----------------------------------------------------------------------------
136
132
  .d-validation-message--warning {
137
- --validation--fc: var(--fc-warning);
133
+ --validation--fc: var(--fc-warning);
138
134
 
139
135
  &::before {
140
136
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z' fill='hsl(43 100% 33%)'/%3E%3C/svg%3E");
@@ -143,7 +139,7 @@ fieldset {
143
139
  }
144
140
 
145
141
  .d-validation-message--error {
146
- --validation--fc: var(--fc-error);
142
+ --validation--fc: var(--fc-error);
147
143
 
148
144
  &::before {
149
145
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z' fill='hsl(0 100% 29%)'/%3E%3C/svg%3E");
@@ -152,7 +148,7 @@ fieldset {
152
148
  }
153
149
 
154
150
  .d-validation-message--success {
155
- --validation--fc: var(--fc-success);
151
+ --validation--fc: var(--fc-success);
156
152
 
157
153
  &::before {
158
154
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' fill='hsl(115 94% 18%)'/%3E%3C/svg%3E");