storybook 9.0.0-alpha.15 → 9.0.0-alpha.17

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.
@@ -248,7 +248,7 @@ var J, Je, _e = Ae(() => {
248
248
  });
249
249
 
250
250
  // ../node_modules/color-name/index.js
251
- var pl = $((Uv, cl) => {
251
+ var pl = $((Hv, cl) => {
252
252
  "use strict";
253
253
  cl.exports = {
254
254
  aliceblue: [240, 248, 255],
@@ -403,7 +403,7 @@ var pl = $((Uv, cl) => {
403
403
  });
404
404
 
405
405
  // ../node_modules/color-convert/conversions.js
406
- var an = $((Hv, dl) => {
406
+ var an = $((qv, dl) => {
407
407
  var zt = pl(), ul = {};
408
408
  for (let e of Object.keys(zt))
409
409
  ul[zt[e]] = e;
@@ -738,7 +738,7 @@ var an = $((Hv, dl) => {
738
738
  });
739
739
 
740
740
  // ../node_modules/color-convert/route.js
741
- var fl = $(($v, ml) => {
741
+ var fl = $((zv, ml) => {
742
742
  var _r = an();
743
743
  function Ym() {
744
744
  let e = {}, t = Object.keys(_r);
@@ -788,7 +788,7 @@ var fl = $(($v, ml) => {
788
788
  });
789
789
 
790
790
  // ../node_modules/color-convert/index.js
791
- var hl = $((Gv, gl) => {
791
+ var hl = $((Wv, gl) => {
792
792
  var sn = an(), ef = fl(), Tt = {}, tf = Object.keys(sn);
793
793
  function rf(e) {
794
794
  let t = /* @__PURE__ */ a(function(...r) {
@@ -1445,7 +1445,7 @@ var Kl = $((Jl, bn) => {
1445
1445
  });
1446
1446
 
1447
1447
  // ../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json
1448
- var Wn = $((QA, eb) => {
1448
+ var Wn = $((ew, eb) => {
1449
1449
  eb.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
1450
1450
  \xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
1451
1451
  Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\
@@ -1727,7 +1727,7 @@ var Wn = $((QA, eb) => {
1727
1727
  });
1728
1728
 
1729
1729
  // ../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json
1730
- var Wi = $((ew, tb) => {
1730
+ var Wi = $((tw, tb) => {
1731
1731
  tb.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
1732
1732
  \xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
1733
1733
  \xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9",
@@ -1742,12 +1742,12 @@ var Wi = $((ew, tb) => {
1742
1742
  });
1743
1743
 
1744
1744
  // ../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json
1745
- var Jn = $((tw, rb) => {
1745
+ var Jn = $((rw, rb) => {
1746
1746
  rb.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
1747
1747
  });
1748
1748
 
1749
1749
  // ../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json
1750
- var Ji = $((rw, ob) => {
1750
+ var Ji = $((ow, ob) => {
1751
1751
  ob.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
1752
1752
  "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
1753
1753
  "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
@@ -1974,7 +1974,7 @@ var pc = $((M) => {
1974
1974
  });
1975
1975
 
1976
1976
  // ../node_modules/ansi-to-html/lib/ansi_to_html.js
1977
- var Cc = $((uw, xc) => {
1977
+ var Cc = $((dw, xc) => {
1978
1978
  "use strict";
1979
1979
  function xb(e, t) {
1980
1980
  if (!(e instanceof t))
@@ -2376,7 +2376,7 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
2376
2376
  });
2377
2377
 
2378
2378
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js
2379
- var ao = $((Iw, na) => {
2379
+ var ao = $((Pw, na) => {
2380
2380
  function oa() {
2381
2381
  return na.exports = oa = Object.assign || function(e) {
2382
2382
  for (var t = 1; t < arguments.length; t++) {
@@ -2392,7 +2392,7 @@ var ao = $((Iw, na) => {
2392
2392
  });
2393
2393
 
2394
2394
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2395
- var wc = $((Lw, Ac) => {
2395
+ var wc = $((Nw, Ac) => {
2396
2396
  function zb(e, t) {
2397
2397
  if (e == null) return {};
2398
2398
  var r = {}, o = Object.keys(e), n, s;
@@ -2405,7 +2405,7 @@ var wc = $((Lw, Ac) => {
2405
2405
  });
2406
2406
 
2407
2407
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2408
- var so = $((Dw, Oc) => {
2408
+ var so = $((Mw, Oc) => {
2409
2409
  var Gb = wc();
2410
2410
  function Wb(e, t) {
2411
2411
  if (e == null) return {};
@@ -2422,7 +2422,7 @@ var so = $((Dw, Oc) => {
2422
2422
  });
2423
2423
 
2424
2424
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js
2425
- var Ic = $((Vw, _c) => {
2425
+ var Ic = $((Uw, _c) => {
2426
2426
  function Kb(e, t, r) {
2427
2427
  return t in e ? Object.defineProperty(e, t, {
2428
2428
  value: r,
@@ -2436,7 +2436,7 @@ var Ic = $((Vw, _c) => {
2436
2436
  });
2437
2437
 
2438
2438
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js
2439
- var Nc = $((Hw, Lc) => {
2439
+ var Nc = $((qw, Lc) => {
2440
2440
  var Yb = Ic();
2441
2441
  function Pc(e, t) {
2442
2442
  var r = Object.keys(e);
@@ -2465,7 +2465,7 @@ var Nc = $((Hw, Lc) => {
2465
2465
  });
2466
2466
 
2467
2467
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2468
- var Mc = $(($w, Dc) => {
2468
+ var Mc = $((zw, Dc) => {
2469
2469
  function Zb(e, t) {
2470
2470
  if (e == null) return {};
2471
2471
  var r = {}, o = Object.keys(e), n, s;
@@ -2478,7 +2478,7 @@ var Mc = $(($w, Dc) => {
2478
2478
  });
2479
2479
 
2480
2480
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2481
- var Rc = $((Gw, Bc) => {
2481
+ var Rc = $((Ww, Bc) => {
2482
2482
  var Qb = Mc();
2483
2483
  function e0(e, t) {
2484
2484
  if (e == null) return {};
@@ -2495,7 +2495,7 @@ var Rc = $((Gw, Bc) => {
2495
2495
  });
2496
2496
 
2497
2497
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js
2498
- var Uc = $((Zw, Vc) => {
2498
+ var Uc = $((Qw, Vc) => {
2499
2499
  function r0(e, t, r) {
2500
2500
  return t in e ? Object.defineProperty(e, t, {
2501
2501
  value: r,
@@ -2509,7 +2509,7 @@ var Uc = $((Zw, Vc) => {
2509
2509
  });
2510
2510
 
2511
2511
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js
2512
- var $c = $((eO, qc) => {
2512
+ var $c = $((tO, qc) => {
2513
2513
  var o0 = Uc();
2514
2514
  function Hc(e, t) {
2515
2515
  var r = Object.keys(e);
@@ -2538,7 +2538,7 @@ var $c = $((eO, qc) => {
2538
2538
  });
2539
2539
 
2540
2540
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js
2541
- var zc = $((rO, da) => {
2541
+ var zc = $((oO, da) => {
2542
2542
  function ua() {
2543
2543
  return da.exports = ua = Object.assign || function(e) {
2544
2544
  for (var t = 1; t < arguments.length; t++) {
@@ -2554,7 +2554,7 @@ var zc = $((rO, da) => {
2554
2554
  });
2555
2555
 
2556
2556
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2557
- var Wc = $((nO, Gc) => {
2557
+ var Wc = $((aO, Gc) => {
2558
2558
  function a0(e, t) {
2559
2559
  if (e == null) return {};
2560
2560
  var r = {}, o = Object.keys(e), n, s;
@@ -2567,7 +2567,7 @@ var Wc = $((nO, Gc) => {
2567
2567
  });
2568
2568
 
2569
2569
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2570
- var Kc = $((sO, Jc) => {
2570
+ var Kc = $((lO, Jc) => {
2571
2571
  var s0 = Wc();
2572
2572
  function l0(e, t) {
2573
2573
  if (e == null) return {};
@@ -2584,8 +2584,8 @@ var Kc = $((sO, Jc) => {
2584
2584
  });
2585
2585
 
2586
2586
  // src/core-server/presets/common-manager.ts
2587
- import { global as u1 } from "@storybook/global";
2588
- import { addons as d1 } from "storybook/manager-api";
2587
+ import { global as d1 } from "@storybook/global";
2588
+ import { addons as m1 } from "storybook/manager-api";
2589
2589
 
2590
2590
  // src/controls/manager.tsx
2591
2591
  import fe from "react";
@@ -7547,30 +7547,30 @@ var Hi = Ui.register(It, (e) => {
7547
7547
 
7548
7548
  // src/component-testing/manager.tsx
7549
7549
  import Eo from "react";
7550
- import { AddonPanel as cx } from "storybook/internal/components";
7551
- import { Consumer as px, addons as Mp, types as ux } from "storybook/manager-api";
7550
+ import { AddonPanel as px } from "storybook/internal/components";
7551
+ import { Consumer as ux, addons as Mp, types as dx } from "storybook/manager-api";
7552
7552
 
7553
7553
  // src/component-testing/components/Panel.tsx
7554
- import Pp, { Fragment as JE, memo as KE, useEffect as Ta, useMemo as Lp, useRef as Aa, useState as wa } from "react";
7554
+ import Pp, { Fragment as KE, memo as YE, useEffect as Ta, useMemo as Lp, useRef as Aa, useState as wa } from "react";
7555
7555
  import {
7556
- FORCE_REMOUNT as YE,
7557
- PLAY_FUNCTION_THREW_EXCEPTION as XE,
7558
- STORY_RENDER_PHASE_CHANGED as ZE,
7559
- STORY_THREW_EXCEPTION as QE,
7560
- UNHANDLED_ERRORS_WHILE_PLAYING as ex
7556
+ FORCE_REMOUNT as XE,
7557
+ PLAY_FUNCTION_THREW_EXCEPTION as ZE,
7558
+ STORY_RENDER_PHASE_CHANGED as QE,
7559
+ STORY_THREW_EXCEPTION as ex,
7560
+ UNHANDLED_ERRORS_WHILE_PLAYING as tx
7561
7561
  } from "storybook/internal/core-events";
7562
7562
  import { global as Oa } from "@storybook/global";
7563
7563
  import {
7564
- experimental_useStatusStore as tx,
7565
- useAddonState as rx,
7566
- useChannel as ox,
7567
- useParameter as nx
7564
+ experimental_useStatusStore as rx,
7565
+ useAddonState as ox,
7566
+ useChannel as nx,
7567
+ useParameter as ax
7568
7568
  } from "storybook/manager-api";
7569
7569
 
7570
- // ../addons/test/src/constants.ts
7571
- var Gn = "storybook/test", zA = `${Gn}/test-provider`, GA = `${Gn}/panel`, qi = "STORYBOOK_ADDON_TEST_CHANNEL", Yy = "storybook/a11y", WA = `${Yy}\
7570
+ // ../addons/vitest/src/constants.ts
7571
+ var Gn = "storybook/test", GA = `${Gn}/test-provider`, WA = `${Gn}/panel`, qi = "STORYBOOK_ADDON_TEST_CHANNEL", Yy = "storybook/a11y", JA = `${Yy}\
7572
7572
  /panel`;
7573
- var Xy = "writing-tests/test-addon", JA = `${Xy}#what-happens-if-vitest-itself-has-an-error`;
7573
+ var Xy = "writing-tests/test-addon", KA = `${Xy}#what-happens-if-vitest-itself-has-an-error`;
7574
7574
  var Zy = {
7575
7575
  id: Gn,
7576
7576
  initialState: {
@@ -7605,7 +7605,7 @@ var Zy = {
7605
7605
  coverageSummary: void 0
7606
7606
  }
7607
7607
  }
7608
- }, KA = `UNIVERSAL_STORE:${Zy.id}`;
7608
+ }, YA = `UNIVERSAL_STORE:${Zy.id}`;
7609
7609
  var $i = "storybook/component-test";
7610
7610
 
7611
7611
  // src/instrumenter/EVENTS.ts
@@ -7626,7 +7626,7 @@ call";
7626
7626
 
7627
7627
  // src/component-testing/components/InteractionsPanel.tsx
7628
7628
  import * as K from "react";
7629
- import { transparentize as zE } from "polished";
7629
+ import { transparentize as GE } from "polished";
7630
7630
  import { styled as Dt } from "storybook/theming";
7631
7631
 
7632
7632
  // src/component-testing/utils.ts
@@ -7714,17 +7714,18 @@ rite a play function for your story and you'll see it run here."),
7714
7714
 
7715
7715
  // src/component-testing/components/Interaction.tsx
7716
7716
  import * as D from "react";
7717
- import { IconButton as nE, TooltipNote as aE, WithTooltip as dp } from "storybook/internal/components";
7718
- import { BookmarkHollowIcon as sE, ListUnorderedIcon as lE, LockIcon as iE } from "@storybook/icons";
7719
- import { transparentize as cE } from "polished";
7717
+ import { IconButton as aE, TooltipNote as sE, WithTooltip as dp } from "storybook/internal/components";
7718
+ import { BookmarkHollowIcon as lE, ListUnorderedIcon as iE, LockIcon as cE } from "@storybook/icons";
7719
+ import { transparentize as pE } from "polished";
7720
7720
  import { styled as Te, typography as fo } from "storybook/theming";
7721
7721
 
7722
7722
  // src/component-testing/components/MatcherResult.tsx
7723
7723
  import W from "react";
7724
- import { styled as up, typography as W0 } from "storybook/theming";
7724
+ import { styled as up, typography as J0 } from "storybook/theming";
7725
7725
 
7726
7726
  // src/component-testing/components/MethodCall.tsx
7727
7727
  import S, { Fragment as w0 } from "react";
7728
+ import { logger as O0 } from "storybook/internal/client-logger";
7728
7729
 
7729
7730
  // ../node_modules/@devtools-ds/object-inspector/dist/esm/ObjectInspector.js
7730
7731
  var ap = xe(ao()), sp = xe(so());
@@ -8288,7 +8289,7 @@ uo.defaultProps = {
8288
8289
 
8289
8290
  // src/component-testing/components/MethodCall.tsx
8290
8291
  import { useTheme as ha } from "storybook/theming";
8291
- var O0 = {
8292
+ var k0 = {
8292
8293
  base: "#444",
8293
8294
  nullish: "#7D99AA",
8294
8295
  string: "#16B242",
@@ -8313,7 +8314,7 @@ var O0 = {
8313
8314
  },
8314
8315
  meta: "#EA7509",
8315
8316
  method: "#0271B6"
8316
- }, k0 = {
8317
+ }, _0 = {
8317
8318
  base: "#eee",
8318
8319
  nullish: "#aaa",
8319
8320
  string: "#5FE584",
@@ -8340,15 +8341,15 @@ var O0 = {
8340
8341
  method: "#5EC1FF"
8341
8342
  }, ne = /* @__PURE__ */ a(() => {
8342
8343
  let { base: e } = ha();
8343
- return e === "dark" ? k0 : O0;
8344
- }, "useThemeColors"), _0 = /[^A-Z0-9]/i, lp = /[\s.,…]+$/gm, ip = /* @__PURE__ */ a((e, t) => {
8344
+ return e === "dark" ? _0 : k0;
8345
+ }, "useThemeColors"), I0 = /[^A-Z0-9]/i, lp = /[\s.,…]+$/gm, ip = /* @__PURE__ */ a((e, t) => {
8345
8346
  if (e.length <= t)
8346
8347
  return e;
8347
8348
  for (let r = t - 1; r >= 0; r -= 1)
8348
- if (_0.test(e[r]) && r > 10)
8349
+ if (I0.test(e[r]) && r > 10)
8349
8350
  return `${e.slice(0, r).replace(lp, "")}\u2026`;
8350
8351
  return `${e.slice(0, t).replace(lp, "")}\u2026`;
8351
- }, "ellipsize"), I0 = /* @__PURE__ */ a((e) => {
8352
+ }, "ellipsize"), P0 = /* @__PURE__ */ a((e) => {
8352
8353
  try {
8353
8354
  return JSON.stringify(e, null, 1);
8354
8355
  } catch {
@@ -8365,38 +8366,38 @@ var O0 = {
8365
8366
  }) => {
8366
8367
  switch (!0) {
8367
8368
  case e === null:
8368
- return /* @__PURE__ */ S.createElement(P0, { ...n });
8369
- case e === void 0:
8370
8369
  return /* @__PURE__ */ S.createElement(L0, { ...n });
8370
+ case e === void 0:
8371
+ return /* @__PURE__ */ S.createElement(N0, { ...n });
8371
8372
  case Array.isArray(e):
8372
- return /* @__PURE__ */ S.createElement(B0, { ...n, value: e, callsById: o });
8373
+ return /* @__PURE__ */ S.createElement(R0, { ...n, value: e, callsById: o });
8373
8374
  case typeof e == "string":
8374
- return /* @__PURE__ */ S.createElement(N0, { ...n, value: e });
8375
- case typeof e == "number":
8376
8375
  return /* @__PURE__ */ S.createElement(D0, { ...n, value: e });
8377
- case typeof e == "boolean":
8376
+ case typeof e == "number":
8378
8377
  return /* @__PURE__ */ S.createElement(M0, { ...n, value: e });
8378
+ case typeof e == "boolean":
8379
+ return /* @__PURE__ */ S.createElement(B0, { ...n, value: e });
8379
8380
  /* eslint-disable no-underscore-dangle */
8380
8381
  case Object.prototype.hasOwnProperty.call(e, "__date__"):
8381
- return /* @__PURE__ */ S.createElement(U0, { ...n, ...e.__date__ });
8382
+ return /* @__PURE__ */ S.createElement(H0, { ...n, ...e.__date__ });
8382
8383
  case Object.prototype.hasOwnProperty.call(e, "__error__"):
8383
- return /* @__PURE__ */ S.createElement(H0, { ...n, ...e.__error__ });
8384
+ return /* @__PURE__ */ S.createElement(q0, { ...n, ...e.__error__ });
8384
8385
  case Object.prototype.hasOwnProperty.call(e, "__regexp__"):
8385
- return /* @__PURE__ */ S.createElement(q0, { ...n, ...e.__regexp__ });
8386
+ return /* @__PURE__ */ S.createElement($0, { ...n, ...e.__regexp__ });
8386
8387
  case Object.prototype.hasOwnProperty.call(e, "__function__"):
8387
- return /* @__PURE__ */ S.createElement(F0, { ...n, ...e.__function__ });
8388
+ return /* @__PURE__ */ S.createElement(V0, { ...n, ...e.__function__ });
8388
8389
  case Object.prototype.hasOwnProperty.call(e, "__symbol__"):
8389
- return /* @__PURE__ */ S.createElement($0, { ...n, ...e.__symbol__ });
8390
+ return /* @__PURE__ */ S.createElement(z0, { ...n, ...e.__symbol__ });
8390
8391
  case Object.prototype.hasOwnProperty.call(e, "__element__"):
8391
- return /* @__PURE__ */ S.createElement(V0, { ...n, ...e.__element__ });
8392
+ return /* @__PURE__ */ S.createElement(U0, { ...n, ...e.__element__ });
8392
8393
  case Object.prototype.hasOwnProperty.call(e, "__class__"):
8393
- return /* @__PURE__ */ S.createElement(j0, { ...n, ...e.__class__ });
8394
+ return /* @__PURE__ */ S.createElement(F0, { ...n, ...e.__class__ });
8394
8395
  case Object.prototype.hasOwnProperty.call(e, "__callId__"):
8395
8396
  return /* @__PURE__ */ S.createElement(mo, { call: o?.get(e.__callId__), callsById: o });
8396
8397
  /* eslint-enable no-underscore-dangle */
8397
8398
  case Object.prototype.toString.call(e) === "[object Object]":
8398
8399
  return /* @__PURE__ */ S.createElement(
8399
- R0,
8400
+ j0,
8400
8401
  {
8401
8402
  value: e,
8402
8403
  showInspector: r,
@@ -8405,24 +8406,24 @@ var O0 = {
8405
8406
  }
8406
8407
  );
8407
8408
  default:
8408
- return /* @__PURE__ */ S.createElement(z0, { value: e, ...n });
8409
+ return /* @__PURE__ */ S.createElement(G0, { value: e, ...n });
8409
8410
  }
8410
- }, "Node"), P0 = /* @__PURE__ */ a((e) => {
8411
+ }, "Node"), L0 = /* @__PURE__ */ a((e) => {
8411
8412
  let t = ne();
8412
8413
  return /* @__PURE__ */ S.createElement("span", { style: { color: t.nullish }, ...e }, "null");
8413
- }, "NullNode"), L0 = /* @__PURE__ */ a((e) => {
8414
+ }, "NullNode"), N0 = /* @__PURE__ */ a((e) => {
8414
8415
  let t = ne();
8415
8416
  return /* @__PURE__ */ S.createElement("span", { style: { color: t.nullish }, ...e }, "undefined");
8416
- }, "UndefinedNode"), N0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8417
+ }, "UndefinedNode"), D0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8417
8418
  let r = ne();
8418
8419
  return /* @__PURE__ */ S.createElement("span", { style: { color: r.string }, ...t }, JSON.stringify(ip(e, 50)));
8419
- }, "StringNode"), D0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8420
+ }, "StringNode"), M0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8420
8421
  let r = ne();
8421
8422
  return /* @__PURE__ */ S.createElement("span", { style: { color: r.number }, ...t }, e);
8422
- }, "NumberNode"), M0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8423
+ }, "NumberNode"), B0 = /* @__PURE__ */ a(({ value: e, ...t }) => {
8423
8424
  let r = ne();
8424
8425
  return /* @__PURE__ */ S.createElement("span", { style: { color: r.boolean }, ...t }, String(e));
8425
- }, "BooleanNode"), B0 = /* @__PURE__ */ a(({
8426
+ }, "BooleanNode"), R0 = /* @__PURE__ */ a(({
8426
8427
  value: e,
8427
8428
  nested: t = !1,
8428
8429
  callsById: r
@@ -8434,7 +8435,7 @@ var O0 = {
8434
8435
  s = cp(n, /* @__PURE__ */ S.createElement("span", null, ", "));
8435
8436
  return e.length <= 3 ? /* @__PURE__ */ S.createElement("span", { style: { color: o.base } }, "[", s, "]") : /* @__PURE__ */ S.createElement(
8436
8437
  "span", { style: { color: o.base } }, "(", e.length, ") [", s, ", \u2026]");
8437
- }, "ArrayNode"), R0 = /* @__PURE__ */ a(({
8438
+ }, "ArrayNode"), j0 = /* @__PURE__ */ a(({
8438
8439
  showInspector: e,
8439
8440
  value: t,
8440
8441
  callsById: r,
@@ -8460,14 +8461,14 @@ var O0 = {
8460
8461
  );
8461
8462
  return Object.keys(t).length <= 2 ? /* @__PURE__ */ S.createElement("span", { style: { color: s.base } }, "{ ", i, " }") : /* @__PURE__ */ S.
8462
8463
  createElement("span", { style: { color: s.base } }, "(", Object.keys(t).length, ") ", "{ ", i, ", \u2026 }");
8463
- }, "ObjectNode"), j0 = /* @__PURE__ */ a(({ name: e }) => {
8464
+ }, "ObjectNode"), F0 = /* @__PURE__ */ a(({ name: e }) => {
8464
8465
  let t = ne();
8465
8466
  return /* @__PURE__ */ S.createElement("span", { style: { color: t.instance } }, e);
8466
- }, "ClassNode"), F0 = /* @__PURE__ */ a(({ name: e }) => {
8467
+ }, "ClassNode"), V0 = /* @__PURE__ */ a(({ name: e }) => {
8467
8468
  let t = ne();
8468
8469
  return e ? /* @__PURE__ */ S.createElement("span", { style: { color: t.function } }, e) : /* @__PURE__ */ S.createElement("span", { style: {
8469
8470
  color: t.nullish, fontStyle: "italic" } }, "anonymous");
8470
- }, "FunctionNode"), V0 = /* @__PURE__ */ a(({
8471
+ }, "FunctionNode"), U0 = /* @__PURE__ */ a(({
8471
8472
  prefix: e,
8472
8473
  localName: t,
8473
8474
  id: r,
@@ -8482,28 +8483,33 @@ lt`, style: { color: i.muted } }, "<"), /* @__PURE__ */ S.createElement("span",
8482
8483
  Fragment, null, /* @__PURE__ */ S.createElement("span", { key: `${s}_text` }, n), /* @__PURE__ */ S.createElement("span", { key: `${s}_clo\
8483
8484
  se_lt`, style: { color: i.muted } }, "<"), /* @__PURE__ */ S.createElement("span", { key: `${s}_close_tag`, style: { color: i.tag.name } }, "\
8484
8485
  /", s), /* @__PURE__ */ S.createElement("span", { key: `${s}_close_gt`, style: { color: i.muted } }, ">")));
8485
- }, "ElementNode"), U0 = /* @__PURE__ */ a(({ value: e }) => {
8486
- let t = e instanceof Date ? e.toISOString() : e, [r, o, n] = t.split(/[T.Z]/), s = ne();
8487
- return /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "nowrap", color: s.date } }, r, /* @__PURE__ */ S.createElement("spa\
8488
- n", { style: { opacity: 0.7 } }, "T"), o === "00:00:00" ? /* @__PURE__ */ S.createElement("span", { style: { opacity: 0.7 } }, o) : o, n ===
8489
- "000" ? /* @__PURE__ */ S.createElement("span", { style: { opacity: 0.7 } }, ".", n) : `.${n}`, /* @__PURE__ */ S.createElement("span", { style: {
8486
+ }, "ElementNode"), H0 = /* @__PURE__ */ a(({ value: e }) => {
8487
+ let t = new Date(e);
8488
+ isNaN(Number(t)) && (O0.warn("Invalid date value:", e), t = null);
8489
+ let r = ne();
8490
+ if (!t)
8491
+ return /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "nowrap", color: r.date } }, "Invalid date");
8492
+ let [o, n, s] = t.toISOString().split(/[T.Z]/);
8493
+ return /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "nowrap", color: r.date } }, o, /* @__PURE__ */ S.createElement("spa\
8494
+ n", { style: { opacity: 0.7 } }, "T"), n === "00:00:00" ? /* @__PURE__ */ S.createElement("span", { style: { opacity: 0.7 } }, n) : n, s ===
8495
+ "000" ? /* @__PURE__ */ S.createElement("span", { style: { opacity: 0.7 } }, ".", s) : `.${s}`, /* @__PURE__ */ S.createElement("span", { style: {
8490
8496
  opacity: 0.7 } }, "Z"));
8491
- }, "DateNode"), H0 = /* @__PURE__ */ a(({ name: e, message: t }) => {
8497
+ }, "DateNode"), q0 = /* @__PURE__ */ a(({ name: e, message: t }) => {
8492
8498
  let r = ne();
8493
8499
  return /* @__PURE__ */ S.createElement("span", { style: { color: r.error.name } }, e, t && ": ", t && /* @__PURE__ */ S.createElement("spa\
8494
8500
  n", { style: { color: r.error.message }, title: t.length > 50 ? t : "" }, ip(t, 50)));
8495
- }, "ErrorNode"), q0 = /* @__PURE__ */ a(({ flags: e, source: t }) => {
8501
+ }, "ErrorNode"), $0 = /* @__PURE__ */ a(({ flags: e, source: t }) => {
8496
8502
  let r = ne();
8497
8503
  return /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "nowrap", color: r.regex.flags } }, "/", /* @__PURE__ */ S.createElement(
8498
8504
  "span", { style: { color: r.regex.source } }, t), "/", e);
8499
- }, "RegExpNode"), $0 = /* @__PURE__ */ a(({ description: e }) => {
8505
+ }, "RegExpNode"), z0 = /* @__PURE__ */ a(({ description: e }) => {
8500
8506
  let t = ne();
8501
8507
  return /* @__PURE__ */ S.createElement("span", { style: { whiteSpace: "nowrap", color: t.instance } }, "Symbol(", e && /* @__PURE__ */ S.createElement(
8502
8508
  "span", { style: { color: t.meta } }, '"', e, '"'), ")");
8503
- }, "SymbolNode"), z0 = /* @__PURE__ */ a(({ value: e }) => {
8509
+ }, "SymbolNode"), G0 = /* @__PURE__ */ a(({ value: e }) => {
8504
8510
  let t = ne();
8505
- return /* @__PURE__ */ S.createElement("span", { style: { color: t.meta } }, I0(e));
8506
- }, "OtherNode"), G0 = /* @__PURE__ */ a(({ label: e }) => {
8511
+ return /* @__PURE__ */ S.createElement("span", { style: { color: t.meta } }, P0(e));
8512
+ }, "OtherNode"), W0 = /* @__PURE__ */ a(({ label: e }) => {
8507
8513
  let t = ne(), { typography: r } = ha();
8508
8514
  return /* @__PURE__ */ S.createElement(
8509
8515
  "span",
@@ -8523,7 +8529,7 @@ n", { style: { color: r.error.message }, title: t.length > 50 ? t : "" }, ip(t,
8523
8529
  if (!e)
8524
8530
  return null;
8525
8531
  if (e.method === "step" && e.path?.length === 0)
8526
- return /* @__PURE__ */ S.createElement(G0, { label: e.args[0] });
8532
+ return /* @__PURE__ */ S.createElement(W0, { label: e.args[0] });
8527
8533
  let r = e.path?.flatMap((s, i) => {
8528
8534
  let l = s.__callId__;
8529
8535
  return [
@@ -8554,14 +8560,14 @@ var pp = /* @__PURE__ */ a((e, t = 0) => {
8554
8560
  } catch {
8555
8561
  return e;
8556
8562
  }
8557
- }, "parseValue"), J0 = up.span(({ theme: e }) => ({
8563
+ }, "parseValue"), K0 = up.span(({ theme: e }) => ({
8558
8564
  color: e.base === "light" ? e.color.positiveText : e.color.positive
8559
- })), K0 = up.span(({ theme: e }) => ({
8565
+ })), Y0 = up.span(({ theme: e }) => ({
8560
8566
  color: e.base === "light" ? e.color.negativeText : e.color.negative
8561
8567
  })), ba = /* @__PURE__ */ a(({ value: e, parsed: t }) => t ? /* @__PURE__ */ W.createElement(at, { showObjectInspector: !0, value: e, style: {
8562
- color: "#D43900" } }) : /* @__PURE__ */ W.createElement(K0, null, e), "Received"), Ea = /* @__PURE__ */ a(({ value: e, parsed: t }) => t ? typeof e ==
8568
+ color: "#D43900" } }) : /* @__PURE__ */ W.createElement(Y0, null, e), "Received"), Ea = /* @__PURE__ */ a(({ value: e, parsed: t }) => t ? typeof e ==
8563
8569
  "string" && e.startsWith("called with") ? /* @__PURE__ */ W.createElement(W.Fragment, null, e) : /* @__PURE__ */ W.createElement(at, { showObjectInspector: !0,
8564
- value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ W.createElement(J0, null, e), "Expected"), xa = /* @__PURE__ */ a(({
8570
+ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ W.createElement(K0, null, e), "Expected"), xa = /* @__PURE__ */ a(({
8565
8571
  message: e,
8566
8572
  style: t = {}
8567
8573
  }) => {
@@ -8573,7 +8579,7 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ W.createElement(J0, n
8573
8579
  style: {
8574
8580
  margin: 0,
8575
8581
  padding: "8px 10px 8px 36px",
8576
- fontSize: W0.size.s1,
8582
+ fontSize: J0.size.s1,
8577
8583
  ...t
8578
8584
  }
8579
8585
  },
@@ -8636,26 +8642,26 @@ value: e, style: { color: "#16B242" } }) : /* @__PURE__ */ W.createElement(J0, n
8636
8642
 
8637
8643
  // src/component-testing/components/StatusIcon.tsx
8638
8644
  import sr from "react";
8639
- import { CheckIcon as Y0, CircleIcon as X0, PlayIcon as Z0, StopAltIcon as Q0 } from "@storybook/icons";
8640
- import { transparentize as eE } from "polished";
8641
- import { styled as tE, useTheme as rE } from "storybook/theming";
8642
- var oE = tE.div({
8645
+ import { CheckIcon as X0, CircleIcon as Z0, PlayIcon as Q0, StopAltIcon as eE } from "@storybook/icons";
8646
+ import { transparentize as tE } from "polished";
8647
+ import { styled as rE, useTheme as oE } from "storybook/theming";
8648
+ var nE = rE.div({
8643
8649
  width: 14,
8644
8650
  height: 14,
8645
8651
  display: "flex",
8646
8652
  alignItems: "center",
8647
8653
  justifyContent: "center"
8648
8654
  }), lr = /* @__PURE__ */ a(({ status: e }) => {
8649
- let t = rE();
8655
+ let t = oE();
8650
8656
  switch (e) {
8651
8657
  case "done":
8652
- return /* @__PURE__ */ sr.createElement(Y0, { color: t.color.positive, "data-testid": "icon-done" });
8658
+ return /* @__PURE__ */ sr.createElement(X0, { color: t.color.positive, "data-testid": "icon-done" });
8653
8659
  case "error":
8654
- return /* @__PURE__ */ sr.createElement(Q0, { color: t.color.negative, "data-testid": "icon-error" });
8660
+ return /* @__PURE__ */ sr.createElement(eE, { color: t.color.negative, "data-testid": "icon-error" });
8655
8661
  case "active":
8656
- return /* @__PURE__ */ sr.createElement(Z0, { color: t.color.secondary, "data-testid": "icon-active" });
8662
+ return /* @__PURE__ */ sr.createElement(Q0, { color: t.color.secondary, "data-testid": "icon-active" });
8657
8663
  case "waiting":
8658
- return /* @__PURE__ */ sr.createElement(oE, { "data-testid": "icon-waiting" }, /* @__PURE__ */ sr.createElement(X0, { color: eE(0.5, "\
8664
+ return /* @__PURE__ */ sr.createElement(nE, { "data-testid": "icon-waiting" }, /* @__PURE__ */ sr.createElement(Z0, { color: tE(0.5, "\
8659
8665
  #CCCCCC"), size: 6 }));
8660
8666
  default:
8661
8667
  return null;
@@ -8679,7 +8685,7 @@ var mp = Te.div({
8679
8685
  fontFamily: fo.fonts.base,
8680
8686
  fontSize: 13,
8681
8687
  ...t.status === "error" && {
8682
- backgroundColor: e.base === "dark" ? cE(0.93, e.color.negative) : e.background.warning
8688
+ backgroundColor: e.base === "dark" ? pE(0.93, e.color.negative) : e.background.warning
8683
8689
  },
8684
8690
  paddingLeft: (t.ancestors?.length ?? 0) * 20
8685
8691
  }),
@@ -8731,10 +8737,10 @@ var mp = Te.div({
8731
8737
  display: "flex",
8732
8738
  alignItems: "center",
8733
8739
  padding: 6
8734
- }), pE = Te(nE)(({ theme: e }) => ({
8740
+ }), uE = Te(aE)(({ theme: e }) => ({
8735
8741
  color: e.textMutedColor,
8736
8742
  margin: "0 3px"
8737
- })), bp = Te(aE)(({ theme: e }) => ({
8743
+ })), bp = Te(sE)(({ theme: e }) => ({
8738
8744
  fontFamily: e.typography.fonts.base
8739
8745
  })), Ca = Te("div")(({ theme: e }) => ({
8740
8746
  padding: "8px 10px 8px 36px",
@@ -8744,23 +8750,23 @@ var mp = Te.div({
8744
8750
  margin: 0,
8745
8751
  padding: 0
8746
8752
  }
8747
- })), uE = Te(sE)(({ theme: e }) => ({
8753
+ })), dE = Te(lE)(({ theme: e }) => ({
8748
8754
  color: e.color.seafoam
8749
- })), dE = Te("span")(({ theme: e }) => ({
8755
+ })), mE = Te("span")(({ theme: e }) => ({
8750
8756
  color: e.color.defaultText,
8751
8757
  fontFamily: e.typography.fonts.base,
8752
8758
  fontSize: e.typography.size.s2 - 1
8753
- })), mE = Te(iE)(({ theme: e }) => ({
8759
+ })), fE = Te(cE)(({ theme: e }) => ({
8754
8760
  display: "block",
8755
8761
  width: 12,
8756
8762
  height: 12,
8757
8763
  margin: 6,
8758
8764
  color: e.color.mediumdark
8759
- })), fE = Te.span(({ theme: e }) => ({
8760
- color: e.base === "dark" ? "#5EC1FF" : "#0271B6"
8761
8765
  })), gE = Te.span(({ theme: e }) => ({
8766
+ color: e.base === "dark" ? "#5EC1FF" : "#0271B6"
8767
+ })), hE = Te.span(({ theme: e }) => ({
8762
8768
  color: e.base === "dark" ? "#eee" : "#444"
8763
- })), hE = Te.p(({ theme: e }) => ({
8769
+ })), yE = Te.p(({ theme: e }) => ({
8764
8770
  color: e.base === "dark" ? e.color.negative : e.color.negativeText,
8765
8771
  fontSize: e.typography.size.s2,
8766
8772
  maxWidth: 500,
@@ -8770,8 +8776,8 @@ var mp = Te.div({
8770
8776
  if (!e)
8771
8777
  return null;
8772
8778
  if (e.callId === he)
8773
- return /* @__PURE__ */ D.createElement(Ca, null, /* @__PURE__ */ D.createElement("pre", null, /* @__PURE__ */ D.createElement(fE, null, e.
8774
- name, ":"), " ", /* @__PURE__ */ D.createElement(gE, null, e.message)), /* @__PURE__ */ D.createElement(hE, null, "The component failed \
8779
+ return /* @__PURE__ */ D.createElement(Ca, null, /* @__PURE__ */ D.createElement("pre", null, /* @__PURE__ */ D.createElement(gE, null, e.
8780
+ name, ":"), " ", /* @__PURE__ */ D.createElement(hE, null, e.message)), /* @__PURE__ */ D.createElement(yE, null, "The component failed \
8775
8781
  to render properly. Automated component tests will not run until this is resolved. Check the full error message in Storybook\u2019s canvas to deb\
8776
8782
  ug."));
8777
8783
  if (ra(e))
@@ -8805,15 +8811,15 @@ ${e.diff}` : ""}`,
8805
8811
  let [u, d] = D.useState(!1), g = !o.goto || !e.interceptable || !!e.ancestors?.length;
8806
8812
  return s ? null : e.id === he ? /* @__PURE__ */ D.createElement(fp, { call: e, pausedAt: void 0 }, /* @__PURE__ */ D.createElement(gp, { isInteractive: !0 },
8807
8813
  /* @__PURE__ */ D.createElement(hp, { "aria-label": "Render step", call: e, disabled: !0 }, e.status === "error" ? /* @__PURE__ */ D.createElement(
8808
- lr, { status: "error" }) : /* @__PURE__ */ D.createElement(uE, null), /* @__PURE__ */ D.createElement(mp, { style: { marginLeft: 6, marginBottom: 1 } },
8809
- /* @__PURE__ */ D.createElement(dE, null, "Render story"))), /* @__PURE__ */ D.createElement(yp, null, /* @__PURE__ */ D.createElement(
8814
+ lr, { status: "error" }) : /* @__PURE__ */ D.createElement(dE, null), /* @__PURE__ */ D.createElement(mp, { style: { marginLeft: 6, marginBottom: 1 } },
8815
+ /* @__PURE__ */ D.createElement(mE, null, "Render story"))), /* @__PURE__ */ D.createElement(yp, null, /* @__PURE__ */ D.createElement(
8810
8816
  dp,
8811
8817
  {
8812
8818
  trigger: "hover",
8813
8819
  hasChrome: !1,
8814
8820
  tooltip: /* @__PURE__ */ D.createElement(bp, { note: "Render is the first step of all component tests" })
8815
8821
  },
8816
- /* @__PURE__ */ D.createElement(mE, null)
8822
+ /* @__PURE__ */ D.createElement(fE, null)
8817
8823
  ))), e.status === "error" && e.exception?.callId === e.id && /* @__PURE__ */ D.createElement(Ep, { exception: e.exception })) : /* @__PURE__ */ D.createElement(
8818
8824
  fp, { call: e, pausedAt: c }, /* @__PURE__ */ D.createElement(gp, { isInteractive: g }, /* @__PURE__ */ D.createElement(
8819
8825
  hp,
@@ -8833,42 +8839,42 @@ ${e.diff}` : ""}`,
8833
8839
  hasChrome: !1,
8834
8840
  tooltip: /* @__PURE__ */ D.createElement(bp, { note: `${i ? "Show" : "Hide"} interactions` })
8835
8841
  },
8836
- /* @__PURE__ */ D.createElement(pE, { onClick: l }, /* @__PURE__ */ D.createElement(lE, null))
8842
+ /* @__PURE__ */ D.createElement(uE, { onClick: l }, /* @__PURE__ */ D.createElement(iE, null))
8837
8843
  ))), e.status === "error" && e.exception?.callId === e.id && /* @__PURE__ */ D.createElement(Ep, { exception: e.exception }));
8838
8844
  }, "Interaction");
8839
8845
 
8840
8846
  // src/component-testing/components/Subnav.tsx
8841
8847
  import H from "react";
8842
8848
  import {
8843
- Bar as vE,
8844
- Button as SE,
8845
- IconButton as TE,
8846
- P as AE,
8847
- Separator as wE,
8848
- TooltipNote as OE,
8849
+ Bar as SE,
8850
+ Button as TE,
8851
+ IconButton as AE,
8852
+ P as wE,
8853
+ Separator as OE,
8854
+ TooltipNote as kE,
8849
8855
  WithTooltip as ir
8850
8856
  } from "storybook/internal/components";
8851
8857
  import {
8852
- FastForwardIcon as kE,
8853
- PlayBackIcon as _E,
8854
- PlayNextIcon as IE,
8855
- RewindIcon as PE,
8856
- SyncIcon as LE
8858
+ FastForwardIcon as _E,
8859
+ PlayBackIcon as IE,
8860
+ PlayNextIcon as PE,
8861
+ RewindIcon as LE,
8862
+ SyncIcon as NE
8857
8863
  } from "@storybook/icons";
8858
8864
  import { styled as Le } from "storybook/theming";
8859
8865
 
8860
8866
  // src/component-testing/components/StatusBadge.tsx
8861
- import yE from "react";
8862
- import { styled as bE, typography as va } from "storybook/theming";
8863
- var EE = {
8867
+ import bE from "react";
8868
+ import { styled as EE, typography as va } from "storybook/theming";
8869
+ var xE = {
8864
8870
  done: "positive",
8865
8871
  error: "negative",
8866
8872
  active: "warning",
8867
8873
  waiting: "warning"
8868
- }, xE = bE.div(({ theme: e, status: t }) => ({
8874
+ }, CE = EE.div(({ theme: e, status: t }) => ({
8869
8875
  padding: "4px 6px 4px 8px",
8870
8876
  borderRadius: "4px",
8871
- backgroundColor: e.color[EE[t]],
8877
+ backgroundColor: e.color[xE[t]],
8872
8878
  color: "white",
8873
8879
  fontFamily: va.fonts.base,
8874
8880
  textTransform: "uppercase",
@@ -8877,30 +8883,30 @@ var EE = {
8877
8883
  fontWeight: va.weight.bold,
8878
8884
  width: 65,
8879
8885
  textAlign: "center"
8880
- })), CE = {
8886
+ })), vE = {
8881
8887
  done: "Pass",
8882
8888
  error: "Fail",
8883
8889
  active: "Runs",
8884
8890
  waiting: "Runs"
8885
8891
  }, Cp = /* @__PURE__ */ a(({ status: e }) => {
8886
- let t = CE[e];
8887
- return /* @__PURE__ */ yE.createElement(xE, { "aria-label": "Status of the test run", status: e }, t);
8892
+ let t = vE[e];
8893
+ return /* @__PURE__ */ bE.createElement(CE, { "aria-label": "Status of the test run", status: e }, t);
8888
8894
  }, "StatusBadge");
8889
8895
 
8890
8896
  // src/component-testing/components/Subnav.tsx
8891
- var NE = Le.div(({ theme: e }) => ({
8897
+ var DE = Le.div(({ theme: e }) => ({
8892
8898
  boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`,
8893
8899
  background: e.background.app,
8894
8900
  position: "sticky",
8895
8901
  top: 0,
8896
8902
  zIndex: 1
8897
- })), DE = Le.nav(({ theme: e }) => ({
8903
+ })), ME = Le.nav(({ theme: e }) => ({
8898
8904
  height: 40,
8899
8905
  display: "flex",
8900
8906
  alignItems: "center",
8901
8907
  justifyContent: "space-between",
8902
8908
  paddingLeft: 15
8903
- })), ME = Le(SE)(({ theme: e }) => ({
8909
+ })), BE = Le(TE)(({ theme: e }) => ({
8904
8910
  borderRadius: 4,
8905
8911
  padding: 6,
8906
8912
  color: e.textMutedColor,
@@ -8909,14 +8915,14 @@ var NE = Le.div(({ theme: e }) => ({
8909
8915
  color: e.color.secondary
8910
8916
  }
8911
8917
  }
8912
- })), cr = Le(OE)(({ theme: e }) => ({
8918
+ })), cr = Le(kE)(({ theme: e }) => ({
8913
8919
  fontFamily: e.typography.fonts.base
8914
- })), pr = Le(TE)(({ theme: e }) => ({
8920
+ })), pr = Le(AE)(({ theme: e }) => ({
8915
8921
  color: e.textMutedColor,
8916
8922
  margin: "0 3px"
8917
- })), BE = Le(wE)({
8923
+ })), RE = Le(OE)({
8918
8924
  marginTop: 0
8919
- }), RE = Le(AE)(({ theme: e }) => ({
8925
+ }), jE = Le(wE)(({ theme: e }) => ({
8920
8926
  color: e.textMutedColor,
8921
8927
  justifyContent: "flex-end",
8922
8928
  textAlign: "right",
@@ -8928,14 +8934,14 @@ var NE = Le.div(({ theme: e }) => ({
8928
8934
  })), vp = Le.div({
8929
8935
  display: "flex",
8930
8936
  alignItems: "center"
8931
- }), jE = Le(pr)({
8937
+ }), FE = Le(pr)({
8932
8938
  marginLeft: 9
8933
- }), FE = Le(ME)({
8939
+ }), VE = Le(BE)({
8934
8940
  marginLeft: 9,
8935
8941
  marginRight: 9,
8936
8942
  marginBottom: 1,
8937
8943
  lineHeight: "12px"
8938
- }), VE = Le(pr)(({ theme: e, animating: t, disabled: r }) => ({
8944
+ }), UE = Le(pr)(({ theme: e, animating: t, disabled: r }) => ({
8939
8945
  opacity: r ? 0.5 : 1,
8940
8946
  svg: {
8941
8947
  animation: t ? `${e.animation.rotate360} 200ms ease-out` : void 0
@@ -8948,17 +8954,17 @@ var NE = Le.div(({ theme: e }) => ({
8948
8954
  onScrollToEnd: n
8949
8955
  }) => {
8950
8956
  let s = r === "error" ? "Scroll to error" : "Scroll to end";
8951
- return /* @__PURE__ */ H.createElement(NE, null, /* @__PURE__ */ H.createElement(vE, null, /* @__PURE__ */ H.createElement(DE, null, /* @__PURE__ */ H.
8952
- createElement(vp, null, /* @__PURE__ */ H.createElement(Cp, { status: r }), /* @__PURE__ */ H.createElement(FE, { onClick: n, disabled: !n },
8953
- s), /* @__PURE__ */ H.createElement(BE, null), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.
8957
+ return /* @__PURE__ */ H.createElement(DE, null, /* @__PURE__ */ H.createElement(SE, null, /* @__PURE__ */ H.createElement(ME, null, /* @__PURE__ */ H.
8958
+ createElement(vp, null, /* @__PURE__ */ H.createElement(Cp, { status: r }), /* @__PURE__ */ H.createElement(VE, { onClick: n, disabled: !n },
8959
+ s), /* @__PURE__ */ H.createElement(RE, null), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.
8954
8960
  createElement(cr, { note: "Go to start" }) }, /* @__PURE__ */ H.createElement(
8955
- jE,
8961
+ FE,
8956
8962
  {
8957
8963
  "aria-label": "Go to start",
8958
8964
  onClick: e.start,
8959
8965
  disabled: !t.start
8960
8966
  },
8961
- /* @__PURE__ */ H.createElement(PE, null)
8967
+ /* @__PURE__ */ H.createElement(LE, null)
8962
8968
  )), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.createElement(cr, { note: "Go back" }) },
8963
8969
  /* @__PURE__ */ H.createElement(
8964
8970
  pr,
@@ -8967,7 +8973,7 @@ var NE = Le.div(({ theme: e }) => ({
8967
8973
  onClick: e.back,
8968
8974
  disabled: !t.back
8969
8975
  },
8970
- /* @__PURE__ */ H.createElement(_E, null)
8976
+ /* @__PURE__ */ H.createElement(IE, null)
8971
8977
  )), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.createElement(cr, { note: "Go forwar\
8972
8978
  d" }) }, /* @__PURE__ */ H.createElement(
8973
8979
  pr,
@@ -8976,7 +8982,7 @@ d" }) }, /* @__PURE__ */ H.createElement(
8976
8982
  onClick: e.next,
8977
8983
  disabled: !t.next
8978
8984
  },
8979
- /* @__PURE__ */ H.createElement(IE, null)
8985
+ /* @__PURE__ */ H.createElement(PE, null)
8980
8986
  )), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.createElement(cr, { note: "Go to end" }) },
8981
8987
  /* @__PURE__ */ H.createElement(
8982
8988
  pr,
@@ -8985,18 +8991,18 @@ d" }) }, /* @__PURE__ */ H.createElement(
8985
8991
  onClick: e.end,
8986
8992
  disabled: !t.end
8987
8993
  },
8988
- /* @__PURE__ */ H.createElement(kE, null)
8994
+ /* @__PURE__ */ H.createElement(_E, null)
8989
8995
  )), /* @__PURE__ */ H.createElement(ir, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ H.createElement(cr, { note: "Rerun" }) },
8990
- /* @__PURE__ */ H.createElement(VE, { "aria-label": "Rerun", onClick: e.rerun }, /* @__PURE__ */ H.createElement(LE, null)))), o && /* @__PURE__ */ H.
8991
- createElement(vp, null, /* @__PURE__ */ H.createElement(RE, null, o)))));
8996
+ /* @__PURE__ */ H.createElement(UE, { "aria-label": "Rerun", onClick: e.rerun }, /* @__PURE__ */ H.createElement(NE, null)))), o && /* @__PURE__ */ H.
8997
+ createElement(vp, null, /* @__PURE__ */ H.createElement(jE, null, o)))));
8992
8998
  }, "Subnav");
8993
8999
 
8994
9000
  // src/component-testing/components/TestDiscrepancyMessage.tsx
8995
9001
  import Tp from "react";
8996
- import { Link as UE } from "storybook/internal/components";
8997
- import { useStorybookApi as HE } from "storybook/manager-api";
8998
- import { styled as qE } from "storybook/theming";
8999
- var $E = qE.div(({ theme: { color: e, typography: t, background: r } }) => ({
9002
+ import { Link as HE } from "storybook/internal/components";
9003
+ import { useStorybookApi as qE } from "storybook/manager-api";
9004
+ import { styled as $E } from "storybook/theming";
9005
+ var zE = $E.div(({ theme: { color: e, typography: t, background: r } }) => ({
9000
9006
  textAlign: "start",
9001
9007
  padding: "11px 15px",
9002
9008
  fontSize: `${t.size.s2}px`,
@@ -9017,22 +9023,22 @@ var $E = qE.div(({ theme: { color: e, typography: t, background: r } }) => ({
9017
9023
  boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)"
9018
9024
  }
9019
9025
  })), Ap = /* @__PURE__ */ a(({ browserTestStatus: e }) => {
9020
- let r = HE().getDocsUrl({
9026
+ let r = qE().getDocsUrl({
9021
9027
  subpath: zi,
9022
9028
  versioned: !0,
9023
9029
  renderer: !0
9024
9030
  }), [o, n] = e === "error" ? ["the CLI", "this browser"] : ["this browser", "the CLI"];
9025
- return /* @__PURE__ */ Tp.createElement($E, null, "This component test passed in ", o, ", but the tests failed in ", n, ".", " ", /* @__PURE__ */ Tp.
9026
- createElement(UE, { href: r, target: "_blank", withArrow: !0 }, "Learn what could cause this"));
9031
+ return /* @__PURE__ */ Tp.createElement(zE, null, "This component test passed in ", o, ", but the tests failed in ", n, ".", " ", /* @__PURE__ */ Tp.
9032
+ createElement(HE, { href: r, target: "_blank", withArrow: !0 }, "Learn what could cause this"));
9027
9033
  }, "TestDiscrepancyMessage");
9028
9034
 
9029
9035
  // src/component-testing/components/InteractionsPanel.tsx
9030
- var GE = Dt.div(({ theme: e }) => ({
9036
+ var WE = Dt.div(({ theme: e }) => ({
9031
9037
  height: "100%",
9032
9038
  background: e.background.content
9033
9039
  })), wp = Dt.div(({ theme: e }) => ({
9034
9040
  borderBottom: `1px solid ${e.appBorderColor}`,
9035
- backgroundColor: e.base === "dark" ? zE(0.93, e.color.negative) : e.background.warning,
9041
+ backgroundColor: e.base === "dark" ? GE(0.93, e.color.negative) : e.background.warning,
9036
9042
  padding: 15,
9037
9043
  fontSize: e.typography.size.s2 - 1,
9038
9044
  lineHeight: "19px"
@@ -9048,7 +9054,7 @@ var GE = Dt.div(({ theme: e }) => ({
9048
9054
  })), Op = Dt.div({
9049
9055
  paddingBottom: 4,
9050
9056
  fontWeight: "bold"
9051
- }), WE = Dt.p({
9057
+ }), JE = Dt.p({
9052
9058
  margin: 0,
9053
9059
  padding: "0 0 20px"
9054
9060
  }), kp = Dt.pre(({ theme: e }) => ({
@@ -9076,7 +9082,7 @@ var GE = Dt.div(({ theme: e }) => ({
9076
9082
  browserTestStatus: m
9077
9083
  }) {
9078
9084
  let y = Nt();
9079
- return /* @__PURE__ */ K.createElement(GE, null, f && /* @__PURE__ */ K.createElement(Ap, { browserTestStatus: m }), (n.length > 0 || i) &&
9085
+ return /* @__PURE__ */ K.createElement(WE, null, f && /* @__PURE__ */ K.createElement(Ap, { browserTestStatus: m }), (n.length > 0 || i) &&
9080
9086
  /* @__PURE__ */ K.createElement(
9081
9087
  Sp,
9082
9088
  {
@@ -9110,7 +9116,7 @@ var GE = Dt.div(({ theme: e }) => ({
9110
9116
  }
9111
9117
  }
9112
9118
  )), c && /* @__PURE__ */ K.createElement(wp, null, /* @__PURE__ */ K.createElement(Op, null, "Unhandled Errors"), /* @__PURE__ */ K.createElement(
9113
- WE, null, "Found ", c.length, " unhandled error", c.length > 1 ? "s" : "", " ", "while running the play function. This might cause false\
9119
+ JE, null, "Found ", c.length, " unhandled error", c.length > 1 ? "s" : "", " ", "while running the play function. This might cause false\
9114
9120
  positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the", /* @__PURE__ */ K.createElement(Sa, null, "test\
9115
9121
  .dangerouslyIgnoreUnhandledErrors"), " ", "parameter to ", /* @__PURE__ */ K.createElement(Sa, null, "true"), "."), c.map((h, b) => /* @__PURE__ */ K.createElement(
9116
9122
  kp, { key: b, "data-chromatic": "ignore" }, _p(h)))), /* @__PURE__ */ K.createElement("div", { ref: p }), !u && !l && !n.some((h) => h.id !==
@@ -9129,7 +9135,7 @@ var go = {
9129
9135
  goto: !1,
9130
9136
  next: !1,
9131
9137
  end: !1
9132
- }, ax = {
9138
+ }, sx = {
9133
9139
  done: "status-value:success",
9134
9140
  error: "status-value:error",
9135
9141
  active: "status-value:pending",
@@ -9171,14 +9177,14 @@ var go = {
9171
9177
  callId: he,
9172
9178
  status: e,
9173
9179
  ancestors: []
9174
- }), "getInternalRenderLogItem"), Np = KE(/* @__PURE__ */ a(function({ storyId: t }) {
9175
- let { statusValue: r, testRunId: o } = tx((R) => {
9180
+ }), "getInternalRenderLogItem"), Np = YE(/* @__PURE__ */ a(function({ storyId: t }) {
9181
+ let { statusValue: r, testRunId: o } = rx((R) => {
9176
9182
  let F = R[t]?.[$i];
9177
9183
  return {
9178
9184
  statusValue: F?.value,
9179
9185
  testRunId: F?.data?.testRunId
9180
9186
  };
9181
- }), [n, s] = rx(ft, {
9187
+ }), [n, s] = ox(ft, {
9182
9188
  controlStates: go,
9183
9189
  isErrored: !1,
9184
9190
  pausedAt: void 0,
@@ -9206,7 +9212,7 @@ var go = {
9206
9212
  { root: Oa.document.querySelector("#panel-tab-content") }
9207
9213
  ), v.current && R.observe(v.current)), () => R?.disconnect();
9208
9214
  }, []);
9209
- let A = ox(
9215
+ let A = nx(
9210
9216
  {
9211
9217
  [tt.CALL]: T,
9212
9218
  [tt.SYNC]: (R) => {
@@ -9228,7 +9234,7 @@ var go = {
9228
9234
  };
9229
9235
  });
9230
9236
  },
9231
- [ZE]: (R) => {
9237
+ [QE]: (R) => {
9232
9238
  if (R.newPhase === "preparing")
9233
9239
  x.current = [yo("active")], C.current.set(he, ka(t)), s({
9234
9240
  controlStates: go,
@@ -9261,7 +9267,7 @@ var go = {
9261
9267
  );
9262
9268
  }
9263
9269
  },
9264
- [QE]: (R) => {
9270
+ [ex]: (R) => {
9265
9271
  x.current = [yo("error")], C.current.set(
9266
9272
  he,
9267
9273
  ka(t, { ...R, callId: he })
@@ -9285,10 +9291,10 @@ var go = {
9285
9291
  })
9286
9292
  );
9287
9293
  },
9288
- [XE]: (R) => {
9294
+ [ZE]: (R) => {
9289
9295
  s((F) => ({ ...F, caughtException: R, hasException: !0 }));
9290
9296
  },
9291
- [ex]: (R) => {
9297
+ [tx]: (R) => {
9292
9298
  s((F) => ({ ...F, unhandledErrors: R, hasException: !0 }));
9293
9299
  }
9294
9300
  },
@@ -9315,15 +9321,15 @@ var go = {
9315
9321
  next: /* @__PURE__ */ a(() => A(tt.NEXT, { storyId: t }), "next"),
9316
9322
  end: /* @__PURE__ */ a(() => A(tt.END, { storyId: t }), "end"),
9317
9323
  rerun: /* @__PURE__ */ a(() => {
9318
- A(YE, { storyId: t });
9324
+ A(XE, { storyId: t });
9319
9325
  }, "rerun")
9320
9326
  }),
9321
9327
  [A, t]
9322
- ), V = nx("fileName", ""), [Q] = V.toString().split("/").slice(-1), ae = /* @__PURE__ */ a(() => i?.scrollIntoView({ behavior: "smooth", block: "\
9328
+ ), V = ax("fileName", ""), [Q] = V.toString().split("/").slice(-1), ae = /* @__PURE__ */ a(() => i?.scrollIntoView({ behavior: "smooth", block: "\
9323
9329
  end" }), "scrollToTarget"), Ee = !!b || !!E || // @ts-expect-error TODO
9324
9330
  y.some((R) => R.status === "error"), se = Lp(() => !h && (y.length > 0 || Ee) ? Ee ? "error" : "done" : h ? "active" : void 0, [h, y, Ee]);
9325
9331
  return Ta(() => {
9326
- if (se && r && r !== "status-value:pending" && r !== ax[se]) {
9332
+ if (se && r && r !== "status-value:pending" && r !== sx[se]) {
9327
9333
  let F = setTimeout(
9328
9334
  () => g((Y) => (Y || A(qi, {
9329
9335
  type: "test-discrepancy",
@@ -9339,7 +9345,7 @@ end" }), "scrollToTarget"), Ee = !!b || !!E || // @ts-expect-error TODO
9339
9345
  return () => clearTimeout(F);
9340
9346
  } else
9341
9347
  g(!1);
9342
- }, [A, se, r, t, o]), /* @__PURE__ */ Pp.createElement(JE, { key: "component-tests" }, /* @__PURE__ */ Pp.createElement(
9348
+ }, [A, se, r, t, o]), /* @__PURE__ */ Pp.createElement(KE, { key: "component-tests" }, /* @__PURE__ */ Pp.createElement(
9343
9349
  Ip,
9344
9350
  {
9345
9351
  hasResultMismatch: d,
@@ -9363,12 +9369,12 @@ end" }), "scrollToTarget"), Ee = !!b || !!E || // @ts-expect-error TODO
9363
9369
 
9364
9370
  // src/component-testing/components/PanelTitle.tsx
9365
9371
  import bo from "react";
9366
- import { Badge as sx } from "storybook/internal/components";
9367
- import { useAddonState as lx, useStorybookApi as ix } from "storybook/manager-api";
9372
+ import { Badge as lx } from "storybook/internal/components";
9373
+ import { useAddonState as ix, useStorybookApi as cx } from "storybook/manager-api";
9368
9374
  function Dp() {
9369
- let t = ix().getSelectedPanel(), [r = {}] = lx(ft), { isErrored: o, hasException: n, interactionsCount: s } = r;
9375
+ let t = cx().getSelectedPanel(), [r = {}] = ix(ft), { isErrored: o, hasException: n, interactionsCount: s } = r;
9370
9376
  return /* @__PURE__ */ bo.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } }, /* @__PURE__ */ bo.createElement(
9371
- "span", null, "Component tests"), s && !o && !n ? /* @__PURE__ */ bo.createElement(sx, { compact: !0, status: t === Xr ? "active" : "neutr\
9377
+ "span", null, "Component tests"), s && !o && !n ? /* @__PURE__ */ bo.createElement(lx, { compact: !0, status: t === Xr ? "active" : "neutr\
9372
9378
  al" }, s) : null, o || n ? /* @__PURE__ */ bo.createElement(lr, { status: "error" }) : null);
9373
9379
  }
9374
9380
  a(Dp, "PanelTitle");
@@ -9379,27 +9385,27 @@ var Bp = Mp.register(ft, () => {
9379
9385
  storyId: t.storyId
9380
9386
  }), "filter");
9381
9387
  Mp.add(Xr, {
9382
- type: ux.PANEL,
9388
+ type: dx.PANEL,
9383
9389
  title: /* @__PURE__ */ a(() => /* @__PURE__ */ Eo.createElement(Dp, null), "title"),
9384
9390
  match: /* @__PURE__ */ a(({ viewMode: t }) => t === "story", "match"),
9385
- render: /* @__PURE__ */ a(({ active: t }) => /* @__PURE__ */ Eo.createElement(cx, { active: !!t }, /* @__PURE__ */ Eo.createElement(px, {
9391
+ render: /* @__PURE__ */ a(({ active: t }) => /* @__PURE__ */ Eo.createElement(px, { active: !!t }, /* @__PURE__ */ Eo.createElement(ux, {
9386
9392
  filter: e }, ({ storyId: r }) => /* @__PURE__ */ Eo.createElement(Np, { storyId: r }))), "render")
9387
9393
  });
9388
9394
  });
9389
9395
 
9390
9396
  // src/backgrounds/manager.tsx
9391
- import Tx from "react";
9392
- import { addons as Up, types as Ax } from "storybook/manager-api";
9397
+ import Ax from "react";
9398
+ import { addons as Up, types as wx } from "storybook/manager-api";
9393
9399
 
9394
9400
  // src/backgrounds/components/Tool.tsx
9395
- import je, { Fragment as dx, memo as Fp, useCallback as mx, useState as fx } from "react";
9396
- import { IconButton as jp, TooltipLinkList as gx, WithTooltip as hx } from "storybook/internal/components";
9397
- import { CircleIcon as yx, GridIcon as bx, PhotoIcon as Ex, RefreshIcon as xx } from "@storybook/icons";
9398
- import { useGlobals as Cx, useParameter as vx } from "storybook/manager-api";
9401
+ import je, { Fragment as mx, memo as Fp, useCallback as fx, useState as gx } from "react";
9402
+ import { IconButton as jp, TooltipLinkList as hx, WithTooltip as yx } from "storybook/internal/components";
9403
+ import { CircleIcon as bx, GridIcon as Ex, PhotoIcon as xx, RefreshIcon as Cx } from "@storybook/icons";
9404
+ import { useGlobals as vx, useParameter as Sx } from "storybook/manager-api";
9399
9405
 
9400
9406
  // src/backgrounds/constants.ts
9401
9407
  var xo = "storybook/background", ur = "backgrounds";
9402
- var k2 = {
9408
+ var I2 = {
9403
9409
  UPDATE: `${xo}/update`
9404
9410
  };
9405
9411
 
@@ -9411,12 +9417,12 @@ var Rp = {
9411
9417
 
9412
9418
  // src/backgrounds/components/Tool.tsx
9413
9419
  var Vp = Fp(/* @__PURE__ */ a(function() {
9414
- let t = vx(ur), [r, o, n] = Cx(), [s, i] = fx(!1), { options: l = Rp, disable: c = !0 } = t || {};
9420
+ let t = Sx(ur), [r, o, n] = vx(), [s, i] = gx(!1), { options: l = Rp, disable: c = !0 } = t || {};
9415
9421
  if (c)
9416
9422
  return null;
9417
9423
  let u = r[ur] || {}, d = u.value, g = u.grid || !1, p = l[d], f = !!n?.[ur], m = Object.keys(l).length;
9418
9424
  return /* @__PURE__ */ je.createElement(
9419
- Sx,
9425
+ Tx,
9420
9426
  {
9421
9427
  length: m,
9422
9428
  backgroundMap: l,
@@ -9429,7 +9435,7 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9429
9435
  isTooltipVisible: s
9430
9436
  }
9431
9437
  );
9432
- }, "BackgroundSelector")), Sx = Fp(/* @__PURE__ */ a(function(t) {
9438
+ }, "BackgroundSelector")), Tx = Fp(/* @__PURE__ */ a(function(t) {
9433
9439
  let {
9434
9440
  item: r,
9435
9441
  length: o,
@@ -9440,7 +9446,7 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9440
9446
  isLocked: c,
9441
9447
  isGridActive: u,
9442
9448
  isTooltipVisible: d
9443
- } = t, g = mx(
9449
+ } = t, g = fx(
9444
9450
  (p) => {
9445
9451
  n({
9446
9452
  [ur]: p
@@ -9448,7 +9454,7 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9448
9454
  },
9449
9455
  [n]
9450
9456
  );
9451
- return /* @__PURE__ */ je.createElement(dx, null, /* @__PURE__ */ je.createElement(
9457
+ return /* @__PURE__ */ je.createElement(mx, null, /* @__PURE__ */ je.createElement(
9452
9458
  jp,
9453
9459
  {
9454
9460
  key: "grid",
@@ -9457,22 +9463,22 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9457
9463
  title: "Apply a grid to the preview",
9458
9464
  onClick: () => g({ value: l, grid: !u })
9459
9465
  },
9460
- /* @__PURE__ */ je.createElement(bx, null)
9466
+ /* @__PURE__ */ je.createElement(Ex, null)
9461
9467
  ), o > 0 ? /* @__PURE__ */ je.createElement(
9462
- hx,
9468
+ yx,
9463
9469
  {
9464
9470
  key: "background",
9465
9471
  placement: "top",
9466
9472
  closeOnOutsideClick: !0,
9467
9473
  tooltip: ({ onHide: p }) => /* @__PURE__ */ je.createElement(
9468
- gx,
9474
+ hx,
9469
9475
  {
9470
9476
  links: [
9471
9477
  ...r ? [
9472
9478
  {
9473
9479
  id: "reset",
9474
9480
  title: "Reset background",
9475
- icon: /* @__PURE__ */ je.createElement(xx, null),
9481
+ icon: /* @__PURE__ */ je.createElement(Cx, null),
9476
9482
  onClick: /* @__PURE__ */ a(() => {
9477
9483
  g({ value: void 0, grid: u }), p();
9478
9484
  }, "onClick")
@@ -9481,7 +9487,7 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9481
9487
  ...Object.entries(i).map(([f, m]) => ({
9482
9488
  id: f,
9483
9489
  title: m.name,
9484
- icon: /* @__PURE__ */ je.createElement(yx, { color: m?.value || "grey" }),
9490
+ icon: /* @__PURE__ */ je.createElement(bx, { color: m?.value || "grey" }),
9485
9491
  active: f === l,
9486
9492
  onClick: /* @__PURE__ */ a(() => {
9487
9493
  g({ value: f, grid: u }), p();
@@ -9500,7 +9506,7 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9500
9506
  title: "Change the background of the preview",
9501
9507
  active: !!r || d
9502
9508
  },
9503
- /* @__PURE__ */ je.createElement(Ex, null)
9509
+ /* @__PURE__ */ je.createElement(xx, null)
9504
9510
  )
9505
9511
  ) : null);
9506
9512
  }, "PureTool"));
@@ -9509,25 +9515,25 @@ var Vp = Fp(/* @__PURE__ */ a(function() {
9509
9515
  var Hp = Up.register(xo, () => {
9510
9516
  Up.add(xo, {
9511
9517
  title: "Backgrounds",
9512
- type: Ax.TOOL,
9518
+ type: wx.TOOL,
9513
9519
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => !!(e && e.match(/^(story|docs)$/)) && !t, "match"),
9514
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ Tx.createElement(Vp, null), "render")
9520
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ Ax.createElement(Vp, null), "render")
9515
9521
  });
9516
9522
  });
9517
9523
 
9518
9524
  // src/measure/manager.tsx
9519
- import Lx from "react";
9520
- import { addons as zp, types as Nx } from "storybook/manager-api";
9525
+ import Nx from "react";
9526
+ import { addons as zp, types as Dx } from "storybook/manager-api";
9521
9527
 
9522
9528
  // src/measure/Tool.tsx
9523
- import qp, { useCallback as wx, useEffect as Ox } from "react";
9524
- import { IconButton as kx } from "storybook/internal/components";
9525
- import { RulerIcon as _x } from "@storybook/icons";
9526
- import { useGlobals as Ix, useStorybookApi as Px } from "storybook/manager-api";
9529
+ import qp, { useCallback as Ox, useEffect as kx } from "react";
9530
+ import { IconButton as _x } from "storybook/internal/components";
9531
+ import { RulerIcon as Ix } from "@storybook/icons";
9532
+ import { useGlobals as Px, useStorybookApi as Lx } from "storybook/manager-api";
9527
9533
 
9528
9534
  // src/measure/constants.ts
9529
9535
  var st = "storybook/measure-addon", Co = `${st}/tool`;
9530
- var z2 = {
9536
+ var W2 = {
9531
9537
  RESULT: `${st}/result`,
9532
9538
  REQUEST: `${st}/request`,
9533
9539
  CLEAR: `${st}/clear`
@@ -9535,13 +9541,13 @@ var z2 = {
9535
9541
 
9536
9542
  // src/measure/Tool.tsx
9537
9543
  var $p = /* @__PURE__ */ a(() => {
9538
- let [e, t] = Ix(), { measureEnabled: r } = e || {}, o = Px(), n = wx(
9544
+ let [e, t] = Px(), { measureEnabled: r } = e || {}, o = Lx(), n = Ox(
9539
9545
  () => t({
9540
9546
  measureEnabled: !r
9541
9547
  }),
9542
9548
  [t, r]
9543
9549
  );
9544
- return Ox(() => {
9550
+ return kx(() => {
9545
9551
  o.setAddonShortcut(st, {
9546
9552
  label: "Toggle Measure [M]",
9547
9553
  defaultShortcut: ["M"],
@@ -9550,49 +9556,49 @@ var $p = /* @__PURE__ */ a(() => {
9550
9556
  action: n
9551
9557
  });
9552
9558
  }, [n, o]), /* @__PURE__ */ qp.createElement(
9553
- kx,
9559
+ _x,
9554
9560
  {
9555
9561
  key: Co,
9556
9562
  active: r,
9557
9563
  title: "Enable measure",
9558
9564
  onClick: n
9559
9565
  },
9560
- /* @__PURE__ */ qp.createElement(_x, null)
9566
+ /* @__PURE__ */ qp.createElement(Ix, null)
9561
9567
  );
9562
9568
  }, "Tool");
9563
9569
 
9564
9570
  // src/measure/manager.tsx
9565
9571
  var Gp = zp.register(st, () => {
9566
9572
  zp.add(Co, {
9567
- type: Nx.TOOL,
9573
+ type: Dx.TOOL,
9568
9574
  title: "Measure",
9569
9575
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => e === "story" && !t, "match"),
9570
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ Lx.createElement($p, null), "render")
9576
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ Nx.createElement($p, null), "render")
9571
9577
  });
9572
9578
  });
9573
9579
 
9574
9580
  // src/outline/manager.tsx
9575
- import Ux from "react";
9576
- import { addons as Kp, types as Hx } from "storybook/manager-api";
9581
+ import Hx from "react";
9582
+ import { addons as Kp, types as qx } from "storybook/manager-api";
9577
9583
 
9578
9584
  // src/outline/OutlineSelector.tsx
9579
- import Wp, { memo as Dx, useCallback as Mx, useEffect as Bx } from "react";
9580
- import { IconButton as Rx } from "storybook/internal/components";
9581
- import { OutlineIcon as jx } from "@storybook/icons";
9582
- import { useGlobals as Fx, useStorybookApi as Vx } from "storybook/manager-api";
9585
+ import Wp, { memo as Mx, useCallback as Bx, useEffect as Rx } from "react";
9586
+ import { IconButton as jx } from "storybook/internal/components";
9587
+ import { OutlineIcon as Fx } from "@storybook/icons";
9588
+ import { useGlobals as Vx, useStorybookApi as Ux } from "storybook/manager-api";
9583
9589
 
9584
9590
  // src/outline/constants.ts
9585
9591
  var dr = "storybook/outline", _a = "outline";
9586
9592
 
9587
9593
  // src/outline/OutlineSelector.tsx
9588
- var Jp = Dx(/* @__PURE__ */ a(function() {
9589
- let [t, r] = Fx(), o = Vx(), n = [!0, "true"].includes(t[_a]), s = Mx(
9594
+ var Jp = Mx(/* @__PURE__ */ a(function() {
9595
+ let [t, r] = Vx(), o = Ux(), n = [!0, "true"].includes(t[_a]), s = Bx(
9590
9596
  () => r({
9591
9597
  [_a]: !n
9592
9598
  }),
9593
9599
  [n]
9594
9600
  );
9595
- return Bx(() => {
9601
+ return Rx(() => {
9596
9602
  o.setAddonShortcut(dr, {
9597
9603
  label: "Toggle Outline",
9598
9604
  defaultShortcut: ["alt", "O"],
@@ -9601,14 +9607,14 @@ var Jp = Dx(/* @__PURE__ */ a(function() {
9601
9607
  action: s
9602
9608
  });
9603
9609
  }, [s, o]), /* @__PURE__ */ Wp.createElement(
9604
- Rx,
9610
+ jx,
9605
9611
  {
9606
9612
  key: "outline",
9607
9613
  active: n,
9608
9614
  title: "Apply outlines to the preview",
9609
9615
  onClick: s
9610
9616
  },
9611
- /* @__PURE__ */ Wp.createElement(jx, null)
9617
+ /* @__PURE__ */ Wp.createElement(Fx, null)
9612
9618
  );
9613
9619
  }, "OutlineSelector"));
9614
9620
 
@@ -9616,25 +9622,25 @@ var Jp = Dx(/* @__PURE__ */ a(function() {
9616
9622
  var Yp = Kp.register(dr, () => {
9617
9623
  Kp.add(dr, {
9618
9624
  title: "Outline",
9619
- type: Hx.TOOL,
9625
+ type: qx.TOOL,
9620
9626
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => !!(e && e.match(/^(story|docs)$/)) && !t, "match"),
9621
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ Ux.createElement(Jp, null), "render")
9627
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ Hx.createElement(Jp, null), "render")
9622
9628
  });
9623
9629
  });
9624
9630
 
9625
9631
  // src/viewport/manager.tsx
9626
9632
  import * as lu from "react";
9627
- import { addons as su, types as p1 } from "storybook/manager-api";
9633
+ import { addons as su, types as u1 } from "storybook/manager-api";
9628
9634
 
9629
9635
  // src/viewport/components/Tool.tsx
9630
- import be, { Fragment as Yx, useCallback as Xx, useEffect as Zx, useState as Qx } from "react";
9631
- import { IconButton as e1, TooltipLinkList as t1, WithTooltip as r1 } from "storybook/internal/components";
9632
- import { GrowIcon as o1, RefreshIcon as n1, TransferIcon as a1 } from "@storybook/icons";
9633
- import { useGlobals as s1, useParameter as l1 } from "storybook/manager-api";
9634
- import { Global as i1 } from "storybook/theming";
9636
+ import be, { Fragment as Xx, useCallback as Zx, useEffect as Qx, useState as e1 } from "react";
9637
+ import { IconButton as t1, TooltipLinkList as r1, WithTooltip as o1 } from "storybook/internal/components";
9638
+ import { GrowIcon as n1, RefreshIcon as a1, TransferIcon as s1 } from "@storybook/icons";
9639
+ import { useGlobals as l1, useParameter as i1 } from "storybook/manager-api";
9640
+ import { Global as c1 } from "storybook/theming";
9635
9641
 
9636
9642
  // src/viewport/constants.ts
9637
- var lt = "storybook/viewport", mr = "viewport", x_ = `${lt}/panel`, Xp = `${lt}/tool`;
9643
+ var lt = "storybook/viewport", mr = "viewport", v_ = `${lt}/panel`, Xp = `${lt}/tool`;
9638
9644
 
9639
9645
  // src/viewport/defaults.ts
9640
9646
  var Zp = {
@@ -9683,10 +9689,10 @@ var Mt = {
9683
9689
  };
9684
9690
 
9685
9691
  // src/viewport/shortcuts.ts
9686
- var Qp = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), qx = /* @__PURE__ */ a((e, t) => {
9692
+ var Qp = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), $x = /* @__PURE__ */ a((e, t) => {
9687
9693
  let r = Qp(e, t);
9688
9694
  return r === e.length - 1 ? e[0] : e[r + 1];
9689
- }, "getNextViewport"), $x = /* @__PURE__ */ a((e, t) => {
9695
+ }, "getNextViewport"), zx = /* @__PURE__ */ a((e, t) => {
9690
9696
  let r = Qp(e, t);
9691
9697
  return r < 1 ? e[e.length - 1] : e[r - 1];
9692
9698
  }, "getPreviousViewport"), eu = /* @__PURE__ */ a(async (e, t, r, o) => {
@@ -9696,7 +9702,7 @@ var Qp = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), q
9696
9702
  actionName: "previous",
9697
9703
  action: /* @__PURE__ */ a(() => {
9698
9704
  r({
9699
- viewport: $x(o, t)
9705
+ viewport: zx(o, t)
9700
9706
  });
9701
9707
  }, "action")
9702
9708
  }), await e.setAddonShortcut(lt, {
@@ -9705,7 +9711,7 @@ var Qp = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), q
9705
9711
  actionName: "next",
9706
9712
  action: /* @__PURE__ */ a(() => {
9707
9713
  r({
9708
- viewport: qx(o, t)
9714
+ viewport: $x(o, t)
9709
9715
  });
9710
9716
  }, "action")
9711
9717
  }), await e.setAddonShortcut(lt, {
@@ -9721,9 +9727,9 @@ var Qp = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), q
9721
9727
  }, "registerShortcuts");
9722
9728
 
9723
9729
  // src/viewport/utils.tsx
9724
- import vo, { Fragment as zx } from "react";
9725
- import { IconButton as Gx } from "storybook/internal/components";
9726
- import { BrowserIcon as Wx, MobileIcon as Jx, TabletIcon as Kx } from "@storybook/icons";
9730
+ import vo, { Fragment as Gx } from "react";
9731
+ import { IconButton as Wx } from "storybook/internal/components";
9732
+ import { BrowserIcon as Jx, MobileIcon as Kx, TabletIcon as Yx } from "@storybook/icons";
9727
9733
  import { styled as So } from "storybook/theming";
9728
9734
  var tu = So.div({
9729
9735
  display: "inline-flex",
@@ -9740,24 +9746,24 @@ var tu = So.div({
9740
9746
  borderTop: "3px solid transparent",
9741
9747
  borderBottom: "3px solid transparent",
9742
9748
  background: "transparent"
9743
- })), ru = So(Gx)(() => ({
9749
+ })), ru = So(Wx)(() => ({
9744
9750
  display: "inline-flex",
9745
9751
  alignItems: "center"
9746
9752
  })), ou = So.div(({ theme: e }) => ({
9747
9753
  fontSize: e.typography.size.s2 - 1,
9748
9754
  marginLeft: 10
9749
9755
  })), nu = {
9750
- desktop: /* @__PURE__ */ vo.createElement(Wx, null),
9751
- mobile: /* @__PURE__ */ vo.createElement(Jx, null),
9752
- tablet: /* @__PURE__ */ vo.createElement(Kx, null),
9753
- other: /* @__PURE__ */ vo.createElement(zx, null)
9756
+ desktop: /* @__PURE__ */ vo.createElement(Jx, null),
9757
+ mobile: /* @__PURE__ */ vo.createElement(Kx, null),
9758
+ tablet: /* @__PURE__ */ vo.createElement(Yx, null),
9759
+ other: /* @__PURE__ */ vo.createElement(Gx, null)
9754
9760
  };
9755
9761
 
9756
9762
  // src/viewport/components/Tool.tsx
9757
9763
  var au = /* @__PURE__ */ a(({ api: e }) => {
9758
- let t = l1(mr), [r, o, n] = s1(), [s, i] = Qx(!1), { options: l = Zp, disable: c } = t || {}, u = r?.[mr] || {}, d = typeof u == "string" ?
9764
+ let t = i1(mr), [r, o, n] = l1(), [s, i] = e1(!1), { options: l = Zp, disable: c } = t || {}, u = r?.[mr] || {}, d = typeof u == "string" ?
9759
9765
  u : u.value, g = typeof u == "string" ? !1 : u.isRotated, p = l[d] || Mt, f = s || p !== Mt, m = mr in n, y = Object.keys(l).length;
9760
- if (Zx(() => {
9766
+ if (Qx(() => {
9761
9767
  eu(e, d, o, Object.keys(l));
9762
9768
  }, [l, d, o, e]), p.styles === null || !l || y < 1)
9763
9769
  return null;
@@ -9767,7 +9773,7 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9767
9773
  ), null;
9768
9774
  let h = g ? p.styles.height : p.styles.width, b = g ? p.styles.width : p.styles.height;
9769
9775
  return c ? null : /* @__PURE__ */ be.createElement(
9770
- c1,
9776
+ p1,
9771
9777
  {
9772
9778
  item: p,
9773
9779
  updateGlobals: o,
@@ -9781,7 +9787,7 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9781
9787
  height: b
9782
9788
  }
9783
9789
  );
9784
- }, "ViewportTool"), c1 = be.memo(/* @__PURE__ */ a(function(t) {
9790
+ }, "ViewportTool"), p1 = be.memo(/* @__PURE__ */ a(function(t) {
9785
9791
  let {
9786
9792
  item: r,
9787
9793
  viewportMap: o,
@@ -9793,23 +9799,23 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9793
9799
  isActive: u,
9794
9800
  width: d,
9795
9801
  height: g
9796
- } = t, p = Xx(
9802
+ } = t, p = Zx(
9797
9803
  (f) => i({ [mr]: f }),
9798
9804
  [i]
9799
9805
  );
9800
- return /* @__PURE__ */ be.createElement(Yx, null, /* @__PURE__ */ be.createElement(
9801
- r1,
9806
+ return /* @__PURE__ */ be.createElement(Xx, null, /* @__PURE__ */ be.createElement(
9807
+ o1,
9802
9808
  {
9803
9809
  placement: "bottom",
9804
9810
  tooltip: ({ onHide: f }) => /* @__PURE__ */ be.createElement(
9805
- t1,
9811
+ r1,
9806
9812
  {
9807
9813
  links: [
9808
9814
  ...length > 0 && r !== Mt ? [
9809
9815
  {
9810
9816
  id: "reset",
9811
9817
  title: "Reset viewport",
9812
- icon: /* @__PURE__ */ be.createElement(n1, null),
9818
+ icon: /* @__PURE__ */ be.createElement(a1, null),
9813
9819
  onClick: /* @__PURE__ */ a(() => {
9814
9820
  p({ value: void 0, isRotated: !1 }), f();
9815
9821
  }, "onClick")
@@ -9841,11 +9847,11 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9841
9847
  p({ value: void 0, isRotated: !1 });
9842
9848
  }
9843
9849
  },
9844
- /* @__PURE__ */ be.createElement(o1, null),
9850
+ /* @__PURE__ */ be.createElement(n1, null),
9845
9851
  r !== Mt ? /* @__PURE__ */ be.createElement(ou, null, r.name, " ", s ? "(L)" : "(P)") : null
9846
9852
  )
9847
9853
  ), /* @__PURE__ */ be.createElement(
9848
- i1,
9854
+ c1,
9849
9855
  {
9850
9856
  styles: {
9851
9857
  'iframe[data-is-storybook="true"]': { width: d, height: g }
@@ -9853,7 +9859,7 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9853
9859
  }
9854
9860
  ), r !== Mt ? /* @__PURE__ */ be.createElement(tu, null, /* @__PURE__ */ be.createElement(Ia, { title: "Viewport width" }, d.replace("px",
9855
9861
  "")), c ? "/" : /* @__PURE__ */ be.createElement(
9856
- e1,
9862
+ t1,
9857
9863
  {
9858
9864
  key: "viewport-rotate",
9859
9865
  title: "Rotate viewport",
@@ -9861,7 +9867,7 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9861
9867
  p({ value: n, isRotated: !s });
9862
9868
  }
9863
9869
  },
9864
- /* @__PURE__ */ be.createElement(a1, null)
9870
+ /* @__PURE__ */ be.createElement(s1, null)
9865
9871
  ), /* @__PURE__ */ be.createElement(Ia, { title: "Viewport height" }, g.replace("px", ""))) : null);
9866
9872
  }, "PureTool"));
9867
9873
 
@@ -9869,31 +9875,31 @@ var au = /* @__PURE__ */ a(({ api: e }) => {
9869
9875
  var iu = su.register(lt, (e) => {
9870
9876
  su.add(Xp, {
9871
9877
  title: "viewport / media-queries",
9872
- type: p1.TOOL,
9878
+ type: u1.TOOL,
9873
9879
  match: /* @__PURE__ */ a(({ viewMode: t, tabId: r }) => t === "story" && !r, "match"),
9874
9880
  render: /* @__PURE__ */ a(() => /* @__PURE__ */ lu.createElement(au, { api: e }), "render")
9875
9881
  });
9876
9882
  });
9877
9883
 
9878
9884
  // src/core-server/presets/common-manager.ts
9879
- var m1 = "tag-filters", f1 = "static-filter", g1 = d1.register(m1, (e) => {
9880
- let t = Object.entries(u1.TAGS_OPTIONS ?? {}).reduce(
9885
+ var f1 = "tag-filters", g1 = "static-filter", h1 = m1.register(f1, (e) => {
9886
+ let t = Object.entries(d1.TAGS_OPTIONS ?? {}).reduce(
9881
9887
  (r, o) => {
9882
9888
  let [n, s] = o;
9883
9889
  return s.excludeFromSidebar && (r[n] = !0), r;
9884
9890
  },
9885
9891
  {}
9886
9892
  );
9887
- e.experimental_setFilter(f1, (r) => {
9893
+ e.experimental_setFilter(g1, (r) => {
9888
9894
  let o = r.tags ?? [];
9889
9895
  return (
9890
9896
  // we can filter out the primary story, but we still want to show autodocs
9891
9897
  (o.includes("dev") || r.type === "docs") && o.filter((n) => t[n]).length === 0
9892
9898
  );
9893
9899
  });
9894
- }), nI = [
9900
+ }), sI = [
9895
9901
  Gp,
9896
- g1,
9902
+ h1,
9897
9903
  Hi,
9898
9904
  Hp,
9899
9905
  Bp,
@@ -9902,5 +9908,5 @@ var m1 = "tag-filters", f1 = "static-filter", g1 = d1.register(m1, (e) => {
9902
9908
  Yp
9903
9909
  ];
9904
9910
  export {
9905
- nI as default
9911
+ sI as default
9906
9912
  };