@openwarelabs/blocks 0.10.0 → 0.10.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/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 +6 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Whole page sections built from [Openware UI](https://github.com/openwarelabs/ui) (`@openwarelabs/ui`), as React components that take their content as props. Drop one in, pass your words, actions and screenshots, and it follows the theme, the brand colour and every screen width.
|
|
4
4
|
|
|
5
|
+
See every block live, at every width, with its props: [openwarelabs.github.io/ui/#/blocks](https://openwarelabs.github.io/ui/#/blocks).
|
|
6
|
+
|
|
5
7
|
```sh
|
|
6
8
|
npm install @openwarelabs/ui @openwarelabs/blocks
|
|
7
9
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -6910,14 +6910,24 @@ function Files({ files, open, onToggle, labels }) {
|
|
|
6910
6910
|
]
|
|
6911
6911
|
}
|
|
6912
6912
|
),
|
|
6913
|
-
expanded ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
"
|
|
6919
|
-
|
|
6920
|
-
|
|
6913
|
+
expanded ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6914
|
+
import_ui91.Text,
|
|
6915
|
+
{
|
|
6916
|
+
as: "pre",
|
|
6917
|
+
variant: "code",
|
|
6918
|
+
className: "ow-chat03__diff",
|
|
6919
|
+
tabIndex: 0,
|
|
6920
|
+
"aria-label": labels.diff?.(file.path) ?? `Changes to ${file.path}`,
|
|
6921
|
+
children: file.diff.map((line, index) => {
|
|
6922
|
+
const kind = line.startsWith("@@") ? "hunk" : line[0] === "+" ? "add" : line[0] === "-" ? "remove" : "context";
|
|
6923
|
+
const sign = kind === "add" ? "+" : kind === "remove" ? "\u2212" : "";
|
|
6924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: `ow-chat03__line ow-chat03__line--${kind}`, "data-sign": sign, children: [
|
|
6925
|
+
kind === "hunk" ? line : line.slice(1),
|
|
6926
|
+
"\n"
|
|
6927
|
+
] }, index);
|
|
6928
|
+
})
|
|
6929
|
+
}
|
|
6930
|
+
) : null
|
|
6921
6931
|
] }, file.path);
|
|
6922
6932
|
}) });
|
|
6923
6933
|
}
|
|
@@ -7547,12 +7557,12 @@ function NotificationList({ items, isUnread, onOpen, labels }) {
|
|
|
7547
7557
|
href: item.href ?? "#",
|
|
7548
7558
|
variant: "standalone",
|
|
7549
7559
|
className: "ow-notifications01__item",
|
|
7550
|
-
"aria-label": `${unread ? labels.unread ?? "Unread: " : ""}${item.summary}, ${item.where}, ${item.when}`,
|
|
7551
7560
|
onClick: (event) => {
|
|
7552
7561
|
if (item.href === void 0) event.preventDefault();
|
|
7553
7562
|
onOpen(item);
|
|
7554
7563
|
},
|
|
7555
7564
|
children: [
|
|
7565
|
+
unread ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_ui98.VisuallyHidden, { children: labels.unread ?? "Unread: " }) : null,
|
|
7556
7566
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Sender, { item }),
|
|
7557
7567
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("span", { className: "ow-notifications01__text", children: [
|
|
7558
7568
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_ui98.Text, { as: "span", tone: "muted", children: item.message }),
|