@dialpad/dialtone-css 8.67.0 → 8.68.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.
@@ -592,7 +592,7 @@
592
592
 
593
593
  &:hover:not([disabled]),
594
594
  &:active:not([disabled]) {
595
- --button-color-text: hsla(var(--dt-color-neutral-white-hsl) ~" / " 90%);
595
+ --button-color-text: hsl(var(--dt-color-neutral-white-hsl) ~" / " 90%);
596
596
  --button-color-background: hsl(
597
597
  var(--brand-color-h) calc(var(--brand-color-s) + 2.5%)
598
598
  calc(var(--brand-color-l) - 5%)
@@ -603,7 +603,7 @@
603
603
  box-shadow:
604
604
  0 0 0 var(--dt-space-100) var(--dt-color-neutral-white),
605
605
  0 0 0 0.25em
606
- hsla(
606
+ hsl(
607
607
  var(--brand-color-h) var(--brand-color-s) var(--brand-color-l) ~" / " 90%
608
608
  );
609
609
  }
@@ -39,7 +39,6 @@ fieldset {
39
39
  margin-bottom: var(--dt-space-300);
40
40
  color: var(--dt-color-foreground-secondary);
41
41
  font: var(--dt-typography-label-md);
42
- word-break: break-word;
43
42
  overflow-wrap: break-word;
44
43
 
45
44
  legend & { cursor: default; }
@@ -31,5 +31,5 @@
31
31
  .d-image-viewer__close-button {
32
32
  --fco: 100%;
33
33
 
34
- color: hsla(var(--dt-color-neutral-white-h) var(--dt-color-neutral-white-s) var(--dt-color-neutral-white-l) / var(--fco));
34
+ color: hsl(var(--dt-color-neutral-white-h) var(--dt-color-neutral-white-s) var(--dt-color-neutral-white-l) / var(--fco));
35
35
  }
@@ -38,7 +38,6 @@
38
38
  height: 1px;
39
39
  overflow: hidden;
40
40
  white-space: nowrap;
41
- clip: rect(0 0 0 0);
42
41
  clip-path: inset(50%);
43
42
  }
44
43
 
@@ -33,7 +33,7 @@
33
33
 
34
34
  &:hover {
35
35
  color: var(--dt-color-foreground-primary);
36
- background-color: hsla(var(--dt-color-purple-400-hsl) ~' / ' 85%);
36
+ background-color: hsl(var(--dt-color-purple-400-hsl) ~' / ' 85%);
37
37
  }
38
38
 
39
39
  &-selected {
@@ -15,7 +15,7 @@
15
15
  .d-pagination {
16
16
  display: flex;
17
17
  flex-direction: row;
18
- grid-gap: var(--dt-space-300);
18
+ gap: var(--dt-space-300);
19
19
  align-items: center;
20
20
  }
21
21
 
@@ -121,7 +121,6 @@
121
121
  font-size: var(--dt-font-size-200);
122
122
  font-family: inherit;
123
123
  line-height: var(--dt-font-line-height-300);
124
- word-break: break-word;
125
124
  overflow-wrap: break-word;
126
125
  }
127
126
  }
@@ -73,6 +73,7 @@
73
73
  .d-mention-suggestion__container {
74
74
  width: 100%;
75
75
  }
76
+
76
77
  .d-mention-suggestion__details-container {
77
78
  width: 90%;
78
79
  }
@@ -83,11 +84,11 @@
83
84
  }
84
85
 
85
86
  .d-mention-suggestion__status {
87
+ margin-left: var(--dt-space-100);
86
88
  overflow: hidden;
89
+ color: var(--dt-color-foreground-tertiary);
87
90
  white-space: nowrap;
88
91
  text-overflow: ellipsis;
89
- color: var(--dt-color-foreground-tertiary);
90
- margin-left: var(--dt-space-100);
91
92
  }
92
93
 
93
94
  .d-mention-suggestion__divider {
@@ -112,7 +112,7 @@
112
112
  &.d-table--inverted {
113
113
  // Row Styles
114
114
  tr:nth-child(even) {
115
- background-color: hsla(var(--bgc-primary-hsl) / 0.1);
115
+ background-color: hsl(var(--bgc-primary-hsl) / 0.1);
116
116
  }
117
117
  }
118
118
  }
@@ -126,7 +126,7 @@
126
126
  .d-toast-alternate {
127
127
  // Component CSS Vars
128
128
  // ------------------------------------------------------------------------
129
- --toast-alternate-color-shadow: hsla(var(--dt-color-black-900-hsl) / 0.15);
129
+ --toast-alternate-color-shadow: hsl(var(--dt-color-black-900-hsl) / 0.15);
130
130
  --toast-alternate-box-shadow: 0 0 0 var(--dt-size-0) var(--toast-alternate-color-shadow) inset, var(--dt-shadow-medium);
131
131
  --toast-alternate-color-background: var(--dt-color-surface-primary);
132
132
  --toast-alternate-color-text: var(--dt-color-foreground-primary);
@@ -89,6 +89,7 @@
89
89
  @import 'recipes/ivr_node';
90
90
  @import 'recipes/leftbar_row';
91
91
  @import 'recipes/message_input';
92
+ @import 'recipes/motion_text';
92
93
  @import 'recipes/settings_menu_button';
93
94
  @import 'recipes/time_pill';
94
95
  @import 'recipes/top_banner_info';
@@ -0,0 +1,277 @@
1
+ //
2
+ // DIALTONE
3
+ // RECIPES: MOTION TEXT
4
+ //
5
+ // TABLE OF CONTENTS
6
+ // • CSS CUSTOM PROPERTIES
7
+ // • BASE STYLE
8
+ // • CHILD ELEMENTS
9
+ // • ANIMATION KEYFRAMES
10
+ // • TRANSITION CLASSES - GRADIENT IN
11
+ // • TRANSITION CLASSES - FADE IN
12
+ // • TRANSITION CLASSES - SLIDE IN
13
+ // • GRADIENT SWEEP & SHIMMER
14
+ // • MODIFIERS
15
+ // • ACCESSIBILITY
16
+ //
17
+ // ============================================================================
18
+ // $ CSS CUSTOM PROPERTIES
19
+ // ----------------------------------------------------------------------------
20
+ @property --dt-recipe-motion-text-mask-pos {
21
+ inherits: true;
22
+ initial-value: 0%;
23
+ syntax: '<percentage>';
24
+ }
25
+
26
+ // ============================================================================
27
+ // $ BASE STYLE
28
+ // ----------------------------------------------------------------------------
29
+ .dt-recipe-motion-text {
30
+ /* Theme variables - can be overridden by design system */
31
+ --dt-recipe-motion-text-duration: 1000ms;
32
+ --dt-recipe-motion-text-char-duration: var(--dt-recipe-motion-text-duration);
33
+ --dt-recipe-motion-text-word-duration: calc(var(--dt-recipe-motion-text-duration) * 2);
34
+ --dt-recipe-motion-text-highlight-color: linear-gradient(135deg, var(--dt-color-brand-magenta) 10%, var(--dt-color-brand-purple) 80%, var(--dt-color-brand-gold) 100%);
35
+ --dt-recipe-motion-text-gradient: linear-gradient(
36
+ 90deg,
37
+ transparent 0%,
38
+ transparent 20%,
39
+ black 40%,
40
+ black 60%,
41
+ transparent 80%,
42
+ transparent 100%
43
+ ) 0% 0% / 500% 100%;
44
+ --dt-recipe-motion-text-shimmer-gradient: linear-gradient(
45
+ 90deg,
46
+ black 0%,
47
+ black 20%,
48
+ #0005 40%,
49
+ #0005 60%,
50
+ black 80%,
51
+ black 100%
52
+ ) 0% 0% / 500% 100%;
53
+
54
+ position: relative;
55
+ }
56
+
57
+ // ============================================================================
58
+ // $ CHILD ELEMENTS
59
+ // ----------------------------------------------------------------------------
60
+ .dt-recipe-motion-text__sr-only {
61
+ position: absolute;
62
+ width: 1px;
63
+ height: 1px;
64
+ overflow: hidden;
65
+ white-space: nowrap;
66
+ clip-path: inset(50%);
67
+ }
68
+
69
+ .dt-recipe-motion-text__content {
70
+ display: contents;
71
+ }
72
+
73
+ .dt-recipe-motion-text__fallback {
74
+ display: contents;
75
+ }
76
+
77
+ .dt-recipe-motion-text__char {
78
+ display: inline-block;
79
+ white-space: pre;
80
+ }
81
+
82
+ .dt-recipe-motion-text__word {
83
+ position: relative;
84
+ display: inline;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ // ============================================================================
89
+ // $ ANIMATION KEYFRAMES
90
+ // ----------------------------------------------------------------------------
91
+
92
+ // Gradient-in mode animations
93
+ @keyframes dt-recipe-motion-text-gradient-in-char-appear {
94
+ from {
95
+ opacity: 0;
96
+ }
97
+
98
+ to {
99
+ opacity: 1;
100
+ }
101
+ }
102
+
103
+ @keyframes dt-recipe-motion-text-gradient-in-word-reveal {
104
+ from {
105
+ --dt-recipe-motion-text-mask-pos: 100%;
106
+ }
107
+
108
+ to {
109
+ --dt-recipe-motion-text-mask-pos: 0%;
110
+ }
111
+ }
112
+
113
+ // Fade-in mode animations
114
+ @keyframes dt-recipe-motion-text-fade-in-char-appear {
115
+ from {
116
+ opacity: 0;
117
+ }
118
+
119
+ to {
120
+ opacity: 1;
121
+ }
122
+ }
123
+
124
+ @keyframes dt-recipe-motion-text-fade-in-word-appear {
125
+ from {
126
+ opacity: 0;
127
+ }
128
+
129
+ to {
130
+ opacity: 1;
131
+ }
132
+ }
133
+
134
+ // Slide-in mode animations
135
+ @keyframes dt-recipe-motion-text-slide-in-char-appear {
136
+ from {
137
+ transform: translateY(0.3em);
138
+ opacity: 0;
139
+ }
140
+
141
+ to {
142
+ transform: translateY(0);
143
+ opacity: 1;
144
+ }
145
+ }
146
+
147
+ @keyframes dt-recipe-motion-text-slide-in-word-appear {
148
+ from {
149
+ transform: translateY(0.5em);
150
+ opacity: 0;
151
+ }
152
+
153
+ to {
154
+ transform: translateY(0);
155
+ opacity: 1;
156
+ }
157
+ }
158
+
159
+ // ============================================================================
160
+ // $ TRANSITION CLASSES - GRADIENT IN
161
+ // ----------------------------------------------------------------------------
162
+ .dt-recipe-motion-text-char-gradient-in-enter-active {
163
+ animation: dt-recipe-motion-text-gradient-in-char-appear var(--dt-recipe-motion-text-char-duration) var(--ttf-in-out);
164
+ }
165
+
166
+ .dt-recipe-motion-text-char-gradient-in-leave-active {
167
+ animation: dt-recipe-motion-text-gradient-in-char-appear calc(var(--dt-recipe-motion-text-char-duration) * 0.5) var(--ttf-out-quint) reverse;
168
+ }
169
+
170
+ .dt-recipe-motion-text-word-gradient-in-enter-active {
171
+ animation: dt-recipe-motion-text-gradient-in-word-reveal calc(var(--dt-recipe-motion-text-word-duration) * 1.5) var(--ttf-out-quint);
172
+ }
173
+
174
+ .dt-recipe-motion-text-word-gradient-in-leave-active {
175
+ animation: dt-recipe-motion-text-gradient-in-word-reveal calc(var(--dt-recipe-motion-text-word-duration) * 0.5) var(--ttf-out-quint) reverse;
176
+ }
177
+
178
+ // ============================================================================
179
+ // $ TRANSITION CLASSES - FADE IN
180
+ // ----------------------------------------------------------------------------
181
+ .dt-recipe-motion-text-char-fade-in-enter-active {
182
+ animation: dt-recipe-motion-text-fade-in-char-appear var(--dt-recipe-motion-text-char-duration) var(--ttf-out-quint);
183
+ }
184
+
185
+ .dt-recipe-motion-text-char-fade-in-leave-active {
186
+ animation: dt-recipe-motion-text-fade-in-char-appear calc(var(--dt-recipe-motion-text-char-duration) * 0.5) var(--ttf-out-quint) reverse;
187
+ }
188
+
189
+ .dt-recipe-motion-text-word-fade-in-enter-active {
190
+ animation: dt-recipe-motion-text-fade-in-word-appear var(--dt-recipe-motion-text-word-duration) var(--ttf-out-quint);
191
+ }
192
+
193
+ .dt-recipe-motion-text-word-fade-in-leave-active {
194
+ animation: dt-recipe-motion-text-fade-in-word-appear calc(var(--dt-recipe-motion-text-word-duration) * 0.5) var(--ttf-out-quint) reverse;
195
+ }
196
+
197
+ // ============================================================================
198
+ // $ TRANSITION CLASSES - SLIDE IN
199
+ // ----------------------------------------------------------------------------
200
+ .dt-recipe-motion-text-char-slide-in-enter-active {
201
+ animation: dt-recipe-motion-text-slide-in-char-appear var(--dt-recipe-motion-text-char-duration) var(--ttf-out-quint);
202
+ }
203
+
204
+ .dt-recipe-motion-text-char-slide-in-leave-active {
205
+ animation: dt-recipe-motion-text-slide-in-char-appear calc(var(--dt-recipe-motion-text-char-duration) * 0.5) var(--ttf-out-quint) reverse;
206
+ }
207
+
208
+ .dt-recipe-motion-text-word-slide-in-enter-active {
209
+ animation: dt-recipe-motion-text-slide-in-word-appear var(--dt-recipe-motion-text-word-duration) var(--ttf-out-quint);
210
+ }
211
+
212
+ .dt-recipe-motion-text-word-slide-in-leave-active {
213
+ animation: dt-recipe-motion-text-slide-in-word-appear calc(var(--dt-recipe-motion-text-word-duration) * 0.5) var(--ttf-out-quint) reverse;
214
+ }
215
+
216
+ // ============================================================================
217
+ // $ GRADIENT SWEEP & SHIMMER
218
+ // ----------------------------------------------------------------------------
219
+ .dt-recipe-motion-text--gradient-sweep,
220
+ .dt-recipe-motion-text--shimmer {
221
+ position: relative;
222
+ display: inline-block;
223
+ animation: dt-recipe-motion-text-gradient-in-word-reveal calc(var(--dt-recipe-motion-text-word-duration) * 1.5) var(--ttf-in-out) 1;
224
+ }
225
+
226
+ .dt-recipe-motion-text--gradient-in .dt-recipe-motion-text__word::before,
227
+ .dt-recipe-motion-text--gradient-sweep::before {
228
+ position: absolute;
229
+ font-size: inherit;
230
+ line-height: inherit;
231
+ letter-spacing: inherit;
232
+ background: var(--dt-recipe-motion-text-highlight-color);
233
+ -webkit-background-clip: text;
234
+ background-clip: text;
235
+ content: attr(data-text-content);
236
+ pointer-events: none;
237
+ -webkit-text-fill-color: transparent;
238
+ mask: var(--dt-recipe-motion-text-gradient);
239
+ mask-position: var(--dt-recipe-motion-text-mask-pos) 0%;
240
+ }
241
+
242
+ .dt-recipe-motion-text--shimmer {
243
+ content: attr(data-text-content);
244
+ mask: var(--dt-recipe-motion-text-shimmer-gradient);
245
+ mask-position: var(--dt-recipe-motion-text-mask-pos) 0%;
246
+ }
247
+
248
+ // ============================================================================
249
+ // $ MODIFIERS
250
+ // ----------------------------------------------------------------------------
251
+ .dt-recipe-motion-text--none .dt-recipe-motion-text__word,
252
+ .dt-recipe-motion-text--none .dt-recipe-motion-text__char {
253
+ transform: none;
254
+ opacity: 1;
255
+ }
256
+
257
+ .dt-recipe-motion-text--paused {
258
+ animation-play-state: paused !important;
259
+ }
260
+
261
+ .dt-recipe-motion-text--looped {
262
+ animation-iteration-count: infinite !important;
263
+ }
264
+
265
+ // ============================================================================
266
+ // $ ACCESSIBILITY
267
+ // ----------------------------------------------------------------------------
268
+ @media (prefers-reduced-motion: reduce) {
269
+ .dt-recipe-motion-text {
270
+ --dt-recipe-motion-text-duration: 0ms;
271
+ --dt-recipe-motion-text-char-duration: 0ms;
272
+ --dt-recipe-motion-text-word-duration: 0ms;
273
+
274
+ transition-duration: 0ms !important;
275
+ animation-duration: 0ms !important;
276
+ }
277
+ }
@@ -19,12 +19,12 @@
19
19
  .d-recipe-settings-menu-button-update {
20
20
  height: var(--dt-size-600);
21
21
  color: var(--dt-color-blue-500);
22
- background-color: hsla(var(--dt-color-blue-200-hsl) / 0.25);
23
- border-color: hsla(var(--dt-color-blue-200-hsl) / 0.25);
22
+ background-color: hsl(var(--dt-color-blue-200-hsl) / 0.25);
23
+ border-color: hsl(var(--dt-color-blue-200-hsl) / 0.25);
24
24
  border-radius: var(--dt-size-radius-pill);
25
25
 
26
26
  &:hover {
27
27
  color: var(--dt-shell-action-color-foreground-primary-hover);
28
- background-color: hsla(var(--dt-color-blue-200-hsl) / 0.5);
28
+ background-color: hsl(var(--dt-color-blue-200-hsl) / 0.5);
29
29
  }
30
30
  }
@@ -150,9 +150,7 @@
150
150
  // $$$ FLEX EQUAL
151
151
  // Equally distributes children out within a parent container
152
152
  .d-fl-equal {
153
- flex-basis: 0 !important;
154
- flex-grow: 1 !important;
155
- flex-shrink: 1 !important;
153
+ flex: 1 1 0 !important;
156
154
  }
157
155
 
158
156
  // $$ FLEX GROW
@@ -40,9 +40,9 @@
40
40
  // each defined spacing unit.
41
41
  // TODO: Deprecated classes, remove on our next migration. https://dialpad.atlassian.net/browse/DLT-1763
42
42
  // ----------------------------------------------------------------------------
43
- .d-gcg-unset { grid-column-gap: unset !important; }
44
- .d-grg-unset { grid-row-gap: unset !important; }
45
- .d-gg-unset { grid-gap: unset !important; }
43
+ .d-gcg-unset { column-gap: unset !important; }
44
+ .d-grg-unset { row-gap: unset !important; }
45
+ .d-gg-unset { gap: unset !important; }
46
46
 
47
47
 
48
48
  // ============================================================================
@@ -96,11 +96,11 @@
96
96
  }
97
97
 
98
98
  .d-gl-header {
99
+ grid-auto-rows: 1fr;
100
+ grid-auto-columns: minmax(min-content, auto);
99
101
  grid-template-areas: 'header'
100
102
  'content';
101
103
  grid-template-rows: [header-start] var(--header-height) [header-end content-start] var(--content-height) [content-end];
102
- grid-auto-rows: 1fr;
103
- grid-auto-columns: minmax(min-content, auto);
104
104
  }
105
105
 
106
106
  // $ GRID AREAS
@@ -120,9 +120,8 @@
120
120
  margin: var(--dt-space-100-negative);
121
121
  padding: var(--dt-space-0);
122
122
  overflow: hidden;
123
- word-wrap: normal;
123
+ overflow-wrap: normal;
124
124
  border: none;
125
- clip: rect(1px, 1px, 1px, 1px);
126
125
  clip-path: inset(50%);
127
126
  }
128
127
 
@@ -407,7 +407,6 @@ ul {
407
407
  &-unset {
408
408
  display: initial !important;
409
409
  overflow: initial !important;
410
- -webkit-box-orient: initial !important;
411
410
  -webkit-line-clamp: initial !important;
412
411
  }
413
412
  }
@@ -461,18 +460,18 @@ ul {
461
460
  // ----------------------------------------------------------------------------
462
461
  .d-wb-normal { word-break: normal !important; }
463
462
  .d-wb-break-all { word-break: break-all !important; }
464
- .d-wb-break-word { word-break: break-word !important; }
463
+ .d-wb-break-word { overflow-wrap: break-word !important; }
465
464
  .d-wb-keep-all { word-break: keep-all !important; }
466
465
  .d-wb-unset { word-break: unset !important; }
467
466
 
468
467
  // ============================================================================
469
468
  // $$ WORD WRAP
470
469
  // ----------------------------------------------------------------------------
471
- .d-ww-normal { word-wrap: normal !important; }
472
- .d-ww-break-word { word-wrap: break-word !important; }
473
- .d-ww-anywhere { word-wrap: anywhere !important; }
474
- .d-ww-initial { word-wrap: initial !important; }
475
- .d-ww-inherit { word-wrap: inherit !important; }
470
+ .d-ww-normal { overflow-wrap: normal !important; }
471
+ .d-ww-break-word { overflow-wrap: break-word !important; }
472
+ .d-ww-anywhere { overflow-wrap: anywhere !important; }
473
+ .d-ww-initial { overflow-wrap: initial !important; }
474
+ .d-ww-inherit { overflow-wrap: inherit !important; }
476
475
 
477
476
 
478
477
  // Unsure what to do with this