@voidable/theme 0.4.0 → 0.5.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/package.json +1 -1
- package/src/components/action-input.css +182 -0
- package/src/components/alert.css +1 -0
- package/src/components/badge.css +1 -0
- package/src/components/banner.css +1 -0
- package/src/components/button.css +33 -0
- package/src/components/calendar.css +7 -0
- package/src/components/card.css +1 -1
- package/src/components/checkbox.css +1 -0
- package/src/components/collapsible.css +73 -0
- package/src/components/color-picker.css +353 -0
- package/src/components/dropdown-menu.css +25 -0
- package/src/components/editable.css +111 -0
- package/src/components/hover-card.css +124 -0
- package/src/components/indicator.css +1 -0
- package/src/components/nav-menu.css +128 -0
- package/src/components/number-input.css +8 -7
- package/src/components/pagination.css +11 -4
- package/src/components/pin-input.css +122 -0
- package/src/components/popover.css +4 -0
- package/src/components/progress.css +1 -0
- package/src/components/radio.css +1 -0
- package/src/components/stat.css +2 -0
- package/src/components/status-dot.css +5 -1
- package/src/components/switch.css +1 -0
- package/src/components/tag.css +1 -0
- package/src/components/tags-input.css +178 -0
- package/src/components/toast.css +1 -0
- package/src/components/toggle.css +1 -0
- package/src/index.css +8 -0
- package/src/primitives.css +14 -1
- package/src/tokens.css +6 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
void-nav-menu {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--void-space-1);
|
|
5
|
+
list-style: none;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
font-family: var(--void-font-sans);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
void-nav-menu[orientation="vertical"] {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
width: var(--void-nav-menu-width, fit-content);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
void-nav-menu-item {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
void-nav-menu[orientation="vertical"] void-nav-menu-item {
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.void-nav-menu-trigger {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--void-space-1);
|
|
30
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
31
|
+
font-family: var(--void-font-sans);
|
|
32
|
+
font-size: var(--void-text-sm);
|
|
33
|
+
font-weight: var(--void-weight-medium);
|
|
34
|
+
color: var(--void-color-text-muted);
|
|
35
|
+
background: none;
|
|
36
|
+
border: none;
|
|
37
|
+
border-radius: var(--void-radius-md);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
user-select: none;
|
|
42
|
+
outline: none;
|
|
43
|
+
transition:
|
|
44
|
+
color var(--void-duration-fast) var(--void-ease-in-out),
|
|
45
|
+
background var(--void-duration-fast) var(--void-ease-in-out);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.void-nav-menu-trigger:hover {
|
|
49
|
+
color: var(--void-color-text);
|
|
50
|
+
background: var(--void-color-bg-hover);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.void-nav-menu-trigger:focus-visible {
|
|
54
|
+
color: var(--void-color-text);
|
|
55
|
+
outline: 2px solid var(--void-color-ring);
|
|
56
|
+
outline-offset: 2px; /* token-ok: intrinsic focus outline offset */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.void-nav-menu-trigger:active {
|
|
60
|
+
background: var(--void-color-bg-active);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
void-nav-menu-item[active] .void-nav-menu-trigger {
|
|
64
|
+
color: var(--void-color-text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
void-nav-menu-item[active] .void-nav-menu-trigger::after {
|
|
68
|
+
content: '';
|
|
69
|
+
position: absolute;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: var(--void-space-3);
|
|
72
|
+
right: var(--void-space-3);
|
|
73
|
+
height: 2px; /* token-ok: decorative active indicator */
|
|
74
|
+
background: var(--void-color-accent);
|
|
75
|
+
border-radius: var(--void-radius-full);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
void-nav-menu[orientation="vertical"] void-nav-menu-item[active] .void-nav-menu-trigger::after {
|
|
79
|
+
top: var(--void-space-2);
|
|
80
|
+
bottom: var(--void-space-2);
|
|
81
|
+
left: 0;
|
|
82
|
+
right: auto;
|
|
83
|
+
width: 2px; /* token-ok: decorative active indicator */
|
|
84
|
+
height: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
void-nav-menu-item[disabled] .void-nav-menu-trigger {
|
|
88
|
+
color: var(--void-color-text-disabled);
|
|
89
|
+
cursor: default;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.void-nav-menu-content {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 100%;
|
|
96
|
+
left: 0;
|
|
97
|
+
z-index: var(--void-z-dropdown);
|
|
98
|
+
min-width: 12rem; /* token-ok: intrinsic dropdown minimum width */
|
|
99
|
+
padding: var(--void-space-2);
|
|
100
|
+
background: var(--void-color-bg-elevated);
|
|
101
|
+
border: 1px solid var(--void-color-border);
|
|
102
|
+
border-radius: var(--void-radius-lg);
|
|
103
|
+
box-shadow: 0 4px 16px var(--void-color-bg-overlay);
|
|
104
|
+
font-size: var(--void-text-sm);
|
|
105
|
+
color: var(--void-color-text);
|
|
106
|
+
opacity: 0;
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
transform: translateY(var(--void-space-1));
|
|
109
|
+
transition:
|
|
110
|
+
opacity var(--void-duration-fast) var(--void-ease-in-out),
|
|
111
|
+
transform var(--void-duration-fast) var(--void-ease-in-out);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-nav-menu-item[open] .void-nav-menu-content {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
pointer-events: auto;
|
|
117
|
+
transform: translateY(0);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
void-nav-menu[orientation="vertical"] .void-nav-menu-content {
|
|
121
|
+
top: 0;
|
|
122
|
+
left: 100%;
|
|
123
|
+
transform: translateX(var(--void-space-1));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
void-nav-menu[orientation="vertical"] void-nav-menu-item[open] .void-nav-menu-content {
|
|
127
|
+
transform: translateX(0);
|
|
128
|
+
}
|
|
@@ -115,36 +115,37 @@ void-number-input[controls="none"] input.void-number-input-field {
|
|
|
115
115
|
/* Color variants */
|
|
116
116
|
void-number-input[color="error"] { --tone: var(--void-color-error); }
|
|
117
117
|
void-number-input[color="warning"] { --tone: var(--void-color-warning); }
|
|
118
|
+
void-number-input[color="caution"] { --tone: var(--void-color-caution); }
|
|
118
119
|
void-number-input[color="success"] { --tone: var(--void-color-success); }
|
|
119
120
|
void-number-input[color="info"] { --tone: var(--void-color-info); }
|
|
120
121
|
void-number-input[color="notice"] { --tone: var(--void-color-notice); }
|
|
121
122
|
|
|
122
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]) {
|
|
123
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) {
|
|
123
124
|
border-color: var(--tone-border);
|
|
124
125
|
background: var(--tone-subtle);
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn {
|
|
128
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn {
|
|
128
129
|
color: var(--tone);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-dec {
|
|
132
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-dec {
|
|
132
133
|
border-right-color: var(--tone-border);
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-inc {
|
|
136
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-number-input-btn-inc {
|
|
136
137
|
border-left-color: var(--tone-border);
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-group {
|
|
140
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-group {
|
|
140
141
|
border-left-color: var(--tone-border);
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-inc {
|
|
144
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):where([controls="right"]) .void-number-input-btn-inc {
|
|
144
145
|
border-bottom-color: var(--tone-border);
|
|
145
146
|
}
|
|
146
147
|
|
|
147
|
-
void-number-input:where([color="error"], [color="warning"], [color="success"], [color="info"], [color="notice"]):focus-within {
|
|
148
|
+
void-number-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):focus-within {
|
|
148
149
|
border-color: var(--tone);
|
|
149
150
|
box-shadow: 0 0 0 1px var(--tone);
|
|
150
151
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
void-pagination {
|
|
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
|
+
--tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
void-pagination nav {
|
|
2
9
|
display: flex;
|
|
3
10
|
align-items: center;
|
|
@@ -26,7 +33,7 @@ void-pagination nav {
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
.void-pagination-btn:hover:not(:disabled) {
|
|
29
|
-
background: var(--
|
|
36
|
+
background: var(--tone-hover);
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
.void-pagination-btn:focus-visible {
|
|
@@ -35,9 +42,9 @@ void-pagination nav {
|
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
.void-pagination-btn[aria-current="page"] {
|
|
38
|
-
background: var(--
|
|
39
|
-
color: var(--void-color-text
|
|
40
|
-
border-color: var(--
|
|
45
|
+
background: var(--tone-subtle);
|
|
46
|
+
color: var(--void-color-text);
|
|
47
|
+
border-color: var(--tone-border);
|
|
41
48
|
cursor: default;
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
void-pin-input — Tone system component
|
|
3
|
+
============================================================ */
|
|
4
|
+
|
|
5
|
+
void-pin-input {
|
|
6
|
+
/* Tone system */
|
|
7
|
+
--tone: var(--void-color-accent);
|
|
8
|
+
--tone-subtle: color-mix(in srgb, var(--tone) 14%, transparent);
|
|
9
|
+
--tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
|
|
10
|
+
|
|
11
|
+
display: inline-block;
|
|
12
|
+
font-family: var(--void-font-sans);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.void-pin-input {
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: var(--void-space-2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.void-pin-separator {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
color: var(--void-color-text-muted);
|
|
24
|
+
font-size: var(--void-text-2xl);
|
|
25
|
+
font-weight: var(--void-weight-semibold);
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.void-pin-cell {
|
|
30
|
+
width: var(--void-space-10);
|
|
31
|
+
height: var(--void-space-10);
|
|
32
|
+
padding: 0;
|
|
33
|
+
background: var(--void-color-bg-secondary);
|
|
34
|
+
border: 1px solid var(--void-color-border);
|
|
35
|
+
border-radius: var(--void-radius-md);
|
|
36
|
+
color: var(--void-color-text);
|
|
37
|
+
font-family: var(--void-font-mono);
|
|
38
|
+
font-size: var(--void-text-lg);
|
|
39
|
+
line-height: var(--void-leading-normal);
|
|
40
|
+
text-align: center;
|
|
41
|
+
outline: none;
|
|
42
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
43
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
44
|
+
caret-color: var(--void-color-text);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.void-pin-cell::placeholder {
|
|
48
|
+
color: var(--void-color-text-muted);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.void-pin-cell:hover:not(:disabled) {
|
|
52
|
+
border-color: var(--void-color-border-strong);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.void-pin-cell:focus {
|
|
56
|
+
border-color: var(--void-color-border-focus);
|
|
57
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Mask — password dots via text-security */
|
|
61
|
+
void-pin-input[mask] .void-pin-cell {
|
|
62
|
+
-webkit-text-security: disc;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Disabled */
|
|
66
|
+
void-pin-input[disabled] {
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
void-pin-input[disabled] .void-pin-cell {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Color variants */
|
|
77
|
+
void-pin-input[color="error"] { --tone: var(--void-color-error); }
|
|
78
|
+
void-pin-input[color="warning"] { --tone: var(--void-color-warning); }
|
|
79
|
+
void-pin-input[color="caution"] { --tone: var(--void-color-caution); }
|
|
80
|
+
void-pin-input[color="success"] { --tone: var(--void-color-success); }
|
|
81
|
+
void-pin-input[color="info"] { --tone: var(--void-color-info); }
|
|
82
|
+
void-pin-input[color="notice"] { --tone: var(--void-color-notice); }
|
|
83
|
+
|
|
84
|
+
void-pin-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-pin-cell {
|
|
85
|
+
border-color: var(--tone-border);
|
|
86
|
+
background: var(--tone-subtle);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
void-pin-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-pin-cell:focus {
|
|
90
|
+
border-color: var(--tone);
|
|
91
|
+
box-shadow: 0 0 0 1px var(--tone);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Size: sm */
|
|
95
|
+
void-pin-input[size="sm"] .void-pin-separator {
|
|
96
|
+
font-size: var(--void-text-lg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
void-pin-input[size="sm"] .void-pin-cell {
|
|
100
|
+
width: var(--void-space-8);
|
|
101
|
+
height: var(--void-space-8);
|
|
102
|
+
font-size: var(--void-text-sm);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
void-pin-input[size="sm"] .void-pin-input {
|
|
106
|
+
gap: var(--void-space-1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Size: lg */
|
|
110
|
+
void-pin-input[size="lg"] .void-pin-separator {
|
|
111
|
+
font-size: var(--void-text-3xl);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
void-pin-input[size="lg"] .void-pin-cell {
|
|
115
|
+
width: var(--void-space-12);
|
|
116
|
+
height: var(--void-space-12);
|
|
117
|
+
font-size: var(--void-text-xl);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
void-pin-input[size="lg"] .void-pin-input {
|
|
121
|
+
gap: var(--void-space-3);
|
|
122
|
+
}
|
|
@@ -23,6 +23,7 @@ void-progress {
|
|
|
23
23
|
|
|
24
24
|
void-progress[color="error"] { --tone: var(--void-color-error); }
|
|
25
25
|
void-progress[color="warning"] { --tone: var(--void-color-warning); }
|
|
26
|
+
void-progress[color="caution"] { --tone: var(--void-color-caution); }
|
|
26
27
|
void-progress[color="success"] { --tone: var(--void-color-success); }
|
|
27
28
|
void-progress[color="info"] { --tone: var(--void-color-info); }
|
|
28
29
|
void-progress[color="notice"] { --tone: var(--void-color-notice); }
|
package/src/components/radio.css
CHANGED
|
@@ -56,6 +56,7 @@ void-radio[checked] .void-radio-circle {
|
|
|
56
56
|
|
|
57
57
|
void-radio[color="error"] { --tone: var(--void-color-error); }
|
|
58
58
|
void-radio[color="warning"] { --tone: var(--void-color-warning); }
|
|
59
|
+
void-radio[color="caution"] { --tone: var(--void-color-caution); }
|
|
59
60
|
void-radio[color="success"] { --tone: var(--void-color-success); }
|
|
60
61
|
void-radio[color="info"] { --tone: var(--void-color-info); }
|
|
61
62
|
void-radio[color="notice"] { --tone: var(--void-color-notice); }
|
package/src/components/stat.css
CHANGED
|
@@ -42,6 +42,7 @@ void-stat[trend="up"] .void-stat-delta { color: var(--void-color-success)
|
|
|
42
42
|
void-stat[trend="down"] .void-stat-delta { color: var(--void-color-error); }
|
|
43
43
|
void-stat[trend="error"] .void-stat-delta { color: var(--void-color-error); }
|
|
44
44
|
void-stat[trend="warning"] .void-stat-delta { color: var(--void-color-warning); }
|
|
45
|
+
void-stat[trend="caution"] .void-stat-delta { color: var(--void-color-caution); }
|
|
45
46
|
void-stat[trend="success"] .void-stat-delta { color: var(--void-color-success); }
|
|
46
47
|
void-stat[trend="info"] .void-stat-delta { color: var(--void-color-info); }
|
|
47
48
|
void-stat[trend="notice"] .void-stat-delta { color: var(--void-color-notice); }
|
|
@@ -82,6 +83,7 @@ void-stat[size="xxl"] .void-stat-value {
|
|
|
82
83
|
|
|
83
84
|
void-stat[color="error"] { --tone: var(--void-color-error); }
|
|
84
85
|
void-stat[color="warning"] { --tone: var(--void-color-warning); }
|
|
86
|
+
void-stat[color="caution"] { --tone: var(--void-color-caution); }
|
|
85
87
|
void-stat[color="success"] { --tone: var(--void-color-success); }
|
|
86
88
|
void-stat[color="info"] { --tone: var(--void-color-info); }
|
|
87
89
|
void-stat[color="notice"] { --tone: var(--void-color-notice); }
|
|
@@ -13,7 +13,11 @@ void-status-dot[status="online"] {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
void-status-dot[status="away"] {
|
|
16
|
-
background: var(--void-color-
|
|
16
|
+
background: var(--void-color-caution);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
void-status-dot[status="caution"] {
|
|
20
|
+
background: var(--void-color-caution);
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
void-status-dot[status="offline"] {
|
|
@@ -54,6 +54,7 @@ void-switch:hover .void-switch-track {
|
|
|
54
54
|
|
|
55
55
|
void-switch[color="error"] { --tone: var(--void-color-error); }
|
|
56
56
|
void-switch[color="warning"] { --tone: var(--void-color-warning); }
|
|
57
|
+
void-switch[color="caution"] { --tone: var(--void-color-caution); }
|
|
57
58
|
void-switch[color="success"] { --tone: var(--void-color-success); }
|
|
58
59
|
void-switch[color="info"] { --tone: var(--void-color-info); }
|
|
59
60
|
void-switch[color="notice"] { --tone: var(--void-color-notice); }
|
package/src/components/tag.css
CHANGED
|
@@ -20,6 +20,7 @@ void-tag {
|
|
|
20
20
|
|
|
21
21
|
void-tag[color="error"] { --tone: var(--void-color-error); }
|
|
22
22
|
void-tag[color="warning"] { --tone: var(--void-color-warning); }
|
|
23
|
+
void-tag[color="caution"] { --tone: var(--void-color-caution); }
|
|
23
24
|
void-tag[color="success"] { --tone: var(--void-color-success); }
|
|
24
25
|
void-tag[color="info"] { --tone: var(--void-color-info); }
|
|
25
26
|
void-tag[color="notice"] { --tone: var(--void-color-notice); }
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
void-tags-input {
|
|
2
|
+
--tone: var(--void-color-accent);
|
|
3
|
+
--tone-border: color-mix(in srgb, var(--tone) 36%, transparent);
|
|
4
|
+
|
|
5
|
+
display: block;
|
|
6
|
+
font-family: var(--void-font-sans);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
void-tags-input[color="error"] { --tone: var(--void-color-error); }
|
|
10
|
+
void-tags-input[color="warning"] { --tone: var(--void-color-warning); }
|
|
11
|
+
void-tags-input[color="caution"] { --tone: var(--void-color-caution); }
|
|
12
|
+
void-tags-input[color="success"] { --tone: var(--void-color-success); }
|
|
13
|
+
void-tags-input[color="info"] { --tone: var(--void-color-info); }
|
|
14
|
+
void-tags-input[color="notice"] { --tone: var(--void-color-notice); }
|
|
15
|
+
|
|
16
|
+
.void-tags-input {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: var(--void-space-1);
|
|
21
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
22
|
+
min-height: 2.25rem;
|
|
23
|
+
background: var(--void-color-bg-secondary);
|
|
24
|
+
border: 1px solid var(--void-color-border);
|
|
25
|
+
border-radius: var(--void-radius-md);
|
|
26
|
+
cursor: text;
|
|
27
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
28
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.void-tags-input:hover {
|
|
32
|
+
border-color: var(--void-color-border-strong);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.void-tags-input:focus-within {
|
|
36
|
+
border-color: var(--void-color-border-focus);
|
|
37
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
void-tags-input[color]:not([color=""]):not([color="default"]) .void-tags-input:focus-within {
|
|
41
|
+
border-color: var(--tone);
|
|
42
|
+
box-shadow: 0 0 0 1px var(--tone);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
void-tags-input[color]:not([color=""]):not([color="default"]) .void-tags-input {
|
|
46
|
+
border-color: var(--tone-border);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.void-tags-input-tag {
|
|
50
|
+
--tag-tone: var(--void-color-accent);
|
|
51
|
+
--tag-tone-subtle: color-mix(in srgb, var(--tag-tone) 14%, transparent);
|
|
52
|
+
--tag-tone-border: color-mix(in srgb, var(--tag-tone) 36%, transparent);
|
|
53
|
+
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: var(--void-space-1);
|
|
57
|
+
padding: 0.125rem var(--void-space-2); /* token-ok: intrinsic tag padding */
|
|
58
|
+
background: var(--void-color-bg-elevated);
|
|
59
|
+
border: 1px solid var(--void-color-border);
|
|
60
|
+
border-radius: var(--void-radius-full);
|
|
61
|
+
font-size: var(--void-text-xs);
|
|
62
|
+
font-weight: var(--void-weight-medium);
|
|
63
|
+
color: var(--void-color-text);
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
line-height: var(--void-leading-normal);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Per-tag colors */
|
|
69
|
+
.void-tags-input-tag[data-color="error"] { --tag-tone: var(--void-color-error); }
|
|
70
|
+
.void-tags-input-tag[data-color="warning"] { --tag-tone: var(--void-color-warning); }
|
|
71
|
+
.void-tags-input-tag[data-color="caution"] { --tag-tone: var(--void-color-caution); }
|
|
72
|
+
.void-tags-input-tag[data-color="success"] { --tag-tone: var(--void-color-success); }
|
|
73
|
+
.void-tags-input-tag[data-color="info"] { --tag-tone: var(--void-color-info); }
|
|
74
|
+
.void-tags-input-tag[data-color="notice"] { --tag-tone: var(--void-color-notice); }
|
|
75
|
+
.void-tags-input-tag[data-color="accent"] { --tag-tone: var(--void-color-accent); }
|
|
76
|
+
|
|
77
|
+
/* Outline variant — per-tag color */
|
|
78
|
+
void-tags-input[variant="outline"] .void-tags-input-tag[data-color] {
|
|
79
|
+
border-color: var(--tag-tone-border);
|
|
80
|
+
background: var(--tag-tone-subtle);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Filled variant */
|
|
84
|
+
void-tags-input[variant="filled"] .void-tags-input-tag {
|
|
85
|
+
background: var(--tag-tone-subtle);
|
|
86
|
+
border-color: var(--tag-tone-border);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
void-tags-input[variant="filled"] .void-tags-input-tag[data-color] {
|
|
90
|
+
background: var(--tag-tone);
|
|
91
|
+
border-color: var(--tag-tone);
|
|
92
|
+
color: var(--void-white);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.void-tags-input-tag-remove {
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
width: 0.875rem; /* token-ok: intrinsic remove button size */
|
|
100
|
+
height: 0.875rem; /* token-ok: intrinsic remove button size */
|
|
101
|
+
padding: 0;
|
|
102
|
+
border: none;
|
|
103
|
+
border-radius: var(--void-radius-full);
|
|
104
|
+
background: transparent;
|
|
105
|
+
color: inherit;
|
|
106
|
+
font-size: var(--void-text-xs);
|
|
107
|
+
line-height: 1;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
opacity: 0.6;
|
|
110
|
+
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.void-tags-input-tag-remove:hover {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.void-tags-input-field {
|
|
118
|
+
flex: 1 1 auto;
|
|
119
|
+
min-width: 4rem;
|
|
120
|
+
padding: 0;
|
|
121
|
+
border: none;
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--void-color-text);
|
|
124
|
+
font-family: inherit;
|
|
125
|
+
font-size: var(--void-text-sm);
|
|
126
|
+
line-height: var(--void-leading-normal);
|
|
127
|
+
outline: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.void-tags-input-field::placeholder {
|
|
131
|
+
color: var(--void-color-text-muted);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Size variants */
|
|
135
|
+
void-tags-input[size="sm"] .void-tags-input {
|
|
136
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
137
|
+
min-height: 1.75rem;
|
|
138
|
+
gap: var(--void-space-1);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
void-tags-input[size="sm"] .void-tags-input-field {
|
|
142
|
+
font-size: var(--void-text-xs);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
void-tags-input[size="sm"] .void-tags-input-tag {
|
|
146
|
+
font-size: var(--void-text-2xs);
|
|
147
|
+
padding: 0 var(--void-space-1);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
void-tags-input[size="lg"] .void-tags-input {
|
|
151
|
+
padding: var(--void-space-3) var(--void-space-4);
|
|
152
|
+
min-height: 2.75rem; /* token-ok: intrinsic lg size min-height */
|
|
153
|
+
gap: var(--void-space-2);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
void-tags-input[size="lg"] .void-tags-input-field {
|
|
157
|
+
font-size: var(--void-text-base);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
void-tags-input[size="lg"] .void-tags-input-tag {
|
|
161
|
+
font-size: var(--void-text-sm);
|
|
162
|
+
padding: 0.1875rem var(--void-space-3); /* token-ok: intrinsic lg tag padding */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Disabled state */
|
|
166
|
+
void-tags-input[disabled] {
|
|
167
|
+
opacity: 0.5;
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
void-tags-input[disabled] .void-tags-input {
|
|
172
|
+
cursor: not-allowed;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Readonly state */
|
|
176
|
+
void-tags-input[readonly] .void-tags-input {
|
|
177
|
+
cursor: default;
|
|
178
|
+
}
|
package/src/components/toast.css
CHANGED
|
@@ -40,6 +40,7 @@ void-toast {
|
|
|
40
40
|
|
|
41
41
|
void-toast[color='error'] { --tone: var(--void-color-error); }
|
|
42
42
|
void-toast[color='warning'] { --tone: var(--void-color-warning); }
|
|
43
|
+
void-toast[color='caution'] { --tone: var(--void-color-caution); }
|
|
43
44
|
void-toast[color='success'] { --tone: var(--void-color-success); }
|
|
44
45
|
void-toast[color='info'] { --tone: var(--void-color-info); }
|
|
45
46
|
|
|
@@ -53,6 +53,7 @@ void-toggle[variant="filled"][pressed]:hover {
|
|
|
53
53
|
|
|
54
54
|
void-toggle[color="error"] { --tone: var(--void-color-error); }
|
|
55
55
|
void-toggle[color="warning"] { --tone: var(--void-color-warning); }
|
|
56
|
+
void-toggle[color="caution"] { --tone: var(--void-color-caution); }
|
|
56
57
|
void-toggle[color="success"] { --tone: var(--void-color-success); }
|
|
57
58
|
void-toggle[color="info"] { --tone: var(--void-color-info); }
|
|
58
59
|
void-toggle[color="notice"] { --tone: var(--void-color-notice); }
|
package/src/index.css
CHANGED
|
@@ -56,3 +56,11 @@
|
|
|
56
56
|
@import './components/indicator.css';
|
|
57
57
|
@import './components/menu.css';
|
|
58
58
|
@import './components/number-input.css';
|
|
59
|
+
@import './components/collapsible.css';
|
|
60
|
+
@import './components/editable.css';
|
|
61
|
+
@import './components/hover-card.css';
|
|
62
|
+
@import './components/pin-input.css';
|
|
63
|
+
@import './components/tags-input.css';
|
|
64
|
+
@import './components/nav-menu.css';
|
|
65
|
+
@import './components/color-picker.css';
|
|
66
|
+
@import './components/action-input.css';
|
package/src/primitives.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
--void-red-900: #7f1d1d;
|
|
32
32
|
--void-red-950: #450a0a;
|
|
33
33
|
|
|
34
|
-
/* ── Amber palette (status:
|
|
34
|
+
/* ── Amber palette (status: caution) ── */
|
|
35
35
|
--void-amber-50: #fefae4;
|
|
36
36
|
--void-amber-100: #fdf1be;
|
|
37
37
|
--void-amber-200: #f9e182;
|
|
@@ -44,6 +44,19 @@
|
|
|
44
44
|
--void-amber-900: #503f13;
|
|
45
45
|
--void-amber-950: #30260b;
|
|
46
46
|
|
|
47
|
+
/* ── Orange palette (status: warning) ── */
|
|
48
|
+
--void-orange-50: #fff7ed;
|
|
49
|
+
--void-orange-100: #ffedd5;
|
|
50
|
+
--void-orange-200: #fed7aa;
|
|
51
|
+
--void-orange-300: #fdba74;
|
|
52
|
+
--void-orange-400: #fb923c;
|
|
53
|
+
--void-orange-500: #f97316;
|
|
54
|
+
--void-orange-600: #ea580c;
|
|
55
|
+
--void-orange-700: #c2410c;
|
|
56
|
+
--void-orange-800: #9a3412;
|
|
57
|
+
--void-orange-900: #7c2d12;
|
|
58
|
+
--void-orange-950: #431407;
|
|
59
|
+
|
|
47
60
|
/* ── Green palette (status: success) ── */
|
|
48
61
|
--void-green-50: #f0fdf4;
|
|
49
62
|
--void-green-100: #dcfce7;
|
package/src/tokens.css
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
|
|
34
34
|
/* Status — primary */
|
|
35
35
|
--void-color-error: var(--void-red-500);
|
|
36
|
-
--void-color-warning: var(--void-
|
|
36
|
+
--void-color-warning: var(--void-orange-500);
|
|
37
|
+
--void-color-caution: var(--void-amber-500);
|
|
37
38
|
--void-color-success: var(--void-green-500);
|
|
38
39
|
--void-color-info: var(--void-blue-500);
|
|
39
40
|
--void-color-notice: var(--void-purple-500);
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
/* Status — subtle (14% color-mix) */
|
|
43
44
|
--void-color-error-subtle: color-mix(in srgb, var(--void-color-error) 14%, transparent);
|
|
44
45
|
--void-color-warning-subtle: color-mix(in srgb, var(--void-color-warning) 14%, transparent);
|
|
46
|
+
--void-color-caution-subtle: color-mix(in srgb, var(--void-color-caution) 14%, transparent);
|
|
45
47
|
--void-color-success-subtle: color-mix(in srgb, var(--void-color-success) 14%, transparent);
|
|
46
48
|
--void-color-info-subtle: color-mix(in srgb, var(--void-color-info) 14%, transparent);
|
|
47
49
|
--void-color-notice-subtle: color-mix(in srgb, var(--void-color-notice) 14%, transparent);
|
|
@@ -84,7 +86,8 @@
|
|
|
84
86
|
|
|
85
87
|
/* Status — primary (-600 variants for light mode) */
|
|
86
88
|
--void-color-error: var(--void-red-600);
|
|
87
|
-
--void-color-warning: var(--void-
|
|
89
|
+
--void-color-warning: var(--void-orange-600);
|
|
90
|
+
--void-color-caution: var(--void-amber-600);
|
|
88
91
|
--void-color-success: var(--void-green-600);
|
|
89
92
|
--void-color-info: var(--void-blue-600);
|
|
90
93
|
--void-color-notice: var(--void-purple-600);
|
|
@@ -93,6 +96,7 @@
|
|
|
93
96
|
/* Status — subtle (8% color-mix for light backgrounds) */
|
|
94
97
|
--void-color-error-subtle: color-mix(in srgb, var(--void-color-error) 8%, transparent);
|
|
95
98
|
--void-color-warning-subtle: color-mix(in srgb, var(--void-color-warning) 8%, transparent);
|
|
99
|
+
--void-color-caution-subtle: color-mix(in srgb, var(--void-color-caution) 8%, transparent);
|
|
96
100
|
--void-color-success-subtle: color-mix(in srgb, var(--void-color-success) 8%, transparent);
|
|
97
101
|
--void-color-info-subtle: color-mix(in srgb, var(--void-color-info) 8%, transparent);
|
|
98
102
|
--void-color-notice-subtle: color-mix(in srgb, var(--void-color-notice) 8%, transparent);
|