@phillips/seldon 1.249.0 → 1.250.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 (120) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index9.js +2 -2
  3. package/dist/assets/formatted/Account.js +15 -11
  4. package/dist/assets/formatted/AccountActive.js +17 -13
  5. package/dist/assets/formatted/Add.js +18 -14
  6. package/dist/assets/formatted/AdminCheck.js +19 -15
  7. package/dist/assets/formatted/AdminChevronLeft.js +17 -13
  8. package/dist/assets/formatted/AdminChevronRight.js +19 -15
  9. package/dist/assets/formatted/AdminChevronUp.js +18 -14
  10. package/dist/assets/formatted/AdminClose.js +20 -16
  11. package/dist/assets/formatted/AdminFullscreen.js +19 -21
  12. package/dist/assets/formatted/AdminFullscreenExit.js +19 -15
  13. package/dist/assets/formatted/AdminGavel.js +22 -18
  14. package/dist/assets/formatted/AdminHome.js +19 -15
  15. package/dist/assets/formatted/AdminLiveOnline.js +20 -16
  16. package/dist/assets/formatted/AdminPencil.js +18 -14
  17. package/dist/assets/formatted/AdminPerson.js +16 -12
  18. package/dist/assets/formatted/AdminPlay.js +19 -15
  19. package/dist/assets/formatted/AdminSearch.js +20 -16
  20. package/dist/assets/formatted/AdminTelephone.js +17 -13
  21. package/dist/assets/formatted/AppleAppStoreBadge.js +19 -15
  22. package/dist/assets/formatted/ArrowDown.js +16 -12
  23. package/dist/assets/formatted/ArrowLeft.js +16 -12
  24. package/dist/assets/formatted/ArrowRight.js +17 -13
  25. package/dist/assets/formatted/ArrowUp.js +18 -14
  26. package/dist/assets/formatted/Bag.js +18 -14
  27. package/dist/assets/formatted/Calendar.js +17 -13
  28. package/dist/assets/formatted/ChevronDown.js +17 -13
  29. package/dist/assets/formatted/ChevronLeft.js +17 -13
  30. package/dist/assets/formatted/ChevronRight.js +19 -15
  31. package/dist/assets/formatted/ChevronUp.js +17 -13
  32. package/dist/assets/formatted/Clock.js +18 -14
  33. package/dist/assets/formatted/CloseX.js +14 -10
  34. package/dist/assets/formatted/ConditionReport.js +19 -15
  35. package/dist/assets/formatted/Delete.js +20 -16
  36. package/dist/assets/formatted/Download.js +18 -14
  37. package/dist/assets/formatted/Edit.js +20 -16
  38. package/dist/assets/formatted/Email.js +19 -15
  39. package/dist/assets/formatted/Error.js +20 -16
  40. package/dist/assets/formatted/ExternalLink.js +16 -12
  41. package/dist/assets/formatted/Facebook.js +18 -14
  42. package/dist/assets/formatted/Favorite.js +17 -13
  43. package/dist/assets/formatted/FavoriteActive.js +17 -15
  44. package/dist/assets/formatted/Filters.js +19 -15
  45. package/dist/assets/formatted/Fullscreen.js +17 -13
  46. package/dist/assets/formatted/FullscreenExit.js +17 -13
  47. package/dist/assets/formatted/Gavel.js +19 -15
  48. package/dist/assets/formatted/GavelActive.js +18 -14
  49. package/dist/assets/formatted/Grid.js +16 -12
  50. package/dist/assets/formatted/Hide.js +20 -16
  51. package/dist/assets/formatted/Home.js +17 -13
  52. package/dist/assets/formatted/HomeActive.js +17 -13
  53. package/dist/assets/formatted/Icon.js +19 -15
  54. package/dist/assets/formatted/IconBlueCircle.js +18 -14
  55. package/dist/assets/formatted/IconGreenCircle.js +17 -13
  56. package/dist/assets/formatted/IconOrangeCircle.js +18 -14
  57. package/dist/assets/formatted/IconRedCircle.js +17 -13
  58. package/dist/assets/formatted/ImageUnavailable.js +23 -112
  59. package/dist/assets/formatted/Instagram.js +20 -16
  60. package/dist/assets/formatted/LinkedIn.js +19 -15
  61. package/dist/assets/formatted/List.js +20 -16
  62. package/dist/assets/formatted/LiveNow.js +17 -17
  63. package/dist/assets/formatted/Lock.js +19 -15
  64. package/dist/assets/formatted/MagnificentSeven.js +21 -17
  65. package/dist/assets/formatted/Menu.js +17 -13
  66. package/dist/assets/formatted/Mute.js +22 -18
  67. package/dist/assets/formatted/Pause.js +16 -12
  68. package/dist/assets/formatted/PhillipsAppIcon.js +21 -17
  69. package/dist/assets/formatted/PhillipsLogo.js +17 -13
  70. package/dist/assets/formatted/Play.js +18 -14
  71. package/dist/assets/formatted/Red.js +13 -9
  72. package/dist/assets/formatted/Refresh.js +17 -13
  73. package/dist/assets/formatted/Search.js +19 -14
  74. package/dist/assets/formatted/Sell.js +19 -15
  75. package/dist/assets/formatted/SellActive.js +19 -15
  76. package/dist/assets/formatted/Share.js +15 -11
  77. package/dist/assets/formatted/Subtract.js +19 -15
  78. package/dist/assets/formatted/Success.js +16 -12
  79. package/dist/assets/formatted/Tooltip.js +21 -17
  80. package/dist/assets/formatted/TwitterX.js +19 -15
  81. package/dist/assets/formatted/Upload.js +16 -12
  82. package/dist/assets/formatted/View.js +15 -11
  83. package/dist/assets/formatted/VolumeMaximum.js +17 -13
  84. package/dist/assets/formatted/VolumeMid.js +21 -17
  85. package/dist/assets/formatted/VolumeMinimum.js +19 -15
  86. package/dist/assets/formatted/WeChat.js +19 -15
  87. package/dist/assets/pictograms/formatted/Chat.js +22 -18
  88. package/dist/assets/pictograms/formatted/CreditCard.js +20 -16
  89. package/dist/assets/pictograms/formatted/Form.js +19 -15
  90. package/dist/assets/pictograms/formatted/Live.js +17 -13
  91. package/dist/assets/pictograms/formatted/MobilePhone.js +18 -14
  92. package/dist/assets/pictograms/formatted/Notification.js +21 -17
  93. package/dist/assets/pictograms/formatted/Phone.js +25 -21
  94. package/dist/assets/pictograms/formatted/Photos.js +21 -17
  95. package/dist/assets/pictograms/formatted/Search.js +18 -14
  96. package/dist/assets/pictograms/formatted/Shipping.js +17 -13
  97. package/dist/assets/pictograms/formatted/Sign.js +16 -12
  98. package/dist/assets/pictograms/formatted/Submit.js +21 -17
  99. package/dist/assets/pictograms/formatted/Timer.js +21 -17
  100. package/dist/assets/pictograms/formatted/Verification.js +22 -18
  101. package/dist/components/AddToCalendar/AddToCalendar.js +5 -5
  102. package/dist/components/Carousel/Carousel.js +74 -74
  103. package/dist/components/Carousel/CarouselArrows.js +25 -23
  104. package/dist/components/Carousel/CarouselDot.js +1 -1
  105. package/dist/components/Carousel/CarouselDots.js +27 -25
  106. package/dist/components/Carousel/CarouselItem.js +16 -16
  107. package/dist/components/ComboBox/ComboBox.js +48 -44
  108. package/dist/components/ComboBox/ComboBox.stories.d.ts +10 -0
  109. package/dist/components/Dropdown/Dropdown.js +3 -3
  110. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +13 -14
  111. package/dist/components/IconButton/IconButton.js +16 -15
  112. package/dist/components/SeldonImage/SeldonImage.stories.d.ts +5 -0
  113. package/dist/components/Toast/Toast.stories.d.ts +8 -0
  114. package/dist/components/Video/Video.d.ts +4 -0
  115. package/dist/components/Video/Video.js +12 -11
  116. package/dist/node_modules/ics/dist/index.js +1 -1
  117. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  118. package/dist/scss/components/Countdown/_countdown.scss +1 -1
  119. package/dist/scss/pages/_page.scss +4 -4
  120. package/package.json +10 -5
@@ -8,6 +8,7 @@ export declare const Playground: {
8
8
  (props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
9
9
  args: {
10
10
  src: string;
11
+ alt: string;
11
12
  aspectRatio: string;
12
13
  };
13
14
  argTypes: {};
@@ -16,6 +17,7 @@ export declare const CircleImage: {
16
17
  (props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
17
18
  args: {
18
19
  src: string;
20
+ alt: string;
19
21
  aspectRatio: string;
20
22
  objectFit: string;
21
23
  imageStyle: {
@@ -28,6 +30,7 @@ export declare const BlurBackground: {
28
30
  (props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
29
31
  args: {
30
32
  src: string;
33
+ alt: string;
31
34
  aspectRatio: string;
32
35
  objectFit: string;
33
36
  hasBlurBackground: boolean;
@@ -38,6 +41,7 @@ export declare const BrokenImage: {
38
41
  (props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
39
42
  args: {
40
43
  src: string;
44
+ alt: string;
41
45
  aspectRatio: string;
42
46
  objectFit: string;
43
47
  };
@@ -47,6 +51,7 @@ export declare const ImageBlocked: {
47
51
  (props: React.ComponentProps<typeof SeldonImage>): import("react/jsx-runtime").JSX.Element;
48
52
  args: {
49
53
  src: string;
54
+ alt: string;
50
55
  aspectRatio: string;
51
56
  objectFit: string;
52
57
  imageBlocked: boolean;
@@ -11,6 +11,14 @@ export declare const Playground: {
11
11
  story: string;
12
12
  };
13
13
  };
14
+ a11y: {
15
+ config: {
16
+ rules: {
17
+ id: string;
18
+ enabled: boolean;
19
+ }[];
20
+ };
21
+ };
14
22
  };
15
23
  };
16
24
  export declare const Interactive: () => import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,10 @@ export interface VideoProps extends ComponentProps<'div'> {
16
16
  * The class name for the iframe
17
17
  */
18
18
  iframeClassName?: string;
19
+ /**
20
+ * Accessible name for the iframe.
21
+ */
22
+ iframeTitle?: string;
19
23
  }
20
24
  /**
21
25
  * ## Overview
@@ -1,23 +1,24 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { getCommonProps as N } from "../../utils/index.js";
2
+ import { forwardRef as N } from "react";
3
+ import { getCommonProps as u } from "../../utils/index.js";
4
4
  import t from "../../_virtual/index.js";
5
- const u = p(
6
- ({ aspectRatio: s, className: m, videoSource: i, iframeRef: d, iframeClassName: l, ...e }, c) => {
7
- const { className: r, "data-testid": a, ...f } = N(e, "Video"), n = {
5
+ const y = N(
6
+ ({ aspectRatio: s, className: m, videoSource: d, iframeRef: i, iframeClassName: l, iframeTitle: c = "Embedded video", ...e }, f) => {
7
+ const { className: r, "data-testid": a, ...n } = u(e, "Video"), p = {
8
8
  className: t(r, m),
9
9
  "data-testid": a,
10
10
  style: { "--aspect-ratio": s },
11
- ...f,
11
+ ...n,
12
12
  ...e
13
13
  };
14
- return /* @__PURE__ */ o("div", { ...n, ref: c, children: /* @__PURE__ */ o(
14
+ return /* @__PURE__ */ o("div", { ...p, ref: f, children: /* @__PURE__ */ o(
15
15
  "iframe",
16
16
  {
17
- ref: d,
17
+ ref: i,
18
18
  "data-testid": `${a}-iframe`,
19
19
  className: t(`${r}__iframe`, l),
20
- src: i,
20
+ src: d,
21
+ title: c,
21
22
  allowFullScreen: !0,
22
23
  allow: "encrypted-media",
23
24
  referrerPolicy: "no-referrer"
@@ -25,7 +26,7 @@ const u = p(
25
26
  ) });
26
27
  }
27
28
  );
28
- u.displayName = "Video";
29
+ y.displayName = "Video";
29
30
  export {
30
- u as default
31
+ y as default
31
32
  };
@@ -1,4 +1,4 @@
1
- import { __exports as o } from "../../../_virtual/index10.js";
1
+ import { __exports as o } from "../../../_virtual/index9.js";
2
2
  import { __require as q } from "./pipeline/index.js";
3
3
  var O;
4
4
  function R() {
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index9.js";
1
+ import { __module as e } from "../../../../_virtual/index10.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;
@@ -41,7 +41,7 @@
41
41
  &--closing-lot {
42
42
  .#{$px}-duration,
43
43
  .#{$px}-countdown__label {
44
- color: $countdown-compact;
44
+ color: $warning-default;
45
45
  }
46
46
  }
47
47
  }
@@ -22,8 +22,8 @@
22
22
  }
23
23
 
24
24
  .storybook-page a {
25
- color: #1ea7fd;
26
- text-decoration: none;
25
+ color: #0b63c6;
26
+ text-decoration: underline;
27
27
  }
28
28
 
29
29
  .storybook-page ul {
@@ -38,7 +38,7 @@
38
38
  .storybook-page .tip {
39
39
  background: #e7fdd8;
40
40
  border-radius: 1em;
41
- color: #66bf3c;
41
+ color: #2f6f1a;
42
42
  display: inline-block;
43
43
  font-size: 11px;
44
44
  font-variation-settings: 'wght' 700;
@@ -65,5 +65,5 @@
65
65
  }
66
66
 
67
67
  .storybook-page .tip-wrapper svg path {
68
- fill: #1ea7fd;
68
+ fill: #0b63c6;
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.249.0",
3
+ "version": "1.250.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -28,8 +28,10 @@
28
28
  },
29
29
  "scripts": {
30
30
  "start": "storybook dev -p 6006",
31
- "test": "vitest",
32
- "coverage": "vitest run --coverage",
31
+ "test": "vitest --project=unit",
32
+ "test:all": "vitest",
33
+ "coverage": "vitest run --project=unit --coverage",
34
+ "test-storybook": "vitest run --project=storybook",
33
35
  "build": "npm run clean && tsc && vite build",
34
36
  "chromatic": "STORYBOOK=1 chromatic",
35
37
  "build:storybook": "storybook build",
@@ -95,6 +97,7 @@
95
97
  "@storybook/addon-a11y": "^10.2.8",
96
98
  "@storybook/addon-docs": "^10.2.8",
97
99
  "@storybook/addon-links": "^10.2.8",
100
+ "@storybook/addon-vitest": "^10.2.8",
98
101
  "@storybook/react": "^10.2.8",
99
102
  "@storybook/react-vite": "^10.2.8",
100
103
  "@svgr/cli": "^8.1.0",
@@ -113,7 +116,8 @@
113
116
  "@typescript-eslint/eslint-plugin": "^8.18.0",
114
117
  "@typescript-eslint/parser": "^8.18.0",
115
118
  "@vitejs/plugin-react": "^5.1.4",
116
- "@vitest/coverage-v8": "^4.0.18",
119
+ "@vitest/browser-playwright": "^4.1.0",
120
+ "@vitest/coverage-v8": "^4.1.0",
117
121
  "chromatic": "^13.1.4",
118
122
  "color": "^4.2.3",
119
123
  "eslint": "^9.15.0",
@@ -125,6 +129,7 @@
125
129
  "husky": "^9.1.6",
126
130
  "jsdom": "^26.1.0",
127
131
  "markdownlint-cli": "^0.41.0",
132
+ "playwright": "^1.58.2",
128
133
  "prettier": "3.3.3",
129
134
  "react": "^18.3.1",
130
135
  "react-docgen-typescript": "^2.2.2",
@@ -149,7 +154,7 @@
149
154
  "vite-plugin-dts": "^4.5.4",
150
155
  "vite-plugin-svgr": "^4.5.0",
151
156
  "vite-tsconfig-paths": "^6.1.0",
152
- "vitest": "^4.0.18"
157
+ "vitest": "^4.1.0"
153
158
  },
154
159
  "peerDependencies": {
155
160
  "react": "^18.3.1",