@dialpad/dialtone 6.8.1 → 6.12.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.
- package/CHANGELOG.md +45 -0
- package/lib/build/less/components/banner.less +1 -1
- package/lib/build/less/components/button.less +31 -13
- package/lib/build/less/components/forms.less +1 -1
- package/lib/build/less/components/input.less +2 -2
- package/lib/build/less/components/link.less +6 -6
- package/lib/build/less/components/modal.less +1 -1
- package/lib/build/less/components/notice.less +1 -1
- package/lib/build/less/components/radio-checkbox.less +25 -25
- package/lib/build/less/components/selects.less +9 -9
- package/lib/build/less/components/skeleton.less +43 -0
- package/lib/build/less/components/table.less +1 -1
- package/lib/build/less/components/tabs.less +1 -1
- package/lib/build/less/components/toast.less +2 -2
- package/lib/build/less/components/tooltip.less +2 -2
- package/lib/build/less/dialtone-globals.less +10 -0
- package/lib/build/less/dialtone.less +4 -21
- package/lib/build/less/themes/default.less +9 -9
- package/lib/build/less/utilities/backgrounds.less +4 -54
- package/lib/build/less/utilities/borders.less +3 -4
- package/lib/build/less/utilities/colors.less +33 -209
- package/lib/build/less/utilities/effects.less +8 -2
- package/lib/build/less/utilities/flex.less +3 -32
- package/lib/build/less/utilities/grid.less +2 -19
- package/lib/build/less/utilities/internals.less +316 -180
- package/lib/build/less/utilities/layout.less +18 -19
- package/lib/build/less/utilities/responsive.less +0 -143
- package/lib/build/less/utilities/sizing.less +2 -2
- package/lib/build/less/utilities/spacing.less +2 -2
- package/lib/build/less/utilities/svg.less +1 -1
- package/lib/build/less/utilities/typography.less +4 -4
- package/lib/build/less/variables/colors.less +3 -3
- package/lib/build/less/variables/layout.less +21 -0
- package/lib/build/svg/spot/file-upload.svg +56 -0
- package/lib/build/svg/system/windows.svg +6 -0
- package/lib/dist/css/dialtone.css +12603 -25650
- package/lib/dist/css/dialtone.min.css +1 -1
- package/lib/dist/svg/spot/file-upload.svg +1 -0
- package/lib/dist/svg/system/windows.svg +1 -0
- package/lib/dist/vue/icons/IconWindows.vue +3 -0
- package/lib/dist/vue/spot/SpotFileUpload.vue +3 -0
- package/package.json +11 -8
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// DIALTONE
|
|
3
|
-
// UTILITIES: RESPONSIVE
|
|
4
|
-
//
|
|
5
|
-
// These are responsive utility classes for Dialpad's design system Dialtone.
|
|
6
|
-
// For further documentation of these and other classes,
|
|
7
|
-
// visit https://dialpad.design/utilities/responsive
|
|
8
|
-
//
|
|
9
|
-
// TABLE OF CONTENTS
|
|
10
|
-
// • BREAKPOINTS
|
|
11
|
-
//
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// $ BREAKPOINTS
|
|
14
|
-
// ----------------------------------------------------------------------------
|
|
15
|
-
#d-internal-config {
|
|
16
|
-
|
|
17
|
-
// Breakpoints for our responsive classes
|
|
18
|
-
@breakpoints: 1264px, 980px, 640px, 480px;
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
#d-internals() {
|
|
23
|
-
// ========================================================================
|
|
24
|
-
// $ RESPONSIVENESS
|
|
25
|
-
// #responsive renders a class and all responsive sizes.
|
|
26
|
-
//
|
|
27
|
-
// USAGE:
|
|
28
|
-
// #d-internals #responsive('.d-block', { display: block !important; })
|
|
29
|
-
//
|
|
30
|
-
// ------------------------------------------------------------------------
|
|
31
|
-
#responsive(@class, @rules) {
|
|
32
|
-
@nodot-s: replace(@class, '^\.', '');
|
|
33
|
-
@nodot: ~'@{nodot-s}';
|
|
34
|
-
|
|
35
|
-
& when (@class = @nodot-s) {
|
|
36
|
-
error {
|
|
37
|
-
error: @CLASS-NAME-MUST-START-WITH-A-DOT;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.@{nodot} {
|
|
42
|
-
@rules();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
#d-internals-collect-xl() {
|
|
46
|
-
.xl\:@{nodot} {
|
|
47
|
-
@rules();
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
#d-internals-collect-lg() {
|
|
51
|
-
.lg\:@{nodot} {
|
|
52
|
-
@rules();
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
#d-internals-collect-md() {
|
|
56
|
-
.md\:@{nodot} {
|
|
57
|
-
@rules();
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
#d-internals-collect-sm() {
|
|
61
|
-
.sm\:@{nodot} {
|
|
62
|
-
@rules();
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
#screen-xl(@rules, @force-selector: false) {
|
|
68
|
-
#d-internal-config();
|
|
69
|
-
#d-internals #responsive-generate(0, @rules, @breakpoints, 1, @force-selector);
|
|
70
|
-
}
|
|
71
|
-
#screen-lg(@rules, @force-selector: false) {
|
|
72
|
-
#d-internal-config();
|
|
73
|
-
#d-internals #responsive-generate(1, @rules, @breakpoints, 1, @force-selector);
|
|
74
|
-
}
|
|
75
|
-
#screen-md(@rules, @force-selector: false) {
|
|
76
|
-
#d-internal-config();
|
|
77
|
-
#d-internals #responsive-generate(2, @rules, @breakpoints, 1, @force-selector);
|
|
78
|
-
}
|
|
79
|
-
#screen-sm(@rules, @force-selector: false) {
|
|
80
|
-
#d-internal-config();
|
|
81
|
-
#d-internals #responsive-generate(3, @rules, @breakpoints, 1, @force-selector);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// ------------------------------------------------------------------------
|
|
86
|
-
// @bp-index values:
|
|
87
|
-
// 0 = large
|
|
88
|
-
// 1 = medium
|
|
89
|
-
// 2 = small
|
|
90
|
-
//
|
|
91
|
-
// @start-index is the index number which is increases to exhaust the list.
|
|
92
|
-
// ------------------------------------------------------------------------
|
|
93
|
-
#responsive-generate(@bp-index, @rules, @breakpoints, @start-index, @force-selector: false) when (@start-index < length(@breakpoints)) {
|
|
94
|
-
|
|
95
|
-
// If the first list item is a string, it's a selector that is prepended to
|
|
96
|
-
// the responsive class
|
|
97
|
-
& when (isstring(extract(@breakpoints, @start-index))) {
|
|
98
|
-
|
|
99
|
-
// The actual breakpoint; '+1' to skip the (selector) string
|
|
100
|
-
@bp: extract(@breakpoints, @start-index + @bp-index + 1);
|
|
101
|
-
|
|
102
|
-
// Convert the selector string into an identifier (i.e. remove the quotes)
|
|
103
|
-
@sel-s: extract(@breakpoints, @start-index);
|
|
104
|
-
@sel: ~'@{sel-s}';
|
|
105
|
-
|
|
106
|
-
@media (max-width: (@bp)) {
|
|
107
|
-
@{sel} & {
|
|
108
|
-
@rules();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Recursively descend to handle the next breakpoint ('+5' for the
|
|
113
|
-
// selector string and the four breakpoint values)
|
|
114
|
-
#d-internals #responsive-generate(@bp-index, @rules, @start-index + 5, @force-selector);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// If the first list element is a number (i.e. pixel value), there is no
|
|
118
|
-
// selector string
|
|
119
|
-
& when (isnumber(extract(@breakpoints, @start-index))) {
|
|
120
|
-
|
|
121
|
-
// The actual breakpoint
|
|
122
|
-
@bp: extract(@breakpoints, @start-index + @bp-index);
|
|
123
|
-
|
|
124
|
-
& when not (@force-selector) {
|
|
125
|
-
@media (max-width: (@bp)) {
|
|
126
|
-
@rules();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
& when (force-selector) {
|
|
131
|
-
@media (max-width: (@bp)) {
|
|
132
|
-
html & {
|
|
133
|
-
@rules();
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Recursively descend to handle the next breakpoint ('+4' for the
|
|
139
|
-
// four breakpoint values)
|
|
140
|
-
#d-internals #responsive-generate(@bp-index, @rules, @start-index + 4, @force-selector);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//@import (reference) '../variables/typography.less';
|
|
2
|
+
//@import (reference) '../variables/spacing.less';
|
|
3
|
+
//@import (reference) '../utilities/internals.less';
|
|
4
|
+
//@import (reference) '../utilities/grid.less';
|
|
5
5
|
|
|
6
6
|
//
|
|
7
7
|
// DIALTONE
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
success-color-hsl: var(--green-500-hsl);
|
|
93
93
|
success-color-hover: var(--green-600);
|
|
94
94
|
|
|
95
|
-
muted-color: var(--black-
|
|
96
|
-
muted-color-hsl: var(--black-
|
|
95
|
+
muted-color: var(--black-800);
|
|
96
|
+
muted-color-hsl: var(--black-800-hsl);
|
|
97
97
|
muted-color-hover: var(--black-800);
|
|
98
98
|
|
|
99
99
|
inverted-color: var(--black-025);
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
focus-ring-success: hsla(var(--success-color-hsl) ~' / ' 75%);
|
|
111
111
|
focus-ring-warning: hsla(var(--warning-color-hsl) ~' / ' 75%);
|
|
112
112
|
focus-ring-error: hsla(var(--error-color-hsl) ~' / ' 75%);
|
|
113
|
-
focus-ring-muted: hsla(var(--muted-color-hsl) ~' / '
|
|
113
|
+
focus-ring-muted: hsla(var(--muted-color-hsl) ~' / ' 25%);
|
|
114
114
|
focus-ring-inverted: hsla(var(--inverted-color-hsl) ~' / ' 50%);
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -130,3 +130,24 @@
|
|
|
130
130
|
zi-modal: @zi-modal;
|
|
131
131
|
zi-notification: @zi-notification;
|
|
132
132
|
}
|
|
133
|
+
|
|
134
|
+
// ============================================================================
|
|
135
|
+
// $ GRID VARIABLES
|
|
136
|
+
// ----------------------------------------------------------------------------
|
|
137
|
+
@grid-vars: {
|
|
138
|
+
// Grid Layout Variables
|
|
139
|
+
sidebar-width: minmax(20rem, 30rem);
|
|
140
|
+
content-width: minmax(32rem, 90ch);
|
|
141
|
+
header-height: minmax(6.4rem, min-content);
|
|
142
|
+
content-height: minmax(64rem, max-content);
|
|
143
|
+
|
|
144
|
+
// Grid Columns
|
|
145
|
+
grid-columns: 12;
|
|
146
|
+
grid-column-width: minmax(min-content, 24rem);
|
|
147
|
+
grid-column-auto: 1fr;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// ============================================================================
|
|
151
|
+
// $ FLEX VARIABLES
|
|
152
|
+
// ----------------------------------------------------------------------------
|
|
153
|
+
@flex-columns: 12;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M68.9695 7L33 7V71.3445H86.2232V24.2538L68.9695 7Z" fill="#EAE9EF"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M42 33H79.2222V31.4012H42V33Z" fill="#6C3DFF"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 39.3827H79.2222V37.7839H41.9999V39.3827Z" fill="#6C3DFF"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 45.011H79.2222V43.3223H41.9999V45.011Z" fill="#6C3DFF"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M46.334 63.1294H79.2222V61.5306H46.334V63.1294Z" fill="#6C3DFF"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 51.1566L79.2222 51.1566V49.5578L41.9999 49.5578V51.1566Z" fill="#6C3DFF"/>
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M43.5507 57.077H79.2222V55.4782H43.5507V57.077Z" fill="#6C3DFF"/>
|
|
9
|
+
<g opacity="0.2">
|
|
10
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M42 33H79.2222V31.4012H42V33Z" fill="white"/>
|
|
11
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 39.3827H79.2222V37.7839H41.9999V39.3827Z" fill="white"/>
|
|
12
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 45.011H79.2222V43.3223H41.9999V45.011Z" fill="white"/>
|
|
13
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M46.334 63.1294H79.2222V61.5306H46.334V63.1294Z" fill="white"/>
|
|
14
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.9999 51.1566L79.2222 51.1566V49.5578L41.9999 49.5578V51.1566Z" fill="white"/>
|
|
15
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M43.5507 57.077H79.2222V55.4782H43.5507V57.077Z" fill="white"/>
|
|
16
|
+
</g>
|
|
17
|
+
<g filter="url(#filter0_d_203_10)">
|
|
18
|
+
<path d="M68.97 24.25H86.22L68.97 7L68.97 24.25Z" fill="white"/>
|
|
19
|
+
</g>
|
|
20
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M54.9695 18.1213H19V82.4658H72.2232V35.375L54.9695 18.1213Z" fill="#F7F7F9"/>
|
|
21
|
+
<g clip-path="url(#clip0_203_10)">
|
|
22
|
+
<rect x="31.4585" y="44.9688" width="28.3062" height="19.7763" fill="#6C3DFF"/>
|
|
23
|
+
<rect opacity="0.7" x="31.4585" y="44.9688" width="28.3062" height="19.7763" fill="white"/>
|
|
24
|
+
<path d="M40.0327 55.635L32.1991 64.745C39.5815 64.7398 59.7602 64.75 59.7602 64.75V57.3915L53.1808 51.8323L46.1054 59.6772L40.0327 55.635Z" fill="#6C3DFF"/>
|
|
25
|
+
<path opacity="0.3" d="M40.0327 55.635L32.1991 64.745C39.5815 64.7398 59.7602 64.75 59.7602 64.75V57.3915L53.1808 51.8323L46.1054 59.6772L40.0327 55.635Z" fill="white"/>
|
|
26
|
+
<path d="M37.3324 53.5362C37.7672 53.4194 38.1575 53.1762 38.4541 52.8376C38.7507 52.4989 38.9402 52.0799 38.9986 51.6335C39.0571 51.1872 38.9819 50.7335 38.7825 50.3299C38.5831 49.9263 38.2685 49.5909 37.8785 49.3661C37.4884 49.1412 37.0405 49.0371 36.5913 49.0669C36.1421 49.0967 35.7119 49.2589 35.3549 49.5332C34.9979 49.8075 34.7304 50.1815 34.5859 50.6079C34.4415 51.0343 34.4268 51.4939 34.5436 51.9287C34.6212 52.2173 34.7549 52.4879 34.937 52.7249C35.1191 52.9619 35.3461 53.1607 35.6051 53.31C35.8641 53.4593 36.1499 53.5561 36.4463 53.5949C36.7427 53.6337 37.0438 53.6137 37.3324 53.5362Z" fill="#F7F7F9"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g filter="url(#filter1_d_203_10)">
|
|
29
|
+
<path d="M54.97 35.38H72.22L54.97 18.12L54.97 35.38Z" fill="white"/>
|
|
30
|
+
</g>
|
|
31
|
+
<path d="M29 80C29 85.5228 24.5228 90 19 90C13.4772 90 9 85.5228 9 80C9 74.4772 13.4772 70 19 70C24.5228 70 29 74.4772 29 80Z" fill="#6C3DFF"/>
|
|
32
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.7244 74.6066C19.0068 74.3242 19.4647 74.3242 19.7471 74.6066L24.3489 79.2084C24.6313 79.4908 24.6313 79.9486 24.3489 80.231C24.0665 80.5134 23.6086 80.5134 23.3262 80.231L19.9588 76.8636L19.9588 84.8419L18.5126 84.8419L18.5126 76.8636L15.1452 80.231C14.8628 80.5134 14.405 80.5134 14.1226 80.231C13.8402 79.9486 13.8402 79.4908 14.1226 79.2084L18.7244 74.6066Z" fill="white"/>
|
|
33
|
+
<defs>
|
|
34
|
+
<filter id="filter0_d_203_10" x="61.2427" y="2.85999" width="32.7045" height="32.7045" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
35
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
36
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
37
|
+
<feOffset dy="3.58726"/>
|
|
38
|
+
<feGaussianBlur stdDeviation="3.86364"/>
|
|
39
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
|
|
40
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_203_10"/>
|
|
41
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_203_10" result="shape"/>
|
|
42
|
+
</filter>
|
|
43
|
+
<filter id="filter1_d_203_10" x="47.1973" y="13.9556" width="32.7954" height="32.8054" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
44
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
45
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
46
|
+
<feOffset dy="3.60836"/>
|
|
47
|
+
<feGaussianBlur stdDeviation="3.88636"/>
|
|
48
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
|
|
49
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_203_10"/>
|
|
50
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_203_10" result="shape"/>
|
|
51
|
+
</filter>
|
|
52
|
+
<clipPath id="clip0_203_10">
|
|
53
|
+
<rect width="28.3062" height="19.7812" fill="white" transform="translate(31.4585 44.9688)"/>
|
|
54
|
+
</clipPath>
|
|
55
|
+
</defs>
|
|
56
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.9029 12.819V20.3506L10.9358 18.9996V12.8035L19.9029 12.819Z" fill="#0D0C0F"/>
|
|
3
|
+
<path d="M10.9358 5.33399L19.9029 4.08545V11.499H10.9358V5.33399Z" fill="#0D0C0F"/>
|
|
4
|
+
<path d="M9.7445 12.7569V18.8909L3.10205 18.0057V12.7258L9.7445 12.7569Z" fill="#0D0C0F"/>
|
|
5
|
+
<path d="M3.09717 6.32779L9.74444 5.44263V11.5766H3.10039L3.09717 6.32779Z" fill="#0D0C0F"/>
|
|
6
|
+
</svg>
|