@redseed/redseed-ui-tailwindcss 7.43.0 → 7.44.1

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.
@@ -0,0 +1,55 @@
1
+ .rsui-pill {
2
+ /* Accent falls back to a neutral token when the consumer supplies no color. */
3
+ --rsui-pill-accent: var(--color-background-secondary-contrast);
4
+
5
+ @apply inline-flex items-center gap-2 w-fit h-fit shrink-0;
6
+ @apply rounded-full border border-border-secondary;
7
+ /* Design spec: pill hugs its content horizontally but stands 32px tall.
8
+ min-h-8 (32px) locks the height for both the icon and text-only variants;
9
+ items-center centres the content, so the 24px icon badge no longer drives
10
+ the pill past spec the way the old py-1.5 did. */
11
+ @apply px-3 min-h-8 select-none whitespace-nowrap cursor-pointer transition;
12
+ @apply text-sm font-medium leading-5;
13
+ @apply bg-background-primary text-text-secondary;
14
+
15
+ /* hover state */
16
+ @apply hover:bg-background-secondary;
17
+
18
+ /* focus state — mirrors button_slot (ring, cleared when disabled) */
19
+ @apply outline-hidden;
20
+ @apply focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-primary;
21
+ @apply disabled:focus-visible:ring-0;
22
+
23
+ /* disabled state */
24
+ @apply disabled:cursor-default disabled:bg-background-disabled disabled:text-text-disabled disabled:border-transparent;
25
+
26
+ & svg {
27
+ @apply size-5;
28
+ }
29
+ }
30
+
31
+ /* icon badge — solid accent fill with an on-color glyph */
32
+ .rsui-pill__icon {
33
+ @apply inline-flex items-center justify-center shrink-0 size-6 rounded-full;
34
+ @apply text-text-on-color;
35
+ background-color: var(--rsui-pill-accent);
36
+ }
37
+
38
+ /* selected — a single accent ring (the halo) with the resting border cleared so
39
+ it doesn't stack into a heavy double outline (which read near-black on a dark
40
+ accent). The tinted fill carries the accent colour, and the label switches to
41
+ the stronger text-primary — a hue-INDEPENDENT contrast cue so selection still
42
+ reads on a pale accent where the ring/tint wash out. Selection is therefore
43
+ never signalled by colour alone (text-contrast + aria-pressed carry it), and
44
+ the text-colour swap shifts no layout. */
45
+ .rsui-pill--selected {
46
+ @apply ring-2 ring-offset-0 text-text-primary;
47
+ --tw-ring-color: var(--rsui-pill-accent);
48
+ border-color: transparent;
49
+ background-color: color-mix(in srgb, var(--rsui-pill-accent) 16%, var(--color-background-primary));
50
+ }
51
+
52
+ /* disabled — neutralise the accent-driven badge fill */
53
+ .rsui-pill--disabled .rsui-pill__icon {
54
+ background-color: var(--color-background-disabled-contrast);
55
+ }
package/components.css CHANGED
@@ -79,6 +79,7 @@ Please be careful when adding new components and updating the order.
79
79
  @import './components/pagination_item.css';
80
80
  @import './components/pagination_item_previous.css';
81
81
  @import './components/pagination_item_next.css';
82
+ @import './components/pill.css';
82
83
  @import './components/progress_bar.css';
83
84
  @import './components/progress_circle.css';
84
85
  @import './components/progress_tracker.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-tailwindcss",
3
- "version": "7.43.0",
3
+ "version": "7.44.1",
4
4
  "description": "RedSeed UI Tailwindcss",
5
5
  "main": "index.js",
6
6
  "style": "index.css",