@partrunner-ai/ui 2.5.0 → 2.5.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.
- package/DESIGN.md +4 -0
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/recipes/inbox.md +1 -0
- package/styles/light.css +23 -4
- package/styles/theme.css +23 -4
- package/styles/ui.css +23 -4
package/DESIGN.md
CHANGED
|
@@ -154,6 +154,10 @@ person reads one record.
|
|
|
154
154
|
«Soporte:», «Asistente:»), how long it waits (a `Badge` at the start of the `footer`), and what is open
|
|
155
155
|
and who has it (the text of the `footer`). The time of the last message is the `meta`. Do not
|
|
156
156
|
use `trailing` in a ticket desk: a badge there pushes the time and cuts the title.
|
|
157
|
+
- `density="compact"` is for a dense work queue: three text lines in 59 px a row (60 px with the
|
|
158
|
+
divider), 62 px when the footer starts with a `sm` `Badge` (63 px with the divider). Use the default `comfortable` for a short list. The footer of a compact row takes a `sm`
|
|
159
|
+
`Badge`; a `md` badge makes the row 64 px (65 px with the divider). An app must not restyle the row parts
|
|
160
|
+
(`.pr-item-row__*`): the package gives the rhythm.
|
|
157
161
|
- Give each record one next step: ours to reply, ours to work, or theirs. Sort in that order.
|
|
158
162
|
Urgency colour (`tone` on the row and on the badge) shows only when the next step is ours. A
|
|
159
163
|
record that waits for the other side stays quiet.
|
package/dist/index.cjs
CHANGED
|
@@ -7406,25 +7406,26 @@ var ItemRow = react.forwardRef(function ItemRow2({
|
|
|
7406
7406
|
...rest
|
|
7407
7407
|
}, ref) {
|
|
7408
7408
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7409
|
-
leading != null ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__leading", children: [
|
|
7409
|
+
leading != null ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__leading", "data-slot": "item-row-leading", children: [
|
|
7410
7410
|
leading,
|
|
7411
|
-
unread ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__dot pr-item-row__dot--overlay", "aria-hidden": true }) : null
|
|
7411
|
+
unread ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__dot pr-item-row__dot--overlay", "data-slot": "item-row-dot", "aria-hidden": true }) : null
|
|
7412
7412
|
] }) : null,
|
|
7413
7413
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__body", children: [
|
|
7414
7414
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__top", children: [
|
|
7415
|
-
unread && leading == null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__dot", "aria-hidden": true }) : null,
|
|
7416
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__title", children: [
|
|
7415
|
+
unread && leading == null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__dot", "data-slot": "item-row-dot", "aria-hidden": true }) : null,
|
|
7416
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-item-row__title", "data-slot": "item-row-title", children: [
|
|
7417
7417
|
unread ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pr-visually-hidden", children: [
|
|
7418
7418
|
unreadLabel,
|
|
7419
7419
|
", "
|
|
7420
7420
|
] }) : null,
|
|
7421
7421
|
title
|
|
7422
7422
|
] }),
|
|
7423
|
-
meta != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__meta", children: meta }) : null
|
|
7423
|
+
meta != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__meta", "data-slot": "item-row-meta", children: meta }) : null
|
|
7424
7424
|
] }),
|
|
7425
7425
|
description != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7426
7426
|
"span",
|
|
7427
7427
|
{
|
|
7428
|
+
"data-slot": "item-row-description",
|
|
7428
7429
|
className: [
|
|
7429
7430
|
"pr-item-row__description",
|
|
7430
7431
|
descriptionLines === 2 ? "pr-item-row__description--2" : null
|
|
@@ -7432,9 +7433,9 @@ var ItemRow = react.forwardRef(function ItemRow2({
|
|
|
7432
7433
|
children: description
|
|
7433
7434
|
}
|
|
7434
7435
|
) : null,
|
|
7435
|
-
footer != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__footer", children: footer }) : null
|
|
7436
|
+
footer != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__footer", "data-slot": "item-row-footer", children: footer }) : null
|
|
7436
7437
|
] }),
|
|
7437
|
-
trailing != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__trailing", children: trailing }) : null
|
|
7438
|
+
trailing != null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pr-item-row__trailing", "data-slot": "item-row-trailing", children: trailing }) : null
|
|
7438
7439
|
] });
|
|
7439
7440
|
const mainClass = "pr-item-row__main";
|
|
7440
7441
|
const current = selected ? "true" : void 0;
|