@bbki.ng/components 5.0.3 → 5.1.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.
@@ -7,6 +7,7 @@ export interface listProps {
7
7
  itemRenderer: (itemProps: any, index: number) => ReactElement;
8
8
  horizontal?: boolean;
9
9
  footer?: ReactNode;
10
+ spaceBetween?: boolean;
10
11
  }
11
12
  export declare const List: FunctionComponent<listProps>;
12
13
  export interface TitledListProps extends listProps {
@@ -1,76 +1,78 @@
1
1
  import a from "../node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.mjs";
2
- import { Link as f } from "../link/Link.mjs";
3
- import { Article as h } from "../article/Article.mjs";
4
- import { jsxs as k, jsx as e } from "../_virtual/jsx-runtime.mjs";
5
- const p = (i) => {
2
+ import { Link as h } from "../link/Link.mjs";
3
+ import { Article as u } from "../article/Article.mjs";
4
+ import { jsxs as k, jsx as t } from "../_virtual/jsx-runtime.mjs";
5
+ const p = (n) => {
6
6
  const {
7
- items: t,
8
- itemRenderer: n,
7
+ items: r,
8
+ itemRenderer: c,
9
9
  className: s,
10
- horizontal: r,
10
+ horizontal: e,
11
11
  compact: d,
12
- footer: o
13
- } = i, c = d ? "" : r ? "mr-3" : "mb-16";
12
+ footer: i,
13
+ spaceBetween: l
14
+ } = n, m = d ? "" : e ? "mr-3" : "mb-16";
14
15
  return /* @__PURE__ */ k("ul", {
15
16
  className: a(s, "list-style-none", {
16
- flex: r,
17
- "items-center": r
17
+ flex: e,
18
+ "items-center": e,
19
+ "flex flex-col justify-between": !e && i && l
18
20
  }),
19
- children: [t.map((l, m) => /* @__PURE__ */ e("li", {
20
- className: a(c, "shrink-0", {
21
- "my-0!": r
21
+ children: [r.map((o, f) => /* @__PURE__ */ t("li", {
22
+ className: a(m, "shrink-0", {
23
+ "my-0!": e
22
24
  }),
23
- children: n(l, m)
24
- }, l.id || m)), o && /* @__PURE__ */ e("li", {
25
- className: a(c, "shrink-0", {
26
- "my-0!": r
25
+ children: c(o, f)
26
+ }, o.id || f)), i && /* @__PURE__ */ t("li", {
27
+ className: a("shrink-0", {
28
+ "my-0!": e
27
29
  }),
28
- children: o
30
+ children: i
29
31
  }, "footer")]
30
32
  });
31
- }, u = (i) => {
33
+ }, L = (n) => {
32
34
  const {
33
- title: t,
34
- description: n,
35
+ title: r,
36
+ description: c,
35
37
  ...s
36
- } = i;
37
- return t ? /* @__PURE__ */ e(h, {
38
- title: t,
39
- description: n,
38
+ } = n;
39
+ return r ? /* @__PURE__ */ t(u, {
40
+ title: r,
41
+ description: c,
40
42
  className: "w-fit",
41
- children: /* @__PURE__ */ e(p, {
43
+ children: /* @__PURE__ */ t(p, {
42
44
  ...s
43
45
  })
44
- }) : /* @__PURE__ */ e(p, {
46
+ }) : /* @__PURE__ */ t(p, {
45
47
  ...s
46
48
  });
47
- }, j = (i) => {
49
+ }, w = (n) => {
48
50
  const {
49
- title: t,
50
- description: n,
51
+ title: r,
52
+ description: c,
51
53
  links: s,
52
- ...r
53
- } = i;
54
- return /* @__PURE__ */ e(u, {
55
- title: t,
56
- description: n,
54
+ ...e
55
+ } = n;
56
+ return /* @__PURE__ */ t(L, {
57
+ title: r,
58
+ description: c,
57
59
  items: s,
58
60
  itemRenderer: ({
59
- name: o,
60
- to: c,
61
- external: l,
62
- ...m
63
- }) => /* @__PURE__ */ e(f, {
64
- to: c,
65
- external: l,
66
- ...m,
67
- children: o
68
- }, o),
69
- ...r
61
+ name: i,
62
+ to: l,
63
+ external: m,
64
+ ...o
65
+ }) => /* @__PURE__ */ t(h, {
66
+ to: l,
67
+ external: m,
68
+ ...o,
69
+ children: i
70
+ }, i),
71
+ ...e
70
72
  });
71
73
  };
72
74
  export {
73
- j as LinkList,
75
+ w as LinkList,
74
76
  p as List,
75
- u as TitledList
77
+ L as TitledList
76
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/components",
3
- "version": "5.0.3",
3
+ "version": "5.1.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"