@phillips/seldon 1.74.2 → 1.74.4

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,17 @@
1
- import { jsxs as l, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import d from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as k } from "../../utils/index.js";
4
4
  import p from "../Link/Link.js";
5
5
  import { LinkVariants as f } from "../Link/types.js";
6
- const j = ({ linkProps: s, description: e, className: i, ...o }) => {
7
- var m;
8
- const { className: t, ...a } = k(o, "LinkBlock"), r = d(t, i), c = (m = s.element) != null ? m : p;
9
- return /* @__PURE__ */ l("div", { ...a, className: r, ...o, children: [
10
- /* @__PURE__ */ n(c, { ...s, "data-testid": `${a["data-testid"]}-link`, variant: f.link }),
11
- /* @__PURE__ */ n("p", { className: `${t}__description`, children: e })
6
+ import N from "../Text/Text.js";
7
+ const v = ({ linkProps: o, description: i, className: n, ...s }) => {
8
+ var a;
9
+ const { className: t, ...m } = k(s, "LinkBlock"), r = d(t, n), c = (a = o.element) != null ? a : p;
10
+ return /* @__PURE__ */ l("div", { ...m, className: r, ...s, children: [
11
+ /* @__PURE__ */ e(c, { ...o, "data-testid": `${m["data-testid"]}-link`, variant: f.link }),
12
+ /* @__PURE__ */ e(N, { className: `${t}__description`, children: i })
12
13
  ] });
13
14
  };
14
15
  export {
15
- j as default
16
+ v as default
16
17
  };
@@ -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
  };
@@ -1 +1 @@
1
- .seldon-provider *,.seldon-provider *:before,.seldon-provider *:after{box-sizing:border-box}.seldon-provider img,.seldon-provider picture,.seldon-provider video,.seldon-provider canvas,.seldon-provider svg{display:block;max-width:100%}.seldon-provider input,.seldon-provider button,.seldon-provider textarea,.seldon-provider select{font:inherit}.seldon-provider strong{font-variation-settings:"wght" 700;font-weight:unset}.seldon-provider p,.seldon-provider h1,.seldon-provider h2,.seldon-provider h3,.seldon-provider h4,.seldon-provider h5,.seldon-provider h6{font-weight:unset;margin-top:0;overflow-wrap:break-word}.seldon-provider a{color:inherit;text-decoration:none}.seldon-provider ul{list-style:none;padding:0}.seldon-provider li{list-style:none}
1
+ .seldon-provider *,.seldon-provider *:before,.seldon-provider *:after{box-sizing:border-box}.seldon-provider img,.seldon-provider picture,.seldon-provider video,.seldon-provider canvas,.seldon-provider svg{display:block;max-width:100%}.seldon-provider input,.seldon-provider button,.seldon-provider textarea,.seldon-provider select{font:inherit}.seldon-provider strong{font-variation-settings:"wght" 700;font-weight:unset}.seldon-provider blockquote,.seldon-provider p,.seldon-provider h1,.seldon-provider h2,.seldon-provider h3,.seldon-provider h4,.seldon-provider h5,.seldon-provider h6{font-weight:unset;overflow-wrap:break-word}.seldon-provider a{color:inherit;text-decoration:none}.seldon-provider ul{list-style:none;padding:0}.seldon-provider li{list-style:none}
@@ -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
  }
@@ -7,7 +7,7 @@
7
7
  gap: $spacing-xsm;
8
8
  text-align: center;
9
9
 
10
- &__description {
11
- @include text($body2);
10
+ &__description.#{$px}-text {
11
+ margin-bottom: 0;
12
12
  }
13
13
  }
@@ -1,6 +1,8 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-text {
4
+ margin: 0;
5
+
4
6
  @each $variant in $text-tokens {
5
7
  &--#{$variant} {
6
8
  @include text($variant);
@@ -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
  }
@@ -27,6 +27,7 @@
27
27
  font-weight: unset;
28
28
  }
29
29
 
30
+ blockquote,
30
31
  p,
31
32
  h1,
32
33
  h2,
@@ -36,7 +37,6 @@
36
37
  h6 {
37
38
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
38
39
  font-weight: unset;
39
- margin-top: 0;
40
40
  overflow-wrap: break-word;
41
41
  }
42
42
 
@@ -73,6 +73,7 @@
73
73
 
74
74
  &__logo {
75
75
  align-self: center;
76
+ margin: 0;
76
77
  padding-top: 6px; // small adjustment to center the logo
77
78
 
78
79
  svg {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.74.2",
3
+ "version": "1.74.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"