@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 +1 -1
- package/react/dist/index.css +6 -3
- package/react/dist/index.js +1 -1
- package/src/styles/drawer.css +2 -1
- package/src/styles/dropdown.css +10 -10
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
|
@@ -185,10 +185,13 @@
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/* src/KeyValueList.css */
|
|
188
|
-
.ui-
|
|
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-
|
|
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-
|
|
209
|
+
.ui-kv {
|
|
207
210
|
grid-template-columns: minmax(0, 1fr);
|
|
208
211
|
row-gap: var(--space-3);
|
|
209
212
|
}
|
package/react/dist/index.js
CHANGED
|
@@ -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-
|
|
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)) });
|
package/src/styles/drawer.css
CHANGED
|
@@ -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 +
|
|
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()
|
package/src/styles/dropdown.css
CHANGED
|
@@ -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(--
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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 {
|
|
291
|
+
.ui-dropdown__badge.is-state {
|
|
292
|
+
/* muted-ink: state — off, unset, disabled or archived badge */
|
|
293
|
+
color: var(--muted);
|
|
294
|
+
}
|