@phillips/seldon 1.133.0 → 1.133.1

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,45 +6,12 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  */
7
7
  align?: GridItemAlign;
8
8
  /**
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.
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.
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
- */
15
12
  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
- */
19
13
  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
- */
23
14
  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;
48
15
  /**
49
16
  * Optional element to render as the top-level component e.g. 'div', 'span', CustomComponent, etc. Defaults to 'div'.
50
17
  */
@@ -60,5 +27,5 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
60
27
  *
61
28
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-griditem--overview)
62
29
  */
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;
30
+ declare const GridItem: ({ children, xs, sm, md, lg, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
64
31
  export default GridItem;
@@ -1,40 +1,30 @@
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
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
23
17
  }) => {
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,
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,
29
20
  // figure out the class names for each breakpoint
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;
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;
37
27
  };
38
28
  export {
39
- F as default
29
+ A as default
40
30
  };
@@ -2,17 +2,13 @@ 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, xl, xsColStart, smColStart, mdColStart, lgColStart, xlColStart, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ component: ({ children, xs, sm, md, lg, 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
- xs: number;
12
- sm: number;
13
- md: number;
14
- lg: number;
15
- align: GridItemAlign;
11
+ children: import("react/jsx-runtime").JSX.Element;
16
12
  };
17
13
  argTypes: {
18
14
  align: {
@@ -30,15 +26,5 @@ export declare const CenteredGridItem: {
30
26
  md: number;
31
27
  lg: number;
32
28
  };
33
- argTypes: {
34
- align: {
35
- options: typeof GridItemAlign;
36
- control: {
37
- type: string;
38
- options: GridItemAlign[];
39
- };
40
- };
41
- };
42
29
  };
43
30
  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';
2
1
  import { GridItemProps } from './GridItem';
3
- export declare const determineColumnSpanClassName: (breakpoint: BreakpointTokens, columnSpan: number, columnStart?: number, align?: GridItemProps["align"]) => string;
2
+ import { GridItemAlign } from './types';
3
+ export declare const determineColumnSpanClassName: (breakpoint: GridItemAlign, columnSpan: number, align?: GridItemProps["align"]) => string;
4
4
  export declare const validateColumnSpans: (columnSpans: number[]) => boolean;
@@ -1,11 +1,8 @@
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];
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];
9
6
  if (t > 12)
10
7
  return console.warn("Column spans must be less than or equal to 12"), !1;
11
8
  if (t < 1)
@@ -14,6 +11,6 @@ const c = (e, s, t, a = n.center) => {
14
11
  return !0;
15
12
  };
16
13
  export {
17
- c as determineColumnSpanClassName,
18
- g as validateColumnSpans
14
+ l as determineColumnSpanClassName,
15
+ i as validateColumnSpans
19
16
  };
package/dist/index.js CHANGED
@@ -1,193 +1,192 @@
1
- import { BreakpointTokens as a, PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as d, findChildrenOfType as u, generatePaddingClassName as n, getCommonProps as i, noOp as x, px as g, useNormalizedInputProps as c } from "./utils/index.js";
2
- import { default as C } from "./pages/Page.js";
3
- import { usePendingState as L } from "./utils/hooks.js";
1
+ import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as m, findChildrenExcludingTypes as d, findChildrenOfType as p, generatePaddingClassName as u, getCommonProps as n, noOp as i, px as x, useNormalizedInputProps as g } from "./utils/index.js";
2
+ import { default as S } from "./pages/Page.js";
3
+ import { usePendingState as T } from "./utils/hooks.js";
4
4
  import { SSRMediaQuery as P, ssrMediaQueryStyle as A } from "./providers/SeldonProvider/utils.js";
5
- import { AuctionStatus as V, LotStatus as b, SupportedLanguages as k } from "./types/commonTypes.js";
6
- import { default as w } from "./components/Button/Button.js";
7
- import { ButtonVariants as H } from "./components/Button/types.js";
8
- import { default as D } from "./components/IconButton/IconButton.js";
9
- import { default as v } from "./components/ErrorBoundary/ErrorBoundary.js";
10
- import { default as U } from "./site-furniture/Footer/Footer.js";
11
- import { Grid as G } from "./components/Grid/Grid.js";
12
- import { default as R } from "./site-furniture/Header/Header.js";
13
- import { default as j } from "./components/Navigation/Navigation.js";
14
- import { default as W } from "./components/Navigation/NavigationItem/NavigationItem.js";
15
- import { default as Z } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
16
- import { default as J } from "./components/Navigation/NavigationList/NavigationList.js";
17
- import { default as X } from "./patterns/HeroBanner/HeroBanner.js";
18
- import { default as $ } from "./components/Input/Input.js";
19
- import { default as te } from "./components/Link/Link.js";
20
- import { LinkVariants as re } from "./components/Link/types.js";
21
- import { default as fe } from "./components/LinkBlock/LinkBlock.js";
22
- import { default as le } from "./components/LinkList/LinkList.js";
23
- import { default as pe } from "./components/Row/Row.js";
24
- import { default as ue } from "./components/GridItem/GridItem.js";
25
- import { GridItemAlign as ie } from "./components/GridItem/types.js";
26
- import { default as ge } from "./components/Search/Search.js";
27
- import { default as Se } from "./components/Select/Select.js";
28
- import { SelectVariants as Te } from "./components/Select/types.js";
29
- import { default as Be } from "./components/SplitPanel/SplitPanel.js";
5
+ import { AuctionStatus as I, LotStatus as V, SupportedLanguages as b } from "./types/commonTypes.js";
6
+ import { default as k } from "./components/Button/Button.js";
7
+ import { ButtonVariants as y } from "./components/Button/types.js";
8
+ import { default as M } from "./components/IconButton/IconButton.js";
9
+ import { default as N } from "./components/ErrorBoundary/ErrorBoundary.js";
10
+ import { default as F } from "./site-furniture/Footer/Footer.js";
11
+ import { Grid as E } from "./components/Grid/Grid.js";
12
+ import { default as O } from "./site-furniture/Header/Header.js";
13
+ import { default as Q } from "./components/Navigation/Navigation.js";
14
+ import { default as z } from "./components/Navigation/NavigationItem/NavigationItem.js";
15
+ import { default as Y } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
16
+ import { default as q } from "./components/Navigation/NavigationList/NavigationList.js";
17
+ import { default as K } from "./patterns/HeroBanner/HeroBanner.js";
18
+ import { default as _ } from "./components/Input/Input.js";
19
+ import { default as ee } from "./components/Link/Link.js";
20
+ import { LinkVariants as oe } from "./components/Link/types.js";
21
+ import { default as ae } from "./components/LinkBlock/LinkBlock.js";
22
+ import { default as se } from "./components/LinkList/LinkList.js";
23
+ import { default as me } from "./components/Row/Row.js";
24
+ import { default as pe } from "./components/GridItem/GridItem.js";
25
+ import { GridItemAlign as ne } from "./components/GridItem/types.js";
26
+ import { default as xe } from "./components/Search/Search.js";
27
+ import { default as ce } from "./components/Select/Select.js";
28
+ import { SelectVariants as Ce } from "./components/Select/types.js";
29
+ import { default as Le } from "./components/SplitPanel/SplitPanel.js";
30
30
  import { default as Ae } from "./patterns/Subscribe/Subscribe.js";
31
- import { SubscriptionState as Ve } from "./patterns/Subscribe/types.js";
32
- import { default as ke } from "./patterns/Social/Social.js";
33
- import { default as we } from "./patterns/ViewingsList/ViewingsList.js";
34
- import { default as He } from "./components/Modal/Modal.js";
35
- import { default as De } from "./components/Drawer/Drawer.js";
36
- import { default as ve } from "./components/Pagination/Pagination.js";
37
- import { Tag as Ue, default as Ee } from "./components/Tags/Tags.js";
38
- import { default as Oe } from "./patterns/ViewingsList/StatefulViewingsList.js";
39
- import { TextAlignments as Qe, TextVariants as je } from "./components/Text/types.js";
40
- import { default as We } from "./components/Text/Text.js";
41
- import { TextSymbolVariants as Ze } from "./components/TextSymbol/types.js";
42
- import { default as Je } from "./components/TextSymbol/TextSymbol.js";
43
- import { default as Xe } from "./components/Accordion/Accordion.js";
44
- import { default as $e } from "./components/Accordion/AccordionItem.js";
45
- import { AccordionItemVariant as tt, AccordionVariants as ot } from "./components/Accordion/types.js";
46
- import { default as at } from "./patterns/UserManagement/UserManagement.js";
47
- import { AuthState as st } from "./patterns/UserManagement/types.js";
48
- import { default as mt } from "./components/Breadcrumb/Breadcrumb.js";
31
+ import { SubscriptionState as Ie } from "./patterns/Subscribe/types.js";
32
+ import { default as be } from "./patterns/Social/Social.js";
33
+ import { default as ke } from "./patterns/ViewingsList/ViewingsList.js";
34
+ import { default as ye } from "./components/Modal/Modal.js";
35
+ import { default as Me } from "./components/Drawer/Drawer.js";
36
+ import { default as Ne } from "./components/Pagination/Pagination.js";
37
+ import { Tag as Fe, default as Ue } from "./components/Tags/Tags.js";
38
+ import { default as Ge } from "./patterns/ViewingsList/StatefulViewingsList.js";
39
+ import { TextAlignments as Re, TextVariants as Qe } from "./components/Text/types.js";
40
+ import { default as ze } from "./components/Text/Text.js";
41
+ import { TextSymbolVariants as Ye } from "./components/TextSymbol/types.js";
42
+ import { default as qe } from "./components/TextSymbol/TextSymbol.js";
43
+ import { default as Ke } from "./components/Accordion/Accordion.js";
44
+ import { default as _e } from "./components/Accordion/AccordionItem.js";
45
+ import { AccordionItemVariant as et, AccordionVariants as tt } from "./components/Accordion/types.js";
46
+ import { default as rt } from "./patterns/UserManagement/UserManagement.js";
47
+ import { AuthState as ft } from "./patterns/UserManagement/types.js";
48
+ import { default as lt } from "./components/Breadcrumb/Breadcrumb.js";
49
49
  import "react/jsx-runtime";
50
50
  import "./node_modules/classnames/index.js";
51
51
  import { default as dt } from "./components/Icon/Icon.js";
52
- import { default as nt } from "./components/Dropdown/Dropdown.js";
53
- import { default as xt } from "./components/Video/Video.js";
54
- import { default as ct } from "./patterns/LanguageSelector/LanguageSelector.js";
55
- import { default as Ct } from "./components/ContentPeek/ContentPeek.js";
56
- import { HeightUnits as Lt } from "./components/ContentPeek/utils.js";
52
+ import { default as ut } from "./components/Dropdown/Dropdown.js";
53
+ import { default as it } from "./components/Video/Video.js";
54
+ import { default as gt } from "./patterns/LanguageSelector/LanguageSelector.js";
55
+ import { default as St } from "./components/ContentPeek/ContentPeek.js";
56
+ import { HeightUnits as Tt } from "./components/ContentPeek/utils.js";
57
57
  import { default as Pt } from "./components/Collapsible/Collapsible.js";
58
- import { default as It } from "./components/Collapsible/CollapsibleContent.js";
59
- import { default as bt } from "./components/Collapsible/CollapsibleTrigger.js";
58
+ import { default as Bt } from "./components/Collapsible/CollapsibleContent.js";
59
+ import { default as Vt } from "./components/Collapsible/CollapsibleTrigger.js";
60
60
  import { SeldonProvider as ht } from "./providers/SeldonProvider/SeldonProvider.js";
61
- import { default as yt } from "./components/PageContentWrapper/PageContentWrapper.js";
62
- import { default as Mt } from "./components/Carousel/Carousel.js";
63
- import { default as Nt } from "./components/Carousel/CarouselArrows.js";
64
- import { default as Ft } from "./components/Carousel/CarouselContent.js";
65
- import { default as Et } from "./components/Carousel/CarouselItem.js";
66
- import { default as Ot } from "./components/Carousel/CarouselDots.js";
67
- import { default as Qt } from "./components/Detail/Detail.js";
68
- import { default as zt } from "./patterns/DetailList/DetailList.js";
69
- import { DetailListAlignment as Yt } from "./patterns/DetailList/types.js";
70
- import { default as qt } from "./components/PinchZoom/PinchZoom.js";
71
- import { default as Kt } from "./components/Tabs/TabsContainer.js";
72
- import { default as _t } from "./components/Tabs/TabsContent.js";
73
- import { default as eo } from "./components/SeldonImage/SeldonImage.js";
74
- import { default as oo } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
75
- import { default as ao } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
76
- import { default as so } from "./patterns/FilterMenu/FilterMenu.js";
77
- import { default as mo } from "./components/Filter/Filter.js";
78
- import { default as uo } from "./components/Filter/FilterInput.js";
79
- import { default as io } from "./components/Filter/FilterHeader.js";
80
- import { default as go } from "./components/Countdown/Countdown.js";
81
- import { CountdownVariants as So } from "./components/Countdown/types.js";
82
- import { default as To } from "./patterns/ObjectTile/ObjectTile.js";
83
- import { default as Bo } from "./patterns/BidSnapshot/BidSnapshot.js";
61
+ import { default as wt } from "./components/PageContentWrapper/PageContentWrapper.js";
62
+ import { default as Ht } from "./components/Carousel/Carousel.js";
63
+ import { default as Dt } from "./components/Carousel/CarouselArrows.js";
64
+ import { default as vt } from "./components/Carousel/CarouselContent.js";
65
+ import { default as Ut } from "./components/Carousel/CarouselItem.js";
66
+ import { default as Gt } from "./components/Carousel/CarouselDots.js";
67
+ import { default as Rt } from "./components/Detail/Detail.js";
68
+ import { default as jt } from "./patterns/DetailList/DetailList.js";
69
+ import { DetailListAlignment as Wt } from "./patterns/DetailList/types.js";
70
+ import { default as Zt } from "./components/PinchZoom/PinchZoom.js";
71
+ import { default as Jt } from "./components/Tabs/TabsContainer.js";
72
+ import { default as Xt } from "./components/Tabs/TabsContent.js";
73
+ import { default as $t } from "./components/SeldonImage/SeldonImage.js";
74
+ import { default as to } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
75
+ import { default as ro } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
76
+ import { default as fo } from "./patterns/FilterMenu/FilterMenu.js";
77
+ import { default as lo } from "./components/Filter/Filter.js";
78
+ import { default as po } from "./components/Filter/FilterInput.js";
79
+ import { default as no } from "./components/Filter/FilterHeader.js";
80
+ import { default as xo } from "./components/Countdown/Countdown.js";
81
+ import { CountdownVariants as co } from "./components/Countdown/types.js";
82
+ import { default as Co } from "./patterns/ObjectTile/ObjectTile.js";
83
+ import { default as Lo } from "./patterns/BidSnapshot/BidSnapshot.js";
84
84
  import { default as Ao } from "./patterns/BidSnapshot/BidMessage.js";
85
- import { BidMessageVariants as Vo, BidStatusEnum as bo } from "./patterns/BidSnapshot/types.js";
85
+ import { BidMessageVariants as Io, BidStatusEnum as Vo } from "./patterns/BidSnapshot/types.js";
86
86
  import { default as ho } from "./components/Article/Article.js";
87
- import { default as yo } from "./components/TextArea/TextArea.js";
87
+ import { default as wo } from "./components/TextArea/TextArea.js";
88
88
  export {
89
- Xe as Accordion,
90
- $e as AccordionItem,
91
- tt as AccordionItemVariant,
92
- ot as AccordionVariants,
89
+ Ke as Accordion,
90
+ _e as AccordionItem,
91
+ et as AccordionItemVariant,
92
+ tt as AccordionVariants,
93
93
  ho as Article,
94
- V as AuctionStatus,
95
- st as AuthState,
94
+ I as AuctionStatus,
95
+ ft as AuthState,
96
96
  Ao as BidMessage,
97
- Vo as BidMessageVariants,
98
- Bo as BidSnapshot,
99
- bo as BidStatusEnum,
100
- mt as Breadcrumb,
101
- a as BreakpointTokens,
102
- w as Button,
103
- H as ButtonVariants,
104
- Mt as Carousel,
105
- Nt as CarouselArrows,
106
- Ft as CarouselContent,
107
- Ot as CarouselDots,
108
- Et as CarouselItem,
97
+ Io as BidMessageVariants,
98
+ Lo as BidSnapshot,
99
+ Vo as BidStatusEnum,
100
+ lt as Breadcrumb,
101
+ k as Button,
102
+ y as ButtonVariants,
103
+ Ht as Carousel,
104
+ Dt as CarouselArrows,
105
+ vt as CarouselContent,
106
+ Gt as CarouselDots,
107
+ Ut as CarouselItem,
109
108
  Pt as Collapsible,
110
- It as CollapsibleContent,
111
- bt as CollapsibleTrigger,
112
- Ct as ContentPeek,
113
- Lt as ContentPeekHeightUnits,
114
- go as Countdown,
115
- So as CountdownVariants,
116
- Qt as Detail,
117
- zt as DetailList,
118
- Yt as DetailListAlignment,
119
- De as Drawer,
120
- nt as Dropdown,
121
- v as ErrorBoundary,
122
- mo as Filter,
123
- io as FilterHeader,
124
- uo as FilterInput,
125
- so as FilterMenu,
126
- U as Footer,
127
- G as Grid,
128
- ue as GridItem,
129
- ie as GridItemAlign,
130
- R as Header,
131
- X as HeroBanner,
109
+ Bt as CollapsibleContent,
110
+ Vt as CollapsibleTrigger,
111
+ St as ContentPeek,
112
+ Tt as ContentPeekHeightUnits,
113
+ xo as Countdown,
114
+ co as CountdownVariants,
115
+ Rt as Detail,
116
+ jt as DetailList,
117
+ Wt as DetailListAlignment,
118
+ Me as Drawer,
119
+ ut as Dropdown,
120
+ N as ErrorBoundary,
121
+ lo as Filter,
122
+ no as FilterHeader,
123
+ po as FilterInput,
124
+ fo as FilterMenu,
125
+ F as Footer,
126
+ E as Grid,
127
+ pe as GridItem,
128
+ ne as GridItemAlign,
129
+ O as Header,
130
+ K as HeroBanner,
132
131
  dt as Icon,
133
- D as IconButton,
134
- $ as Input,
135
- ct as LanguageSelector,
136
- te as Link,
137
- fe as LinkBlock,
138
- le as LinkList,
139
- re as LinkVariants,
140
- b as LotStatus,
141
- He as Modal,
142
- j as Navigation,
143
- W as NavigationItem,
144
- Z as NavigationItemTrigger,
145
- J as NavigationList,
146
- To as ObjectTile,
147
- f as PaddingTokens,
148
- C as Page,
149
- yt as PageContentWrapper,
150
- ve as Pagination,
151
- qt as PinchZoom,
152
- pe as Row,
132
+ M as IconButton,
133
+ _ as Input,
134
+ gt as LanguageSelector,
135
+ ee as Link,
136
+ ae as LinkBlock,
137
+ se as LinkList,
138
+ oe as LinkVariants,
139
+ V as LotStatus,
140
+ ye as Modal,
141
+ Q as Navigation,
142
+ z as NavigationItem,
143
+ Y as NavigationItemTrigger,
144
+ q as NavigationList,
145
+ Co as ObjectTile,
146
+ a as PaddingTokens,
147
+ S as Page,
148
+ wt as PageContentWrapper,
149
+ Ne as Pagination,
150
+ Zt as PinchZoom,
151
+ me as Row,
153
152
  P as SSRMediaQuery,
154
- oo as SaleHeaderBanner,
155
- ao as SaleHeaderBrowseAuctions,
156
- ge as Search,
157
- eo as SeldonImage,
153
+ to as SaleHeaderBanner,
154
+ ro as SaleHeaderBrowseAuctions,
155
+ xe as Search,
156
+ $t as SeldonImage,
158
157
  ht as SeldonProvider,
159
- Se as Select,
160
- Te as SelectVariants,
161
- ke as Social,
162
- s as SpacingTokens,
163
- Be as SplitPanel,
164
- Oe as StatefulViewingsList,
158
+ ce as Select,
159
+ Ce as SelectVariants,
160
+ be as Social,
161
+ f as SpacingTokens,
162
+ Le as SplitPanel,
163
+ Ge as StatefulViewingsList,
165
164
  Ae as Subscribe,
166
- Ve as SubscriptionState,
167
- k as SupportedLanguages,
168
- Kt as TabsContainer,
169
- _t as TabsContent,
170
- Ue as Tag,
171
- Ee as TagsList,
172
- We as Text,
173
- Qe as TextAlignments,
174
- yo as TextArea,
175
- Ze as TextSymbolVariants,
176
- Je as TextSymbols,
177
- je as TextVariants,
178
- at as UserManagement,
179
- xt as Video,
180
- we as ViewingsList,
181
- l as defaultYear,
182
- m as emailValidation,
183
- p as encodeURLSearchParams,
165
+ Ie as SubscriptionState,
166
+ b as SupportedLanguages,
167
+ Jt as TabsContainer,
168
+ Xt as TabsContent,
169
+ Fe as Tag,
170
+ Ue as TagsList,
171
+ ze as Text,
172
+ Re as TextAlignments,
173
+ wo as TextArea,
174
+ Ye as TextSymbolVariants,
175
+ qe as TextSymbols,
176
+ Qe as TextVariants,
177
+ rt as UserManagement,
178
+ it as Video,
179
+ ke as ViewingsList,
180
+ s as defaultYear,
181
+ l as emailValidation,
182
+ m as encodeURLSearchParams,
184
183
  d as findChildrenExcludingTypes,
185
- u as findChildrenOfType,
186
- n as generatePaddingClassName,
187
- i as getCommonProps,
188
- x as noOp,
189
- g as px,
184
+ p as findChildrenOfType,
185
+ u as generatePaddingClassName,
186
+ n as getCommonProps,
187
+ i as noOp,
188
+ x as px,
190
189
  A as ssrMediaQueryStyle,
191
- c as useNormalizedInputProps,
192
- L as usePendingState
190
+ g as useNormalizedInputProps,
191
+ T as usePendingState
193
192
  };
@@ -2,7 +2,7 @@
2
2
  @use '../../allPartials' as *;
3
3
 
4
4
  @mixin gridItemColumnSpan($span: 1, $total-cols: 12) {
5
- grid-column: auto / span $span;
5
+ grid-column: span $span;
6
6
 
7
7
  &-align-right {
8
8
  grid-column-end: $total-cols + 1;
@@ -24,24 +24,12 @@
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
-
33
27
  @include media($size-sm) {
34
28
  @for $i from 1 through 2 {
35
29
  &--span-sm-#{$i} {
36
30
  @include gridItemColumnSpan($i, 2);
37
31
  }
38
32
  }
39
-
40
- @for $i from 1 through 6 {
41
- &--start-sm-#{$i} {
42
- grid-column-start: #{$i};
43
- }
44
- }
45
33
  }
46
34
 
47
35
  @include media($size-md) {
@@ -50,12 +38,6 @@
50
38
  @include gridItemColumnSpan($i, 6);
51
39
  }
52
40
  }
53
-
54
- @for $i from 1 through 6 {
55
- &--start-md-#{$i} {
56
- grid-column-start: #{$i};
57
- }
58
- }
59
41
  }
60
42
 
61
43
  @include media($size-lg) {
@@ -64,25 +46,5 @@
64
46
  @include gridItemColumnSpan($i, 12);
65
47
  }
66
48
  }
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
- }
87
49
  }
88
50
  }
@@ -26,13 +26,6 @@ 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
- }
36
29
  export declare const noOp: () => void;
37
30
  export interface InputProps {
38
31
  /**
@@ -1,63 +1,62 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
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);
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);
6
6
  return {
7
- ...e,
8
- "data-testid": r ? `${n}-${r}` : `${n}`,
9
- className: `${s}-${n}`
7
+ ...r,
8
+ "data-testid": e ? `${t}-${e}` : `${t}`,
9
+ className: `${s}-${t}`
10
10
  };
11
11
  };
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 = () => {
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 = () => {
14
14
  };
15
- function w({
16
- disabled: r = !1,
17
- id: e,
18
- invalid: t = !1,
19
- invalidText: n = "invalid",
15
+ function g({
16
+ disabled: e = !1,
17
+ id: r,
18
+ invalid: n = !1,
19
+ invalidText: t = "invalid",
20
20
  readOnly: a = !1,
21
- type: i,
22
- warn: o = !1,
21
+ type: o,
22
+ warn: i = !1,
23
23
  warnText: m
24
24
  }) {
25
25
  const l = {
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`,
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`,
32
32
  validation: null
33
33
  };
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;
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;
35
35
  }
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);
38
- return n.length > 0 ? n : null;
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
- });
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);
44
38
  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}`;
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
+ });
44
+ 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}`;
48
48
  };
49
49
  export {
50
- $ as BreakpointTokens,
51
50
  x as PaddingTokens,
52
51
  f as SpacingTokens,
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,
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,
61
60
  s as px,
62
- w as useNormalizedInputProps
61
+ g as useNormalizedInputProps
63
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.133.0",
3
+ "version": "1.133.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"