@skeletonlabs/skeleton-common 5.0.0-next.4 → 5.0.0-next.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-common",
3
- "version": "5.0.0-next.4",
3
+ "version": "5.0.0-next.5",
4
4
  "description": "The common package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  top: 50%;
25
25
  transform: translateY(-50%);
26
26
 
27
- @apply btn-icon btn-icon-sm preset-tonal;
27
+ @apply btn-icon btn-icon-xs preset-tonal;
28
28
  }
29
29
 
30
30
  &[data-part='clear-trigger'] {
@@ -25,7 +25,7 @@
25
25
  inset-inline-end: --spacing(1.5);
26
26
  top: --spacing(1.25);
27
27
 
28
- @apply btn-icon btn-icon-sm preset-tonal;
28
+ @apply btn-icon btn-icon-xs preset-tonal;
29
29
  }
30
30
 
31
31
  &[data-part='preset-trigger'] {
@@ -15,19 +15,11 @@
15
15
 
16
16
  display: flex;
17
17
  flex-wrap: wrap;
18
- gap: --spacing(2);
19
- padding: --spacing(2);
18
+ gap: --spacing(1.5);
20
19
  }
21
20
 
22
21
  &[data-part='item-preview'] {
23
- @apply preset-filled;
24
-
25
- font-size: var(--text-xs);
26
- line-height: var(--text-xs--line-height);
27
- border-radius: var(--radius-base);
28
-
29
- display: flex;
30
- align-items: center;
22
+ @apply btn btn-sm preset-filled;
31
23
 
32
24
  &[data-highlighted] {
33
25
  outline: 2px solid var(--color-surface-950-50);
@@ -37,23 +29,18 @@
37
29
 
38
30
  &[data-part='item-text'] {
39
31
  line-height: 1;
40
- padding: --spacing(1) --spacing(2);
41
32
  }
42
33
 
43
34
  &[data-part='item-delete-trigger'] {
44
- padding: --spacing(1) --spacing(2);
45
-
46
- @variant hover {
47
- @apply preset-tonal;
48
- }
35
+ width: var(--element-size-xs);
36
+ height: var(--element-size-xs);
37
+ display: flex;
38
+ justify-content: center;
39
+ align-items: center;
49
40
  }
50
41
 
51
42
  &[data-part='item-input'] {
52
43
  @apply input;
53
-
54
- padding-inline: --spacing(2);
55
- font-size: var(--text-xs);
56
- line-height: var(--text-xs--line-height);
57
44
  }
58
45
 
59
46
  &[data-part='input'] {
@@ -24,11 +24,16 @@
24
24
  }
25
25
 
26
26
  &[data-part='item'] {
27
- display: flex;
27
+ --tg-size: var(--element-size-base);
28
+ --tg-scalar: var(--element-scalar-base);
29
+
30
+ display: inline-flex;
28
31
  justify-content: center;
29
32
  align-items: center;
30
- width: --spacing(9);
31
- aspect-ratio: 1;
33
+ font-size: var(--tg-size);
34
+ line-height: var(--tg-size);
35
+ height: calc(var(--tg-size) + 2 * var(--tg-scalar));
36
+ padding: var(--tg-scalar);
32
37
 
33
38
  @variant hover {
34
39
  @apply preset-tonal;