@apliteni/apliteni-ui 0.58.0 → 0.58.2

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": "@apliteni/apliteni-ui",
3
- "version": "0.58.0",
3
+ "version": "0.58.2",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -185,10 +185,13 @@
185
185
  }
186
186
 
187
187
  /* src/KeyValueList.css */
188
- .ui-drawer__rows.ui-kv {
188
+ .ui-kv {
189
+ display: grid;
190
+ column-gap: var(--space-4);
191
+ margin: 0;
189
192
  grid-template-columns: calc(var(--space-6) * 5) minmax(0, 1fr);
190
193
  }
191
- .ui-drawer__rows.ui-kv--two-columns {
194
+ .ui-kv--two-columns {
192
195
  grid-template-columns: repeat(2, calc(var(--space-6) * 5) minmax(0, 1fr));
193
196
  }
194
197
  .ui-kv__hidden {
@@ -203,7 +206,7 @@
203
206
  stroke-width: 2.25;
204
207
  }
205
208
  @media (max-width: 560px) {
206
- .ui-drawer__rows.ui-kv {
209
+ .ui-kv {
207
210
  grid-template-columns: minmax(0, 1fr);
208
211
  row-gap: var(--space-3);
209
212
  }
@@ -1897,7 +1897,7 @@ function detail({ value, redacted }) {
1897
1897
  return typeof value === "boolean" ? String(value) : value;
1898
1898
  }
1899
1899
  function KeyValueList({ rows, columns = 1, className, ...rest }) {
1900
- return /* @__PURE__ */ jsx20("dl", { ...rest, className: ["ui-drawer__rows", "ui-kv", columns === 2 && "ui-kv--two-columns", className].filter(Boolean).join(" "), children: rows.map((row, index) => /* @__PURE__ */ jsxs16("div", { className: "ui-drawer__row", children: [
1900
+ return /* @__PURE__ */ jsx20("dl", { ...rest, className: ["ui-kv", columns === 2 && "ui-kv--two-columns", className].filter(Boolean).join(" "), children: rows.map((row, index) => /* @__PURE__ */ jsxs16("div", { className: "ui-drawer__row", children: [
1901
1901
  /* @__PURE__ */ jsx20("dt", { children: row.label }),
1902
1902
  /* @__PURE__ */ jsx20("dd", { children: detail(row) })
1903
1903
  ] }, index)) });
@@ -229,7 +229,8 @@
229
229
  }
230
230
  .ui-drawer__row dt { color: var(--text); }
231
231
  .ui-drawer__row dd { color: var(--text); font-variant-numeric: tabular-nums; }
232
- .ui-drawer__rows + * { margin-top: var(--space-3); }
232
+ .ui-drawer .ui-drawer__rows + *,
233
+ .ui-drawer .ui-kv + * { margin-top: var(--space-3); }
233
234
 
234
235
  /* Under reduced motion the net gives every element a 0.01ms transition, so a
235
236
  child inherits `visible` one tick after the root: the control openDrawer()
@@ -164,7 +164,7 @@
164
164
  .ui-dropdown__tick { margin-left: auto; flex: none; display: none; color: var(--accent); }
165
165
  .ui-dropdown__tick svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
166
166
  .ui-dropdown__item.is-selected .ui-dropdown__tick { display: inline-flex; } /* motion: still — a mark inside a row whose highlight already transitions; picking it closes the panel, which fades out over --dur-med */
167
- .ui-dropdown__item.is-selected .ui-dropdown__label { color: var(--accent); }
167
+ .ui-dropdown__item.is-selected .ui-dropdown__label { color: var(--text); }
168
168
 
169
169
  /* When a row has both a badge and a tick, keep the badge from eating the margin */
170
170
  .ui-dropdown__badge + .ui-dropdown__tick { margin-left: 8px; }
@@ -174,20 +174,17 @@
174
174
  /* rank: chip */
175
175
  font-size: var(--text-xs);
176
176
  font-weight: var(--weight-semibold);
177
- padding: 2px 7px;
177
+ padding: 3px 9px;
178
178
  border-radius: var(--radius-pill);
179
179
  margin-left: auto;
180
180
  flex: none;
181
181
  color: var(--text);
182
- /* A chip is the top step. why: docs/specification.md#elevation */
183
- background: var(--surface); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
182
+ background: color-mix(in srgb, var(--muted) 12%, transparent); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
184
183
  }
185
184
  .ui-dropdown__badge.is-live { color: var(--chip-success-ink); background: var(--chip-success-fill); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */ }
186
- /* The accent counter keeps the badge's flat surface and changes only the ink — the shape
187
- src/styles/nav.css:158 `.ui-nav__item.is-active .ui-nav__badge.is-accent` already holds.
188
- The accent wash goes on a base surface, never a raised one, and #295 made this panel a
189
- raised one. why: docs/specification.md#elevation */
190
- .ui-dropdown__badge.is-accent { color: var(--accent); background: var(--surface); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */ }
185
+ :root[data-theme="light"] .ui-dropdown__badge:not(.is-live) {
186
+ background: color-mix(in srgb, var(--muted) 15%, transparent); /* ring-gap: inherit — decorative or text-only surface has no nested focus target. */
187
+ }
191
188
 
192
189
  /* Disabled + danger rows */
193
190
  .ui-dropdown__item.is-disabled { /* muted-ink: state — unavailable control */ color: var(--disabled-ink); cursor: not-allowed; pointer-events: none; }
@@ -291,4 +288,7 @@
291
288
  .ui-dropdown__none-title { font-size: calc(var(--text-sm) - 0.5px); font-weight: 600; color: var(--strong); }
292
289
  .ui-dropdown__none-hint { font-size: var(--text-xs); color: var(--text); line-height: 1.35; }
293
290
 
294
- .ui-dropdown__badge.is-state { /* muted-ink: state — off, unset, disabled or archived badge */ color: var(--muted); }
291
+ .ui-dropdown__badge.is-state {
292
+ /* muted-ink: state — off, unset, disabled or archived badge */
293
+ color: var(--muted);
294
+ }