@voidable/theme 0.0.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/LICENSE.md +25 -0
- package/README.md +42 -0
- package/package.json +18 -0
- package/src/components/accordion.css +58 -0
- package/src/components/alert.css +53 -0
- package/src/components/avatar.css +26 -0
- package/src/components/badge.css +36 -0
- package/src/components/banner.css +52 -0
- package/src/components/breadcrumbs.css +41 -0
- package/src/components/button.css +99 -0
- package/src/components/card.css +47 -0
- package/src/components/checkbox-group.css +27 -0
- package/src/components/checkbox.css +84 -0
- package/src/components/combobox.css +92 -0
- package/src/components/compose-input.css +68 -0
- package/src/components/dialog.css +77 -0
- package/src/components/divider.css +43 -0
- package/src/components/drawer.css +131 -0
- package/src/components/error-fallback.css +56 -0
- package/src/components/field.css +43 -0
- package/src/components/file-upload.css +103 -0
- package/src/components/hamburger.css +75 -0
- package/src/components/input.css +57 -0
- package/src/components/list.css +37 -0
- package/src/components/multiselect.css +170 -0
- package/src/components/nav-bar.css +28 -0
- package/src/components/pagination.css +75 -0
- package/src/components/panel.css +26 -0
- package/src/components/popover.css +44 -0
- package/src/components/progress.css +42 -0
- package/src/components/radio-group.css +24 -0
- package/src/components/radio.css +80 -0
- package/src/components/scroll-area.css +42 -0
- package/src/components/select.css +97 -0
- package/src/components/skeleton.css +31 -0
- package/src/components/slider.css +126 -0
- package/src/components/spinner.css +45 -0
- package/src/components/status-dot.css +21 -0
- package/src/components/stepper.css +68 -0
- package/src/components/switch.css +81 -0
- package/src/components/table.css +46 -0
- package/src/components/tabs.css +64 -0
- package/src/components/tag.css +51 -0
- package/src/components/textarea.css +57 -0
- package/src/components/toast.css +72 -0
- package/src/components/tooltip.css +49 -0
- package/src/index.css +46 -0
- package/src/primitives.css +192 -0
- package/src/reset.css +36 -0
- package/src/tokens.css +110 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
void-select {
|
|
2
|
+
--_ch: 1.109rem;
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--void-space-1);
|
|
7
|
+
font-family: var(--void-font-sans);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
void-select::after {
|
|
11
|
+
content: '';
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: var(--void-space-3);
|
|
14
|
+
bottom: calc(var(--_ch) - 0.375rem);
|
|
15
|
+
width: 0.75rem;
|
|
16
|
+
height: 0.75rem;
|
|
17
|
+
background-color: var(--void-color-text-secondary);
|
|
18
|
+
opacity: 0.6;
|
|
19
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
20
|
+
mask-repeat: no-repeat;
|
|
21
|
+
mask-position: center;
|
|
22
|
+
mask-size: contain;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
void-select select {
|
|
27
|
+
width: 100%;
|
|
28
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
29
|
+
padding-right: var(--void-space-8);
|
|
30
|
+
background: var(--void-color-bg-secondary);
|
|
31
|
+
border: 1px solid var(--void-color-border);
|
|
32
|
+
border-radius: var(--void-radius-md);
|
|
33
|
+
color: var(--void-color-text);
|
|
34
|
+
font-family: inherit;
|
|
35
|
+
font-size: var(--void-text-sm);
|
|
36
|
+
font-weight: var(--void-weight-normal);
|
|
37
|
+
line-height: var(--void-leading-normal);
|
|
38
|
+
outline: none;
|
|
39
|
+
appearance: none;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
42
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out),
|
|
43
|
+
background var(--void-duration-fast) var(--void-ease-in-out);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
void-select select:hover {
|
|
47
|
+
border-color: var(--void-color-border-strong);
|
|
48
|
+
background: var(--void-color-bg-hover);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
void-select select:focus {
|
|
52
|
+
border-color: var(--void-color-border-focus);
|
|
53
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
void-select select:disabled {
|
|
57
|
+
opacity: 0.5;
|
|
58
|
+
cursor: not-allowed;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
void-select select option {
|
|
62
|
+
background: var(--void-color-bg-elevated);
|
|
63
|
+
color: var(--void-color-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
void-select[error]:not([error=""]) select {
|
|
67
|
+
border-color: var(--void-color-error);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
void-select[error]:not([error=""]) select:focus {
|
|
71
|
+
box-shadow: 0 0 0 1px var(--void-color-error);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
void-select[error]:not([error=""])::after {
|
|
75
|
+
bottom: calc(var(--_ch) - 0.375rem + var(--void-space-1) + 1.125rem);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.void-select-error {
|
|
79
|
+
color: var(--void-color-error);
|
|
80
|
+
font-size: var(--void-text-xs);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
void-select[size="sm"] { --_ch: 0.8125rem; }
|
|
84
|
+
void-select[size="sm"] select { padding: var(--void-space-1) var(--void-space-2); padding-right: var(--void-space-6); font-size: var(--void-text-xs); }
|
|
85
|
+
void-select[size="sm"]::after { right: var(--void-space-2); width: 0.625rem; height: 0.625rem; }
|
|
86
|
+
|
|
87
|
+
void-select[size="lg"] { --_ch: 1.40625rem; }
|
|
88
|
+
void-select[size="lg"] select { padding: var(--void-space-3) var(--void-space-4); padding-right: var(--void-space-10); font-size: var(--void-text-base); }
|
|
89
|
+
void-select[size="lg"]::after { right: var(--void-space-4); width: 0.875rem; height: 0.875rem; }
|
|
90
|
+
|
|
91
|
+
void-select[size="xl"] { --_ch: 1.84375rem; }
|
|
92
|
+
void-select[size="xl"] select { padding: var(--void-space-4) var(--void-space-5); padding-right: var(--void-space-10); font-size: var(--void-text-lg); }
|
|
93
|
+
void-select[size="xl"]::after { right: var(--void-space-5); width: 1rem; height: 1rem; }
|
|
94
|
+
|
|
95
|
+
void-select[size="xxl"] { --_ch: 2.1875rem; }
|
|
96
|
+
void-select[size="xxl"] select { padding: var(--void-space-5) var(--void-space-6); padding-right: var(--void-space-10); font-size: var(--void-text-xl); }
|
|
97
|
+
void-select[size="xxl"]::after { right: var(--void-space-6); width: 1.125rem; height: 1.125rem; }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
void-skeleton {
|
|
2
|
+
display: block;
|
|
3
|
+
background: var(--void-color-bg-hover);
|
|
4
|
+
border-radius: var(--void-radius-md);
|
|
5
|
+
animation: void-skeleton-pulse 1.8s ease-in-out infinite;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@keyframes void-skeleton-pulse {
|
|
9
|
+
0%, 100% { opacity: 1; }
|
|
10
|
+
50% { opacity: 0.4; }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Text variant — single line height */
|
|
14
|
+
void-skeleton[variant="text"] {
|
|
15
|
+
height: 1em;
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-radius: var(--void-radius-xs);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Circular variant */
|
|
21
|
+
void-skeleton[variant="circular"] {
|
|
22
|
+
width: 2.5rem;
|
|
23
|
+
height: 2.5rem;
|
|
24
|
+
border-radius: var(--void-radius-full);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Rectangular variant */
|
|
28
|
+
void-skeleton[variant="rectangular"] {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 6rem;
|
|
31
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
void-slider {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--void-space-2);
|
|
5
|
+
font-family: var(--void-font-sans);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
void-slider input[type="range"] {
|
|
9
|
+
-webkit-appearance: none;
|
|
10
|
+
appearance: none;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 4px;
|
|
13
|
+
background: linear-gradient(
|
|
14
|
+
to right,
|
|
15
|
+
var(--void-color-accent) var(--fill, 50%),
|
|
16
|
+
var(--void-color-border) var(--fill, 50%)
|
|
17
|
+
);
|
|
18
|
+
border-radius: var(--void-radius-full);
|
|
19
|
+
outline: none;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void-slider input[type="range"]::-webkit-slider-thumb {
|
|
25
|
+
-webkit-appearance: none;
|
|
26
|
+
appearance: none;
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
29
|
+
border-radius: var(--void-radius-full);
|
|
30
|
+
background: var(--void-color-accent);
|
|
31
|
+
border: none;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition: transform var(--void-duration-fast) var(--void-ease-in-out),
|
|
34
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
void-slider input[type="range"]::-webkit-slider-thumb:hover {
|
|
38
|
+
transform: scale(1.1);
|
|
39
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--void-color-accent) 25%, transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
void-slider input[type="range"]::-moz-range-track {
|
|
43
|
+
height: 4px;
|
|
44
|
+
background: var(--void-color-border);
|
|
45
|
+
border-radius: var(--void-radius-full);
|
|
46
|
+
border: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
void-slider input[type="range"]::-moz-range-thumb {
|
|
50
|
+
-moz-appearance: none;
|
|
51
|
+
appearance: none;
|
|
52
|
+
width: 1rem;
|
|
53
|
+
height: 1rem;
|
|
54
|
+
border-radius: var(--void-radius-full);
|
|
55
|
+
background: var(--void-color-accent);
|
|
56
|
+
border: none;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
transition: transform var(--void-duration-fast) var(--void-ease-in-out),
|
|
59
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
void-slider input[type="range"]::-moz-range-thumb:hover {
|
|
63
|
+
transform: scale(1.1);
|
|
64
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--void-color-accent) 25%, transparent);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
void-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
|
|
68
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--void-color-accent) 40%, transparent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
void-slider input[type="range"]:focus-visible::-moz-range-thumb {
|
|
72
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--void-color-accent) 40%, transparent);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.void-slider-value {
|
|
76
|
+
font-size: var(--void-text-xs);
|
|
77
|
+
color: var(--void-color-text-secondary);
|
|
78
|
+
min-width: 2rem;
|
|
79
|
+
text-align: right;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
void-slider[size="sm"] input[type="range"] {
|
|
83
|
+
height: 2px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
void-slider[size="sm"] input[type="range"]::-webkit-slider-thumb {
|
|
87
|
+
width: 0.75rem;
|
|
88
|
+
height: 0.75rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
void-slider[size="sm"] input[type="range"]::-moz-range-track {
|
|
92
|
+
height: 2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
void-slider[size="sm"] input[type="range"]::-moz-range-thumb {
|
|
96
|
+
width: 0.75rem;
|
|
97
|
+
height: 0.75rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
void-slider[size="lg"] input[type="range"] {
|
|
101
|
+
height: 6px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
void-slider[size="lg"] input[type="range"]::-webkit-slider-thumb {
|
|
105
|
+
width: 1.25rem;
|
|
106
|
+
height: 1.25rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
void-slider[size="lg"] input[type="range"]::-moz-range-track {
|
|
110
|
+
height: 6px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
void-slider[size="lg"] input[type="range"]::-moz-range-thumb {
|
|
114
|
+
width: 1.25rem;
|
|
115
|
+
height: 1.25rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
void-slider[disabled] {
|
|
119
|
+
opacity: 0.5;
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
void-slider[disabled] input[type="range"] {
|
|
124
|
+
cursor: not-allowed;
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
void-spinner {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 1.5rem;
|
|
6
|
+
height: 1.5rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
void-spinner::before {
|
|
10
|
+
content: '';
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
border: 2px solid var(--void-color-border);
|
|
15
|
+
border-top-color: var(--void-color-accent);
|
|
16
|
+
border-radius: var(--void-radius-full);
|
|
17
|
+
animation: void-spin 0.6s linear infinite;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes void-spin {
|
|
21
|
+
to { transform: rotate(360deg); }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Sizes */
|
|
25
|
+
void-spinner[size="sm"] { width: 1rem; height: 1rem; }
|
|
26
|
+
void-spinner[size="sm"]::before { border-width: 1.5px; }
|
|
27
|
+
void-spinner[size="lg"] { width: 2rem; height: 2rem; }
|
|
28
|
+
void-spinner[size="lg"]::before { border-width: 3px; }
|
|
29
|
+
void-spinner[size="xl"] { width: 2.5rem; height: 2.5rem; }
|
|
30
|
+
void-spinner[size="xl"]::before { border-width: 3.5px; }
|
|
31
|
+
void-spinner[size="xxl"] { width: 3.5rem; height: 3.5rem; }
|
|
32
|
+
void-spinner[size="xxl"]::before { border-width: 4px; }
|
|
33
|
+
|
|
34
|
+
/* Screen reader text (rendered by the component) */
|
|
35
|
+
void-spinner [data-void-sr] {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 1px;
|
|
38
|
+
height: 1px;
|
|
39
|
+
padding: 0;
|
|
40
|
+
margin: -1px;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
clip: rect(0, 0, 0, 0);
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
border: 0;
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
void-status-dot {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: 0.5rem;
|
|
4
|
+
height: 0.5rem;
|
|
5
|
+
border-radius: var(--void-radius-full);
|
|
6
|
+
background: var(--void-color-text-disabled);
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
void-status-dot[status="online"] {
|
|
11
|
+
background: var(--void-color-success);
|
|
12
|
+
box-shadow: 0 0 6px var(--void-color-success);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
void-status-dot[status="away"] {
|
|
16
|
+
background: var(--void-color-warning);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
void-status-dot[status="offline"] {
|
|
20
|
+
background: var(--void-color-text-disabled);
|
|
21
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
void-stepper {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
font-family: var(--void-font-sans);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.void-stepper-step {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--void-space-1);
|
|
12
|
+
flex: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.void-stepper-circle {
|
|
17
|
+
width: 2rem;
|
|
18
|
+
height: 2rem;
|
|
19
|
+
border-radius: var(--void-radius-full);
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
font-size: var(--void-text-xs);
|
|
24
|
+
font-weight: var(--void-weight-medium);
|
|
25
|
+
border: 2px solid var(--void-color-border);
|
|
26
|
+
transition: background-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
27
|
+
border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
28
|
+
color var(--void-duration-fast) var(--void-ease-in-out);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.void-stepper-step[data-state="completed"] .void-stepper-circle {
|
|
32
|
+
background-color: var(--void-color-accent);
|
|
33
|
+
border-color: var(--void-color-accent);
|
|
34
|
+
color: var(--void-color-text-on-accent);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.void-stepper-step[data-state="active"] .void-stepper-circle {
|
|
38
|
+
border-color: var(--void-color-accent);
|
|
39
|
+
color: var(--void-color-accent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.void-stepper-step[data-state="upcoming"] .void-stepper-circle {
|
|
43
|
+
border-color: var(--void-color-border);
|
|
44
|
+
color: var(--void-color-text-muted);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.void-stepper-label {
|
|
48
|
+
font-size: var(--void-text-xs);
|
|
49
|
+
color: var(--void-color-text-muted);
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.void-stepper-step[data-state="active"] .void-stepper-label {
|
|
54
|
+
color: var(--void-color-text);
|
|
55
|
+
font-weight: var(--void-weight-medium);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.void-stepper-connector {
|
|
59
|
+
height: 2px;
|
|
60
|
+
background-color: var(--void-color-border);
|
|
61
|
+
flex: 1;
|
|
62
|
+
align-self: flex-start;
|
|
63
|
+
margin-top: 1rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.void-stepper-connector[data-state="completed"] {
|
|
67
|
+
background-color: var(--void-color-accent);
|
|
68
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
void-switch {
|
|
2
|
+
--tone: var(--void-color-accent);
|
|
3
|
+
--tone-subtle: color-mix(in srgb, var(--tone) 20%, transparent);
|
|
4
|
+
--tone-border: color-mix(in srgb, var(--tone) 40%, transparent);
|
|
5
|
+
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.void-switch-track {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 2.25rem;
|
|
17
|
+
height: 1.25rem;
|
|
18
|
+
background: var(--tone-subtle);
|
|
19
|
+
border: 1px solid var(--tone-border);
|
|
20
|
+
border-radius: var(--void-radius-full);
|
|
21
|
+
transition: background var(--void-duration-fast) var(--void-ease-in-out),
|
|
22
|
+
border-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.void-switch-thumb {
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 2px;
|
|
28
|
+
width: 0.875rem;
|
|
29
|
+
height: 0.875rem;
|
|
30
|
+
background: var(--void-color-text-secondary);
|
|
31
|
+
border-radius: var(--void-radius-full);
|
|
32
|
+
transition: transform var(--void-duration-fast) var(--void-ease-in-out),
|
|
33
|
+
background var(--void-duration-fast) var(--void-ease-in-out);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void-switch[checked] .void-switch-track {
|
|
37
|
+
background: var(--tone);
|
|
38
|
+
border-color: var(--tone);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void-switch[checked] .void-switch-thumb {
|
|
42
|
+
transform: translateX(1rem);
|
|
43
|
+
background: var(--void-color-text-on-accent);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
void-switch:focus-visible .void-switch-track {
|
|
47
|
+
outline: 2px solid var(--void-color-border-focus);
|
|
48
|
+
outline-offset: 2px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
void-switch:hover .void-switch-track {
|
|
52
|
+
border-color: var(--void-color-border-strong);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
void-switch[color="error"] { --tone: var(--void-color-error); }
|
|
56
|
+
void-switch[color="warning"] { --tone: var(--void-color-warning); }
|
|
57
|
+
void-switch[color="success"] { --tone: var(--void-color-success); }
|
|
58
|
+
void-switch[color="info"] { --tone: var(--void-color-info); }
|
|
59
|
+
void-switch[color="notice"] { --tone: var(--void-color-notice); }
|
|
60
|
+
|
|
61
|
+
void-switch[size="sm"] .void-switch-track { width: 1.75rem; height: 1rem; }
|
|
62
|
+
void-switch[size="sm"] .void-switch-thumb { width: 0.625rem; height: 0.625rem; }
|
|
63
|
+
void-switch[size="sm"][checked] .void-switch-thumb { transform: translateX(0.75rem); }
|
|
64
|
+
|
|
65
|
+
void-switch[size="lg"] .void-switch-track { width: 2.75rem; height: 1.5rem; }
|
|
66
|
+
void-switch[size="lg"] .void-switch-thumb { width: 1.125rem; height: 1.125rem; }
|
|
67
|
+
void-switch[size="lg"][checked] .void-switch-thumb { transform: translateX(1.25rem); }
|
|
68
|
+
|
|
69
|
+
void-switch[size="xl"] .void-switch-track { width: 3.25rem; height: 1.75rem; }
|
|
70
|
+
void-switch[size="xl"] .void-switch-thumb { width: 1.375rem; height: 1.375rem; }
|
|
71
|
+
void-switch[size="xl"][checked] .void-switch-thumb { transform: translateX(1.5rem); }
|
|
72
|
+
|
|
73
|
+
void-switch[size="xxl"] .void-switch-track { width: 3.75rem; height: 2rem; }
|
|
74
|
+
void-switch[size="xxl"] .void-switch-thumb { width: 1.625rem; height: 1.625rem; }
|
|
75
|
+
void-switch[size="xxl"][checked] .void-switch-thumb { transform: translateX(1.75rem); }
|
|
76
|
+
|
|
77
|
+
void-switch[disabled] {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
void-table {
|
|
2
|
+
display: block;
|
|
3
|
+
font-family: var(--void-font-sans);
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
void-table table {
|
|
8
|
+
width: 100%;
|
|
9
|
+
border-collapse: collapse;
|
|
10
|
+
font-size: var(--void-text-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
void-table th {
|
|
14
|
+
text-align: left;
|
|
15
|
+
font-weight: var(--void-weight-medium);
|
|
16
|
+
font-size: var(--void-text-xs);
|
|
17
|
+
text-transform: uppercase;
|
|
18
|
+
letter-spacing: 0.05em;
|
|
19
|
+
color: var(--void-color-text-secondary);
|
|
20
|
+
padding: var(--void-space-3);
|
|
21
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void-table td {
|
|
25
|
+
padding: var(--void-space-3);
|
|
26
|
+
color: var(--void-color-text);
|
|
27
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
void-table[striped] tbody tr:nth-child(even) {
|
|
31
|
+
background: var(--void-color-bg-secondary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
void-table[hoverable] tbody tr:hover {
|
|
35
|
+
background: var(--void-color-bg-hover);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
void-table[compact] th,
|
|
39
|
+
void-table[compact] td {
|
|
40
|
+
padding: var(--void-space-2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
void-table[bordered] th,
|
|
44
|
+
void-table[bordered] td {
|
|
45
|
+
border: 1px solid var(--void-color-border);
|
|
46
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
void-tabs {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
font-family: var(--void-font-sans);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.void-tabs-list {
|
|
8
|
+
display: flex;
|
|
9
|
+
border-bottom: 1px solid var(--void-color-border);
|
|
10
|
+
gap: var(--void-space-1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.void-tabs-tab {
|
|
14
|
+
appearance: none;
|
|
15
|
+
background: none;
|
|
16
|
+
border: none;
|
|
17
|
+
border-bottom: 2px solid transparent;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
20
|
+
font-family: var(--void-font-sans);
|
|
21
|
+
font-size: var(--void-text-sm);
|
|
22
|
+
color: var(--void-color-text-muted);
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: color var(--void-duration-fast) var(--void-ease-in-out),
|
|
25
|
+
background var(--void-duration-fast) var(--void-ease-in-out),
|
|
26
|
+
border-bottom-color var(--void-duration-fast) var(--void-ease-in-out);
|
|
27
|
+
margin-bottom: -1px;
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.void-tabs-tab:hover {
|
|
32
|
+
color: var(--void-color-text);
|
|
33
|
+
background: var(--void-color-bg-hover);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.void-tabs-tab:focus-visible {
|
|
37
|
+
outline: 2px solid var(--void-color-accent);
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.void-tabs-tab[aria-selected="true"] {
|
|
42
|
+
color: var(--void-color-accent);
|
|
43
|
+
border-bottom-color: var(--void-color-accent);
|
|
44
|
+
font-weight: var(--void-weight-medium);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
void-tab-panel {
|
|
48
|
+
display: none;
|
|
49
|
+
padding-top: var(--void-space-4);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
void-tab-panel[active] {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
void-tabs[size="sm"] .void-tabs-tab {
|
|
57
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
58
|
+
font-size: var(--void-text-xs);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
void-tabs[size="lg"] .void-tabs-tab {
|
|
62
|
+
padding: var(--void-space-3) var(--void-space-4);
|
|
63
|
+
font-size: var(--void-text-base);
|
|
64
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
void-tag {
|
|
2
|
+
--tone: var(--void-color-accent);
|
|
3
|
+
--tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
|
|
4
|
+
--tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
|
|
5
|
+
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--void-space-1);
|
|
9
|
+
padding: 0.125rem var(--void-space-2);
|
|
10
|
+
border: 1px solid var(--tone-border);
|
|
11
|
+
border-radius: var(--void-radius-full);
|
|
12
|
+
background: var(--tone-subtle);
|
|
13
|
+
color: var(--void-color-text);
|
|
14
|
+
font-family: var(--void-font-sans);
|
|
15
|
+
font-size: var(--void-text-xs);
|
|
16
|
+
font-weight: var(--void-weight-medium);
|
|
17
|
+
line-height: var(--void-leading-tight);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
void-tag[color="error"] { --tone: var(--void-color-error); }
|
|
22
|
+
void-tag[color="warning"] { --tone: var(--void-color-warning); }
|
|
23
|
+
void-tag[color="success"] { --tone: var(--void-color-success); }
|
|
24
|
+
void-tag[color="info"] { --tone: var(--void-color-info); }
|
|
25
|
+
void-tag[color="notice"] { --tone: var(--void-color-notice); }
|
|
26
|
+
|
|
27
|
+
void-tag[size="sm"] { font-size: var(--void-text-2xs); padding: 0 var(--void-space-1); }
|
|
28
|
+
void-tag[size="lg"] { font-size: var(--void-text-sm); padding: 0.1875rem var(--void-space-3); }
|
|
29
|
+
void-tag[size="xl"] { font-size: var(--void-text-base); padding: 0.25rem var(--void-space-4); }
|
|
30
|
+
void-tag[size="xxl"] { font-size: var(--void-text-lg); padding: 0.3125rem var(--void-space-5); }
|
|
31
|
+
|
|
32
|
+
.void-tag-close {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
width: 0.875rem;
|
|
37
|
+
height: 0.875rem;
|
|
38
|
+
padding: 0;
|
|
39
|
+
border: none;
|
|
40
|
+
border-radius: var(--void-radius-full);
|
|
41
|
+
background: transparent;
|
|
42
|
+
color: inherit;
|
|
43
|
+
font-size: var(--void-text-xs);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
opacity: 0.6;
|
|
46
|
+
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.void-tag-close:hover {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
void-textarea {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--void-space-1);
|
|
5
|
+
font-family: var(--void-font-sans);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
void-textarea textarea {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
11
|
+
background: var(--void-color-bg-secondary);
|
|
12
|
+
border: 1px solid var(--void-color-border);
|
|
13
|
+
border-radius: var(--void-radius-md);
|
|
14
|
+
color: var(--void-color-text);
|
|
15
|
+
font-family: inherit;
|
|
16
|
+
font-size: var(--void-text-sm);
|
|
17
|
+
line-height: var(--void-leading-normal);
|
|
18
|
+
outline: none;
|
|
19
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
20
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
void-textarea textarea::placeholder {
|
|
24
|
+
color: var(--void-color-text-muted);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
void-textarea textarea:hover {
|
|
28
|
+
border-color: var(--void-color-border-strong);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
void-textarea textarea:focus {
|
|
32
|
+
border-color: var(--void-color-border-focus);
|
|
33
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void-textarea textarea:disabled {
|
|
37
|
+
opacity: 0.5;
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void-textarea[error]:not([error=""]) textarea {
|
|
42
|
+
border-color: var(--void-color-error);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
void-textarea[error]:not([error=""]) textarea:focus {
|
|
46
|
+
box-shadow: 0 0 0 1px var(--void-color-error);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.void-textarea-error {
|
|
50
|
+
color: var(--void-color-error);
|
|
51
|
+
font-size: var(--void-text-xs);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
void-textarea[size="sm"] textarea { padding: var(--void-space-1) var(--void-space-2); font-size: var(--void-text-xs); }
|
|
55
|
+
void-textarea[size="lg"] textarea { padding: var(--void-space-3) var(--void-space-4); font-size: var(--void-text-base); }
|
|
56
|
+
void-textarea[size="xl"] textarea { padding: var(--void-space-4) var(--void-space-5); font-size: var(--void-text-lg); }
|
|
57
|
+
void-textarea[size="xxl"] textarea { padding: var(--void-space-5) var(--void-space-6); font-size: var(--void-text-xl); }
|