@phillips/seldon 1.31.1 → 1.31.2

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.
@@ -1,16 +1,14 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import c from "../LinkBlock/LinkBlock.js";
3
- import d from "react";
4
- import { getCommonProps as o } from "../../utils/index.js";
5
- import u from "../../node_modules/classnames/index.js";
6
- import { Grid as p } from "../Grid/Grid.js";
7
- const _ = ({ children: t, className: l, ...s }) => {
8
- const { className: e, ...f } = o(s, "LinkList");
9
- return /* @__PURE__ */ m(p, { ...f, className: u(e, l), element: "ul", role: "list", ...s, children: t.map((r) => {
10
- var a, i;
11
- return d.isValidElement(r) && r.type !== c ? (console.warn("LinkList only accepts LinkBlock children"), null) : /* @__PURE__ */ m("li", { className: `${e}--item`, children: r }, (i = (a = r == null ? void 0 : r.props) == null ? void 0 : a.linkProps) == null ? void 0 : i.href);
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { getCommonProps as c } from "../../utils/index.js";
3
+ import d from "../../node_modules/classnames/index.js";
4
+ import { Grid as o } from "../Grid/Grid.js";
5
+ const P = ({ children: i, className: l, ...r }) => {
6
+ const { className: m, ...f } = c(r, "LinkList");
7
+ return /* @__PURE__ */ t(o, { ...f, className: d(m, l), element: "ul", role: "list", ...r, children: i.map((s) => {
8
+ var a, e;
9
+ return /* @__PURE__ */ t("li", { className: `${m}--item`, children: s }, (e = (a = s == null ? void 0 : s.props) == null ? void 0 : a.linkProps) == null ? void 0 : e.href);
12
10
  }) });
13
11
  };
14
12
  export {
15
- _ as default
13
+ P as default
16
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"