@phillips/seldon 1.109.1 → 1.110.0

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,12 +1,11 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import i from "../../node_modules/classnames/index.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import l from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as c } from "../../utils/index.js";
4
4
  import { TextSymbolVariants as p } from "./types.js";
5
- import { determineSymbolSize as b } from "./utils.js";
6
- const y = ({ symbols: r = [], variant: a = p.lotNumber, className: t, ...o }) => {
7
- const { className: m, ...l } = c(o, "TextSymbol");
8
- return /* @__PURE__ */ s("span", { ...l, className: i(m, t, `${m}--${a}`), ...o, children: r.map((e, n) => /* @__PURE__ */ s("span", { className: `${m}--${b(e)}-symbol`, children: e }, n)) });
5
+ const N = ({ symbols: r = [], variant: e = p.lotNumber, className: t, ...m }) => {
6
+ const { className: o, ...n } = c(m, "TextSymbol");
7
+ return /* @__PURE__ */ a("span", { ...n, className: l(o, t, `${o}--${e}`), ...m, children: r.map((s) => /* @__PURE__ */ a("span", { children: s }, s)) });
9
8
  };
10
9
  export {
11
- y as default
10
+ N as default
12
11
  };
@@ -20,3 +20,5 @@ export declare const Playground: {
20
20
  };
21
21
  };
22
22
  };
23
+ export declare const LotSymbol: () => import("react/jsx-runtime").JSX.Element;
24
+ export declare const EstimateSymbol: () => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,3 @@ export declare enum TextSymbolVariants {
2
2
  estimation = "estimation",
3
3
  lotNumber = "lotNumber"
4
4
  }
5
- export declare enum TextSymbolSize {
6
- small = "small",
7
- medium = "medium",
8
- large = "large"
9
- }
@@ -1,5 +1,4 @@
1
- var m = /* @__PURE__ */ ((r) => (r.estimation = "estimation", r.lotNumber = "lotNumber", r))(m || {}), a = /* @__PURE__ */ ((r) => (r.small = "small", r.medium = "medium", r.large = "large", r))(a || {});
1
+ var e = /* @__PURE__ */ ((t) => (t.estimation = "estimation", t.lotNumber = "lotNumber", t))(e || {});
2
2
  export {
3
- a as TextSymbolSize,
4
- m as TextSymbolVariants
3
+ e as TextSymbolVariants
5
4
  };
@@ -37,7 +37,7 @@
37
37
  font-family: Distinct, sans-serif;
38
38
  }
39
39
 
40
- @mixin underline($offset: $spacing-xsm, $thickness: 1px, $color: $pure-black) {
40
+ @mixin underline($offset: $spacing-micro, $thickness: 1px, $color: $pure-black) {
41
41
  text-decoration: underline;
42
42
  text-decoration-thickness: $thickness;
43
43
  text-underline-offset: $offset;
@@ -340,9 +340,9 @@ $snowflake-menu-padding: 1.25rem;
340
340
  --spacing-micro: 0.5rem;
341
341
  --spacing-xsm: 0.75rem;
342
342
  --spacing-sm: 1.25rem;
343
- --spacing-md: 2.5rem;
344
- --spacing-lg: 3.75rem;
345
- --spacing-xl: 5rem;
343
+ --spacing-md: 2.25rem;
344
+ --spacing-lg: 3.25rem;
345
+ --spacing-xl: 4.25rem;
346
346
  --spacing-xxl: 5.25rem;
347
347
  --spacing-xxxl: 6.25rem;
348
348
  }
@@ -3,7 +3,11 @@
3
3
  .#{$px}-page-content-wrapper {
4
4
  padding: 0 $padding-md;
5
5
 
6
+ @media (min-width: $breakpoint-md) {
7
+ padding: 0 $padding-lg;
8
+ }
9
+
6
10
  @media (min-width: $breakpoint-xl) {
7
- padding: 0 3.25rem;
11
+ padding: 0 $padding-xl;
8
12
  }
9
13
  }
@@ -1,9 +1,14 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-text-symbol {
4
- font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
4
+ @include text($heading4);
5
+
6
+ display: inline-flex;
7
+ gap: $spacing-micro;
5
8
 
6
9
  &--estimation {
10
+ @include text($heading5);
11
+
7
12
  margin-left: 0.25rem;
8
13
  }
9
14
 
@@ -11,16 +16,4 @@
11
16
  margin-left: $spacing-xsm;
12
17
  vertical-align: super;
13
18
  }
14
-
15
- &--large-symbol {
16
- font-size: 65%;
17
- }
18
-
19
- &--medium-symbol {
20
- font-size: 85%;
21
- }
22
-
23
- &--small-symbol {
24
- font-size: 100%;
25
- }
26
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.109.1",
3
+ "version": "1.110.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -85,7 +85,7 @@
85
85
  "@testing-library/react": "^16.0.0",
86
86
  "@testing-library/user-event": "^14.5.2",
87
87
  "@types/color": "^3.0.6",
88
- "@types/node": "^20.14.10",
88
+ "@types/node": "^22.12.0",
89
89
  "@types/react": "^18.3.3",
90
90
  "@types/react-dom": "^18.0.11",
91
91
  "@types/react-modal": "^3.16.3",
@@ -110,7 +110,7 @@
110
110
  "rimraf": "^6.0.1",
111
111
  "rollup-plugin-copy": "^3.5.0",
112
112
  "rollup-plugin-peer-deps-external": "^2.2.4",
113
- "sass": "^1.83.1",
113
+ "sass": "^1.83.4",
114
114
  "semantic-release": "^23.1.1",
115
115
  "storybook": "^8.5.0",
116
116
  "stylelint": "^16.8.1",
@@ -1,2 +0,0 @@
1
- import { TextSymbolSize } from './types';
2
- export declare const determineSymbolSize: (symbol: string) => TextSymbolSize;
@@ -1,29 +0,0 @@
1
- import { TextSymbolSize as e } from "./types.js";
2
- const c = (a) => {
3
- switch (a) {
4
- case "≌":
5
- case "܀":
6
- case "•":
7
- return e.small;
8
- case "▼":
9
- case "♠":
10
- case "≠":
11
- return e.medium;
12
- case "∞":
13
- case "Ω":
14
- case "Δ":
15
- case "†":
16
- case "◆":
17
- case "Σ":
18
- case "✱":
19
- case "Ж":
20
- case "Ο":
21
- case "‡":
22
- case "Ø":
23
- default:
24
- return e.large;
25
- }
26
- };
27
- export {
28
- c as determineSymbolSize
29
- };
@@ -1 +0,0 @@
1
- export {};