@abpjs/ui 0.2.0-next.24 → 0.2.0-next.27

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.27
4
+
5
+ A prerelease under npm's `next` tag. (0.2.0-next.26 was tagged but never published: a test list was malformed.)
6
+
7
+ - `EmptyState variant="page"`: for a page whose whole main content is empty. In place of the icon it draws
8
+ `illustration`, the feature the page is about: `records`, `board`, `views`, `dashboards`, `dashboard`, `reports`,
9
+ `calendar`, `timeline`, `gantt`, `backlog`, `queue`, `comments` or `files`. The drawing is a clear card with softer
10
+ cards either side that fade into the surface. A search that finds nothing (`no-results`, `no-filter-match`) adds a
11
+ small search mark. Errors never get the drawing.
12
+ - `EmptyState art`: a small flat drawing in place of the icon, for an empty list in a panel or a settings card:
13
+ `records`, `search`, `done`, `bell`, `handover`, `agent` or `error`.
14
+ - `EmptyState layout="inline"`: the drawing, the words and the action on one line, on a quiet surface. The action
15
+ wraps under the words when there's no room.
16
+ - The drawings use only the theme's tokens (neutral, accent, amber, green) in light and dark, and are decorative
17
+ (`aria-hidden`). A `no-results` or `no-filter-match` empty state is a polite live region, and an `error` one is an
18
+ alert.
19
+ - `PageIllustration`, `EmptyArtDrawing`, `EmptyIllustration` and `EmptyArt` are exported.
20
+
21
+ ## 0.2.0-next.25
22
+
23
+ A prerelease under npm's `next` tag.
24
+
25
+ - agent: the chat's delete icon is `danger`, red at all times, like every delete (trash) icon.
26
+
3
27
  ## 0.2.0-next.24
4
28
 
5
29
  A prerelease under npm's `next` tag.
package/dist/agent.js CHANGED
@@ -1731,7 +1731,7 @@ function AgentChatPanel({ itemHref }) {
1731
1731
  trapFocus: false,
1732
1732
  preventScroll: false,
1733
1733
  onOpenChange: (e) => !e.open && close(),
1734
- children: /* @__PURE__ */ jsx14(Portal, { children: /* @__PURE__ */ jsx14(Drawer.Positioner, { pointerEvents: "none", children: /* @__PURE__ */ jsxs13(Drawer.Content, { pointerEvents: "auto", borderStartWidth: "1px", borderColor: "border.muted", "data-testid": "agent-chat", children: [
1734
+ children: /* @__PURE__ */ jsx14(Portal, { children: /* @__PURE__ */ jsx14(Drawer.Positioner, { pointerEvents: "none", width: "100%", children: /* @__PURE__ */ jsxs13(Drawer.Content, { pointerEvents: "auto", borderStartWidth: "1px", borderColor: "border.muted", "data-testid": "agent-chat", children: [
1735
1735
  view.kind === "list" ? /* @__PURE__ */ jsx14(ChatList, { onOpen: (id) => setView({ kind: "chat", id }), onNew: () => setView({ kind: "new", target: {} }) }) : view.kind === "new" ? /* @__PURE__ */ jsx14(NewChat, { target: view.target, onBack: () => setView({ kind: "list" }), onStarted: (id) => setView({ kind: "chat", id }) }) : /* @__PURE__ */ jsx14(ChatView, { id: view.id, onBack: () => setView({ kind: "list" }), onMissing: view.opened ? () => setView({ kind: "list" }) : void 0 }, view.id),
1736
1736
  /* @__PURE__ */ jsx14(Drawer.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx14(CloseButton, { size: "sm", "aria-label": t("chat.close") }) })
1737
1737
  ] }) }) })
@@ -1895,7 +1895,7 @@ function ChatView({ id, onBack, onMissing }) {
1895
1895
  c.chat.itemKey ? /* @__PURE__ */ jsx14(ItemLink, { kind: c.chat.itemKind, itemKey: c.chat.itemKey, children: t("chat.about", { key: c.chat.itemKey }) }) : /* @__PURE__ */ jsx14(Where, { chat: c.chat })
1896
1896
  ] })
1897
1897
  ] }),
1898
- c && !going && /* @__PURE__ */ jsx14(IconButton, { "aria-label": t("chat.delete"), size: "sm", onClick: () => void remove(), "data-testid": "agent-chat-delete", children: /* @__PURE__ */ jsx14(Trash2, { size: 16 }) })
1898
+ c && !going && /* @__PURE__ */ jsx14(IconButton, { danger: true, "aria-label": t("chat.delete"), size: "sm", onClick: () => void remove(), "data-testid": "agent-chat-delete", children: /* @__PURE__ */ jsx14(Trash2, { size: 16 }) })
1899
1899
  ] }) }),
1900
1900
  /* @__PURE__ */ jsxs13(Drawer.Body, { children: [
1901
1901
  chat.error && /* @__PURE__ */ jsx14(InlineAlert9, { tone: "danger", children: chat.error }),