@coolms/ui-react 0.1.0-alpha.6 → 0.1.0-alpha.7

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
4
 
5
+ ## 0.1.0-alpha.7 (2026-11-08)
6
+
7
+ An icon of its own for the important folder.
8
+
9
+ - Added: the `important` icon, a marker shaped as a label's chevron, for a mail client's important folder. The bell
10
+ stays for notifications alone. The demo's mail folders show it after Starred.
11
+
5
12
  ## 0.1.0-alpha.6 (2026-11-08)
6
13
 
7
14
  A file opens over the page, and every place that waits, finds nothing or is refused says so in one way.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  /** The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. */
3
- export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately';
3
+ export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important';
4
4
  export interface IconProps {
5
5
  readonly name: IconName;
6
6
  readonly size?: number;
package/dist/index.js CHANGED
@@ -397,7 +397,8 @@ const X = {
397
397
  /* @__PURE__ */ e("path", { d: "M7 7.5h.5M7 16.5h.5" })
398
398
  ] }),
399
399
  reply: /* @__PURE__ */ e("path", { d: "M10 8 4 13l6 5M4 13h11a5 5 0 0 1 5 5" }),
400
- more: /* @__PURE__ */ e("path", { d: "M5 12h.5M12 12h.5M19 12h.5" })
400
+ more: /* @__PURE__ */ e("path", { d: "M5 12h.5M12 12h.5M19 12h.5" }),
401
+ important: /* @__PURE__ */ e("path", { d: "M4 6h11l5 6-5 6H4l4-6-4-6Z" })
401
402
  };
402
403
  function x({ name: l, size: n = 20, label: a }) {
403
404
  return /* @__PURE__ */ e(
@@ -599,7 +600,7 @@ function he(l) {
599
600
  n = n * 31 + (a.codePointAt(0) ?? 0) >>> 0;
600
601
  return n % 6 + 1;
601
602
  }
602
- function V({ name: l, pictureUrl: n, presence: a, size: t = 32 }) {
603
+ function H({ name: l, pictureUrl: n, presence: a, size: t = 32 }) {
603
604
  return /* @__PURE__ */ c(
604
605
  "span",
605
606
  {
@@ -726,7 +727,7 @@ function Ze({ panes: l, active: n, back: a }) {
726
727
  ] }, s.label)) });
727
728
  }
728
729
  const pe = { attachment: "Has an attachment", unread: "Unread" };
729
- function Ve({ from: l, subject: n, preview: a, time: t, unread: s, hasAttachment: h, selected: i, onOpen: m, labels: d }) {
730
+ function He({ from: l, subject: n, preview: a, time: t, unread: s, hasAttachment: h, selected: i, onOpen: m, labels: d }) {
730
731
  const r = Z(pe, d);
731
732
  return /* @__PURE__ */ c(
732
733
  "button",
@@ -736,7 +737,7 @@ function Ve({ from: l, subject: n, preview: a, time: t, unread: s, hasAttachment
736
737
  "aria-current": i ? "true" : void 0,
737
738
  onClick: m,
738
739
  children: [
739
- /* @__PURE__ */ e(V, { name: l, size: 40 }),
740
+ /* @__PURE__ */ e(H, { name: l, size: 40 }),
740
741
  /* @__PURE__ */ c("span", { className: "cms-mail-row__body", children: [
741
742
  /* @__PURE__ */ c("span", { className: "cms-mail-row__line", children: [
742
743
  /* @__PURE__ */ e("span", { className: "cms-mail-row__from", children: l }),
@@ -753,7 +754,7 @@ function Ve({ from: l, subject: n, preview: a, time: t, unread: s, hasAttachment
753
754
  }
754
755
  );
755
756
  }
756
- function He({ direction: l, children: n, time: a, read: t, readLabel: s = "Read" }) {
757
+ function Ve({ direction: l, children: n, time: a, read: t, readLabel: s = "Read" }) {
757
758
  return /* @__PURE__ */ c("div", { className: g("cms-bubble", `cms-bubble--${l}`), children: [
758
759
  /* @__PURE__ */ e("div", { className: "cms-bubble__text", children: n }),
759
760
  /* @__PURE__ */ c("div", { className: "cms-bubble__meta", children: [
@@ -818,7 +819,7 @@ const W = {
818
819
  function We({ name: l, media: n, onAccept: a, onDecline: t, labels: s }) {
819
820
  const h = Z(W, s), i = n === "video" ? h.incomingVideo : h.incomingAudio;
820
821
  return /* @__PURE__ */ c("div", { className: "cms-call-incoming", role: "alertdialog", "aria-label": h.incomingFrom(i, l), children: [
821
- /* @__PURE__ */ e("span", { className: "cms-call-incoming__ring", "aria-hidden": "true", children: /* @__PURE__ */ e(V, { name: l, size: 112 }) }),
822
+ /* @__PURE__ */ e("span", { className: "cms-call-incoming__ring", "aria-hidden": "true", children: /* @__PURE__ */ e(H, { name: l, size: 112 }) }),
822
823
  /* @__PURE__ */ e("p", { className: "cms-call-incoming__name", children: l }),
823
824
  /* @__PURE__ */ e("p", { className: "cms-call-incoming__what", children: i }),
824
825
  /* @__PURE__ */ c("div", { className: "cms-call-incoming__actions", children: [
@@ -846,7 +847,7 @@ function Ue({ name: l, duration: n, connection: a, you: t, muted: s, speaker: h,
846
847
  const u = Z(W, f);
847
848
  return /* @__PURE__ */ c("section", { className: "cms-call-panel", "aria-label": u.callWith(l), children: [
848
849
  /* @__PURE__ */ c("div", { className: "cms-call-panel__head", children: [
849
- /* @__PURE__ */ e(V, { name: l, size: 64 }),
850
+ /* @__PURE__ */ e(H, { name: l, size: 64 }),
850
851
  /* @__PURE__ */ c("div", { className: "cms-call-panel__who", children: [
851
852
  /* @__PURE__ */ e("p", { className: "cms-call-panel__name", children: l }),
852
853
  /* @__PURE__ */ e("p", { className: "cms-call-panel__time", "aria-label": u.callTime(n), children: n })
@@ -854,7 +855,7 @@ function Ue({ name: l, duration: n, connection: a, you: t, muted: s, speaker: h,
854
855
  /* @__PURE__ */ e("span", { className: g("cms-pill", a === "good" ? "cms-pill--success" : "cms-pill--warning"), children: a === "good" ? u.goodConnection : u.poorConnection })
855
856
  ] }),
856
857
  /* @__PURE__ */ c("div", { className: "cms-call-panel__you", children: [
857
- /* @__PURE__ */ e(V, { name: t.name, size: 36 }),
858
+ /* @__PURE__ */ e(H, { name: t.name, size: 36 }),
858
859
  /* @__PURE__ */ e("span", { children: u.you }),
859
860
  t.speaking ? /* @__PURE__ */ e("span", { className: "cms-call-panel__level", role: "img", "aria-label": u.speaking }) : null
860
861
  ] }),
@@ -1111,9 +1112,9 @@ function Oe(l, n, a, t) {
1111
1112
  const s = Ne(a);
1112
1113
  return ve(n, "X-Elevation-Required") !== void 0 ? t.elevates ? { kind: "elevation-required", message: s ?? "This needs an elevated session." } : { kind: "refused", message: "This can only be done in the admin, in an elevated session." } : { kind: "refused", message: s ?? "The server refused this." };
1113
1114
  }
1114
- const H = "coolms-kit:reread";
1115
+ const V = "coolms-kit:reread";
1115
1116
  function Qe() {
1116
- window.dispatchEvent(new Event(H));
1117
+ window.dispatchEvent(new Event(V));
1117
1118
  }
1118
1119
  function Je(l) {
1119
1120
  const [n, a] = E(void 0), [t, s] = E(void 0), [h, i] = E(!0), m = A(l);
@@ -1132,8 +1133,8 @@ function Je(l) {
1132
1133
  return K(() => {
1133
1134
  r();
1134
1135
  const o = () => r();
1135
- return window.addEventListener("focus", o), window.addEventListener(H, o), () => {
1136
- window.removeEventListener("focus", o), window.removeEventListener(H, o);
1136
+ return window.addEventListener("focus", o), window.addEventListener(V, o), () => {
1137
+ window.removeEventListener("focus", o), window.removeEventListener(V, o);
1137
1138
  };
1138
1139
  }, [r]), { value: n, error: t, loading: h, reread: r };
1139
1140
  }
@@ -1154,14 +1155,14 @@ function ll(l) {
1154
1155
  }
1155
1156
  export {
1156
1157
  Ke as AppShell,
1157
- V as Avatar,
1158
+ H as Avatar,
1158
1159
  fe as Badge,
1159
1160
  F as Button,
1160
1161
  W as CALL_LABELS,
1161
1162
  ge as CLIENT_UPDATE_REQUIRED,
1162
1163
  je as CallBar,
1163
1164
  Ue as CallPanel,
1164
- He as ChatBubble,
1165
+ Ve as ChatBubble,
1165
1166
  Re as Composer,
1166
1167
  Ee as ConfirmDialog,
1167
1168
  Ye as ContextMenu,
@@ -1176,7 +1177,7 @@ export {
1176
1177
  ne as Loading,
1177
1178
  pe as MAIL_ROW_LABELS,
1178
1179
  ee as MODAL_CLOSE_MS,
1179
- Ve as MailRow,
1180
+ He as MailRow,
1180
1181
  le as Modal,
1181
1182
  Ie as PageHeader,
1182
1183
  _e as SIGN_IN_LABELS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.7",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",