@heyramzi/ui 2.19.2 → 2.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyramzi/ui",
3
- "version": "2.19.2",
3
+ "version": "2.20.0",
4
4
  "description": "Svelte 5 UI for apps: primitives, effects and animations, plus work (tasks and docs), charts, slides, an editor, onboarding and a canvas as subpaths.",
5
5
  "homepage": "https://ui.heyramzi.com",
6
6
  "license": "MIT",
@@ -171,7 +171,7 @@
171
171
  {/each}
172
172
  </span>
173
173
  {:else if row.tone && row.value}
174
- <StatusBadge tone={row.tone} capitalize={false}>{row.value}</StatusBadge>
174
+ <StatusBadge tone={row.tone} capitalize={false} class="w-fit max-w-full">{row.value}</StatusBadge>
175
175
  {:else if row.href && row.value}
176
176
  <a
177
177
  href={row.href}
@@ -149,3 +149,42 @@
149
149
  --transition-duration-overlay: var(--duration-overlay);
150
150
  --transition-duration-loop: var(--duration-loop);
151
151
  }
152
+
153
+ /* ── Row actions ─────────────────────────────────────────────
154
+ `hover-row` marks the host, `row-action` each action: hidden under a pointer
155
+ until hover or keyboard focus, always shown on touch. */
156
+ @layer components {
157
+ .row-action {
158
+ opacity: 0;
159
+ transition: opacity var(--duration-quick) var(--ease-smooth-out);
160
+ }
161
+
162
+ .hover-row:has(:focus-visible) .row-action,
163
+ .row-action:is(
164
+ :focus-visible,
165
+ :has(:focus-visible),
166
+ [data-state="open"],
167
+ [aria-expanded="true"],
168
+ :has([data-state="open"], [aria-expanded="true"])
169
+ ) {
170
+ opacity: 1;
171
+ }
172
+
173
+ @media (hover: hover) and (pointer: fine) {
174
+ .hover-row:hover .row-action {
175
+ opacity: 1;
176
+ }
177
+ }
178
+
179
+ @media (hover: none), (any-pointer: coarse) {
180
+ .row-action {
181
+ opacity: 1;
182
+ }
183
+ }
184
+
185
+ @media (prefers-reduced-motion: reduce) {
186
+ .row-action {
187
+ transition: none;
188
+ }
189
+ }
190
+ }