@redseed/redseed-ui-tailwindcss 7.45.0 → 7.47.0

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,17 @@
1
+ .rsui-button-ai {
2
+ /* default colors */
3
+ @apply text-text-ai bg-linear-to-tr from-background-ai-from to-background-ai-to border-border-ai;
4
+
5
+ /* default hover state */
6
+ @apply hover:text-text-ai hover:from-background-ai-invert hover:to-background-ai-from hover:border-border-ai;
7
+
8
+ /* default focus state */
9
+ @apply focus-visible:ring-border-ai focus-visible:border-border-ai;
10
+
11
+ /* default active state */
12
+ @apply active:bg-none active:bg-background-ai-invert;
13
+
14
+ /* default disabled state */
15
+ @apply disabled:bg-none disabled:bg-button-disabled disabled:border-button-disabled disabled:text-text-disabled;
16
+ @apply disabled:active:bg-none disabled:active:bg-button-disabled disabled:active:border-button-disabled;
17
+ }
@@ -116,19 +116,19 @@
116
116
  }
117
117
 
118
118
  .rsui-card__image__badge-container {
119
- @apply absolute inset-x-0 w-full bottom-0 py-4 px-4 sm:px-6 flex gap-1;
119
+ @apply absolute inset-x-0 w-full bottom-0 py-space-xl px-space-xl flex gap-space-xxs;
120
120
  }
121
121
 
122
122
  .rsui-card__content {
123
- @apply flex-1 flex flex-col relative gap-y-3;
123
+ @apply flex-1 flex flex-col relative gap-y-space-sm;
124
124
  }
125
125
 
126
126
  .rsui-card__content--padded {
127
- @apply py-5 px-4 min-h-16;
127
+ @apply py-space-xl px-space-xl min-h-16;
128
128
  }
129
129
 
130
130
  .rsui-card__meta {
131
- @apply max-w-full overflow-x-auto grid grid-cols-1 gap-x-6 gap-y-2;
131
+ @apply max-w-full overflow-x-auto grid grid-cols-1 gap-x-space-lg gap-y-space-xs;
132
132
  }
133
133
 
134
134
  .rsui-card--2xs .rsui-card__meta {
@@ -148,17 +148,17 @@
148
148
  }
149
149
 
150
150
  .rsui-card--lg .rsui-card__meta {
151
- @apply grid-cols-6 gap-x-8;
151
+ @apply grid-cols-6 gap-x-space-xl;
152
152
  }
153
153
 
154
154
  .rsui-card--xl .rsui-card__meta {
155
- @apply grid-cols-8 gap-x-8;
155
+ @apply grid-cols-8 gap-x-space-xl;
156
156
  }
157
157
 
158
158
  .rsui-card--2xl .rsui-card__meta {
159
- @apply grid-cols-10 gap-x-8;
159
+ @apply grid-cols-10 gap-x-space-xl;
160
160
  }
161
161
 
162
162
  .rsui-card--3xl .rsui-card__meta {
163
- @apply grid-cols-12 gap-x-8;
163
+ @apply grid-cols-12 gap-x-space-xl;
164
164
  }
@@ -1,10 +1,9 @@
1
1
  .rsui-card-header {
2
2
  @apply @container/card-header;
3
- @apply flex flex-col gap-x-3 gap-y-5 transition-all;
4
- @apply pt-4 pb-0 px-4;
3
+ @apply flex flex-col gap-x-space-sm gap-y-space-lg transition-all;
4
+ @apply pt-space-xl pb-0 px-space-xl;
5
5
  @apply border-b border-transparent;
6
6
 
7
- @apply @sm/card-header:px-6;
8
7
  @apply @md/card-header:flex-row @md/card-header:justify-between @md/card-header:items-center;
9
8
  }
10
9
 
@@ -18,11 +17,11 @@
18
17
  }
19
18
 
20
19
  .rsui-card-header--padded-bottom {
21
- @apply pb-4;
20
+ @apply pb-space-xl;
22
21
  }
23
22
 
24
23
  .rsui-card-header__header {
25
- @apply flex-1 flex justify-between items-start gap-x-3;
24
+ @apply flex-1 flex justify-between items-start gap-x-space-sm;
26
25
  }
27
26
 
28
27
  .rsui-card-header__header--single-line {
@@ -41,13 +40,13 @@
41
40
  }
42
41
 
43
42
  .rsui-card-header__text {
44
- @apply flex-1 flex flex-col gap-y-2 pt-2;
43
+ @apply flex-1 flex flex-col gap-y-space-xs pt-2;
45
44
 
46
- @apply @md/card-header:pt-0 @md/card-header:gap-y-1;
45
+ @apply @md/card-header:pt-0 @md/card-header:gap-y-space-xxs;
47
46
  }
48
47
 
49
48
  .rsui-card-header__title-container {
50
- @apply flex flex-wrap items-center gap-y-1 gap-x-2;
49
+ @apply flex flex-wrap items-center gap-y-space-xxs gap-x-space-xs;
51
50
  }
52
51
 
53
52
  .rsui-card-header__title {
@@ -72,15 +71,15 @@
72
71
  }
73
72
 
74
73
  .rsui-card-header__toolbar {
75
- @apply flex gap-3 justify-end;
74
+ @apply flex gap-space-sm justify-end;
76
75
 
77
76
  @apply @md/card-header:items-center;
78
77
  }
79
78
 
80
79
  .rsui-card-header__actions-desktop {
81
- @apply flex gap-3 items-center;
80
+ @apply flex gap-space-sm items-center;
82
81
  }
83
82
 
84
83
  .rsui-card-header__actions-mobile {
85
- @apply flex flex-wrap gap-3 items-center;
84
+ @apply flex flex-wrap gap-space-sm items-center;
86
85
  }
@@ -175,7 +175,7 @@
175
175
  .rsui-card-horizontal__body {
176
176
  /* Mobile: body fills full width below the image (self-stretch default).
177
177
  sm+: self-start so body drives the grid row height (not stretches to it). */
178
- @apply flex flex-col gap-y-2 p-4 min-w-0;
178
+ @apply flex flex-col gap-y-space-xs p-space-xl min-w-0;
179
179
  }
180
180
 
181
181
  @container card-horizontal (min-width: calc(32rem - 2px)) /* --container-lg (32rem=512px) - 2px border */ {
@@ -185,7 +185,7 @@
185
185
  }
186
186
 
187
187
  .rsui-card-horizontal__content {
188
- @apply flex flex-col gap-y-1;
188
+ @apply flex flex-col gap-y-space-xxs;
189
189
  }
190
190
 
191
191
  .rsui-card-horizontal__title {
@@ -197,5 +197,5 @@
197
197
  }
198
198
 
199
199
  .rsui-card-horizontal__meta {
200
- @apply flex flex-wrap items-center gap-x-3 gap-y-1;
200
+ @apply flex flex-wrap items-center gap-x-space-sm gap-y-space-xxs;
201
201
  }
@@ -10,6 +10,36 @@
10
10
  @apply flex-col items-start;
11
11
  }
12
12
 
13
+ /* Likert: a single nowrap row spread across the full width. Each anchor sits inside its
14
+ own end point (see the component), so justify-between distributes free space between
15
+ the scale points while the anchor stays tight against the circle it labels — that
16
+ distance is set on the item below, and free space never stretches it.
17
+ The gap here is only a floor: it applies once the row is at its natural width and
18
+ there is no free space left to distribute.
19
+ ponytail: no responsive collapse — a long scale on a narrow container overflows
20
+ its parent. Add overflow-x-auto or a stacked fallback if that shows up in the wild. */
21
+ .rsui-form-field-radio-group__items--likert {
22
+ @apply flex-nowrap justify-between gap-x-space-sm;
23
+ }
24
+
25
+ /* Anchor-to-circle distance. Wider than the default item gap so the anchor is not
26
+ crowding its circle, still far tighter than the gaps between scale points. */
27
+ .rsui-form-field-radio-group__items--likert .rsui-form-field-radio-group__item {
28
+ @apply gap-x-space-lg;
29
+ }
30
+
31
+ /* The anchors carry the meaning, so each radio's own label is for screen readers only */
32
+ .rsui-form-field-radio-group__items--likert .rsui-form-field-radio-group__item-label {
33
+ @apply sr-only;
34
+ }
35
+
36
+ /* Typography matches .rsui-form-field-radio-group__item-label — the anchors read as scale
37
+ options, not as field labels, and inherit their size the same way. They are not <label>
38
+ elements: an anchor names the end of the scale, not any one radio. */
39
+ .rsui-form-field-radio-group__anchor {
40
+ @apply shrink-0 font-normal text-text-primary;
41
+ }
42
+
13
43
  .rsui-form-field-radio-group__item {
14
44
  @apply relative flex items-center gap-x-2 cursor-pointer;
15
45
  }
package/components.css CHANGED
@@ -18,6 +18,7 @@ Please be careful when adding new components and updating the order.
18
18
  @import './components/button_secondary.css';
19
19
  @import './components/button_tertiary.css';
20
20
  @import './components/button_danger.css';
21
+ @import './components/button_ai.css';
21
22
  @import './components/card_group.css';
22
23
  @import './components/card.css';
23
24
  @import './components/card_header.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-tailwindcss",
3
- "version": "7.45.0",
3
+ "version": "7.47.0",
4
4
  "description": "RedSeed UI Tailwindcss",
5
5
  "main": "index.js",
6
6
  "style": "index.css",
package/tokens.css CHANGED
@@ -74,6 +74,7 @@
74
74
  --color-button-disabled: var(--Colors-Grey-200);
75
75
 
76
76
  /* Spacing */
77
+ --spacing-space-xxs: 0.25rem; /* 4px */
77
78
  --spacing-space-xs: 0.5rem; /* 8px */
78
79
  --spacing-space-sm: 0.75rem; /* 12px */
79
80
  --spacing-space-md: 1rem; /* 16px */