@phillips/seldon 1.234.1 → 1.235.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.
@@ -9,7 +9,7 @@ const x = N(
9
9
  const { className: l, ...p } = h(t, "Detail"), i = e === "sm" ? a.labelSmall : e === "lg" ? a.labelLarge : a.labelMedium, u = e === "sm" ? a.bodySmall : e === "lg" ? a.bodyLarge : a.labelMedium;
10
10
  return /* @__PURE__ */ n("div", { ...p, className: r(l, c), ...t, ref: f, children: [
11
11
  /* @__PURE__ */ n(
12
- "dt",
12
+ "div",
13
13
  {
14
14
  className: r(`${l}__label-section`, {
15
15
  [`${l}__label--no-wrap`]: !d,
@@ -22,7 +22,7 @@ const x = N(
22
22
  ]
23
23
  }
24
24
  ),
25
- /* @__PURE__ */ s("dd", { className: `${l}__value`, children: /* @__PURE__ */ s(o, { variant: u, children: _ }) })
25
+ /* @__PURE__ */ s("div", { className: `${l}__value`, children: /* @__PURE__ */ s(o, { variant: u, children: _ }) })
26
26
  ] });
27
27
  }
28
28
  );
@@ -2,7 +2,7 @@ import { ComponentProps } from 'react';
2
2
  import { DetailListAlignment } from './types';
3
3
  import { DetailComponent } from '../../components/Detail';
4
4
  import { DetailVariants } from '../../components/Detail/types';
5
- export interface DetailListProps extends ComponentProps<'dl'> {
5
+ export interface DetailListProps extends ComponentProps<'div'> {
6
6
  /**
7
7
  * Determines whether each Details' label and value are aligned in columns or justified
8
8
  */
@@ -30,5 +30,5 @@ export interface DetailListProps extends ComponentProps<'dl'> {
30
30
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/patterns-detaillist--overview)
31
31
  *
32
32
  */
33
- declare const DetailList: import('react').ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & import('react').RefAttributes<HTMLDListElement>>;
33
+ declare const DetailList: import('react').ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
34
34
  export default DetailList;
@@ -5,17 +5,17 @@ import { getCommonProps as N, px as s } from "../../utils/index.js";
5
5
  import { DetailListAlignment as e } from "./types.js";
6
6
  import { getDetailKey as A } from "./utils.js";
7
7
  const L = j(
8
- ({ alignment: o = e.justified, className: c, children: t, hasSeparators: i = !1, variant: a = "md", ...l }, d) => {
9
- const { className: m, ...n } = N(l, "DetailList"), u = Array.isArray(t) ? t : [t];
8
+ ({ alignment: o = e.justified, className: c, children: t, hasSeparators: m = !1, variant: a = "md", ...l }, d) => {
9
+ const { className: i, ...n } = N(l, "DetailList"), u = Array.isArray(t) ? t : [t];
10
10
  return /* @__PURE__ */ f(
11
- "dl",
11
+ "div",
12
12
  {
13
13
  ...n,
14
- className: p(m, c, {
15
- [`${s}-has-separators`]: i,
14
+ className: p(i, c, {
15
+ [`${s}-has-separators`]: m,
16
16
  [`${s}-columns`]: o === e.columns,
17
17
  [`${s}-justified`]: o === e.justified,
18
- [`${m}--${a}`]: a
18
+ [`${i}--${a}`]: a
19
19
  }),
20
20
  ...l,
21
21
  ref: d,
@@ -23,8 +23,8 @@ const L = j(
23
23
  (r, $) => y(r) ? /* @__PURE__ */ f(
24
24
  "div",
25
25
  {
26
- className: p(`${m}-wrapper`, {
27
- [`${s}-has-separators`]: i,
26
+ className: p(`${i}-wrapper`, {
27
+ [`${s}-has-separators`]: m,
28
28
  [`${s}-columns`]: o === e.columns,
29
29
  [`${s}-justified`]: o === e.justified
30
30
  }),
@@ -1,7 +1,7 @@
1
1
  import { DetailListProps } from './DetailList';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('react').ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & import('react').RefAttributes<HTMLDListElement>>;
4
+ component: import('react').ForwardRefExoticComponent<Omit<DetailListProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
5
5
  };
6
6
  export default meta;
7
7
  export declare const Playground: () => import("react/jsx-runtime").JSX.Element;
@@ -45,7 +45,6 @@ import "../Tags/Tags.js";
45
45
  import "../Text/Text.js";
46
46
  import "../TextSymbol/TextSymbol.js";
47
47
  import "../Video/Video.js";
48
- import "../../patterns/DetailList/DetailList.js";
49
48
  import "../../patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
50
49
  import "../../patterns/HeroBanner/HeroBanner.js";
51
50
  import "../../patterns/TextBanner/TextBanner.js";
@@ -59,6 +58,7 @@ import "../../patterns/ViewingsList/StatefulViewingsList.js";
59
58
  import "../../patterns/ViewingsList/ViewingsList.js";
60
59
  import "../ComboBox/ComboBox.js";
61
60
  import "../ComposedModal/ComposedModal.js";
61
+ import "../DetailList/DetailList.js";
62
62
  import "../ExitGateCard/ExitGateCard.js";
63
63
  import "../Loader/Loader.js";
64
64
  import "../PageContentWrapper/PageContentWrapper.js";
@@ -1,4 +1,22 @@
1
1
  export declare enum TextVariants {
2
+ displayMedium = "displayMedium",
3
+ displaySmall = "displaySmall",
4
+ headingLarge = "headingLarge",
5
+ headingMedium = "headingMedium",
6
+ headingSmall = "headingSmall",
7
+ headingExtraSmall = "headingExtraSmall",
8
+ bodyLarge = "bodyLarge",
9
+ bodyMedium = "bodyMedium",
10
+ bodySmall = "bodySmall",
11
+ labelLarge = "labelLarge",
12
+ labelMedium = "labelMedium",
13
+ labelSmall = "labelSmall",
14
+ linkStylised = "linkStylised",
15
+ linkLarge = "linkLarge",
16
+ linkMedium = "linkMedium",
17
+ linkSmall = "linkSmall",
18
+ badgeSmall = "badgeSmall",
19
+ badgeMedium = "badgeMedium",
2
20
  /** @deprecated Use headingLarge instead */
3
21
  blockquote = "blockquote",
4
22
  /** @deprecated Use headingLarge instead */
@@ -48,25 +66,7 @@ export declare enum TextVariants {
48
66
  /** @deprecated Use displaySmall instead */
49
67
  snwHeadingHero1 = "snwHeadingHero1",
50
68
  /** @deprecated Use headingLarge instead */
51
- snwHeadingHero2 = "snwHeadingHero2",
52
- displayMedium = "displayMedium",
53
- displaySmall = "displaySmall",
54
- headingLarge = "headingLarge",
55
- headingMedium = "headingMedium",
56
- headingSmall = "headingSmall",
57
- headingExtraSmall = "headingExtraSmall",
58
- bodyLarge = "bodyLarge",
59
- bodyMedium = "bodyMedium",
60
- bodySmall = "bodySmall",
61
- labelLarge = "labelLarge",
62
- labelMedium = "labelMedium",
63
- labelSmall = "labelSmall",
64
- linkStylised = "linkStylised",
65
- linkLarge = "linkLarge",
66
- linkMedium = "linkMedium",
67
- linkSmall = "linkSmall",
68
- badgeSmall = "badgeSmall",
69
- badgeMedium = "badgeMedium"
69
+ snwHeadingHero2 = "snwHeadingHero2"
70
70
  }
71
71
  export declare enum TextAlignments {
72
72
  left = "left",
@@ -1,4 +1,4 @@
1
- var d = /* @__PURE__ */ ((l) => (l.blockquote = "blockquote", l.heading1 = "heading1", l.heading2 = "heading2", l.heading3 = "heading3", l.heading4 = "heading4", l.heading5 = "heading5", l.title1 = "title1", l.title2 = "title2", l.title3 = "title3", l.title4 = "title4", l.body1 = "body1", l.body2 = "body2", l.body3 = "body3", l.string1 = "string1", l.string2 = "string2", l.string3 = "string3", l.button = "button", l.email = "email", l.label = "label", l.link = "link", l.badge = "badge", l.snwFlyoutLink = "snwFlyoutLink", l.snwHeaderLink = "snwHeaderLink", l.snwHeadingHero1 = "snwHeadingHero1", l.snwHeadingHero2 = "snwHeadingHero2", l.displayMedium = "displayMedium", l.displaySmall = "displaySmall", l.headingLarge = "headingLarge", l.headingMedium = "headingMedium", l.headingSmall = "headingSmall", l.headingExtraSmall = "headingExtraSmall", l.bodyLarge = "bodyLarge", l.bodyMedium = "bodyMedium", l.bodySmall = "bodySmall", l.labelLarge = "labelLarge", l.labelMedium = "labelMedium", l.labelSmall = "labelSmall", l.linkStylised = "linkStylised", l.linkLarge = "linkLarge", l.linkMedium = "linkMedium", l.linkSmall = "linkSmall", l.badgeSmall = "badgeSmall", l.badgeMedium = "badgeMedium", l))(d || {}), g = /* @__PURE__ */ ((l) => (l.left = "left", l.center = "center", l.right = "right", l))(g || {});
1
+ var d = /* @__PURE__ */ ((l) => (l.displayMedium = "displayMedium", l.displaySmall = "displaySmall", l.headingLarge = "headingLarge", l.headingMedium = "headingMedium", l.headingSmall = "headingSmall", l.headingExtraSmall = "headingExtraSmall", l.bodyLarge = "bodyLarge", l.bodyMedium = "bodyMedium", l.bodySmall = "bodySmall", l.labelLarge = "labelLarge", l.labelMedium = "labelMedium", l.labelSmall = "labelSmall", l.linkStylised = "linkStylised", l.linkLarge = "linkLarge", l.linkMedium = "linkMedium", l.linkSmall = "linkSmall", l.badgeSmall = "badgeSmall", l.badgeMedium = "badgeMedium", l.blockquote = "blockquote", l.heading1 = "heading1", l.heading2 = "heading2", l.heading3 = "heading3", l.heading4 = "heading4", l.heading5 = "heading5", l.title1 = "title1", l.title2 = "title2", l.title3 = "title3", l.title4 = "title4", l.body1 = "body1", l.body2 = "body2", l.body3 = "body3", l.string1 = "string1", l.string2 = "string2", l.string3 = "string3", l.button = "button", l.email = "email", l.label = "label", l.link = "link", l.badge = "badge", l.snwFlyoutLink = "snwFlyoutLink", l.snwHeaderLink = "snwHeaderLink", l.snwHeadingHero1 = "snwHeadingHero1", l.snwHeadingHero2 = "snwHeadingHero2", l))(d || {}), g = /* @__PURE__ */ ((l) => (l.left = "left", l.center = "center", l.right = "right", l))(g || {});
2
2
  export {
3
3
  g as TextAlignments,
4
4
  d as TextVariants
@@ -17,9 +17,8 @@ const u = (e = t.body1) => {
17
17
  }
18
18
  }, i = (e = t.body1) => {
19
19
  if (e === t.blockquote) return "blockquote";
20
- if (e.includes("body") || e.includes("string") || e.includes("title")) return "span";
21
- if (e.includes("label"))
22
- return "label";
20
+ if (e.includes("body") || e.includes("string") || e.includes("title") || e.includes("label"))
21
+ return "span";
23
22
  if (e.includes("heading") || e.includes("display"))
24
23
  switch (e) {
25
24
  case t.headingLarge:
package/dist/index.d.ts CHANGED
@@ -41,7 +41,6 @@ export { Tag, default as TagsList, type TagProps, type TagsListProps } from './c
41
41
  export * from './components/Text';
42
42
  export * from './components/TextSymbol';
43
43
  export { default as Video, type VideoProps } from './components/Video/Video';
44
- export * from './patterns/DetailList';
45
44
  export * from './patterns/FavoritesCollectionTile';
46
45
  export { default as HeroBanner, type HeroBannerProps } from './patterns/HeroBanner/HeroBanner';
47
46
  export { default as TextBanner, type TextBannerProps } from './patterns/TextBanner/TextBanner';
@@ -59,13 +58,13 @@ export * from './components/Carousel';
59
58
  export * from './components/ComboBox';
60
59
  export * from './components/ComposedModal';
61
60
  export * from './components/Detail';
61
+ export * from './components/DetailList';
62
62
  export * from './components/ExitGateCard';
63
63
  export * from './components/Loader';
64
64
  export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
65
65
  export * from './components/PinchZoom';
66
66
  export * from './components/SeldonImage';
67
67
  export * from './components/Tabs';
68
- export * from './patterns/DetailList';
69
68
  export * from './patterns/FiltersInline';
70
69
  export * from './patterns/SaleCard';
71
70
  export * from './patterns/SaleHeaderBanner';
package/dist/index.js CHANGED
@@ -57,24 +57,24 @@ import { default as Bt } from "./components/Text/Text.js";
57
57
  import { TextSymbolVariants as It } from "./components/TextSymbol/types.js";
58
58
  import { default as At } from "./components/TextSymbol/TextSymbol.js";
59
59
  import { default as bt } from "./components/Video/Video.js";
60
- import { default as Dt } from "./patterns/DetailList/DetailList.js";
61
- import { DetailListAlignment as vt } from "./patterns/DetailList/types.js";
62
- import { default as kt } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
63
- import { default as Ht } from "./patterns/HeroBanner/HeroBanner.js";
64
- import { default as Nt } from "./patterns/TextBanner/TextBanner.js";
65
- import { default as Gt } from "./patterns/LanguageSelector/LanguageSelector.js";
66
- import { default as Ut } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
67
- import { default as Ot } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
68
- import { default as Qt } from "./patterns/Social/Social.js";
69
- import { default as Yt } from "./patterns/Subscribe/Subscribe.js";
70
- import { SubscriptionState as qt } from "./patterns/Subscribe/types.js";
71
- import { AuthState as Kt } from "./patterns/UserManagement/types.js";
72
- import { default as _t } from "./patterns/UserManagement/UserManagement.js";
73
- import { default as eo } from "./patterns/ViewingsList/StatefulViewingsList.js";
74
- import { default as oo } from "./patterns/ViewingsList/ViewingsList.js";
75
- import { SeldonProvider as ao } from "./providers/SeldonProvider/SeldonProvider.js";
76
- import { default as so } from "./components/ComboBox/ComboBox.js";
77
- import { default as mo } from "./components/ComposedModal/ComposedModal.js";
60
+ import { default as Dt } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
61
+ import { default as vt } from "./patterns/HeroBanner/HeroBanner.js";
62
+ import { default as kt } from "./patterns/TextBanner/TextBanner.js";
63
+ import { default as Ht } from "./patterns/LanguageSelector/LanguageSelector.js";
64
+ import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
65
+ import { default as Gt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
66
+ import { default as Ut } from "./patterns/Social/Social.js";
67
+ import { default as Ot } from "./patterns/Subscribe/Subscribe.js";
68
+ import { SubscriptionState as Qt } from "./patterns/Subscribe/types.js";
69
+ import { AuthState as Yt } from "./patterns/UserManagement/types.js";
70
+ import { default as qt } from "./patterns/UserManagement/UserManagement.js";
71
+ import { default as Kt } from "./patterns/ViewingsList/StatefulViewingsList.js";
72
+ import { default as _t } from "./patterns/ViewingsList/ViewingsList.js";
73
+ import { SeldonProvider as eo } from "./providers/SeldonProvider/SeldonProvider.js";
74
+ import { default as oo } from "./components/ComboBox/ComboBox.js";
75
+ import { default as ao } from "./components/ComposedModal/ComposedModal.js";
76
+ import { default as so } from "./components/DetailList/DetailList.js";
77
+ import { DetailListAlignment as mo } from "./components/DetailList/types.js";
78
78
  import { default as uo } from "./components/ExitGateCard/ExitGateCard.js";
79
79
  import { default as xo } from "./components/Loader/Loader.js";
80
80
  import { default as go } from "./components/PageContentWrapper/PageContentWrapper.js";
@@ -126,7 +126,7 @@ export {
126
126
  Ro as AddToCalendar,
127
127
  zo as Article,
128
128
  V as AuctionStatus,
129
- Kt as AuthState,
129
+ Yt as AuthState,
130
130
  Lr as BidMessage,
131
131
  Vr as BidMessageVariants,
132
132
  Pr as BidSnapshot,
@@ -142,8 +142,8 @@ export {
142
142
  oe as Collapsible,
143
143
  ae as CollapsibleContent,
144
144
  se as CollapsibleTrigger,
145
- so as ComboBox,
146
- mo as ComposedModal,
145
+ oo as ComboBox,
146
+ ao as ComposedModal,
147
147
  de as ContentPeek,
148
148
  pe as ContentPeekHeightUnits,
149
149
  Wo as Countdown,
@@ -153,15 +153,15 @@ export {
153
153
  Zo as DescriptiveRadioButton,
154
154
  Jo as DescriptiveRadioButtonGroup,
155
155
  ie as Detail,
156
- Dt as DetailList,
157
- vt as DetailListAlignment,
156
+ so as DetailList,
157
+ mo as DetailListAlignment,
158
158
  ne as DetailVariants,
159
159
  Xo as Divider,
160
160
  ce as Drawer,
161
161
  Ce as Dropdown,
162
162
  Be as ErrorBoundary,
163
163
  uo as ExitGateCard,
164
- kt as FavoritesCollectionTile,
164
+ Dt as FavoritesCollectionTile,
165
165
  $o as FavoritingTileButton,
166
166
  tr as Filter,
167
167
  So as FilterButton,
@@ -176,11 +176,11 @@ export {
176
176
  Ae as GridItem,
177
177
  be as GridItemAlign,
178
178
  Eo as Header,
179
- Ht as HeroBanner,
179
+ vt as HeroBanner,
180
180
  Q as Icon,
181
181
  w as IconButton,
182
182
  De as Input,
183
- Gt as LanguageSelector,
183
+ Ht as LanguageSelector,
184
184
  ve as Link,
185
185
  He as LinkBlock,
186
186
  Ne as LinkList,
@@ -211,19 +211,19 @@ export {
211
211
  bo as SaleCardActions,
212
212
  Do as SaleCardImageDisplay,
213
213
  Fo as SaleCardVariants,
214
- Ut as SaleHeaderBanner,
215
- Ot as SaleHeaderBrowseAuctions,
214
+ Nt as SaleHeaderBanner,
215
+ Gt as SaleHeaderBrowseAuctions,
216
216
  et as Search,
217
217
  ot as SeldonImage,
218
- ao as SeldonProvider,
218
+ eo as SeldonProvider,
219
219
  at as Select,
220
220
  st as SelectVariants,
221
- Qt as Social,
221
+ Ut as Social,
222
222
  f as SpacingTokens,
223
223
  dt as SplitPanel,
224
- eo as StatefulViewingsList,
225
- Yt as Subscribe,
226
- qt as SubscriptionState,
224
+ Kt as StatefulViewingsList,
225
+ Ot as Subscribe,
226
+ Qt as SubscriptionState,
227
227
  y as SupportedLanguages,
228
228
  pt as TabsContainer,
229
229
  it as TabsContent,
@@ -232,16 +232,16 @@ export {
232
232
  Bt as Text,
233
233
  St as TextAlignments,
234
234
  ur as TextArea,
235
- Nt as TextBanner,
235
+ kt as TextBanner,
236
236
  It as TextSymbolVariants,
237
237
  At as TextSymbols,
238
238
  Ct as TextVariants,
239
239
  xr as Toast,
240
240
  gr as ToastProvider,
241
- _t as UserManagement,
241
+ qt as UserManagement,
242
242
  bt as Video,
243
243
  ho as ViewingDetails,
244
- oo as ViewingsList,
244
+ _t as ViewingsList,
245
245
  s as defaultYear,
246
246
  l as emailValidation,
247
247
  d as encodeURLSearchParams,
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
- import { DetailListProps } from '../DetailList/index';
2
+ import { DetailListProps } from '../../components/DetailList/index';
3
3
  import { DetailVariants } from '../../components/Detail/index';
4
4
  import { LotStatus, SupportedLanguages } from '../../types/commonTypes';
5
5
  import { BidStatusEnum } from './types';
@@ -2,7 +2,7 @@ import { jsxs as M, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as U, isValidElement as X, cloneElement as Y } from "react";
3
3
  import Z from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as O, findChildrenOfType as aa, findChildrenExcludingTypes as ea } from "../../utils/index.js";
5
- import oa from "../DetailList/DetailList.js";
5
+ import oa from "../../components/DetailList/DetailList.js";
6
6
  import f from "../../components/Detail/Detail.js";
7
7
  import { DetailVariants as sa } from "../../components/Detail/types.js";
8
8
  import { LotStatus as l, SupportedLanguages as ta } from "../../types/commonTypes.js";
@@ -4,7 +4,7 @@ import I from "../../node_modules/classnames/index.js";
4
4
  import { getCommonProps as L } from "../../utils/index.js";
5
5
  import { TextVariants as l } from "../../components/Text/types.js";
6
6
  import s from "../../components/Text/Text.js";
7
- import R from "../DetailList/DetailList.js";
7
+ import R from "../../components/DetailList/DetailList.js";
8
8
  import W from "../../components/Detail/Detail.js";
9
9
  import { DetailVariants as w } from "../../components/Detail/types.js";
10
10
  import A from "../../components/SeldonImage/SeldonImage.js";
@@ -46,6 +46,7 @@
46
46
  @use 'components/Countdown/countdown';
47
47
  @use 'components/Countdown/duration';
48
48
  @use 'components/Detail/detail';
49
+ @use 'components/DetailList/detailList';
49
50
  @use 'components/PinchZoom/pinchZoom';
50
51
  @use 'components/Tabs/tabs';
51
52
  @use 'components/SeldonImage/seldonImage';
@@ -73,7 +74,6 @@
73
74
  @use 'patterns/ObjectTile/objectTile';
74
75
  @use 'patterns/BidSnapshot/bidSnapshot';
75
76
  @use 'patterns/FilterMenu/filterMenu';
76
- @use 'patterns/DetailList/detailList';
77
77
  @use 'patterns/AccountPageHeader/accountPageHeader';
78
78
  @use 'patterns/FavoritesCollectionTile/favoritesCollectionTile';
79
79
  @use 'patterns/SaleCard/saleCard';
@@ -87,16 +87,6 @@
87
87
  transition:
88
88
  opacity 0.2s ease,
89
89
  background-color 0.2s ease;
90
-
91
- &.#{$px}-icon-button {
92
- transition: background-color 0.2s ease;
93
-
94
- &:hover {
95
- svg {
96
- color: $white-100;
97
- }
98
- }
99
- }
100
90
  }
101
91
 
102
92
  &__dropdown-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.234.1",
3
+ "version": "1.235.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"