@openwarelabs/blocks 0.10.0 → 0.11.0
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/README.md +2 -0
- package/dist/index.cjs +19 -9
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +22 -12
- package/dist/index.js.map +3 -3
- package/dist/notifications/Notifications01/Notifications01.types.d.cts +2 -2
- package/dist/notifications/Notifications01/Notifications01.types.d.ts +2 -2
- package/dist/styles.css +202 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6823,14 +6823,24 @@ function Files({ files, open, onToggle, labels }) {
|
|
|
6823
6823
|
]
|
|
6824
6824
|
}
|
|
6825
6825
|
),
|
|
6826
|
-
expanded ? /* @__PURE__ */ jsx91(
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
"
|
|
6832
|
-
|
|
6833
|
-
|
|
6826
|
+
expanded ? /* @__PURE__ */ jsx91(
|
|
6827
|
+
Text83,
|
|
6828
|
+
{
|
|
6829
|
+
as: "pre",
|
|
6830
|
+
variant: "code",
|
|
6831
|
+
className: "ow-chat03__diff",
|
|
6832
|
+
tabIndex: 0,
|
|
6833
|
+
"aria-label": labels.diff?.(file.path) ?? `Changes to ${file.path}`,
|
|
6834
|
+
children: file.diff.map((line, index) => {
|
|
6835
|
+
const kind = line.startsWith("@@") ? "hunk" : line[0] === "+" ? "add" : line[0] === "-" ? "remove" : "context";
|
|
6836
|
+
const sign = kind === "add" ? "+" : kind === "remove" ? "\u2212" : "";
|
|
6837
|
+
return /* @__PURE__ */ jsxs91("span", { className: `ow-chat03__line ow-chat03__line--${kind}`, "data-sign": sign, children: [
|
|
6838
|
+
kind === "hunk" ? line : line.slice(1),
|
|
6839
|
+
"\n"
|
|
6840
|
+
] }, index);
|
|
6841
|
+
})
|
|
6842
|
+
}
|
|
6843
|
+
) : null
|
|
6834
6844
|
] }, file.path);
|
|
6835
6845
|
}) });
|
|
6836
6846
|
}
|
|
@@ -7440,7 +7450,7 @@ function ErrorPage03({
|
|
|
7440
7450
|
|
|
7441
7451
|
// blocks/src/notifications/Notifications01/Notifications01.tsx
|
|
7442
7452
|
import { useState as useState52 } from "react";
|
|
7443
|
-
import { Avatar as Avatar15, Badge as Badge20, Button as Button49, cx as cx94, Link as Link37, Popover as Popover4, ScrollShadow as ScrollShadow3, Tab as Tab4, TabList as TabList4, TabPanel as TabPanel4, Tabs as Tabs4, Text as Text90 } from "@openwarelabs/ui";
|
|
7453
|
+
import { Avatar as Avatar15, Badge as Badge20, Button as Button49, cx as cx94, Link as Link37, Popover as Popover4, ScrollShadow as ScrollShadow3, Tab as Tab4, TabList as TabList4, TabPanel as TabPanel4, Tabs as Tabs4, Text as Text90, VisuallyHidden as VisuallyHidden8 } from "@openwarelabs/ui";
|
|
7444
7454
|
import { jsx as jsx98, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
7445
7455
|
function Sender({ item }) {
|
|
7446
7456
|
if (item.icon) {
|
|
@@ -7460,12 +7470,12 @@ function NotificationList({ items, isUnread, onOpen, labels }) {
|
|
|
7460
7470
|
href: item.href ?? "#",
|
|
7461
7471
|
variant: "standalone",
|
|
7462
7472
|
className: "ow-notifications01__item",
|
|
7463
|
-
"aria-label": `${unread ? labels.unread ?? "Unread: " : ""}${item.summary}, ${item.where}, ${item.when}`,
|
|
7464
7473
|
onClick: (event) => {
|
|
7465
7474
|
if (item.href === void 0) event.preventDefault();
|
|
7466
7475
|
onOpen(item);
|
|
7467
7476
|
},
|
|
7468
7477
|
children: [
|
|
7478
|
+
unread ? /* @__PURE__ */ jsx98(VisuallyHidden8, { children: labels.unread ?? "Unread: " }) : null,
|
|
7469
7479
|
/* @__PURE__ */ jsx98(Sender, { item }),
|
|
7470
7480
|
/* @__PURE__ */ jsxs98("span", { className: "ow-notifications01__text", children: [
|
|
7471
7481
|
/* @__PURE__ */ jsx98(Text90, { as: "span", tone: "muted", children: item.message }),
|
|
@@ -7643,7 +7653,7 @@ function Notifications02({ title, description, days, kinds, onLoadEarlier, label
|
|
|
7643
7653
|
|
|
7644
7654
|
// blocks/src/notifications/Notifications03/Notifications03.tsx
|
|
7645
7655
|
import { useEffect as useEffect22, useId as useId79, useRef as useRef18, useState as useState54 } from "react";
|
|
7646
|
-
import { cx as cx96, Select as Select7, SettingsRow as SettingsRow2, Switch, Text as Text92, VisuallyHidden as
|
|
7656
|
+
import { cx as cx96, Select as Select7, SettingsRow as SettingsRow2, Switch, Text as Text92, VisuallyHidden as VisuallyHidden9 } from "@openwarelabs/ui";
|
|
7647
7657
|
import { Fragment as Fragment45, jsx as jsx100, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
7648
7658
|
function Notifications03({
|
|
7649
7659
|
title,
|
|
@@ -7719,7 +7729,7 @@ function Notifications03({
|
|
|
7719
7729
|
] }),
|
|
7720
7730
|
channels.map((channel) => /* @__PURE__ */ jsx100("td", { children: /* @__PURE__ */ jsx100("span", { className: "ow-notifications03__cell", children: event.unavailable?.includes(channel.id) ? /* @__PURE__ */ jsxs100("span", { className: "ow-notifications03__unavailable", children: [
|
|
7721
7731
|
/* @__PURE__ */ jsx100("span", { "aria-hidden": "true", children: "\u2013" }),
|
|
7722
|
-
/* @__PURE__ */ jsx100(
|
|
7732
|
+
/* @__PURE__ */ jsx100(VisuallyHidden9, { children: labels.unavailable ? labels.unavailable(channel.label) : `Not sent by ${channel.label.toLowerCase()}` })
|
|
7723
7733
|
] }) : /* @__PURE__ */ jsx100(
|
|
7724
7734
|
Switch,
|
|
7725
7735
|
{
|