@phillips/seldon 1.74.2 → 1.74.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,4 +1,4 @@
1
- import { ComponentProps } from 'react';
1
+ import React, { ComponentProps } from 'react';
2
2
  import { DetailListAlignment } from './types';
3
3
  import { DetailComponent } from '../../components/Detail';
4
4
  export interface DetailListProps extends ComponentProps<'dl'> {
@@ -25,5 +25,5 @@ export interface DetailListProps extends ComponentProps<'dl'> {
25
25
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/patterns-detaillist--overview)
26
26
  *
27
27
  */
28
- declare const DetailList: import("react").ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & import("react").RefAttributes<HTMLDListElement>>;
28
+ declare const DetailList: React.ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & React.RefAttributes<HTMLDListElement>>;
29
29
  export default DetailList;
@@ -1,39 +1,41 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as N } from "react";
2
+ import n, { forwardRef as N } from "react";
3
3
  import l from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as $, px as s } from "../../utils/index.js";
5
- import { DetailListAlignment as o } from "./types.js";
6
- import { getDetailKey as n } from "./utils.js";
7
- const D = N(
8
- ({ alignment: t = o.justified, className: p, children: a, hasSeparators: u = !1, ...e }, c) => {
9
- const { className: i, ...d } = $(e, "DetailList"), m = Array.isArray(a) ? a : [a];
5
+ import { DetailListAlignment as t } from "./types.js";
6
+ import { getDetailKey as D } from "./utils.js";
7
+ const L = N(
8
+ ({ alignment: a = t.justified, className: p, children: e, hasSeparators: u = !1, ...m }, c) => {
9
+ const { className: r, ...d } = $(m, "DetailList"), o = Array.isArray(e) ? e : [e];
10
10
  return /* @__PURE__ */ f(
11
11
  "dl",
12
12
  {
13
13
  ...d,
14
- className: l(i, p, {
15
- [`${s}-columns`]: t === o.columns,
16
- [`${s}-justified`]: t === o.justified
14
+ className: l(r, p, {
15
+ [`${s}-columns`]: a === t.columns,
16
+ [`${s}-justified`]: a === t.justified
17
17
  }),
18
- ...e,
18
+ ...m,
19
19
  ref: c,
20
- children: m == null ? void 0 : m.map((r, j) => /* @__PURE__ */ f(
21
- "div",
22
- {
23
- className: l(`${i}-wrapper`, {
24
- [`${s}-has-separators`]: u,
25
- [`${s}-columns`]: t === o.columns,
26
- [`${s}-justified`]: t === o.justified
27
- }),
28
- children: r
29
- },
30
- n(r, j)
31
- ))
20
+ children: o == null ? void 0 : o.map(
21
+ (i, j) => n.isValidElement(i) ? /* @__PURE__ */ f(
22
+ "div",
23
+ {
24
+ className: l(`${r}-wrapper`, {
25
+ [`${s}-has-separators`]: u,
26
+ [`${s}-columns`]: a === t.columns,
27
+ [`${s}-justified`]: a === t.justified
28
+ }),
29
+ children: i
30
+ },
31
+ D(i, j)
32
+ ) : void 0
33
+ )
32
34
  }
33
35
  );
34
36
  }
35
37
  );
36
- D.displayName = "DetailList";
38
+ L.displayName = "DetailList";
37
39
  export {
38
- D as default
40
+ L as default
39
41
  };
@@ -104,6 +104,7 @@
104
104
  &__text {
105
105
  flex: auto;
106
106
  font-variation-settings: 'wght' 600;
107
+ text-align: left;
107
108
 
108
109
  @include text($string2);
109
110
  }
@@ -3,7 +3,6 @@
3
3
  .#{$px}-text-symbol {
4
4
  &--estimation {
5
5
  margin-left: 0.25rem;
6
- vertical-align: middle;
7
6
  }
8
7
 
9
8
  &--lotNumber {
@@ -20,16 +20,21 @@
20
20
  .#{$px}-justified {
21
21
  .#{$px}-detail {
22
22
  justify-content: space-between;
23
+
24
+ &__label {
25
+ text-align: left;
26
+ width: unset;
27
+ }
28
+
29
+ &__value {
30
+ text-align: right;
31
+ }
23
32
  }
24
33
  }
25
34
 
26
35
  .#{$px}-has-separators {
27
36
  border-top: 1px solid $light-gray;
28
37
 
29
- &:last-child {
30
- border-bottom: 1px solid $light-gray;
31
- }
32
-
33
38
  .#{$px}-detail {
34
39
  padding: $spacing-sm 0;
35
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.74.2",
3
+ "version": "1.74.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"