@dialpad/dialtone 9.0.3 → 9.1.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.
Files changed (170) hide show
  1. package/dist/css/{lib/dist/css/dialtone.css → dialtone.css} +2 -2
  2. package/dist/css/{lib/build/js → js}/dialtone_health_check/index.cjs +0 -0
  3. package/dist/css/{lib/build/js → js}/dialtone_migration_helper/index.mjs +0 -0
  4. package/dist/icons/icons.json +1 -1
  5. package/dist/icons/keywords.json +1 -1
  6. package/dist/icons/svg/gif-filled.svg +1 -0
  7. package/dist/icons/svg/gif-outline.svg +1 -0
  8. package/dist/icons/svg/giphy.svg +1 -0
  9. package/dist/icons/svg/sticker.svg +1 -0
  10. package/dist/tokens/android/java/tokens-dark.kt +1 -1
  11. package/dist/tokens/android/java/tokens-light.kt +1 -1
  12. package/dist/tokens/android/res/values/colors-dark.xml +1 -1
  13. package/dist/tokens/android/res/values/colors-light.xml +1 -1
  14. package/dist/tokens/android/res/values/dimens.xml +1 -1
  15. package/dist/tokens/css/variables-dark.css +1 -1
  16. package/dist/tokens/css/variables-light.css +1 -1
  17. package/dist/tokens/ios/tokens-dark.swift +1 -1
  18. package/dist/tokens/ios/tokens-light.swift +1 -1
  19. package/dist/tokens/less/variables-dark.less +1 -1
  20. package/dist/tokens/less/variables-light.less +1 -1
  21. package/dist/vue2/dialtone-vue.cjs +1 -1
  22. package/dist/vue2/dialtone-vue.js +6 -2
  23. package/dist/vue2/{emoji-Coi9mwJI.js → emoji-7rGodye-.js} +1037 -993
  24. package/dist/vue2/emoji-lh7HbdPO.cjs +1 -0
  25. package/dist/vue2/emoji.cjs +1 -1
  26. package/dist/vue2/emoji.js +1 -1
  27. package/dist/vue3/dialtone-vue.cjs +1 -1
  28. package/dist/vue3/dialtone-vue.js +5 -5
  29. package/dist/vue3/{emoji-ZUS2Xysh.js → emoji-3pj6EkFO.js} +5718 -5631
  30. package/dist/vue3/emoji-o92If4FT.cjs +1 -0
  31. package/dist/vue3/emoji.cjs +1 -1
  32. package/dist/vue3/emoji.js +3 -3
  33. package/dist/vue3/{emoji_picker-3kUtetnz.js → emoji_picker-cEd7jpeQ.js} +1 -1
  34. package/dist/vue3/{emoji_picker-BwwTFuPb.cjs → emoji_picker-gShCFyCG.cjs} +1 -1
  35. package/dist/vue3/{emoji_text_wrapper-VoDb04sP.js → emoji_text_wrapper-EQ1gDwv9.js} +1 -1
  36. package/dist/vue3/{emoji_text_wrapper-2Ia2nUgQ.cjs → emoji_text_wrapper-miQbnssk.cjs} +1 -1
  37. package/dist/vue3/message_input.cjs +1 -1
  38. package/dist/vue3/message_input.js +3 -3
  39. package/dist/vue3/{stack-s3MR-6wx.cjs → stack-Mxp-S0Wp.cjs} +1 -1
  40. package/dist/vue3/{stack--ux25GPn.js → stack-sgBuXZ5V.js} +22 -18
  41. package/package.json +10 -8
  42. package/dist/css/lib/build/favicons/dialpad/favicon-beta-notification__512.png +0 -0
  43. package/dist/css/lib/build/favicons/dialpad/favicon-beta__512.png +0 -0
  44. package/dist/css/lib/build/favicons/dialpad/favicon-csr__512.png +0 -0
  45. package/dist/css/lib/build/favicons/dialpad/favicon-notification__512.png +0 -0
  46. package/dist/css/lib/build/favicons/dialpad/favicon-staging-notification__512.png +0 -0
  47. package/dist/css/lib/build/favicons/dialpad/favicon-staging__512.png +0 -0
  48. package/dist/css/lib/build/favicons/dialpad/favicon__512.png +0 -0
  49. package/dist/css/lib/build/favicons/favicon-dialtone__512.png +0 -0
  50. package/dist/css/lib/build/favicons/uberconference/favicon-uberconference__512.png +0 -0
  51. package/dist/css/lib/build/less/components/avatar.less +0 -169
  52. package/dist/css/lib/build/less/components/badge.less +0 -139
  53. package/dist/css/lib/build/less/components/banner.less +0 -77
  54. package/dist/css/lib/build/less/components/breadcrumbs.less +0 -88
  55. package/dist/css/lib/build/less/components/button.less +0 -554
  56. package/dist/css/lib/build/less/components/card.less +0 -56
  57. package/dist/css/lib/build/less/components/chip.less +0 -192
  58. package/dist/css/lib/build/less/components/codeblock.less +0 -26
  59. package/dist/css/lib/build/less/components/collapsible.less +0 -33
  60. package/dist/css/lib/build/less/components/combobox.less +0 -28
  61. package/dist/css/lib/build/less/components/datepicker.less +0 -146
  62. package/dist/css/lib/build/less/components/emoji-picker.less +0 -223
  63. package/dist/css/lib/build/less/components/forms.less +0 -153
  64. package/dist/css/lib/build/less/components/icon.less +0 -63
  65. package/dist/css/lib/build/less/components/image-viewer.less +0 -35
  66. package/dist/css/lib/build/less/components/input.less +0 -321
  67. package/dist/css/lib/build/less/components/item-layout.less +0 -53
  68. package/dist/css/lib/build/less/components/keyboard-shortcut.less +0 -39
  69. package/dist/css/lib/build/less/components/link.less +0 -130
  70. package/dist/css/lib/build/less/components/list-group.less +0 -48
  71. package/dist/css/lib/build/less/components/list-item-group.less +0 -17
  72. package/dist/css/lib/build/less/components/modal.less +0 -340
  73. package/dist/css/lib/build/less/components/notice.less +0 -171
  74. package/dist/css/lib/build/less/components/pagination.less +0 -41
  75. package/dist/css/lib/build/less/components/popover.less +0 -99
  76. package/dist/css/lib/build/less/components/presence.less +0 -60
  77. package/dist/css/lib/build/less/components/radio-checkbox.less +0 -278
  78. package/dist/css/lib/build/less/components/root-layout.less +0 -125
  79. package/dist/css/lib/build/less/components/selects.less +0 -152
  80. package/dist/css/lib/build/less/components/skeleton.less +0 -101
  81. package/dist/css/lib/build/less/components/stack.less +0 -129
  82. package/dist/css/lib/build/less/components/tab-panel.less +0 -15
  83. package/dist/css/lib/build/less/components/table.less +0 -118
  84. package/dist/css/lib/build/less/components/tabs.less +0 -219
  85. package/dist/css/lib/build/less/components/toast.less +0 -120
  86. package/dist/css/lib/build/less/components/toggle.less +0 -173
  87. package/dist/css/lib/build/less/components/tooltip.less +0 -267
  88. package/dist/css/lib/build/less/dialtone-globals.less +0 -45
  89. package/dist/css/lib/build/less/dialtone-reset.less +0 -362
  90. package/dist/css/lib/build/less/dialtone-variables.less +0 -16
  91. package/dist/css/lib/build/less/dialtone.less +0 -71
  92. package/dist/css/lib/build/less/themes/default.less +0 -83
  93. package/dist/css/lib/build/less/themes/example.less +0 -89
  94. package/dist/css/lib/build/less/utilities/backgrounds.less +0 -139
  95. package/dist/css/lib/build/less/utilities/borders.less +0 -196
  96. package/dist/css/lib/build/less/utilities/colors.less +0 -122
  97. package/dist/css/lib/build/less/utilities/effects.less +0 -210
  98. package/dist/css/lib/build/less/utilities/flex.less +0 -227
  99. package/dist/css/lib/build/less/utilities/grid.less +0 -244
  100. package/dist/css/lib/build/less/utilities/interactivity.less +0 -69
  101. package/dist/css/lib/build/less/utilities/layout.less +0 -146
  102. package/dist/css/lib/build/less/utilities/lint-staged.config.cjs +0 -5
  103. package/dist/css/lib/build/less/utilities/sizing.less +0 -152
  104. package/dist/css/lib/build/less/utilities/spacing.less +0 -107
  105. package/dist/css/lib/build/less/utilities/typography.less +0 -300
  106. package/dist/css/lib/build/less/variables/layout.less +0 -19
  107. package/dist/css/lib/build/less/variables/sizes.less +0 -64
  108. package/dist/css/lib/build/less/variables/typography.less +0 -46
  109. package/dist/css/lib/build/less/variables/visual-styles.less +0 -77
  110. package/dist/css/lib/build/svg/spot/blank-space.svg +0 -35
  111. package/dist/css/lib/build/svg/spot/browser-list-callout.svg +0 -27
  112. package/dist/css/lib/build/svg/spot/browser-table-graph.svg +0 -37
  113. package/dist/css/lib/build/svg/spot/female-laptop-typing.svg +0 -21
  114. package/dist/css/lib/build/svg/spot/file-upload.svg +0 -50
  115. package/dist/css/lib/build/svg/spot/male-laptop-typing.svg +0 -24
  116. package/dist/css/lib/build/svg/spot/mind.svg +0 -58
  117. package/dist/css/lib/build/svg/spot/publish.svg +0 -54
  118. package/dist/css/lib/build/svg/spot/vector-vortex.svg +0 -53
  119. package/dist/css/lib/build/svg/spot/wireless-screenshare.svg +0 -30
  120. package/dist/css/lib/dist/fonts/Archivo-Bold.woff2 +0 -0
  121. package/dist/css/lib/dist/fonts/Archivo-Regular.woff2 +0 -0
  122. package/dist/css/lib/dist/fonts/Archivo-SemiBold.woff2 +0 -0
  123. package/dist/css/lib/dist/fonts/ArchivoExpanded-SemiBold.woff2 +0 -0
  124. package/dist/css/lib/dist/fonts/ArchivoSemiExpanded-Medium.woff2 +0 -0
  125. package/dist/css/lib/dist/fonts/ArchivoSemiExpanded-SemiBold.woff2 +0 -0
  126. package/dist/css/lib/dist/js/dialtone_health_check/deprecated_icons.cjs +0 -105
  127. package/dist/css/lib/dist/js/dialtone_health_check/index.cjs +0 -82
  128. package/dist/css/lib/dist/js/dialtone_health_check/non_dialtone_properties.cjs +0 -44
  129. package/dist/css/lib/dist/js/dialtone_migration_helper/configs/box-shadows.mjs +0 -19
  130. package/dist/css/lib/dist/js/dialtone_migration_helper/configs/colors.mjs +0 -69
  131. package/dist/css/lib/dist/js/dialtone_migration_helper/configs/fonts.mjs +0 -49
  132. package/dist/css/lib/dist/js/dialtone_migration_helper/configs/size-and-space.mjs +0 -124
  133. package/dist/css/lib/dist/js/dialtone_migration_helper/helpers.mjs +0 -212
  134. package/dist/css/lib/dist/js/dialtone_migration_helper/index.mjs +0 -135
  135. package/dist/vue2/emoji-rFzmUxoH.cjs +0 -1
  136. package/dist/vue3/emoji-QX8MEKZV.cjs +0 -1
  137. /package/dist/css/{lib/dist/css/dialtone.min.css → dialtone.min.css} +0 -0
  138. /package/dist/css/{lib/build/fonts → fonts}/Archivo-Bold.woff2 +0 -0
  139. /package/dist/css/{lib/build/fonts → fonts}/Archivo-Regular.woff2 +0 -0
  140. /package/dist/css/{lib/build/fonts → fonts}/Archivo-SemiBold.woff2 +0 -0
  141. /package/dist/css/{lib/build/fonts → fonts}/ArchivoExpanded-SemiBold.woff2 +0 -0
  142. /package/dist/css/{lib/build/fonts → fonts}/ArchivoSemiExpanded-Medium.woff2 +0 -0
  143. /package/dist/css/{lib/build/fonts → fonts}/ArchivoSemiExpanded-SemiBold.woff2 +0 -0
  144. /package/dist/css/{lib/build/js → js}/dialtone_health_check/deprecated_icons.cjs +0 -0
  145. /package/dist/css/{lib/build/js → js}/dialtone_health_check/non_dialtone_properties.cjs +0 -0
  146. /package/dist/css/{lib/build/js → js}/dialtone_migration_helper/configs/box-shadows.mjs +0 -0
  147. /package/dist/css/{lib/build/js → js}/dialtone_migration_helper/configs/colors.mjs +0 -0
  148. /package/dist/css/{lib/build/js → js}/dialtone_migration_helper/configs/fonts.mjs +0 -0
  149. /package/dist/css/{lib/build/js → js}/dialtone_migration_helper/configs/size-and-space.mjs +0 -0
  150. /package/dist/css/{lib/build/js → js}/dialtone_migration_helper/helpers.mjs +0 -0
  151. /package/dist/css/{lib/dist/svg → svg}/spot/blank-space.svg +0 -0
  152. /package/dist/css/{lib/dist/svg → svg}/spot/browser-list-callout.svg +0 -0
  153. /package/dist/css/{lib/dist/svg → svg}/spot/browser-table-graph.svg +0 -0
  154. /package/dist/css/{lib/dist/svg → svg}/spot/female-laptop-typing.svg +0 -0
  155. /package/dist/css/{lib/dist/svg → svg}/spot/file-upload.svg +0 -0
  156. /package/dist/css/{lib/dist/svg → svg}/spot/male-laptop-typing.svg +0 -0
  157. /package/dist/css/{lib/dist/svg → svg}/spot/mind.svg +0 -0
  158. /package/dist/css/{lib/dist/svg → svg}/spot/publish.svg +0 -0
  159. /package/dist/css/{lib/dist/svg → svg}/spot/vector-vortex.svg +0 -0
  160. /package/dist/css/{lib/dist/svg → svg}/spot/wireless-screenshare.svg +0 -0
  161. /package/dist/css/{lib/dist/vue → vue}/spot/SpotBlankSpace.vue +0 -0
  162. /package/dist/css/{lib/dist/vue → vue}/spot/SpotBrowserListCallout.vue +0 -0
  163. /package/dist/css/{lib/dist/vue → vue}/spot/SpotBrowserTableGraph.vue +0 -0
  164. /package/dist/css/{lib/dist/vue → vue}/spot/SpotFemaleLaptopTyping.vue +0 -0
  165. /package/dist/css/{lib/dist/vue → vue}/spot/SpotFileUpload.vue +0 -0
  166. /package/dist/css/{lib/dist/vue → vue}/spot/SpotMaleLaptopTyping.vue +0 -0
  167. /package/dist/css/{lib/dist/vue → vue}/spot/SpotMind.vue +0 -0
  168. /package/dist/css/{lib/dist/vue → vue}/spot/SpotPublish.vue +0 -0
  169. /package/dist/css/{lib/dist/vue → vue}/spot/SpotVectorVortex.vue +0 -0
  170. /package/dist/css/{lib/dist/vue → vue}/spot/SpotWirelessScreenshare.vue +0 -0
@@ -1,554 +0,0 @@
1
- //
2
- // DIALTONE
3
- // COMPONENTS: BUTTONS
4
- //
5
- // These are button classes for Dialpad's design system Dialtone.
6
- // For further documentation of these and other classes,
7
- // visit https://dialpad.design/components/buttons
8
- //
9
- // TABLE OF CONTENTS
10
- // • BASE STYLE
11
- // • VISUAL STYLES
12
- // • ALTERNATE STYLES
13
- // • SIZES
14
- //
15
- // ============================================================================
16
- // $ BASE STYLE
17
- // ----------------------------------------------------------------------------
18
-
19
- .d-btn,
20
- .d-btn--md {
21
- // Component specific CSS Vars
22
- // ------------------------------------------------------------------------
23
- --button-color-text: var(--dt-action-color-foreground-base-default);
24
- --button-color-background: var(--dt-action-color-background-base-default);
25
- --button-color-border: transparent;
26
- --button-gap: calc(var(--button-padding-x) / 2);
27
- --button-border-radius: var(--dt-size-400);
28
- --button-border-width: var(--dt-size-100);
29
- --button-font-size: var(--dt-font-size-200);
30
- --button-font-weight: var(--dt-font-weight-medium);
31
- --button-line-height-xs: var(--dt-font-line-height-200); // TODO: these used to vary, remove if all wind up all the same
32
- --button-line-height-sm: var(--dt-font-line-height-200); // TODO: these used to vary, remove if all wind up all the same
33
- --button-line-height-md: var(--dt-font-line-height-200); // TODO: these used to vary, remove if all wind up all the same
34
- --button-line-height-lg: var(--dt-font-line-height-200); // TODO: these used to vary, remove if all wind up all the same
35
- --button-line-height-xl: var(--dt-font-line-height-200); // TODO: these used to vary, remove if all wind up all the same
36
- --button-line-height: var(--button-line-height-md);
37
- --button-padding-y-xs: calc(calc(var(--dt-space-400) - var(--dt-space-100)) - var(--button-border-width)); // ((8 - 1) - border-width)
38
- --button-padding-x-xs: calc(var(--dt-space-400) - var(--button-border-width)); // 8 minus border-width
39
- --button-padding-y-sm: calc(var(--dt-space-400) - var(--button-border-width)); // 8 minus border-width
40
- --button-padding-x-sm: calc(var(--dt-space-450) - var(--button-border-width)); // 12 minus border-width
41
- --button-padding-y-md: calc(var(--dt-space-400) - var(--button-border-width)); // 8 minus border-width
42
- --button-padding-x-md: calc(var(--dt-space-450) - var(--button-border-width)); // 12 minus border-width
43
- --button-padding-y-lg: calc((var(--dt-space-400) + var(--dt-space-200)) - var(--button-border-width)); // 10 minus border-width
44
- --button-padding-x-lg: calc(var(--dt-space-500) - var(--button-border-width)); // 16 minus border-width
45
- --button-padding-y-xl: calc(var(--dt-space-450) - var(--button-border-width)); // 12 minus border-width
46
- --button-padding-x-xl: calc(var(--dt-space-500) - var(--button-border-width)); // 16 minus border-width
47
- --button-padding-y: var(--button-padding-y-md);
48
- --button-padding-x: var(--button-padding-x-md);
49
-
50
- position: relative;
51
- display: inline-flex;
52
- gap: var(--button-gap);
53
- align-items: center;
54
- justify-content: center;
55
- box-sizing: border-box;
56
- padding: var(--button-padding-y) var(--button-padding-x);
57
- color: var(--button-color-text);
58
- font-weight: var(--button-font-weight);
59
- font-size: var(--button-font-size);
60
- font-family: inherit;
61
- line-height: var(--button-line-height);
62
- text-transform: inherit;
63
- text-decoration: none;
64
- vertical-align: middle;
65
- background-color: var(--button-color-background);
66
- border-color: var(--button-color-border);
67
- border-style: solid;
68
- border-width: var(--button-border-width);
69
- border-radius: var(--button-border-radius);
70
- box-shadow: var(--button--bs);
71
- cursor: pointer;
72
- transition-timing-function: var(--ttf-out-quint);
73
- transition-duration: var(--td200);
74
- transition-property: background-color, border, box-shadow;
75
- user-select: none;
76
- fill: currentColor;
77
-
78
- // -- STATES
79
- // ------------------------------------------------------------------------
80
- &:hover:not([disabled]) {
81
- --button-color-text: var(--dt-action-color-foreground-base-hover);
82
- --button-color-background: var(--dt-action-color-background-base-hover);
83
- }
84
-
85
- &:active:not([disabled]),
86
- &.d-btn--active:not([disabled]),
87
- &.d-btn--active:active:not([disabled]) {
88
- --button-color-text: var(--dt-action-color-foreground-base-active);
89
- --button-color-background: var(--dt-action-color-background-base-active);
90
- }
91
-
92
- &:focus-visible {
93
- outline: none;
94
- box-shadow: var(--dt-shadow-focus);
95
- }
96
-
97
- &[disabled] {
98
- --button-color-border: transparent !important;
99
- --button-color-text: var(--dt-action-color-foreground-disabled-default) !important;
100
- --button-color-background: var(--dt-action-color-background-disabled-default) !important;
101
-
102
- cursor: not-allowed;
103
- transition: none;
104
- }
105
- }
106
-
107
- // ============================================================================
108
- // $ SIZES
109
- // ----------------------------------------------------------------------------
110
- // $$ EXTRA SMALL
111
- // ----------------------------------------------------------------------------
112
- .d-btn--xs {
113
- --button-padding-y: var(--button-padding-y-xs);
114
- --button-padding-x: var(--button-padding-x-xs);
115
- --button-font-size: var(--dt-font-size-100);
116
- --button-line-height: var(--button-line-height-xs);
117
- --button-border-radius: var(--dt-size-300);
118
- }
119
-
120
- // $$ SMALL
121
- // ----------------------------------------------------------------------------
122
- .d-btn--sm {
123
- --button-padding-y: var(--button-padding-y-sm);
124
- --button-padding-x: var(--button-padding-x-sm);
125
- --button-font-size: var(--dt-font-size-100);
126
- --button-line-height: var(--button-line-height-sm);
127
- }
128
-
129
- // $$ MEDIUM
130
- // ----------------
131
- .d-btn--md {
132
- //
133
- }
134
-
135
- // $$ LARGE
136
- // ----------------------------------------------------------------------------
137
- .d-btn--lg {
138
- --button-padding-y: var(--button-padding-y-lg);
139
- --button-padding-x: var(--button-padding-x-lg);
140
- --button-font-size: var(--dt-font-size-300);
141
- --button-line-height: var(--button-line-height-lg);
142
- --button-border-radius: var(--dt-size-450);
143
- }
144
-
145
- // $$ EXTRA LARGE
146
- // ----------------------------------------------------------------------------
147
- .d-btn--xl {
148
- --button-padding-y: var(--button-padding-y-xl);
149
- --button-padding-x: var(--button-padding-x-xl);
150
- --button-font-size: var(--dt-font-size-400);
151
- --button-font-weight: var(--dt-font-weight-normal);
152
- --button-line-height: var(--button-line-height-xl);
153
- --button-border-radius: var(--dt-size-500);
154
- }
155
-
156
- // ============================================================================
157
- // $ BUTTON LABEL
158
- // ----------------------------------------------------------------------------
159
- .d-btn__label {
160
- display: inline-flex;
161
- flex: 1 auto;
162
- align-items: center;
163
- justify-content: center;
164
- // background-color: rgba(0,0,0,.5);
165
- }
166
-
167
- // ============================================================================
168
- // $ BUTTON WITH ICON
169
- // ----------------------------------------------------------------------------
170
- .d-btn--vertical {
171
- flex-direction: column;
172
- }
173
-
174
- .d-btn__icon {
175
- display: flex;
176
- // background-color: rgba(0,0,0,.5);
177
-
178
- .d-icon {
179
- // outline: 1px solid red;
180
- // opacity: 0;
181
- }
182
- }
183
-
184
-
185
- .d-btn__icon--left,
186
- .d-btn__icon--top {
187
- order: -1;
188
- }
189
-
190
- .d-btn__icon--right,
191
- .d-btn__icon--bottom {
192
- order: 1;
193
- }
194
-
195
- .d-btn__icon--left:not(:only-child) {
196
- margin-left: var(--dt-space-200-negative);
197
- }
198
-
199
- .d-btn__icon--right:not(:only-child) {
200
- margin-right: var(--dt-space-200-negative);
201
- }
202
-
203
- // ============================================================================
204
- // $ VISUAL STYLES
205
- // ----------------------------------------------------------------------------
206
- // $$ CIRCLE BUTTONS
207
- // ----------------------------------------------------------------------------
208
- .d-btn--circle {
209
- --button-padding-x: var(--button-padding-y-md);
210
- --button-padding-y: var(--button-padding-y-md);
211
- --button-color-text: var(--dt-action-color-foreground-muted-default);
212
- --button-border-radius: var(--dt-size-radius-circle);
213
-
214
- &:hover:not([disabled]) {
215
- --button-color-text: var(--dt-action-color-foreground-muted-hover);
216
- --button-color-background: var(--dt-action-color-background-muted-hover);
217
- }
218
-
219
- &:active:not([disabled]),
220
- &.d-btn--active:not([disabled]),
221
- &.d-btn--active:active:not([disabled]) {
222
- --button-color-text: var(--dt-action-color-foreground-muted-active);
223
- --button-color-background: var(--dt-action-color-background-muted-active);
224
- }
225
-
226
- .d-btn__icon {
227
- margin: unset;
228
- }
229
-
230
- &.d-btn__label {
231
- display: none;
232
- }
233
-
234
- &.d-btn--outlined {
235
- --button-color-border: var(--dt-action-color-border-muted-outlined-default);
236
- }
237
-
238
- // Adjust padding based on sizes
239
- &.d-btn--xs {
240
- --button-padding-y: var(--button-padding-y-xs);
241
- --button-padding-x: var(--button-padding-y-xs);
242
- }
243
-
244
- &.d-btn--sm {
245
- --button-padding-y: var(--button-padding-y-sm);
246
- --button-padding-x: var(--button-padding-y-sm);
247
- }
248
-
249
- &.d-btn--md {
250
- --button-padding-x: var(--button-padding-y-md);
251
- --button-padding-y: var(--button-padding-y-md);
252
- }
253
-
254
- &.d-btn--lg {
255
- --button-padding-x: calc(var(--button-padding-y-lg) + var(--dt-space-100));
256
- --button-padding-y: calc(var(--button-padding-y-lg) + var(--dt-space-100));
257
- }
258
-
259
- &.d-btn--xl {
260
- --button-padding-x: calc(var(--button-padding-y-xl) + var(--dt-space-300));
261
- --button-padding-y: calc(var(--button-padding-y-xl) + var(--dt-space-300));
262
- }
263
- }
264
-
265
- // $$ OUTLINED BUTTON
266
- // ----------------------------------------------------------------------------
267
- .d-btn--outlined {
268
- --button-color-border: var(--dt-action-color-border-base-outlined-default);
269
- }
270
-
271
- // $$ PRIMARY BUTTON
272
- // ----------------------------------------------------------------------------
273
- .d-btn--primary {
274
- --button-color-text: var(--dt-action-color-foreground-base-primary-default);
275
- --button-color-background: var(--dt-action-color-background-base-primary-default);
276
-
277
- &:hover:not([disabled]) {
278
- --button-color-text: var(--dt-action-color-foreground-base-primary-default);
279
- --button-color-background: var(--dt-action-color-background-base-primary-hover);
280
- }
281
-
282
- &:active:not([disabled]),
283
- &.d-btn--active:not([disabled]),
284
- &.d-btn--active:active:not([disabled]) {
285
- --button-color-text: var(--dt-action-color-foreground-base-primary-default);
286
- --button-color-background: var(--dt-action-color-background-base-primary-active);
287
- }
288
- }
289
-
290
- // $$ MUTED BUTTON
291
- // ----------------------------------------------------------------------------
292
- .d-btn--muted {
293
- --button-color-text: var(--dt-action-color-foreground-muted-default);
294
-
295
- &:hover:not([disabled]) {
296
- --button-color-text: var(--dt-action-color-foreground-muted-hover);
297
- --button-color-background: var(--dt-action-color-background-muted-hover);
298
- }
299
-
300
- &:active:not([disabled]),
301
- &.d-btn--active:not([disabled]),
302
- &.d-btn--active:active:not([disabled]) {
303
- --button-color-text: var(--dt-action-color-foreground-muted-active);
304
- --button-color-background: var(--dt-action-color-background-muted-active);
305
- }
306
-
307
- &.d-btn--outlined {
308
- --button-color-border: var(--dt-action-color-border-muted-outlined-default);
309
- }
310
- }
311
-
312
- // $$ DANGER BUTTON
313
- // ----------------------------------------------------------------------------
314
- .d-btn--danger {
315
- --button-color-text: var(--dt-action-color-foreground-critical-default);
316
- --button-color-background: var(--dt-action-color-background-critical-default);
317
-
318
- &:hover:not([disabled]) {
319
- --button-color-text: var(--dt-action-color-foreground-critical-hover);
320
- --button-color-background: var(--dt-action-color-background-critical-hover);
321
- }
322
-
323
- &:active:not([disabled]),
324
- &.d-btn--active:not([disabled]),
325
- &.d-btn--active:active:not([disabled]) {
326
- --button-color-text: var(--dt-action-color-foreground-critical-active);
327
- --button-color-background: var(--dt-action-color-background-critical-active);
328
- }
329
-
330
- &.d-btn--outlined {
331
- --button-color-border: var(--dt-action-color-border-critical-outlined-default);
332
- }
333
-
334
- &.d-btn--primary {
335
- --button-color-text: var(--dt-action-color-foreground-critical-primary-default);
336
- --button-color-background: var(--dt-action-color-background-critical-primary-default);
337
-
338
- &:hover:not([disabled]) {
339
- --button-color-text: var(--dt-action-color-foreground-critical-primary-default);
340
- --button-color-background: var(--dt-action-color-background-critical-primary-hover);
341
- }
342
-
343
- &:active:not([disabled]),
344
- &.d-btn--active:not([disabled]),
345
- &.d-btn--active:active:not([disabled]) {
346
- --button-color-text: var(--dt-action-color-foreground-critical-primary-default);
347
- --button-color-background: var(--dt-action-color-background-critical-primary-active);
348
- }
349
- }
350
- }
351
-
352
- // $$ INVERTED BUTTON
353
- // ----------------------------------------------------------------------------
354
- // -- Base, clear inverted button
355
- .d-btn--inverted {
356
- --button-color-text: var(--dt-action-color-foreground-inverted-default);
357
- --button-color-background: var(--dt-action-color-background-inverted-default);
358
-
359
- &:hover:not([disabled]) {
360
- --button-color-text: var(--dt-action-color-foreground-inverted-hover);
361
- --button-color-background: var(--dt-action-color-background-inverted-hover);
362
- }
363
-
364
- &:active:not([disabled]),
365
- &.d-btn--active:not([disabled]),
366
- &.d-btn--active:active:not([disabled]) {
367
- --button-color-text: var(--dt-action-color-foreground-inverted-active);
368
- --button-color-background: var(--dt-action-color-background-inverted-active);
369
- }
370
-
371
- // -- OUTLINED
372
- &.d-btn--outlined {
373
- --button-color-border: var(--dt-action-color-border-inverted-outlined-default);
374
- }
375
-
376
- // -- PRIMARY
377
- &.d-btn--primary {
378
- --button-color-text: var(--dt-action-color-foreground-inverted-primary-default);
379
- --button-color-background: var(--dt-action-color-background-inverted-primary-default);
380
-
381
- &:hover:not([disabled]) {
382
- --button-color-text: var(--dt-action-color-foreground-inverted-primary-hover);
383
- --button-color-background: var(--dt-action-color-background-inverted-primary-hover);
384
- }
385
-
386
- &:active:not([disabled]),
387
- &.d-btn--active:not([disabled]),
388
- &.d-btn--active:active:not([disabled]) {
389
- --button-color-text: var(--dt-action-color-foreground-inverted-primary-active);
390
- --button-color-background: var(--dt-action-color-background-inverted-primary-active);
391
- }
392
- }
393
- }
394
-
395
- // $$ ICON ONLY
396
- // ----------------------------------------------------------------------------
397
- .d-btn--icon-only {
398
- --button-padding-x: var(--button-padding-y-md);
399
- --button-padding-y: var(--button-padding-y-md);
400
-
401
- .d-btn__icon {
402
- margin: unset;
403
- }
404
-
405
- // Adjust padding based on sizes
406
- &.d-btn--xs {
407
- --button-padding-y: var(--button-padding-y-xs);
408
- --button-padding-x: var(--button-padding-y-xs);
409
- }
410
-
411
- &.d-btn--sm {
412
- --button-padding-y: var(--button-padding-y-sm);
413
- --button-padding-x: var(--button-padding-y-sm);
414
- }
415
-
416
- &.d-btn--md {
417
- --button-padding-x: var(--button-padding-y-md);
418
- --button-padding-y: var(--button-padding-y-md);
419
- }
420
-
421
- &.d-btn--lg {
422
- --button-padding-x: calc(var(--button-padding-y-lg) + var(--dt-space-100));
423
- --button-padding-y: calc(var(--button-padding-y-lg) + var(--dt-space-100));
424
- }
425
-
426
- &.d-btn--xl {
427
- --button-padding-x: calc(var(--button-padding-y-xl) + var(--dt-space-300));
428
- --button-padding-y: calc(var(--button-padding-y-xl) + var(--dt-space-300));
429
- }
430
- }
431
-
432
- // $$ LOADING STATE
433
- // ----------------------------------------------------------------------------
434
- .d-btn--loading {
435
- .d-btn-loading();
436
- }
437
-
438
- // $$ DISABLED STATE
439
- // ----------------------------------------------------------------------------
440
- .d-btn--disabled {
441
- --button-color-text: var(--dt-action-color-foreground-disabled-default) !important;
442
- --button-color-background: var(--dt-action-color-background-disabled-default) !important;
443
- --button-color-border: transparent !important;
444
-
445
- cursor: not-allowed;
446
- transition: none;
447
- pointer-events: none;
448
- }
449
-
450
- // $$ BRAND BUTTONS
451
- // ----------------------------------------------------------------------------
452
- .d-btn--brand {
453
- --button-color-text: var(--dt-color-neutral-white);
454
- --button-color-background: hsl(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l));
455
-
456
- display: flex;
457
-
458
- &:hover:not([disabled]),
459
- &:active:not([disabled]) {
460
- --button-color-text: hsla(var(--dt-color-neutral-white-hsl) ~' / ' 90%);
461
- --button-color-background: hsl(var(--brand-color-h) calc(var(--brand-color-s) + 2.5%) calc(var(--brand-color-l) - 5%));
462
- }
463
-
464
- &:focus-visible {
465
- box-shadow: 0 0 0 var(--dt-space-100) var(--dt-color-neutral-white), 0 0 0 0.25em hsla(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l) ~' / ' 90%);
466
- }
467
-
468
- &:active:not([disabled]) {
469
- --button-color-background: hsl(var(--brand-color-h) calc(var(--brand-color-s) + 5%) calc(var(--brand-color-l) - 10%));
470
- }
471
-
472
- .d-btn__icon {
473
- align-items: center;
474
- justify-content: center;
475
- width: 2em;
476
- height: 2em;
477
- margin-right: var(--dt-space-400);
478
- margin-left: var(--dt-space-300-negative);
479
- background-color: var(--dt-color-neutral-white);
480
- border-radius: var(--dt-size-radius-200);
481
- }
482
-
483
- .d-btn__label {
484
- flex: 1 auto;
485
- }
486
- }
487
-
488
- // -- GOOGLE
489
- .d-btn--google {
490
- --brand-color-h: 217;
491
- --brand-color-s: 89%;
492
- --brand-color-l: 61%;
493
- }
494
- // -- OFFICE 365
495
- .d-btn--o365 {
496
- --brand-color-h: 15;
497
- --brand-color-s: 99%;
498
- --brand-color-l: 46%;
499
- }
500
- // -- LINKEDIN
501
- .d-btn--linkedin {
502
- --brand-color-h: 197;
503
- --brand-color-s: 100%;
504
- --brand-color-l: 26%;
505
- }
506
-
507
- // ============================================================================
508
- // @ BUTTON LOADER
509
- // Changes the button
510
- // ----------------------------------------------------------------------------
511
- // @@ BASE STYLE
512
- // ----------------------------------------------------------------------------
513
- .d-btn-loading() {
514
- // Disable clicking while the loader is in place
515
- pointer-events: none;
516
-
517
- // Hide anything that was there before
518
- .d-btn__icon,
519
- .d-btn__label {
520
- opacity: 0;
521
- transition: opacity 50ms var(--ttf-in-out);
522
- }
523
-
524
- // Show the loading animation
525
- &::before {
526
- position: absolute;
527
- width: var(--dt-size-500);
528
- height: var(--dt-size-500);
529
- border: var(--dt-size-200) solid currentColor;
530
- border-left-color: transparent !important;
531
- border-radius: var(--dt-size-radius-circle);
532
- animation: d-loading-circle 900ms infinite linear;
533
- content: '';
534
- }
535
- }
536
-
537
- // ============================================================================
538
- // $ BUTTON GROUP
539
- // ----------------------------------------------------------------------------
540
- .d-btn-group {
541
- display: flex;
542
-
543
- &--start {
544
- justify-content: flex-start;
545
- }
546
-
547
- &--end {
548
- justify-content: flex-end;
549
- }
550
-
551
- &--space-between {
552
- justify-content: space-between;
553
- }
554
- }
@@ -1,56 +0,0 @@
1
- //
2
- // DIALTONE
3
- // COMPONENTS: CARD
4
- //
5
- // These are card classes for Dialpad's design system Dialtone.
6
- // For further documentation of these and other classes,
7
- // visit https://dialpad.design/components/card
8
- //
9
- // TABLE OF CONTENTS
10
- // • BASE STYLE
11
- // • HEADER
12
- // • CONTENT
13
- // • FOOTER
14
- //
15
- // ============================================================================
16
- // $ BASE STYLE
17
- // ============================================================================
18
- // $$ WRAPPER
19
- // ----------------------------------------------------------------------------
20
- .d-card {
21
- display: flex;
22
- flex-direction: column;
23
- justify-content: center;
24
- background: var(--dt-color-surface-primary);
25
- border-radius: var(--dt-size-300);
26
- box-shadow: var(--dt-shadow-card);
27
- }
28
-
29
-
30
- // ============================================================================
31
- // $ CARD AREAS
32
- // ----------------------------------------------------------------------------
33
- // $$ HEADER
34
- // ----------------------------------------------------------------------------
35
- .d-card__header {
36
- display: flex;
37
- flex-direction: row;
38
- align-items: center;
39
- justify-content: space-between;
40
- padding: var(--dt-size-500) var(--dt-size-500) 0;
41
- }
42
-
43
- // $$ CONTENT
44
- // ----------------------------------------------------------------------------
45
- .d-card__content {
46
- padding: var(--dt-space-500);
47
- overflow-y: auto;
48
- }
49
-
50
- // $$ FOOTER
51
- // ----------------------------------------------------------------------------
52
- .d-card__footer {
53
- display: flex;
54
- align-items: center;
55
- padding: 0 var(--dt-space-500) var(--dt-space-500);
56
- }