@phillips/seldon 1.103.3 → 1.104.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/Drawer/Drawer.js +11 -11
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Tags/Tags.js +33 -27
- package/dist/index.d.ts +1 -1
- package/dist/index.js +97 -96
- package/package.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as d, noOp as p } from "../../utils/index.js";
|
|
3
|
-
import
|
|
3
|
+
import o from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { Root as f, Portal as C, Overlay as h, Content as u, Title as v, Description as N, Close as w } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
5
5
|
import y from "../../assets/close.svg.js";
|
|
6
6
|
import _ from "../IconButton/IconButton.js";
|
|
7
7
|
import { ButtonVariants as g } from "../Button/types.js";
|
|
8
|
-
const B = ({ className: i, isOpen: l = !1, onClose:
|
|
9
|
-
const { className:
|
|
8
|
+
const B = ({ className: i, isOpen: l = !1, onClose: a = p, children: m, ...t }) => {
|
|
9
|
+
const { className: e, ...n } = d(t, "Drawer");
|
|
10
10
|
return /* @__PURE__ */ r(
|
|
11
11
|
f,
|
|
12
12
|
{
|
|
13
13
|
open: l,
|
|
14
14
|
onOpenChange: (c) => {
|
|
15
|
-
c ||
|
|
15
|
+
c || a();
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ s(C, { children: [
|
|
18
18
|
/* @__PURE__ */ r(
|
|
19
19
|
h,
|
|
20
20
|
{
|
|
21
|
-
onClick:
|
|
22
|
-
className:
|
|
21
|
+
onClick: a,
|
|
22
|
+
className: o(`${e}__overlay`),
|
|
23
23
|
"data-testid": "drawer-overlay"
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ s(u, { className: e
|
|
26
|
+
/* @__PURE__ */ s(u, { className: o(e, i), id: t.id, ...n, children: [
|
|
27
27
|
/* @__PURE__ */ r(v, {}),
|
|
28
28
|
/* @__PURE__ */ r(N, {}),
|
|
29
29
|
/* @__PURE__ */ r(w, { asChild: !0, children: /* @__PURE__ */ r(
|
|
30
30
|
_,
|
|
31
31
|
{
|
|
32
|
-
onClick:
|
|
33
|
-
className:
|
|
32
|
+
onClick: a,
|
|
33
|
+
className: o(`${e}__close`),
|
|
34
34
|
"aria-label": "Close",
|
|
35
35
|
"data-testid": "drawer-close",
|
|
36
|
-
variant: g.
|
|
36
|
+
variant: g.tertiary,
|
|
37
37
|
children: /* @__PURE__ */ r(y, {})
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
|
-
|
|
40
|
+
m
|
|
41
41
|
] })
|
|
42
42
|
] })
|
|
43
43
|
}
|
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import c from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as p, px as a } from "../../utils/index.js";
|
|
5
|
+
import u from "../Button/Button.js";
|
|
6
|
+
import N from "../IconButton/IconButton.js";
|
|
7
|
+
import v from "../../assets/chevronRight.svg.js";
|
|
8
|
+
import { ButtonVariants as h } from "../Button/types.js";
|
|
9
|
+
import b from "../../assets/close.svg.js";
|
|
10
|
+
const P = ({ id: e, className: s, onRemove: o, label: r }) => /* @__PURE__ */ m("div", { className: c(`${a}-tag`, `${a}-button`, s), "aria-label": "Close Tag", children: [
|
|
11
|
+
/* @__PURE__ */ t("div", { className: `${a}-tag__label`, children: r }),
|
|
12
|
+
/* @__PURE__ */ t("div", { onClick: () => o(r), className: `${a}-tag__button`, "data-testid": `${e}-item-close-button`, children: /* @__PURE__ */ t(N, { className: `${a}-tag__button--close`, children: /* @__PURE__ */ t(b, {}) }) })
|
|
13
|
+
] }), C = f(
|
|
14
|
+
({ className: e, children: s, clearAllLabel: o = "Clear All", onClear: r, ...i }, d) => {
|
|
15
|
+
const l = "tags-list", { className: g, ...$ } = p(i, "TagsList"), { id: n } = i;
|
|
11
16
|
return /* @__PURE__ */ m(
|
|
12
17
|
"div",
|
|
13
18
|
{
|
|
14
|
-
className:
|
|
15
|
-
|
|
16
|
-
...
|
|
17
|
-
"data-testid": `${
|
|
18
|
-
ref:
|
|
19
|
+
className: c(`${a}-${l}`, g, e),
|
|
20
|
+
...$,
|
|
21
|
+
...i,
|
|
22
|
+
"data-testid": `${l}-${n}`,
|
|
23
|
+
ref: d,
|
|
19
24
|
children: [
|
|
20
|
-
|
|
21
|
-
Array.isArray(
|
|
22
|
-
|
|
25
|
+
s,
|
|
26
|
+
Array.isArray(s) && s.length > 0 && /* @__PURE__ */ m(
|
|
27
|
+
u,
|
|
23
28
|
{
|
|
24
|
-
onClick:
|
|
25
|
-
"data-testid": `${
|
|
26
|
-
className: `${a}-${
|
|
27
|
-
"aria-label":
|
|
28
|
-
variant:
|
|
29
|
+
onClick: r,
|
|
30
|
+
"data-testid": `${n}-clear-all-button`,
|
|
31
|
+
className: `${a}-${l}--clear`,
|
|
32
|
+
"aria-label": o,
|
|
33
|
+
variant: h.tertiary,
|
|
29
34
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ t("div", { className: `${a}-left-arrow`, children: /* @__PURE__ */ t(v, {}) }),
|
|
36
|
+
/* @__PURE__ */ t("div", { className: `${a}-label`, children: o })
|
|
32
37
|
]
|
|
33
38
|
}
|
|
34
39
|
)
|
|
@@ -37,7 +42,8 @@ const u = p(
|
|
|
37
42
|
);
|
|
38
43
|
}
|
|
39
44
|
);
|
|
40
|
-
|
|
45
|
+
C.displayName = "Tags";
|
|
41
46
|
export {
|
|
42
|
-
|
|
47
|
+
P as Tag,
|
|
48
|
+
C as default
|
|
43
49
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export { default as ViewingsList, type ViewingsListProps } from './patterns/View
|
|
|
35
35
|
export { default as Modal, type ModalProps } from './components/Modal/Modal';
|
|
36
36
|
export { default as Drawer } from './components/Drawer/Drawer';
|
|
37
37
|
export { default as Pagination, type PaginationProps, type PaginationOption, type PaginationOptionValue, } from './components/Pagination/Pagination';
|
|
38
|
-
export { default as TagsList } from './components/Tags/Tags';
|
|
38
|
+
export { default as TagsList, Tag, type TagsListProps, type TagProps } from './components/Tags/Tags';
|
|
39
39
|
export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './patterns/ViewingsList/StatefulViewingsList';
|
|
40
40
|
export * from './components/Text';
|
|
41
41
|
export * from './components/TextSymbol';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidati
|
|
|
2
2
|
import { default as S } from "./assets/account_circle.svg.js";
|
|
3
3
|
import { default as h } from "./assets/arrowPrev.svg.js";
|
|
4
4
|
import { default as I } from "./assets/calendar.svg.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as b } from "./assets/calendarAlt.svg.js";
|
|
6
6
|
import { default as V } from "./assets/chevronDown.svg.js";
|
|
7
7
|
import { default as A } from "./assets/chevronNext.svg.js";
|
|
8
8
|
import { default as w } from "./assets/chevronRight.svg.js";
|
|
@@ -29,7 +29,7 @@ import { default as ne } from "./assets/icon-green-circle.svg.js";
|
|
|
29
29
|
import { default as ce } from "./assets/icon-red-circle.svg.js";
|
|
30
30
|
import { default as Se } from "./pages/Page.js";
|
|
31
31
|
import { usePendingState as he } from "./utils/hooks.js";
|
|
32
|
-
import { SSRMediaQuery as Ie, ssrMediaQueryStyle as
|
|
32
|
+
import { SSRMediaQuery as Ie, ssrMediaQueryStyle as Te } from "./providers/SeldonProvider/utils.js";
|
|
33
33
|
import { AuctionStatus as Be, LotStatus as Ve, SupportedLanguages as ke } from "./types/commonTypes.js";
|
|
34
34
|
import { default as ve } from "./components/Button/Button.js";
|
|
35
35
|
import { ButtonVariants as Fe } from "./components/Button/types.js";
|
|
@@ -55,106 +55,106 @@ import { default as gt } from "./components/Search/Search.js";
|
|
|
55
55
|
import { default as Ct } from "./components/Select/Select.js";
|
|
56
56
|
import { SelectVariants as Lt } from "./components/Select/types.js";
|
|
57
57
|
import { default as Pt } from "./components/SplitPanel/SplitPanel.js";
|
|
58
|
-
import { default as
|
|
58
|
+
import { default as Tt } from "./patterns/Subscribe/Subscribe.js";
|
|
59
59
|
import { SubscriptionState as Bt } from "./patterns/Subscribe/types.js";
|
|
60
60
|
import { default as kt } from "./patterns/Social/Social.js";
|
|
61
61
|
import { default as vt } from "./patterns/ViewingsList/ViewingsList.js";
|
|
62
62
|
import { default as Ft } from "./components/Modal/Modal.js";
|
|
63
63
|
import { default as Mt } from "./components/Drawer/Drawer.js";
|
|
64
64
|
import { default as Ht } from "./components/Pagination/Pagination.js";
|
|
65
|
-
import {
|
|
66
|
-
import { default as
|
|
67
|
-
import { TextVariants as
|
|
68
|
-
import { default as
|
|
69
|
-
import { TextSymbolVariants as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { AccordionItemVariant as
|
|
74
|
-
import { default as
|
|
75
|
-
import { AuthState as
|
|
76
|
-
import { default as
|
|
65
|
+
import { Tag as Rt, default as Gt } from "./components/Tags/Tags.js";
|
|
66
|
+
import { default as Ut } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
67
|
+
import { TextVariants as Wt } from "./components/Text/types.js";
|
|
68
|
+
import { default as Yt } from "./components/Text/Text.js";
|
|
69
|
+
import { TextSymbolVariants as zt } from "./components/TextSymbol/types.js";
|
|
70
|
+
import { default as qt } from "./components/TextSymbol/TextSymbol.js";
|
|
71
|
+
import { default as Kt } from "./components/Accordion/Accordion.js";
|
|
72
|
+
import { default as _t } from "./components/Accordion/AccordionItem.js";
|
|
73
|
+
import { AccordionItemVariant as eo, AccordionVariants as to } from "./components/Accordion/types.js";
|
|
74
|
+
import { default as ro } from "./patterns/UserManagement/UserManagement.js";
|
|
75
|
+
import { AuthState as fo } from "./patterns/UserManagement/types.js";
|
|
76
|
+
import { default as lo } from "./components/Breadcrumb/Breadcrumb.js";
|
|
77
77
|
import "react/jsx-runtime";
|
|
78
78
|
import "./node_modules/classnames/index.js";
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { HeightUnits as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
79
|
+
import { default as po } from "./components/Dropdown/Dropdown.js";
|
|
80
|
+
import { default as xo } from "./components/Video/Video.js";
|
|
81
|
+
import { default as no } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
82
|
+
import { default as co } from "./components/ContentPeek/ContentPeek.js";
|
|
83
|
+
import { HeightUnits as So } from "./components/ContentPeek/utils.js";
|
|
84
|
+
import { default as ho } from "./components/Collapsible/Collapsible.js";
|
|
85
|
+
import { default as Io } from "./components/Collapsible/CollapsibleContent.js";
|
|
86
86
|
import { default as bo } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
87
|
-
import { SeldonProvider as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { DetailListAlignment as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { CountdownVariants as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { BidMessageVariants as
|
|
87
|
+
import { SeldonProvider as Vo } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
88
|
+
import { default as Ao } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
89
|
+
import { default as wo } from "./components/Carousel/Carousel.js";
|
|
90
|
+
import { default as yo } from "./components/Carousel/CarouselContent.js";
|
|
91
|
+
import { default as Do } from "./components/Carousel/CarouselItem.js";
|
|
92
|
+
import { default as No } from "./components/Carousel/CarouselDots.js";
|
|
93
|
+
import { default as Go } from "./components/Detail/Detail.js";
|
|
94
|
+
import { default as Uo } from "./patterns/DetailList/DetailList.js";
|
|
95
|
+
import { DetailListAlignment as Wo } from "./patterns/DetailList/types.js";
|
|
96
|
+
import { default as Yo } from "./components/PinchZoom/PinchZoom.js";
|
|
97
|
+
import { default as zo } from "./components/Tabs/TabsContainer.js";
|
|
98
|
+
import { default as qo } from "./components/Tabs/TabsContent.js";
|
|
99
|
+
import { default as Ko } from "./components/SeldonImage/SeldonImage.js";
|
|
100
|
+
import { default as _o } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
101
|
+
import { default as er } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
102
|
+
import { default as or } from "./patterns/FilterMenu/FilterMenu.js";
|
|
103
|
+
import { default as ar } from "./components/Filter/Filter.js";
|
|
104
|
+
import { default as sr } from "./components/Filter/FilterInput.js";
|
|
105
|
+
import { default as dr } from "./components/Filter/FilterHeader.js";
|
|
106
|
+
import { default as pr } from "./components/Countdown/Countdown.js";
|
|
107
|
+
import { CountdownVariants as xr } from "./components/Countdown/types.js";
|
|
108
|
+
import { default as nr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
109
|
+
import { default as cr } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
110
|
+
import { default as Sr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
111
|
+
import { BidMessageVariants as hr, BidStatusEnum as Pr } from "./patterns/BidSnapshot/types.js";
|
|
112
112
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
Kt as Accordion,
|
|
114
|
+
_t as AccordionItem,
|
|
115
|
+
eo as AccordionItemVariant,
|
|
116
|
+
to as AccordionVariants,
|
|
117
117
|
S as AccountCircle,
|
|
118
118
|
h as ArrowPrev,
|
|
119
119
|
Be as AuctionStatus,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
fo as AuthState,
|
|
121
|
+
Sr as BidMessage,
|
|
122
|
+
hr as BidMessageVariants,
|
|
123
|
+
cr as BidSnapshot,
|
|
124
|
+
Pr as BidStatusEnum,
|
|
125
|
+
lo as Breadcrumb,
|
|
126
126
|
ve as Button,
|
|
127
127
|
Fe as ButtonVariants,
|
|
128
128
|
I as Calendar,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
b as CalendarAlt,
|
|
130
|
+
wo as Carousel,
|
|
131
|
+
yo as CarouselContent,
|
|
132
|
+
No as CarouselDots,
|
|
133
|
+
Do as CarouselItem,
|
|
134
134
|
V as ChevronDown,
|
|
135
135
|
A as ChevronNext,
|
|
136
136
|
w as ChevronRight,
|
|
137
137
|
y as Close,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
ho as Collapsible,
|
|
139
|
+
Io as CollapsibleContent,
|
|
140
140
|
bo as CollapsibleTrigger,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
co as ContentPeek,
|
|
142
|
+
So as ContentPeekHeightUnits,
|
|
143
|
+
pr as Countdown,
|
|
144
|
+
xr as CountdownVariants,
|
|
145
|
+
Go as Detail,
|
|
146
|
+
Uo as DetailList,
|
|
147
|
+
Wo as DetailListAlignment,
|
|
148
148
|
Mt as Drawer,
|
|
149
|
-
|
|
149
|
+
po as Dropdown,
|
|
150
150
|
He as ErrorBoundary,
|
|
151
151
|
G as Facebook,
|
|
152
152
|
D as Favorite,
|
|
153
153
|
N as FavoriteOutline,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
ar as Filter,
|
|
155
|
+
dr as FilterHeader,
|
|
156
|
+
sr as FilterInput,
|
|
157
|
+
or as FilterMenu,
|
|
158
158
|
Re as Footer,
|
|
159
159
|
U as FooterInstagram,
|
|
160
160
|
z as FooterWeChat,
|
|
@@ -167,7 +167,7 @@ export {
|
|
|
167
167
|
Me as IconButton,
|
|
168
168
|
$e as Input,
|
|
169
169
|
q as Instagram,
|
|
170
|
-
|
|
170
|
+
no as LanguageSelector,
|
|
171
171
|
tt as Link,
|
|
172
172
|
ft as LinkBlock,
|
|
173
173
|
lt as LinkList,
|
|
@@ -181,24 +181,24 @@ export {
|
|
|
181
181
|
je as NavigationItem,
|
|
182
182
|
Ze as NavigationItemTrigger,
|
|
183
183
|
Je as NavigationList,
|
|
184
|
-
|
|
184
|
+
nr as ObjectTile,
|
|
185
185
|
f as PaddingTokens,
|
|
186
186
|
Se as Page,
|
|
187
|
-
|
|
187
|
+
Ao as PageContentWrapper,
|
|
188
188
|
Ht as Pagination,
|
|
189
189
|
ee as PhillipsLogo,
|
|
190
|
-
|
|
190
|
+
Yo as PinchZoom,
|
|
191
191
|
oe as Plus,
|
|
192
192
|
ae as React,
|
|
193
193
|
ce as RedCircle,
|
|
194
194
|
Y as Reddit,
|
|
195
195
|
mt as Row,
|
|
196
196
|
Ie as SSRMediaQuery,
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
_o as SaleHeaderBanner,
|
|
198
|
+
er as SaleHeaderBrowseAuctions,
|
|
199
199
|
gt as Search,
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
Ko as SeldonImage,
|
|
201
|
+
Vo as SeldonProvider,
|
|
202
202
|
Ct as Select,
|
|
203
203
|
Lt as SelectVariants,
|
|
204
204
|
se as Share,
|
|
@@ -206,19 +206,20 @@ export {
|
|
|
206
206
|
s as SpacingTokens,
|
|
207
207
|
Pt as SplitPanel,
|
|
208
208
|
de as Spotify,
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
Ut as StatefulViewingsList,
|
|
210
|
+
Tt as Subscribe,
|
|
211
211
|
Bt as SubscriptionState,
|
|
212
212
|
ke as SupportedLanguages,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
Rt as
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
213
|
+
zo as TabsContainer,
|
|
214
|
+
qo as TabsContent,
|
|
215
|
+
Rt as Tag,
|
|
216
|
+
Gt as TagsList,
|
|
217
|
+
Yt as Text,
|
|
218
|
+
zt as TextSymbolVariants,
|
|
219
|
+
qt as TextSymbols,
|
|
220
|
+
Wt as TextVariants,
|
|
221
|
+
ro as UserManagement,
|
|
222
|
+
xo as Video,
|
|
222
223
|
vt as ViewingsList,
|
|
223
224
|
pe as WeChat,
|
|
224
225
|
xe as Youtube,
|
|
@@ -231,7 +232,7 @@ export {
|
|
|
231
232
|
i as getCommonProps,
|
|
232
233
|
n as noOp,
|
|
233
234
|
g as px,
|
|
234
|
-
|
|
235
|
+
Te as ssrMediaQueryStyle,
|
|
235
236
|
c as useNormalizedInputProps,
|
|
236
237
|
he as usePendingState
|
|
237
238
|
};
|