@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
|
@@ -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
|
+
}
|
|
@@ -3,10 +3,14 @@ void-popover {
|
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
void-popover > :not(:first-child):not(.void-popover-body) {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
.void-popover-body {
|
|
7
11
|
display: none;
|
|
8
12
|
position: absolute;
|
|
9
|
-
z-index:
|
|
13
|
+
z-index: var(--void-z-dropdown);
|
|
10
14
|
min-width: 12rem;
|
|
11
15
|
background: var(--void-color-bg-elevated);
|
|
12
16
|
border: 1px solid var(--void-color-border);
|
|
@@ -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); }
|
|
@@ -12,8 +12,8 @@ void-slider input[type="range"] {
|
|
|
12
12
|
height: 4px;
|
|
13
13
|
background: linear-gradient(
|
|
14
14
|
to right,
|
|
15
|
-
var(--void-color-accent) var(--fill, 50%),
|
|
16
|
-
var(--void-color-border) var(--fill, 50%)
|
|
15
|
+
var(--void-color-accent) var(--void-slider-fill, 50%),
|
|
16
|
+
var(--void-color-border) var(--void-slider-fill, 50%)
|
|
17
17
|
);
|
|
18
18
|
border-radius: var(--void-radius-full);
|
|
19
19
|
outline: none;
|
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); }
|
|
@@ -77,11 +78,12 @@ void-stat[size="xxl"] {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
void-stat[size="xxl"] .void-stat-value {
|
|
80
|
-
font-size: 4rem;
|
|
81
|
+
font-size: 4rem; /* token-ok: display size beyond scale */
|
|
81
82
|
}
|
|
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
|
@@ -2,7 +2,7 @@ void-toast-container {
|
|
|
2
2
|
position: fixed;
|
|
3
3
|
bottom: 0;
|
|
4
4
|
right: 0;
|
|
5
|
-
z-index:
|
|
5
|
+
z-index: var(--void-z-toast);
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
gap: var(--void-space-2);
|
|
@@ -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
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
void-toggle-group {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
gap: var(--void-space-1);
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
font-family: var(--void-font-sans);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
void-toggle-group[orientation="horizontal"] {
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
void-toggle-group[orientation="vertical"] {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
void-toggle-group[disabled] {
|
|
17
|
+
opacity: 0.5;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
@@ -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
|
@@ -47,7 +47,20 @@
|
|
|
47
47
|
@import './components/sidebar.css';
|
|
48
48
|
@import './components/segmented-control.css';
|
|
49
49
|
@import './components/toggle.css';
|
|
50
|
+
@import './components/toggle-group.css';
|
|
50
51
|
@import './components/stat.css';
|
|
51
52
|
|
|
53
|
+
@import './components/calendar.css';
|
|
54
|
+
@import './components/carousel.css';
|
|
52
55
|
@import './components/dropdown-menu.css';
|
|
53
56
|
@import './components/indicator.css';
|
|
57
|
+
@import './components/menu.css';
|
|
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);
|