elements-kit 0.26.1 → 0.26.3
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/dist/ui/group/group.css
CHANGED
|
@@ -107,8 +107,7 @@
|
|
|
107
107
|
z-index: -1;
|
|
108
108
|
background-color: var(--seg-indicator-bg);
|
|
109
109
|
border-radius: var(--seg-indicator-radius);
|
|
110
|
-
box-shadow: 0 0 0
|
|
111
|
-
0 1px 2px var(--neutral-a4);
|
|
110
|
+
box-shadow: 0 0 0 1px var(--neutral-a4);
|
|
112
111
|
opacity: 0;
|
|
113
112
|
transition: opacity var(--seg-transition-duration) ease-out;
|
|
114
113
|
position: absolute;
|
|
@@ -132,13 +131,12 @@
|
|
|
132
131
|
z-index: -1;
|
|
133
132
|
top: var(--seg-inset);
|
|
134
133
|
bottom: var(--seg-inset);
|
|
135
|
-
left: anchor(--x-seg-active left);
|
|
136
|
-
right: anchor(--x-seg-active right);
|
|
134
|
+
left: calc(anchor(--x-seg-active left) + var(--seg-inset));
|
|
135
|
+
right: calc(anchor(--x-seg-active right) + var(--seg-inset));
|
|
137
136
|
background-color: var(--seg-indicator-bg);
|
|
138
137
|
border-radius: var(--seg-indicator-radius);
|
|
139
138
|
width: auto;
|
|
140
|
-
box-shadow: 0 0 0
|
|
141
|
-
0 1px 2px var(--neutral-a4);
|
|
139
|
+
box-shadow: 0 0 0 1px var(--neutral-a4);
|
|
142
140
|
transition: left var(--seg-transition-duration) cubic-bezier(.45, .05, .55, .95),
|
|
143
141
|
right var(--seg-transition-duration) cubic-bezier(.45, .05, .55, .95);
|
|
144
142
|
position: absolute;
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
text-overflow: ellipsis;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
cursor: var(--cursor-button);
|
|
11
|
-
|
|
11
|
+
--select-chevron-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23202020' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
|
|
12
|
+
background-image: var(--select-chevron-image);
|
|
12
13
|
background-repeat: no-repeat;
|
|
13
14
|
background-position: right var(--select-chevron-inset) center;
|
|
14
15
|
background-size: var(--select-chevron-size) var(--select-chevron-size);
|
|
@@ -21,13 +22,17 @@
|
|
|
21
22
|
overflow: hidden;
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
:where(.dark, .dark-theme) .x-select, .x-select:where(.dark, .dark-theme) {
|
|
26
|
+
--select-chevron-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23eeeeee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
.x-select:where(:focus-visible) {
|
|
25
30
|
outline: 2px solid var(--focus-8);
|
|
26
31
|
outline-offset: -1px;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
.x-select:where([data-size="1"]) {
|
|
30
|
-
--select-chevron-size:
|
|
35
|
+
--select-chevron-size: 12px;
|
|
31
36
|
--select-chevron-inset: var(--space-2);
|
|
32
37
|
gap: var(--space-1);
|
|
33
38
|
font-size: var(--font-size-1);
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
.x-select:where(:not([data-size]), [data-size="2"]) {
|
|
51
|
-
--select-chevron-size:
|
|
56
|
+
--select-chevron-size: 14px;
|
|
52
57
|
--select-chevron-inset: var(--space-3);
|
|
53
58
|
gap: calc(var(--space-1) * 1.5);
|
|
54
59
|
font-size: var(--font-size-2);
|
|
@@ -69,7 +74,7 @@
|
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
.x-select:where([data-size="3"]) {
|
|
72
|
-
--select-chevron-size:
|
|
77
|
+
--select-chevron-size: 16px;
|
|
73
78
|
--select-chevron-inset: var(--space-4);
|
|
74
79
|
gap: var(--space-2);
|
|
75
80
|
font-size: var(--font-size-3);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elements-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.26.
|
|
4
|
+
"version": "0.26.3",
|
|
5
5
|
"description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"webcomponents",
|