@dolanske/vui 1.3.0 → 1.4.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.
- package/LICENSE +1 -1
- package/dist/components/Accordion/Accordion.vue.d.ts +1 -0
- package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +5 -0
- package/dist/components/Grid/Grid.vue.d.ts +1 -0
- package/dist/fonts/GeistMono-Regular.ttf +0 -0
- package/dist/fonts/GeistMono-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-Black.ttf +0 -0
- package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-Light.ttf +0 -0
- package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/vui.css +1 -1
- package/dist/vui.js +2317 -2322
- package/package.json +2 -2
- package/src/App.vue +8 -0
- package/src/components/Accordion/Accordion.vue +10 -3
- package/src/components/Accordion/accordion.scss +18 -3
- package/src/components/Button/Button.vue +5 -4
- package/src/components/Button/button.scss +9 -1
- package/src/components/ButtonGroup/button-group.scss +2 -2
- package/src/components/Calendar/calendar.scss +5 -0
- package/src/components/Card/Card.vue +1 -1
- package/src/components/CopyClipboard/copy-clipboard.scss +1 -1
- package/src/components/Dropdown/dropdown-item.scss +1 -1
- package/src/components/Dropdown/dropdown.scss +2 -2
- package/src/components/Grid/Grid.vue +3 -0
- package/src/components/Input/input.scss +3 -3
- package/src/components/OTP/otp.scss +3 -3
- package/src/components/Popout/popout.scss +1 -1
- package/src/components/Progress/progress.scss +1 -1
- package/src/components/Select/Select.vue +2 -0
- package/src/components/Select/select.scss +1 -1
- package/src/components/Sidebar/sidebar.scss +1 -1
- package/src/components/Table/table.scss +2 -2
- package/src/components/Tabs/Tabs.vue +1 -1
- package/src/components/Tabs/tabs.scss +2 -2
- package/src/examples/ExampleAccordions.vue +17 -4
- package/src/examples/ExamplePalette.vue +6 -0
- package/src/examples/ExampleTabs.vue +3 -2
- package/src/internal/Backdrop/backdrop.scss +2 -2
- package/src/style/core.scss +24 -10
- package/src/style/fonts.scss +73 -0
- package/src/style/layout.scss +8 -4
- package/src/style/theme.scss +1 -1
- package/src/style/tooltip.scss +4 -4
- package/src/style/typography.scss +41 -23
- package/src/vite-env.d.ts +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Regular
|
|
2
|
+
@font-face {
|
|
3
|
+
font-display: swap;
|
|
4
|
+
font-family: 'Inter';
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 300;
|
|
7
|
+
src: url('/fonts/Inter_18pt-Light.ttf') format('truetype');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@font-face {
|
|
11
|
+
font-display: swap;
|
|
12
|
+
font-family: 'Inter';
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
src: url('/fonts/Inter_18pt-Regular.ttf') format('truetype');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@font-face {
|
|
19
|
+
font-display: swap;
|
|
20
|
+
font-family: 'Inter';
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
src: url('/fonts/Inter_18pt-Medium.ttf') format('truetype');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-display: swap;
|
|
28
|
+
font-family: 'Inter';
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
src: url('/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-display: swap;
|
|
36
|
+
font-family: 'Inter';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
src: url('/fonts/Inter_18pt-Bold.ttf') format('truetype');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-display: swap;
|
|
44
|
+
font-family: 'Inter';
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 800;
|
|
47
|
+
src: url('/fonts/Inter_18pt-ExtraBold.ttf') format('truetype');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@font-face {
|
|
51
|
+
font-display: swap;
|
|
52
|
+
font-family: 'Inter';
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 900;
|
|
55
|
+
src: url('/fonts/Inter_18pt-Black.ttf') format('truetype');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Monospace
|
|
59
|
+
@font-face {
|
|
60
|
+
font-display: swap;
|
|
61
|
+
font-family: 'Geist Mono';
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
src: url('/fonts/GeistMono-Regular.ttf') format('truetype');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@font-face {
|
|
68
|
+
font-display: swap;
|
|
69
|
+
font-family: 'Geist Mono';
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
src: url('/fonts/GeistMono-SemiBold.ttf') format('truetype');
|
|
73
|
+
}
|
package/src/style/layout.scss
CHANGED
|
@@ -19,12 +19,16 @@ $containers: 'xs', 's', 'm', 'l', 'xl', 'xxl';
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
$
|
|
22
|
+
$sizes: 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100;
|
|
23
23
|
|
|
24
|
-
@each $
|
|
24
|
+
@each $size in $sizes {
|
|
25
25
|
$extra: '%';
|
|
26
|
-
.w-#{$
|
|
27
|
-
width: #{$
|
|
26
|
+
.w-#{$size} {
|
|
27
|
+
width: #{$size + $extra} !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.h-#{$size} {
|
|
31
|
+
height: #{$size + $extra} !important;
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
package/src/style/theme.scss
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
--light-color-bg-accent-lowered: hsla(from var(--light-color-accent) h s l / 0.6);
|
|
42
42
|
--light-color-bg-accent-raised: hsla(from var(--light-color-accent) h s l / 0.75);
|
|
43
43
|
|
|
44
|
-
--light-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.
|
|
44
|
+
--light-box-shadow: 0 2px 12px rgba(8, 8, 8, 0.085);
|
|
45
45
|
--light-box-shadow-strong: 0 4px 15px rgba(8, 8, 8, 0.2);
|
|
46
46
|
}
|
|
47
47
|
|
package/src/style/tooltip.scss
CHANGED
|
@@ -32,7 +32,7 @@ Available tooltip positions:
|
|
|
32
32
|
max-width: 512px;
|
|
33
33
|
opacity: 0;
|
|
34
34
|
cursor: default;
|
|
35
|
-
z-index: -
|
|
35
|
+
z-index: var(--z-behind);
|
|
36
36
|
visibility: hidden;
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
max-width: 256px;
|
|
@@ -43,7 +43,7 @@ Available tooltip positions:
|
|
|
43
43
|
&:before {
|
|
44
44
|
visibility: visible;
|
|
45
45
|
opacity: 1;
|
|
46
|
-
z-index:
|
|
46
|
+
z-index: var(--z-popout);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -67,7 +67,7 @@ Available tooltip positions:
|
|
|
67
67
|
content: attr(data-title-left);
|
|
68
68
|
top: 50%;
|
|
69
69
|
transform: translateY(-50%);
|
|
70
|
-
z-index:
|
|
70
|
+
z-index: var(--z-popout);
|
|
71
71
|
right: calc(100% + 4px);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ Available tooltip positions:
|
|
|
75
75
|
content: attr(data-title-right);
|
|
76
76
|
top: 50%;
|
|
77
77
|
transform: translateY(-50%);
|
|
78
|
-
z-index:
|
|
78
|
+
z-index: var(--z-popout);
|
|
79
79
|
left: calc(100% + 4px);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -11,7 +11,8 @@ h4,
|
|
|
11
11
|
h5,
|
|
12
12
|
h6 {
|
|
13
13
|
display: block;
|
|
14
|
-
font-weight:
|
|
14
|
+
font-weight: var(--font-weight-extrabold);
|
|
15
|
+
line-height: var(--line-height-title);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
h1 {
|
|
@@ -44,8 +45,8 @@ table td,
|
|
|
44
45
|
blockquote,
|
|
45
46
|
p {
|
|
46
47
|
font-size: var(--font-size-m);
|
|
47
|
-
line-height:
|
|
48
|
-
font-weight:
|
|
48
|
+
line-height: var(--line-height-base);
|
|
49
|
+
font-weight: var(--font-weight);
|
|
49
50
|
|
|
50
51
|
& > * {
|
|
51
52
|
line-height: inherit;
|
|
@@ -62,20 +63,9 @@ p {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
code {
|
|
66
|
-
font-family: var(--global-font-mono);
|
|
67
|
-
border-radius: var(--border-radius-s);
|
|
68
|
-
background-color: var(--color-bg-raised);
|
|
69
|
-
color: var(--color-text);
|
|
70
|
-
border: 1px solid var(--color-border);
|
|
71
|
-
padding: 0px 3px;
|
|
72
|
-
font-weight: var(--font-weight);
|
|
73
|
-
font-size: var(--font-size-s);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
66
|
strong,
|
|
77
67
|
b {
|
|
78
|
-
font-weight: var(--font-weight-
|
|
68
|
+
font-weight: var(--font-weight-bold);
|
|
79
69
|
}
|
|
80
70
|
|
|
81
71
|
i {
|
|
@@ -87,6 +77,20 @@ p {
|
|
|
87
77
|
}
|
|
88
78
|
}
|
|
89
79
|
|
|
80
|
+
code {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
font-family: var(--global-font-mono);
|
|
83
|
+
border-radius: var(--border-radius-s);
|
|
84
|
+
background-color: var(--color-bg-raised);
|
|
85
|
+
color: var(--color-text);
|
|
86
|
+
border: 1px solid var(--color-border);
|
|
87
|
+
padding: 0px 4px;
|
|
88
|
+
font-weight: var(--font-weight);
|
|
89
|
+
font-size: var(--font-size-s);
|
|
90
|
+
min-height: 22px;
|
|
91
|
+
line-height: var(--line-height-base);
|
|
92
|
+
}
|
|
93
|
+
|
|
90
94
|
hr {
|
|
91
95
|
border-bottom: 1px solid var(--color-border);
|
|
92
96
|
}
|
|
@@ -102,27 +106,41 @@ blockquote {
|
|
|
102
106
|
padding-block: var(--space-s);
|
|
103
107
|
padding-left: var(--space-l);
|
|
104
108
|
border-left: 3px solid var(--color-border);
|
|
109
|
+
line-height: var(--line-height-base);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
pre {
|
|
108
113
|
font-family: var(--global-font-mono);
|
|
109
114
|
font-size: var(--font-size-s);
|
|
110
|
-
font-weight:
|
|
111
|
-
line-height:
|
|
115
|
+
font-weight: var(--font-weight);
|
|
116
|
+
line-height: var(--line-height-base);
|
|
112
117
|
padding: var(--space-m);
|
|
113
118
|
border: 1px solid var(--color-border);
|
|
114
119
|
border-radius: var(--border-radius-m);
|
|
115
120
|
white-space: pre-wrap;
|
|
116
121
|
background-color: var(--color-bg-raised);
|
|
117
|
-
z-index:
|
|
122
|
+
z-index: var(--z-default);
|
|
118
123
|
position: relative;
|
|
119
124
|
|
|
125
|
+
code {
|
|
126
|
+
min-height: unset;
|
|
127
|
+
padding: unset;
|
|
128
|
+
border-radius: unset;
|
|
129
|
+
border: unset;
|
|
130
|
+
color: inherit;
|
|
131
|
+
font-weight: inherit;
|
|
132
|
+
font-size: inherit;
|
|
133
|
+
background-color: inherit;
|
|
134
|
+
font-family: inherit;
|
|
135
|
+
line-height: inherit;
|
|
136
|
+
}
|
|
137
|
+
|
|
120
138
|
&[data-lang]::after {
|
|
121
139
|
content: attr(data-lang);
|
|
122
140
|
font-family: var(--global-font);
|
|
123
141
|
display: block;
|
|
124
142
|
position: absolute;
|
|
125
|
-
font-weight:
|
|
143
|
+
font-weight: var(--font-weight-medium);
|
|
126
144
|
top: 6px;
|
|
127
145
|
right: 6px;
|
|
128
146
|
padding: 5px;
|
|
@@ -207,7 +225,7 @@ table {
|
|
|
207
225
|
padding-block: var(--space-s);
|
|
208
226
|
min-width: 80px;
|
|
209
227
|
font-size: var(--font-size-m);
|
|
210
|
-
line-height:
|
|
228
|
+
line-height: var(--line-height-base);
|
|
211
229
|
font-variant-numeric: tabular-nums;
|
|
212
230
|
vertical-align: top;
|
|
213
231
|
|
|
@@ -219,7 +237,7 @@ table {
|
|
|
219
237
|
}
|
|
220
238
|
|
|
221
239
|
th {
|
|
222
|
-
font-weight:
|
|
240
|
+
font-weight: var(--font-weight-semibold);
|
|
223
241
|
font-size: var(--font-size-xs);
|
|
224
242
|
text-transform: uppercase;
|
|
225
243
|
}
|
|
@@ -227,7 +245,7 @@ table {
|
|
|
227
245
|
tr {
|
|
228
246
|
td {
|
|
229
247
|
border-bottom: 1px solid var(--color-border);
|
|
230
|
-
font-weight:
|
|
248
|
+
font-weight: var(--font-weight);
|
|
231
249
|
}
|
|
232
250
|
|
|
233
251
|
&:first-child {
|
|
@@ -286,7 +304,7 @@ dl {
|
|
|
286
304
|
dt {
|
|
287
305
|
padding-left: 0;
|
|
288
306
|
color: var(--color-text-lighter);
|
|
289
|
-
font-weight:
|
|
307
|
+
font-weight: var(--font-weight-medium);
|
|
290
308
|
font-size: var(--font-size-m);
|
|
291
309
|
grid-column-start: 1;
|
|
292
310
|
}
|
package/src/vite-env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
1
|
+
/// <reference types="vite/client" />
|