@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.
- package/dist/components/GridItem/GridItem.d.ts +2 -35
- package/dist/components/GridItem/GridItem.js +25 -35
- package/dist/components/GridItem/GridItem.stories.d.ts +2 -16
- package/dist/components/GridItem/gridItemUtils.d.ts +2 -2
- package/dist/components/GridItem/gridItemUtils.js +7 -10
- package/dist/index.js +172 -173
- package/dist/scss/components/GridItem/_gridItem.scss +1 -39
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.js +43 -44
- package/package.json +1 -1
|
@@ -6,45 +6,12 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
*/
|
|
7
7
|
align?: GridItemAlign;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
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,
|
|
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
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { determineColumnSpanClassName as
|
|
6
|
-
import { GridItemAlign as
|
|
7
|
-
const
|
|
8
|
-
children:
|
|
9
|
-
xs:
|
|
10
|
-
sm:
|
|
11
|
-
md:
|
|
12
|
-
lg:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
|
25
|
-
|
|
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(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
2
|
-
import { GridItemAlign as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
18
|
-
|
|
14
|
+
l as determineColumnSpanClassName,
|
|
15
|
+
i as validateColumnSpans
|
|
19
16
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,193 +1,192 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import { usePendingState as
|
|
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
|
|
6
|
-
import { default as
|
|
7
|
-
import { ButtonVariants as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { Grid as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { LinkVariants as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { GridItemAlign as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { SelectVariants as
|
|
29
|
-
import { default as
|
|
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
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { Tag as
|
|
38
|
-
import { default as
|
|
39
|
-
import { TextAlignments as
|
|
40
|
-
import { default as
|
|
41
|
-
import { TextSymbolVariants as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { AccordionItemVariant as
|
|
46
|
-
import { default as
|
|
47
|
-
import { AuthState as
|
|
48
|
-
import { default as
|
|
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
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { HeightUnits as
|
|
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
|
|
59
|
-
import { default as
|
|
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
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { DetailListAlignment as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { CountdownVariants as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
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
|
|
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
|
|
87
|
+
import { default as wo } from "./components/TextArea/TextArea.js";
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
Ke as Accordion,
|
|
90
|
+
_e as AccordionItem,
|
|
91
|
+
et as AccordionItemVariant,
|
|
92
|
+
tt as AccordionVariants,
|
|
93
93
|
ho as Article,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
I as AuctionStatus,
|
|
95
|
+
ft as AuthState,
|
|
96
96
|
Ao as BidMessage,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
to as SaleHeaderBanner,
|
|
154
|
+
ro as SaleHeaderBrowseAuctions,
|
|
155
|
+
xe as Search,
|
|
156
|
+
$t as SeldonImage,
|
|
158
157
|
ht as SeldonProvider,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
|
|
192
|
-
|
|
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:
|
|
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
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/utils/index.js
CHANGED
|
@@ -1,63 +1,62 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { kebabCase as
|
|
3
|
-
import * as
|
|
4
|
-
const s = "seldon",
|
|
5
|
-
const
|
|
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
|
-
...
|
|
8
|
-
"data-testid":
|
|
9
|
-
className: `${s}-${
|
|
7
|
+
...r,
|
|
8
|
+
"data-testid": e ? `${t}-${e}` : `${t}`,
|
|
9
|
+
className: `${s}-${t}`
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
var x = /* @__PURE__ */ ((
|
|
13
|
-
const
|
|
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
|
|
16
|
-
disabled:
|
|
17
|
-
id:
|
|
18
|
-
invalid:
|
|
19
|
-
invalidText:
|
|
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:
|
|
22
|
-
warn:
|
|
21
|
+
type: o,
|
|
22
|
+
warn: i = !1,
|
|
23
23
|
warnText: m
|
|
24
24
|
}) {
|
|
25
25
|
const l = {
|
|
26
|
-
disabled: !a &&
|
|
27
|
-
invalid: !a && !
|
|
28
|
-
invalidId: `${
|
|
29
|
-
type:
|
|
30
|
-
warn: !a && !
|
|
31
|
-
warnId: `${
|
|
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}-${
|
|
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
|
|
37
|
-
const
|
|
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
|
-
},
|
|
46
|
-
const
|
|
47
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
61
|
+
g as useNormalizedInputProps
|
|
63
62
|
};
|