@phillips/seldon 1.75.2 → 1.75.3

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,28 +1,29 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import j, { forwardRef as $ } from "react";
3
- import l from "../../node_modules/classnames/index.js";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import $, { forwardRef as j } from "react";
3
+ import p from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as D, px as s } from "../../utils/index.js";
5
5
  import { DetailListAlignment as t } from "./types.js";
6
6
  import { getDetailKey as N } from "./utils.js";
7
- const L = $(
8
- ({ alignment: a = t.justified, className: p, children: e, hasSeparators: u = !1, ...m }, c) => {
9
- const { className: r, ...d } = D(m, "DetailList"), o = Array.isArray(e) ? e : [e];
10
- return /* @__PURE__ */ f(
7
+ const L = j(
8
+ ({ alignment: a = t.justified, className: u, children: e, hasSeparators: m = !1, ...r }, c) => {
9
+ const { className: f, ...d } = D(r, "DetailList"), o = Array.isArray(e) ? e : [e];
10
+ return /* @__PURE__ */ l(
11
11
  "dl",
12
12
  {
13
13
  ...d,
14
- className: l(r, p, {
14
+ className: p(f, u, {
15
+ [`${s}-has-separators`]: m,
15
16
  [`${s}-columns`]: a === t.columns,
16
17
  [`${s}-justified`]: a === t.justified
17
18
  }),
18
- ...m,
19
+ ...r,
19
20
  ref: c,
20
21
  children: o == null ? void 0 : o.map(
21
- (i, n) => j.isValidElement(i) ? /* @__PURE__ */ f(
22
+ (i, n) => $.isValidElement(i) ? /* @__PURE__ */ l(
22
23
  "div",
23
24
  {
24
- className: l(`${r}-wrapper`, {
25
- [`${s}-has-separators`]: u,
25
+ className: p(`${f}-wrapper`, {
26
+ [`${s}-has-separators`]: m,
26
27
  [`${s}-columns`]: a === t.columns,
27
28
  [`${s}-justified`]: a === t.justified
28
29
  }),
@@ -3,8 +3,13 @@
3
3
  .#{$px}-detail-list {
4
4
  display: flex;
5
5
  flex-direction: column;
6
+ gap: $spacing-sm;
6
7
  margin: 0;
7
8
 
9
+ &.#{$px}-has-separators {
10
+ gap: 0;
11
+ }
12
+
8
13
  &-wrapper {
9
14
  .#{$px}-detail {
10
15
  padding: 0;
@@ -23,7 +28,6 @@
23
28
 
24
29
  &__label {
25
30
  text-align: left;
26
- width: unset;
27
31
  }
28
32
 
29
33
  &__value {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.75.2",
3
+ "version": "1.75.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"