@phillips/seldon 1.72.0 → 1.72.2

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.
@@ -1,19 +1,19 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import d from "../../node_modules/classnames/index.js";
3
3
  import { forwardRef as D, useId as P, useState as S, useCallback as f, useEffect as V } from "react";
4
- import { useCarousel as _ } from "./utils.js";
5
- import { getCommonProps as j } from "../../utils/index.js";
6
- const w = D(
7
- ({ className: $, maxDots: l = 7, position: h = "inline", numberOfSlides: N = 0, ...u }, b) => {
8
- const { className: s, ...C } = j(u, "Carousel"), M = P(), { api: e, onSlideChange: n } = _(), [g, v] = S(0), [i, k] = S(
4
+ import { useCarousel as j } from "./utils.js";
5
+ import { getCommonProps as w } from "../../utils/index.js";
6
+ const A = D(
7
+ ({ className: $, maxDots: i = 7, position: h = "inline", numberOfSlides: N = 0, ...u }, b) => {
8
+ const { className: s, ...C } = w(u, "Carousel"), M = P(), { api: e, onSlideChange: n } = j(), [g, v] = S(0), [l, x] = S(
9
9
  Array.from({ length: N }, (t, o) => o)
10
- ), x = f(
10
+ ), k = f(
11
11
  (t) => {
12
12
  e && (e.scrollTo(t, !0), n == null || n(t));
13
13
  },
14
14
  [e, n]
15
15
  ), p = f((t) => {
16
- k(t.scrollSnapList());
16
+ x(t.scrollSnapList());
17
17
  }, []), a = f((t) => {
18
18
  v(t.selectedScrollSnap());
19
19
  }, []), m = f(
@@ -29,11 +29,11 @@ const w = D(
29
29
  };
30
30
  }, [e, p, a, m]);
31
31
  const I = (() => {
32
- if (i.length <= l) return i;
33
- const t = Math.floor(l / 2);
32
+ if (l.length <= i) return l;
33
+ const t = Math.floor(i / 2);
34
34
  let o = Math.max(0, g - t);
35
- const r = Math.min(i.length, o + l);
36
- return r - o < l && (o = Math.max(0, r - l)), i.slice(o, r);
35
+ const r = Math.min(l.length, o + i);
36
+ return r - o < i && (o = Math.max(0, r - i)), l.slice(o, r);
37
37
  })();
38
38
  return /* @__PURE__ */ c(
39
39
  "div",
@@ -46,12 +46,12 @@ const w = D(
46
46
  ...u,
47
47
  ...C,
48
48
  children: /* @__PURE__ */ c("div", { className: `${s}-pagination-container`, children: /* @__PURE__ */ c("div", { className: `${s}-pagination-container-inner`, children: I.map((t, o) => {
49
- const r = i.indexOf(I[o]), y = g === r;
49
+ const r = l.indexOf(I[o]), y = g === r;
50
50
  return /* @__PURE__ */ c(
51
51
  "button",
52
52
  {
53
53
  role: "button",
54
- onClick: () => x(r),
54
+ onClick: () => k(r),
55
55
  className: d(`${s}-pagination-dot-container`),
56
56
  children: /* @__PURE__ */ c(
57
57
  "span",
@@ -62,14 +62,14 @@ const w = D(
62
62
  }
63
63
  )
64
64
  },
65
- `${M}-dot-${o}`
65
+ `${M}-dot-${t}`
66
66
  );
67
67
  }) }) })
68
68
  }
69
69
  );
70
70
  }
71
71
  );
72
- w.displayName = "CarouselDots";
72
+ A.displayName = "CarouselDots";
73
73
  export {
74
- w as default
74
+ A as default
75
75
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { PaddingTokens as f, SpacingTokens as l, defaultYear as p, emailValidation as s, encodeURLSearchParams as m, findChildrenExcludingTypes as d, findChildrenOfType as u, generatePaddingClassName as i, getCommonProps as x, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
1
+ import { PaddingTokens as f, SpacingTokens as l, defaultYear as m, emailValidation as p, encodeURLSearchParams as s, findChildrenExcludingTypes as d, findChildrenOfType as i, generatePaddingClassName as u, getCommonProps as x, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
2
2
  import { default as C } from "./pages/Page.js";
3
3
  import { default as P } from "./components/Button/Button.js";
4
4
  import { ButtonVariants as T } from "./components/Button/types.js";
5
5
  import { default as b } from "./components/IconButton/IconButton.js";
6
- import { default as B } from "./components/ErrorBoundary/ErrorBoundary.js";
7
- import { default as A } from "./site-furniture/Footer/Footer.js";
8
- import { Grid as v } from "./components/Grid/Grid.js";
9
- import { default as y } from "./site-furniture/Header/Header.js";
6
+ import { default as A } from "./components/ErrorBoundary/ErrorBoundary.js";
7
+ import { default as h } from "./site-furniture/Footer/Footer.js";
8
+ import { Grid as N } from "./components/Grid/Grid.js";
9
+ import { default as w } from "./site-furniture/Header/Header.js";
10
10
  import { default as G } from "./components/Navigation/Navigation.js";
11
11
  import { default as H } from "./components/Navigation/NavigationItem/NavigationItem.js";
12
12
  import { default as O } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
@@ -18,22 +18,22 @@ import { LinkVariants as J } from "./components/Link/types.js";
18
18
  import { default as Q } from "./components/LinkBlock/LinkBlock.js";
19
19
  import { default as _ } from "./components/LinkList/LinkList.js";
20
20
  import { default as ee } from "./components/Row/Row.js";
21
- import { default as re } from "./components/GridItem/GridItem.js";
21
+ import { default as te } from "./components/GridItem/GridItem.js";
22
22
  import { GridItemAlign as ae } from "./components/GridItem/types.js";
23
23
  import { default as le } from "./components/Search/Search.js";
24
- import { default as se } from "./components/Select/Select.js";
24
+ import { default as pe } from "./components/Select/Select.js";
25
25
  import { default as de } from "./components/SplitPanel/SplitPanel.js";
26
- import { default as ie } from "./patterns/Subscribe/Subscribe.js";
26
+ import { default as ue } from "./patterns/Subscribe/Subscribe.js";
27
27
  import { SubscriptionState as ne } from "./patterns/Subscribe/types.js";
28
28
  import { default as ce } from "./patterns/Social/Social.js";
29
29
  import { default as Ce } from "./patterns/ViewingsList/ViewingsList.js";
30
30
  import { default as Pe } from "./components/Modal/Modal.js";
31
31
  import { default as Te } from "./components/Drawer/Drawer.js";
32
32
  import { default as be } from "./components/Pagination/Pagination.js";
33
- import { default as Be } from "./patterns/ViewingsList/StatefulViewingsList.js";
34
- import { TextVariants as Ae } from "./components/Text/types.js";
35
- import { default as ve } from "./components/Text/Text.js";
36
- import { TextSymbolVariants as ye } from "./components/TextSymbol/types.js";
33
+ import { default as Ae } from "./patterns/ViewingsList/StatefulViewingsList.js";
34
+ import { TextVariants as he } from "./components/Text/types.js";
35
+ import { default as Ne } from "./components/Text/Text.js";
36
+ import { TextSymbolVariants as we } from "./components/TextSymbol/types.js";
37
37
  import { default as Ge } from "./components/TextSymbol/TextSymbol.js";
38
38
  import { default as He } from "./components/Accordion/Accordion.js";
39
39
  import { default as Oe } from "./components/Accordion/AccordionItem.js";
@@ -48,19 +48,20 @@ import "react";
48
48
  import { default as Xe } from "./components/Dropdown/Dropdown.js";
49
49
  import { default as $e } from "./components/Video/Video.js";
50
50
  import { default as oo } from "./patterns/LanguageSelector/LanguageSelector.js";
51
- import { default as to } from "./components/ContentPeek/ContentPeek.js";
51
+ import { default as ro } from "./components/ContentPeek/ContentPeek.js";
52
52
  import { default as fo } from "./components/Collapsible/Collapsible.js";
53
- import { default as po } from "./components/Collapsible/CollapsibleContent.js";
54
- import { default as mo } from "./components/Collapsible/CollapsibleTrigger.js";
55
- import { SeldonProvider as io } from "./providers/SeldonProvider.js";
53
+ import { default as mo } from "./components/Collapsible/CollapsibleContent.js";
54
+ import { default as so } from "./components/Collapsible/CollapsibleTrigger.js";
55
+ import { SeldonProvider as uo } from "./providers/SeldonProvider.js";
56
56
  import { default as no } from "./components/PageContentWrapper/PageContentWrapper.js";
57
57
  import { default as co } from "./components/Carousel/Carousel.js";
58
58
  import { default as Co } from "./components/Carousel/CarouselContent.js";
59
59
  import { default as Po } from "./components/Carousel/CarouselItem.js";
60
60
  import { default as To } from "./components/Carousel/CarouselDots.js";
61
61
  import { default as bo } from "./components/Detail/Detail.js";
62
- import { default as Bo } from "./patterns/DetailList/DetailList.js";
63
- import { default as Ao } from "./components/PinchZoom/PinchZoom.js";
62
+ import { default as Ao } from "./patterns/DetailList/DetailList.js";
63
+ import { DetailListAlignment as ho } from "./patterns/DetailList/types.js";
64
+ import { default as No } from "./components/PinchZoom/PinchZoom.js";
64
65
  export {
65
66
  He as Accordion,
66
67
  Oe as AccordionItem,
@@ -75,19 +76,20 @@ export {
75
76
  To as CarouselDots,
76
77
  Po as CarouselItem,
77
78
  fo as Collapsible,
78
- po as CollapsibleContent,
79
- mo as CollapsibleTrigger,
80
- to as ContentPeek,
79
+ mo as CollapsibleContent,
80
+ so as CollapsibleTrigger,
81
+ ro as ContentPeek,
81
82
  bo as Detail,
82
- Bo as DetailList,
83
+ Ao as DetailList,
84
+ ho as DetailListAlignment,
83
85
  Te as Drawer,
84
86
  Xe as Dropdown,
85
- B as ErrorBoundary,
86
- A as Footer,
87
- v as Grid,
88
- re as GridItem,
87
+ A as ErrorBoundary,
88
+ h as Footer,
89
+ N as Grid,
90
+ te as GridItem,
89
91
  ae as GridItemAlign,
90
- y as Header,
92
+ w as Header,
91
93
  F as HeroBanner,
92
94
  b as IconButton,
93
95
  Y as Input,
@@ -105,31 +107,31 @@ export {
105
107
  C as Page,
106
108
  no as PageContentWrapper,
107
109
  be as Pagination,
108
- Ao as PinchZoom,
110
+ No as PinchZoom,
109
111
  ee as Row,
110
112
  le as Search,
111
- io as SeldonProvider,
112
- se as Select,
113
+ uo as SeldonProvider,
114
+ pe as Select,
113
115
  ce as Social,
114
116
  l as SpacingTokens,
115
117
  de as SplitPanel,
116
- Be as StatefulViewingsList,
117
- ie as Subscribe,
118
+ Ae as StatefulViewingsList,
119
+ ue as Subscribe,
118
120
  ne as SubscriptionState,
119
121
  qe as SupportedLanguages,
120
- ve as Text,
121
- ye as TextSymbolVariants,
122
+ Ne as Text,
123
+ we as TextSymbolVariants,
122
124
  Ge as TextSymbols,
123
- Ae as TextVariants,
125
+ he as TextVariants,
124
126
  We as UserManagement,
125
127
  $e as Video,
126
128
  Ce as ViewingsList,
127
- p as defaultYear,
128
- s as emailValidation,
129
- m as encodeURLSearchParams,
129
+ m as defaultYear,
130
+ p as emailValidation,
131
+ s as encodeURLSearchParams,
130
132
  d as findChildrenExcludingTypes,
131
- u as findChildrenOfType,
132
- i as generatePaddingClassName,
133
+ i as findChildrenOfType,
134
+ u as generatePaddingClassName,
133
135
  x as getCommonProps,
134
136
  n as noOp,
135
137
  g as px,
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index5.js";
1
+ import { __module as t } from "../../_virtual/index6.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index6.js";
1
+ import { __module as e } from "../../../../_virtual/index5.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -1 +1,2 @@
1
1
  export { default as DetailList, type DetailListProps } from './DetailList';
2
+ export { DetailListAlignment } from './types';
@@ -83,8 +83,7 @@
83
83
  }
84
84
 
85
85
  @mixin media($breakpoint, $type: 'min') {
86
- @if $breakpoint == $size-sm {
87
- // $breakpoint-sm: 360px;
86
+ @if $breakpoint == $size-sm or $breakpoint == $breakpoint-sm {
88
87
  @if $type == 'min' {
89
88
  @media (min-width: $breakpoint-sm) {
90
89
  @content;
@@ -98,7 +97,7 @@
98
97
  }
99
98
  }
100
99
 
101
- @if $breakpoint == $size-md {
100
+ @if $breakpoint == $size-md or $breakpoint == $breakpoint-md {
102
101
  // $breakpoint-md: 961px;
103
102
  @if $type == 'min' {
104
103
  @media (min-width: $breakpoint-md) {
@@ -113,7 +112,7 @@
113
112
  }
114
113
  }
115
114
 
116
- @if $breakpoint == $size-lg {
115
+ @if $breakpoint == $size-lg or $breakpoint == $breakpoint-lg {
117
116
  // $breakpoint-lg: 1401px;
118
117
 
119
118
  @if $type == 'min' {
@@ -129,7 +128,7 @@
129
128
  }
130
129
  }
131
130
 
132
- @if $breakpoint == $size-xl {
131
+ @if $breakpoint == $size-xl or $breakpoint == $breakpoint-xl {
133
132
  // $breakpoint-xl: 1801px;
134
133
  @if $type == 'min' {
135
134
  @media (min-width: $breakpoint-xl) {
@@ -92,21 +92,21 @@
92
92
  display: flex;
93
93
  flex-direction: row;
94
94
  justify-content: space-between;
95
- opacity: 0.75;
96
95
 
97
96
  &--hoverable {
98
97
  cursor: pointer;
99
98
 
100
- &:hover {
101
- opacity: 1;
99
+ &:hover,
100
+ &:focus-visible {
101
+ opacity: 0.75;
102
102
  }
103
103
  }
104
104
 
105
105
  &__text {
106
106
  flex: auto;
107
+ font-variation-settings: 'wght' 600;
107
108
 
108
- @include text($body2);
109
- @include DistinctDisplay;
109
+ @include text($string2);
110
110
  }
111
111
 
112
112
  &__text--lg {
@@ -115,15 +115,41 @@
115
115
 
116
116
  &__icon {
117
117
  flex: initial;
118
- height: 1.5rem;
118
+ height: 0.875rem;
119
119
  width: 1.5rem;
120
120
  }
121
121
 
122
122
  &__icon--lg {
123
- height: 2rem;
123
+ height: 1.5rem;
124
124
  width: 2rem;
125
125
  }
126
126
 
127
+ @include media($breakpoint-md) {
128
+ &__icon {
129
+ flex: initial;
130
+ height: 1rem;
131
+ width: 1.5rem;
132
+ }
133
+
134
+ &__icon--lg {
135
+ height: 1.5rem;
136
+ width: 2rem;
137
+ }
138
+ }
139
+
140
+ @include media($breakpoint-xl) {
141
+ &__icon {
142
+ flex: initial;
143
+ height: 1.25rem;
144
+ width: 1.75rem;
145
+ }
146
+
147
+ &__icon--lg {
148
+ height: 2rem;
149
+ width: 3rem;
150
+ }
151
+ }
152
+
127
153
  &--blue-fill {
128
154
  filter: brightness(0) saturate(100%) invert(51%) sepia(72%) saturate(1698%) hue-rotate(191deg) brightness(95%)
129
155
  contrast(86%);
@@ -178,4 +178,10 @@
178
178
  width: 100%;
179
179
  }
180
180
  }
181
+
182
+ .#{$px}-accordion-item-label__icon {
183
+ // slightly larger in header mobile than default
184
+ height: 1rem;
185
+ width: 1.5rem;
186
+ }
181
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.72.0",
3
+ "version": "1.72.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"