elements-kit 0.26.5 → 0.26.7

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.
@@ -7,9 +7,20 @@
7
7
 
8
8
  .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle) {
9
9
  z-index: 0;
10
+ --seam-open: -100vmax;
11
+ --seam-start: var(--seam-open);
12
+ --seam-end: var(--seam-open);
13
+ --seam-left: var(--seam-start);
14
+ --seam-right: var(--seam-end);
15
+ clip-path: inset(var(--seam-open) var(--seam-right) var(--seam-open) var(--seam-left));
10
16
  position: relative;
11
17
  }
12
18
 
19
+ [dir="rtl"] .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle) {
20
+ --seam-left: var(--seam-end);
21
+ --seam-right: var(--seam-start);
22
+ }
23
+
13
24
  .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle):where(:hover, :focus-within) {
14
25
  z-index: 1;
15
26
  }
@@ -18,6 +29,22 @@
18
29
  margin-inline-start: -1px;
19
30
  }
20
31
 
32
+ .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle):not(:last-child) {
33
+ --seam-end: 1px;
34
+ }
35
+
36
+ .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle):is(:hover, :focus-within) {
37
+ --seam-end: var(--seam-open);
38
+ }
39
+
40
+ .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle):is(:hover, :focus-within) + :is(.x-button, .x-text-input, .x-select, .x-toggle):not(:hover, :focus-within) {
41
+ --seam-start: 1px;
42
+ }
43
+
44
+ .x-group > .x-button[data-variant="solid"] + .x-button[data-variant="solid"] {
45
+ --seam-start: var(--seam-open);
46
+ }
47
+
21
48
  .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle):not(:last-child) {
22
49
  border-start-end-radius: 0;
23
50
  border-end-end-radius: 0;
@@ -53,4 +80,8 @@
53
80
  border-inline-start: 1px solid buttontext;
54
81
  margin-inline-start: 0;
55
82
  }
83
+
84
+ .x-group > :is(.x-button, .x-text-input, .x-select, .x-toggle) {
85
+ clip-path: none;
86
+ }
56
87
  }
@@ -8,7 +8,7 @@
8
8
  text-overflow: ellipsis;
9
9
  white-space: nowrap;
10
10
  cursor: var(--cursor-button);
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>");
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' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
12
12
  background-image: var(--select-chevron-image);
13
13
  background-repeat: no-repeat;
14
14
  background-position: right var(--select-chevron-inset) center;
@@ -23,15 +23,15 @@
23
23
  }
24
24
 
25
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>");
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' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
27
27
  }
28
28
 
29
29
  .x-select:where(:disabled) {
30
- --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='%23646464' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
30
+ --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='%23646464' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
31
31
  }
32
32
 
33
33
  :where(.dark, .dark-theme) .x-select:where(:disabled), .x-select:where(.dark, .dark-theme):where(:disabled) {
34
- --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='%23b4b4b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
34
+ --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='%23b4b4b4' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' d='M3 5l3 3 3-3'/></svg>");
35
35
  }
36
36
 
37
37
  .x-select:where(:focus-visible) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elements-kit",
3
3
  "type": "module",
4
- "version": "0.26.5",
4
+ "version": "0.26.7",
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",