@dorsk/tsumikit 0.9.3 → 0.9.4
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.
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
size = 'md',
|
|
17
17
|
mono = false,
|
|
18
18
|
uppercase = false,
|
|
19
|
+
border = true,
|
|
19
20
|
active = false,
|
|
20
21
|
removable = false,
|
|
21
22
|
onremove,
|
|
@@ -29,6 +30,9 @@
|
|
|
29
30
|
mono?: boolean;
|
|
30
31
|
// Uppercase, letter-spaced label — for status tags/eyebrows.
|
|
31
32
|
uppercase?: boolean;
|
|
33
|
+
// Borderless "soft" variant: tone-tinted fill pill with no ring. The
|
|
34
|
+
// default (`true`) keeps the outlined look for backwards compatibility.
|
|
35
|
+
border?: boolean;
|
|
32
36
|
// Interactive "on" state for a toggle/count badge (`as="button"`): fills the
|
|
33
37
|
// pill with its tone instead of just tinting the border.
|
|
34
38
|
active?: boolean;
|
|
@@ -51,6 +55,7 @@
|
|
|
51
55
|
class:badge-sm={size === 'sm'}
|
|
52
56
|
class:mono
|
|
53
57
|
class:uppercase
|
|
58
|
+
class:borderless={!border}
|
|
54
59
|
class:active
|
|
55
60
|
class:interactive={as === 'button'}
|
|
56
61
|
{...rest}
|
|
@@ -109,6 +114,11 @@
|
|
|
109
114
|
border-color: color-mix(in srgb, var(--info) 40%, transparent);
|
|
110
115
|
background: color-mix(in srgb, var(--info) 12%, transparent);
|
|
111
116
|
}
|
|
117
|
+
/* Soft variant: drop the ring, keep the tinted fill. Transparent (not
|
|
118
|
+
`border: 0`) so layout/baseline matches the outlined default exactly. */
|
|
119
|
+
.borderless {
|
|
120
|
+
border-color: transparent;
|
|
121
|
+
}
|
|
112
122
|
.mono {
|
|
113
123
|
font-family: var(--font-mono);
|
|
114
124
|
font-weight: var(--fw-normal);
|
package/package.json
CHANGED