@phillips/seldon 1.59.0 → 1.60.0

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.
Files changed (55) hide show
  1. package/dist/components/Accordion/Accordion.js +2 -2
  2. package/dist/components/Accordion/AccordionItem.js +4 -4
  3. package/dist/components/Button/Button.js +7 -7
  4. package/dist/components/Carousel/Carousel.d.ts +52 -0
  5. package/dist/components/Carousel/Carousel.js +72 -0
  6. package/dist/components/Carousel/CarouselContent.d.ts +19 -0
  7. package/dist/components/Carousel/CarouselContent.js +33 -0
  8. package/dist/components/Carousel/CarouselDots.d.ts +26 -0
  9. package/dist/components/Carousel/CarouselDots.js +75 -0
  10. package/dist/components/Carousel/CarouselItem.d.ts +11 -0
  11. package/dist/components/Carousel/CarouselItem.js +25 -0
  12. package/dist/components/Carousel/index.d.ts +4 -0
  13. package/dist/components/Carousel/utils.d.ts +8 -0
  14. package/dist/components/Carousel/utils.js +11 -0
  15. package/dist/components/ContentPeek/ContentPeek.js +5 -5
  16. package/dist/components/Drawer/Drawer.js +3 -3
  17. package/dist/components/Dropdown/Dropdown.js +3 -3
  18. package/dist/components/Grid/Grid.js +3 -3
  19. package/dist/components/Grid/utils.js +4 -4
  20. package/dist/components/GridItem/GridItem.js +8 -8
  21. package/dist/components/IconButton/IconButton.js +2 -2
  22. package/dist/components/Link/Link.js +6 -6
  23. package/dist/components/LinkList/LinkList.js +5 -5
  24. package/dist/components/Navigation/Navigation.js +4 -4
  25. package/dist/components/Navigation/NavigationList/NavigationList.js +3 -3
  26. package/dist/components/PageContentWrapper/PageContentWrapper.js +4 -4
  27. package/dist/components/Pagination/Pagination.js +6 -6
  28. package/dist/components/Row/Row.js +4 -4
  29. package/dist/components/Search/Search.js +7 -7
  30. package/dist/components/SplitPanel/SplitPanel.js +2 -2
  31. package/dist/components/Video/Video.js +2 -2
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +42 -34
  34. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1198 -0
  35. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +24 -0
  36. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +35 -0
  37. package/dist/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js +91 -0
  38. package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +269 -0
  39. package/dist/patterns/LanguageSelector/LanguageSelector.js +4 -4
  40. package/dist/patterns/Social/Social.js +5 -5
  41. package/dist/patterns/Subscribe/Subscribe.js +7 -7
  42. package/dist/patterns/UserManagement/UserManagement.js +2 -2
  43. package/dist/patterns/ViewingsList/ViewingsList.js +10 -10
  44. package/dist/patterns/ViewingsList/ViewingsListCard.js +12 -12
  45. package/dist/patterns/ViewingsList/ViewingsListCardForm.js +6 -6
  46. package/dist/scss/_reset.scss +2 -0
  47. package/dist/scss/componentStyles.scss +1 -0
  48. package/dist/scss/components/Carousel/_carousel.scss +84 -0
  49. package/dist/scss/components/IconButton/_iconButton.scss +2 -2
  50. package/dist/scss/components/Input/_input.scss +1 -0
  51. package/dist/scss/components/Modal/_modal.scss +1 -0
  52. package/dist/scss/components/Pagination/_pagination.scss +1 -1
  53. package/dist/site-furniture/Footer/Footer.js +2 -2
  54. package/dist/site-furniture/Header/Header.js +4 -4
  55. package/package.json +3 -1
@@ -35,6 +35,7 @@
35
35
  @use 'components/Pagination/pagination';
36
36
  @use 'components/ContentPeek/contentPeek';
37
37
  @use 'components/PageContentWrapper/pageContentWrapper';
38
+ @use 'components/Carousel/carousel';
38
39
 
39
40
  // Patterns
40
41
  @use 'patterns/HeroBanner/heroBanner';
@@ -0,0 +1,84 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-carousel {
4
+ position: relative;
5
+
6
+ &-content {
7
+ overflow: hidden;
8
+ }
9
+
10
+ &-content-inner {
11
+ display: flex;
12
+
13
+ @each $spacing-size in $spacing-sizes {
14
+ &--gap-#{$spacing-size} {
15
+ margin-left: calc(-1 * var(--spacing-#{$spacing-size}));
16
+ }
17
+ }
18
+ }
19
+
20
+ &-item {
21
+ flex: 0 0 100%;
22
+ min-width: 0;
23
+
24
+ @each $spacing-size in $spacing-sizes {
25
+ &--gap-#{$spacing-size} {
26
+ padding-left: var(--spacing-#{$spacing-size});
27
+ }
28
+ }
29
+ }
30
+
31
+ &-pagination {
32
+ align-items: center;
33
+ display: flex;
34
+ gap: 12px;
35
+ justify-content: center;
36
+ margin-top: 1rem;
37
+
38
+ button {
39
+ background: none;
40
+ border: none;
41
+ cursor: pointer;
42
+ }
43
+
44
+ &-on-content {
45
+ bottom: 16px;
46
+ left: 50%;
47
+ overflow: hidden;
48
+ position: absolute;
49
+ transform: translateX(-50%);
50
+ }
51
+
52
+ &-container {
53
+ display: flex;
54
+ justify-content: center;
55
+ width: 100%;
56
+ }
57
+
58
+ &-container-inner {
59
+ display: flex;
60
+ gap: 12px;
61
+ }
62
+
63
+ &-dot-container {
64
+ align-items: center;
65
+ display: flex;
66
+ height: 8px;
67
+ justify-content: center;
68
+ padding: 0;
69
+ width: 8px;
70
+ }
71
+
72
+ &-dot {
73
+ border: 1px solid #adadad;
74
+ border-radius: 50%;
75
+ height: 100%;
76
+ width: 100%;
77
+
78
+ &-selected {
79
+ background-color: #525050;
80
+ border-color: #525050;
81
+ }
82
+ }
83
+ }
84
+ }
@@ -7,8 +7,8 @@
7
7
  position: absolute;
8
8
  }
9
9
 
10
- &:focus {
11
- &:focus {
10
+ &:focus-visible {
11
+ &:focus-visible {
12
12
  outline: 0.5px solid $soft-black;
13
13
  outline-offset: -4.5px;
14
14
 
@@ -160,6 +160,7 @@ $lg: #{$px}-input--lg;
160
160
  width: fit-content;
161
161
  }
162
162
  .#{$px}-select-input .#{$px}-input__input {
163
+ background: transparent;
163
164
  width: fit-content;
164
165
  }
165
166
 
@@ -25,5 +25,6 @@
25
25
  position: absolute;
26
26
  right: 0.4rem;
27
27
  top: 0.4rem;
28
+ z-index: 100;
28
29
  }
29
30
  }
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  display: flex;
6
6
  flex-direction: row;
7
- gap: $spacing-md;
7
+ gap: $spacing-sm;
8
8
  }
9
9
 
10
10
  .#{$px} {
@@ -4,7 +4,7 @@ import { px as r, defaultYear as m } from "../../utils/index.js";
4
4
  import f from "../../assets/PhillipsLogo.svg.js";
5
5
  import { TextVariants as c } from "../../components/Text/types.js";
6
6
  import d from "../../components/Text/Text.js";
7
- const $ = ({
7
+ const N = ({
8
8
  children: a,
9
9
  className: i,
10
10
  copyright: s = `© ${m} Phillips Auctioneers, LLC`,
@@ -17,5 +17,5 @@ const $ = ({
17
17
  ] })
18
18
  ] });
19
19
  export {
20
- $ as default
20
+ N as default
21
21
  };
@@ -18,8 +18,8 @@ const I = O(R), L = T(
18
18
  logoText: x = "Home Page",
19
19
  ...C
20
20
  }, y) => {
21
- const E = s(r, p), m = s(r, g), [c, M] = h(!1), $ = s(r, f), b = P(r, [f, p, g]), [n, N] = h(!1), S = n ? v : _, H = function() {
22
- N((t) => !t);
21
+ const E = s(r, p), m = s(r, g), [c, M] = h(!1), N = s(r, f), $ = P(r, [f, p, g]), [n, b] = h(!1), S = n ? v : _, H = function() {
22
+ b((t) => !t);
23
23
  };
24
24
  return /* @__PURE__ */ o("header", { ...C, className: d(`${e}-header`, u), ref: y, children: [
25
25
  /* @__PURE__ */ o("div", { className: `${e}-header__top-row`, children: [
@@ -53,7 +53,7 @@ const I = O(R), L = T(
53
53
  },
54
54
  children: [
55
55
  l.Children.map(
56
- $,
56
+ N,
57
57
  (t) => l.isValidElement(t) ? l.cloneElement(t, {
58
58
  children: [
59
59
  ...l.Children.toArray(t.props.children),
@@ -61,7 +61,7 @@ const I = O(R), L = T(
61
61
  ]
62
62
  }) : t
63
63
  ),
64
- b
64
+ $
65
65
  ]
66
66
  }
67
67
  ) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.59.0",
3
+ "version": "1.60.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -49,6 +49,8 @@
49
49
  "change-case": "^5.4.4",
50
50
  "classnames": "^2.5.1",
51
51
  "dompurify": "^3.1.6",
52
+ "embla-carousel-react": "^8.3.0",
53
+ "embla-carousel-wheel-gestures": "^8.0.1",
52
54
  "flatpickr": "^4.6.13",
53
55
  "html-react-parser": "^5.1.12",
54
56
  "react-modal": "^3.16.1",