storybook 9.1.0-alpha.7 → 9.1.0-alpha.9

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 (36) hide show
  1. package/dist/bin/index.cjs +43 -43
  2. package/dist/bin/index.js +43 -43
  3. package/dist/cli/bin/index.cjs +69 -69
  4. package/dist/cli/bin/index.js +61 -61
  5. package/dist/common/index.cjs +43 -43
  6. package/dist/common/index.js +43 -43
  7. package/dist/components/index.cjs +4140 -3977
  8. package/dist/components/index.d.ts +8 -11
  9. package/dist/components/index.js +2741 -2574
  10. package/dist/core-server/index.cjs +4 -1
  11. package/dist/core-server/index.js +4 -1
  12. package/dist/core-server/presets/common-manager.js +307 -300
  13. package/dist/core-server/presets/common-preset.cjs +85031 -5227
  14. package/dist/core-server/presets/common-preset.js +85102 -5288
  15. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +28727 -0
  16. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +28728 -0
  17. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.cjs +29339 -0
  18. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +29340 -0
  19. package/dist/csf-tools/index.cjs +319 -321
  20. package/dist/csf-tools/index.js +239 -241
  21. package/dist/manager/globals-module-info.cjs +1 -1
  22. package/dist/manager/globals-module-info.js +1 -1
  23. package/dist/manager/globals-runtime.js +15073 -14903
  24. package/dist/manager/runtime.js +103 -103
  25. package/dist/manager-api/index.cjs +1 -1
  26. package/dist/manager-api/index.d.ts +534 -8
  27. package/dist/manager-api/index.js +1 -1
  28. package/dist/preview/runtime.js +572 -568
  29. package/dist/telemetry/index.cjs +1733 -1642
  30. package/dist/telemetry/index.d.ts +2 -1
  31. package/dist/telemetry/index.js +1727 -1637
  32. package/dist/test/index.cjs +284 -280
  33. package/dist/test/index.d.ts +8 -1
  34. package/dist/test/index.js +5 -1
  35. package/package.json +14 -1
  36. package/templates/mocker-runtime.template.js +89 -0
@@ -495,7 +495,7 @@ var X, ct, Ne = $(() => {
495
495
  });
496
496
 
497
497
  // ../node_modules/color-name/index.js
498
- var uc = J((C5, pc) => {
498
+ var uc = J((w5, pc) => {
499
499
  "use strict";
500
500
  pc.exports = {
501
501
  aliceblue: [240, 248, 255],
@@ -650,7 +650,7 @@ var uc = J((C5, pc) => {
650
650
  });
651
651
 
652
652
  // ../node_modules/color-convert/conversions.js
653
- var sa = J((w5, fc) => {
653
+ var sa = J((T5, fc) => {
654
654
  var fr = uc(), dc = {};
655
655
  for (let e of Object.keys(fr))
656
656
  dc[fr[e]] = e;
@@ -985,7 +985,7 @@ var sa = J((w5, fc) => {
985
985
  });
986
986
 
987
987
  // ../node_modules/color-convert/route.js
988
- var gc = J((A5, mc) => {
988
+ var gc = J((k5, mc) => {
989
989
  var bo = sa();
990
990
  function mb() {
991
991
  let e = {}, t = Object.keys(bo);
@@ -1035,7 +1035,7 @@ var gc = J((A5, mc) => {
1035
1035
  });
1036
1036
 
1037
1037
  // ../node_modules/color-convert/index.js
1038
- var bc = J((O5, hc) => {
1038
+ var bc = J((I5, hc) => {
1039
1039
  var la = sa(), yb = gc(), qt = {}, xb = Object.keys(la);
1040
1040
  function vb(e) {
1041
1041
  let t = /* @__PURE__ */ a(function(...r) {
@@ -1695,7 +1695,7 @@ var Yc = J((Kc, va) => {
1695
1695
  });
1696
1696
 
1697
1697
  // ../node_modules/entities/lib/maps/entities.json
1698
- var Wa = J((e_, b1) => {
1698
+ var Wa = J((t_, b1) => {
1699
1699
  b1.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
1700
1700
  \xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
1701
1701
  Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\
@@ -1977,7 +1977,7 @@ var Wa = J((e_, b1) => {
1977
1977
  });
1978
1978
 
1979
1979
  // ../node_modules/entities/lib/maps/legacy.json
1980
- var Xp = J((t_, y1) => {
1980
+ var Xp = J((r_, y1) => {
1981
1981
  y1.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
1982
1982
  \xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
1983
1983
  \xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9",
@@ -1992,12 +1992,12 @@ var Xp = J((t_, y1) => {
1992
1992
  });
1993
1993
 
1994
1994
  // ../node_modules/entities/lib/maps/xml.json
1995
- var Ga = J((r_, x1) => {
1995
+ var Ga = J((o_, x1) => {
1996
1996
  x1.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
1997
1997
  });
1998
1998
 
1999
1999
  // ../node_modules/entities/lib/maps/decode.json
2000
- var Zp = J((o_, v1) => {
2000
+ var Zp = J((n_, v1) => {
2001
2001
  v1.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
2002
2002
  "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
2003
2003
  "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
@@ -2224,7 +2224,7 @@ var mu = J((F) => {
2224
2224
  });
2225
2225
 
2226
2226
  // ../node_modules/ansi-to-html/lib/ansi_to_html.js
2227
- var Tu = J((d_, wu) => {
2227
+ var Tu = J((f_, wu) => {
2228
2228
  "use strict";
2229
2229
  function F1(e, t) {
2230
2230
  if (!(e instanceof t))
@@ -2626,7 +2626,7 @@ e" : e === 9 ? t = "strike" : 29 < e && e < 38 || e === 39 || 89 < e && e < 98 ?
2626
2626
  });
2627
2627
 
2628
2628
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js
2629
- var Uo = J((F_, oi) => {
2629
+ var Uo = J((R_, oi) => {
2630
2630
  function ri() {
2631
2631
  return oi.exports = ri = Object.assign || function(e) {
2632
2632
  for (var t = 1; t < arguments.length; t++) {
@@ -2642,7 +2642,7 @@ var Uo = J((F_, oi) => {
2642
2642
  });
2643
2643
 
2644
2644
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2645
- var Nu = J((j_, Lu) => {
2645
+ var Nu = J((H_, Lu) => {
2646
2646
  function uv(e, t) {
2647
2647
  if (e == null) return {};
2648
2648
  var r = {}, o = Object.keys(e), n, i;
@@ -2655,7 +2655,7 @@ var Nu = J((j_, Lu) => {
2655
2655
  });
2656
2656
 
2657
2657
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2658
- var qo = J(($_, _u) => {
2658
+ var qo = J((V_, _u) => {
2659
2659
  var dv = Nu();
2660
2660
  function fv(e, t) {
2661
2661
  if (e == null) return {};
@@ -2672,7 +2672,7 @@ var qo = J(($_, _u) => {
2672
2672
  });
2673
2673
 
2674
2674
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js
2675
- var Bu = J((G_, Mu) => {
2675
+ var Bu = J((J_, Mu) => {
2676
2676
  function gv(e, t, r) {
2677
2677
  return t in e ? Object.defineProperty(e, t, {
2678
2678
  value: r,
@@ -2686,7 +2686,7 @@ var Bu = J((G_, Mu) => {
2686
2686
  });
2687
2687
 
2688
2688
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js
2689
- var ju = J((K_, Ru) => {
2689
+ var ju = J((Y_, Ru) => {
2690
2690
  var hv = Bu();
2691
2691
  function Fu(e, t) {
2692
2692
  var r = Object.keys(e);
@@ -2715,7 +2715,7 @@ var ju = J((K_, Ru) => {
2715
2715
  });
2716
2716
 
2717
2717
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2718
- var $u = J((X_, Hu) => {
2718
+ var $u = J((Z_, Hu) => {
2719
2719
  function yv(e, t) {
2720
2720
  if (e == null) return {};
2721
2721
  var r = {}, o = Object.keys(e), n, i;
@@ -2728,7 +2728,7 @@ var $u = J((X_, Hu) => {
2728
2728
  });
2729
2729
 
2730
2730
  // ../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2731
- var zu = J((Q_, Vu) => {
2731
+ var zu = J((eD, Vu) => {
2732
2732
  var xv = $u();
2733
2733
  function vv(e, t) {
2734
2734
  if (e == null) return {};
@@ -2745,7 +2745,7 @@ var zu = J((Q_, Vu) => {
2745
2745
  });
2746
2746
 
2747
2747
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js
2748
- var Gu = J((aD, Wu) => {
2748
+ var Gu = J((iD, Wu) => {
2749
2749
  function Sv(e, t, r) {
2750
2750
  return t in e ? Object.defineProperty(e, t, {
2751
2751
  value: r,
@@ -2759,7 +2759,7 @@ var Gu = J((aD, Wu) => {
2759
2759
  });
2760
2760
 
2761
2761
  // ../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js
2762
- var Yu = J((sD, Ku) => {
2762
+ var Yu = J((lD, Ku) => {
2763
2763
  var Cv = Gu();
2764
2764
  function Ju(e, t) {
2765
2765
  var r = Object.keys(e);
@@ -2788,7 +2788,7 @@ var Yu = J((sD, Ku) => {
2788
2788
  });
2789
2789
 
2790
2790
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/extends.js
2791
- var Xu = J((cD, ui) => {
2791
+ var Xu = J((pD, ui) => {
2792
2792
  function pi() {
2793
2793
  return ui.exports = pi = Object.assign || function(e) {
2794
2794
  for (var t = 1; t < arguments.length; t++) {
@@ -2804,7 +2804,7 @@ var Xu = J((cD, ui) => {
2804
2804
  });
2805
2805
 
2806
2806
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
2807
- var Qu = J((uD, Zu) => {
2807
+ var Qu = J((dD, Zu) => {
2808
2808
  function Tv(e, t) {
2809
2809
  if (e == null) return {};
2810
2810
  var r = {}, o = Object.keys(e), n, i;
@@ -2817,7 +2817,7 @@ var Qu = J((uD, Zu) => {
2817
2817
  });
2818
2818
 
2819
2819
  // ../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
2820
- var td = J((fD, ed) => {
2820
+ var td = J((mD, ed) => {
2821
2821
  var Av = Qu();
2822
2822
  function kv(e, t) {
2823
2823
  if (e == null) return {};
@@ -2834,8 +2834,8 @@ var td = J((fD, ed) => {
2834
2834
  });
2835
2835
 
2836
2836
  // src/core-server/presets/common-manager.ts
2837
- import { global as _C } from "@storybook/global";
2838
- import { addons as DC } from "storybook/manager-api";
2837
+ import { global as DC } from "@storybook/global";
2838
+ import { addons as MC } from "storybook/manager-api";
2839
2839
 
2840
2840
  // src/controls/manager.tsx
2841
2841
  import Me from "react";
@@ -2917,7 +2917,7 @@ import { styled as H0 } from "storybook/theming";
2917
2917
 
2918
2918
  // ../addons/docs/src/blocks/components/ArgsTable/ArgsTable.tsx
2919
2919
  or();
2920
- import q from "react";
2920
+ import W from "react";
2921
2921
  import { once as s0 } from "storybook/internal/client-logger";
2922
2922
  import { IconButton as l0, Link as c0, ResetWrapper as p0 } from "storybook/internal/components";
2923
2923
  import { includeConditionalArg as u0 } from "storybook/internal/csf";
@@ -3307,8 +3307,8 @@ var Ef = /* @__PURE__ */ a(function(t) {
3307
3307
  throw new Ce(72, o, t);
3308
3308
  return "" + n / i + t;
3309
3309
  };
3310
- }, "pxtoFactory"), zs = Ef, YT = zs("em");
3311
- var XT = zs("rem");
3310
+ }, "pxtoFactory"), zs = Ef, XT = zs("em");
3311
+ var ZT = zs("rem");
3312
3312
  function vn(e) {
3313
3313
  return Math.round(e * 255);
3314
3314
  }
@@ -3700,7 +3700,7 @@ function Hf(e, t) {
3700
3700
  }));
3701
3701
  }
3702
3702
  a(Hf, "adjustHue");
3703
- var ZT = Oe(Hf);
3703
+ var QT = Oe(Hf);
3704
3704
  function Rt(e, t, r) {
3705
3705
  return Math.max(e, Math.min(t, r));
3706
3706
  }
@@ -3722,7 +3722,7 @@ function zf(e, t) {
3722
3722
  }));
3723
3723
  }
3724
3724
  a(zf, "desaturate");
3725
- var QT = Oe(zf);
3725
+ var eA = Oe(zf);
3726
3726
  function Uf(e, t) {
3727
3727
  if (t === "transparent") return t;
3728
3728
  var r = nt(t);
@@ -3767,38 +3767,38 @@ function Yf(e, t) {
3767
3767
  }));
3768
3768
  }
3769
3769
  a(Yf, "saturate");
3770
- var eA = Oe(Yf);
3770
+ var tA = Oe(Yf);
3771
3771
  function Xf(e, t) {
3772
3772
  return t === "transparent" ? t : at(he({}, nt(t), {
3773
3773
  hue: parseFloat(e)
3774
3774
  }));
3775
3775
  }
3776
3776
  a(Xf, "setHue");
3777
- var tA = Oe(Xf);
3777
+ var rA = Oe(Xf);
3778
3778
  function Zf(e, t) {
3779
3779
  return t === "transparent" ? t : at(he({}, nt(t), {
3780
3780
  lightness: parseFloat(e)
3781
3781
  }));
3782
3782
  }
3783
3783
  a(Zf, "setLightness");
3784
- var rA = Oe(Zf);
3784
+ var oA = Oe(Zf);
3785
3785
  function Qf(e, t) {
3786
3786
  return t === "transparent" ? t : at(he({}, nt(t), {
3787
3787
  saturation: parseFloat(e)
3788
3788
  }));
3789
3789
  }
3790
3790
  a(Qf, "setSaturation");
3791
- var oA = Oe(Qf);
3791
+ var nA = Oe(Qf);
3792
3792
  function em(e, t) {
3793
3793
  return t === "transparent" ? t : qs(parseFloat(e), "rgb(0, 0, 0)", t);
3794
3794
  }
3795
3795
  a(em, "shade");
3796
- var nA = Oe(em);
3796
+ var aA = Oe(em);
3797
3797
  function tm(e, t) {
3798
3798
  return t === "transparent" ? t : qs(parseFloat(e), "rgb(255, 255, 255)", t);
3799
3799
  }
3800
3800
  a(tm, "tint");
3801
- var aA = Oe(tm);
3801
+ var iA = Oe(tm);
3802
3802
  function rm(e, t) {
3803
3803
  if (t === "transparent") return t;
3804
3804
  var r = Ft(t), o = typeof r.alpha == "number" ? r.alpha : 1, n = he({}, r, {
@@ -3917,10 +3917,10 @@ Yr, { style: { width: "80%" } })), "SourceSkeleton"), Gs = /* @__PURE__ */ a(({
3917
3917
  }, "Source");
3918
3918
 
3919
3919
  // ../addons/docs/src/blocks/components/DocsPage.tsx
3920
- import EA from "react";
3920
+ import SA from "react";
3921
3921
  import { withReset as Js } from "storybook/internal/components";
3922
3922
  import { styled as Xr } from "storybook/theming";
3923
- var re = /* @__PURE__ */ a((e) => `& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`, "toGlobalSelector"), An = 600, TA = Xr.
3923
+ var re = /* @__PURE__ */ a((e) => `& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`, "toGlobalSelector"), An = 600, AA = Xr.
3924
3924
  h1(Js, ({ theme: e }) => ({
3925
3925
  color: e.color.defaultText,
3926
3926
  fontSize: e.typography.size.m3,
@@ -3931,7 +3931,7 @@ h1(Js, ({ theme: e }) => ({
3931
3931
  lineHeight: "36px",
3932
3932
  marginBottom: "16px"
3933
3933
  }
3934
- })), AA = Xr.h2(Js, ({ theme: e }) => ({
3934
+ })), kA = Xr.h2(Js, ({ theme: e }) => ({
3935
3935
  fontWeight: e.typography.weight.regular,
3936
3936
  fontSize: e.typography.size.s3,
3937
3937
  lineHeight: "20px",
@@ -3943,7 +3943,7 @@ h1(Js, ({ theme: e }) => ({
3943
3943
  marginBottom: 24
3944
3944
  },
3945
3945
  color: B(0.25, e.color.defaultText)
3946
- })), kA = Xr.div(({ theme: e }) => {
3946
+ })), OA = Xr.div(({ theme: e }) => {
3947
3947
  let t = {
3948
3948
  fontFamily: e.typography.fonts.base,
3949
3949
  fontSize: e.typography.size.s3,
@@ -4289,7 +4289,7 @@ h1(Js, ({ theme: e }) => ({
4289
4289
  listStyle: "disc"
4290
4290
  }
4291
4291
  };
4292
- }), OA = Xr.div(({ theme: e }) => ({
4292
+ }), IA = Xr.div(({ theme: e }) => ({
4293
4293
  background: e.background.content,
4294
4294
  display: "flex",
4295
4295
  flexDirection: "row-reverse",
@@ -4315,13 +4315,13 @@ var it = /* @__PURE__ */ a((e) => ({
4315
4315
  }), "getBlockBackgroundStyle");
4316
4316
 
4317
4317
  // ../addons/docs/src/blocks/components/Story.tsx
4318
- import zA, { useEffect as UA, useRef as qA, useState as WA } from "react";
4319
- import { ErrorFormatter as JA, Loader as KA, getStoryHref as YA } from "storybook/internal/components";
4318
+ import UA, { useEffect as qA, useRef as WA, useState as GA } from "react";
4319
+ import { ErrorFormatter as KA, Loader as YA, getStoryHref as XA } from "storybook/internal/components";
4320
4320
  import { styled as bm } from "storybook/theming";
4321
4321
 
4322
4322
  // ../addons/docs/src/blocks/components/IFrame.tsx
4323
- import DA, { Component as MA } from "react";
4324
- var { window: BA } = globalThis;
4323
+ import MA, { Component as BA } from "react";
4324
+ var { window: FA } = globalThis;
4325
4325
 
4326
4326
  // ../addons/docs/src/blocks/components/ZoomContext.tsx
4327
4327
  import { createContext as hm } from "react";
@@ -4330,8 +4330,8 @@ var kn = hm({
4330
4330
  });
4331
4331
 
4332
4332
  // ../addons/docs/src/blocks/components/Story.tsx
4333
- var { PREVIEW_URL: ek } = globalThis;
4334
- var tk = bm.strong(({ theme: e }) => ({
4333
+ var { PREVIEW_URL: tk } = globalThis;
4334
+ var rk = bm.strong(({ theme: e }) => ({
4335
4335
  color: e.color.orange
4336
4336
  }));
4337
4337
 
@@ -4575,7 +4575,7 @@ var _m = jt(Ks)({
4575
4575
  ), /* @__PURE__ */ Re.createElement(km, { actionItems: E }))),
4576
4576
  n && p && f
4577
4577
  );
4578
- }, "Preview"), vk = jt(Mm)(() => ({
4578
+ }, "Preview"), Ek = jt(Mm)(() => ({
4579
4579
  ".docs-story": {
4580
4580
  paddingTop: 32,
4581
4581
  paddingBottom: 40
@@ -4583,46 +4583,46 @@ var _m = jt(Ks)({
4583
4583
  }));
4584
4584
 
4585
4585
  // ../addons/docs/src/blocks/components/ArgsTable/TabbedArgsTable.tsx
4586
- import wk from "react";
4587
- import { TabsState as Ak } from "storybook/internal/components";
4586
+ import Tk from "react";
4587
+ import { TabsState as kk } from "storybook/internal/components";
4588
4588
 
4589
4589
  // ../addons/docs/src/blocks/components/Typeset.tsx
4590
- import Mk from "react";
4590
+ import Bk from "react";
4591
4591
  import { withReset as Bm } from "storybook/internal/components";
4592
4592
  import { styled as Zr } from "storybook/theming";
4593
- var Hk = Zr.div(({ theme: e }) => ({
4593
+ var $k = Zr.div(({ theme: e }) => ({
4594
4594
  marginRight: 30,
4595
4595
  fontSize: `${e.typography.size.s1}px`,
4596
4596
  color: e.base === "light" ? B(0.4, e.color.defaultText) : B(0.6, e.color.defaultText)
4597
- })), $k = Zr.div({
4597
+ })), Vk = Zr.div({
4598
4598
  overflow: "hidden",
4599
4599
  whiteSpace: "nowrap",
4600
4600
  textOverflow: "ellipsis"
4601
- }), Vk = Zr.div({
4601
+ }), zk = Zr.div({
4602
4602
  display: "flex",
4603
4603
  flexDirection: "row",
4604
4604
  alignItems: "baseline",
4605
4605
  "&:not(:last-child)": { marginBottom: "1rem" }
4606
- }), zk = Zr.div(Bm, ({ theme: e }) => ({
4606
+ }), Uk = Zr.div(Bm, ({ theme: e }) => ({
4607
4607
  ...it(e),
4608
4608
  margin: "25px 0 40px",
4609
4609
  padding: "30px 20px"
4610
4610
  }));
4611
4611
 
4612
4612
  // ../addons/docs/src/blocks/components/ColorPalette.tsx
4613
- import Gk from "react";
4614
- import { ResetWrapper as Kk } from "storybook/internal/components";
4613
+ import Jk from "react";
4614
+ import { ResetWrapper as Yk } from "storybook/internal/components";
4615
4615
  import { styled as we } from "storybook/theming";
4616
- var Qk = we.div(({ theme: e }) => ({
4616
+ var e2 = we.div(({ theme: e }) => ({
4617
4617
  fontWeight: e.typography.weight.bold,
4618
4618
  color: e.color.defaultText
4619
- })), e2 = we.div(({ theme: e }) => ({
4619
+ })), t2 = we.div(({ theme: e }) => ({
4620
4620
  color: e.base === "light" ? B(0.2, e.color.defaultText) : B(0.6, e.color.defaultText)
4621
- })), t2 = we.div({
4621
+ })), r2 = we.div({
4622
4622
  flex: "0 0 30%",
4623
4623
  lineHeight: "20px",
4624
4624
  marginTop: 5
4625
- }), r2 = we.div(({ theme: e }) => ({
4625
+ }), o2 = we.div(({ theme: e }) => ({
4626
4626
  flex: 1,
4627
4627
  textAlign: "center",
4628
4628
  fontFamily: e.typography.fonts.mono,
@@ -4640,10 +4640,10 @@ var Qk = we.div(({ theme: e }) => ({
4640
4640
  display: "block",
4641
4641
  marginTop: 2
4642
4642
  }
4643
- })), o2 = we.div({
4643
+ })), n2 = we.div({
4644
4644
  display: "flex",
4645
4645
  flexDirection: "row"
4646
- }), n2 = we.div(({ background: e }) => ({
4646
+ }), a2 = we.div(({ background: e }) => ({
4647
4647
  position: "relative",
4648
4648
  flex: 1,
4649
4649
  "&::before": {
@@ -4655,7 +4655,7 @@ var Qk = we.div(({ theme: e }) => ({
4655
4655
  background: e,
4656
4656
  content: '""'
4657
4657
  }
4658
- })), a2 = we.div(({ theme: e }) => ({
4658
+ })), i2 = we.div(({ theme: e }) => ({
4659
4659
  ...it(e),
4660
4660
  display: "flex",
4661
4661
  flexDirection: "row",
@@ -4665,31 +4665,31 @@ var Qk = we.div(({ theme: e }) => ({
4665
4665
  backgroundColor: "white",
4666
4666
  backgroundImage: "repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",
4667
4667
  backgroundClip: "padding-box"
4668
- })), i2 = we.div({
4668
+ })), s2 = we.div({
4669
4669
  display: "flex",
4670
4670
  flexDirection: "column",
4671
4671
  flex: 1,
4672
4672
  position: "relative",
4673
4673
  marginBottom: 30
4674
- }), s2 = we.div({
4674
+ }), l2 = we.div({
4675
4675
  flex: 1,
4676
4676
  display: "flex",
4677
4677
  flexDirection: "row"
4678
- }), l2 = we.div({
4678
+ }), c2 = we.div({
4679
4679
  display: "flex",
4680
4680
  alignItems: "flex-start"
4681
- }), c2 = we.div({
4682
- flex: "0 0 30%"
4683
4681
  }), p2 = we.div({
4682
+ flex: "0 0 30%"
4683
+ }), u2 = we.div({
4684
4684
  flex: 1
4685
- }), u2 = we.div(({ theme: e }) => ({
4685
+ }), d2 = we.div(({ theme: e }) => ({
4686
4686
  display: "flex",
4687
4687
  flexDirection: "row",
4688
4688
  alignItems: "center",
4689
4689
  paddingBottom: 20,
4690
4690
  fontWeight: e.typography.weight.bold,
4691
4691
  color: e.base === "light" ? B(0.4, e.color.defaultText) : B(0.6, e.color.defaultText)
4692
- })), d2 = we.div(({ theme: e }) => ({
4692
+ })), f2 = we.div(({ theme: e }) => ({
4693
4693
  fontSize: e.typography.size.s2,
4694
4694
  lineHeight: "20px",
4695
4695
  display: "flex",
@@ -4697,10 +4697,10 @@ var Qk = we.div(({ theme: e }) => ({
4697
4697
  }));
4698
4698
 
4699
4699
  // ../addons/docs/src/blocks/components/IconGallery.tsx
4700
- import h2 from "react";
4701
- import { ResetWrapper as y2 } from "storybook/internal/components";
4700
+ import b2 from "react";
4701
+ import { ResetWrapper as x2 } from "storybook/internal/components";
4702
4702
  import { styled as Qr } from "storybook/theming";
4703
- var E2 = Qr.div(({ theme: e }) => ({
4703
+ var S2 = Qr.div(({ theme: e }) => ({
4704
4704
  fontFamily: e.typography.fonts.base,
4705
4705
  fontSize: e.typography.size.s1,
4706
4706
  color: e.color.defaultText,
@@ -4712,7 +4712,7 @@ var E2 = Qr.div(({ theme: e }) => ({
4712
4712
  textOverflow: "ellipsis",
4713
4713
  WebkitLineClamp: 2,
4714
4714
  WebkitBoxOrient: "vertical"
4715
- })), S2 = Qr.div(({ theme: e }) => ({
4715
+ })), C2 = Qr.div(({ theme: e }) => ({
4716
4716
  ...it(e),
4717
4717
  overflow: "hidden",
4718
4718
  height: 40,
@@ -4725,12 +4725,12 @@ var E2 = Qr.div(({ theme: e }) => ({
4725
4725
  width: 20,
4726
4726
  height: 20
4727
4727
  }
4728
- })), C2 = Qr.div({
4728
+ })), w2 = Qr.div({
4729
4729
  display: "inline-flex",
4730
4730
  flexDirection: "row",
4731
4731
  alignItems: "center",
4732
4732
  width: "100%"
4733
- }), w2 = Qr.div({
4733
+ }), T2 = Qr.div({
4734
4734
  display: "grid",
4735
4735
  gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))",
4736
4736
  gridGap: "8px 16px",
@@ -4739,15 +4739,15 @@ var E2 = Qr.div(({ theme: e }) => ({
4739
4739
  });
4740
4740
 
4741
4741
  // ../addons/docs/src/blocks/components/TableOfContents.tsx
4742
- import rO, { useEffect as oO, useId as nO } from "react";
4743
- import { NAVIGATE_URL as iO } from "storybook/internal/core-events";
4742
+ import oO, { useEffect as nO, useId as aO } from "react";
4743
+ import { NAVIGATE_URL as sO } from "storybook/internal/core-events";
4744
4744
  import { styled as Nn } from "storybook/theming";
4745
- var cO = Nn.aside(() => ({
4745
+ var pO = Nn.aside(() => ({
4746
4746
  width: "10rem",
4747
4747
  "@media (max-width: 768px)": {
4748
4748
  display: "none"
4749
4749
  }
4750
- })), pO = Nn.nav(({ theme: e }) => ({
4750
+ })), uO = Nn.nav(({ theme: e }) => ({
4751
4751
  position: "fixed",
4752
4752
  bottom: 0,
4753
4753
  top: 0,
@@ -4806,7 +4806,7 @@ var cO = Nn.aside(() => ({
4806
4806
  color: e.color.secondary,
4807
4807
  textDecoration: "none"
4808
4808
  }
4809
- })), uO = Nn.p(({ theme: e }) => ({
4809
+ })), dO = Nn.p(({ theme: e }) => ({
4810
4810
  fontWeight: 600,
4811
4811
  fontSize: "0.875em",
4812
4812
  color: e.textColor,
@@ -8284,11 +8284,11 @@ redFirst"),
8284
8284
  } = e;
8285
8285
  if ("error" in e) {
8286
8286
  let { error: x } = e;
8287
- return /* @__PURE__ */ q.createElement(Kr, null, x, "\xA0", /* @__PURE__ */ q.createElement(c0, { href: "http://storybook.js.org/docs/",
8288
- target: "_blank", withArrow: !0 }, /* @__PURE__ */ q.createElement(d0, null), " Read the docs"));
8287
+ return /* @__PURE__ */ W.createElement(Kr, null, x, "\xA0", /* @__PURE__ */ W.createElement(c0, { href: "http://storybook.js.org/docs/",
8288
+ target: "_blank", withArrow: !0 }, /* @__PURE__ */ W.createElement(d0, null), " Read the docs"));
8289
8289
  }
8290
8290
  if (l)
8291
- return /* @__PURE__ */ q.createElement(lp, null);
8291
+ return /* @__PURE__ */ W.createElement(lp, null);
8292
8292
  let { rows: c, args: u, globals: d } = "rows" in e ? e : { rows: void 0, args: void 0, globals: void 0 }, g = y0(
8293
8293
  yn(
8294
8294
  c || {},
@@ -8297,19 +8297,19 @@ redFirst"),
8297
8297
  s
8298
8298
  ), p = g.ungrouped.length === 0, m = Object.entries(g.sections).length === 0, f = Object.entries(g.ungroupedSubsections).length === 0;
8299
8299
  if (p && m && f)
8300
- return /* @__PURE__ */ q.createElement(ip, { inAddonPanel: n });
8300
+ return /* @__PURE__ */ W.createElement(ip, { inAddonPanel: n });
8301
8301
  let h = 1;
8302
8302
  t && (h += 1), o || (h += 2);
8303
8303
  let b = Object.keys(g.sections).length > 0, y = { updateArgs: t, compact: o, inAddonPanel: n, initialExpandedArgs: i };
8304
- return /* @__PURE__ */ q.createElement(p0, null, /* @__PURE__ */ q.createElement(m0, { compact: o, inAddonPanel: n, className: "docblock-a\
8305
- rgstable sb-unstyled" }, /* @__PURE__ */ q.createElement("thead", { className: "docblock-argstable-head" }, /* @__PURE__ */ q.createElement(
8306
- "tr", null, /* @__PURE__ */ q.createElement("th", null, /* @__PURE__ */ q.createElement("span", null, "Name")), o ? null : /* @__PURE__ */ q.
8307
- createElement("th", null, /* @__PURE__ */ q.createElement("span", null, "Description")), o ? null : /* @__PURE__ */ q.createElement("th", null,
8308
- /* @__PURE__ */ q.createElement("span", null, "Default")), t ? /* @__PURE__ */ q.createElement("th", null, /* @__PURE__ */ q.createElement(
8309
- h0, null, "Control", " ", !l && r && /* @__PURE__ */ q.createElement(g0, { onClick: () => r(), title: "Reset controls" }, /* @__PURE__ */ q.
8310
- createElement(f0, { "aria-hidden": !0 })))) : null)), /* @__PURE__ */ q.createElement("tbody", { className: "docblock-argstable-body" }, g.
8311
- ungrouped.map((x) => /* @__PURE__ */ q.createElement(br, { key: x.key, row: x, arg: u && u[x.key], ...y })), Object.entries(g.ungroupedSubsections).
8312
- map(([x, v]) => /* @__PURE__ */ q.createElement(Ao, { key: x, label: x, level: "subsection", colSpan: h }, v.map((w) => /* @__PURE__ */ q.
8304
+ return /* @__PURE__ */ W.createElement(p0, null, /* @__PURE__ */ W.createElement(m0, { compact: o, inAddonPanel: n, className: "docblock-a\
8305
+ rgstable sb-unstyled" }, /* @__PURE__ */ W.createElement("thead", { className: "docblock-argstable-head" }, /* @__PURE__ */ W.createElement(
8306
+ "tr", null, /* @__PURE__ */ W.createElement("th", null, /* @__PURE__ */ W.createElement("span", null, "Name")), o ? null : /* @__PURE__ */ W.
8307
+ createElement("th", null, /* @__PURE__ */ W.createElement("span", null, "Description")), o ? null : /* @__PURE__ */ W.createElement("th", null,
8308
+ /* @__PURE__ */ W.createElement("span", null, "Default")), t ? /* @__PURE__ */ W.createElement("th", null, /* @__PURE__ */ W.createElement(
8309
+ h0, null, "Control", " ", !l && r && /* @__PURE__ */ W.createElement(g0, { onClick: () => r(), title: "Reset controls" }, /* @__PURE__ */ W.
8310
+ createElement(f0, { "aria-hidden": !0 })))) : null)), /* @__PURE__ */ W.createElement("tbody", { className: "docblock-argstable-body" }, g.
8311
+ ungrouped.map((x) => /* @__PURE__ */ W.createElement(br, { key: x.key, row: x, arg: u && u[x.key], ...y })), Object.entries(g.ungroupedSubsections).
8312
+ map(([x, v]) => /* @__PURE__ */ W.createElement(Ao, { key: x, label: x, level: "subsection", colSpan: h }, v.map((w) => /* @__PURE__ */ W.
8313
8313
  createElement(
8314
8314
  br,
8315
8315
  {
@@ -8319,9 +8319,9 @@ rgstable sb-unstyled" }, /* @__PURE__ */ q.createElement("thead", { className: "
8319
8319
  expandable: b,
8320
8320
  ...y
8321
8321
  }
8322
- )))), Object.entries(g.sections).map(([x, v]) => /* @__PURE__ */ q.createElement(Ao, { key: x, label: x, level: "section", colSpan: h }, v.
8323
- ungrouped.map((w) => /* @__PURE__ */ q.createElement(br, { key: w.key, row: w, arg: u && u[w.key], ...y })), Object.entries(v.subsections).
8324
- map(([w, S]) => /* @__PURE__ */ q.createElement(
8322
+ )))), Object.entries(g.sections).map(([x, v]) => /* @__PURE__ */ W.createElement(Ao, { key: x, label: x, level: "section", colSpan: h }, v.
8323
+ ungrouped.map((w) => /* @__PURE__ */ W.createElement(br, { key: w.key, row: w, arg: u && u[w.key], ...y })), Object.entries(v.subsections).
8324
+ map(([w, S]) => /* @__PURE__ */ W.createElement(
8325
8325
  Ao,
8326
8326
  {
8327
8327
  key: w,
@@ -8329,7 +8329,7 @@ rgstable sb-unstyled" }, /* @__PURE__ */ q.createElement("thead", { className: "
8329
8329
  level: "subsection",
8330
8330
  colSpan: h
8331
8331
  },
8332
- S.map((E) => /* @__PURE__ */ q.createElement(
8332
+ S.map((E) => /* @__PURE__ */ W.createElement(
8333
8333
  br,
8334
8334
  {
8335
8335
  key: E.key,
@@ -9783,24 +9783,24 @@ var qp = Up.register(Pt, (e) => {
9783
9783
 
9784
9784
  // src/component-testing/manager.tsx
9785
9785
  import nn from "react";
9786
- import { AddonPanel as LS } from "storybook/internal/components";
9787
- import { Consumer as NS, addons as _d, types as _S } from "storybook/manager-api";
9786
+ import { AddonPanel as NS } from "storybook/internal/components";
9787
+ import { Consumer as _S, addons as _d, types as DS } from "storybook/manager-api";
9788
9788
 
9789
9789
  // src/component-testing/components/Panel.tsx
9790
- import Id, { Fragment as hS, memo as bS, useEffect as Ci, useMemo as Pd, useRef as wi, useState as Ti } from "react";
9790
+ import Id, { Fragment as bS, memo as yS, useEffect as Ci, useMemo as Pd, useRef as wi, useState as Ti } from "react";
9791
9791
  import {
9792
- FORCE_REMOUNT as yS,
9793
- PLAY_FUNCTION_THREW_EXCEPTION as xS,
9794
- STORY_RENDER_PHASE_CHANGED as vS,
9795
- STORY_THREW_EXCEPTION as ES,
9796
- UNHANDLED_ERRORS_WHILE_PLAYING as SS
9792
+ FORCE_REMOUNT as xS,
9793
+ PLAY_FUNCTION_THREW_EXCEPTION as vS,
9794
+ STORY_RENDER_PHASE_CHANGED as ES,
9795
+ STORY_THREW_EXCEPTION as SS,
9796
+ UNHANDLED_ERRORS_WHILE_PLAYING as CS
9797
9797
  } from "storybook/internal/core-events";
9798
9798
  import { global as Ai } from "@storybook/global";
9799
9799
  import {
9800
- experimental_useStatusStore as CS,
9801
- useAddonState as wS,
9802
- useChannel as TS,
9803
- useParameter as AS
9800
+ experimental_useStatusStore as wS,
9801
+ useAddonState as TS,
9802
+ useChannel as AS,
9803
+ useParameter as kS
9804
9804
  } from "storybook/manager-api";
9805
9805
 
9806
9806
  // src/component-testing/constants.ts
@@ -9810,12 +9810,12 @@ rnal_render_call";
9810
9810
 
9811
9811
  // ../addons/a11y/src/constants.ts
9812
9812
  var gt = "storybook/a11y", f1 = `${gt}/panel`;
9813
- var HN = `${gt}/result`, $N = `${gt}/request`, VN = `${gt}/running`, zN = `${gt}/error`, UN = `${gt}/manual`, qN = `${gt}/select`, m1 = "wri\
9814
- ting-tests/accessibility-testing", WN = `${m1}#why-are-my-tests-failing-in-different-environments`;
9813
+ var $N = `${gt}/result`, VN = `${gt}/request`, zN = `${gt}/running`, UN = `${gt}/error`, qN = `${gt}/manual`, WN = `${gt}/select`, m1 = "wri\
9814
+ ting-tests/accessibility-testing", GN = `${m1}#why-are-my-tests-failing-in-different-environments`;
9815
9815
 
9816
9816
  // ../addons/vitest/src/constants.ts
9817
- var Jp = "storybook/test", JN = `${Jp}/test-provider`, Kp = "STORYBOOK_ADDON_TEST_CHANNEL";
9818
- var g1 = "writing-tests/integrations/vitest-addon", KN = `${g1}#what-happens-if-vitest-itself-has-an-error`;
9817
+ var Jp = "storybook/test", KN = `${Jp}/test-provider`, Kp = "STORYBOOK_ADDON_TEST_CHANNEL";
9818
+ var g1 = "writing-tests/integrations/vitest-addon", YN = `${g1}#what-happens-if-vitest-itself-has-an-error`;
9819
9819
  var h1 = {
9820
9820
  id: Jp,
9821
9821
  initialState: {
@@ -9852,7 +9852,7 @@ var h1 = {
9852
9852
  }
9853
9853
  }
9854
9854
  };
9855
- var YN = `UNIVERSAL_STORE:${h1.id}`;
9855
+ var XN = `UNIVERSAL_STORE:${h1.id}`;
9856
9856
  var Yp = "storybook/component-test";
9857
9857
 
9858
9858
  // src/instrumenter/EVENTS.ts
@@ -9982,9 +9982,9 @@ e a play function for your story and you'll see it run here."),
9982
9982
  }, "Empty");
9983
9983
 
9984
9984
  // src/component-testing/components/Interaction.tsx
9985
- import * as W from "react";
9985
+ import * as q from "react";
9986
9986
  import { IconButton as wE, TooltipNote as TE, WithTooltip as AE } from "storybook/internal/components";
9987
- import { ListUnorderedIcon as kE } from "@storybook/icons";
9987
+ import { ChevronDownIcon as kE, ChevronUpIcon as OE } from "@storybook/icons";
9988
9988
  import { styled as He, typography as Qo } from "storybook/theming";
9989
9989
 
9990
9990
  // src/component-testing/components/MatcherResult.tsx
@@ -10934,12 +10934,12 @@ CCCCCC"), size: 6 }));
10934
10934
  }, "StatusIcon");
10935
10935
 
10936
10936
  // src/component-testing/components/Interaction.tsx
10937
- var OE = He.div({
10937
+ var IE = He.div({
10938
10938
  fontFamily: Qo.fonts.mono,
10939
10939
  fontSize: Qo.size.s1,
10940
10940
  overflowWrap: "break-word",
10941
10941
  inlineSize: "calc( 100% - 40px )"
10942
- }), IE = He("div", {
10942
+ }), PE = He("div", {
10943
10943
  shouldForwardProp: /* @__PURE__ */ a((e) => !["call", "pausedAt"].includes(e.toString()), "shouldForwardProp")
10944
10944
  })(
10945
10945
  ({ theme: e, call: t }) => ({
@@ -10973,10 +10973,10 @@ var OE = He.div({
10973
10973
  borderTop: `1.5px solid ${e.color.warning}`
10974
10974
  }
10975
10975
  }
10976
- ), PE = He.div(({ theme: e, isInteractive: t }) => ({
10976
+ ), LE = He.div(({ theme: e, isInteractive: t }) => ({
10977
10977
  display: "flex",
10978
10978
  "&:hover": t ? {} : { background: e.background.hoverable }
10979
- })), LE = He("button", {
10979
+ })), NE = He("button", {
10980
10980
  shouldForwardProp: /* @__PURE__ */ a((e) => !["call"].includes(e.toString()), "shouldForwardProp")
10981
10981
  })(({ theme: e, disabled: t, call: r }) => ({
10982
10982
  flex: 1,
@@ -10998,14 +10998,14 @@ var OE = He.div({
10998
10998
  "& > div": {
10999
10999
  opacity: r.status === "waiting" ? 0.5 : 1
11000
11000
  }
11001
- })), NE = He.div({
11001
+ })), _E = He.div({
11002
11002
  display: "flex",
11003
11003
  alignItems: "center",
11004
11004
  padding: 6
11005
- }), _E = He(wE)(({ theme: e }) => ({
11005
+ }), DE = He(wE)(({ theme: e }) => ({
11006
11006
  color: e.textMutedColor,
11007
11007
  margin: "0 3px"
11008
- })), DE = He(TE)(({ theme: e }) => ({
11008
+ })), ME = He(TE)(({ theme: e }) => ({
11009
11009
  fontFamily: e.typography.fonts.base
11010
11010
  })), vi = He("div")(({ theme: e }) => ({
11011
11011
  padding: "8px 10px 8px 36px",
@@ -11015,28 +11015,28 @@ var OE = He.div({
11015
11015
  margin: 0,
11016
11016
  padding: 0
11017
11017
  }
11018
- })), ME = He.span(({ theme: e }) => ({
11019
- color: e.base === "dark" ? "#5EC1FF" : "#0271B6"
11020
11018
  })), BE = He.span(({ theme: e }) => ({
11019
+ color: e.base === "dark" ? "#5EC1FF" : "#0271B6"
11020
+ })), FE = He.span(({ theme: e }) => ({
11021
11021
  color: e.base === "dark" ? "#eee" : "#444"
11022
- })), FE = He.p(({ theme: e }) => ({
11022
+ })), RE = He.p(({ theme: e }) => ({
11023
11023
  color: e.base === "dark" ? e.color.negative : e.color.negativeText,
11024
11024
  fontSize: e.typography.size.s2,
11025
11025
  maxWidth: 500,
11026
11026
  textWrap: "balance"
11027
- })), RE = /* @__PURE__ */ a(({ exception: e }) => {
11027
+ })), jE = /* @__PURE__ */ a(({ exception: e }) => {
11028
11028
  let t = Qt();
11029
11029
  if (!e)
11030
11030
  return null;
11031
11031
  if (e.callId === xe)
11032
- return /* @__PURE__ */ W.createElement(vi, null, /* @__PURE__ */ W.createElement("pre", null, /* @__PURE__ */ W.createElement(ME, null, e.
11033
- name, ":"), " ", /* @__PURE__ */ W.createElement(BE, null, e.message)), /* @__PURE__ */ W.createElement(FE, null, "The component failed \
11032
+ return /* @__PURE__ */ q.createElement(vi, null, /* @__PURE__ */ q.createElement("pre", null, /* @__PURE__ */ q.createElement(BE, null, e.
11033
+ name, ":"), " ", /* @__PURE__ */ q.createElement(FE, null, e.message)), /* @__PURE__ */ q.createElement(RE, null, "The component failed \
11034
11034
  to render properly. Automated component tests will not run until this is resolved. Check the full error message in Storybook\u2019s canvas to deb\
11035
11035
  ug."));
11036
11036
  if (ti(e))
11037
- return /* @__PURE__ */ W.createElement(xi, { ...e });
11037
+ return /* @__PURE__ */ q.createElement(xi, { ...e });
11038
11038
  if (ei(e))
11039
- return /* @__PURE__ */ W.createElement(vi, null, /* @__PURE__ */ W.createElement(
11039
+ return /* @__PURE__ */ q.createElement(vi, null, /* @__PURE__ */ q.createElement(
11040
11040
  xi,
11041
11041
  {
11042
11042
  message: `${e.message}${e.diff ? `
@@ -11044,12 +11044,12 @@ ug."));
11044
11044
  ${e.diff}` : ""}`,
11045
11045
  style: { padding: 0 }
11046
11046
  }
11047
- ), /* @__PURE__ */ W.createElement("p", null, "See the full stack trace in the browser console."));
11047
+ ), /* @__PURE__ */ q.createElement("p", null, "See the full stack trace in the browser console."));
11048
11048
  let r = e.message.split(`
11049
11049
 
11050
11050
  `), o = r.length > 1;
11051
- return /* @__PURE__ */ W.createElement(vi, null, /* @__PURE__ */ W.createElement("pre", { dangerouslySetInnerHTML: { __html: t.toHtml(r[0]) } }),
11052
- o && /* @__PURE__ */ W.createElement("p", null, "See the full stack trace in the browser console."));
11051
+ return /* @__PURE__ */ q.createElement(vi, null, /* @__PURE__ */ q.createElement("pre", { dangerouslySetInnerHTML: { __html: t.toHtml(r[0]) } }),
11052
+ o && /* @__PURE__ */ q.createElement("p", null, "See the full stack trace in the browser console."));
11053
11053
  }, "Exception"), yd = /* @__PURE__ */ a(({
11054
11054
  call: e,
11055
11055
  callsById: t,
@@ -11061,10 +11061,10 @@ ${e.diff}` : ""}`,
11061
11061
  toggleCollapsed: l,
11062
11062
  pausedAt: c
11063
11063
  }) => {
11064
- let [u, d] = W.useState(!1), g = !o.goto || !e.interceptable || !!e.ancestors?.length;
11065
- return i || e.id === xe ? null : /* @__PURE__ */ W.createElement(IE, { call: e, pausedAt: c }, /* @__PURE__ */ W.createElement(PE, { isInteractive: g },
11066
- /* @__PURE__ */ W.createElement(
11067
- LE,
11064
+ let [u, d] = q.useState(!1), g = !o.goto || !e.interceptable || !!e.ancestors?.length;
11065
+ return i || e.id === xe ? null : /* @__PURE__ */ q.createElement(PE, { call: e, pausedAt: c }, /* @__PURE__ */ q.createElement(LE, { isInteractive: g },
11066
+ /* @__PURE__ */ q.createElement(
11067
+ NE,
11068
11068
  {
11069
11069
  "aria-label": "Interaction step",
11070
11070
  call: e,
@@ -11073,50 +11073,57 @@ ${e.diff}` : ""}`,
11073
11073
  onMouseEnter: () => o.goto && d(!0),
11074
11074
  onMouseLeave: () => o.goto && d(!1)
11075
11075
  },
11076
- /* @__PURE__ */ W.createElement(Zo, { status: u ? "active" : e.status }),
11077
- /* @__PURE__ */ W.createElement(OE, { style: { marginLeft: 6, marginBottom: 1 } }, /* @__PURE__ */ W.createElement(Xo, { call: e, callsById: t }))
11078
- ), /* @__PURE__ */ W.createElement(NE, null, (n?.length ?? 0) > 0 && /* @__PURE__ */ W.createElement(
11076
+ /* @__PURE__ */ q.createElement(Zo, { status: u ? "active" : e.status }),
11077
+ /* @__PURE__ */ q.createElement(IE, { style: { marginLeft: 6, marginBottom: 1 } }, /* @__PURE__ */ q.createElement(Xo, { call: e, callsById: t }))
11078
+ ), /* @__PURE__ */ q.createElement(_E, null, (n?.length ?? 0) > 0 && /* @__PURE__ */ q.createElement(
11079
11079
  AE,
11080
11080
  {
11081
11081
  hasChrome: !1,
11082
- tooltip: /* @__PURE__ */ W.createElement(DE, { note: `${s ? "Show" : "Hide"} interactions` })
11082
+ tooltip: /* @__PURE__ */ q.createElement(ME, { note: `${s ? "Show" : "Hide"} interactions` })
11083
11083
  },
11084
- /* @__PURE__ */ W.createElement(_E, { onClick: l }, /* @__PURE__ */ W.createElement(kE, null))
11085
- ))), e.status === "error" && e.exception?.callId === e.id && /* @__PURE__ */ W.createElement(RE, { exception: e.exception }));
11084
+ /* @__PURE__ */ q.createElement(
11085
+ DE,
11086
+ {
11087
+ onClick: l,
11088
+ "aria-label": s ? "Expand interaction" : "Collapse interaction"
11089
+ },
11090
+ s ? /* @__PURE__ */ q.createElement(kE, null) : /* @__PURE__ */ q.createElement(OE, null)
11091
+ )
11092
+ ))), e.status === "error" && e.exception?.callId === e.id && /* @__PURE__ */ q.createElement(jE, { exception: e.exception }));
11086
11093
  }, "Interaction");
11087
11094
 
11088
11095
  // src/component-testing/components/Subnav.tsx
11089
11096
  import z from "react";
11090
11097
  import {
11091
- Bar as UE,
11092
- Button as qE,
11093
- IconButton as WE,
11094
- P as GE,
11095
- Separator as JE,
11096
- TooltipNote as KE,
11098
+ Bar as qE,
11099
+ Button as WE,
11100
+ IconButton as GE,
11101
+ P as JE,
11102
+ Separator as KE,
11103
+ TooltipNote as YE,
11097
11104
  WithTooltip as Pr
11098
11105
  } from "storybook/internal/components";
11099
11106
  import {
11100
- FastForwardIcon as YE,
11101
- PlayBackIcon as XE,
11102
- PlayNextIcon as ZE,
11103
- RewindIcon as QE,
11104
- SyncIcon as eS
11107
+ FastForwardIcon as XE,
11108
+ PlayBackIcon as ZE,
11109
+ PlayNextIcon as QE,
11110
+ RewindIcon as eS,
11111
+ SyncIcon as tS
11105
11112
  } from "@storybook/icons";
11106
- import { styled as $e, useTheme as tS } from "storybook/theming";
11113
+ import { styled as $e, useTheme as rS } from "storybook/theming";
11107
11114
 
11108
11115
  // src/component-testing/components/StatusBadge.tsx
11109
- import jE from "react";
11110
- import { styled as HE, typography as Ei } from "storybook/theming";
11111
- var $E = {
11116
+ import HE from "react";
11117
+ import { styled as $E, typography as Ei } from "storybook/theming";
11118
+ var VE = {
11112
11119
  done: "positive",
11113
11120
  error: "negative",
11114
11121
  active: "warning",
11115
11122
  waiting: "warning"
11116
- }, VE = HE.div(({ theme: e, status: t }) => ({
11123
+ }, zE = $E.div(({ theme: e, status: t }) => ({
11117
11124
  padding: "4px 6px 4px 8px",
11118
11125
  borderRadius: "4px",
11119
- backgroundColor: e.color[$E[t]],
11126
+ backgroundColor: e.color[VE[t]],
11120
11127
  color: "white",
11121
11128
  fontFamily: Ei.fonts.base,
11122
11129
  textTransform: "uppercase",
@@ -11125,30 +11132,30 @@ var $E = {
11125
11132
  fontWeight: Ei.weight.bold,
11126
11133
  width: 65,
11127
11134
  textAlign: "center"
11128
- })), zE = {
11135
+ })), UE = {
11129
11136
  done: "Pass",
11130
11137
  error: "Fail",
11131
11138
  active: "Runs",
11132
11139
  waiting: "Runs"
11133
11140
  }, xd = /* @__PURE__ */ a(({ status: e }) => {
11134
- let t = zE[e];
11135
- return /* @__PURE__ */ jE.createElement(VE, { "aria-label": "Status of the test run", status: e }, t);
11141
+ let t = UE[e];
11142
+ return /* @__PURE__ */ HE.createElement(zE, { "aria-label": "Status of the test run", status: e }, t);
11136
11143
  }, "StatusBadge");
11137
11144
 
11138
11145
  // src/component-testing/components/Subnav.tsx
11139
- var rS = $e.div(({ theme: e }) => ({
11146
+ var oS = $e.div(({ theme: e }) => ({
11140
11147
  boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`,
11141
11148
  background: e.background.app,
11142
11149
  position: "sticky",
11143
11150
  top: 0,
11144
11151
  zIndex: 1
11145
- })), oS = $e.nav({
11152
+ })), nS = $e.nav({
11146
11153
  height: 40,
11147
11154
  display: "flex",
11148
11155
  alignItems: "center",
11149
11156
  justifyContent: "space-between",
11150
11157
  paddingLeft: 15
11151
- }), nS = $e(qE)(({ theme: e }) => ({
11158
+ }), aS = $e(WE)(({ theme: e }) => ({
11152
11159
  borderRadius: 4,
11153
11160
  padding: 6,
11154
11161
  color: e.textMutedColor,
@@ -11157,14 +11164,14 @@ var rS = $e.div(({ theme: e }) => ({
11157
11164
  color: e.color.secondary
11158
11165
  }
11159
11166
  }
11160
- })), Lr = $e(KE)(({ theme: e }) => ({
11167
+ })), Lr = $e(YE)(({ theme: e }) => ({
11161
11168
  fontFamily: e.typography.fonts.base
11162
- })), Nr = $e(WE)(({ theme: e }) => ({
11169
+ })), Nr = $e(GE)(({ theme: e }) => ({
11163
11170
  color: e.textMutedColor,
11164
11171
  margin: "0 3px"
11165
- })), aS = $e(JE)({
11172
+ })), iS = $e(KE)({
11166
11173
  marginTop: 0
11167
- }), iS = $e(GE)(({ theme: e }) => ({
11174
+ }), sS = $e(JE)(({ theme: e }) => ({
11168
11175
  color: e.textMutedColor,
11169
11176
  justifyContent: "flex-end",
11170
11177
  textAlign: "right",
@@ -11176,14 +11183,14 @@ var rS = $e.div(({ theme: e }) => ({
11176
11183
  })), vd = $e.div({
11177
11184
  display: "flex",
11178
11185
  alignItems: "center"
11179
- }), sS = $e(Nr)({
11186
+ }), lS = $e(Nr)({
11180
11187
  marginLeft: 9
11181
- }), lS = $e(nS)({
11188
+ }), cS = $e(aS)({
11182
11189
  marginLeft: 9,
11183
11190
  marginRight: 9,
11184
11191
  marginBottom: 1,
11185
11192
  lineHeight: "12px"
11186
- }), cS = $e(Nr)(({ theme: e, animating: t, disabled: r }) => ({
11193
+ }), pS = $e(Nr)(({ theme: e, animating: t, disabled: r }) => ({
11187
11194
  opacity: r ? 0.5 : 1,
11188
11195
  svg: {
11189
11196
  animation: t ? `${e.animation.rotate360} 200ms ease-out` : void 0
@@ -11195,19 +11202,19 @@ var rS = $e.div(({ theme: e }) => ({
11195
11202
  storyFileName: o,
11196
11203
  onScrollToEnd: n
11197
11204
  }) => {
11198
- let i = r === "error" ? "Scroll to error" : "Scroll to end", s = tS();
11199
- return /* @__PURE__ */ z.createElement(rS, null, /* @__PURE__ */ z.createElement(UE, { backgroundColor: s.background.app }, /* @__PURE__ */ z.
11200
- createElement(oS, { "aria-label": "Component tests toolbar" }, /* @__PURE__ */ z.createElement(vd, null, /* @__PURE__ */ z.createElement(xd,
11201
- { status: r }), /* @__PURE__ */ z.createElement(lS, { onClick: n, disabled: !n }, i), /* @__PURE__ */ z.createElement(aS, null), /* @__PURE__ */ z.
11205
+ let i = r === "error" ? "Scroll to error" : "Scroll to end", s = rS();
11206
+ return /* @__PURE__ */ z.createElement(oS, null, /* @__PURE__ */ z.createElement(qE, { backgroundColor: s.background.app }, /* @__PURE__ */ z.
11207
+ createElement(nS, { "aria-label": "Component tests toolbar" }, /* @__PURE__ */ z.createElement(vd, null, /* @__PURE__ */ z.createElement(xd,
11208
+ { status: r }), /* @__PURE__ */ z.createElement(cS, { onClick: n, disabled: !n }, i), /* @__PURE__ */ z.createElement(iS, null), /* @__PURE__ */ z.
11202
11209
  createElement(Pr, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ z.createElement(Lr, { note: "Go to start" }) }, /* @__PURE__ */ z.
11203
11210
  createElement(
11204
- sS,
11211
+ lS,
11205
11212
  {
11206
11213
  "aria-label": "Go to start",
11207
11214
  onClick: e.start,
11208
11215
  disabled: !t.start
11209
11216
  },
11210
- /* @__PURE__ */ z.createElement(QE, null)
11217
+ /* @__PURE__ */ z.createElement(eS, null)
11211
11218
  )), /* @__PURE__ */ z.createElement(Pr, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ z.createElement(Lr, { note: "Go back" }) },
11212
11219
  /* @__PURE__ */ z.createElement(
11213
11220
  Nr,
@@ -11216,7 +11223,7 @@ var rS = $e.div(({ theme: e }) => ({
11216
11223
  onClick: e.back,
11217
11224
  disabled: !t.back
11218
11225
  },
11219
- /* @__PURE__ */ z.createElement(XE, null)
11226
+ /* @__PURE__ */ z.createElement(ZE, null)
11220
11227
  )), /* @__PURE__ */ z.createElement(Pr, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ z.createElement(Lr, { note: "Go forwar\
11221
11228
  d" }) }, /* @__PURE__ */ z.createElement(
11222
11229
  Nr,
@@ -11225,7 +11232,7 @@ d" }) }, /* @__PURE__ */ z.createElement(
11225
11232
  onClick: e.next,
11226
11233
  disabled: !t.next
11227
11234
  },
11228
- /* @__PURE__ */ z.createElement(ZE, null)
11235
+ /* @__PURE__ */ z.createElement(QE, null)
11229
11236
  )), /* @__PURE__ */ z.createElement(Pr, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ z.createElement(Lr, { note: "Go to end" }) },
11230
11237
  /* @__PURE__ */ z.createElement(
11231
11238
  Nr,
@@ -11234,18 +11241,18 @@ d" }) }, /* @__PURE__ */ z.createElement(
11234
11241
  onClick: e.end,
11235
11242
  disabled: !t.end
11236
11243
  },
11237
- /* @__PURE__ */ z.createElement(YE, null)
11244
+ /* @__PURE__ */ z.createElement(XE, null)
11238
11245
  )), /* @__PURE__ */ z.createElement(Pr, { trigger: "hover", hasChrome: !1, tooltip: /* @__PURE__ */ z.createElement(Lr, { note: "Rerun" }) },
11239
- /* @__PURE__ */ z.createElement(cS, { "aria-label": "Rerun", onClick: e.rerun }, /* @__PURE__ */ z.createElement(eS, null)))), o && /* @__PURE__ */ z.
11240
- createElement(vd, null, /* @__PURE__ */ z.createElement(iS, null, o)))));
11246
+ /* @__PURE__ */ z.createElement(pS, { "aria-label": "Rerun", onClick: e.rerun }, /* @__PURE__ */ z.createElement(tS, null)))), o && /* @__PURE__ */ z.
11247
+ createElement(vd, null, /* @__PURE__ */ z.createElement(sS, null, o)))));
11241
11248
  }, "Subnav");
11242
11249
 
11243
11250
  // src/component-testing/components/TestDiscrepancyMessage.tsx
11244
11251
  import Sd from "react";
11245
- import { Link as pS } from "storybook/internal/components";
11246
- import { useStorybookApi as uS } from "storybook/manager-api";
11247
- import { styled as dS } from "storybook/theming";
11248
- var fS = dS.div(({ theme: { color: e, typography: t, background: r } }) => ({
11252
+ import { Link as uS } from "storybook/internal/components";
11253
+ import { useStorybookApi as dS } from "storybook/manager-api";
11254
+ import { styled as fS } from "storybook/theming";
11255
+ var mS = fS.div(({ theme: { color: e, typography: t, background: r } }) => ({
11249
11256
  textAlign: "start",
11250
11257
  padding: "11px 15px",
11251
11258
  fontSize: `${t.size.s2 - 1}px`,
@@ -11266,17 +11273,17 @@ var fS = dS.div(({ theme: { color: e, typography: t, background: r } }) => ({
11266
11273
  boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)"
11267
11274
  }
11268
11275
  })), Cd = /* @__PURE__ */ a(({ browserTestStatus: e }) => {
11269
- let r = uS().getDocsUrl({
11276
+ let r = dS().getDocsUrl({
11270
11277
  subpath: Wp,
11271
11278
  versioned: !0,
11272
11279
  renderer: !0
11273
11280
  }), [o, n] = e === "error" ? ["the CLI", "this browser"] : ["this browser", "the CLI"];
11274
- return /* @__PURE__ */ Sd.createElement(fS, null, "This interaction test passed in ", o, ", but the tests failed in ", n, ".", " ", /* @__PURE__ */ Sd.
11275
- createElement(pS, { href: r, target: "_blank", withArrow: !0 }, "Learn what could cause this"));
11281
+ return /* @__PURE__ */ Sd.createElement(mS, null, "This interaction test passed in ", o, ", but the tests failed in ", n, ".", " ", /* @__PURE__ */ Sd.
11282
+ createElement(uS, { href: r, target: "_blank", withArrow: !0 }, "Learn what could cause this"));
11276
11283
  }, "TestDiscrepancyMessage");
11277
11284
 
11278
11285
  // src/component-testing/components/InteractionsPanel.tsx
11279
- var mS = er.div(({ theme: e }) => ({
11286
+ var gS = er.div(({ theme: e }) => ({
11280
11287
  height: "100%",
11281
11288
  background: e.background.content
11282
11289
  })), wd = er.div(({ theme: e }) => ({
@@ -11297,7 +11304,7 @@ var mS = er.div(({ theme: e }) => ({
11297
11304
  })), Td = er.div({
11298
11305
  paddingBottom: 4,
11299
11306
  fontWeight: "bold"
11300
- }), gS = er.p({
11307
+ }), hS = er.p({
11301
11308
  margin: 0,
11302
11309
  padding: "0 0 20px"
11303
11310
  }), Ad = er.pre(({ theme: e }) => ({
@@ -11326,7 +11333,7 @@ var mS = er.div(({ theme: e }) => ({
11326
11333
  browserTestStatus: h
11327
11334
  }) {
11328
11335
  let b = Qt(), y = i.some((x) => x.id !== xe);
11329
- return /* @__PURE__ */ Q.createElement(mS, null, f && /* @__PURE__ */ Q.createElement(Cd, { browserTestStatus: h }), n.detached && (y ||
11336
+ return /* @__PURE__ */ Q.createElement(gS, null, f && /* @__PURE__ */ Q.createElement(Cd, { browserTestStatus: h }), n.detached && (y ||
11330
11337
  l) && /* @__PURE__ */ Q.createElement(Iu, { storyUrl: t }), (i.length > 0 || l) && /* @__PURE__ */ Q.createElement(
11331
11338
  Ed,
11332
11339
  {
@@ -11360,7 +11367,7 @@ var mS = er.div(({ theme: e }) => ({
11360
11367
  }
11361
11368
  }
11362
11369
  )), u && /* @__PURE__ */ Q.createElement(wd, null, /* @__PURE__ */ Q.createElement(Td, null, "Unhandled Errors"), /* @__PURE__ */ Q.createElement(
11363
- gS, null, "Found ", u.length, " unhandled error", u.length > 1 ? "s" : "", " ", "while running the play function. This might cause false\
11370
+ hS, null, "Found ", u.length, " unhandled error", u.length > 1 ? "s" : "", " ", "while running the play function. This might cause false\
11364
11371
  positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the", /* @__PURE__ */ Q.createElement(Si, null, "test\
11365
11372
  .dangerouslyIgnoreUnhandledErrors"), " ", "parameter to ", /* @__PURE__ */ Q.createElement(Si, null, "true"), "."), u.map((x, v) => /* @__PURE__ */ Q.createElement(
11366
11373
  Ad, { key: v, "data-chromatic": "ignore" }, kd(x)))), /* @__PURE__ */ Q.createElement("div", { ref: m }), !d && !c && !y && /* @__PURE__ */ Q.createElement(
@@ -11380,7 +11387,7 @@ var en = {
11380
11387
  goto: !1,
11381
11388
  next: !1,
11382
11389
  end: !1
11383
- }, kS = {
11390
+ }, OS = {
11384
11391
  done: "status-value:success",
11385
11392
  error: "status-value:error",
11386
11393
  active: "status-value:pending",
@@ -11422,15 +11429,15 @@ var en = {
11422
11429
  callId: xe,
11423
11430
  status: e,
11424
11431
  ancestors: []
11425
- }), "getInternalRenderLogItem"), Ld = bS(
11432
+ }), "getInternalRenderLogItem"), Ld = yS(
11426
11433
  /* @__PURE__ */ a(function({ refId: t, storyId: r, storyUrl: o }) {
11427
- let { statusValue: n, testRunId: i } = CS((M) => {
11434
+ let { statusValue: n, testRunId: i } = wS((M) => {
11428
11435
  let R = t ? void 0 : M[r]?.[Yp];
11429
11436
  return {
11430
11437
  statusValue: R?.value,
11431
11438
  testRunId: R?.data?.testRunId
11432
11439
  };
11433
- }), [s, l] = wS(Lt, {
11440
+ }), [s, l] = TS(Lt, {
11434
11441
  controlStates: en,
11435
11442
  isErrored: !1,
11436
11443
  pausedAt: void 0,
@@ -11458,7 +11465,7 @@ var en = {
11458
11465
  { root: Ai.document.querySelector("#panel-tab-content") }
11459
11466
  ), L.current && M.observe(L.current)), () => M?.disconnect();
11460
11467
  }, []);
11461
- let U = TS(
11468
+ let U = AS(
11462
11469
  {
11463
11470
  [ht.CALL]: N,
11464
11471
  [ht.SYNC]: (M) => {
@@ -11480,7 +11487,7 @@ var en = {
11480
11487
  };
11481
11488
  });
11482
11489
  },
11483
- [vS]: (M) => {
11490
+ [ES]: (M) => {
11484
11491
  if (M.newPhase === "preparing")
11485
11492
  S.current = [rn("active")], E.current.set(xe, ki(r)), l({
11486
11493
  controlStates: en,
@@ -11513,7 +11520,7 @@ var en = {
11513
11520
  );
11514
11521
  }
11515
11522
  },
11516
- [ES]: (M) => {
11523
+ [SS]: (M) => {
11517
11524
  S.current = [rn("error")], E.current.set(
11518
11525
  xe,
11519
11526
  ki(r, { ...M, callId: xe })
@@ -11537,10 +11544,10 @@ var en = {
11537
11544
  })
11538
11545
  );
11539
11546
  },
11540
- [xS]: (M) => {
11547
+ [vS]: (M) => {
11541
11548
  l((R) => ({ ...R, caughtException: M, hasException: !0 }));
11542
11549
  },
11543
- [SS]: (M) => {
11550
+ [CS]: (M) => {
11544
11551
  l((R) => ({ ...R, unhandledErrors: M, hasException: !0 }));
11545
11552
  }
11546
11553
  },
@@ -11567,15 +11574,15 @@ var en = {
11567
11574
  next: /* @__PURE__ */ a(() => U(ht.NEXT, { storyId: r }), "next"),
11568
11575
  end: /* @__PURE__ */ a(() => U(ht.END, { storyId: r }), "end"),
11569
11576
  rerun: /* @__PURE__ */ a(() => {
11570
- U(yS, { storyId: r });
11577
+ U(xS, { storyId: r });
11571
11578
  }, "rerun")
11572
11579
  }),
11573
11580
  [U, r]
11574
- ), G = AS("fileName", ""), [Z] = G.toString().split("/").slice(-1), se = /* @__PURE__ */ a(() => c?.scrollIntoView({ behavior: "smooth",
11581
+ ), G = kS("fileName", ""), [Z] = G.toString().split("/").slice(-1), se = /* @__PURE__ */ a(() => c?.scrollIntoView({ behavior: "smooth",
11575
11582
  block: "end" }), "scrollToTarget"), te = !!v || !!w || // @ts-expect-error TODO
11576
11583
  y.some((M) => M.status === "error"), pe = Pd(() => !x && (y.length > 0 || te) ? te ? "error" : "done" : x ? "active" : void 0, [x, y, te]);
11577
11584
  return Ci(() => {
11578
- if (pe && n && n !== "status-value:pending" && n !== kS[pe]) {
11585
+ if (pe && n && n !== "status-value:pending" && n !== OS[pe]) {
11579
11586
  let R = setTimeout(
11580
11587
  () => m((T) => (T || U(Kp, {
11581
11588
  type: "test-discrepancy",
@@ -11591,7 +11598,7 @@ var en = {
11591
11598
  return () => clearTimeout(R);
11592
11599
  } else
11593
11600
  m(!1);
11594
- }, [U, pe, n, r, i]), /* @__PURE__ */ Id.createElement(hS, { key: "component-tests" }, /* @__PURE__ */ Id.createElement(
11601
+ }, [U, pe, n, r, i]), /* @__PURE__ */ Id.createElement(bS, { key: "component-tests" }, /* @__PURE__ */ Id.createElement(
11595
11602
  Od,
11596
11603
  {
11597
11604
  storyUrl: o,
@@ -11617,12 +11624,12 @@ var en = {
11617
11624
 
11618
11625
  // src/component-testing/components/PanelTitle.tsx
11619
11626
  import on from "react";
11620
- import { Badge as OS } from "storybook/internal/components";
11621
- import { useAddonState as IS, useStorybookApi as PS } from "storybook/manager-api";
11627
+ import { Badge as IS } from "storybook/internal/components";
11628
+ import { useAddonState as PS, useStorybookApi as LS } from "storybook/manager-api";
11622
11629
  function Nd() {
11623
- let t = PS().getSelectedPanel(), [r = {}] = IS(Lt), { isErrored: o, hasException: n, interactionsCount: i } = r;
11630
+ let t = LS().getSelectedPanel(), [r = {}] = PS(Lt), { isErrored: o, hasException: n, interactionsCount: i } = r;
11624
11631
  return /* @__PURE__ */ on.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } }, /* @__PURE__ */ on.createElement(
11625
- "span", null, "Interactions"), i && !o && !n ? /* @__PURE__ */ on.createElement(OS, { compact: !0, status: t === Zt ? "active" : "neutral" },
11632
+ "span", null, "Interactions"), i && !o && !n ? /* @__PURE__ */ on.createElement(IS, { compact: !0, status: t === Zt ? "active" : "neutral" },
11626
11633
  i) : null, o || n ? /* @__PURE__ */ on.createElement(Zo, { status: "error" }) : null);
11627
11634
  }
11628
11635
  a(Nd, "PanelTitle");
@@ -11640,28 +11647,28 @@ var Dd = _d.register(Lt, () => {
11640
11647
  };
11641
11648
  }, "filter");
11642
11649
  _d.add(Zt, {
11643
- type: _S.PANEL,
11650
+ type: DS.PANEL,
11644
11651
  title: /* @__PURE__ */ a(() => /* @__PURE__ */ nn.createElement(Nd, null), "title"),
11645
11652
  match: /* @__PURE__ */ a(({ viewMode: t }) => t === "story", "match"),
11646
- render: /* @__PURE__ */ a(({ active: t }) => /* @__PURE__ */ nn.createElement(LS, { active: !!t }, /* @__PURE__ */ nn.createElement(NS,
11653
+ render: /* @__PURE__ */ a(({ active: t }) => /* @__PURE__ */ nn.createElement(NS, { active: !!t }, /* @__PURE__ */ nn.createElement(_S,
11647
11654
  { filter: e }, (r) => /* @__PURE__ */ nn.createElement(Ld, { ...r }))), "render")
11648
11655
  });
11649
11656
  }
11650
11657
  });
11651
11658
 
11652
11659
  // src/backgrounds/manager.tsx
11653
- import WS from "react";
11654
- import { addons as jd, types as GS } from "storybook/manager-api";
11660
+ import GS from "react";
11661
+ import { addons as jd, types as JS } from "storybook/manager-api";
11655
11662
 
11656
11663
  // src/backgrounds/components/Tool.tsx
11657
- import Je, { Fragment as DS, memo as Fd, useCallback as MS, useState as BS } from "react";
11658
- import { IconButton as Bd, TooltipLinkList as FS, WithTooltip as RS } from "storybook/internal/components";
11659
- import { CircleIcon as jS, GridIcon as HS, PhotoIcon as $S, RefreshIcon as VS } from "@storybook/icons";
11660
- import { useGlobals as zS, useParameter as US } from "storybook/manager-api";
11664
+ import Je, { Fragment as MS, memo as Fd, useCallback as BS, useState as FS } from "react";
11665
+ import { IconButton as Bd, TooltipLinkList as RS, WithTooltip as jS } from "storybook/internal/components";
11666
+ import { CircleIcon as HS, GridIcon as $S, PhotoIcon as VS, RefreshIcon as zS } from "@storybook/icons";
11667
+ import { useGlobals as US, useParameter as qS } from "storybook/manager-api";
11661
11668
 
11662
11669
  // src/backgrounds/constants.ts
11663
11670
  var an = "storybook/background", _r = "backgrounds";
11664
- var FB = {
11671
+ var RB = {
11665
11672
  UPDATE: `${an}/update`
11666
11673
  };
11667
11674
 
@@ -11673,12 +11680,12 @@ var Md = {
11673
11680
 
11674
11681
  // src/backgrounds/components/Tool.tsx
11675
11682
  var Rd = Fd(/* @__PURE__ */ a(function() {
11676
- let t = US(_r), [r, o, n] = zS(), [i, s] = BS(!1), { options: l = Md, disable: c = !0 } = t || {};
11683
+ let t = qS(_r), [r, o, n] = US(), [i, s] = FS(!1), { options: l = Md, disable: c = !0 } = t || {};
11677
11684
  if (c)
11678
11685
  return null;
11679
11686
  let u = r[_r] || {}, d = u.value, g = u.grid || !1, p = l[d], m = !!n?.[_r], f = Object.keys(l).length;
11680
11687
  return /* @__PURE__ */ Je.createElement(
11681
- qS,
11688
+ WS,
11682
11689
  {
11683
11690
  length: f,
11684
11691
  backgroundMap: l,
@@ -11691,7 +11698,7 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11691
11698
  isTooltipVisible: i
11692
11699
  }
11693
11700
  );
11694
- }, "BackgroundSelector")), qS = Fd(/* @__PURE__ */ a(function(t) {
11701
+ }, "BackgroundSelector")), WS = Fd(/* @__PURE__ */ a(function(t) {
11695
11702
  let {
11696
11703
  item: r,
11697
11704
  length: o,
@@ -11702,7 +11709,7 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11702
11709
  isLocked: c,
11703
11710
  isGridActive: u,
11704
11711
  isTooltipVisible: d
11705
- } = t, g = MS(
11712
+ } = t, g = BS(
11706
11713
  (p) => {
11707
11714
  n({
11708
11715
  [_r]: p
@@ -11710,7 +11717,7 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11710
11717
  },
11711
11718
  [n]
11712
11719
  );
11713
- return /* @__PURE__ */ Je.createElement(DS, null, /* @__PURE__ */ Je.createElement(
11720
+ return /* @__PURE__ */ Je.createElement(MS, null, /* @__PURE__ */ Je.createElement(
11714
11721
  Bd,
11715
11722
  {
11716
11723
  key: "grid",
@@ -11719,22 +11726,22 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11719
11726
  title: "Apply a grid to the preview",
11720
11727
  onClick: () => g({ value: l, grid: !u })
11721
11728
  },
11722
- /* @__PURE__ */ Je.createElement(HS, null)
11729
+ /* @__PURE__ */ Je.createElement($S, null)
11723
11730
  ), o > 0 ? /* @__PURE__ */ Je.createElement(
11724
- RS,
11731
+ jS,
11725
11732
  {
11726
11733
  key: "background",
11727
11734
  placement: "top",
11728
11735
  closeOnOutsideClick: !0,
11729
11736
  tooltip: ({ onHide: p }) => /* @__PURE__ */ Je.createElement(
11730
- FS,
11737
+ RS,
11731
11738
  {
11732
11739
  links: [
11733
11740
  ...r ? [
11734
11741
  {
11735
11742
  id: "reset",
11736
11743
  title: "Reset background",
11737
- icon: /* @__PURE__ */ Je.createElement(VS, null),
11744
+ icon: /* @__PURE__ */ Je.createElement(zS, null),
11738
11745
  onClick: /* @__PURE__ */ a(() => {
11739
11746
  g(void 0), p();
11740
11747
  }, "onClick")
@@ -11743,7 +11750,7 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11743
11750
  ...Object.entries(s).map(([m, f]) => ({
11744
11751
  id: m,
11745
11752
  title: f.name,
11746
- icon: /* @__PURE__ */ Je.createElement(jS, { color: f?.value || "grey" }),
11753
+ icon: /* @__PURE__ */ Je.createElement(HS, { color: f?.value || "grey" }),
11747
11754
  active: m === l,
11748
11755
  onClick: /* @__PURE__ */ a(() => {
11749
11756
  g({ value: m, grid: u }), p();
@@ -11762,7 +11769,7 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11762
11769
  title: "Change the background of the preview",
11763
11770
  active: !!r || d
11764
11771
  },
11765
- /* @__PURE__ */ Je.createElement($S, null)
11772
+ /* @__PURE__ */ Je.createElement(VS, null)
11766
11773
  )
11767
11774
  ) : null);
11768
11775
  }, "PureTool"));
@@ -11771,25 +11778,25 @@ var Rd = Fd(/* @__PURE__ */ a(function() {
11771
11778
  var Hd = jd.register(an, () => {
11772
11779
  globalThis?.FEATURES?.backgrounds && jd.add(an, {
11773
11780
  title: "Backgrounds",
11774
- type: GS.TOOL,
11781
+ type: JS.TOOL,
11775
11782
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => !!(e && e.match(/^(story|docs)$/)) && !t, "match"),
11776
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ WS.createElement(Rd, null), "render")
11783
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ GS.createElement(Rd, null), "render")
11777
11784
  });
11778
11785
  });
11779
11786
 
11780
11787
  // src/measure/manager.tsx
11781
- import eC from "react";
11782
- import { addons as zd, types as tC } from "storybook/manager-api";
11788
+ import tC from "react";
11789
+ import { addons as zd, types as rC } from "storybook/manager-api";
11783
11790
 
11784
11791
  // src/measure/Tool.tsx
11785
- import $d, { useCallback as JS, useEffect as KS } from "react";
11786
- import { IconButton as YS } from "storybook/internal/components";
11787
- import { RulerIcon as XS } from "@storybook/icons";
11788
- import { useGlobals as ZS, useStorybookApi as QS } from "storybook/manager-api";
11792
+ import $d, { useCallback as KS, useEffect as YS } from "react";
11793
+ import { IconButton as XS } from "storybook/internal/components";
11794
+ import { RulerIcon as ZS } from "@storybook/icons";
11795
+ import { useGlobals as QS, useStorybookApi as eC } from "storybook/manager-api";
11789
11796
 
11790
11797
  // src/measure/constants.ts
11791
11798
  var Et = "storybook/measure-addon", sn = `${Et}/tool`;
11792
- var e3 = {
11799
+ var t3 = {
11793
11800
  RESULT: `${Et}/result`,
11794
11801
  REQUEST: `${Et}/request`,
11795
11802
  CLEAR: `${Et}/clear`
@@ -11797,13 +11804,13 @@ var e3 = {
11797
11804
 
11798
11805
  // src/measure/Tool.tsx
11799
11806
  var Vd = /* @__PURE__ */ a(() => {
11800
- let [e, t] = ZS(), { measureEnabled: r } = e || {}, o = QS(), n = JS(
11807
+ let [e, t] = QS(), { measureEnabled: r } = e || {}, o = eC(), n = KS(
11801
11808
  () => t({
11802
11809
  measureEnabled: !r
11803
11810
  }),
11804
11811
  [t, r]
11805
11812
  );
11806
- return KS(() => {
11813
+ return YS(() => {
11807
11814
  o.setAddonShortcut(Et, {
11808
11815
  label: "Toggle Measure [M]",
11809
11816
  defaultShortcut: ["M"],
@@ -11812,49 +11819,49 @@ var Vd = /* @__PURE__ */ a(() => {
11812
11819
  action: n
11813
11820
  });
11814
11821
  }, [n, o]), /* @__PURE__ */ $d.createElement(
11815
- YS,
11822
+ XS,
11816
11823
  {
11817
11824
  key: sn,
11818
11825
  active: r,
11819
11826
  title: "Enable measure",
11820
11827
  onClick: n
11821
11828
  },
11822
- /* @__PURE__ */ $d.createElement(XS, null)
11829
+ /* @__PURE__ */ $d.createElement(ZS, null)
11823
11830
  );
11824
11831
  }, "Tool");
11825
11832
 
11826
11833
  // src/measure/manager.tsx
11827
11834
  var Ud = zd.register(Et, () => {
11828
11835
  globalThis?.FEATURES?.measure && zd.add(sn, {
11829
- type: tC.TOOL,
11836
+ type: rC.TOOL,
11830
11837
  title: "Measure",
11831
11838
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => e === "story" && !t, "match"),
11832
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ eC.createElement(Vd, null), "render")
11839
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ tC.createElement(Vd, null), "render")
11833
11840
  });
11834
11841
  });
11835
11842
 
11836
11843
  // src/outline/manager.tsx
11837
- import cC from "react";
11838
- import { addons as Gd, types as pC } from "storybook/manager-api";
11844
+ import pC from "react";
11845
+ import { addons as Gd, types as uC } from "storybook/manager-api";
11839
11846
 
11840
11847
  // src/outline/OutlineSelector.tsx
11841
- import qd, { memo as rC, useCallback as oC, useEffect as nC } from "react";
11842
- import { IconButton as aC } from "storybook/internal/components";
11843
- import { OutlineIcon as iC } from "@storybook/icons";
11844
- import { useGlobals as sC, useStorybookApi as lC } from "storybook/manager-api";
11848
+ import qd, { memo as oC, useCallback as nC, useEffect as aC } from "react";
11849
+ import { IconButton as iC } from "storybook/internal/components";
11850
+ import { OutlineIcon as sC } from "@storybook/icons";
11851
+ import { useGlobals as lC, useStorybookApi as cC } from "storybook/manager-api";
11845
11852
 
11846
11853
  // src/outline/constants.ts
11847
11854
  var Dr = "storybook/outline", Oi = "outline";
11848
11855
 
11849
11856
  // src/outline/OutlineSelector.tsx
11850
- var Wd = rC(/* @__PURE__ */ a(function() {
11851
- let [t, r] = sC(), o = lC(), n = [!0, "true"].includes(t[Oi]), i = oC(
11857
+ var Wd = oC(/* @__PURE__ */ a(function() {
11858
+ let [t, r] = lC(), o = cC(), n = [!0, "true"].includes(t[Oi]), i = nC(
11852
11859
  () => r({
11853
11860
  [Oi]: !n
11854
11861
  }),
11855
11862
  [n]
11856
11863
  );
11857
- return nC(() => {
11864
+ return aC(() => {
11858
11865
  o.setAddonShortcut(Dr, {
11859
11866
  label: "Toggle Outline",
11860
11867
  defaultShortcut: ["alt", "O"],
@@ -11863,14 +11870,14 @@ var Wd = rC(/* @__PURE__ */ a(function() {
11863
11870
  action: i
11864
11871
  });
11865
11872
  }, [i, o]), /* @__PURE__ */ qd.createElement(
11866
- aC,
11873
+ iC,
11867
11874
  {
11868
11875
  key: "outline",
11869
11876
  active: n,
11870
11877
  title: "Apply outlines to the preview",
11871
11878
  onClick: i
11872
11879
  },
11873
- /* @__PURE__ */ qd.createElement(iC, null)
11880
+ /* @__PURE__ */ qd.createElement(sC, null)
11874
11881
  );
11875
11882
  }, "OutlineSelector"));
11876
11883
 
@@ -11878,25 +11885,25 @@ var Wd = rC(/* @__PURE__ */ a(function() {
11878
11885
  var Jd = Gd.register(Dr, () => {
11879
11886
  globalThis?.FEATURES?.outline && Gd.add(Dr, {
11880
11887
  title: "Outline",
11881
- type: pC.TOOL,
11888
+ type: uC.TOOL,
11882
11889
  match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => !!(e && e.match(/^(story|docs)$/)) && !t, "match"),
11883
- render: /* @__PURE__ */ a(() => /* @__PURE__ */ cC.createElement(Wd, null), "render")
11890
+ render: /* @__PURE__ */ a(() => /* @__PURE__ */ pC.createElement(Wd, null), "render")
11884
11891
  });
11885
11892
  });
11886
11893
 
11887
11894
  // src/viewport/manager.tsx
11888
11895
  import * as af from "react";
11889
- import { addons as nf, types as NC } from "storybook/manager-api";
11896
+ import { addons as nf, types as _C } from "storybook/manager-api";
11890
11897
 
11891
11898
  // src/viewport/components/Tool.tsx
11892
- import Ee, { Fragment as yC, useCallback as xC, useEffect as vC, useState as EC } from "react";
11893
- import { IconButton as SC, TooltipLinkList as CC, WithTooltip as wC } from "storybook/internal/components";
11894
- import { GrowIcon as TC, RefreshIcon as AC, TransferIcon as kC } from "@storybook/icons";
11895
- import { useGlobals as OC, useParameter as IC } from "storybook/manager-api";
11896
- import { Global as PC } from "storybook/theming";
11899
+ import Ee, { Fragment as xC, useCallback as vC, useEffect as EC, useState as SC } from "react";
11900
+ import { IconButton as CC, TooltipLinkList as wC, WithTooltip as TC } from "storybook/internal/components";
11901
+ import { GrowIcon as AC, RefreshIcon as kC, TransferIcon as OC } from "@storybook/icons";
11902
+ import { useGlobals as IC, useParameter as PC } from "storybook/manager-api";
11903
+ import { Global as LC } from "storybook/theming";
11897
11904
 
11898
11905
  // src/viewport/constants.ts
11899
- var St = "storybook/viewport", Mr = "viewport", I3 = `${St}/panel`, Kd = `${St}/tool`;
11906
+ var St = "storybook/viewport", Mr = "viewport", P3 = `${St}/panel`, Kd = `${St}/tool`;
11900
11907
 
11901
11908
  // src/viewport/defaults.ts
11902
11909
  var Yd = {
@@ -11945,10 +11952,10 @@ var tr = {
11945
11952
  };
11946
11953
 
11947
11954
  // src/viewport/shortcuts.ts
11948
- var Xd = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), uC = /* @__PURE__ */ a((e, t) => {
11955
+ var Xd = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), dC = /* @__PURE__ */ a((e, t) => {
11949
11956
  let r = Xd(e, t);
11950
11957
  return r === e.length - 1 ? e[0] : e[r + 1];
11951
- }, "getNextViewport"), dC = /* @__PURE__ */ a((e, t) => {
11958
+ }, "getNextViewport"), fC = /* @__PURE__ */ a((e, t) => {
11952
11959
  let r = Xd(e, t);
11953
11960
  return r < 1 ? e[e.length - 1] : e[r - 1];
11954
11961
  }, "getPreviousViewport"), Zd = /* @__PURE__ */ a(async (e, t, r, o) => {
@@ -11958,7 +11965,7 @@ var Xd = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), u
11958
11965
  actionName: "previous",
11959
11966
  action: /* @__PURE__ */ a(() => {
11960
11967
  r({
11961
- viewport: dC(o, t)
11968
+ viewport: fC(o, t)
11962
11969
  });
11963
11970
  }, "action")
11964
11971
  }), await e.setAddonShortcut(St, {
@@ -11967,7 +11974,7 @@ var Xd = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), u
11967
11974
  actionName: "next",
11968
11975
  action: /* @__PURE__ */ a(() => {
11969
11976
  r({
11970
- viewport: uC(o, t)
11977
+ viewport: dC(o, t)
11971
11978
  });
11972
11979
  }, "action")
11973
11980
  }), await e.setAddonShortcut(St, {
@@ -11983,9 +11990,9 @@ var Xd = /* @__PURE__ */ a((e, t) => e.indexOf(t), "getCurrentViewportIndex"), u
11983
11990
  }, "registerShortcuts");
11984
11991
 
11985
11992
  // src/viewport/utils.tsx
11986
- import ln, { Fragment as fC } from "react";
11987
- import { IconButton as mC } from "storybook/internal/components";
11988
- import { BrowserIcon as gC, MobileIcon as hC, TabletIcon as bC } from "@storybook/icons";
11993
+ import ln, { Fragment as mC } from "react";
11994
+ import { IconButton as gC } from "storybook/internal/components";
11995
+ import { BrowserIcon as hC, MobileIcon as bC, TabletIcon as yC } from "@storybook/icons";
11989
11996
  import { styled as cn } from "storybook/theming";
11990
11997
  var Qd = cn.div({
11991
11998
  display: "inline-flex",
@@ -12002,24 +12009,24 @@ var Qd = cn.div({
12002
12009
  borderTop: "3px solid transparent",
12003
12010
  borderBottom: "3px solid transparent",
12004
12011
  background: "transparent"
12005
- })), ef = cn(mC)(() => ({
12012
+ })), ef = cn(gC)(() => ({
12006
12013
  display: "inline-flex",
12007
12014
  alignItems: "center"
12008
12015
  })), tf = cn.div(({ theme: e }) => ({
12009
12016
  fontSize: e.typography.size.s2 - 1,
12010
12017
  marginLeft: 10
12011
12018
  })), rf = {
12012
- desktop: /* @__PURE__ */ ln.createElement(gC, null),
12013
- mobile: /* @__PURE__ */ ln.createElement(hC, null),
12014
- tablet: /* @__PURE__ */ ln.createElement(bC, null),
12015
- other: /* @__PURE__ */ ln.createElement(fC, null)
12019
+ desktop: /* @__PURE__ */ ln.createElement(hC, null),
12020
+ mobile: /* @__PURE__ */ ln.createElement(bC, null),
12021
+ tablet: /* @__PURE__ */ ln.createElement(yC, null),
12022
+ other: /* @__PURE__ */ ln.createElement(mC, null)
12016
12023
  };
12017
12024
 
12018
12025
  // src/viewport/components/Tool.tsx
12019
12026
  var of = /* @__PURE__ */ a(({ api: e }) => {
12020
- let t = IC(Mr), [r, o, n] = OC(), [i, s] = EC(!1), { options: l = Yd, disable: c } = t || {}, u = r?.[Mr] || {}, d = typeof u == "string" ?
12027
+ let t = PC(Mr), [r, o, n] = IC(), [i, s] = SC(!1), { options: l = Yd, disable: c } = t || {}, u = r?.[Mr] || {}, d = typeof u == "string" ?
12021
12028
  u : u.value, g = typeof u == "string" ? !1 : u.isRotated, p = l[d] || tr, m = i || p !== tr, f = Mr in n, h = Object.keys(l).length;
12022
- if (vC(() => {
12029
+ if (EC(() => {
12023
12030
  Zd(e, d, o, Object.keys(l));
12024
12031
  }, [l, d, o, e]), p.styles === null || !l || h < 1)
12025
12032
  return null;
@@ -12029,7 +12036,7 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12029
12036
  ), null;
12030
12037
  let b = g ? p.styles.height : p.styles.width, y = g ? p.styles.width : p.styles.height;
12031
12038
  return c ? null : /* @__PURE__ */ Ee.createElement(
12032
- LC,
12039
+ NC,
12033
12040
  {
12034
12041
  item: p,
12035
12042
  updateGlobals: o,
@@ -12043,7 +12050,7 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12043
12050
  height: y
12044
12051
  }
12045
12052
  );
12046
- }, "ViewportTool"), LC = Ee.memo(/* @__PURE__ */ a(function(t) {
12053
+ }, "ViewportTool"), NC = Ee.memo(/* @__PURE__ */ a(function(t) {
12047
12054
  let {
12048
12055
  item: r,
12049
12056
  viewportMap: o,
@@ -12055,23 +12062,23 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12055
12062
  isActive: u,
12056
12063
  width: d,
12057
12064
  height: g
12058
- } = t, p = xC(
12065
+ } = t, p = vC(
12059
12066
  (m) => s({ [Mr]: m }),
12060
12067
  [s]
12061
12068
  );
12062
- return /* @__PURE__ */ Ee.createElement(yC, null, /* @__PURE__ */ Ee.createElement(
12063
- wC,
12069
+ return /* @__PURE__ */ Ee.createElement(xC, null, /* @__PURE__ */ Ee.createElement(
12070
+ TC,
12064
12071
  {
12065
12072
  placement: "bottom",
12066
12073
  tooltip: ({ onHide: m }) => /* @__PURE__ */ Ee.createElement(
12067
- CC,
12074
+ wC,
12068
12075
  {
12069
12076
  links: [
12070
12077
  ...length > 0 && r !== tr ? [
12071
12078
  {
12072
12079
  id: "reset",
12073
12080
  title: "Reset viewport",
12074
- icon: /* @__PURE__ */ Ee.createElement(AC, null),
12081
+ icon: /* @__PURE__ */ Ee.createElement(kC, null),
12075
12082
  onClick: /* @__PURE__ */ a(() => {
12076
12083
  p(void 0), m();
12077
12084
  }, "onClick")
@@ -12103,11 +12110,11 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12103
12110
  p({ value: void 0, isRotated: !1 });
12104
12111
  }
12105
12112
  },
12106
- /* @__PURE__ */ Ee.createElement(TC, null),
12113
+ /* @__PURE__ */ Ee.createElement(AC, null),
12107
12114
  r !== tr ? /* @__PURE__ */ Ee.createElement(tf, null, r.name, " ", i ? "(L)" : "(P)") : null
12108
12115
  )
12109
12116
  ), /* @__PURE__ */ Ee.createElement(
12110
- PC,
12117
+ LC,
12111
12118
  {
12112
12119
  styles: {
12113
12120
  'iframe[data-is-storybook="true"]': { width: d, height: g }
@@ -12115,7 +12122,7 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12115
12122
  }
12116
12123
  ), r !== tr ? /* @__PURE__ */ Ee.createElement(Qd, null, /* @__PURE__ */ Ee.createElement(Ii, { title: "Viewport width" }, d.replace("px",
12117
12124
  "")), c ? "/" : /* @__PURE__ */ Ee.createElement(
12118
- SC,
12125
+ CC,
12119
12126
  {
12120
12127
  key: "viewport-rotate",
12121
12128
  title: "Rotate viewport",
@@ -12123,7 +12130,7 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12123
12130
  p({ value: n, isRotated: !i });
12124
12131
  }
12125
12132
  },
12126
- /* @__PURE__ */ Ee.createElement(kC, null)
12133
+ /* @__PURE__ */ Ee.createElement(OC, null)
12127
12134
  ), /* @__PURE__ */ Ee.createElement(Ii, { title: "Viewport height" }, g.replace("px", ""))) : null);
12128
12135
  }, "PureTool"));
12129
12136
 
@@ -12131,31 +12138,31 @@ var of = /* @__PURE__ */ a(({ api: e }) => {
12131
12138
  var sf = nf.register(St, (e) => {
12132
12139
  globalThis?.FEATURES?.viewport && nf.add(Kd, {
12133
12140
  title: "viewport / media-queries",
12134
- type: NC.TOOL,
12141
+ type: _C.TOOL,
12135
12142
  match: /* @__PURE__ */ a(({ viewMode: t, tabId: r }) => t === "story" && !r, "match"),
12136
12143
  render: /* @__PURE__ */ a(() => /* @__PURE__ */ af.createElement(of, { api: e }), "render")
12137
12144
  });
12138
12145
  });
12139
12146
 
12140
12147
  // src/core-server/presets/common-manager.ts
12141
- var MC = "tag-filters", BC = "static-filter", FC = DC.register(MC, (e) => {
12142
- let t = Object.entries(_C.TAGS_OPTIONS ?? {}).reduce(
12148
+ var BC = "tag-filters", FC = "static-filter", RC = MC.register(BC, (e) => {
12149
+ let t = Object.entries(DC.TAGS_OPTIONS ?? {}).reduce(
12143
12150
  (r, o) => {
12144
12151
  let [n, i] = o;
12145
12152
  return i.excludeFromSidebar && (r[n] = !0), r;
12146
12153
  },
12147
12154
  {}
12148
12155
  );
12149
- e.experimental_setFilter(BC, (r) => {
12156
+ e.experimental_setFilter(FC, (r) => {
12150
12157
  let o = r.tags ?? [];
12151
12158
  return (
12152
12159
  // we can filter out the primary story, but we still want to show autodocs
12153
12160
  (o.includes("dev") || r.type === "docs") && o.filter((n) => t[n]).length === 0
12154
12161
  );
12155
12162
  });
12156
- }), fF = [
12163
+ }), mF = [
12157
12164
  Ud,
12158
- FC,
12165
+ RC,
12159
12166
  qp,
12160
12167
  Hd,
12161
12168
  Dd,
@@ -12164,5 +12171,5 @@ var MC = "tag-filters", BC = "static-filter", FC = DC.register(MC, (e) => {
12164
12171
  Jd
12165
12172
  ];
12166
12173
  export {
12167
- fF as default
12174
+ mF as default
12168
12175
  };