@dialpad/dialtone-css 8.48.0 → 8.49.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.
@@ -23,4 +23,4 @@
23
23
  border: var(--dt-size-100) solid;
24
24
  border-color: var(--dt-color-border-subtle);
25
25
  border-radius: var(--dt-size-radius-400);
26
- }
26
+ }
@@ -20,46 +20,46 @@
20
20
  font-size: var(--dt-font-size-200);
21
21
  line-height: var(--dt-font-line-height-300);
22
22
 
23
- > .d-item-layout--content {
23
+ > .d-item-layout__content {
24
24
  display: flex;
25
25
  flex-direction: column;
26
26
  flex-grow: 1;
27
27
  justify-content: center;
28
28
  min-width: var(--dt-size-0);
29
29
 
30
- > .d-item-layout--subtitle {
30
+ > .d-item-layout__subtitle {
31
31
  color: var(--dt-color-foreground-tertiary);
32
32
  font-size: var(--dt-font-size-100);
33
33
  }
34
34
 
35
- > .d-item-layout--subtitle--with-title {
35
+ > .d-item-layout__subtitle-with-title {
36
36
  margin-top: var(--dt-space-200-negative);
37
37
  }
38
38
 
39
- > .d-item-layout--bottom {
39
+ > .d-item-layout__bottom {
40
40
  margin-top: var(--dt-space-200);
41
41
  }
42
42
  }
43
43
 
44
- > .d-item-layout--right,
45
- > .d-item-layout--left {
44
+ > .d-item-layout__right,
45
+ > .d-item-layout__left {
46
46
  display: flex;
47
47
  align-items: center;
48
48
  min-width: var(--dt-size-600);
49
49
  min-height: inherit;
50
50
  }
51
51
 
52
- > .d-item-layout--right {
52
+ > .d-item-layout__right {
53
53
  flex-shrink: 0;
54
54
  padding-left: var(--dt-space-400);
55
55
  }
56
56
 
57
- > .d-item-layout--left {
57
+ > .d-item-layout__left {
58
58
  justify-content: flex-end;
59
59
  padding-right: var(--dt-space-400);
60
60
  }
61
61
 
62
- > .d-item-layout--selected {
62
+ > .d-item-layout__selected {
63
63
  display: flex;
64
64
  align-items: center;
65
65
  }
@@ -67,44 +67,9 @@
67
67
 
68
68
  .d-item-layout--custom {
69
69
  display: grid;
70
- grid-template-areas: 'left content right selected';
71
- grid-template-columns: minmax(0, max-content) 1fr minmax(0, max-content) minmax(0, max-content);
72
70
 
73
- > .d-item-layout--left {
74
- grid-area: left;
75
- }
76
-
77
- > .d-item-layout--right {
78
- grid-area: right;
79
- }
80
-
81
- > .d-item-layout--content {
71
+ .d-item-layout__content {
82
72
  display: grid;
83
- grid-area: content;
84
- grid-template-areas:
85
- 'title'
86
- 'subtitle'
87
- 'bottom';
88
- grid-template-rows: repeat(auto-fit, minmax(0, auto));
89
-
90
- > .d-item-layout--title {
91
- grid-area: title;
92
- }
93
-
94
- > .d-item-layout--subtitle {
95
- grid-area: subtitle;
96
- }
97
-
98
- > .d-item-layout--subtitle--with-title {
99
- //
100
- }
101
-
102
- > .d-item-layout--bottom {
103
- grid-area: bottom;
104
- }
105
- }
106
-
107
- > .d-item-layout--selected {
108
- grid-area: selected;
73
+ grid-auto-rows: auto;
109
74
  }
110
75
  }
@@ -17,10 +17,6 @@
17
17
  background-color: var(--dt-action-color-background-muted-active);
18
18
  }
19
19
 
20
- &--selected-icon {
21
- margin-left: var(--dt-space-400);
22
- }
23
-
24
20
  &[role="menuitem"] {
25
21
  border-radius: var(--dt-size-300);
26
22
  }
@@ -36,3 +32,31 @@
36
32
  box-shadow: var(--dt-shadow-focus);
37
33
  }
38
34
  }
35
+
36
+ .d-list-item__wrapper {
37
+ gap: var(--dt-space-400);
38
+ min-height: calc(var(--dt-size-550) + var(--dt-size-300));
39
+ padding: var(--dt-space-300) var(--dt-space-400);
40
+ line-height: var(--dt-font-line-height-300);
41
+ }
42
+
43
+ .d-list-item__left,
44
+ .d-list-item__right,
45
+ .d-list-item__selected {
46
+ display: grid;
47
+ place-content: center;
48
+ }
49
+
50
+ .d-list-item__content {
51
+ align-content: center;
52
+ }
53
+
54
+ .d-list-item__subtitle {
55
+ margin-top: var(--dt-space-200-negative);
56
+ color: var(--dt-color-foreground-tertiary);
57
+ font-size: var(--dt-font-size-100);
58
+ }
59
+
60
+ .d-list-item__bottom {
61
+ margin-top: var(--dt-space-200);
62
+ }
@@ -1,9 +1,19 @@
1
1
  .d-rich-text-editor {
2
2
  &__code-block {
3
3
  padding: var(--dt-space-400);
4
+ font: var(--dt-typography-code-md);
4
5
  background: var(--dt-color-surface-secondary);
5
6
  }
6
7
 
8
+ code:not(.d-rich-text-editor__code-block > code) {
9
+ padding: var(--dt-space-200);
10
+ color: var(--dt-color-foreground-warning);
11
+ font: var(--dt-typography-code-md);
12
+ background-color: var(--dt-color-surface-secondary-opaque);
13
+ border: var(--dt-size-border-100) solid var(--dt-color-border-subtle);
14
+ border-radius: var(--dt-size-radius-200);
15
+ }
16
+
7
17
  > .ProseMirror {
8
18
  box-shadow: none;
9
19
 
@@ -30,11 +40,15 @@
30
40
  blockquote {
31
41
  margin-left: 0;
32
42
  padding-left: var(--dt-space-400);
33
- border-left: var(--dt-size-border-300) solid var(--dt-color-foreground-muted-inverted);
43
+ border-left: var(--dt-size-border-300) solid var(--dt-color-border-subtle);
34
44
  }
35
45
  }
36
46
  }
37
47
 
48
+ .d-rich-text-editor-bubble-menu__button-stack {
49
+ padding: var(--dt-space-300);
50
+ }
51
+
38
52
  .d-suggestion-list__container {
39
53
  max-height: var(--dt-size-875);
40
54
  }
@@ -78,6 +78,7 @@
78
78
  @import 'recipes/callbar_button_with_popover';
79
79
  @import 'recipes/callbox';
80
80
  @import 'recipes/combobox_multi_select';
81
+ @import 'recipes/combobox_with_popover';
81
82
  @import 'recipes/contact_info';
82
83
  @import 'recipes/editor';
83
84
  @import 'recipes/emoji_row';
@@ -45,6 +45,11 @@
45
45
  display: block;
46
46
  }
47
47
 
48
+ .d-recipe-combobox-multi-select__list .d-list-item__content {
49
+ min-height: calc(var(--dt-size-550) + var(--dt-size-300));
50
+ }
51
+
52
+
48
53
  .d-recipe-combobox-multi-select__list--loading {
49
54
  padding-top: var(--dt-space-500);
50
55
  padding-bottom: var(--dt-space-500);
@@ -0,0 +1,3 @@
1
+ .d-recipe-combobox-with-popover__list .d-list-item__content {
2
+ min-height: calc(var(--dt-size-550) + var(--dt-size-300));
3
+ }
@@ -1,47 +1,44 @@
1
1
  .d-recipe-contact-info {
2
2
  --contact-info-avatar-border-color: var(--dt-color-surface-primary);
3
3
 
4
- display: flex;
5
-
6
- .d-item-layout {
7
- flex: 1 1 0;
8
- }
9
-
10
- .d-item-layout--content {
11
- /*
12
- DP-74536: Add `min-width` to make the width of "contact info" adjustable.
13
- */
14
- min-width: var(--dt-space-825);
15
- }
16
-
17
- .d-item-layout--left {
18
- align-items: center;
19
- justify-content: flex-start;
20
-
21
- /*
22
- DP-74536: To make 'Avatar' in fixed position when resizing the window.
23
- */
24
- min-width: var(--dt-space-650);
25
- }
26
-
27
- .d-item-layout--right {
28
- align-items: center;
29
-
30
- /*
31
- DP-74536: Remove `min-width` which cause extra unused empty space on the right of "contact info".
32
- */
33
- min-width: 0;
34
- }
4
+ padding: var(--dt-space-300) var(--dt-space-400);
5
+ column-gap: var(--dt-space-400);
35
6
  }
36
7
 
37
8
  .d-recipe-contact-info__left {
38
9
  position: relative;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: flex-start;
13
+ min-width: var(--dt-space-650);
14
+ height: var(--dt-size-100-percent);
39
15
  background-color: transparent;
40
16
  background-image: none;
41
17
  border-width: 0;
42
18
  cursor: pointer;
43
19
  }
44
20
 
21
+ .d-recipe-contact-info__content {
22
+ align-content: center;
23
+ line-height: var(--dt-font-line-height-300);
24
+ }
25
+
26
+ .d-recipe-contact-info__subtitle {
27
+ margin-top: var(--dt-space-200-negative);
28
+ color: var(--dt-color-foreground-tertiary);
29
+ font-size: var(--dt-font-size-100);
30
+ }
31
+
32
+ .d-recipe-contact-info__bottom {
33
+ margin-top: var(--dt-space-200);
34
+ }
35
+
36
+ .d-recipe-contact-info__right {
37
+ display: grid;
38
+ align-content: center;
39
+ min-width: 0;
40
+ }
41
+
45
42
  .d-recipe-contact-info__avatars {
46
43
  display: flex;
47
44
  flex-direction: row;
@@ -25,15 +25,14 @@
25
25
  gap: var(--dt-space-300);
26
26
  width: var(--dt-size-100-percent);
27
27
  padding: var(--dt-space-400);
28
-
29
- & > .d-item-layout--left {
30
- justify-content: center;
31
- padding-right: var(--dt-space-0);
32
- }
28
+ line-height: var(--dt-font-line-height-300)
33
29
  }
34
30
 
35
31
  .d-recipe-feed-item-pill__icon {
36
- display: flex;
32
+ display: grid;
33
+ place-content: center;
34
+ min-width: var(--dt-size-600);
35
+ height: var(--dt-size-100-percent);
37
36
 
38
37
  & svg {
39
38
  animation: d-recipe-feed-item-pill-fade 0.15s ease-in;
@@ -46,9 +45,29 @@
46
45
  }
47
46
 
48
47
  .d-recipe-feed-item-pill__title {
48
+ display: grid;
49
+ align-content: center;
50
+ height: var(--dt-size-100-percent);
49
51
  font-weight: var(--dt-font-weight-bold);
50
52
  }
51
53
 
54
+ .d-recipe-feed-item-pill__subtitle {
55
+ margin-top: var(--dt-space-200-negative);
56
+ color: var(--dt-color-foreground-tertiary);
57
+ font-size: var(--dt-font-size-100);
58
+ }
59
+
60
+ .d-recipe-feed-item-pill__bottom {
61
+ margin-top: var(--dt-space-200);
62
+ }
63
+
64
+ .d-recipe-feed-item-pill__right {
65
+ display: grid;
66
+ place-content: center;
67
+ min-width: var(--dt-size-600);
68
+ height: var(--dt-size-100-percent);
69
+ }
70
+
52
71
  // Gradient radius solution taken from https://stackoverflow.com/a/53037637
53
72
  .d-recipe-feed-item-pill__border {
54
73
  overflow: hidden;
@@ -8,30 +8,20 @@
8
8
  box-shadow: var(--dt-shadow-focus-inset);
9
9
  }
10
10
 
11
- & > .d-item-layout {
12
- min-height: initial;
13
- padding: 0;
14
- font: var(--dt-typography-body-md-compact);
15
- }
16
-
17
- & > .d-item-layout > .d-item-layout--left {
11
+ .d-list-item__left {
18
12
  display: block;
19
- align-self: flex-start;
20
- // min-width = avatar width + padding
21
- min-width: calc(var(--dt-space-600) + var(--dt-space-300));
22
- padding-right: var(--dt-space-300);
23
- padding-left: var(--dt-space-0);
13
+ align-content: flex-start;
14
+ min-width: var(--dt-size-600);
24
15
  text-align: end;
25
16
  }
26
17
 
27
- & > .d-item-layout > .d-item-layout--right {
28
- min-width: initial;
18
+ .d-list-item__wrapper {
19
+ min-height: auto;
29
20
  padding: 0;
21
+ font: var(--dt-typography-body-md-compact);
30
22
  }
31
23
 
32
- & > .d-item-layout > .d-item-layout--content > .d-item-layout--bottom {
33
- display: flex;
34
- flex-direction: column;
24
+ .d-list-item__bottom {
35
25
  margin-top: 0;
36
26
  }
37
27
  }
@@ -57,10 +47,6 @@
57
47
  padding-bottom: var(--dt-space-300);
58
48
  }
59
49
 
60
- .d-recipe-feed-item-row__content {
61
- padding-left: var(--dt-space-300);
62
- }
63
-
64
50
  .d-recipe-feed-item-row__attachment {
65
51
  padding-top: var(--dt-space-200);
66
52
  padding-bottom: var(--dt-space-300);
@@ -105,7 +91,6 @@
105
91
  flex-wrap: wrap;
106
92
  padding-top: var(--dt-space-200);
107
93
  padding-bottom: var(--dt-space-200);
108
- padding-left: var(--dt-space-300);
109
94
  }
110
95
 
111
96
  .d-recipe-feed-item-row__threading {
@@ -1,6 +1,7 @@
1
1
  .d-recipe-message-input {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ overflow: hidden;
4
5
  line-height: var(--dt-font-line-height-400);
5
6
  border: var(--dt-size-border-100) solid;
6
7
  border-color: var(--dt-color-border-default);
@@ -16,10 +17,23 @@
16
17
  }
17
18
  }
18
19
 
20
+ .d-recipe-message-input__button-stack {
21
+ padding: var(--dt-space-400);
22
+ background-color: var(--dt-color-surface-secondary);
23
+ }
24
+
25
+ .d-recipe-message-input__button-stack-icon {
26
+ font-weight: var(--dt-font-weight-bold);
27
+ }
28
+
19
29
  .d-recipe-message-input__editor-wrapper {
20
30
  padding: var(--dt-space-450) var(--dt-space-500) var(--dt-space-300);
21
31
  }
22
32
 
33
+ .d-recipe-message-input__link-popover {
34
+ width: 36.0rem;
35
+ }
36
+
23
37
  .d-recipe-message-input__remaining-char {
24
38
  margin-right: var(--dt-space-300);
25
39
  color: var(--dt-color-foreground-critical);
@@ -95,3 +109,28 @@
95
109
  display: flex;
96
110
  align-items: center;
97
111
  }
112
+
113
+ .d-recipe-message-input--button-group-divider {
114
+ width: var(--dt-size-100);
115
+ height: calc(var(--dt-size-550) + var(--dt-size-300));
116
+ margin-right: var(--dt-space-300);
117
+ margin-left: var(--dt-space-300);
118
+ background: var(--dt-color-border-subtle);
119
+ }
120
+
121
+ .d-recipe-message-input__link-dialog-title {
122
+ font: var(--dt-typography-headline-md-compact);
123
+ }
124
+
125
+ .d-recipe-message-input__link-dialog-buttons {
126
+ justify-content: space-between;
127
+ }
128
+
129
+ .d-recipe-message-input__link-input {
130
+ margin-top: var(--dt-space-350);
131
+ padding-top: var(--dt-space-200);
132
+ padding-bottom: var(--dt-space-200);
133
+ background-color: var(--dt-color-surface-secondary);
134
+ border: var(--dt-space-100) solid;
135
+ border-color: var(--dt-color-border-default);
136
+ }