@phillips/seldon 1.130.0 → 1.131.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.
@@ -6,12 +6,45 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  */
7
7
  align?: GridItemAlign;
8
8
  /**
9
- * column spans at different breakpoints, defaults to all columns. If less than the total number of columns at the breakpoint it will be centered.
9
+ * Determines how many columns this GridItem spans at the xs breakpoint, defaults to the maximum of 2 columns. If there are less than 2 columns in the Grid at the xs breakpoint it will be centered.
10
10
  */
11
11
  xs?: number;
12
+ /**
13
+ * Determines how many columns this GridItem spans at the sm breakpoint, defaults to the maximum of 2 columns. If there are less than 2 columns in the Grid at the sm breakpoint it will be centered.
14
+ */
12
15
  sm?: number;
16
+ /**
17
+ * Determines how many columns this GridItem spans at the md breakpoint, defaults to the maximum of 6 columns. If there are less than 6 columns in the Grid at the md breakpoint they will be centered.
18
+ */
13
19
  md?: number;
20
+ /**
21
+ * Determines how many columns this GridItem spans at the lg breakpoint, defaults to the maximum of 12 columns. If there are less than 2 columns in the Grid at the lg breakpoint they will be centered.
22
+ */
14
23
  lg?: number;
24
+ /**
25
+ * Determines how many columns this GridItem spans at the xl breakpoint, defaults to the maximum of 12 columns. If there are less than 2 columns in the Grid at the xl breakpoint they will be centered.
26
+ */
27
+ xl?: number;
28
+ /**
29
+ * The starting column for this GridItem at the xs breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the xs breakpoint.
30
+ */
31
+ xsColStart?: number;
32
+ /**
33
+ * The starting column for this GridItem at the sm breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the sm breakpoint.
34
+ */
35
+ smColStart?: number;
36
+ /**
37
+ * The starting column for this GridItem at the md breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the md breakpoint.
38
+ */
39
+ mdColStart?: number;
40
+ /**
41
+ * The starting column for this GridItem at the lg breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the lg breakpoint.
42
+ */
43
+ lgColStart?: number;
44
+ /**
45
+ * The starting column for this GridItem at the xl breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the xl breakpoint.
46
+ */
47
+ xlColStart?: number;
15
48
  /**
16
49
  * Optional element to render as the top-level component e.g. 'div', 'span', CustomComponent, etc. Defaults to 'div'.
17
50
  */
@@ -27,5 +60,5 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
27
60
  *
28
61
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-griditem--overview)
29
62
  */
30
- declare const GridItem: ({ children, xs, sm, md, lg, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
63
+ declare const GridItem: ({ children, xs, sm, md, lg, xl, xsColStart, smColStart, mdColStart, lgColStart, xlColStart, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
31
64
  export default GridItem;
@@ -1,30 +1,40 @@
1
- import { jsx as I } from "react/jsx-runtime";
2
- import { useMemo as l } from "react";
3
- import { getCommonProps as b } from "../../utils/index.js";
4
- import j from "../../node_modules/classnames/index.js";
5
- import { determineColumnSpanClassName as v, validateColumnSpans as G } from "./gridItemUtils.js";
6
- import { GridItemAlign as N } from "./types.js";
7
- const A = ({
8
- children: p,
9
- xs: m = 2,
10
- sm: r = 2,
11
- md: t = 6,
12
- lg: o = 12,
13
- align: s = N.center,
14
- element: c = "div",
15
- className: n,
16
- ...a
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { useMemo as m } from "react";
3
+ import { getCommonProps as k } from "../../utils/index.js";
4
+ import A from "../../node_modules/classnames/index.js";
5
+ import { determineColumnSpanClassName as C, validateColumnSpans as M } from "./gridItemUtils.js";
6
+ import { GridItemAlign as h } from "./types.js";
7
+ const F = ({
8
+ children: j,
9
+ xs: r = 2,
10
+ sm: n = 2,
11
+ md: o = 6,
12
+ lg: s = 12,
13
+ xl: t = 12,
14
+ xsColStart: a,
15
+ smColStart: i,
16
+ mdColStart: c,
17
+ lgColStart: p,
18
+ xlColStart: u,
19
+ align: l = h.center,
20
+ element: v = "div",
21
+ className: f,
22
+ ...d
17
23
  }) => {
18
- const { className: i, ...u } = b(a, "GridItem"), e = l(() => ({ xs: m, sm: r, md: t, lg: o }), [m, r, t, o]), f = l(() => [
19
- i,
24
+ const { className: I, ...G } = k(d, "GridItem"), e = m(() => ({ xs: r, sm: n, md: o, lg: s, xl: t }), [r, n, o, s, t]), P = m(
25
+ () => ({ xs: a, sm: i, md: c, lg: p, xl: u }),
26
+ [a, i, c, p, u]
27
+ ), N = m(() => [
28
+ I,
20
29
  // figure out the class names for each breakpoint
21
- Object.entries(e).map(
22
- ([d, C]) => v(d, C, s)
23
- ),
24
- n
25
- ], [s, e, i, n]);
26
- return G(Object.values(e)) ? /* @__PURE__ */ I(c, { ...u, className: j(f), ...a, children: p }) : null;
30
+ Object.entries(e).map(([b, B]) => {
31
+ const O = P[b];
32
+ return C(b, B, O, l);
33
+ }),
34
+ f
35
+ ], [I, e, f, P, l]);
36
+ return M(Object.values(e)) ? /* @__PURE__ */ g(v, { ...G, className: A(N), ...d, children: j }) : null;
27
37
  };
28
38
  export {
29
- A as default
39
+ F as default
30
40
  };
@@ -2,13 +2,17 @@ import { GridItemProps } from './GridItem';
2
2
  import { GridItemAlign } from './types';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ children, xs, sm, md, lg, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ component: ({ children, xs, sm, md, lg, xl, xsColStart, smColStart, mdColStart, lgColStart, xlColStart, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
6
6
  };
7
7
  export default meta;
8
8
  export declare const Playground: {
9
9
  ({ children, ...props }: GridItemProps): import("react/jsx-runtime").JSX.Element;
10
10
  args: {
11
- children: import("react/jsx-runtime").JSX.Element;
11
+ xs: number;
12
+ sm: number;
13
+ md: number;
14
+ lg: number;
15
+ align: GridItemAlign;
12
16
  };
13
17
  argTypes: {
14
18
  align: {
@@ -26,5 +30,15 @@ export declare const CenteredGridItem: {
26
30
  md: number;
27
31
  lg: number;
28
32
  };
33
+ argTypes: {
34
+ align: {
35
+ options: typeof GridItemAlign;
36
+ control: {
37
+ type: string;
38
+ options: GridItemAlign[];
39
+ };
40
+ };
41
+ };
29
42
  };
30
43
  export declare const LeftAndRightGridItems: () => import("react/jsx-runtime").JSX.Element;
44
+ export declare const GridWithOffsetColumns: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
+ import { BreakpointTokens } from '../../utils';
1
2
  import { GridItemProps } from './GridItem';
2
- import { GridItemAlign } from './types';
3
- export declare const determineColumnSpanClassName: (breakpoint: GridItemAlign, columnSpan: number, align?: GridItemProps["align"]) => string;
3
+ export declare const determineColumnSpanClassName: (breakpoint: BreakpointTokens, columnSpan: number, columnStart?: number, align?: GridItemProps["align"]) => string;
4
4
  export declare const validateColumnSpans: (columnSpans: number[]) => boolean;
@@ -1,8 +1,11 @@
1
- import { px as n } from "../../utils/index.js";
2
- import { GridItemAlign as s } from "./types.js";
3
- const l = (r, e, t = s.center) => `${n}-grid-item--span-${r}-${e} ${n}-grid-item--span-${r}-${e}-align-${t}`, i = (r) => {
4
- for (let e = 0; e < r.length; e++) {
5
- const t = r[e];
1
+ import { px as r } from "../../utils/index.js";
2
+ import { GridItemAlign as n } from "./types.js";
3
+ const c = (e, s, t, a = n.center) => {
4
+ const l = `${r}-grid-item--span-${e}-${s}`, o = `${r}-grid-item--span-${e}-${s}-align-${t ? n.left : a}`, i = t ? `${r}-grid-item--start-${e}-${t}` : "";
5
+ return `${l} ${o} ${i}`.replace(/\s+/g, " ").trim();
6
+ }, g = (e) => {
7
+ for (let s = 0; s < e.length; s++) {
8
+ const t = e[s];
6
9
  if (t > 12)
7
10
  return console.warn("Column spans must be less than or equal to 12"), !1;
8
11
  if (t < 1)
@@ -11,6 +14,6 @@ const l = (r, e, t = s.center) => `${n}-grid-item--span-${r}-${e} ${n}-grid-item
11
14
  return !0;
12
15
  };
13
16
  export {
14
- l as determineColumnSpanClassName,
15
- i as validateColumnSpans
17
+ c as determineColumnSpanClassName,
18
+ g as validateColumnSpans
16
19
  };
@@ -1,85 +1,85 @@
1
- import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
- import s, { useEffect as T } from "react";
3
- import { getCommonProps as y, px as V, encodeURLSearchParams as $ } from "../../utils/index.js";
1
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
+ import n, { useEffect as V } from "react";
3
+ import { getCommonProps as j, px as D, encodeURLSearchParams as $ } from "../../utils/index.js";
4
4
  import p from "../../node_modules/classnames/index.js";
5
- import j from "../Input/Input.js";
6
- import D from "../Link/Link.js";
7
- import H from "./SearchResults/SearchResults.js";
8
- import { TextVariants as O } from "../Text/types.js";
9
- import A from "../Text/Text.js";
10
- import { useOnClickOutside as F } from "../../node_modules/usehooks-ts/dist/index.js";
11
- import { HeaderContext as K } from "../../site-furniture/Header/Header.js";
12
- import { SearchButton as M } from "./SearchButton.js";
13
- import U from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
14
- import Z from "../../node_modules/react-transition-group/esm/CSSTransition.js";
15
- const oe = ({
16
- onSearch: u,
17
- onCancel: _,
18
- searchResults: R = [],
19
- state: i = "idle",
20
- defaultValue: C = "",
21
- className: N,
5
+ import H from "../Input/Input.js";
6
+ import O from "../Link/Link.js";
7
+ import A from "./SearchResults/SearchResults.js";
8
+ import { TextVariants as F } from "../Text/types.js";
9
+ import K from "../Text/Text.js";
10
+ import { useOnClickOutside as M } from "../../node_modules/usehooks-ts/dist/index.js";
11
+ import { HeaderContext as U } from "../../site-furniture/Header/Header.js";
12
+ import { SearchButton as Z } from "./SearchButton.js";
13
+ import q from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
14
+ import z from "../../node_modules/react-transition-group/esm/CSSTransition.js";
15
+ const ie = ({
16
+ onSearch: _,
17
+ onCancel: S,
18
+ searchResults: N = [],
19
+ state: o = "idle",
20
+ defaultValue: w = "",
21
+ className: C,
22
22
  placeholder: I = "",
23
- searchButtonText: c = "Search",
23
+ searchButtonText: i = "Search",
24
24
  loadingText: E = "Search In Progress...",
25
25
  invalidText: b = "Invalid search",
26
- getAllResultsText: w = (e) => `View all results for ${e}`,
27
- getAllResultsLink: S = (e) => `/Search?Search=${e}`,
28
- ...v
26
+ getAllResultsText: P = (e) => `View all results for ${e}`,
27
+ getAllResultsLink: v = (e) => `/Search?Search=${e}`,
28
+ ...x
29
29
  }) => {
30
- const { className: e, "data-testid": l, ...P } = y(v, "Search"), d = s.useContext(K), m = s.useRef(null), f = s.useRef(null), x = s.useRef(null), a = d.isSearchExpanded, n = m.current?.value, k = u ? (r) => {
31
- u(r.target.value);
30
+ const { className: e, "data-testid": c, ...k } = j(x, "Search"), l = n.useContext(U), d = n.useRef(null), m = n.useRef(null), R = n.useRef(null), a = l.isSearchExpanded, s = d.current?.value, [L, u] = n.useState(!0), T = _ ? (r) => {
31
+ _(r.target.value);
32
32
  } : void 0;
33
- F(x, (r) => {
34
- _?.(), o(!1), r.stopPropagation();
33
+ M(R, (r) => {
34
+ S?.(), h(!1), r.stopPropagation();
35
35
  });
36
36
  const g = (r) => {
37
37
  if (r.stopPropagation(), r.key === "Enter") {
38
- if (r.preventDefault(), n && n.length > 2) {
39
- const L = $(S(n));
40
- o(!1), window.location.href = L;
38
+ if (r.preventDefault(), s && s.length > 2) {
39
+ const y = $(v(s));
40
+ u(!1), window.location.href = y;
41
41
  }
42
- r.currentTarget instanceof HTMLAnchorElement && (o(!1), r.currentTarget.click());
42
+ r.currentTarget instanceof HTMLAnchorElement && (u(!1), r.currentTarget.click());
43
43
  }
44
- r.key === "Escape" && (f.current?.reset(), d.setIsSearchExpanded(!1));
44
+ r.key === "Escape" && (m.current?.reset(), l.setIsSearchExpanded(!1));
45
45
  };
46
- T(() => {
46
+ V(() => {
47
47
  if (a) {
48
- m.current?.focus();
48
+ d.current?.focus();
49
49
  return;
50
50
  }
51
51
  }, [a]);
52
- const o = (r) => {
53
- f.current?.reset(), d.setIsSearchExpanded(r);
52
+ const h = (r) => {
53
+ m.current?.reset(), l.setIsSearchExpanded(r);
54
54
  };
55
- return /* @__PURE__ */ t(U, { enabled: a, allowPinchZoom: !0, removeScrollBar: !1, children: /* @__PURE__ */ t("div", { className: `${e}__container`, children: /* @__PURE__ */ h(
55
+ return /* @__PURE__ */ t(q, { enabled: a, allowPinchZoom: !0, removeScrollBar: !1, children: /* @__PURE__ */ t("div", { className: `${e}__container`, children: /* @__PURE__ */ f(
56
56
  "div",
57
57
  {
58
58
  className: `${e}__container__inner`,
59
- ref: x,
59
+ ref: R,
60
60
  onClick: (r) => {
61
- a || (o(!0), r.stopPropagation());
61
+ a || (h(!0), r.stopPropagation());
62
62
  },
63
63
  children: [
64
- /* @__PURE__ */ t(A, { variant: O.heading4, className: `${e}__container__inner__label`, children: c }),
64
+ /* @__PURE__ */ t(K, { variant: F.heading4, className: `${e}__container__inner__label`, children: i }),
65
65
  /* @__PURE__ */ t(
66
66
  "div",
67
67
  {
68
- ...P,
69
- className: p(e, N, { [`${e}--active`]: a }),
70
- "data-testid": l,
68
+ ...k,
69
+ className: p(e, C, { [`${e}--active`]: a }),
70
+ "data-testid": c,
71
71
  role: "search",
72
- ...v,
73
- children: /* @__PURE__ */ h(
72
+ ...x,
73
+ children: /* @__PURE__ */ f(
74
74
  "form",
75
75
  {
76
- "data-testid": `${l}-form`,
76
+ "data-testid": `${c}-form`,
77
77
  className: p(`${e}__form`, {
78
78
  [`${e}__form--active`]: a
79
79
  }),
80
- ref: f,
80
+ ref: m,
81
81
  children: [
82
- /* @__PURE__ */ h(
82
+ /* @__PURE__ */ f(
83
83
  "div",
84
84
  {
85
85
  className: p(`${e}__content-wrapper`, {
@@ -89,62 +89,61 @@ const oe = ({
89
89
  "aria-haspopup": "listbox",
90
90
  children: [
91
91
  /* @__PURE__ */ t(
92
- Z,
92
+ z,
93
93
  {
94
94
  in: a,
95
- classNames: `${V}-input`,
95
+ classNames: `${D}-input`,
96
96
  addEndListener: () => {
97
97
  },
98
98
  children: /* @__PURE__ */ t(
99
- j,
99
+ H,
100
100
  {
101
101
  "aria-hidden": !a,
102
102
  className: `${e}__input`,
103
103
  id: "search-input",
104
104
  hideLabel: !0,
105
- labelText: c,
105
+ labelText: i,
106
106
  placeholder: a ? I : "",
107
107
  type: "text",
108
- defaultValue: C,
109
- invalid: i === "invalid",
108
+ defaultValue: w,
109
+ invalid: o === "invalid",
110
110
  invalidText: b,
111
111
  onKeyDown: g,
112
- onChange: k,
113
- ref: m
112
+ onChange: T,
113
+ ref: d
114
114
  }
115
115
  )
116
116
  }
117
117
  ),
118
118
  /* @__PURE__ */ t(
119
- M,
119
+ Z,
120
120
  {
121
121
  className: e,
122
- searchButtonText: c,
123
- state: i,
124
- testId: l,
122
+ searchButtonText: i,
123
+ state: o,
124
+ testId: c,
125
125
  isSearchExpanded: a,
126
- setIsSearchExpanded: o,
127
- onCancel: _
126
+ setIsSearchExpanded: h,
127
+ onCancel: S
128
128
  }
129
129
  )
130
130
  ]
131
131
  }
132
132
  ),
133
- n && n.length > 2 ? /* @__PURE__ */ t(
134
- H,
133
+ a && L && s && s.length > 2 ? /* @__PURE__ */ t(
134
+ A,
135
135
  {
136
- autoCompleteResults: R,
137
- isLoading: i === "loading",
136
+ autoCompleteResults: N,
137
+ isLoading: o === "loading",
138
138
  loadingText: E,
139
139
  onKeyDown: g,
140
- userInputValue: n,
141
- closeSearch: o,
140
+ userInputValue: s,
141
+ closeSearch: u,
142
142
  children: /* @__PURE__ */ t("li", { className: `${e}__result`, children: /* @__PURE__ */ t(
143
- D,
143
+ O,
144
144
  {
145
- onClick: () => o(!1),
146
- href: ((r) => $(S(r)))(n),
147
- children: /* @__PURE__ */ t("p", { children: w(n) })
145
+ href: ((r) => $(v(r)))(s),
146
+ children: /* @__PURE__ */ t("p", { children: P(s) })
148
147
  }
149
148
  ) }, "viewAllSearchResults")
150
149
  }
@@ -159,5 +158,5 @@ const oe = ({
159
158
  ) }) });
160
159
  };
161
160
  export {
162
- oe as default
161
+ ie as default
163
162
  };
package/dist/index.js CHANGED
@@ -1,249 +1,250 @@
1
- import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidation as d, encodeURLSearchParams as m, findChildrenExcludingTypes as p, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as i, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
2
- import { default as S } from "./assets/account_circle.svg.js";
3
- import { default as L } from "./assets/arrowPrev.svg.js";
4
- import { default as A } from "./assets/calendar.svg.js";
1
+ import { BreakpointTokens as f, PaddingTokens as s, SpacingTokens as l, defaultYear as d, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as u, findChildrenOfType as x, generatePaddingClassName as n, getCommonProps as i, noOp as g, px as c, useNormalizedInputProps as C } from "./utils/index.js";
2
+ import { default as h } from "./assets/account_circle.svg.js";
3
+ import { default as P } from "./assets/arrowPrev.svg.js";
4
+ import { default as T } from "./assets/calendar.svg.js";
5
5
  import { default as I } from "./assets/calendarAlt.svg.js";
6
- import { default as k } from "./assets/CarouselArrowNext.svg.js";
7
- import { default as B } from "./assets/CarouselArrowPrev.svg.js";
8
- import { default as v } from "./assets/checkmark.svg.js";
9
- import { default as y } from "./assets/chevronDown.svg.js";
10
- import { default as N } from "./assets/chevronNext.svg.js";
11
- import { default as H } from "./assets/chevronRight.svg.js";
12
- import { default as G } from "./assets/close.svg.js";
13
- import { default as U } from "./assets/favorite.svg.js";
14
- import { default as W } from "./assets/favoriteOutline.svg.js";
15
- import { default as Y } from "./assets/icon-footer-facebook.svg.js";
16
- import { default as z } from "./assets/icon-footer-instagram.svg.js";
17
- import { default as q } from "./assets/icon-footer-linkedin.svg.js";
18
- import { default as K } from "./assets/icon-footer-red.svg.js";
19
- import { default as _ } from "./assets/icon-footer-wechat.svg.js";
20
- import { default as ee } from "./assets/instagram.svg.js";
6
+ import { default as B } from "./assets/CarouselArrowNext.svg.js";
7
+ import { default as V } from "./assets/CarouselArrowPrev.svg.js";
8
+ import { default as F } from "./assets/checkmark.svg.js";
9
+ import { default as M } from "./assets/chevronDown.svg.js";
10
+ import { default as D } from "./assets/chevronNext.svg.js";
11
+ import { default as R } from "./assets/chevronRight.svg.js";
12
+ import { default as O } from "./assets/close.svg.js";
13
+ import { default as E } from "./assets/favorite.svg.js";
14
+ import { default as Q } from "./assets/favoriteOutline.svg.js";
15
+ import { default as j } from "./assets/icon-footer-facebook.svg.js";
16
+ import { default as Z } from "./assets/icon-footer-instagram.svg.js";
17
+ import { default as J } from "./assets/icon-footer-linkedin.svg.js";
18
+ import { default as X } from "./assets/icon-footer-red.svg.js";
19
+ import { default as $ } from "./assets/icon-footer-wechat.svg.js";
20
+ import { default as te } from "./assets/instagram.svg.js";
21
21
  import { default as re } from "./assets/lock.svg.js";
22
- import { default as ae } from "./assets/minus.svg.js";
23
- import { default as se } from "./assets/PhillipsLogo.svg.js";
24
- import { default as de } from "./assets/plus.svg.js";
25
- import { default as pe } from "./assets/react.svg.js";
22
+ import { default as fe } from "./assets/minus.svg.js";
23
+ import { default as le } from "./assets/PhillipsLogo.svg.js";
24
+ import { default as me } from "./assets/plus.svg.js";
25
+ import { default as ue } from "./assets/react.svg.js";
26
26
  import "react";
27
- import { default as xe } from "./assets/share.svg.js";
28
- import { default as ne } from "./assets/spotify.svg.js";
29
- import { default as ce } from "./assets/wechat.svg.js";
30
- import { default as Se } from "./assets/youtube.svg.js";
31
- import { default as Le } from "./assets/icon-green-circle.svg.js";
32
- import { default as Ae } from "./assets/icon-red-circle.svg.js";
27
+ import { default as ne } from "./assets/share.svg.js";
28
+ import { default as ge } from "./assets/spotify.svg.js";
29
+ import { default as Ce } from "./assets/wechat.svg.js";
30
+ import { default as he } from "./assets/youtube.svg.js";
31
+ import { default as Pe } from "./assets/icon-green-circle.svg.js";
32
+ import { default as Te } from "./assets/icon-red-circle.svg.js";
33
33
  import { default as Ie } from "./pages/Page.js";
34
- import { usePendingState as ke } from "./utils/hooks.js";
35
- import { SSRMediaQuery as Be, ssrMediaQueryStyle as Ve } from "./providers/SeldonProvider/utils.js";
36
- import { AuctionStatus as Fe, LotStatus as ye, SupportedLanguages as Me } from "./types/commonTypes.js";
37
- import { default as De } from "./components/Button/Button.js";
38
- import { ButtonVariants as Re } from "./components/Button/types.js";
39
- import { default as Oe } from "./components/IconButton/IconButton.js";
40
- import { default as Ee } from "./components/ErrorBoundary/ErrorBoundary.js";
41
- import { default as Qe } from "./site-furniture/Footer/Footer.js";
42
- import { Grid as je } from "./components/Grid/Grid.js";
43
- import { default as Ze } from "./site-furniture/Header/Header.js";
44
- import { default as Je } from "./components/Navigation/Navigation.js";
45
- import { default as Xe } from "./components/Navigation/NavigationItem/NavigationItem.js";
46
- import { default as $e } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
47
- import { default as tt } from "./components/Navigation/NavigationList/NavigationList.js";
48
- import { default as ot } from "./patterns/HeroBanner/HeroBanner.js";
49
- import { default as ft } from "./components/Input/Input.js";
50
- import { default as lt } from "./components/Link/Link.js";
51
- import { LinkVariants as mt } from "./components/Link/types.js";
52
- import { default as ut } from "./components/LinkBlock/LinkBlock.js";
34
+ import { usePendingState as Be } from "./utils/hooks.js";
35
+ import { SSRMediaQuery as Ve, ssrMediaQueryStyle as ve } from "./providers/SeldonProvider/utils.js";
36
+ import { AuctionStatus as ye, LotStatus as Me, SupportedLanguages as Ne } from "./types/commonTypes.js";
37
+ import { default as He } from "./components/Button/Button.js";
38
+ import { ButtonVariants as Ge } from "./components/Button/types.js";
39
+ import { default as Ue } from "./components/IconButton/IconButton.js";
40
+ import { default as We } from "./components/ErrorBoundary/ErrorBoundary.js";
41
+ import { default as Ye } from "./site-furniture/Footer/Footer.js";
42
+ import { Grid as ze } from "./components/Grid/Grid.js";
43
+ import { default as qe } from "./site-furniture/Header/Header.js";
44
+ import { default as Ke } from "./components/Navigation/Navigation.js";
45
+ import { default as _e } from "./components/Navigation/NavigationItem/NavigationItem.js";
46
+ import { default as et } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
47
+ import { default as ot } from "./components/Navigation/NavigationList/NavigationList.js";
48
+ import { default as at } from "./patterns/HeroBanner/HeroBanner.js";
49
+ import { default as st } from "./components/Input/Input.js";
50
+ import { default as dt } from "./components/Link/Link.js";
51
+ import { LinkVariants as pt } from "./components/Link/types.js";
52
+ import { default as xt } from "./components/LinkBlock/LinkBlock.js";
53
53
  import { default as it } from "./components/LinkList/LinkList.js";
54
- import { default as gt } from "./components/Row/Row.js";
55
- import { default as Ct } from "./components/GridItem/GridItem.js";
56
- import { GridItemAlign as ht } from "./components/GridItem/types.js";
57
- import { default as Pt } from "./components/Search/Search.js";
58
- import { default as Tt } from "./components/Select/Select.js";
54
+ import { default as ct } from "./components/Row/Row.js";
55
+ import { default as St } from "./components/GridItem/GridItem.js";
56
+ import { GridItemAlign as Lt } from "./components/GridItem/types.js";
57
+ import { default as At } from "./components/Search/Search.js";
58
+ import { default as kt } from "./components/Select/Select.js";
59
59
  import { SelectVariants as bt } from "./components/Select/types.js";
60
60
  import { default as wt } from "./components/SplitPanel/SplitPanel.js";
61
- import { default as Vt } from "./patterns/Subscribe/Subscribe.js";
62
- import { SubscriptionState as Ft } from "./patterns/Subscribe/types.js";
63
- import { default as Mt } from "./patterns/Social/Social.js";
64
- import { default as Dt } from "./patterns/ViewingsList/ViewingsList.js";
65
- import { default as Rt } from "./components/Modal/Modal.js";
66
- import { default as Ot } from "./components/Drawer/Drawer.js";
67
- import { default as Et } from "./components/Pagination/Pagination.js";
68
- import { Tag as Qt, default as Yt } from "./components/Tags/Tags.js";
69
- import { default as zt } from "./patterns/ViewingsList/StatefulViewingsList.js";
70
- import { TextAlignments as qt, TextVariants as Jt } from "./components/Text/types.js";
71
- import { default as Xt } from "./components/Text/Text.js";
72
- import { TextSymbolVariants as $t } from "./components/TextSymbol/types.js";
73
- import { default as tr } from "./components/TextSymbol/TextSymbol.js";
74
- import { default as or } from "./components/Accordion/Accordion.js";
75
- import { default as fr } from "./components/Accordion/AccordionItem.js";
76
- import { AccordionItemVariant as lr, AccordionVariants as dr } from "./components/Accordion/types.js";
77
- import { default as pr } from "./patterns/UserManagement/UserManagement.js";
78
- import { AuthState as xr } from "./patterns/UserManagement/types.js";
79
- import { default as nr } from "./components/Breadcrumb/Breadcrumb.js";
61
+ import { default as vt } from "./patterns/Subscribe/Subscribe.js";
62
+ import { SubscriptionState as yt } from "./patterns/Subscribe/types.js";
63
+ import { default as Nt } from "./patterns/Social/Social.js";
64
+ import { default as Ht } from "./patterns/ViewingsList/ViewingsList.js";
65
+ import { default as Gt } from "./components/Modal/Modal.js";
66
+ import { default as Ut } from "./components/Drawer/Drawer.js";
67
+ import { default as Wt } from "./components/Pagination/Pagination.js";
68
+ import { Tag as Yt, default as jt } from "./components/Tags/Tags.js";
69
+ import { default as Zt } from "./patterns/ViewingsList/StatefulViewingsList.js";
70
+ import { TextAlignments as Jt, TextVariants as Kt } from "./components/Text/types.js";
71
+ import { default as _t } from "./components/Text/Text.js";
72
+ import { TextSymbolVariants as eo } from "./components/TextSymbol/types.js";
73
+ import { default as oo } from "./components/TextSymbol/TextSymbol.js";
74
+ import { default as ao } from "./components/Accordion/Accordion.js";
75
+ import { default as so } from "./components/Accordion/AccordionItem.js";
76
+ import { AccordionItemVariant as mo, AccordionVariants as po } from "./components/Accordion/types.js";
77
+ import { default as xo } from "./patterns/UserManagement/UserManagement.js";
78
+ import { AuthState as io } from "./patterns/UserManagement/types.js";
79
+ import { default as co } from "./components/Breadcrumb/Breadcrumb.js";
80
80
  import "react/jsx-runtime";
81
81
  import "./node_modules/classnames/index.js";
82
- import { default as cr } from "./components/Dropdown/Dropdown.js";
83
- import { default as Sr } from "./components/Video/Video.js";
84
- import { default as Lr } from "./patterns/LanguageSelector/LanguageSelector.js";
85
- import { default as Ar } from "./components/ContentPeek/ContentPeek.js";
86
- import { HeightUnits as Ir } from "./components/ContentPeek/utils.js";
87
- import { default as kr } from "./components/Collapsible/Collapsible.js";
88
- import { default as Br } from "./components/Collapsible/CollapsibleContent.js";
89
- import { default as vr } from "./components/Collapsible/CollapsibleTrigger.js";
90
- import { SeldonProvider as yr } from "./providers/SeldonProvider/SeldonProvider.js";
91
- import { default as Nr } from "./components/PageContentWrapper/PageContentWrapper.js";
92
- import { default as Hr } from "./components/Carousel/Carousel.js";
93
- import { default as Gr } from "./components/Carousel/CarouselArrows.js";
94
- import { default as Ur } from "./components/Carousel/CarouselContent.js";
95
- import { default as Wr } from "./components/Carousel/CarouselItem.js";
96
- import { default as Yr } from "./components/Carousel/CarouselDots.js";
97
- import { default as zr } from "./components/Detail/Detail.js";
98
- import { default as qr } from "./patterns/DetailList/DetailList.js";
99
- import { DetailListAlignment as Kr } from "./patterns/DetailList/types.js";
100
- import { default as _r } from "./components/PinchZoom/PinchZoom.js";
101
- import { default as eo } from "./components/Tabs/TabsContainer.js";
102
- import { default as ro } from "./components/Tabs/TabsContent.js";
103
- import { default as ao } from "./components/SeldonImage/SeldonImage.js";
104
- import { default as so } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
105
- import { default as mo } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
106
- import { default as uo } from "./patterns/FilterMenu/FilterMenu.js";
107
- import { default as io } from "./components/Filter/Filter.js";
108
- import { default as go } from "./components/Filter/FilterInput.js";
109
- import { default as Co } from "./components/Filter/FilterHeader.js";
110
- import { default as ho } from "./components/Countdown/Countdown.js";
111
- import { CountdownVariants as Po } from "./components/Countdown/types.js";
112
- import { default as To } from "./patterns/ObjectTile/ObjectTile.js";
113
- import { default as bo } from "./patterns/BidSnapshot/BidSnapshot.js";
114
- import { default as wo } from "./patterns/BidSnapshot/BidMessage.js";
115
- import { BidMessageVariants as Vo, BidStatusEnum as vo } from "./patterns/BidSnapshot/types.js";
116
- import { default as yo } from "./components/Article/Article.js";
82
+ import { default as So } from "./components/Dropdown/Dropdown.js";
83
+ import { default as Lo } from "./components/Video/Video.js";
84
+ import { default as Ao } from "./patterns/LanguageSelector/LanguageSelector.js";
85
+ import { default as ko } from "./components/ContentPeek/ContentPeek.js";
86
+ import { HeightUnits as bo } from "./components/ContentPeek/utils.js";
87
+ import { default as wo } from "./components/Collapsible/Collapsible.js";
88
+ import { default as vo } from "./components/Collapsible/CollapsibleContent.js";
89
+ import { default as yo } from "./components/Collapsible/CollapsibleTrigger.js";
90
+ import { SeldonProvider as No } from "./providers/SeldonProvider/SeldonProvider.js";
91
+ import { default as Ho } from "./components/PageContentWrapper/PageContentWrapper.js";
92
+ import { default as Go } from "./components/Carousel/Carousel.js";
93
+ import { default as Uo } from "./components/Carousel/CarouselArrows.js";
94
+ import { default as Wo } from "./components/Carousel/CarouselContent.js";
95
+ import { default as Yo } from "./components/Carousel/CarouselItem.js";
96
+ import { default as zo } from "./components/Carousel/CarouselDots.js";
97
+ import { default as qo } from "./components/Detail/Detail.js";
98
+ import { default as Ko } from "./patterns/DetailList/DetailList.js";
99
+ import { DetailListAlignment as _o } from "./patterns/DetailList/types.js";
100
+ import { default as er } from "./components/PinchZoom/PinchZoom.js";
101
+ import { default as or } from "./components/Tabs/TabsContainer.js";
102
+ import { default as ar } from "./components/Tabs/TabsContent.js";
103
+ import { default as sr } from "./components/SeldonImage/SeldonImage.js";
104
+ import { default as dr } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
105
+ import { default as pr } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
106
+ import { default as xr } from "./patterns/FilterMenu/FilterMenu.js";
107
+ import { default as ir } from "./components/Filter/Filter.js";
108
+ import { default as cr } from "./components/Filter/FilterInput.js";
109
+ import { default as Sr } from "./components/Filter/FilterHeader.js";
110
+ import { default as Lr } from "./components/Countdown/Countdown.js";
111
+ import { CountdownVariants as Ar } from "./components/Countdown/types.js";
112
+ import { default as kr } from "./patterns/ObjectTile/ObjectTile.js";
113
+ import { default as br } from "./patterns/BidSnapshot/BidSnapshot.js";
114
+ import { default as wr } from "./patterns/BidSnapshot/BidMessage.js";
115
+ import { BidMessageVariants as vr, BidStatusEnum as Fr } from "./patterns/BidSnapshot/types.js";
116
+ import { default as Mr } from "./components/Article/Article.js";
117
117
  export {
118
- or as Accordion,
119
- fr as AccordionItem,
120
- lr as AccordionItemVariant,
121
- dr as AccordionVariants,
122
- S as AccountCircle,
123
- L as ArrowPrev,
124
- yo as Article,
125
- Fe as AuctionStatus,
126
- xr as AuthState,
127
- wo as BidMessage,
128
- Vo as BidMessageVariants,
129
- bo as BidSnapshot,
130
- vo as BidStatusEnum,
131
- nr as Breadcrumb,
132
- De as Button,
133
- Re as ButtonVariants,
134
- A as Calendar,
118
+ ao as Accordion,
119
+ so as AccordionItem,
120
+ mo as AccordionItemVariant,
121
+ po as AccordionVariants,
122
+ h as AccountCircle,
123
+ P as ArrowPrev,
124
+ Mr as Article,
125
+ ye as AuctionStatus,
126
+ io as AuthState,
127
+ wr as BidMessage,
128
+ vr as BidMessageVariants,
129
+ br as BidSnapshot,
130
+ Fr as BidStatusEnum,
131
+ co as Breadcrumb,
132
+ f as BreakpointTokens,
133
+ He as Button,
134
+ Ge as ButtonVariants,
135
+ T as Calendar,
135
136
  I as CalendarAlt,
136
- Hr as Carousel,
137
- k as CarouselArrowNext,
138
- B as CarouselArrowPrev,
139
- Gr as CarouselArrows,
140
- Ur as CarouselContent,
141
- Yr as CarouselDots,
142
- Wr as CarouselItem,
143
- v as Checkmark,
144
- y as ChevronDown,
145
- N as ChevronNext,
146
- H as ChevronRight,
147
- G as Close,
148
- kr as Collapsible,
149
- Br as CollapsibleContent,
150
- vr as CollapsibleTrigger,
151
- Ar as ContentPeek,
152
- Ir as ContentPeekHeightUnits,
153
- ho as Countdown,
154
- Po as CountdownVariants,
155
- zr as Detail,
156
- qr as DetailList,
157
- Kr as DetailListAlignment,
158
- Ot as Drawer,
159
- cr as Dropdown,
160
- Ee as ErrorBoundary,
161
- Y as Facebook,
162
- U as Favorite,
163
- W as FavoriteOutline,
164
- io as Filter,
165
- Co as FilterHeader,
166
- go as FilterInput,
167
- uo as FilterMenu,
168
- Qe as Footer,
169
- z as FooterInstagram,
170
- _ as FooterWeChat,
171
- Le as GreenCircle,
172
- je as Grid,
173
- Ct as GridItem,
174
- ht as GridItemAlign,
175
- Ze as Header,
176
- ot as HeroBanner,
177
- Oe as IconButton,
178
- ft as Input,
179
- ee as Instagram,
180
- Lr as LanguageSelector,
181
- lt as Link,
182
- ut as LinkBlock,
137
+ Go as Carousel,
138
+ B as CarouselArrowNext,
139
+ V as CarouselArrowPrev,
140
+ Uo as CarouselArrows,
141
+ Wo as CarouselContent,
142
+ zo as CarouselDots,
143
+ Yo as CarouselItem,
144
+ F as Checkmark,
145
+ M as ChevronDown,
146
+ D as ChevronNext,
147
+ R as ChevronRight,
148
+ O as Close,
149
+ wo as Collapsible,
150
+ vo as CollapsibleContent,
151
+ yo as CollapsibleTrigger,
152
+ ko as ContentPeek,
153
+ bo as ContentPeekHeightUnits,
154
+ Lr as Countdown,
155
+ Ar as CountdownVariants,
156
+ qo as Detail,
157
+ Ko as DetailList,
158
+ _o as DetailListAlignment,
159
+ Ut as Drawer,
160
+ So as Dropdown,
161
+ We as ErrorBoundary,
162
+ j as Facebook,
163
+ E as Favorite,
164
+ Q as FavoriteOutline,
165
+ ir as Filter,
166
+ Sr as FilterHeader,
167
+ cr as FilterInput,
168
+ xr as FilterMenu,
169
+ Ye as Footer,
170
+ Z as FooterInstagram,
171
+ $ as FooterWeChat,
172
+ Pe as GreenCircle,
173
+ ze as Grid,
174
+ St as GridItem,
175
+ Lt as GridItemAlign,
176
+ qe as Header,
177
+ at as HeroBanner,
178
+ Ue as IconButton,
179
+ st as Input,
180
+ te as Instagram,
181
+ Ao as LanguageSelector,
182
+ dt as Link,
183
+ xt as LinkBlock,
183
184
  it as LinkList,
184
- mt as LinkVariants,
185
- q as LinkedIn,
185
+ pt as LinkVariants,
186
+ J as LinkedIn,
186
187
  re as Lock,
187
- ye as LotStatus,
188
- ae as Minus,
189
- Rt as Modal,
190
- Je as Navigation,
191
- Xe as NavigationItem,
192
- $e as NavigationItemTrigger,
193
- tt as NavigationList,
194
- To as ObjectTile,
195
- f as PaddingTokens,
188
+ Me as LotStatus,
189
+ fe as Minus,
190
+ Gt as Modal,
191
+ Ke as Navigation,
192
+ _e as NavigationItem,
193
+ et as NavigationItemTrigger,
194
+ ot as NavigationList,
195
+ kr as ObjectTile,
196
+ s as PaddingTokens,
196
197
  Ie as Page,
197
- Nr as PageContentWrapper,
198
- Et as Pagination,
199
- se as PhillipsLogo,
200
- _r as PinchZoom,
201
- de as Plus,
202
- pe as React,
203
- Ae as RedCircle,
204
- K as Reddit,
205
- gt as Row,
206
- Be as SSRMediaQuery,
207
- so as SaleHeaderBanner,
208
- mo as SaleHeaderBrowseAuctions,
209
- Pt as Search,
210
- ao as SeldonImage,
211
- yr as SeldonProvider,
212
- Tt as Select,
198
+ Ho as PageContentWrapper,
199
+ Wt as Pagination,
200
+ le as PhillipsLogo,
201
+ er as PinchZoom,
202
+ me as Plus,
203
+ ue as React,
204
+ Te as RedCircle,
205
+ X as Reddit,
206
+ ct as Row,
207
+ Ve as SSRMediaQuery,
208
+ dr as SaleHeaderBanner,
209
+ pr as SaleHeaderBrowseAuctions,
210
+ At as Search,
211
+ sr as SeldonImage,
212
+ No as SeldonProvider,
213
+ kt as Select,
213
214
  bt as SelectVariants,
214
- xe as Share,
215
- Mt as Social,
216
- s as SpacingTokens,
215
+ ne as Share,
216
+ Nt as Social,
217
+ l as SpacingTokens,
217
218
  wt as SplitPanel,
218
- ne as Spotify,
219
- zt as StatefulViewingsList,
220
- Vt as Subscribe,
221
- Ft as SubscriptionState,
222
- Me as SupportedLanguages,
223
- eo as TabsContainer,
224
- ro as TabsContent,
225
- Qt as Tag,
226
- Yt as TagsList,
227
- Xt as Text,
228
- qt as TextAlignments,
229
- $t as TextSymbolVariants,
230
- tr as TextSymbols,
231
- Jt as TextVariants,
232
- pr as UserManagement,
233
- Sr as Video,
234
- Dt as ViewingsList,
235
- ce as WeChat,
236
- Se as Youtube,
237
- l as defaultYear,
238
- d as emailValidation,
239
- m as encodeURLSearchParams,
240
- p as findChildrenExcludingTypes,
241
- u as findChildrenOfType,
242
- x as generatePaddingClassName,
219
+ ge as Spotify,
220
+ Zt as StatefulViewingsList,
221
+ vt as Subscribe,
222
+ yt as SubscriptionState,
223
+ Ne as SupportedLanguages,
224
+ or as TabsContainer,
225
+ ar as TabsContent,
226
+ Yt as Tag,
227
+ jt as TagsList,
228
+ _t as Text,
229
+ Jt as TextAlignments,
230
+ eo as TextSymbolVariants,
231
+ oo as TextSymbols,
232
+ Kt as TextVariants,
233
+ xo as UserManagement,
234
+ Lo as Video,
235
+ Ht as ViewingsList,
236
+ Ce as WeChat,
237
+ he as Youtube,
238
+ d as defaultYear,
239
+ m as emailValidation,
240
+ p as encodeURLSearchParams,
241
+ u as findChildrenExcludingTypes,
242
+ x as findChildrenOfType,
243
+ n as generatePaddingClassName,
243
244
  i as getCommonProps,
244
- n as noOp,
245
- g as px,
246
- Ve as ssrMediaQueryStyle,
247
- c as useNormalizedInputProps,
248
- ke as usePendingState
245
+ g as noOp,
246
+ c as px,
247
+ ve as ssrMediaQueryStyle,
248
+ C as useNormalizedInputProps,
249
+ Be as usePendingState
249
250
  };
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index6.js";
1
+ import { __module as t } from "../../_virtual/index5.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index5.js";
1
+ import { __module as e } from "../../../../_virtual/index6.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -76,7 +76,7 @@
76
76
  font-size: $link-label-size;
77
77
  letter-spacing: 1px;
78
78
  line-height: $link-label-line-height;
79
- text-transform: uppercase;
79
+ text-transform: capitalize;
80
80
  }
81
81
 
82
82
  @if $label == 'button' {
@@ -103,9 +103,10 @@ $snwHeaderLink: 'snwHeaderLink';
103
103
  $snwFlyoutLink: 'snwFlyoutLink';
104
104
  $snwHeadingHero1: 'snwHeadingHero1';
105
105
  $snwHeadingHero2: 'snwHeadingHero2';
106
- $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
107
- $title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
108
- $snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2;
106
+ $text-tokens:
107
+ $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5, $title1,
108
+ $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink, $snwHeaderLink,
109
+ $snwHeadingHero1, $snwHeadingHero2;
109
110
 
110
111
  ////////////////////////
111
112
  /// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
@@ -2,7 +2,7 @@
2
2
  @use '../../allPartials' as *;
3
3
 
4
4
  @mixin gridItemColumnSpan($span: 1, $total-cols: 12) {
5
- grid-column: span $span;
5
+ grid-column: auto / span $span;
6
6
 
7
7
  &-align-right {
8
8
  grid-column-end: $total-cols + 1;
@@ -24,12 +24,24 @@
24
24
  }
25
25
  }
26
26
 
27
+ @for $i from 1 through 6 {
28
+ &--start-xs-#{$i} {
29
+ grid-column-start: #{$i};
30
+ }
31
+ }
32
+
27
33
  @include media($size-sm) {
28
34
  @for $i from 1 through 2 {
29
35
  &--span-sm-#{$i} {
30
36
  @include gridItemColumnSpan($i, 2);
31
37
  }
32
38
  }
39
+
40
+ @for $i from 1 through 6 {
41
+ &--start-sm-#{$i} {
42
+ grid-column-start: #{$i};
43
+ }
44
+ }
33
45
  }
34
46
 
35
47
  @include media($size-md) {
@@ -38,6 +50,12 @@
38
50
  @include gridItemColumnSpan($i, 6);
39
51
  }
40
52
  }
53
+
54
+ @for $i from 1 through 6 {
55
+ &--start-md-#{$i} {
56
+ grid-column-start: #{$i};
57
+ }
58
+ }
41
59
  }
42
60
 
43
61
  @include media($size-lg) {
@@ -46,5 +64,25 @@
46
64
  @include gridItemColumnSpan($i, 12);
47
65
  }
48
66
  }
67
+
68
+ @for $i from 1 through 12 {
69
+ &--start-lg-#{$i} {
70
+ grid-column-start: #{$i};
71
+ }
72
+ }
73
+ }
74
+
75
+ @include media($size-xl) {
76
+ @for $i from 1 through 12 {
77
+ &--span-xl-#{$i} {
78
+ @include gridItemColumnSpan($i, 12);
79
+ }
80
+ }
81
+
82
+ @for $i from 1 through 12 {
83
+ &--start-xl-#{$i} {
84
+ grid-column-start: #{$i};
85
+ }
86
+ }
49
87
  }
50
88
  }
@@ -26,6 +26,13 @@ export declare enum SpacingTokens {
26
26
  xl = "xl",
27
27
  xxl = "xxl"
28
28
  }
29
+ export declare enum BreakpointTokens {
30
+ xs = "xs",
31
+ sm = "sm",
32
+ md = "md",
33
+ lg = "lg",
34
+ xl = "xl"
35
+ }
29
36
  export declare const noOp: () => void;
30
37
  export interface InputProps {
31
38
  /**
@@ -1,62 +1,63 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { kebabCase as u } from "../node_modules/change-case/dist/index.js";
3
- import * as c from "react";
4
- const s = "seldon", v = ({ id: e, ...r }, n) => {
5
- const t = u(n);
2
+ import { kebabCase as c } from "../node_modules/change-case/dist/index.js";
3
+ import * as u from "react";
4
+ const s = "seldon", C = ({ id: r, ...e }, t) => {
5
+ const n = c(t);
6
6
  return {
7
- ...r,
8
- "data-testid": e ? `${t}-${e}` : `${t}`,
9
- className: `${s}-${t}`
7
+ ...e,
8
+ "data-testid": r ? `${n}-${r}` : `${n}`,
9
+ className: `${s}-${n}`
10
10
  };
11
11
  };
12
- var x = /* @__PURE__ */ ((e) => (e.xs = "xs", e.sm = "sm", e.md = "md", e.lg = "lg", e.xl = "xl", e.xxl = "xxl", e))(x || {}), f = /* @__PURE__ */ ((e) => (e.micro = "micro", e.xs = "xs", e.sm = "sm", e.md = "md", e.lg = "lg", e.xl = "xl", e.xxl = "xxl", e))(f || {});
13
- const C = () => {
12
+ var x = /* @__PURE__ */ ((r) => (r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r.xxl = "xxl", r))(x || {}), f = /* @__PURE__ */ ((r) => (r.micro = "micro", r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r.xxl = "xxl", r))(f || {}), $ = /* @__PURE__ */ ((r) => (r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r))($ || {});
13
+ const g = () => {
14
14
  };
15
- function g({
16
- disabled: e = !1,
17
- id: r,
18
- invalid: n = !1,
19
- invalidText: t = "invalid",
15
+ function w({
16
+ disabled: r = !1,
17
+ id: e,
18
+ invalid: t = !1,
19
+ invalidText: n = "invalid",
20
20
  readOnly: a = !1,
21
- type: o,
22
- warn: i = !1,
21
+ type: i,
22
+ warn: o = !1,
23
23
  warnText: m
24
24
  }) {
25
25
  const l = {
26
- disabled: !a && e,
27
- invalid: !a && !e && n,
28
- invalidId: `${r}-error-msg`,
29
- type: o === "toggle" ? "checkbox" : o,
30
- warn: !a && !e && !n && i,
31
- warnId: `${r}-warn-msg`,
26
+ disabled: !a && r,
27
+ invalid: !a && !r && t,
28
+ invalidId: `${e}-error-msg`,
29
+ type: i === "toggle" ? "checkbox" : i,
30
+ warn: !a && !r && !t && o,
31
+ warnId: `${e}-warn-msg`,
32
32
  validation: null
33
33
  };
34
- return l.invalid && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${o}-input--invalid`, id: l.invalidId, children: t })), l.warn && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${o}-input--warn`, id: l.warnId, children: m })), l;
34
+ return l.invalid && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${i}-input--invalid`, id: l.invalidId, children: n })), l.warn && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${i}-input--warn`, id: l.warnId, children: m })), l;
35
35
  }
36
- const w = (/* @__PURE__ */ new Date()).getFullYear(), h = (e, r = "end", n = "vertical") => `${s}-padding-${n}-${e}-${r}`, y = (e) => /(.+)@(.+){2,}\.(.+){2,}/i.test(e), I = (e, r, n = !1) => {
37
- const t = c.Children.toArray(e).filter((a) => a && a.type === r && !n ? a : a && a.type !== r && n);
38
- return t.length > 0 ? t : null;
39
- }, N = (e, r) => {
40
- const n = c.Children.toArray(e).filter((t) => {
41
- if (t && t.type && !r.includes(t.type))
42
- return t;
43
- });
36
+ const h = (/* @__PURE__ */ new Date()).getFullYear(), y = (r, e = "end", t = "vertical") => `${s}-padding-${t}-${r}-${e}`, I = (r) => /(.+)@(.+){2,}\.(.+){2,}/i.test(r), N = (r, e, t = !1) => {
37
+ const n = u.Children.toArray(r).filter((a) => a && a.type === e && !t ? a : a && a.type !== e && t);
44
38
  return n.length > 0 ? n : null;
45
- }, R = (e) => {
46
- const r = e.split("?"), n = new URLSearchParams(r[1]), a = Array.from(n.entries()).map(([i, m]) => [i, encodeURIComponent(m)]).map(([i, m]) => `${i}=${m}`).join("&");
47
- return `${r[0]}?${a}`;
39
+ }, R = (r, e) => {
40
+ const t = u.Children.toArray(r).filter((n) => {
41
+ if (n && n.type && !e.includes(n.type))
42
+ return n;
43
+ });
44
+ return t.length > 0 ? t : null;
45
+ }, b = (r) => {
46
+ const e = r.split("?"), t = new URLSearchParams(e[1]), a = Array.from(t.entries()).map(([o, m]) => [o, encodeURIComponent(m)]).map(([o, m]) => `${o}=${m}`).join("&");
47
+ return `${e[0]}?${a}`;
48
48
  };
49
49
  export {
50
+ $ as BreakpointTokens,
50
51
  x as PaddingTokens,
51
52
  f as SpacingTokens,
52
- w as defaultYear,
53
- y as emailValidation,
54
- R as encodeURLSearchParams,
55
- N as findChildrenExcludingTypes,
56
- I as findChildrenOfType,
57
- h as generatePaddingClassName,
58
- v as getCommonProps,
59
- C as noOp,
53
+ h as defaultYear,
54
+ I as emailValidation,
55
+ b as encodeURLSearchParams,
56
+ R as findChildrenExcludingTypes,
57
+ N as findChildrenOfType,
58
+ y as generatePaddingClassName,
59
+ C as getCommonProps,
60
+ g as noOp,
60
61
  s as px,
61
- g as useNormalizedInputProps
62
+ w as useNormalizedInputProps
62
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.130.0",
3
+ "version": "1.131.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"