@voidable/theme 0.3.0 → 0.5.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/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 +456 -0
- package/src/components/card.css +1 -1
- package/src/components/carousel.css +236 -0
- 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/combobox.css +1 -1
- package/src/components/dialog.css +1 -1
- package/src/components/drawer.css +2 -2
- package/src/components/dropdown-menu.css +25 -0
- package/src/components/editable.css +111 -0
- package/src/components/error-fallback.css +1 -1
- package/src/components/file-upload.css +5 -1
- package/src/components/hover-card.css +124 -0
- package/src/components/indicator.css +1 -0
- package/src/components/menu.css +162 -0
- package/src/components/multiselect.css +1 -1
- package/src/components/nav-bar.css +1 -1
- package/src/components/nav-menu.css +128 -0
- package/src/components/number-input.css +187 -0
- package/src/components/pagination.css +11 -4
- package/src/components/pin-input.css +122 -0
- package/src/components/popover.css +5 -1
- package/src/components/progress.css +1 -0
- package/src/components/radio.css +1 -0
- package/src/components/slider.css +2 -2
- package/src/components/stat.css +3 -1
- 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 +2 -1
- package/src/components/toggle-group.css +19 -0
- package/src/components/toggle.css +1 -0
- package/src/components/tooltip.css +1 -1
- package/src/index.css +13 -0
- package/src/primitives.css +14 -1
- package/src/tokens.css +6 -2
package/package.json
CHANGED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
void-action-input — Tone system component
|
|
3
|
+
============================================================ */
|
|
4
|
+
|
|
5
|
+
void-action-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
|
+
--tone-hover: color-mix(in srgb, var(--tone) 22%, transparent);
|
|
11
|
+
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
font-family: var(--void-font-sans);
|
|
15
|
+
border: 1px solid var(--void-color-border);
|
|
16
|
+
border-radius: var(--void-radius-md);
|
|
17
|
+
background: var(--void-color-bg-secondary);
|
|
18
|
+
transition: border-color var(--void-duration-fast) var(--void-ease-in-out),
|
|
19
|
+
box-shadow var(--void-duration-fast) var(--void-ease-in-out);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
void-action-input:focus-within {
|
|
23
|
+
border-color: var(--void-color-border-focus);
|
|
24
|
+
box-shadow: 0 0 0 1px var(--void-color-border-focus);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
void-action-input:hover:not(:focus-within) {
|
|
28
|
+
border-color: var(--void-color-border-strong);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Border-radius on children (no overflow:hidden so tooltip can escape) */
|
|
32
|
+
void-action-input input.void-action-input-field {
|
|
33
|
+
border-radius: var(--void-radius-md) 0 0 var(--void-radius-md);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void-action-input .void-action-input-btn {
|
|
37
|
+
border-radius: 0 var(--void-radius-md) var(--void-radius-md) 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
void-action-input[position="left"] input.void-action-input-field {
|
|
41
|
+
border-radius: 0 var(--void-radius-md) var(--void-radius-md) 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
void-action-input[position="left"] .void-action-input-btn {
|
|
45
|
+
border-radius: var(--void-radius-md) 0 0 var(--void-radius-md);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* The native input inside */
|
|
49
|
+
void-action-input input.void-action-input-field {
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
padding: var(--void-space-2) var(--void-space-3);
|
|
53
|
+
background: transparent;
|
|
54
|
+
border: none;
|
|
55
|
+
color: var(--void-color-text);
|
|
56
|
+
font-family: inherit;
|
|
57
|
+
font-size: var(--void-text-sm);
|
|
58
|
+
line-height: var(--void-leading-normal);
|
|
59
|
+
outline: none;
|
|
60
|
+
text-align: left;
|
|
61
|
+
-moz-appearance: textfield;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
void-action-input input.void-action-input-field::placeholder {
|
|
65
|
+
color: var(--void-color-text-muted);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Action button */
|
|
69
|
+
.void-action-input-btn {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
padding: 0 var(--void-space-3);
|
|
74
|
+
background: transparent;
|
|
75
|
+
border: none;
|
|
76
|
+
color: var(--void-color-text-secondary);
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
transition: background var(--void-duration-fast) var(--void-ease-in-out),
|
|
79
|
+
color var(--void-duration-fast) var(--void-ease-in-out);
|
|
80
|
+
user-select: none;
|
|
81
|
+
-webkit-user-select: none;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.void-action-input-btn:hover:not(:disabled) {
|
|
86
|
+
background: var(--tone-hover);
|
|
87
|
+
color: var(--void-color-text);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.void-action-input-btn:focus-visible {
|
|
91
|
+
outline: 2px solid var(--void-color-border-focus);
|
|
92
|
+
outline-offset: -2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.void-action-input-btn:disabled {
|
|
96
|
+
opacity: 0.35;
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Tooltip wrapper around button */
|
|
101
|
+
void-action-input void-tooltip {
|
|
102
|
+
align-items: stretch;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Separator lines between btn and input */
|
|
106
|
+
/* Default: button on the right */
|
|
107
|
+
void-action-input .void-action-input-btn {
|
|
108
|
+
border-left: 1px solid var(--void-color-border);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Button on the left */
|
|
112
|
+
void-action-input[position="left"] .void-action-input-btn {
|
|
113
|
+
border-left: none;
|
|
114
|
+
border-right: 1px solid var(--void-color-border);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Color variants */
|
|
118
|
+
void-action-input[color="error"] { --tone: var(--void-color-error); }
|
|
119
|
+
void-action-input[color="warning"] { --tone: var(--void-color-warning); }
|
|
120
|
+
void-action-input[color="caution"] { --tone: var(--void-color-caution); }
|
|
121
|
+
void-action-input[color="success"] { --tone: var(--void-color-success); }
|
|
122
|
+
void-action-input[color="info"] { --tone: var(--void-color-info); }
|
|
123
|
+
void-action-input[color="notice"] { --tone: var(--void-color-notice); }
|
|
124
|
+
|
|
125
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) {
|
|
126
|
+
border-color: var(--tone-border);
|
|
127
|
+
background: var(--tone-subtle);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
131
|
+
color: var(--tone);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]) .void-action-input-btn {
|
|
135
|
+
border-left-color: var(--tone-border);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"])[position="left"] .void-action-input-btn {
|
|
139
|
+
border-left-color: transparent;
|
|
140
|
+
border-right-color: var(--tone-border);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
void-action-input:where([color="error"], [color="warning"], [color="caution"], [color="success"], [color="info"], [color="notice"]):focus-within {
|
|
144
|
+
border-color: var(--tone);
|
|
145
|
+
box-shadow: 0 0 0 1px var(--tone);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Size variants */
|
|
149
|
+
void-action-input[size="sm"] input.void-action-input-field {
|
|
150
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
151
|
+
font-size: var(--void-text-xs);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
void-action-input[size="sm"] .void-action-input-btn {
|
|
155
|
+
padding: 0 var(--void-space-2);
|
|
156
|
+
font-size: var(--void-text-xs);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
void-action-input[size="lg"] input.void-action-input-field {
|
|
160
|
+
padding: var(--void-space-3) var(--void-space-4);
|
|
161
|
+
font-size: var(--void-text-base);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
void-action-input[size="lg"] .void-action-input-btn {
|
|
165
|
+
padding: 0 var(--void-space-4);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Disabled state */
|
|
169
|
+
void-action-input[disabled] {
|
|
170
|
+
opacity: 0.5;
|
|
171
|
+
cursor: not-allowed;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
void-action-input[disabled] input.void-action-input-field {
|
|
175
|
+
cursor: not-allowed;
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Readonly state */
|
|
180
|
+
void-action-input[readonly] input.void-action-input-field {
|
|
181
|
+
cursor: default;
|
|
182
|
+
}
|
package/src/components/alert.css
CHANGED
|
@@ -24,6 +24,7 @@ void-alert[variant="filled"] {
|
|
|
24
24
|
|
|
25
25
|
void-alert[color="error"] { --tone: var(--void-color-error); }
|
|
26
26
|
void-alert[color="warning"] { --tone: var(--void-color-warning); }
|
|
27
|
+
void-alert[color="caution"] { --tone: var(--void-color-caution); }
|
|
27
28
|
void-alert[color="success"] { --tone: var(--void-color-success); }
|
|
28
29
|
void-alert[color="info"] { --tone: var(--void-color-info); }
|
|
29
30
|
void-alert[color="notice"] { --tone: var(--void-color-notice); }
|
package/src/components/badge.css
CHANGED
|
@@ -25,6 +25,7 @@ void-badge {
|
|
|
25
25
|
/* Colors */
|
|
26
26
|
void-badge[color="error"] { --tone: var(--void-color-error); }
|
|
27
27
|
void-badge[color="warning"] { --tone: var(--void-color-warning); }
|
|
28
|
+
void-badge[color="caution"] { --tone: var(--void-color-caution); }
|
|
28
29
|
void-badge[color="success"] { --tone: var(--void-color-success); }
|
|
29
30
|
void-badge[color="info"] { --tone: var(--void-color-info); }
|
|
30
31
|
void-badge[color="notice"] { --tone: var(--void-color-notice); }
|
|
@@ -23,6 +23,7 @@ void-banner[variant="filled"] {
|
|
|
23
23
|
|
|
24
24
|
void-banner[color="error"] { --tone: var(--void-color-error); }
|
|
25
25
|
void-banner[color="warning"] { --tone: var(--void-color-warning); }
|
|
26
|
+
void-banner[color="caution"] { --tone: var(--void-color-caution); }
|
|
26
27
|
void-banner[color="success"] { --tone: var(--void-color-success); }
|
|
27
28
|
void-banner[color="info"] { --tone: var(--void-color-info); }
|
|
28
29
|
void-banner[color="notice"] { --tone: var(--void-color-notice); }
|
|
@@ -66,6 +66,7 @@ void-button[variant="filled"]:hover {
|
|
|
66
66
|
/* Color variants — one override cascades to all derived states */
|
|
67
67
|
void-button[color="error"] { --tone: var(--void-color-error); }
|
|
68
68
|
void-button[color="warning"] { --tone: var(--void-color-warning); }
|
|
69
|
+
void-button[color="caution"] { --tone: var(--void-color-caution); }
|
|
69
70
|
void-button[color="success"] { --tone: var(--void-color-success); }
|
|
70
71
|
void-button[color="info"] { --tone: var(--void-color-info); }
|
|
71
72
|
void-button[color="notice"] { --tone: var(--void-color-notice); }
|
|
@@ -91,6 +92,38 @@ void-button[size="xxl"] {
|
|
|
91
92
|
font-size: var(--void-text-xl);
|
|
92
93
|
}
|
|
93
94
|
|
|
95
|
+
/* Link targets — stretch <a> to fill the full button */
|
|
96
|
+
void-button:has(> a) {
|
|
97
|
+
padding: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
void-button > a {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
gap: var(--void-space-2);
|
|
105
|
+
padding: var(--void-space-2) var(--void-space-4);
|
|
106
|
+
color: inherit;
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
flex: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
void-button[size="sm"] > a {
|
|
112
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
void-button[size="lg"] > a {
|
|
116
|
+
padding: var(--void-space-3) var(--void-space-6);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
void-button[size="xl"] > a {
|
|
120
|
+
padding: var(--void-space-4) var(--void-space-8);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
void-button[size="xxl"] > a {
|
|
124
|
+
padding: var(--void-space-5) var(--void-space-10);
|
|
125
|
+
}
|
|
126
|
+
|
|
94
127
|
/* Disabled */
|
|
95
128
|
void-button[disabled] {
|
|
96
129
|
opacity: 0.5;
|